]> git.saurik.com Git - cycript.git/blame - configure
Replace only apr_thread_create with pthread_create.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
53ba6704 3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
53ba6704 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9c60689e 9#
c7aa54aa
DWT
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
66170b30
JF
13#
14# Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
a243b558
JF
641CY_MACH_FALSE
642CY_MACH_TRUE
66170b30 643CY_MACH
7eda51e0 644CY_ATTACH_GROUP
a243b558
JF
645ac_ct__OTOOL
646_OTOOL
794e88e7
DWT
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
9777bd50 651SO
66170b30 652LTFLAGS
5053a6d1
DWT
653LTLIBICONV
654LIBICONV
6f9aea2b
JF
655LTLIBTERMCAP
656LTLIBREADLINE
a243b558
JF
657CY_OBJECTIVEC_FALSE
658CY_OBJECTIVEC_TRUE
47aaa820 659GNUSTEP_CONFIG
c823f118 660CY_OBJECTIVEC
296ee9a6 661LTLIBFFI
309b0535 662LIBFFI_LIBS
35fa52c0 663LIBFFI_CFLAGS
a243b558
JF
664CY_EXECUTE_FALSE
665CY_EXECUTE_TRUE
d4f27204 666LTLIBAPR
35fa52c0
DWT
667WEBKIT_LIBS
668WEBKIT_CFLAGS
7eda51e0 669CY_EXECUTE
a243b558 670CY_ARCH
9228a43a 671CY_FILTERS
e9c9a47c 672GNUTAR
e9c9a47c
DWT
673GPERF
674FLEX
675BISON
676TIME
66170b30 677GIT
12833ad8
JF
678PKG_CONFIG_LIBDIR
679PKG_CONFIG_PATH
3fd51f51 680PKG_CONFIG
a243b558 681CXXCPP
9c60689e
DWT
682CPP
683OTOOL64
684OTOOL
685LIPO
686NMEDIT
687DSYMUTIL
ee134472 688MANIFEST_TOOL
9c60689e 689RANLIB
ee134472 690DLLTOOL
9c60689e
DWT
691OBJDUMP
692LN_S
693NM
694ac_ct_DUMPBIN
695DUMPBIN
696LD
697FGREP
698EGREP
699GREP
700SED
a243b558
JF
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709LIBTOOL
66170b30
JF
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
a243b558
JF
713ac_ct_CC
714CFLAGS
715CC
716ac_ct_AR
717AR
718am__fastdepOBJCXX_FALSE
719am__fastdepOBJCXX_TRUE
720OBJCXXDEPMODE
721ac_ct_OBJCXX
722OBJCXXFLAGS
723OBJCXX
724am__fastdepCXX_FALSE
725am__fastdepCXX_TRUE
726CXXDEPMODE
66170b30
JF
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__quote
732am__include
733DEPDIR
35fa52c0
DWT
734OBJEXT
735EXEEXT
a243b558 736ac_ct_CXX
35fa52c0
DWT
737CPPFLAGS
738LDFLAGS
a243b558
JF
739CXXFLAGS
740CXX
66170b30
JF
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745am__untar
746am__tar
747AMTAR
748am__leading_dot
749SET_MAKE
750AWK
751mkdir_p
752MKDIR_P
753INSTALL_STRIP_PROGRAM
754STRIP
755install_sh
756MAKEINFO
757AUTOHEADER
758AUTOMAKE
759AUTOCONF
760ACLOCAL
761VERSION
762PACKAGE
763CYGPATH_W
764am__isrc
765INSTALL_DATA
766INSTALL_SCRIPT
767INSTALL_PROGRAM
dbadc56a 768target_alias
c7aa54aa
DWT
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL'
806ac_subst_files=''
807ac_user_opts='
808enable_option_checking
66170b30 809enable_silent_rules
a243b558 810enable_dependency_tracking
9c60689e 811enable_static
549f29b5 812enable_shared
9c60689e
DWT
813with_pic
814enable_fast_install
35fa52c0 815with_gnu_ld
ee134472 816with_sysroot
9c60689e 817enable_libtool_lock
5053a6d1 818enable_javascript
66170b30 819with_apr
35fa52c0
DWT
820enable_rpath
821with_libiconv_prefix
c7aa54aa
DWT
822'
823 ac_precious_vars='build_alias
824host_alias
dbadc56a 825target_alias
a243b558
JF
826CXX
827CXXFLAGS
dbadc56a
DWT
828LDFLAGS
829LIBS
830CPPFLAGS
a243b558
JF
831CCC
832OBJCXX
833OBJCXXFLAGS
834CC
835CFLAGS
9c60689e 836CPP
a243b558 837CXXCPP
3fd51f51 838PKG_CONFIG
12833ad8
JF
839PKG_CONFIG_PATH
840PKG_CONFIG_LIBDIR
e9c9a47c
DWT
841BISON
842FLEX
843GPERF
66170b30 844GNUTAR
35fa52c0
DWT
845WEBKIT_CFLAGS
846WEBKIT_LIBS
a667869d 847LIBFFI_CFLAGS
790e5246
DWT
848LIBFFI_LIBS
849GNUSTEP_CONFIG'
c7aa54aa
DWT
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
12833ad8
JF
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
c7aa54aa
DWT
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 959 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964"enable_$ac_useropt"
965"*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 985 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990"enable_$ac_useropt"
991"*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1189 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1205 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210"with_$ac_useropt"
1211"*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
12833ad8
JF
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
c7aa54aa
DWT
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1255 ;;
1256
1257 esac
1258done
1259
1260if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1262 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
12833ad8 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1278do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
12833ad8 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
c7aa54aa
DWT
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1319 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1321 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355else
1356 ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
12833ad8 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1365 pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
12833ad8 1404 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443_ACEOF
1444
1445 cat <<\_ACEOF
35fa52c0 1446
66170b30
JF
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
35fa52c0
DWT
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1455_ACEOF
1456fi
1457
1458if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of Cycript 0.9:";;
1461 esac
1462 cat <<\_ACEOF
1463
35fa52c0
DWT
1464Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1468 --enable-silent-rules less verbose build output (undo: "make V=1")
1469 --disable-silent-rules verbose build output (undo: "make V=0")
66170b30
JF
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
a243b558
JF
1474 --enable-static[=PKGS] build static libraries [default=no]
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
9c60689e 1478 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1479 --enable-javascript[=ENGINE]
790e5246 1480 use a JavaScript runtime (currently the only
b66977f1
DWT
1481 available option for ENGINE is JavaScriptCore)
1482 [default=yes]
5053a6d1 1483 --disable-rpath do not hardcode runtime library paths
35fa52c0
DWT
1484
1485Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1488 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e
DWT
1489 both]
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ee134472
JF
1491 --with-sysroot=DIR Search for dependent libraries within DIR
1492 (or the compiler's sysroot if not specified).
309b0535
DWT
1493 --with-apr=PATH prefix for installed APR or the full path to
1494 apr-config
53ba6704 1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
35fa52c0
DWT
1496 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1497 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1498
dbadc56a 1499Some influential environment variables:
a243b558
JF
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
dbadc56a
DWT
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1506 you have headers in a nonstandard directory <include dir>
a243b558
JF
1507 OBJCXX Objective C++ compiler command
1508 OBJCXXFLAGS Objective C++ compiler flags
1509 CC C compiler command
1510 CFLAGS C compiler flags
9c60689e 1511 CPP C preprocessor
a243b558 1512 CXXCPP C++ preprocessor
3fd51f51 1513 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1514 PKG_CONFIG_PATH
1515 directories to add to pkg-config's search path
1516 PKG_CONFIG_LIBDIR
1517 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1518 BISON GNU Project parser generator (yacc replacement)
1519 FLEX the fast lexical analyser generator
1520 GPERF perfect hash function generator
66170b30 1521 GNUTAR a very sticky lump of files
35fa52c0
DWT
1522 WEBKIT_CFLAGS
1523 C compiler flags for WEBKIT, overriding pkg-config
1524 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1525 GNUSTEP_CONFIG
1526 prints information about the current gnustep installation
dbadc56a
DWT
1527
1528Use these variables to override the choices made by `configure' or to help
1529it to find libraries and programs with nonstandard names/locations.
1530
c7aa54aa
DWT
1531Report bugs to <saurik@saurik.com>.
1532Cycript home page: <http://www.cycript.org/>.
1533_ACEOF
1534ac_status=$?
1535fi
1536
1537if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1544
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
1560
1561case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574esac
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594 cat <<\_ACEOF
1595Cycript configure 0.9
53ba6704 1596generated by GNU Autoconf 2.69
c7aa54aa 1597
53ba6704 1598Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1599This configure script is free software; the Free Software Foundation
1600gives unlimited permission to copy, distribute and modify it.
66170b30
JF
1601
1602Copyright (C) 2009-2012 Jay Freeman (saurik)
c7aa54aa
DWT
1603_ACEOF
1604 exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
dbadc56a 1610
a243b558
JF
1611# ac_fn_cxx_try_compile LINENO
1612# ----------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_cxx_try_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_cxx_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647} # ac_fn_cxx_try_compile
1648
1649# ac_fn_objcxx_try_compile LINENO
1650# -------------------------------
1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_objcxx_try_compile ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_objcxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685} # ac_fn_objcxx_try_compile
1686
35fa52c0
DWT
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
ee134472 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1721 as_fn_set_status $ac_retval
35fa52c0
DWT
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext conftest$ac_exeext
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest$ac_exeext && {
1751 test "$cross_compiling" = yes ||
53ba6704 1752 test -x conftest$ac_exeext
35fa52c0
DWT
1753 }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760fi
1761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1763 # interfere with the next link command; also delete a directory that is
1764 # left behind by Apple's compiler. We do this before executing the actions.
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1767 as_fn_set_status $ac_retval
35fa52c0
DWT
1768
1769} # ac_fn_c_try_link
1770
9c60689e
DWT
1771# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772# -------------------------------------------------------
1773# Tests whether HEADER exists and can be compiled using the include files in
1774# INCLUDES, setting the cache variable VAR accordingly.
1775ac_fn_c_check_header_compile ()
dbadc56a
DWT
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779$as_echo_n "checking for $2... " >&6; }
ee134472 1780if eval \${$3+:} false; then :
9c60689e
DWT
1781 $as_echo_n "(cached) " >&6
1782else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785$4
1786#include <$2>
1787_ACEOF
1788if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790else
1791 eval "$3=no"
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
ee134472 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1799
1800} # ac_fn_c_check_header_compile
1801
1802# ac_fn_c_try_cpp LINENO
1803# ----------------------
1804# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_cpp ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1809case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
9c60689e 1815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1823 test $ac_status = 0; } > conftest.i && {
9c60689e 1824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1825 test ! -s conftest.err
9c60689e 1826 }; then :
dbadc56a
DWT
1827 ac_retval=0
1828else
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
9c60689e 1832 ac_retval=1
dbadc56a 1833fi
ee134472 1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1835 as_fn_set_status $ac_retval
dbadc56a 1836
9c60689e 1837} # ac_fn_c_try_cpp
35fa52c0
DWT
1838
1839# ac_fn_c_try_run LINENO
1840# ----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842# that executables *can* be run.
1843ac_fn_c_try_run ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_link"
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857 { { case "(($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_try") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; }; }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: program exited with status $ac_status" >&5
1870 $as_echo "$as_me: failed program was:" >&5
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=$ac_status
1874fi
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1877 as_fn_set_status $ac_retval
35fa52c0
DWT
1878
1879} # ac_fn_c_try_run
6b66678a 1880
9c60689e
DWT
1881# ac_fn_c_check_func LINENO FUNC VAR
1882# ----------------------------------
1883# Tests whether FUNC exists, setting the cache variable VAR accordingly
1884ac_fn_c_check_func ()
6b66678a
DWT
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
ee134472 1889if eval \${$3+:} false; then :
9c60689e 1890 $as_echo_n "(cached) " >&6
6b66678a 1891else
9c60689e
DWT
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896#define $2 innocuous_$2
6b66678a 1897
9c60689e
DWT
1898/* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1902
1903#ifdef __STDC__
1904# include <limits.h>
1905#else
1906# include <assert.h>
1907#endif
1908
1909#undef $2
1910
1911/* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1914#ifdef __cplusplus
1915extern "C"
1916#endif
1917char $2 ();
1918/* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921#if defined __stub_$2 || defined __stub___$2
1922choke me
1923#endif
1924
1925int
1926main ()
1927{
1928return $2 ();
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_link "$LINENO"; then :
1934 eval "$3=yes"
1935else
1936 eval "$3=no"
1937fi
1938rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
6b66678a 1940fi
9c60689e
DWT
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
ee134472 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1945
9c60689e 1946} # ac_fn_c_check_func
6b66678a 1947
9c60689e
DWT
1948# ac_fn_cxx_try_cpp LINENO
1949# ------------------------
1950# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_cxx_try_cpp ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1955case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1967 fi
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1969 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1970 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1971 test ! -s conftest.err
1972 }; then :
1973 ac_retval=0
1974else
1975 $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1
1979fi
ee134472 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1981 as_fn_set_status $ac_retval
1982
1983} # ac_fn_cxx_try_cpp
1984
1985# ac_fn_cxx_try_link LINENO
1986# -------------------------
1987# Try to link conftest.$ac_ext, and return whether this succeeded.
1988ac_fn_cxx_try_link ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 rm -f conftest.$ac_objext conftest$ac_exeext
1992 if { { ac_try="$ac_link"
1993case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>conftest.err
2000 ac_status=$?
2001 if test -s conftest.err; then
2002 grep -v '^ *+' conftest.err >conftest.er1
2003 cat conftest.er1 >&5
2004 mv -f conftest.er1 conftest.err
2005 fi
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && {
2008 test -z "$ac_cxx_werror_flag" ||
2009 test ! -s conftest.err
2010 } && test -s conftest$ac_exeext && {
2011 test "$cross_compiling" = yes ||
53ba6704 2012 test -x conftest$ac_exeext
9c60689e
DWT
2013 }; then :
2014 ac_retval=0
2015else
2016 $as_echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1
2020fi
2021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2023 # interfere with the next link command; also delete a directory that is
2024 # left behind by Apple's compiler. We do this before executing the actions.
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2027 as_fn_set_status $ac_retval
2028
2029} # ac_fn_cxx_try_link
2030
47aaa820
DWT
2031# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2032# ---------------------------------------------------------
2033# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2034# the include files in INCLUDES and setting the cache variable VAR
2035# accordingly.
2036ac_fn_cxx_check_header_mongrel ()
2037{
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2039 if eval \${$3+:} false; then :
47aaa820
DWT
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041$as_echo_n "checking for $2... " >&6; }
ee134472 2042if eval \${$3+:} false; then :
47aaa820
DWT
2043 $as_echo_n "(cached) " >&6
2044fi
2045eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048else
2049 # Is the header compilable?
2050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2051$as_echo_n "checking $2 usability... " >&6; }
2052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055#include <$2>
2056_ACEOF
2057if ac_fn_cxx_try_compile "$LINENO"; then :
2058 ac_header_compiler=yes
2059else
2060 ac_header_compiler=no
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2064$as_echo "$ac_header_compiler" >&6; }
2065
2066# Is the header present?
2067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2068$as_echo_n "checking $2 presence... " >&6; }
2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071#include <$2>
2072_ACEOF
2073if ac_fn_cxx_try_cpp "$LINENO"; then :
2074 ac_header_preproc=yes
2075else
2076 ac_header_preproc=no
2077fi
12833ad8 2078rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2080$as_echo "$ac_header_preproc" >&6; }
2081
2082# So? What about this header?
2083case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2084 yes:no: )
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2086$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2088$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2089 ;;
2090 no:yes:* )
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2092$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2094$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2096$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2098$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2101( $as_echo "## -------------------------------- ##
47aaa820 2102## Report this to saurik@saurik.com ##
12833ad8 2103## -------------------------------- ##"
47aaa820
DWT
2104 ) | sed "s/^/$as_me: WARNING: /" >&2
2105 ;;
2106esac
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108$as_echo_n "checking for $2... " >&6; }
ee134472 2109if eval \${$3+:} false; then :
47aaa820
DWT
2110 $as_echo_n "(cached) " >&6
2111else
2112 eval "$3=\$ac_header_compiler"
2113fi
2114eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116$as_echo "$ac_res" >&6; }
2117fi
ee134472 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2119
2120} # ac_fn_cxx_check_header_mongrel
2121
c823f118
DWT
2122# ac_fn_objcxx_try_link LINENO
2123# ----------------------------
2124# Try to link conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_objcxx_try_link ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext conftest$ac_exeext
2129 if { { ac_try="$ac_link"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_objcxx_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest$ac_exeext && {
2148 test "$cross_compiling" = yes ||
53ba6704 2149 test -x conftest$ac_exeext
c823f118
DWT
2150 }; then :
2151 ac_retval=0
2152else
2153 $as_echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 ac_retval=1
2157fi
2158 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2159 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2160 # interfere with the next link command; also delete a directory that is
2161 # left behind by Apple's compiler. We do this before executing the actions.
2162 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2164 as_fn_set_status $ac_retval
2165
2166} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2167cat >config.log <<_ACEOF
2168This file contains any messages produced by compilers while
2169running configure, to aid debugging if configure makes a mistake.
2170
2171It was created by Cycript $as_me 0.9, which was
53ba6704 2172generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2173
2174 $ $0 $@
2175
2176_ACEOF
2177exec 5>>config.log
2178{
2179cat <<_ASUNAME
2180## --------- ##
2181## Platform. ##
2182## --------- ##
2183
2184hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188uname -v = `(uname -v) 2>/dev/null || echo unknown`
2189
2190/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2192
2193/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2194/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2195/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2197/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2198/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2199/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2200
2201_ASUNAME
2202
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2209 done
2210IFS=$as_save_IFS
2211
2212} >&5
2213
2214cat >&5 <<_ACEOF
2215
2216
2217## ----------- ##
2218## Core tests. ##
2219## ----------- ##
2220
2221_ACEOF
2222
2223
2224# Keep a trace of the command line.
2225# Strip out --no-create and --no-recursion so they do not pile up.
2226# Strip out --silent because we don't want to record it for future runs.
2227# Also quote any args containing shell meta-characters.
2228# Make two passes to allow for proper duplicate-argument suppression.
2229ac_configure_args=
2230ac_configure_args0=
2231ac_configure_args1=
2232ac_must_keep_next=false
2233for ac_pass in 1 2
2234do
2235 for ac_arg
2236 do
2237 case $ac_arg in
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2241 continue ;;
2242 *\'*)
2243 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 esac
2245 case $ac_pass in
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2247 2)
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2251 else
2252 case $ac_arg in
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2259 esac
2260 ;;
2261 -* ) ac_must_keep_next=true ;;
2262 esac
2263 fi
2264 as_fn_append ac_configure_args " '$ac_arg'"
2265 ;;
2266 esac
2267 done
2268done
2269{ ac_configure_args0=; unset ac_configure_args0;}
2270{ ac_configure_args1=; unset ac_configure_args1;}
2271
2272# When interrupted or exit'd, cleanup temporary files, and complete
2273# config.log. We remove comments because anyway the quotes in there
2274# would cause problems or look ugly.
2275# WARNING: Use '\'' to represent an apostrophe within the trap.
2276# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2279 {
2280 echo
2281
12833ad8 2282 $as_echo "## ---------------- ##
c7aa54aa 2283## Cache variables. ##
12833ad8 2284## ---------------- ##"
c7aa54aa
DWT
2285 echo
2286 # The following way of writing the cache mishandles newlines in values,
2287(
2288 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2289 eval ac_val=\$$ac_var
2290 case $ac_val in #(
2291 *${as_nl}*)
2292 case $ac_var in #(
2293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2294$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2295 esac
2296 case $ac_var in #(
2297 _ | IFS | as_nl) ;; #(
2298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2299 *) { eval $ac_var=; unset $ac_var;} ;;
2300 esac ;;
2301 esac
2302 done
2303 (set) 2>&1 |
2304 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2305 *${as_nl}ac_space=\ *)
2306 sed -n \
2307 "s/'\''/'\''\\\\'\'''\''/g;
2308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2309 ;; #(
2310 *)
2311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2312 ;;
2313 esac |
2314 sort
2315)
2316 echo
2317
12833ad8 2318 $as_echo "## ----------------- ##
c7aa54aa 2319## Output variables. ##
12833ad8 2320## ----------------- ##"
c7aa54aa
DWT
2321 echo
2322 for ac_var in $ac_subst_vars
2323 do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2331
2332 if test -n "$ac_subst_files"; then
12833ad8 2333 $as_echo "## ------------------- ##
c7aa54aa 2334## File substitutions. ##
12833ad8 2335## ------------------- ##"
c7aa54aa
DWT
2336 echo
2337 for ac_var in $ac_subst_files
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346 fi
2347
2348 if test -s confdefs.h; then
12833ad8 2349 $as_echo "## ----------- ##
c7aa54aa 2350## confdefs.h. ##
12833ad8 2351## ----------- ##"
c7aa54aa
DWT
2352 echo
2353 cat confdefs.h
2354 echo
2355 fi
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2359 } >&5
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362 exit $exit_status
2363' 0
2364for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366done
2367ac_signal=0
2368
2369# confdefs.h avoids OS command line length limits that DEFS can exceed.
2370rm -f -r conftest* confdefs.h
2371
2372$as_echo "/* confdefs.h */" > confdefs.h
2373
2374# Predefined preprocessor variables.
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_NAME "$PACKAGE_NAME"
2378_ACEOF
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_VERSION "$PACKAGE_VERSION"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_STRING "$PACKAGE_STRING"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_URL "$PACKAGE_URL"
2398_ACEOF
2399
2400
2401# Let the site file select an alternate cache file if it wants to.
2402# Prefer an explicitly selected file to automatically selected ones.
2403ac_site_file1=NONE
2404ac_site_file2=NONE
2405if test -n "$CONFIG_SITE"; then
12833ad8
JF
2406 # We do not want a PATH search for config.site.
2407 case $CONFIG_SITE in #((
2408 -*) ac_site_file1=./$CONFIG_SITE;;
2409 */*) ac_site_file1=$CONFIG_SITE;;
2410 *) ac_site_file1=./$CONFIG_SITE;;
2411 esac
c7aa54aa
DWT
2412elif test "x$prefix" != xNONE; then
2413 ac_site_file1=$prefix/share/config.site
2414 ac_site_file2=$prefix/etc/config.site
2415else
2416 ac_site_file1=$ac_default_prefix/share/config.site
2417 ac_site_file2=$ac_default_prefix/etc/config.site
2418fi
2419for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2420do
2421 test "x$ac_site_file" = xNONE && continue
9c60689e 2422 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2426 . "$ac_site_file" \
2427 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429as_fn_error $? "failed to load site script $ac_site_file
ee134472 2430See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2431 fi
2432done
2433
2434if test -r "$cache_file"; then
9c60689e
DWT
2435 # Some versions of bash will fail to source /dev/null (special files
2436 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2437 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2439$as_echo "$as_me: loading cache $cache_file" >&6;}
2440 case $cache_file in
2441 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2442 *) . "./$cache_file";;
2443 esac
2444 fi
2445else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2447$as_echo "$as_me: creating cache $cache_file" >&6;}
2448 >$cache_file
2449fi
2450
2451# Check that the precious variables saved in the cache have kept the same
2452# value.
2453ac_cache_corrupted=false
2454for ac_var in $ac_precious_vars; do
2455 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2456 eval ac_new_set=\$ac_env_${ac_var}_set
2457 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2458 eval ac_new_val=\$ac_env_${ac_var}_value
2459 case $ac_old_set,$ac_new_set in
2460 set,)
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2462$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2463 ac_cache_corrupted=: ;;
2464 ,set)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2466$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,);;
2469 *)
2470 if test "x$ac_old_val" != "x$ac_new_val"; then
2471 # differences in whitespace do not lead to failure.
2472 ac_old_val_w=`echo x $ac_old_val`
2473 ac_new_val_w=`echo x $ac_new_val`
2474 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2476$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2477 ac_cache_corrupted=:
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2480$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2481 eval $ac_var=\$ac_old_val
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2484$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2486$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2487 fi;;
2488 esac
2489 # Pass precious variables to config.status.
2490 if test "$ac_new_set" = set; then
2491 case $ac_new_val in
2492 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2493 *) ac_arg=$ac_var=$ac_new_val ;;
2494 esac
2495 case " $ac_configure_args " in
2496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2497 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498 esac
2499 fi
2500done
2501if $ac_cache_corrupted; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2505$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2506 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2507fi
2508## -------------------- ##
2509## Main body of script. ##
2510## -------------------- ##
2511
2512ac_ext=c
2513ac_cpp='$CPP $CPPFLAGS'
2514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2516ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517
2518
66170b30
JF
2519
2520
35fa52c0 2521
6b66678a
DWT
2522ac_aux_dir=
2523for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2524 if test -f "$ac_dir/install-sh"; then
2525 ac_aux_dir=$ac_dir
2526 ac_install_sh="$ac_aux_dir/install-sh -c"
2527 break
2528 elif test -f "$ac_dir/install.sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install.sh -c"
2531 break
2532 elif test -f "$ac_dir/shtool"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/shtool install -c"
2535 break
2536 fi
6b66678a
DWT
2537done
2538if test -z "$ac_aux_dir"; then
12833ad8 2539 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2540fi
2541
2542# These three variables are undocumented and unsupported,
2543# and are intended to be withdrawn in a future Autoconf release.
2544# They can cause serious problems if a builder's source tree is in a directory
2545# whose full name contains unusual characters.
2546ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549
2550
9c60689e 2551
296ee9a6
JF
2552ac_config_headers="$ac_config_headers config.h"
2553
9c60689e 2554
66170b30 2555am__api_version='1.13'
9c60689e 2556
66170b30
JF
2557# Find a good install program. We prefer a C program (faster),
2558# so one script is as good as another. But avoid the broken or
2559# incompatible versions:
2560# SysV /etc/install, /usr/sbin/install
2561# SunOS /usr/etc/install
2562# IRIX /sbin/install
2563# AIX /bin/install
2564# AmigaOS /C/install, which installs bootblocks on floppy discs
2565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2566# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2568# OS/2's system install, which has a completely different semantic
2569# ./install, which can be erroneously created by make from ./install.sh.
2570# Reject install programs that cannot install multiple files.
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2572$as_echo_n "checking for a BSD-compatible install... " >&6; }
2573if test -z "$INSTALL"; then
2574if ${ac_cv_path_install+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 # Account for people who put trailing slashes in PATH elements.
2583case $as_dir/ in #((
2584 ./ | .// | /[cC]/* | \
2585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2587 /usr/ucb/* ) ;;
2588 *)
2589 # OSF1 and SCO ODT 3.0 have their own names for install.
2590 # Don't use installbsd from OSF since it installs stuff as root
2591 # by default.
2592 for ac_prog in ginstall scoinst install; do
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2595 if test $ac_prog = install &&
2596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # AIX install. It has an incompatible calling convention.
2598 :
2599 elif test $ac_prog = install &&
2600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # program-specific install script used by HP pwplus--don't use.
2602 :
2603 else
2604 rm -rf conftest.one conftest.two conftest.dir
2605 echo one > conftest.one
2606 echo two > conftest.two
2607 mkdir conftest.dir
2608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2609 test -s conftest.one && test -s conftest.two &&
2610 test -s conftest.dir/conftest.one &&
2611 test -s conftest.dir/conftest.two
2612 then
2613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2614 break 3
2615 fi
2616 fi
2617 fi
2618 done
2619 done
2620 ;;
2621esac
9c60689e 2622
66170b30
JF
2623 done
2624IFS=$as_save_IFS
9c60689e 2625
66170b30 2626rm -rf conftest.one conftest.two conftest.dir
9c60689e 2627
66170b30
JF
2628fi
2629 if test "${ac_cv_path_install+set}" = set; then
2630 INSTALL=$ac_cv_path_install
2631 else
2632 # As a last resort, use the slow shell script. Don't cache a
2633 # value for INSTALL within a source directory, because that will
2634 # break other packages using the cache if that directory is
2635 # removed, or if the value is a relative name.
2636 INSTALL=$ac_install_sh
2637 fi
2638fi
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2640$as_echo "$INSTALL" >&6; }
9c60689e 2641
66170b30
JF
2642# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2643# It thinks the first close brace ends the variable substitution.
2644test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2645
66170b30 2646test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2647
66170b30 2648test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2649
66170b30
JF
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2651$as_echo_n "checking whether build environment is sane... " >&6; }
2652# Reject unsafe characters in $srcdir or the absolute working directory
2653# name. Accept space and tab only in the latter.
2654am_lf='
2655'
2656case `pwd` in
2657 *[\\\"\#\$\&\'\`$am_lf]*)
2658 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2659esac
2660case $srcdir in
2661 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2662 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2663esac
9c60689e 2664
66170b30
JF
2665# Do 'set' in a subshell so we don't clobber the current shell's
2666# arguments. Must try -L first in case configure is actually a
2667# symlink; some systems play weird games with the mod time of symlinks
2668# (eg FreeBSD returns the mod time of the symlink's containing
2669# directory).
2670if (
2671 am_has_slept=no
2672 for am_try in 1 2; do
2673 echo "timestamp, slept: $am_has_slept" > conftest.file
2674 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2675 if test "$*" = "X"; then
2676 # -L didn't work.
2677 set X `ls -t "$srcdir/configure" conftest.file`
2678 fi
2679 if test "$*" != "X $srcdir/configure conftest.file" \
2680 && test "$*" != "X conftest.file $srcdir/configure"; then
2681
2682 # If neither matched, then we have a broken ls. This can happen
2683 # if, for instance, CONFIG_SHELL is bash and it inherits a
2684 # broken ls alias from the environment. This has actually
2685 # happened. Such a system could not be considered "sane".
2686 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2687 alias in your environment" "$LINENO" 5
2688 fi
2689 if test "$2" = conftest.file || test $am_try -eq 2; then
2690 break
2691 fi
2692 # Just in case.
2693 sleep 1
2694 am_has_slept=yes
2695 done
2696 test "$2" = conftest.file
2697 )
2698then
2699 # Ok.
2700 :
2701else
2702 as_fn_error $? "newly created file is older than distributed files!
2703Check your system clock" "$LINENO" 5
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706$as_echo "yes" >&6; }
2707# If we didn't sleep, we still need to ensure time stamps of config.status and
2708# generated files are strictly newer.
2709am_sleep_pid=
2710if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2711 ( sleep 1 ) &
2712 am_sleep_pid=$!
2713fi
2714
2715rm -f conftest.file
2716
2717test "$program_prefix" != NONE &&
2718 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2719# Use a double $ so make ignores it.
2720test "$program_suffix" != NONE &&
2721 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2722# Double any \ or $.
2723# By default was `s,x,x', remove it if useless.
2724ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2725program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2726
2727# expand $ac_aux_dir to an absolute path
2728am_aux_dir=`cd $ac_aux_dir && pwd`
2729
2730if test x"${MISSING+set}" != xset; then
2731 case $am_aux_dir in
2732 *\ * | *\ *)
2733 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2734 *)
2735 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2736 esac
2737fi
2738# Use eval to expand $SHELL
2739if eval "$MISSING --is-lightweight"; then
2740 am_missing_run="$MISSING "
2741else
2742 am_missing_run=
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2744$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2745fi
9c60689e 2746
66170b30
JF
2747if test x"${install_sh}" != xset; then
2748 case $am_aux_dir in
2749 *\ * | *\ *)
2750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2751 *)
2752 install_sh="\${SHELL} $am_aux_dir/install-sh"
2753 esac
2754fi
9c60689e 2755
66170b30
JF
2756# Installed binaries are usually stripped using 'strip' when the user
2757# run "make install-strip". However 'strip' might not be the right
2758# tool to use in cross-compilation environments, therefore Automake
2759# will honor the 'STRIP' environment variable to overrule this program.
2760if test "$cross_compiling" != no; then
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}strip; ac_word=$2
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if ${ac_cv_prog_STRIP+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768else
2769 if test -n "$STRIP"; then
2770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783done
2784 done
2785IFS=$as_save_IFS
9c60689e 2786
66170b30
JF
2787fi
2788fi
2789STRIP=$ac_cv_prog_STRIP
2790if test -n "$STRIP"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2792$as_echo "$STRIP" >&6; }
2793else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795$as_echo "no" >&6; }
2796fi
9c60689e 2797
9c60689e 2798
66170b30
JF
2799fi
2800if test -z "$ac_cv_prog_STRIP"; then
2801 ac_ct_STRIP=$STRIP
2802 # Extract the first word of "strip", so it can be a program name with args.
2803set dummy strip; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2807 $as_echo_n "(cached) " >&6
2808else
66170b30
JF
2809 if test -n "$ac_ct_STRIP"; then
2810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819 ac_cv_prog_ac_ct_STRIP="strip"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823done
2824 done
2825IFS=$as_save_IFS
9c60689e
DWT
2826
2827fi
66170b30
JF
2828fi
2829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2830if test -n "$ac_ct_STRIP"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2832$as_echo "$ac_ct_STRIP" >&6; }
2833else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838 if test "x$ac_ct_STRIP" = x; then
2839 STRIP=":"
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842yes:)
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845ac_tool_warned=yes ;;
9c60689e 2846esac
66170b30
JF
2847 STRIP=$ac_ct_STRIP
2848 fi
2849else
2850 STRIP="$ac_cv_prog_STRIP"
2851fi
9c60689e 2852
66170b30
JF
2853fi
2854INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2855
66170b30
JF
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2857$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2858if test -z "$MKDIR_P"; then
2859 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2860 $as_echo_n "(cached) " >&6
2861else
66170b30
JF
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_prog in mkdir gmkdir; do
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2871 'mkdir (GNU coreutils) '* | \
2872 'mkdir (coreutils) '* | \
2873 'mkdir (fileutils) '4.1*)
2874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2875 break 3;;
2876 esac
2877 done
2878 done
2879 done
2880IFS=$as_save_IFS
2881
2882fi
2883
2884 test -d ./--version && rmdir ./--version
2885 if test "${ac_cv_path_mkdir+set}" = set; then
2886 MKDIR_P="$ac_cv_path_mkdir -p"
2887 else
2888 # As a last resort, use the slow shell script. Don't cache a
2889 # value for MKDIR_P within a source directory, because that will
2890 # break other packages using the cache if that directory is
2891 # removed, or if the value is a relative name.
2892 MKDIR_P="$ac_install_sh -d"
2893 fi
2894fi
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2896$as_echo "$MKDIR_P" >&6; }
2897
2898for ac_prog in gawk mawk nawk awk
2899do
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901set dummy $ac_prog; ac_word=$2
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903$as_echo_n "checking for $ac_word... " >&6; }
2904if ${ac_cv_prog_AWK+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906else
2907 if test -n "$AWK"; then
2908 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2909else
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_AWK="$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922 done
2923IFS=$as_save_IFS
2924
2925fi
2926fi
2927AWK=$ac_cv_prog_AWK
2928if test -n "$AWK"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2930$as_echo "$AWK" >&6; }
2931else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933$as_echo "no" >&6; }
2934fi
2935
2936
2937 test -n "$AWK" && break
2938done
2939
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2941$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2942set x ${MAKE-make}
2943ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2944if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946else
2947 cat >conftest.make <<\_ACEOF
2948SHELL = /bin/sh
2949all:
2950 @echo '@@@%%%=$(MAKE)=@@@%%%'
2951_ACEOF
2952# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2953case `${MAKE-make} -f conftest.make 2>/dev/null` in
2954 *@@@%%%=?*=@@@%%%*)
2955 eval ac_cv_prog_make_${ac_make}_set=yes;;
2956 *)
2957 eval ac_cv_prog_make_${ac_make}_set=no;;
2958esac
2959rm -f conftest.make
2960fi
2961if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963$as_echo "yes" >&6; }
2964 SET_MAKE=
2965else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967$as_echo "no" >&6; }
2968 SET_MAKE="MAKE=${MAKE-make}"
2969fi
2970
2971rm -rf .tst 2>/dev/null
2972mkdir .tst 2>/dev/null
2973if test -d .tst; then
2974 am__leading_dot=.
2975else
2976 am__leading_dot=_
2977fi
2978rmdir .tst 2>/dev/null
2979
2980# Check whether --enable-silent-rules was given.
2981if test "${enable_silent_rules+set}" = set; then :
2982 enableval=$enable_silent_rules;
2983fi
2984
2985case $enable_silent_rules in # (((
2986 yes) AM_DEFAULT_VERBOSITY=0;;
2987 no) AM_DEFAULT_VERBOSITY=1;;
2988 *) AM_DEFAULT_VERBOSITY=1;;
2989esac
2990am_make=${MAKE-make}
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2992$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2993if ${am_cv_make_support_nested_variables+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995else
2996 if $as_echo 'TRUE=$(BAR$(V))
2997BAR0=false
2998BAR1=true
2999V=1
3000am__doit:
3001 @$(TRUE)
3002.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3003 am_cv_make_support_nested_variables=yes
3004else
3005 am_cv_make_support_nested_variables=no
3006fi
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3009$as_echo "$am_cv_make_support_nested_variables" >&6; }
3010if test $am_cv_make_support_nested_variables = yes; then
3011 AM_V='$(V)'
3012 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3013else
3014 AM_V=$AM_DEFAULT_VERBOSITY
3015 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3016fi
3017AM_BACKSLASH='\'
3018
3019if test "`cd $srcdir && pwd`" != "`pwd`"; then
3020 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3021 # is not polluted with repeated "-I."
3022 am__isrc=' -I$(srcdir)'
3023 # test to see if srcdir already configured
3024 if test -f $srcdir/config.status; then
3025 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3026 fi
3027fi
3028
3029# test whether we have cygpath
3030if test -z "$CYGPATH_W"; then
3031 if (cygpath --version) >/dev/null 2>/dev/null; then
3032 CYGPATH_W='cygpath -w'
3033 else
3034 CYGPATH_W=echo
3035 fi
3036fi
3037
3038
3039# Define the identity of the package.
3040 PACKAGE='cycript'
3041 VERSION='0.9'
3042
3043
3044cat >>confdefs.h <<_ACEOF
3045#define PACKAGE "$PACKAGE"
3046_ACEOF
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define VERSION "$VERSION"
3051_ACEOF
3052
3053# Some tools Automake needs.
3054
3055ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3056
3057
3058AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3059
3060
3061AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3062
3063
3064AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3065
3066
3067MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3068
3069# For better backward compatibility. To be removed once Automake 1.9.x
3070# dies out for good. For more background, see:
3071# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3072# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3073mkdir_p='$(MKDIR_P)'
3074
3075# We need awk for the "check" target. The system "awk" is bad on
3076# some platforms.
3077# Always define AMTAR for backward compatibility. Yes, it's still used
3078# in the wild :-( We should find a proper way to deprecate it ...
3079AMTAR='$${TAR-tar}'
3080
3081am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3082
3083
3084
3085
3086
66170b30 3087
a243b558
JF
3088ac_ext=cpp
3089ac_cpp='$CXXCPP $CPPFLAGS'
3090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3093if test -z "$CXX"; then
3094 if test -n "$CCC"; then
3095 CXX=$CCC
3096 else
3097 if test -n "$ac_tool_prefix"; then
3098 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3099 do
3100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dbadc56a
DWT
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3104if ${ac_cv_prog_CXX+:} false; then :
dbadc56a
DWT
3105 $as_echo_n "(cached) " >&6
3106else
a243b558
JF
3107 if test -n "$CXX"; then
3108 ac_cv_prog_CXX="$CXX" # Let the user override the test.
dbadc56a
DWT
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3117 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
dbadc56a
DWT
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121done
3122 done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
a243b558
JF
3127CXX=$ac_cv_prog_CXX
3128if test -n "$CXX"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3130$as_echo "$CXX" >&6; }
35fa52c0
DWT
3131else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
3134fi
3135
3136
a243b558 3137 test -n "$CXX" && break
35fa52c0
DWT
3138 done
3139fi
a243b558
JF
3140if test -z "$CXX"; then
3141 ac_ct_CXX=$CXX
3142 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
35fa52c0
DWT
3143do
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145set dummy $ac_prog; ac_word=$2
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
a243b558 3148if ${ac_cv_prog_ac_ct_CXX+:} false; then :
35fa52c0
DWT
3149 $as_echo_n "(cached) " >&6
3150else
a243b558
JF
3151 if test -n "$ac_ct_CXX"; then
3152 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
35fa52c0
DWT
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 3161 ac_cv_prog_ac_ct_CXX="$ac_prog"
35fa52c0
DWT
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165done
3166 done
3167IFS=$as_save_IFS
3168
3169fi
3170fi
a243b558
JF
3171ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3172if test -n "$ac_ct_CXX"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3174$as_echo "$ac_ct_CXX" >&6; }
35fa52c0
DWT
3175else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178fi
3179
3180
a243b558 3181 test -n "$ac_ct_CXX" && break
35fa52c0
DWT
3182done
3183
a243b558
JF
3184 if test "x$ac_ct_CXX" = x; then
3185 CXX="g++"
35fa52c0
DWT
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188yes:)
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191ac_tool_warned=yes ;;
3192esac
a243b558 3193 CXX=$ac_ct_CXX
35fa52c0
DWT
3194 fi
3195fi
3196
a243b558 3197 fi
35fa52c0 3198fi
35fa52c0 3199# Provide some information about the compiler.
a243b558 3200$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
35fa52c0
DWT
3201set X $ac_compile
3202ac_compiler=$2
3203for ac_option in --version -v -V -qversion; do
3204 { { ac_try="$ac_compiler $ac_option >&5"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3212 ac_status=$?
3213 if test -s conftest.err; then
3214 sed '10a\
3215... rest of stderr output deleted ...
3216 10q' conftest.err >conftest.er1
3217 cat conftest.er1 >&5
35fa52c0 3218 fi
9c60689e 3219 rm -f conftest.er1 conftest.err
35fa52c0
DWT
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3222done
3223
3224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225/* end confdefs.h. */
9c60689e 3226
35fa52c0
DWT
3227int
3228main ()
3229{
35fa52c0
DWT
3230
3231 ;
3232 return 0;
3233}
3234_ACEOF
3235ac_clean_files_save=$ac_clean_files
9c60689e 3236ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
35fa52c0
DWT
3237# Try to create an executable without -o first, disregard a.out.
3238# It will help us diagnose broken compilers, and finding out an intuition
3239# of exeext.
a243b558
JF
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3241$as_echo_n "checking whether the C++ compiler works... " >&6; }
35fa52c0
DWT
3242ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243
3244# The possible output files:
3245ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246
3247ac_rmfiles=
3248for ac_file in $ac_files
3249do
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 esac
3254done
3255rm -f $ac_rmfiles
3256
3257if { { ac_try="$ac_link_default"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link_default") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270# in a Makefile. We should not override ac_cv_exeext if it was cached,
3271# so that the user can short-circuit this test for compilers unknown to
3272# Autoconf.
3273for ac_file in $ac_files ''
3274do
3275 test -f "$ac_file" || continue
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278 ;;
3279 [ab].out )
3280 # We found the default executable, but exeext='' is most
3281 # certainly right.
3282 break;;
3283 *.* )
3284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3285 then :; else
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 fi
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3292 # actually working.
3293 break;;
3294 * )
3295 break;;
3296 esac
3297done
3298test "$ac_cv_exeext" = no && ac_cv_exeext=
3299
3300else
3301 ac_file=''
3302fi
35fa52c0 3303if test -z "$ac_file"; then :
9c60689e
DWT
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
3306$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3311as_fn_error 77 "C++ compiler cannot create executables
ee134472 3312See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3313else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315$as_echo "yes" >&6; }
35fa52c0 3316fi
a243b558
JF
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3318$as_echo_n "checking for C++ compiler default output file name... " >&6; }
9c60689e
DWT
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3320$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3321ac_exeext=$ac_cv_exeext
3322
9c60689e 3323rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3324ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3326$as_echo_n "checking for suffix of executables... " >&6; }
3327if { { ac_try="$ac_link"
3328case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3339# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3340# work properly (i.e., refer to `conftest.exe'), while it won't with
3341# `rm'.
3342for ac_file in conftest.exe conftest conftest.*; do
3343 test -f "$ac_file" || continue
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 break;;
3348 * ) break;;
3349 esac
3350done
3351else
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3354as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3355See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3356fi
9c60689e 3357rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3359$as_echo "$ac_cv_exeext" >&6; }
3360
3361rm -f conftest.$ac_ext
3362EXEEXT=$ac_cv_exeext
3363ac_exeext=$EXEEXT
9c60689e
DWT
3364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h. */
3366#include <stdio.h>
3367int
3368main ()
3369{
3370FILE *f = fopen ("conftest.out", "w");
3371 return ferror (f) || fclose (f) != 0;
3372
3373 ;
3374 return 0;
3375}
3376_ACEOF
3377ac_clean_files="$ac_clean_files conftest.out"
3378# Check that the compiler produces executables we can run. If not, either
3379# the compiler is broken, or we cross compile.
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381$as_echo_n "checking whether we are cross compiling... " >&6; }
3382if test "$cross_compiling" != yes; then
3383 { { ac_try="$ac_link"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 if { ac_try='./conftest$ac_cv_exeext'
3395 { { case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400$as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; }; then
3405 cross_compiling=no
3406 else
3407 if test "$cross_compiling" = maybe; then
3408 cross_compiling=yes
3409 else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a243b558 3412as_fn_error $? "cannot run C++ compiled programs.
9c60689e 3413If you meant to cross compile, use \`--host'.
ee134472 3414See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3415 fi
3416 fi
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419$as_echo "$cross_compiling" >&6; }
3420
3421rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3422ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3425if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3426 $as_echo_n "(cached) " >&6
3427else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h. */
3430
3431int
3432main ()
3433{
3434
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439rm -f conftest.o conftest.obj
3440if { { ac_try="$ac_compile"
3441case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446$as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compile") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 break;;
3457 esac
3458done
3459else
3460 $as_echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3465as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3466See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3467fi
3468rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471$as_echo "$ac_cv_objext" >&6; }
3472OBJEXT=$ac_cv_objext
3473ac_objext=$OBJEXT
a243b558
JF
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3475$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3476if ${ac_cv_cxx_compiler_gnu+:} false; then :
35fa52c0
DWT
3477 $as_echo_n "(cached) " >&6
3478else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h. */
3481
3482int
3483main ()
3484{
3485#ifndef __GNUC__
3486 choke me
3487#endif
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
a243b558 3493if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3494 ac_compiler_gnu=yes
3495else
3496 ac_compiler_gnu=no
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3499ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3500
3501fi
a243b558
JF
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3503$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
35fa52c0 3504if test $ac_compiler_gnu = yes; then
a243b558 3505 GXX=yes
35fa52c0 3506else
a243b558 3507 GXX=
35fa52c0 3508fi
a243b558
JF
3509ac_test_CXXFLAGS=${CXXFLAGS+set}
3510ac_save_CXXFLAGS=$CXXFLAGS
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3512$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3513if ${ac_cv_prog_cxx_g+:} false; then :
35fa52c0
DWT
3514 $as_echo_n "(cached) " >&6
3515else
a243b558
JF
3516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3517 ac_cxx_werror_flag=yes
3518 ac_cv_prog_cxx_g=no
3519 CXXFLAGS="-g"
35fa52c0
DWT
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h. */
3522
3523int
3524main ()
3525{
3526
3527 ;
3528 return 0;
3529}
3530_ACEOF
a243b558
JF
3531if ac_fn_cxx_try_compile "$LINENO"; then :
3532 ac_cv_prog_cxx_g=yes
35fa52c0 3533else
a243b558 3534 CXXFLAGS=""
35fa52c0
DWT
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h. */
3537
3538int
3539main ()
3540{
3541
3542 ;
3543 return 0;
3544}
3545_ACEOF
a243b558 3546if ac_fn_cxx_try_compile "$LINENO"; then :
35fa52c0
DWT
3547
3548else
a243b558
JF
3549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3550 CXXFLAGS="-g"
35fa52c0
DWT
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h. */
3553
3554int
3555main ()
3556{
3557
3558 ;
3559 return 0;
3560}
3561_ACEOF
a243b558
JF
3562if ac_fn_cxx_try_compile "$LINENO"; then :
3563 ac_cv_prog_cxx_g=yes
35fa52c0
DWT
3564fi
3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566fi
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568fi
3569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a243b558 3570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
35fa52c0 3571fi
a243b558
JF
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3573$as_echo "$ac_cv_prog_cxx_g" >&6; }
3574if test "$ac_test_CXXFLAGS" = set; then
3575 CXXFLAGS=$ac_save_CXXFLAGS
3576elif test $ac_cv_prog_cxx_g = yes; then
3577 if test "$GXX" = yes; then
3578 CXXFLAGS="-g -O2"
35fa52c0 3579 else
a243b558 3580 CXXFLAGS="-g"
35fa52c0
DWT
3581 fi
3582else
a243b558
JF
3583 if test "$GXX" = yes; then
3584 CXXFLAGS="-O2"
35fa52c0 3585 else
a243b558 3586 CXXFLAGS=
35fa52c0
DWT
3587 fi
3588fi
a243b558
JF
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594DEPDIR="${am__leading_dot}deps"
35fa52c0 3595
a243b558 3596ac_config_commands="$ac_config_commands depfiles"
35fa52c0 3597
35fa52c0 3598
a243b558
JF
3599am_make=${MAKE-make}
3600cat > confinc << 'END'
3601am__doit:
3602 @echo this is the am__doit target
3603.PHONY: am__doit
3604END
3605# If we don't find an include directive, just comment out the code.
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3607$as_echo_n "checking for style of include used by $am_make... " >&6; }
3608am__include="#"
3609am__quote=
3610_am_result=none
3611# First try GNU make style include.
3612echo "include confinc" > confmf
3613# Ignore all kinds of additional output from 'make'.
3614case `$am_make -s -f confmf 2> /dev/null` in #(
3615*the\ am__doit\ target*)
3616 am__include=include
3617 am__quote=
3618 _am_result=GNU
3619 ;;
3620esac
3621# Now try BSD make style include.
3622if test "$am__include" = "#"; then
3623 echo '.include "confinc"' > confmf
3624 case `$am_make -s -f confmf 2> /dev/null` in #(
3625 *the\ am__doit\ target*)
3626 am__include=.include
3627 am__quote="\""
3628 _am_result=BSD
3629 ;;
3630 esac
35fa52c0 3631fi
35fa52c0 3632
a243b558
JF
3633
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3635$as_echo "$_am_result" >&6; }
3636rm -f confinc confmf
3637
3638# Check whether --enable-dependency-tracking was given.
3639if test "${enable_dependency_tracking+set}" = set; then :
3640 enableval=$enable_dependency_tracking;
35fa52c0 3641fi
35fa52c0 3642
a243b558
JF
3643if test "x$enable_dependency_tracking" != xno; then
3644 am_depcomp="$ac_aux_dir/depcomp"
3645 AMDEPBACKSLASH='\'
3646 am__nodep='_no'
3647fi
3648 if test "x$enable_dependency_tracking" != xno; then
3649 AMDEP_TRUE=
3650 AMDEP_FALSE='#'
3651else
3652 AMDEP_TRUE='#'
3653 AMDEP_FALSE=
35fa52c0
DWT
3654fi
3655
35fa52c0 3656
a243b558
JF
3657
3658depcc="$CXX" am_compiler_list=
66170b30
JF
3659
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3661$as_echo_n "checking dependency style of $depcc... " >&6; }
a243b558 3662if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
66170b30
JF
3663 $as_echo_n "(cached) " >&6
3664else
3665 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3666 # We make a subdir and do the tests there. Otherwise we can end up
3667 # making bogus files that we don't know about and never remove. For
3668 # instance it was reported that on HP-UX the gcc test will end up
3669 # making a dummy file named 'D' -- because '-MD' means "put the output
3670 # in D".
3671 rm -rf conftest.dir
3672 mkdir conftest.dir
3673 # Copy depcomp to subdir because otherwise we won't find it if we're
3674 # using a relative directory.
3675 cp "$am_depcomp" conftest.dir
3676 cd conftest.dir
3677 # We will build objects and dependencies in a subdirectory because
3678 # it helps to detect inapplicable dependency modes. For instance
3679 # both Tru64's cc and ICC support -MD to output dependencies as a
3680 # side effect of compilation, but ICC will put the dependencies in
3681 # the current directory while Tru64 will put them in the object
3682 # directory.
3683 mkdir sub
3684
a243b558 3685 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3686 if test "$am_compiler_list" = ""; then
3687 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3688 fi
3689 am__universal=false
3690 case " $depcc " in #(
3691 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3692 esac
3693
3694 for depmode in $am_compiler_list; do
3695 # Setup a source with many dependencies, because some compilers
3696 # like to wrap large dependency lists on column 80 (with \), and
3697 # we should not choose a depcomp mode which is confused by this.
3698 #
3699 # We need to recreate these files for each test, as the compiler may
3700 # overwrite some of them when testing with obscure command lines.
3701 # This happens at least with the AIX C compiler.
3702 : > sub/conftest.c
3703 for i in 1 2 3 4 5 6; do
3704 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3705 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3706 # Solaris 10 /bin/sh.
3707 echo '/* dummy */' > sub/conftst$i.h
3708 done
3709 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3710
3711 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3712 # mode. It turns out that the SunPro C++ compiler does not properly
3713 # handle '-M -o', and we need to detect this. Also, some Intel
3714 # versions had trouble with output in subdirs.
3715 am__obj=sub/conftest.${OBJEXT-o}
3716 am__minus_obj="-o $am__obj"
3717 case $depmode in
3718 gcc)
3719 # This depmode causes a compiler race in universal mode.
3720 test "$am__universal" = false || continue
3721 ;;
3722 nosideeffect)
3723 # After this tag, mechanisms are not by side-effect, so they'll
3724 # only be used when explicitly requested.
3725 if test "x$enable_dependency_tracking" = xyes; then
3726 continue
3727 else
3728 break
3729 fi
3730 ;;
3731 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3732 # This compiler won't grok '-c -o', but also, the minuso test has
3733 # not run yet. These depmodes are late enough in the game, and
3734 # so weak that their functioning should not be impacted.
3735 am__obj=conftest.${OBJEXT-o}
3736 am__minus_obj=
3737 ;;
3738 none) break ;;
3739 esac
3740 if depmode=$depmode \
3741 source=sub/conftest.c object=$am__obj \
3742 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3743 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3744 >/dev/null 2>conftest.err &&
3745 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3746 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3747 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3748 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3749 # icc doesn't choke on unknown options, it will just issue warnings
3750 # or remarks (even with -Werror). So we grep stderr for any message
3751 # that says an option was ignored or not supported.
3752 # When given -MP, icc 7.0 and 7.1 complain thusly:
3753 # icc: Command line warning: ignoring option '-M'; no argument required
3754 # The diagnosis changed in icc 8.0:
3755 # icc: Command line remark: option '-MP' not supported
3756 if (grep 'ignoring option' conftest.err ||
3757 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a243b558 3758 am_cv_CXX_dependencies_compiler_type=$depmode
66170b30
JF
3759 break
3760 fi
3761 fi
3762 done
3763
3764 cd ..
3765 rm -rf conftest.dir
3766else
a243b558 3767 am_cv_CXX_dependencies_compiler_type=none
66170b30
JF
3768fi
3769
3770fi
a243b558
JF
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3772$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3773CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
66170b30
JF
3774
3775 if
3776 test "x$enable_dependency_tracking" != xno \
a243b558
JF
3777 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3778 am__fastdepCXX_TRUE=
3779 am__fastdepCXX_FALSE='#'
66170b30 3780else
a243b558
JF
3781 am__fastdepCXX_TRUE='#'
3782 am__fastdepCXX_FALSE=
66170b30
JF
3783fi
3784
3785
a243b558
JF
3786ac_ext=mm
3787ac_cpp='$OBJCXXCPP $CPPFLAGS'
3788ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3791if test -n "$ac_tool_prefix"; then
3792 for ac_prog in g++ objc++ objcxx c++ CXX
3793 do
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
3798if ${ac_cv_prog_OBJCXX+:} false; then :
35fa52c0
DWT
3799 $as_echo_n "(cached) " >&6
3800else
a243b558
JF
3801 if test -n "$OBJCXX"; then
3802 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
35fa52c0
DWT
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
9c60689e
DWT
3816 done
3817IFS=$as_save_IFS
35fa52c0 3818
9c60689e 3819fi
a243b558
JF
3820fi
3821OBJCXX=$ac_cv_prog_OBJCXX
3822if test -n "$OBJCXX"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3824$as_echo "$OBJCXX" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
35fa52c0 3829
35fa52c0 3830
a243b558
JF
3831 test -n "$OBJCXX" && break
3832 done
3833fi
3834if test -z "$OBJCXX"; then
3835 ac_ct_OBJCXX=$OBJCXX
3836 for ac_prog in g++ objc++ objcxx c++ CXX
3837do
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839set dummy $ac_prog; ac_word=$2
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841$as_echo_n "checking for $ac_word... " >&6; }
3842if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
9c60689e
DWT
3843 $as_echo_n "(cached) " >&6
3844else
a243b558
JF
3845 if test -n "$ac_ct_OBJCXX"; then
3846 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
9c60689e
DWT
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
9c60689e 3853 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859done
9c60689e
DWT
3860 done
3861IFS=$as_save_IFS
a243b558
JF
3862
3863fi
3864fi
3865ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3866if test -n "$ac_ct_OBJCXX"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3868$as_echo "$ac_ct_OBJCXX" >&6; }
9c60689e 3869else
a243b558
JF
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871$as_echo "no" >&6; }
9c60689e 3872fi
6b66678a
DWT
3873
3874
a243b558
JF
3875 test -n "$ac_ct_OBJCXX" && break
3876done
6b66678a 3877
a243b558
JF
3878 if test "x$ac_ct_OBJCXX" = x; then
3879 OBJCXX="g++"
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882yes:)
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885ac_tool_warned=yes ;;
9c60689e 3886esac
a243b558 3887 OBJCXX=$ac_ct_OBJCXX
9c60689e 3888 fi
9c60689e 3889fi
6b66678a 3890
a243b558
JF
3891# Provide some information about the compiler.
3892$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3893set X $ac_compile
3894ac_compiler=$2
3895for ac_option in --version -v -V -qversion; do
3896 { { ac_try="$ac_compiler $ac_option >&5"
3897case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900esac
3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902$as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3904 ac_status=$?
3905 if test -s conftest.err; then
3906 sed '10a\
3907... rest of stderr output deleted ...
3908 10q' conftest.err >conftest.er1
3909 cat conftest.er1 >&5
3910 fi
3911 rm -f conftest.er1 conftest.err
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914done
6b66678a 3915
a243b558
JF
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3917$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3918if ${ac_cv_objcxx_compiler_gnu+:} false; then :
9c60689e 3919 $as_echo_n "(cached) " >&6
6b66678a 3920else
a243b558
JF
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
6b66678a 3923
a243b558
JF
3924int
3925main ()
3926{
3927#ifndef __GNUC__
3928 choke me
3929#endif
3930
3931 ;
3932 return 0;
3933}
3934_ACEOF
3935if ac_fn_objcxx_try_compile "$LINENO"; then :
3936 ac_compiler_gnu=yes
9c60689e 3937else
a243b558 3938 ac_compiler_gnu=no
6b66678a 3939fi
a243b558
JF
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
3942
3943fi
a243b558
JF
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3945$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3946if test $ac_compiler_gnu = yes; then
3947 GOBJCXX=yes
3948else
3949 GOBJCXX=
3950fi
3951ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3952ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3954$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3955if ${ac_cv_prog_objcxx_g+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957else
3958 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3959 ac_objcxx_werror_flag=yes
3960 ac_cv_prog_objcxx_g=no
3961 OBJCXXFLAGS="-g"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
309b0535 3964
a243b558
JF
3965int
3966main ()
3967{
309b0535 3968
a243b558
JF
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973if ac_fn_objcxx_try_compile "$LINENO"; then :
3974 ac_cv_prog_objcxx_g=yes
3975else
3976 OBJCXXFLAGS=""
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h. */
309b0535 3979
a243b558
JF
3980int
3981main ()
3982{
309b0535 3983
a243b558
JF
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988if ac_fn_objcxx_try_compile "$LINENO"; then :
309b0535 3989
a243b558
JF
3990else
3991 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3992 OBJCXXFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h. */
309b0535 3995
a243b558
JF
3996int
3997main ()
3998{
309b0535 3999
a243b558
JF
4000 ;
4001 return 0;
4002}
4003_ACEOF
4004if ac_fn_objcxx_try_compile "$LINENO"; then :
4005 ac_cv_prog_objcxx_g=yes
9c60689e 4006fi
a243b558 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4008fi
a243b558 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4010fi
a243b558
JF
4011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
9c60689e 4013fi
a243b558
JF
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4015$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4016if test "$ac_test_OBJCXXFLAGS" = set; then
4017 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4018elif test $ac_cv_prog_objcxx_g = yes; then
4019 if test "$GOBJCXX" = yes; then
4020 OBJCXXFLAGS="-g -O2"
4021 else
4022 OBJCXXFLAGS="-g"
4023 fi
9c60689e 4024else
a243b558
JF
4025 if test "$GOBJCXX" = yes; then
4026 OBJCXXFLAGS="-O2"
4027 else
4028 OBJCXXFLAGS=
4029 fi
9c60689e 4030fi
a243b558
JF
4031ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4036
a243b558 4037depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
309b0535 4038
a243b558
JF
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4040$as_echo_n "checking dependency style of $depcc... " >&6; }
4041if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043else
4044 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4045 # We make a subdir and do the tests there. Otherwise we can end up
4046 # making bogus files that we don't know about and never remove. For
4047 # instance it was reported that on HP-UX the gcc test will end up
4048 # making a dummy file named 'D' -- because '-MD' means "put the output
4049 # in D".
4050 rm -rf conftest.dir
4051 mkdir conftest.dir
4052 # Copy depcomp to subdir because otherwise we won't find it if we're
4053 # using a relative directory.
4054 cp "$am_depcomp" conftest.dir
4055 cd conftest.dir
4056 # We will build objects and dependencies in a subdirectory because
4057 # it helps to detect inapplicable dependency modes. For instance
4058 # both Tru64's cc and ICC support -MD to output dependencies as a
4059 # side effect of compilation, but ICC will put the dependencies in
4060 # the current directory while Tru64 will put them in the object
4061 # directory.
4062 mkdir sub
309b0535 4063
a243b558
JF
4064 am_cv_OBJCXX_dependencies_compiler_type=none
4065 if test "$am_compiler_list" = ""; then
4066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4067 fi
4068 am__universal=false
309b0535 4069
9c60689e 4070
a243b558
JF
4071 for depmode in $am_compiler_list; do
4072 # Setup a source with many dependencies, because some compilers
4073 # like to wrap large dependency lists on column 80 (with \), and
4074 # we should not choose a depcomp mode which is confused by this.
4075 #
4076 # We need to recreate these files for each test, as the compiler may
4077 # overwrite some of them when testing with obscure command lines.
4078 # This happens at least with the AIX C compiler.
4079 : > sub/conftest.c
4080 for i in 1 2 3 4 5 6; do
4081 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4082 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4083 # Solaris 10 /bin/sh.
4084 echo '/* dummy */' > sub/conftst$i.h
4085 done
4086 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4087
a243b558
JF
4088 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4089 # mode. It turns out that the SunPro C++ compiler does not properly
4090 # handle '-M -o', and we need to detect this. Also, some Intel
4091 # versions had trouble with output in subdirs.
4092 am__obj=sub/conftest.${OBJEXT-o}
4093 am__minus_obj="-o $am__obj"
4094 case $depmode in
4095 gcc)
4096 # This depmode causes a compiler race in universal mode.
4097 test "$am__universal" = false || continue
4098 ;;
4099 nosideeffect)
4100 # After this tag, mechanisms are not by side-effect, so they'll
4101 # only be used when explicitly requested.
4102 if test "x$enable_dependency_tracking" = xyes; then
4103 continue
4104 else
4105 break
309b0535 4106 fi
a243b558
JF
4107 ;;
4108 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4109 # This compiler won't grok '-c -o', but also, the minuso test has
4110 # not run yet. These depmodes are late enough in the game, and
4111 # so weak that their functioning should not be impacted.
4112 am__obj=conftest.${OBJEXT-o}
4113 am__minus_obj=
4114 ;;
4115 none) break ;;
4116 esac
4117 if depmode=$depmode \
4118 source=sub/conftest.c object=$am__obj \
4119 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4120 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4121 >/dev/null 2>conftest.err &&
4122 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4123 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4124 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4125 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4126 # icc doesn't choke on unknown options, it will just issue warnings
4127 # or remarks (even with -Werror). So we grep stderr for any message
4128 # that says an option was ignored or not supported.
4129 # When given -MP, icc 7.0 and 7.1 complain thusly:
4130 # icc: Command line warning: ignoring option '-M'; no argument required
4131 # The diagnosis changed in icc 8.0:
4132 # icc: Command line remark: option '-MP' not supported
4133 if (grep 'ignoring option' conftest.err ||
4134 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4135 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4136 break
4137 fi
4138 fi
309b0535 4139 done
a243b558
JF
4140
4141 cd ..
4142 rm -rf conftest.dir
4143else
4144 am_cv_OBJCXX_dependencies_compiler_type=none
9c60689e 4145fi
a243b558 4146
9c60689e 4147fi
a243b558
JF
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4149$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4150OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4151
4152 if
4153 test "x$enable_dependency_tracking" != xno \
4154 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4155 am__fastdepOBJCXX_TRUE=
4156 am__fastdepOBJCXX_FALSE='#'
9c60689e 4157else
a243b558
JF
4158 am__fastdepOBJCXX_TRUE='#'
4159 am__fastdepOBJCXX_FALSE=
4160fi
4161
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4170set dummy ${ac_tool_prefix}gcc; ac_word=$2
35fa52c0
DWT
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4173if ${ac_cv_prog_CC+:} false; then :
35fa52c0
DWT
4174 $as_echo_n "(cached) " >&6
4175else
a243b558
JF
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
35fa52c0
DWT
4178else
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
35fa52c0
DWT
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190done
4191 done
4192IFS=$as_save_IFS
4193
4194fi
4195fi
a243b558
JF
4196CC=$ac_cv_prog_CC
4197if test -n "$CC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199$as_echo "$CC" >&6; }
35fa52c0
DWT
4200else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203fi
4204
4205
35fa52c0 4206fi
a243b558
JF
4207if test -z "$ac_cv_prog_CC"; then
4208 ac_ct_CC=$CC
4209 # Extract the first word of "gcc", so it can be a program name with args.
4210set dummy gcc; ac_word=$2
35fa52c0
DWT
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
a243b558 4213if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4214 $as_echo_n "(cached) " >&6
4215else
a243b558
JF
4216 if test -n "$ac_ct_CC"; then
4217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 4226 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230done
4231 done
4232IFS=$as_save_IFS
4233
4234fi
4235fi
a243b558
JF
4236ac_ct_CC=$ac_cv_prog_ac_ct_CC
4237if test -n "$ac_ct_CC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4239$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
4240else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242$as_echo "no" >&6; }
4243fi
4244
a243b558
JF
4245 if test "x$ac_ct_CC" = x; then
4246 CC=""
35fa52c0
DWT
4247 else
4248 case $cross_compiling:$ac_tool_warned in
4249yes:)
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252ac_tool_warned=yes ;;
4253esac
a243b558 4254 CC=$ac_ct_CC
35fa52c0 4255 fi
a243b558
JF
4256else
4257 CC="$ac_cv_prog_CC"
35fa52c0
DWT
4258fi
4259
a243b558
JF
4260if test -z "$CC"; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4263set dummy ${ac_tool_prefix}cc; ac_word=$2
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if ${ac_cv_prog_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC="$CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_CC="${ac_tool_prefix}cc"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
ee134472 4282 fi
a243b558
JF
4283done
4284 done
4285IFS=$as_save_IFS
9c60689e 4286
35fa52c0 4287fi
a243b558
JF
4288fi
4289CC=$ac_cv_prog_CC
4290if test -n "$CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292$as_echo "$CC" >&6; }
4293else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
35fa52c0 4297
35fa52c0 4298
a243b558
JF
4299 fi
4300fi
4301if test -z "$CC"; then
4302 # Extract the first word of "cc", so it can be a program name with args.
4303set dummy cc; ac_word=$2
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305$as_echo_n "checking for $ac_word... " >&6; }
4306if ${ac_cv_prog_CC+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308else
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC="$CC" # Let the user override the test.
4311else
4312 ac_prog_rejected=no
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4321 ac_prog_rejected=yes
4322 continue
4323 fi
4324 ac_cv_prog_CC="cc"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328done
4329 done
4330IFS=$as_save_IFS
35fa52c0 4331
a243b558
JF
4332if test $ac_prog_rejected = yes; then
4333 # We found a bogon in the path, so make sure we never use it.
4334 set dummy $ac_cv_prog_CC
4335 shift
4336 if test $# != 0; then
4337 # We chose a different compiler from the bogus one.
4338 # However, it has the same basename, so the bogon will be chosen
4339 # first if we set CC to just the basename; use the full file name.
4340 shift
4341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4342 fi
4343fi
4344fi
4345fi
4346CC=$ac_cv_prog_CC
4347if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349$as_echo "$CC" >&6; }
4350else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353fi
9c60689e
DWT
4354
4355
a243b558
JF
4356fi
4357if test -z "$CC"; then
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog in cl.exe
4360 do
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364$as_echo_n "checking for $ac_word... " >&6; }
4365if ${ac_cv_prog_CC+:} false; then :
9c60689e
DWT
4366 $as_echo_n "(cached) " >&6
4367else
a243b558
JF
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
9c60689e 4381 fi
a243b558
JF
4382done
4383 done
4384IFS=$as_save_IFS
9c60689e 4385
a243b558
JF
4386fi
4387fi
4388CC=$ac_cv_prog_CC
4389if test -n "$CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391$as_echo "$CC" >&6; }
35fa52c0 4392else
a243b558
JF
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
35fa52c0 4395fi
9c60689e 4396
a243b558
JF
4397
4398 test -n "$CC" && break
4399 done
4400fi
4401if test -z "$CC"; then
4402 ac_ct_CC=$CC
4403 for ac_prog in cl.exe
4404do
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406set dummy $ac_prog; ac_word=$2
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408$as_echo_n "checking for $ac_word... " >&6; }
4409if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
4410 $as_echo_n "(cached) " >&6
4411else
a243b558
JF
4412 if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_ac_ct_CC="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426done
4427 done
4428IFS=$as_save_IFS
9c60689e 4429
a243b558
JF
4430fi
4431fi
4432ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433if test -n "$ac_ct_CC"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4435$as_echo "$ac_ct_CC" >&6; }
4436else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
4439fi
35fa52c0 4440
35fa52c0 4441
a243b558
JF
4442 test -n "$ac_ct_CC" && break
4443done
35fa52c0 4444
a243b558
JF
4445 if test "x$ac_ct_CC" = x; then
4446 CC=""
4447 else
4448 case $cross_compiling:$ac_tool_warned in
4449yes:)
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452ac_tool_warned=yes ;;
4453esac
4454 CC=$ac_ct_CC
4455 fi
4456fi
ee134472 4457
a243b558 4458fi
35fa52c0 4459
35fa52c0 4460
a243b558
JF
4461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463as_fn_error $? "no acceptable C compiler found in \$PATH
4464See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 4465
a243b558
JF
4466# Provide some information about the compiler.
4467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4468set X $ac_compile
4469ac_compiler=$2
4470for ac_option in --version -v -V -qversion; do
4471 { { ac_try="$ac_compiler $ac_option >&5"
4472case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
4476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477$as_echo "$ac_try_echo"; } >&5
4478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4479 ac_status=$?
4480 if test -s conftest.err; then
4481 sed '10a\
4482... rest of stderr output deleted ...
4483 10q' conftest.err >conftest.er1
4484 cat conftest.er1 >&5
4485 fi
4486 rm -f conftest.er1 conftest.err
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }
4489done
53ba6704 4490
a243b558
JF
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4493if ${ac_cv_c_compiler_gnu+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495else
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h. */
35fa52c0 4498
a243b558
JF
4499int
4500main ()
4501{
4502#ifndef __GNUC__
4503 choke me
4504#endif
9c60689e 4505
a243b558
JF
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510if ac_fn_c_try_compile "$LINENO"; then :
4511 ac_compiler_gnu=yes
35fa52c0 4512else
a243b558 4513 ac_compiler_gnu=no
35fa52c0 4514fi
a243b558
JF
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516ac_cv_c_compiler_gnu=$ac_compiler_gnu
9c60689e 4517
a243b558
JF
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4520$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4521if test $ac_compiler_gnu = yes; then
4522 GCC=yes
35fa52c0 4523else
a243b558 4524 GCC=
9c60689e 4525fi
a243b558
JF
4526ac_test_CFLAGS=${CFLAGS+set}
4527ac_save_CFLAGS=$CFLAGS
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4529$as_echo_n "checking whether $CC accepts -g... " >&6; }
4530if ${ac_cv_prog_cc_g+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532else
4533 ac_save_c_werror_flag=$ac_c_werror_flag
4534 ac_c_werror_flag=yes
4535 ac_cv_prog_cc_g=no
4536 CFLAGS="-g"
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h. */
9c60689e 4539
a243b558
JF
4540int
4541main ()
4542{
9c60689e 4543
a243b558
JF
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_cv_prog_cc_g=yes
4550else
4551 CFLAGS=""
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h. */
9c60689e 4554
a243b558
JF
4555int
4556main ()
4557{
9c60689e 4558
a243b558
JF
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"; then :
9c60689e 4564
a243b558
JF
4565else
4566 ac_c_werror_flag=$ac_save_c_werror_flag
4567 CFLAGS="-g"
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h. */
35fa52c0 4570
a243b558
JF
4571int
4572main ()
4573{
9c60689e 4574
a243b558
JF
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579if ac_fn_c_try_compile "$LINENO"; then :
4580 ac_cv_prog_cc_g=yes
ee134472 4581fi
a243b558
JF
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583fi
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 ac_c_werror_flag=$ac_save_c_werror_flag
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4590$as_echo "$ac_cv_prog_cc_g" >&6; }
4591if test "$ac_test_CFLAGS" = set; then
4592 CFLAGS=$ac_save_CFLAGS
4593elif test $ac_cv_prog_cc_g = yes; then
4594 if test "$GCC" = yes; then
4595 CFLAGS="-g -O2"
4596 else
4597 CFLAGS="-g"
4598 fi
ee134472 4599else
a243b558
JF
4600 if test "$GCC" = yes; then
4601 CFLAGS="-O2"
4602 else
4603 CFLAGS=
4604 fi
ee134472 4605fi
a243b558
JF
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4608if ${ac_cv_prog_cc_c89+:} false; then :
35fa52c0
DWT
4609 $as_echo_n "(cached) " >&6
4610else
a243b558
JF
4611 ac_cv_prog_cc_c89=no
4612ac_save_CC=$CC
4613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h. */
4615#include <stdarg.h>
4616#include <stdio.h>
4617struct stat;
4618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4619struct buf { int x; };
4620FILE * (*rcsopen) (struct buf *, struct stat *, int);
4621static char *e (p, i)
4622 char **p;
4623 int i;
4624{
4625 return p[i];
4626}
4627static char *f (char * (*g) (char **, int), char **p, ...)
4628{
4629 char *s;
4630 va_list v;
4631 va_start (v,p);
4632 s = g (p, va_arg (v,int));
4633 va_end (v);
4634 return s;
4635}
9c60689e 4636
a243b558
JF
4637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4638 function prototypes and stuff, but not '\xHH' hex character constants.
4639 These don't provoke an error unfortunately, instead are silently treated
4640 as 'x'. The following induces an error, until -std is added to get
4641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4642 array size at least. It's necessary to write '\x00'==0 to get something
4643 that's true only with -std. */
4644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9c60689e 4645
a243b558
JF
4646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4647 inside strings and character constants. */
4648#define FOO(x) 'x'
4649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9c60689e 4650
a243b558
JF
4651int test (int i, double x);
4652struct s1 {int (*f) (int a);};
4653struct s2 {int (*f) (double a);};
4654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4655int argc;
4656char **argv;
4657int
4658main ()
4659{
4660return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9c60689e 4667do
a243b558
JF
4668 CC="$ac_save_CC $ac_arg"
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_prog_cc_c89=$ac_arg
4671fi
4672rm -f core conftest.err conftest.$ac_objext
4673 test "x$ac_cv_prog_cc_c89" != "xno" && break
9c60689e 4674done
a243b558
JF
4675rm -f conftest.$ac_ext
4676CC=$ac_save_CC
35fa52c0 4677
35fa52c0 4678fi
a243b558
JF
4679# AC_CACHE_VAL
4680case "x$ac_cv_prog_cc_c89" in
4681 x)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4683$as_echo "none needed" >&6; } ;;
4684 xno)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4686$as_echo "unsupported" >&6; } ;;
4687 *)
4688 CC="$CC $ac_cv_prog_cc_c89"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4691esac
4692if test "x$ac_cv_prog_cc_c89" != xno; then :
4693
35fa52c0 4694fi
9c60689e 4695
a243b558
JF
4696ac_ext=c
4697ac_cpp='$CPP $CPPFLAGS'
4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701
4702depcc="$CC" am_compiler_list=
9c60689e 4703
a243b558
JF
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4705$as_echo_n "checking dependency style of $depcc... " >&6; }
4706if ${am_cv_CC_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4707 $as_echo_n "(cached) " >&6
4708else
a243b558
JF
4709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4710 # We make a subdir and do the tests there. Otherwise we can end up
4711 # making bogus files that we don't know about and never remove. For
4712 # instance it was reported that on HP-UX the gcc test will end up
4713 # making a dummy file named 'D' -- because '-MD' means "put the output
4714 # in D".
4715 rm -rf conftest.dir
4716 mkdir conftest.dir
4717 # Copy depcomp to subdir because otherwise we won't find it if we're
4718 # using a relative directory.
4719 cp "$am_depcomp" conftest.dir
4720 cd conftest.dir
4721 # We will build objects and dependencies in a subdirectory because
4722 # it helps to detect inapplicable dependency modes. For instance
4723 # both Tru64's cc and ICC support -MD to output dependencies as a
4724 # side effect of compilation, but ICC will put the dependencies in
4725 # the current directory while Tru64 will put them in the object
4726 # directory.
4727 mkdir sub
4728
4729 am_cv_CC_dependencies_compiler_type=none
4730 if test "$am_compiler_list" = ""; then
4731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4732 fi
4733 am__universal=false
4734 case " $depcc " in #(
4735 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4736 esac
4737
4738 for depmode in $am_compiler_list; do
4739 # Setup a source with many dependencies, because some compilers
4740 # like to wrap large dependency lists on column 80 (with \), and
4741 # we should not choose a depcomp mode which is confused by this.
4742 #
4743 # We need to recreate these files for each test, as the compiler may
4744 # overwrite some of them when testing with obscure command lines.
4745 # This happens at least with the AIX C compiler.
4746 : > sub/conftest.c
4747 for i in 1 2 3 4 5 6; do
4748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4749 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4750 # Solaris 10 /bin/sh.
4751 echo '/* dummy */' > sub/conftst$i.h
4752 done
4753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4754
4755 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4756 # mode. It turns out that the SunPro C++ compiler does not properly
4757 # handle '-M -o', and we need to detect this. Also, some Intel
4758 # versions had trouble with output in subdirs.
4759 am__obj=sub/conftest.${OBJEXT-o}
4760 am__minus_obj="-o $am__obj"
4761 case $depmode in
4762 gcc)
4763 # This depmode causes a compiler race in universal mode.
4764 test "$am__universal" = false || continue
4765 ;;
4766 nosideeffect)
4767 # After this tag, mechanisms are not by side-effect, so they'll
4768 # only be used when explicitly requested.
4769 if test "x$enable_dependency_tracking" = xyes; then
4770 continue
4771 else
4772 break
4773 fi
4774 ;;
4775 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4776 # This compiler won't grok '-c -o', but also, the minuso test has
4777 # not run yet. These depmodes are late enough in the game, and
4778 # so weak that their functioning should not be impacted.
4779 am__obj=conftest.${OBJEXT-o}
4780 am__minus_obj=
4781 ;;
4782 none) break ;;
4783 esac
4784 if depmode=$depmode \
4785 source=sub/conftest.c object=$am__obj \
4786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4787 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4788 >/dev/null 2>conftest.err &&
4789 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4790 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4791 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4792 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4793 # icc doesn't choke on unknown options, it will just issue warnings
4794 # or remarks (even with -Werror). So we grep stderr for any message
4795 # that says an option was ignored or not supported.
4796 # When given -MP, icc 7.0 and 7.1 complain thusly:
4797 # icc: Command line warning: ignoring option '-M'; no argument required
4798 # The diagnosis changed in icc 8.0:
4799 # icc: Command line remark: option '-MP' not supported
4800 if (grep 'ignoring option' conftest.err ||
4801 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4802 am_cv_CC_dependencies_compiler_type=$depmode
4803 break
4804 fi
4805 fi
4806 done
9c60689e 4807
a243b558
JF
4808 cd ..
4809 rm -rf conftest.dir
4810else
4811 am_cv_CC_dependencies_compiler_type=none
35fa52c0 4812fi
a243b558 4813
35fa52c0 4814fi
a243b558
JF
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4816$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4817CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4818
4819 if
4820 test "x$enable_dependency_tracking" != xno \
4821 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4822 am__fastdepCC_TRUE=
4823 am__fastdepCC_FALSE='#'
4824else
4825 am__fastdepCC_TRUE='#'
4826 am__fastdepCC_FALSE=
4827fi
4828
4829
4830
4831if test -n "$ac_tool_prefix"; then
4832 for ac_prog in ar lib "link -lib"
4833 do
4834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837$as_echo_n "checking for $ac_word... " >&6; }
4838if ${ac_cv_prog_AR+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840else
4841 if test -n "$AR"; then
4842 ac_cv_prog_AR="$AR" # Let the user override the test.
4843else
4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH
4846do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4854 fi
4855done
4856 done
4857IFS=$as_save_IFS
4858
4859fi
4860fi
4861AR=$ac_cv_prog_AR
4862if test -n "$AR"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4864$as_echo "$AR" >&6; }
35fa52c0
DWT
4865else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867$as_echo "no" >&6; }
4868fi
9c60689e 4869
a243b558
JF
4870
4871 test -n "$AR" && break
4872 done
4873fi
4874if test -z "$AR"; then
4875 ac_ct_AR=$AR
4876 for ac_prog in ar lib "link -lib"
4877do
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879set dummy $ac_prog; ac_word=$2
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881$as_echo_n "checking for $ac_word... " >&6; }
4882if ${ac_cv_prog_ac_ct_AR+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884else
4885 if test -n "$ac_ct_AR"; then
4886 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_ac_ct_AR="$ac_prog"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899done
4900 done
4901IFS=$as_save_IFS
4902
4903fi
4904fi
4905ac_ct_AR=$ac_cv_prog_ac_ct_AR
4906if test -n "$ac_ct_AR"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4908$as_echo "$ac_ct_AR" >&6; }
4909else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
4912fi
4913
4914
4915 test -n "$ac_ct_AR" && break
4916done
4917
4918 if test "x$ac_ct_AR" = x; then
4919 AR="false"
9c60689e
DWT
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922yes:)
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925ac_tool_warned=yes ;;
35fa52c0 4926esac
a243b558 4927 AR=$ac_ct_AR
9c60689e 4928 fi
a243b558
JF
4929fi
4930
4931: ${AR=ar}
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4934$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4935if ${am_cv_ar_interface+:} false; then :
4936 $as_echo_n "(cached) " >&6
9c60689e 4937else
a243b558
JF
4938 am_cv_ar_interface=ar
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h. */
4941int some_variable = 0;
4942_ACEOF
4943if ac_fn_c_try_compile "$LINENO"; then :
4944 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4946 (eval $am_ar_try) 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }
4950 if test "$ac_status" -eq 0; then
4951 am_cv_ar_interface=ar
4952 else
4953 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4955 (eval $am_ar_try) 2>&5
4956 ac_status=$?
4957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958 test $ac_status = 0; }
4959 if test "$ac_status" -eq 0; then
4960 am_cv_ar_interface=lib
4961 else
4962 am_cv_ar_interface=unknown
4963 fi
4964 fi
4965 rm -f conftest.lib libconftest.a
4966
35fa52c0 4967fi
a243b558 4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4969
a243b558
JF
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4972$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 4973
a243b558
JF
4974case $am_cv_ar_interface in
4975ar)
4976 ;;
4977lib)
4978 # Microsoft lib, so override with the ar-lib wrapper script.
4979 # FIXME: It is wrong to rewrite AR.
4980 # But if we don't then we get into trouble of one sort or another.
4981 # A longer-term fix would be to have automake use am__AR in this case,
4982 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4983 # similar.
4984 AR="$am_aux_dir/ar-lib $AR"
4985 ;;
4986unknown)
4987 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4988 ;;
4989esac
35fa52c0 4990
35fa52c0 4991
35fa52c0 4992
a243b558
JF
4993case `pwd` in
4994 *\ * | *\ *)
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4996$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4997esac
35fa52c0
DWT
4998
4999
5000
a243b558
JF
5001macro_version='2.4.2'
5002macro_revision='1.3337'
35fa52c0
DWT
5003
5004
5005
5006
5007
5008
5009
5010
5011
35fa52c0 5012
35fa52c0 5013
ee134472 5014
35fa52c0 5015
a243b558 5016ltmain="$ac_aux_dir/ltmain.sh"
35fa52c0 5017
a243b558
JF
5018# Make sure we can run config.sub.
5019$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5020 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5021
a243b558
JF
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5023$as_echo_n "checking build system type... " >&6; }
5024if ${ac_cv_build+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 ac_build_alias=$build_alias
5028test "x$ac_build_alias" = x &&
5029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5030test "x$ac_build_alias" = x &&
5031 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5032ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5033 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5034
a243b558
JF
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5037$as_echo "$ac_cv_build" >&6; }
5038case $ac_cv_build in
5039*-*-*) ;;
5040*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5041esac
5042build=$ac_cv_build
5043ac_save_IFS=$IFS; IFS='-'
5044set x $ac_cv_build
5045shift
5046build_cpu=$1
5047build_vendor=$2
5048shift; shift
5049# Remember, the first character of IFS is used to create $*,
5050# except with old shells:
5051build_os=$*
5052IFS=$ac_save_IFS
5053case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5054
35fa52c0 5055
a243b558
JF
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5057$as_echo_n "checking host system type... " >&6; }
5058if ${ac_cv_host+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 if test "x$host_alias" = x; then
5062 ac_cv_host=$ac_cv_build
5063else
5064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5065 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5066fi
35fa52c0 5067
a243b558
JF
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5070$as_echo "$ac_cv_host" >&6; }
5071case $ac_cv_host in
5072*-*-*) ;;
5073*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5074esac
5075host=$ac_cv_host
5076ac_save_IFS=$IFS; IFS='-'
5077set x $ac_cv_host
5078shift
5079host_cpu=$1
5080host_vendor=$2
5081shift; shift
5082# Remember, the first character of IFS is used to create $*,
5083# except with old shells:
5084host_os=$*
5085IFS=$ac_save_IFS
5086case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5087
9c60689e 5088
a243b558
JF
5089# Backslashify metacharacters that are still active within
5090# double-quoted strings.
5091sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5092
a243b558
JF
5093# Same as above, but do not quote variable references.
5094double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5095
a243b558
JF
5096# Sed substitution to delay expansion of an escaped shell variable in a
5097# double_quote_subst'ed string.
5098delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5099
a243b558
JF
5100# Sed substitution to delay expansion of an escaped single quote.
5101delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5102
a243b558
JF
5103# Sed substitution to avoid accidental globbing in evaled expressions
5104no_glob_subst='s/\*/\\\*/g'
35fa52c0 5105
a243b558
JF
5106ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5107ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5108ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5109
a243b558
JF
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5111$as_echo_n "checking how to print strings... " >&6; }
5112# Test print first, because it will be a builtin if present.
5113if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5114 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5115 ECHO='print -r --'
5116elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5117 ECHO='printf %s\n'
5118else
5119 # Use this function as a fallback that always works.
5120 func_fallback_echo ()
5121 {
5122 eval 'cat <<_LTECHO_EOF
5123$1
5124_LTECHO_EOF'
5125 }
5126 ECHO='func_fallback_echo'
ee134472
JF
5127fi
5128
a243b558
JF
5129# func_echo_all arg...
5130# Invoke $ECHO with all args, space-separated.
5131func_echo_all ()
5132{
5133 $ECHO ""
5134}
35fa52c0 5135
a243b558
JF
5136case "$ECHO" in
5137 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5138$as_echo "printf" >&6; } ;;
5139 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5140$as_echo "print -r" >&6; } ;;
5141 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5142$as_echo "cat" >&6; } ;;
5143esac
35fa52c0 5144
35fa52c0 5145
ee134472
JF
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
35fa52c0 5156
9c60689e 5157
a243b558
JF
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5159$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5160if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5161 $as_echo_n "(cached) " >&6
5162else
a243b558
JF
5163 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5164 for ac_i in 1 2 3 4 5 6 7; do
5165 ac_script="$ac_script$as_nl$ac_script"
5166 done
5167 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5168 { ac_script=; unset ac_script;}
5169 if test -z "$SED"; then
5170 ac_path_SED_found=false
5171 # Loop through the user's path and test for each of PROGNAME-LIST
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
a243b558 5177 for ac_prog in sed gsed; do
9c60689e 5178 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5179 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5180 as_fn_executable_p "$ac_path_SED" || continue
5181# Check for GNU ac_path_SED and select it if it is found.
5182 # Check for GNU $ac_path_SED
5183case `"$ac_path_SED" --version 2>&1` in
5184*GNU*)
5185 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5186*)
5187 ac_count=0
5188 $as_echo_n 0123456789 >"conftest.in"
5189 while :
5190 do
5191 cat "conftest.in" "conftest.in" >"conftest.tmp"
5192 mv "conftest.tmp" "conftest.in"
5193 cp "conftest.in" "conftest.nl"
5194 $as_echo '' >> "conftest.nl"
5195 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5197 as_fn_arith $ac_count + 1 && ac_count=$as_val
5198 if test $ac_count -gt ${ac_path_SED_max-0}; then
5199 # Best one so far, save it but keep looking for a better one
5200 ac_cv_path_SED="$ac_path_SED"
5201 ac_path_SED_max=$ac_count
5202 fi
5203 # 10*(2^10) chars as input seems more than enough
5204 test $ac_count -gt 10 && break
35fa52c0 5205 done
a243b558
JF
5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207esac
9c60689e 5208
a243b558
JF
5209 $ac_path_SED_found && break 3
5210 done
5211 done
9c60689e
DWT
5212 done
5213IFS=$as_save_IFS
a243b558
JF
5214 if test -z "$ac_cv_path_SED"; then
5215 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5216 fi
5217else
a243b558 5218 ac_cv_path_SED=$SED
9c60689e
DWT
5219fi
5220
a243b558
JF
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5223$as_echo "$ac_cv_path_SED" >&6; }
5224 SED="$ac_cv_path_SED"
5225 rm -f conftest.sed
9c60689e 5226
a243b558
JF
5227test -z "$SED" && SED=sed
5228Xsed="$SED -e 1s/^X//"
9c60689e 5229
ee134472 5230
ee134472 5231
9c60689e
DWT
5232
5233
5234
5235
5236
5237
5238
5239
a243b558
JF
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5241$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5242if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5243 $as_echo_n "(cached) " >&6
5244else
a243b558
JF
5245 if test -z "$GREP"; then
5246 ac_path_GREP_found=false
5247 # Loop through the user's path and test for each of PROGNAME-LIST
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
a243b558 5253 for ac_prog in grep ggrep; do
9c60689e 5254 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5255 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5256 as_fn_executable_p "$ac_path_GREP" || continue
5257# Check for GNU ac_path_GREP and select it if it is found.
5258 # Check for GNU $ac_path_GREP
5259case `"$ac_path_GREP" --version 2>&1` in
5260*GNU*)
5261 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5262*)
5263 ac_count=0
5264 $as_echo_n 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 $as_echo 'GREP' >> "conftest.nl"
5271 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_GREP="$ac_path_GREP"
5277 ac_path_GREP_max=$ac_count
5278 fi
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283esac
9c60689e 5284
a243b558
JF
5285 $ac_path_GREP_found && break 3
5286 done
ee134472 5287 done
a243b558
JF
5288 done
5289IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_GREP"; then
5291 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292 fi
5293else
5294 ac_cv_path_GREP=$GREP
9c60689e 5295fi
a243b558
JF
5296
5297fi
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5299$as_echo "$ac_cv_path_GREP" >&6; }
5300 GREP="$ac_cv_path_GREP"
5301
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5304$as_echo_n "checking for egrep... " >&6; }
5305if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5306 $as_echo_n "(cached) " >&6
5307else
a243b558
JF
5308 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5309 then ac_cv_path_EGREP="$GREP -E"
5310 else
5311 if test -z "$EGREP"; then
5312 ac_path_EGREP_found=false
5313 # Loop through the user's path and test for each of PROGNAME-LIST
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
a243b558 5319 for ac_prog in egrep; do
9c60689e 5320 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5321 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5322 as_fn_executable_p "$ac_path_EGREP" || continue
5323# Check for GNU ac_path_EGREP and select it if it is found.
5324 # Check for GNU $ac_path_EGREP
5325case `"$ac_path_EGREP" --version 2>&1` in
5326*GNU*)
5327 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5328*)
5329 ac_count=0
5330 $as_echo_n 0123456789 >"conftest.in"
5331 while :
5332 do
5333 cat "conftest.in" "conftest.in" >"conftest.tmp"
5334 mv "conftest.tmp" "conftest.in"
5335 cp "conftest.in" "conftest.nl"
5336 $as_echo 'EGREP' >> "conftest.nl"
5337 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339 as_fn_arith $ac_count + 1 && ac_count=$as_val
5340 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5341 # Best one so far, save it but keep looking for a better one
5342 ac_cv_path_EGREP="$ac_path_EGREP"
5343 ac_path_EGREP_max=$ac_count
5344 fi
5345 # 10*(2^10) chars as input seems more than enough
5346 test $ac_count -gt 10 && break
9c60689e 5347 done
a243b558
JF
5348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
9c60689e 5350
a243b558
JF
5351 $ac_path_EGREP_found && break 3
5352 done
5353 done
5354 done
5355IFS=$as_save_IFS
5356 if test -z "$ac_cv_path_EGREP"; then
5357 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5358 fi
9c60689e 5359else
a243b558 5360 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5361fi
5362
a243b558
JF
5363 fi
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5366$as_echo "$ac_cv_path_EGREP" >&6; }
5367 EGREP="$ac_cv_path_EGREP"
ee134472 5368
ee134472 5369
a243b558
JF
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5371$as_echo_n "checking for fgrep... " >&6; }
5372if ${ac_cv_path_FGREP+:} false; then :
5373 $as_echo_n "(cached) " >&6
5374else
5375 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5376 then ac_cv_path_FGREP="$GREP -F"
5377 else
5378 if test -z "$FGREP"; then
5379 ac_path_FGREP_found=false
5380 # Loop through the user's path and test for each of PROGNAME-LIST
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5383do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_prog in fgrep; do
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5389 as_fn_executable_p "$ac_path_FGREP" || continue
5390# Check for GNU ac_path_FGREP and select it if it is found.
5391 # Check for GNU $ac_path_FGREP
5392case `"$ac_path_FGREP" --version 2>&1` in
5393*GNU*)
5394 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5395*)
5396 ac_count=0
5397 $as_echo_n 0123456789 >"conftest.in"
5398 while :
5399 do
5400 cat "conftest.in" "conftest.in" >"conftest.tmp"
5401 mv "conftest.tmp" "conftest.in"
5402 cp "conftest.in" "conftest.nl"
5403 $as_echo 'FGREP' >> "conftest.nl"
5404 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5406 as_fn_arith $ac_count + 1 && ac_count=$as_val
5407 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5408 # Best one so far, save it but keep looking for a better one
5409 ac_cv_path_FGREP="$ac_path_FGREP"
5410 ac_path_FGREP_max=$ac_count
5411 fi
5412 # 10*(2^10) chars as input seems more than enough
5413 test $ac_count -gt 10 && break
5414 done
5415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5416esac
a243b558
JF
5417
5418 $ac_path_FGREP_found && break 3
5419 done
5420 done
5421 done
5422IFS=$as_save_IFS
5423 if test -z "$ac_cv_path_FGREP"; then
5424 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5425 fi
a243b558
JF
5426else
5427 ac_cv_path_FGREP=$FGREP
ee134472
JF
5428fi
5429
a243b558
JF
5430 fi
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5433$as_echo "$ac_cv_path_FGREP" >&6; }
5434 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5435
5436
a243b558 5437test -z "$GREP" && GREP=grep
ee134472
JF
5438
5439
5440
5441
5442
5443
5444
ee134472 5445
ee134472 5446
ee134472 5447
ee134472 5448
ee134472 5449
ee134472
JF
5450
5451
5452
5453
5454
5455
5456
a243b558
JF
5457# Check whether --with-gnu-ld was given.
5458if test "${with_gnu_ld+set}" = set; then :
5459 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5460else
5461 with_gnu_ld=no
5462fi
5463
5464ac_prog=ld
5465if test "$GCC" = yes; then
5466 # Check if gcc -print-prog-name=ld gives a path.
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5468$as_echo_n "checking for ld used by $CC... " >&6; }
5469 case $host in
5470 *-*-mingw*)
5471 # gcc leaves a trailing carriage return which upsets mingw
5472 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5473 *)
5474 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5475 esac
5476 case $ac_prog in
5477 # Accept absolute paths.
5478 [\\/]* | ?:[\\/]*)
5479 re_direlt='/[^/][^/]*/\.\./'
5480 # Canonicalize the pathname of ld
5481 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5482 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5483 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5484 done
5485 test -z "$LD" && LD="$ac_prog"
5486 ;;
5487 "")
5488 # If it fails, then pretend we aren't using GCC.
5489 ac_prog=ld
5490 ;;
5491 *)
5492 # If it is relative, then search for the first ld in PATH.
5493 with_gnu_ld=unknown
5494 ;;
5495 esac
5496elif test "$with_gnu_ld" = yes; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5498$as_echo_n "checking for GNU ld... " >&6; }
5499else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5501$as_echo_n "checking for non-GNU ld... " >&6; }
5502fi
5503if ${lt_cv_path_LD+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505else
5506 if test -z "$LD"; then
5507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5508 for ac_dir in $PATH; do
5509 IFS="$lt_save_ifs"
5510 test -z "$ac_dir" && ac_dir=.
5511 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5512 lt_cv_path_LD="$ac_dir/$ac_prog"
5513 # Check to see if the program is GNU ld. I'd rather use --version,
5514 # but apparently some variants of GNU ld only accept -v.
5515 # Break only if it was the GNU/non-GNU ld that we prefer.
5516 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5517 *GNU* | *'with BFD'*)
5518 test "$with_gnu_ld" != no && break
5519 ;;
5520 *)
5521 test "$with_gnu_ld" != yes && break
5522 ;;
5523 esac
5524 fi
5525 done
5526 IFS="$lt_save_ifs"
5527else
5528 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5529fi
5530fi
5531
5532LD="$lt_cv_path_LD"
5533if test -n "$LD"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5535$as_echo "$LD" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5542$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5543if ${lt_cv_prog_gnu_ld+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545else
5546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5547case `$LD -v 2>&1 </dev/null` in
5548*GNU* | *'with BFD'*)
5549 lt_cv_prog_gnu_ld=yes
5550 ;;
5551*)
5552 lt_cv_prog_gnu_ld=no
5553 ;;
5554esac
5555fi
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5557$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5558with_gnu_ld=$lt_cv_prog_gnu_ld
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5569$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5570if ${lt_cv_path_NM+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572else
5573 if test -n "$NM"; then
5574 # Let the user override the test.
5575 lt_cv_path_NM="$NM"
5576else
5577 lt_nm_to_check="${ac_tool_prefix}nm"
5578 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5579 lt_nm_to_check="$lt_nm_to_check nm"
5580 fi
5581 for lt_tmp_nm in $lt_nm_to_check; do
5582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5583 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5584 IFS="$lt_save_ifs"
5585 test -z "$ac_dir" && ac_dir=.
5586 tmp_nm="$ac_dir/$lt_tmp_nm"
5587 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5588 # Check to see if the nm accepts a BSD-compat flag.
5589 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5590 # nm: unknown option "B" ignored
5591 # Tru64's nm complains that /dev/null is an invalid object file
5592 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5593 */dev/null* | *'Invalid file or object type'*)
5594 lt_cv_path_NM="$tmp_nm -B"
5595 break
5596 ;;
5597 *)
5598 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5599 */dev/null*)
5600 lt_cv_path_NM="$tmp_nm -p"
5601 break
5602 ;;
5603 *)
5604 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5605 continue # so that we can try to find one that supports BSD flags
5606 ;;
5607 esac
5608 ;;
5609 esac
5610 fi
5611 done
5612 IFS="$lt_save_ifs"
5613 done
5614 : ${lt_cv_path_NM=no}
5615fi
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5618$as_echo "$lt_cv_path_NM" >&6; }
5619if test "$lt_cv_path_NM" != "no"; then
5620 NM="$lt_cv_path_NM"
5621else
5622 # Didn't find any BSD compatible name lister, look for dumpbin.
5623 if test -n "$DUMPBIN"; then :
5624 # Let the user override the test.
5625 else
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in dumpbin "link -dump"
5628 do
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5633if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5634 $as_echo_n "(cached) " >&6
5635else
a243b558
JF
5636 if test -n "$DUMPBIN"; then
5637 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5646 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651 done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
a243b558
JF
5656DUMPBIN=$ac_cv_prog_DUMPBIN
5657if test -n "$DUMPBIN"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5659$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5660else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
a243b558
JF
5666 test -n "$DUMPBIN" && break
5667 done
ee134472 5668fi
a243b558
JF
5669if test -z "$DUMPBIN"; then
5670 ac_ct_DUMPBIN=$DUMPBIN
5671 for ac_prog in dumpbin "link -dump"
5672do
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674set dummy $ac_prog; ac_word=$2
ee134472
JF
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5677if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5678 $as_echo_n "(cached) " >&6
5679else
a243b558
JF
5680 if test -n "$ac_ct_DUMPBIN"; then
5681 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695 done
5696IFS=$as_save_IFS
5697
5698fi
5699fi
a243b558
JF
5700ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5701if test -n "$ac_ct_DUMPBIN"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5703$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5704else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707fi
5708
a243b558
JF
5709
5710 test -n "$ac_ct_DUMPBIN" && break
5711done
5712
5713 if test "x$ac_ct_DUMPBIN" = x; then
5714 DUMPBIN=":"
ee134472
JF
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720ac_tool_warned=yes ;;
5721esac
a243b558 5722 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5723 fi
9c60689e
DWT
5724fi
5725
a243b558
JF
5726 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5727 *COFF*)
5728 DUMPBIN="$DUMPBIN -symbols"
5729 ;;
5730 *)
5731 DUMPBIN=:
5732 ;;
5733 esac
5734 fi
9c60689e 5735
a243b558
JF
5736 if test "$DUMPBIN" != ":"; then
5737 NM="$DUMPBIN"
5738 fi
5739fi
5740test -z "$NM" && NM=nm
9c60689e
DWT
5741
5742
5743
5744
5745
a243b558
JF
5746
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5748$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5749if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5750 $as_echo_n "(cached) " >&6
5751else
a243b558
JF
5752 lt_cv_nm_interface="BSD nm"
5753 echo "int some_variable = 0;" > conftest.$ac_ext
5754 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5755 (eval "$ac_compile" 2>conftest.err)
5756 cat conftest.err >&5
5757 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5758 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5759 cat conftest.err >&5
5760 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5761 cat conftest.out >&5
5762 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5763 lt_cv_nm_interface="MS dumpbin"
9c60689e 5764 fi
a243b558 5765 rm -rf conftest*
9c60689e 5766fi
a243b558
JF
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5768$as_echo "$lt_cv_nm_interface" >&6; }
5769
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5771$as_echo_n "checking whether ln -s works... " >&6; }
5772LN_S=$as_ln_s
5773if test "$LN_S" = "ln -s"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5775$as_echo "yes" >&6; }
9c60689e 5776else
a243b558
JF
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5778$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5779fi
5780
a243b558
JF
5781# find the maximum length of command line arguments
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5783$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5784if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5785 $as_echo_n "(cached) " >&6
5786else
a243b558
JF
5787 i=0
5788 teststring="ABCD"
9c60689e 5789
a243b558
JF
5790 case $build_os in
5791 msdosdjgpp*)
5792 # On DJGPP, this test can blow up pretty badly due to problems in libc
5793 # (any single argument exceeding 2000 bytes causes a buffer overrun
5794 # during glob expansion). Even if it were fixed, the result of this
5795 # check would be larger than it should be.
5796 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5797 ;;
9c60689e 5798
a243b558
JF
5799 gnu*)
5800 # Under GNU Hurd, this test is not required because there is
5801 # no limit to the length of command line arguments.
5802 # Libtool will interpret -1 as no limit whatsoever
5803 lt_cv_sys_max_cmd_len=-1;
5804 ;;
9c60689e 5805
a243b558
JF
5806 cygwin* | mingw* | cegcc*)
5807 # On Win9x/ME, this test blows up -- it succeeds, but takes
5808 # about 5 minutes as the teststring grows exponentially.
5809 # Worse, since 9x/ME are not pre-emptively multitasking,
5810 # you end up with a "frozen" computer, even though with patience
5811 # the test eventually succeeds (with a max line length of 256k).
5812 # Instead, let's just punt: use the minimum linelength reported by
5813 # all of the supported platforms: 8192 (on NT/2K/XP).
5814 lt_cv_sys_max_cmd_len=8192;
5815 ;;
9c60689e 5816
a243b558
JF
5817 mint*)
5818 # On MiNT this can take a long time and run out of memory.
5819 lt_cv_sys_max_cmd_len=8192;
5820 ;;
9c60689e 5821
a243b558
JF
5822 amigaos*)
5823 # On AmigaOS with pdksh, this test takes hours, literally.
5824 # So we just punt and use a minimum line length of 8192.
5825 lt_cv_sys_max_cmd_len=8192;
5826 ;;
9c60689e 5827
a243b558
JF
5828 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5829 # This has been around since 386BSD, at least. Likely further.
5830 if test -x /sbin/sysctl; then
5831 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5832 elif test -x /usr/sbin/sysctl; then
5833 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5834 else
5835 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5836 fi
5837 # And add a safety zone
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 ;;
9c60689e 5841
a243b558
JF
5842 interix*)
5843 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5844 lt_cv_sys_max_cmd_len=196608
5845 ;;
9c60689e 5846
a243b558
JF
5847 os2*)
5848 # The test takes a long time on OS/2.
5849 lt_cv_sys_max_cmd_len=8192
5850 ;;
9c60689e 5851
a243b558
JF
5852 osf*)
5853 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5854 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5855 # nice to cause kernel panics so lets avoid the loop below.
5856 # First set a reasonable default.
5857 lt_cv_sys_max_cmd_len=16384
5858 #
5859 if test -x /sbin/sysconfig; then
5860 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5861 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5862 esac
5863 fi
5864 ;;
5865 sco3.2v5*)
5866 lt_cv_sys_max_cmd_len=102400
5867 ;;
5868 sysv5* | sco5v6* | sysv4.2uw2*)
5869 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5870 if test -n "$kargmax"; then
5871 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5872 else
5873 lt_cv_sys_max_cmd_len=32768
5874 fi
9c60689e
DWT
5875 ;;
5876 *)
a243b558
JF
5877 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5878 if test -n "$lt_cv_sys_max_cmd_len"; then
5879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5881 else
5882 # Make teststring a little bigger before we do anything with it.
5883 # a 1K string should be a reasonable start.
5884 for i in 1 2 3 4 5 6 7 8 ; do
5885 teststring=$teststring$teststring
5886 done
5887 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5888 # If test is not a shell built-in, we'll probably end up computing a
5889 # maximum length that is only half of the actual maximum length, but
5890 # we can't tell.
5891 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5892 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5893 test $i != 17 # 1/2 MB should be enough
5894 do
5895 i=`expr $i + 1`
5896 teststring=$teststring$teststring
5897 done
5898 # Only check the string length outside the loop.
5899 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5900 teststring=
5901 # Add a significant safety factor because C++ compilers can tack on
5902 # massive amounts of additional arguments before passing them to the
5903 # linker. It appears as though 1/2 is a usable value.
5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5905 fi
9c60689e
DWT
5906 ;;
5907 esac
ee134472 5908
a243b558 5909fi
ee134472 5910
a243b558
JF
5911if test -n $lt_cv_sys_max_cmd_len ; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5913$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5914else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5916$as_echo "none" >&6; }
5917fi
5918max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
5919
5920
9c60689e
DWT
5921
5922
5923
5924
a243b558
JF
5925: ${CP="cp -f"}
5926: ${MV="mv -f"}
5927: ${RM="rm -f"}
9c60689e 5928
a243b558
JF
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5930$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5931# Try some XSI features
5932xsi_shell=no
5933( _lt_dummy="a/b/c"
5934 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5935 = c,a/b,b/c, \
5936 && eval 'test $(( 1 + 1 )) -eq 2 \
5937 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5938 && xsi_shell=yes
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5940$as_echo "$xsi_shell" >&6; }
9c60689e
DWT
5941
5942
a243b558
JF
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5944$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5945lt_shell_append=no
5946( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5947 >/dev/null 2>&1 \
5948 && lt_shell_append=yes
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5950$as_echo "$lt_shell_append" >&6; }
9c60689e
DWT
5951
5952
a243b558
JF
5953if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5954 lt_unset=unset
5955else
5956 lt_unset=false
5957fi
9c60689e
DWT
5958
5959
5960
5961
5962
a243b558
JF
5963# test EBCDIC or ASCII
5964case `echo X|tr X '\101'` in
5965 A) # ASCII based system
5966 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5967 lt_SP2NL='tr \040 \012'
5968 lt_NL2SP='tr \015\012 \040\040'
5969 ;;
5970 *) # EBCDIC based system
5971 lt_SP2NL='tr \100 \n'
5972 lt_NL2SP='tr \r\n \100\100'
5973 ;;
5974esac
9c60689e
DWT
5975
5976
5977
5978
5979
5980
5981
5982
5983
a243b558
JF
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5985$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5986if ${lt_cv_to_host_file_cmd+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988else
5989 case $host in
5990 *-*-mingw* )
5991 case $build in
5992 *-*-mingw* ) # actually msys
5993 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5994 ;;
5995 *-*-cygwin* )
5996 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5997 ;;
5998 * ) # otherwise, assume *nix
5999 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6000 ;;
6001 esac
6002 ;;
6003 *-*-cygwin* )
6004 case $build in
6005 *-*-mingw* ) # actually msys
6006 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6007 ;;
6008 *-*-cygwin* )
6009 lt_cv_to_host_file_cmd=func_convert_file_noop
6010 ;;
6011 * ) # otherwise, assume *nix
6012 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6013 ;;
6014 esac
6015 ;;
6016 * ) # unhandled hosts (and "normal" native builds)
6017 lt_cv_to_host_file_cmd=func_convert_file_noop
6018 ;;
6019esac
9c60689e 6020
a243b558 6021fi
9c60689e 6022
a243b558
JF
6023to_host_file_cmd=$lt_cv_to_host_file_cmd
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6025$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6026
6027
6028
6029
6030
a243b558
JF
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6032$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6033if ${lt_cv_to_tool_file_cmd+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035else
6036 #assume ordinary cross tools, or native build.
6037lt_cv_to_tool_file_cmd=func_convert_file_noop
6038case $host in
6039 *-*-mingw* )
6040 case $build in
6041 *-*-mingw* ) # actually msys
6042 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6043 ;;
6044 esac
6045 ;;
6046esac
9c60689e 6047
a243b558 6048fi
9c60689e 6049
a243b558
JF
6050to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6052$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6053
9c60689e 6054
9c60689e 6055
9c60689e
DWT
6056
6057
a243b558
JF
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6059$as_echo_n "checking for $LD option to reload object files... " >&6; }
6060if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6061 $as_echo_n "(cached) " >&6
6062else
a243b558
JF
6063 lt_cv_ld_reload_flag='-r'
6064fi
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6066$as_echo "$lt_cv_ld_reload_flag" >&6; }
6067reload_flag=$lt_cv_ld_reload_flag
6068case $reload_flag in
6069"" | " "*) ;;
6070*) reload_flag=" $reload_flag" ;;
6071esac
6072reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6073case $host_os in
a243b558
JF
6074 cygwin* | mingw* | pw32* | cegcc*)
6075 if test "$GCC" != yes; then
6076 reload_cmds=false
6077 fi
6078 ;;
6079 darwin*)
6080 if test "$GCC" = yes; then
6081 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6082 else
6083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084 fi
6085 ;;
9c60689e
DWT
6086esac
6087
9c60689e 6088
9c60689e 6089
9c60689e 6090
9c60689e 6091
9c60689e 6092
9c60689e 6093
9c60689e 6094
9c60689e 6095
a243b558
JF
6096if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6098set dummy ${ac_tool_prefix}objdump; ac_word=$2
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100$as_echo_n "checking for $ac_word... " >&6; }
6101if ${ac_cv_prog_OBJDUMP+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103else
6104 if test -n "$OBJDUMP"; then
6105 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6106else
6107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108for as_dir in $PATH
6109do
6110 IFS=$as_save_IFS
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 break 2
6117 fi
6118done
6119 done
6120IFS=$as_save_IFS
9c60689e 6121
a243b558
JF
6122fi
6123fi
6124OBJDUMP=$ac_cv_prog_OBJDUMP
6125if test -n "$OBJDUMP"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6127$as_echo "$OBJDUMP" >&6; }
6128else
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130$as_echo "no" >&6; }
6131fi
9c60689e 6132
9c60689e 6133
a243b558
JF
6134fi
6135if test -z "$ac_cv_prog_OBJDUMP"; then
6136 ac_ct_OBJDUMP=$OBJDUMP
6137 # Extract the first word of "objdump", so it can be a program name with args.
6138set dummy objdump; ac_word=$2
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
6141if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143else
6144 if test -n "$ac_ct_OBJDUMP"; then
6145 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
9c60689e
DWT
6157 fi
6158done
a243b558
JF
6159 done
6160IFS=$as_save_IFS
9c60689e
DWT
6161
6162fi
9c60689e 6163fi
a243b558
JF
6164ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6165if test -n "$ac_ct_OBJDUMP"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6167$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6168else
a243b558
JF
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
9c60689e
DWT
6171fi
6172
a243b558
JF
6173 if test "x$ac_ct_OBJDUMP" = x; then
6174 OBJDUMP="false"
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177yes:)
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182 OBJDUMP=$ac_ct_OBJDUMP
6183 fi
6184else
6185 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6186fi
6187
a243b558 6188test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6189
6190
6191
6192
6193
6194
6195
6196
6197
a243b558
JF
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6199$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6200if ${lt_cv_deplibs_check_method+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202else
6203 lt_cv_file_magic_cmd='$MAGIC_CMD'
6204lt_cv_file_magic_test_file=
6205lt_cv_deplibs_check_method='unknown'
6206# Need to set the preceding variable on all platforms that support
6207# interlibrary dependencies.
6208# 'none' -- dependencies not supported.
6209# `unknown' -- same as none, but documents that we really don't know.
6210# 'pass_all' -- all dependencies passed with no checks.
6211# 'test_compile' -- check by making test program.
6212# 'file_magic [[regex]]' -- check by looking for files in library path
6213# which responds to the $file_magic_cmd with a given extended regex.
6214# If you have `file' or equivalent on your system and you're not sure
6215# whether `pass_all' will *always* work, you probably want this one.
9c60689e 6216
a243b558
JF
6217case $host_os in
6218aix[4-9]*)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
9c60689e 6221
a243b558
JF
6222beos*)
6223 lt_cv_deplibs_check_method=pass_all
6224 ;;
9c60689e 6225
a243b558
JF
6226bsdi[45]*)
6227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6228 lt_cv_file_magic_cmd='/usr/bin/file -L'
6229 lt_cv_file_magic_test_file=/shlib/libc.so
6230 ;;
9c60689e 6231
a243b558
JF
6232cygwin*)
6233 # func_win32_libid is a shell function defined in ltmain.sh
6234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6235 lt_cv_file_magic_cmd='func_win32_libid'
6236 ;;
9c60689e 6237
a243b558
JF
6238mingw* | pw32*)
6239 # Base MSYS/MinGW do not provide the 'file' command needed by
6240 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6241 # unless we find 'file', for example because we are cross-compiling.
6242 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6243 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6244 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6245 lt_cv_file_magic_cmd='func_win32_libid'
6246 else
6247 # Keep this pattern in sync with the one in func_win32_libid.
6248 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6249 lt_cv_file_magic_cmd='$OBJDUMP -f'
6250 fi
6251 ;;
9c60689e 6252
a243b558
JF
6253cegcc*)
6254 # use the weaker test based on 'objdump'. See mingw*.
6255 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6256 lt_cv_file_magic_cmd='$OBJDUMP -f'
6257 ;;
9c60689e 6258
a243b558
JF
6259darwin* | rhapsody*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
9c60689e 6262
a243b558
JF
6263freebsd* | dragonfly*)
6264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6265 case $host_cpu in
6266 i*86 )
6267 # Not sure whether the presence of OpenBSD here was a mistake.
6268 # Let's accept both of them until this is cleared up.
6269 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6270 lt_cv_file_magic_cmd=/usr/bin/file
6271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6272 ;;
6273 esac
6274 else
6275 lt_cv_deplibs_check_method=pass_all
6276 fi
6277 ;;
9c60689e 6278
a243b558
JF
6279gnu*)
6280 lt_cv_deplibs_check_method=pass_all
6281 ;;
9c60689e 6282
a243b558
JF
6283haiku*)
6284 lt_cv_deplibs_check_method=pass_all
6285 ;;
9c60689e 6286
a243b558
JF
6287hpux10.20* | hpux11*)
6288 lt_cv_file_magic_cmd=/usr/bin/file
6289 case $host_cpu in
6290 ia64*)
6291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6293 ;;
6294 hppa*64*)
6295 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]'
6296 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6297 ;;
6298 *)
6299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6300 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6301 ;;
6302 esac
6303 ;;
9c60689e 6304
a243b558
JF
6305interix[3-9]*)
6306 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6308 ;;
9c60689e 6309
a243b558
JF
6310irix5* | irix6* | nonstopux*)
6311 case $LD in
6312 *-32|*"-32 ") libmagic=32-bit;;
6313 *-n32|*"-n32 ") libmagic=N32;;
6314 *-64|*"-64 ") libmagic=64-bit;;
6315 *) libmagic=never-match;;
6316 esac
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
9c60689e 6319
a243b558
JF
6320# This must be glibc/ELF.
6321linux* | k*bsd*-gnu | kopensolaris*-gnu)
6322 lt_cv_deplibs_check_method=pass_all
6323 ;;
9c60689e 6324
a243b558
JF
6325netbsd*)
6326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6328 else
6329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6330 fi
6331 ;;
9c60689e 6332
a243b558
JF
6333newos6*)
6334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6335 lt_cv_file_magic_cmd=/usr/bin/file
6336 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6337 ;;
9c60689e 6338
a243b558
JF
6339*nto* | *qnx*)
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
9c60689e 6342
a243b558
JF
6343openbsd*)
6344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6346 else
6347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6348 fi
6349 ;;
9c60689e 6350
a243b558
JF
6351osf3* | osf4* | osf5*)
6352 lt_cv_deplibs_check_method=pass_all
6353 ;;
9c60689e 6354
a243b558
JF
6355rdos*)
6356 lt_cv_deplibs_check_method=pass_all
9c60689e 6357 ;;
a243b558
JF
6358
6359solaris*)
6360 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6361 ;;
6362
a243b558
JF
6363sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6364 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6365 ;;
6366
a243b558
JF
6367sysv4 | sysv4.3*)
6368 case $host_vendor in
6369 motorola)
6370 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]'
6371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6372 ;;
6373 ncr)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376 sequent)
6377 lt_cv_file_magic_cmd='/bin/file'
6378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6379 ;;
6380 sni)
6381 lt_cv_file_magic_cmd='/bin/file'
6382 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6383 lt_cv_file_magic_test_file=/lib/libc.so
6384 ;;
6385 siemens)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388 pc)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391 esac
6392 ;;
9c60689e 6393
a243b558
JF
6394tpf*)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397esac
9c60689e 6398
a243b558
JF
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6401$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6402
a243b558
JF
6403file_magic_glob=
6404want_nocaseglob=no
6405if test "$build" = "$host"; then
6406 case $host_os in
6407 mingw* | pw32*)
6408 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6409 want_nocaseglob=yes
6410 else
6411 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6412 fi
6413 ;;
6414 esac
9c60689e 6415fi
9c60689e 6416
a243b558
JF
6417file_magic_cmd=$lt_cv_file_magic_cmd
6418deplibs_check_method=$lt_cv_deplibs_check_method
6419test -z "$deplibs_check_method" && deplibs_check_method=unknown
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
9c60689e 6440
9c60689e 6441
ee134472 6442if test -n "$ac_tool_prefix"; then
a243b558
JF
6443 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6444set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6447if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6448 $as_echo_n "(cached) " >&6
6449else
a243b558
JF
6450 if test -n "$DLLTOOL"; then
6451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6460 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464done
6465 done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
a243b558
JF
6470DLLTOOL=$ac_cv_prog_DLLTOOL
6471if test -n "$DLLTOOL"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6473$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6474else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479
6480fi
a243b558
JF
6481if test -z "$ac_cv_prog_DLLTOOL"; then
6482 ac_ct_DLLTOOL=$DLLTOOL
6483 # Extract the first word of "dlltool", so it can be a program name with args.
6484set dummy dlltool; ac_word=$2
ee134472
JF
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6487if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6488 $as_echo_n "(cached) " >&6
6489else
a243b558
JF
6490 if test -n "$ac_ct_DLLTOOL"; then
6491 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6500 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504done
6505 done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
a243b558
JF
6510ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6511if test -n "$ac_ct_DLLTOOL"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6513$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6514else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517fi
6518
a243b558
JF
6519 if test "x$ac_ct_DLLTOOL" = x; then
6520 DLLTOOL="false"
ee134472
JF
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523yes:)
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526ac_tool_warned=yes ;;
6527esac
a243b558 6528 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6529 fi
6530else
a243b558 6531 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6532fi
6533
a243b558
JF
6534test -z "$DLLTOOL" && DLLTOOL=dlltool
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6546$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6547if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6548 $as_echo_n "(cached) " >&6
6549else
a243b558
JF
6550 lt_cv_sharedlib_from_linklib_cmd='unknown'
6551
6552case $host_os in
6553cygwin* | mingw* | pw32* | cegcc*)
6554 # two different shell functions defined in ltmain.sh
6555 # decide which to use based on capabilities of $DLLTOOL
6556 case `$DLLTOOL --help 2>&1` in
6557 *--identify-strict*)
6558 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6559 ;;
6560 *)
6561 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6562 ;;
6563 esac
6564 ;;
6565*)
6566 # fallback: assume linklib IS sharedlib
6567 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6568 ;;
6569esac
6570
ee134472 6571fi
a243b558
JF
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6573$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6574sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6575test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6576
6577
6578
6579
6580
9c60689e 6581
a243b558
JF
6582
6583if test -n "$ac_tool_prefix"; then
6584 for ac_prog in ar
6585 do
6586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6590if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6591 $as_echo_n "(cached) " >&6
6592else
a243b558
JF
6593 if test -n "$AR"; then
6594 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6603 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607done
6608 done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
a243b558
JF
6613AR=$ac_cv_prog_AR
6614if test -n "$AR"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6616$as_echo "$AR" >&6; }
9c60689e
DWT
6617else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622
a243b558
JF
6623 test -n "$AR" && break
6624 done
9c60689e 6625fi
a243b558
JF
6626if test -z "$AR"; then
6627 ac_ct_AR=$AR
6628 for ac_prog in ar
6629do
6630 # Extract the first word of "$ac_prog", so it can be a program name with args.
6631set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6634if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6635 $as_echo_n "(cached) " >&6
6636else
a243b558
JF
6637 if test -n "$ac_ct_AR"; then
6638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6647 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652 done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
a243b558
JF
6657ac_ct_AR=$ac_cv_prog_ac_ct_AR
6658if test -n "$ac_ct_AR"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6660$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6661else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
a243b558
JF
6666
6667 test -n "$ac_ct_AR" && break
6668done
6669
6670 if test "x$ac_ct_AR" = x; then
6671 AR="false"
9c60689e
DWT
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674yes:)
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677ac_tool_warned=yes ;;
6678esac
a243b558 6679 AR=$ac_ct_AR
9c60689e 6680 fi
a243b558
JF
6681fi
6682
6683: ${AR=ar}
6684: ${AR_FLAGS=cru}
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6697$as_echo_n "checking for archiver @FILE support... " >&6; }
6698if ${lt_cv_ar_at_file+:} false; then :
6699 $as_echo_n "(cached) " >&6
9c60689e 6700else
a243b558
JF
6701 lt_cv_ar_at_file=no
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h. */
6704
6705int
6706main ()
6707{
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713if ac_fn_c_try_compile "$LINENO"; then :
6714 echo conftest.$ac_objext > conftest.lst
6715 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6717 (eval $lt_ar_try) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 test $ac_status = 0; }
6721 if test "$ac_status" -eq 0; then
6722 # Ensure the archiver fails upon bogus file names.
6723 rm -f conftest.$ac_objext libconftest.a
6724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6725 (eval $lt_ar_try) 2>&5
6726 ac_status=$?
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; }
6729 if test "$ac_status" -ne 0; then
6730 lt_cv_ar_at_file=@
6731 fi
6732 fi
6733 rm -f conftest.* libconftest.a
6734
9c60689e 6735fi
a243b558 6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6737
a243b558
JF
6738fi
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6740$as_echo "$lt_cv_ar_at_file" >&6; }
6741
6742if test "x$lt_cv_ar_at_file" = xno; then
6743 archiver_list_spec=
6744else
6745 archiver_list_spec=$lt_cv_ar_at_file
6746fi
6747
6748
6749
6750
6751
6752
6753
6754if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6759if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6760 $as_echo_n "(cached) " >&6
6761else
a243b558
JF
6762 if test -n "$STRIP"; then
6763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777 done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
a243b558
JF
6782STRIP=$ac_cv_prog_STRIP
6783if test -n "$STRIP"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6785$as_echo "$STRIP" >&6; }
9c60689e
DWT
6786else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
a243b558
JF
6793if test -z "$ac_cv_prog_STRIP"; then
6794 ac_ct_STRIP=$STRIP
6795 # Extract the first word of "strip", so it can be a program name with args.
6796set dummy strip; ac_word=$2
9c60689e
DWT
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6799if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6800 $as_echo_n "(cached) " >&6
6801else
a243b558
JF
6802 if test -n "$ac_ct_STRIP"; then
6803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6812 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817 done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
a243b558
JF
6822ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6823if test -n "$ac_ct_STRIP"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6825$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6826else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
a243b558
JF
6831 if test "x$ac_ct_STRIP" = x; then
6832 STRIP=":"
9c60689e
DWT
6833 else
6834 case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
a243b558 6840 STRIP=$ac_ct_STRIP
9c60689e
DWT
6841 fi
6842else
a243b558 6843 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6844fi
6845
a243b558
JF
6846test -z "$STRIP" && STRIP=:
6847
6848
6849
6850
6851
6852
6853if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6858if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6859 $as_echo_n "(cached) " >&6
6860else
a243b558
JF
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876 done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
a243b558
JF
6881RANLIB=$ac_cv_prog_RANLIB
6882if test -n "$RANLIB"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6884$as_echo "$RANLIB" >&6; }
9c60689e
DWT
6885else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890
6891fi
a243b558
JF
6892if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895set dummy ranlib; ac_word=$2
9c60689e
DWT
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6898if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
6899 $as_echo_n "(cached) " >&6
6900else
a243b558
JF
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916 done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
a243b558
JF
6921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922if test -n "$ac_ct_RANLIB"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6924$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
6925else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927$as_echo "no" >&6; }
6928fi
6929
a243b558
JF
6930 if test "x$ac_ct_RANLIB" = x; then
6931 RANLIB=":"
9c60689e
DWT
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937ac_tool_warned=yes ;;
6938esac
a243b558 6939 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
6940 fi
6941else
a243b558 6942 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
6943fi
6944
a243b558
JF
6945test -z "$RANLIB" && RANLIB=:
6946
6947
9c60689e 6948
9c60689e
DWT
6949
6950
a243b558
JF
6951
6952# Determine commands to create old-style static archives.
6953old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6954old_postinstall_cmds='chmod 644 $oldlib'
6955old_postuninstall_cmds=
6956
6957if test -n "$RANLIB"; then
6958 case $host_os in
6959 openbsd*)
6960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6961 ;;
6962 *)
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6964 ;;
6965 esac
6966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
6967fi
6968
a243b558
JF
6969case $host_os in
6970 darwin*)
6971 lock_old_archive_extraction=yes ;;
6972 *)
6973 lock_old_archive_extraction=no ;;
9c60689e 6974esac
9c60689e 6975
9c60689e 6976
9c60689e
DWT
6977
6978
9c60689e 6979
9c60689e 6980
9c60689e
DWT
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
53ba6704 7008
9c60689e 7009
9c60689e 7010
9c60689e 7011
53ba6704 7012
a243b558
JF
7013
7014# If no C compiler was specified, use CC.
7015LTCC=${LTCC-"$CC"}
7016
7017# If no C compiler flags were specified, use CFLAGS.
7018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7019
7020# Allow CC to be a program name with arguments.
7021compiler=$CC
7022
7023
7024# Check for command to grab the raw symbol name followed by C symbol from nm.
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7026$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7027if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7028 $as_echo_n "(cached) " >&6
7029else
ee134472 7030
a243b558
JF
7031# These are sane defaults that work on at least a few old systems.
7032# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7033
a243b558
JF
7034# Character class describing NM global symbol codes.
7035symcode='[BCDEGRST]'
9c60689e 7036
a243b558
JF
7037# Regexp to match symbols that can be accessed directly from C.
7038sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7039
a243b558
JF
7040# Define system-specific variables.
7041case $host_os in
7042aix*)
7043 symcode='[BCDT]'
7044 ;;
7045cygwin* | mingw* | pw32* | cegcc*)
7046 symcode='[ABCDGISTW]'
7047 ;;
7048hpux*)
7049 if test "$host_cpu" = ia64; then
7050 symcode='[ABCDEGRST]'
7051 fi
7052 ;;
7053irix* | nonstopux*)
7054 symcode='[BCDEGRST]'
7055 ;;
7056osf*)
7057 symcode='[BCDEGQRST]'
7058 ;;
7059solaris*)
7060 symcode='[BDRT]'
7061 ;;
7062sco3.2v5*)
7063 symcode='[DT]'
7064 ;;
7065sysv4.2uw2*)
7066 symcode='[DT]'
7067 ;;
7068sysv5* | sco5v6* | unixware* | OpenUNIX*)
7069 symcode='[ABDT]'
7070 ;;
7071sysv4)
7072 symcode='[DFNSTU]'
7073 ;;
7074esac
9c60689e 7075
a243b558
JF
7076# If we're using GNU nm, then use its standard symbol codes.
7077case `$NM -V 2>&1` in
7078*GNU* | *'with BFD'*)
7079 symcode='[ABCDGIRSTW]' ;;
7080esac
9c60689e 7081
a243b558
JF
7082# Transform an extracted symbol line into a proper C declaration.
7083# Some systems (esp. on ia64) link data and code symbols differently,
7084# so use this general approach.
7085lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7086
a243b558
JF
7087# Transform an extracted symbol line into symbol name and symbol address
7088lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7089lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9c60689e 7090
a243b558
JF
7091# Handle CRLF in mingw tool chain
7092opt_cr=
7093case $build_os in
7094mingw*)
7095 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7096 ;;
7097esac
9c60689e 7098
a243b558
JF
7099# Try without a prefix underscore, then with it.
7100for ac_symprfx in "" "_"; do
9c60689e 7101
a243b558
JF
7102 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7103 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7104
a243b558
JF
7105 # Write the raw and C identifiers.
7106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7107 # Fake it for dumpbin and say T for any non-static function
7108 # and D for any global variable.
7109 # Also find C++ and __fastcall symbols from MSVC++,
7110 # which start with @ or ?.
7111 lt_cv_sys_global_symbol_pipe="$AWK '"\
7112" {last_section=section; section=\$ 3};"\
7113" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7114" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7115" \$ 0!~/External *\|/{next};"\
7116" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7117" {if(hide[section]) next};"\
7118" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7119" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7120" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7121" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7122" ' prfx=^$ac_symprfx"
7123 else
7124 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7125 fi
7126 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7127
a243b558
JF
7128 # Check to see that the pipe works correctly.
7129 pipe_works=no
9c60689e 7130
a243b558
JF
7131 rm -rf conftest*
7132 cat > conftest.$ac_ext <<_LT_EOF
7133#ifdef __cplusplus
7134extern "C" {
7135#endif
7136char nm_test_var;
7137void nm_test_func(void);
7138void nm_test_func(void){}
7139#ifdef __cplusplus
7140}
7141#endif
7142int main(){nm_test_var='a';nm_test_func();return(0);}
7143_LT_EOF
9c60689e 7144
a243b558
JF
7145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7146 (eval $ac_compile) 2>&5
7147 ac_status=$?
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }; then
7150 # Now try to grab the symbols.
7151 nlist=conftest.nm
7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7153 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7154 ac_status=$?
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156 test $ac_status = 0; } && test -s "$nlist"; then
7157 # Try sorting and uniquifying the output.
7158 if sort "$nlist" | uniq > "$nlist"T; then
7159 mv -f "$nlist"T "$nlist"
7160 else
7161 rm -f "$nlist"T
7162 fi
9c60689e 7163
a243b558
JF
7164 # Make sure that we snagged all the symbols we need.
7165 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7166 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7167 cat <<_LT_EOF > conftest.$ac_ext
7168/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7169#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7170/* DATA imports from DLLs on WIN32 con't be const, because runtime
7171 relocations are performed -- see ld's documentation on pseudo-relocs. */
7172# define LT_DLSYM_CONST
7173#elif defined(__osf__)
7174/* This system does not cope well with relocations in const data. */
7175# define LT_DLSYM_CONST
7176#else
7177# define LT_DLSYM_CONST const
7178#endif
9c60689e 7179
a243b558
JF
7180#ifdef __cplusplus
7181extern "C" {
7182#endif
9c60689e 7183
a243b558
JF
7184_LT_EOF
7185 # Now generate the symbol file.
7186 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7187
a243b558 7188 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7189
a243b558
JF
7190/* The mapping between symbol names and symbols. */
7191LT_DLSYM_CONST struct {
7192 const char *name;
7193 void *address;
7194}
7195lt__PROGRAM__LTX_preloaded_symbols[] =
7196{
7197 { "@PROGRAM@", (void *) 0 },
7198_LT_EOF
7199 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7200 cat <<\_LT_EOF >> conftest.$ac_ext
7201 {0, (void *) 0}
7202};
9c60689e 7203
a243b558
JF
7204/* This works around a problem in FreeBSD linker */
7205#ifdef FREEBSD_WORKAROUND
7206static const void *lt_preloaded_setup() {
7207 return lt__PROGRAM__LTX_preloaded_symbols;
7208}
7209#endif
9c60689e 7210
a243b558
JF
7211#ifdef __cplusplus
7212}
7213#endif
7214_LT_EOF
7215 # Now try linking the two files.
7216 mv conftest.$ac_objext conftstm.$ac_objext
7217 lt_globsym_save_LIBS=$LIBS
7218 lt_globsym_save_CFLAGS=$CFLAGS
7219 LIBS="conftstm.$ac_objext"
7220 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7222 (eval $ac_link) 2>&5
7223 ac_status=$?
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7226 pipe_works=yes
7227 fi
7228 LIBS=$lt_globsym_save_LIBS
7229 CFLAGS=$lt_globsym_save_CFLAGS
7230 else
7231 echo "cannot find nm_test_func in $nlist" >&5
7232 fi
7233 else
7234 echo "cannot find nm_test_var in $nlist" >&5
7235 fi
7236 else
7237 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7238 fi
7239 else
7240 echo "$progname: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7242 fi
7243 rm -rf conftest* conftst*
9c60689e 7244
a243b558
JF
7245 # Do not use the global_symbol_pipe unless it works.
7246 if test "$pipe_works" = yes; then
7247 break
7248 else
7249 lt_cv_sys_global_symbol_pipe=
7250 fi
7251done
9c60689e 7252
9c60689e 7253fi
9c60689e 7254
a243b558
JF
7255if test -z "$lt_cv_sys_global_symbol_pipe"; then
7256 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7257fi
a243b558
JF
7258if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7260$as_echo "failed" >&6; }
9c60689e 7261else
a243b558
JF
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7263$as_echo "ok" >&6; }
9c60689e
DWT
7264fi
7265
a243b558
JF
7266# Response file support.
7267if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7268 nm_file_list_spec='@'
7269elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7270 nm_file_list_spec='@'
9c60689e 7271fi
9c60689e 7272
9c60689e 7273
9c60689e 7274
9c60689e 7275
9c60689e 7276
9c60689e
DWT
7277
7278
9c60689e 7279
9c60689e 7280
9c60689e
DWT
7281
7282
7283
ee134472
JF
7284
7285
9c60689e
DWT
7286
7287
7288
7289
7290
7291
7292
7293
7294
549f29b5 7295
549f29b5
DWT
7296
7297
549f29b5 7298
a243b558
JF
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7300$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7301
a243b558
JF
7302# Check whether --with-sysroot was given.
7303if test "${with_sysroot+set}" = set; then :
7304 withval=$with_sysroot;
9c60689e 7305else
a243b558 7306 with_sysroot=no
9c60689e
DWT
7307fi
7308
7309
a243b558
JF
7310lt_sysroot=
7311case ${with_sysroot} in #(
7312 yes)
7313 if test "$GCC" = yes; then
7314 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7315 fi
7316 ;; #(
7317 /*)
7318 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7319 ;; #(
7320 no|'')
7321 ;; #(
7322 *)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7324$as_echo "${with_sysroot}" >&6; }
7325 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7326 ;;
7327esac
9c60689e 7328
a243b558
JF
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7330$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7331
7332
7333
7334
7335
a243b558
JF
7336# Check whether --enable-libtool-lock was given.
7337if test "${enable_libtool_lock+set}" = set; then :
7338 enableval=$enable_libtool_lock;
9c60689e
DWT
7339fi
7340
a243b558 7341test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9c60689e 7342
a243b558
JF
7343# Some flags need to be propagated to the compiler or linker for good
7344# libtool support.
7345case $host in
7346ia64-*-hpux*)
7347 # Find out which ABI we are using.
7348 echo 'int i;' > conftest.$ac_ext
7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353 test $ac_status = 0; }; then
7354 case `/usr/bin/file conftest.$ac_objext` in
7355 *ELF-32*)
7356 HPUX_IA64_MODE="32"
7357 ;;
7358 *ELF-64*)
7359 HPUX_IA64_MODE="64"
7360 ;;
7361 esac
7362 fi
7363 rm -rf conftest*
7364 ;;
7365*-*-irix6*)
7366 # Find out which ABI we are using.
7367 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; then
7373 if test "$lt_cv_prog_gnu_ld" = yes; then
7374 case `/usr/bin/file conftest.$ac_objext` in
7375 *32-bit*)
7376 LD="${LD-ld} -melf32bsmip"
7377 ;;
7378 *N32*)
7379 LD="${LD-ld} -melf32bmipn32"
7380 ;;
7381 *64-bit*)
7382 LD="${LD-ld} -melf64bmip"
7383 ;;
7384 esac
7385 else
7386 case `/usr/bin/file conftest.$ac_objext` in
7387 *32-bit*)
7388 LD="${LD-ld} -32"
7389 ;;
7390 *N32*)
7391 LD="${LD-ld} -n32"
7392 ;;
7393 *64-bit*)
7394 LD="${LD-ld} -64"
7395 ;;
7396 esac
7397 fi
7398 fi
7399 rm -rf conftest*
7400 ;;
9c60689e 7401
a243b558
JF
7402x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7403s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7404 # Find out which ABI we are using.
7405 echo 'int i;' > conftest.$ac_ext
7406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7407 (eval $ac_compile) 2>&5
7408 ac_status=$?
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }; then
7411 case `/usr/bin/file conftest.o` in
7412 *32-bit*)
7413 case $host in
7414 x86_64-*kfreebsd*-gnu)
7415 LD="${LD-ld} -m elf_i386_fbsd"
7416 ;;
7417 x86_64-*linux*)
7418 LD="${LD-ld} -m elf_i386"
7419 ;;
7420 ppc64-*linux*|powerpc64-*linux*)
7421 LD="${LD-ld} -m elf32ppclinux"
7422 ;;
7423 s390x-*linux*)
7424 LD="${LD-ld} -m elf_s390"
7425 ;;
7426 sparc64-*linux*)
7427 LD="${LD-ld} -m elf32_sparc"
7428 ;;
7429 esac
7430 ;;
7431 *64-bit*)
7432 case $host in
7433 x86_64-*kfreebsd*-gnu)
7434 LD="${LD-ld} -m elf_x86_64_fbsd"
7435 ;;
7436 x86_64-*linux*)
7437 LD="${LD-ld} -m elf_x86_64"
7438 ;;
7439 ppc*-*linux*|powerpc*-*linux*)
7440 LD="${LD-ld} -m elf64ppc"
7441 ;;
7442 s390*-*linux*|s390*-*tpf*)
7443 LD="${LD-ld} -m elf64_s390"
7444 ;;
7445 sparc*-*linux*)
7446 LD="${LD-ld} -m elf64_sparc"
7447 ;;
7448 esac
7449 ;;
7450 esac
7451 fi
7452 rm -rf conftest*
7453 ;;
9c60689e 7454
a243b558
JF
7455*-*-sco3.2v5*)
7456 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7457 SAVE_CFLAGS="$CFLAGS"
7458 CFLAGS="$CFLAGS -belf"
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7460$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7461if ${lt_cv_cc_needs_belf+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463else
7464 ac_ext=c
7465ac_cpp='$CPP $CPPFLAGS'
7466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7469
a243b558
JF
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h. */
9c60689e 7472
a243b558
JF
7473int
7474main ()
7475{
9c60689e 7476
a243b558
JF
7477 ;
7478 return 0;
7479}
7480_ACEOF
7481if ac_fn_c_try_link "$LINENO"; then :
7482 lt_cv_cc_needs_belf=yes
9c60689e 7483else
a243b558 7484 lt_cv_cc_needs_belf=no
9c60689e 7485fi
a243b558
JF
7486rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7488 ac_ext=c
7489ac_cpp='$CPP $CPPFLAGS'
7490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7493
a243b558
JF
7494fi
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7496$as_echo "$lt_cv_cc_needs_belf" >&6; }
7497 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7498 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7499 CFLAGS="$SAVE_CFLAGS"
7500 fi
7501 ;;
7502*-*solaris*)
7503 # Find out which ABI we are using.
7504 echo 'int i;' > conftest.$ac_ext
7505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7506 (eval $ac_compile) 2>&5
7507 ac_status=$?
7508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509 test $ac_status = 0; }; then
7510 case `/usr/bin/file conftest.o` in
7511 *64-bit*)
7512 case $lt_cv_prog_gnu_ld in
7513 yes*)
7514 case $host in
7515 i?86-*-solaris*)
7516 LD="${LD-ld} -m elf_x86_64"
7517 ;;
7518 sparc*-*-solaris*)
7519 LD="${LD-ld} -m elf64_sparc"
7520 ;;
7521 esac
7522 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7523 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7524 LD="${LD-ld}_sol2"
7525 fi
7526 ;;
7527 *)
7528 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7529 LD="${LD-ld} -64"
7530 fi
7531 ;;
7532 esac
7533 ;;
7534 esac
7535 fi
7536 rm -rf conftest*
7537 ;;
7538esac
9c60689e 7539
a243b558 7540need_locks="$enable_libtool_lock"
9c60689e 7541
a243b558
JF
7542if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7544set dummy ${ac_tool_prefix}mt; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
7547if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7548 $as_echo_n "(cached) " >&6
7549else
7550 if test -n "$MANIFEST_TOOL"; then
7551 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7563 fi
7564done
7565 done
7566IFS=$as_save_IFS
9c60689e 7567
a243b558
JF
7568fi
7569fi
7570MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7571if test -n "$MANIFEST_TOOL"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7573$as_echo "$MANIFEST_TOOL" >&6; }
7574else
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
9c60689e
DWT
7578
7579
a243b558
JF
7580fi
7581if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7582 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7583 # Extract the first word of "mt", so it can be a program name with args.
7584set dummy mt; ac_word=$2
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
7587if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589else
7590 if test -n "$ac_ct_MANIFEST_TOOL"; then
7591 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7592else
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605 done
7606IFS=$as_save_IFS
9c60689e 7607
a243b558
JF
7608fi
7609fi
7610ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7611if test -n "$ac_ct_MANIFEST_TOOL"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7613$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7614else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
9c60689e 7618
a243b558
JF
7619 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7620 MANIFEST_TOOL=":"
7621 else
7622 case $cross_compiling:$ac_tool_warned in
7623yes:)
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7626ac_tool_warned=yes ;;
7627esac
7628 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7629 fi
7630else
7631 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7632fi
9c60689e 7633
a243b558
JF
7634test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7636$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7637if ${lt_cv_path_mainfest_tool+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639else
7640 lt_cv_path_mainfest_tool=no
7641 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7642 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7643 cat conftest.err >&5
7644 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7645 lt_cv_path_mainfest_tool=yes
7646 fi
7647 rm -rf conftest*
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7650$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7651if test "x$lt_cv_path_mainfest_tool" != xyes; then
7652 MANIFEST_TOOL=:
7653fi
9c60689e
DWT
7654
7655
7656
7657
7658
7659
a243b558
JF
7660 case $host_os in
7661 rhapsody* | darwin*)
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7664set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if ${ac_cv_prog_DSYMUTIL+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669else
7670 if test -n "$DSYMUTIL"; then
7671 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685 done
7686IFS=$as_save_IFS
9c60689e 7687
a243b558
JF
7688fi
7689fi
7690DSYMUTIL=$ac_cv_prog_DSYMUTIL
7691if test -n "$DSYMUTIL"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7693$as_echo "$DSYMUTIL" >&6; }
7694else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
9c60689e
DWT
7698
7699
9c60689e 7700fi
a243b558
JF
7701if test -z "$ac_cv_prog_DSYMUTIL"; then
7702 ac_ct_DSYMUTIL=$DSYMUTIL
7703 # Extract the first word of "dsymutil", so it can be a program name with args.
7704set dummy dsymutil; ac_word=$2
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706$as_echo_n "checking for $ac_word... " >&6; }
7707if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
7708 $as_echo_n "(cached) " >&6
7709else
a243b558
JF
7710 if test -n "$ac_ct_DSYMUTIL"; then
7711 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 7712else
a243b558
JF
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724done
7725 done
7726IFS=$as_save_IFS
7727
9c60689e 7728fi
9c60689e 7729fi
a243b558
JF
7730ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7731if test -n "$ac_ct_DSYMUTIL"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7733$as_echo "$ac_ct_DSYMUTIL" >&6; }
7734else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737fi
9c60689e 7738
a243b558
JF
7739 if test "x$ac_ct_DSYMUTIL" = x; then
7740 DSYMUTIL=":"
7741 else
7742 case $cross_compiling:$ac_tool_warned in
7743yes:)
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746ac_tool_warned=yes ;;
9c60689e 7747esac
a243b558
JF
7748 DSYMUTIL=$ac_ct_DSYMUTIL
7749 fi
7750else
7751 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7752fi
9c60689e 7753
a243b558
JF
7754 if test -n "$ac_tool_prefix"; then
7755 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7756set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
7759if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
7760 $as_echo_n "(cached) " >&6
7761else
a243b558
JF
7762 if test -n "$NMEDIT"; then
7763 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776done
9c60689e 7777 done
a243b558 7778IFS=$as_save_IFS
9c60689e 7779
a243b558
JF
7780fi
7781fi
7782NMEDIT=$ac_cv_prog_NMEDIT
7783if test -n "$NMEDIT"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7785$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
7786else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
7789fi
7790
7791
a243b558
JF
7792fi
7793if test -z "$ac_cv_prog_NMEDIT"; then
7794 ac_ct_NMEDIT=$NMEDIT
7795 # Extract the first word of "nmedit", so it can be a program name with args.
7796set dummy nmedit; ac_word=$2
7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798$as_echo_n "checking for $ac_word... " >&6; }
7799if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
7800 $as_echo_n "(cached) " >&6
7801else
a243b558
JF
7802 if test -n "$ac_ct_NMEDIT"; then
7803 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7804else
7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
9c60689e 7817 done
a243b558 7818IFS=$as_save_IFS
9c60689e 7819
a243b558
JF
7820fi
7821fi
7822ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7823if test -n "$ac_ct_NMEDIT"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7825$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
7826else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828$as_echo "no" >&6; }
7829fi
7830
a243b558
JF
7831 if test "x$ac_ct_NMEDIT" = x; then
7832 NMEDIT=":"
9c60689e 7833 else
a243b558
JF
7834 case $cross_compiling:$ac_tool_warned in
7835yes:)
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838ac_tool_warned=yes ;;
7839esac
7840 NMEDIT=$ac_ct_NMEDIT
9c60689e 7841 fi
a243b558
JF
7842else
7843 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
7844fi
7845
a243b558
JF
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7848set dummy ${ac_tool_prefix}lipo; ac_word=$2
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if ${ac_cv_prog_LIPO+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853else
7854 if test -n "$LIPO"; then
7855 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868done
7869 done
7870IFS=$as_save_IFS
9c60689e 7871
a243b558
JF
7872fi
7873fi
7874LIPO=$ac_cv_prog_LIPO
7875if test -n "$LIPO"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7877$as_echo "$LIPO" >&6; }
7878else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
7881fi
9c60689e 7882
9c60689e 7883
a243b558
JF
7884fi
7885if test -z "$ac_cv_prog_LIPO"; then
7886 ac_ct_LIPO=$LIPO
7887 # Extract the first word of "lipo", so it can be a program name with args.
7888set dummy lipo; ac_word=$2
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890$as_echo_n "checking for $ac_word... " >&6; }
7891if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
7892 $as_echo_n "(cached) " >&6
7893else
a243b558
JF
7894 if test -n "$ac_ct_LIPO"; then
7895 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_ac_ct_LIPO="lipo"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909 done
7910IFS=$as_save_IFS
9c60689e
DWT
7911
7912fi
a243b558
JF
7913fi
7914ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7915if test -n "$ac_ct_LIPO"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7917$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 7918else
a243b558
JF
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
9c60689e
DWT
7921fi
7922
a243b558
JF
7923 if test "x$ac_ct_LIPO" = x; then
7924 LIPO=":"
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927yes:)
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930ac_tool_warned=yes ;;
7931esac
7932 LIPO=$ac_ct_LIPO
7933 fi
7934else
7935 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
7936fi
7937
a243b558
JF
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7940set dummy ${ac_tool_prefix}otool; ac_word=$2
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if ${ac_cv_prog_OTOOL+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945else
7946 if test -n "$OTOOL"; then
7947 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960done
7961 done
7962IFS=$as_save_IFS
9c60689e 7963
a243b558
JF
7964fi
7965fi
7966OTOOL=$ac_cv_prog_OTOOL
7967if test -n "$OTOOL"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7969$as_echo "$OTOOL" >&6; }
7970else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
7973fi
9c60689e
DWT
7974
7975
a243b558
JF
7976fi
7977if test -z "$ac_cv_prog_OTOOL"; then
7978 ac_ct_OTOOL=$OTOOL
7979 # Extract the first word of "otool", so it can be a program name with args.
7980set dummy otool; ac_word=$2
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985else
7986 if test -n "$ac_ct_OTOOL"; then
7987 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_ac_ct_OTOOL="otool"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001 done
8002IFS=$as_save_IFS
9c60689e 8003
a243b558
JF
8004fi
8005fi
8006ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8007if test -n "$ac_ct_OTOOL"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8009$as_echo "$ac_ct_OTOOL" >&6; }
8010else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
8013fi
9c60689e 8014
a243b558
JF
8015 if test "x$ac_ct_OTOOL" = x; then
8016 OTOOL=":"
8017 else
8018 case $cross_compiling:$ac_tool_warned in
8019yes:)
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022ac_tool_warned=yes ;;
8023esac
8024 OTOOL=$ac_ct_OTOOL
8025 fi
8026else
8027 OTOOL="$ac_cv_prog_OTOOL"
8028fi
9c60689e 8029
a243b558
JF
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8032set dummy ${ac_tool_prefix}otool64; ac_word=$2
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if ${ac_cv_prog_OTOOL64+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037else
8038 if test -n "$OTOOL64"; then
8039 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053 done
8054IFS=$as_save_IFS
9c60689e 8055
a243b558
JF
8056fi
8057fi
8058OTOOL64=$ac_cv_prog_OTOOL64
8059if test -n "$OTOOL64"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8061$as_echo "$OTOOL64" >&6; }
8062else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
8065fi
9c60689e 8066
9c60689e 8067
a243b558
JF
8068fi
8069if test -z "$ac_cv_prog_OTOOL64"; then
8070 ac_ct_OTOOL64=$OTOOL64
8071 # Extract the first word of "otool64", so it can be a program name with args.
8072set dummy otool64; ac_word=$2
8073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074$as_echo_n "checking for $ac_word... " >&6; }
8075if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077else
8078 if test -n "$ac_ct_OTOOL64"; then
8079 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8080else
8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082for as_dir in $PATH
8083do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_OTOOL64="otool64"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092done
8093 done
8094IFS=$as_save_IFS
9c60689e 8095
a243b558
JF
8096fi
8097fi
8098ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8099if test -n "$ac_ct_OTOOL64"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8101$as_echo "$ac_ct_OTOOL64" >&6; }
8102else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105fi
9c60689e 8106
a243b558
JF
8107 if test "x$ac_ct_OTOOL64" = x; then
8108 OTOOL64=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111yes:)
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114ac_tool_warned=yes ;;
8115esac
8116 OTOOL64=$ac_ct_OTOOL64
8117 fi
8118else
8119 OTOOL64="$ac_cv_prog_OTOOL64"
8120fi
ee134472 8121
9c60689e 8122
9c60689e 8123
9c60689e 8124
9c60689e 8125
9c60689e 8126
ee134472 8127
9c60689e 8128
9c60689e 8129
9c60689e 8130
9c60689e 8131
9c60689e 8132
9c60689e 8133
9c60689e 8134
9c60689e 8135
9c60689e 8136
9c60689e 8137
9c60689e 8138
9c60689e 8139
9c60689e 8140
9c60689e 8141
9c60689e 8142
9c60689e 8143
9c60689e 8144
9c60689e 8145
a243b558
JF
8146
8147
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8149$as_echo_n "checking for -single_module linker flag... " >&6; }
8150if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8151 $as_echo_n "(cached) " >&6
8152else
a243b558
JF
8153 lt_cv_apple_cc_single_mod=no
8154 if test -z "${LT_MULTI_MODULE}"; then
8155 # By default we will add the -single_module flag. You can override
8156 # by either setting the environment variable LT_MULTI_MODULE
8157 # non-empty at configure time, or by adding -multi_module to the
8158 # link flags.
8159 rm -rf libconftest.dylib*
8160 echo "int foo(void){return 1;}" > conftest.c
8161 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8162-dynamiclib -Wl,-single_module conftest.c" >&5
8163 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8164 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8165 _lt_result=$?
8166 # If there is a non-empty error log, and "single_module"
8167 # appears in it, assume the flag caused a linker warning
8168 if test -s conftest.err && $GREP single_module conftest.err; then
8169 cat conftest.err >&5
8170 # Otherwise, if the output was created with a 0 exit code from
8171 # the compiler, it worked.
8172 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8173 lt_cv_apple_cc_single_mod=yes
8174 else
8175 cat conftest.err >&5
8176 fi
8177 rm -rf libconftest.dylib*
8178 rm -f conftest.*
8179 fi
ee134472 8180fi
a243b558
JF
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8182$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8183
a243b558
JF
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8185$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8186if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8187 $as_echo_n "(cached) " >&6
8188else
a243b558
JF
8189 lt_cv_ld_exported_symbols_list=no
8190 save_LDFLAGS=$LDFLAGS
8191 echo "_main" > conftest.sym
8192 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h. */
9c60689e 8195
a243b558
JF
8196int
8197main ()
8198{
9c60689e 8199
a243b558
JF
8200 ;
8201 return 0;
8202}
8203_ACEOF
8204if ac_fn_c_try_link "$LINENO"; then :
8205 lt_cv_ld_exported_symbols_list=yes
9c60689e 8206else
a243b558 8207 lt_cv_ld_exported_symbols_list=no
9c60689e 8208fi
a243b558
JF
8209rm -f core conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext conftest.$ac_ext
8211 LDFLAGS="$save_LDFLAGS"
9c60689e
DWT
8212
8213fi
a243b558
JF
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8215$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8216
a243b558
JF
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8218$as_echo_n "checking for -force_load linker flag... " >&6; }
8219if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8220 $as_echo_n "(cached) " >&6
8221else
a243b558
JF
8222 lt_cv_ld_force_load=no
8223 cat > conftest.c << _LT_EOF
8224int forced_loaded() { return 2;}
8225_LT_EOF
8226 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8227 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8228 echo "$AR cru libconftest.a conftest.o" >&5
8229 $AR cru libconftest.a conftest.o 2>&5
8230 echo "$RANLIB libconftest.a" >&5
8231 $RANLIB libconftest.a 2>&5
8232 cat > conftest.c << _LT_EOF
8233int main() { return 0;}
8234_LT_EOF
8235 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8236 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8237 _lt_result=$?
8238 if test -s conftest.err && $GREP force_load conftest.err; then
8239 cat conftest.err >&5
8240 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8241 lt_cv_ld_force_load=yes
8242 else
8243 cat conftest.err >&5
8244 fi
8245 rm -f conftest.err libconftest.a conftest conftest.c
8246 rm -rf conftest.dSYM
9c60689e
DWT
8247
8248fi
a243b558
JF
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8250$as_echo "$lt_cv_ld_force_load" >&6; }
8251 case $host_os in
8252 rhapsody* | darwin1.[012])
8253 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8254 darwin1.*)
8255 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8256 darwin*) # darwin 5.x on
8257 # if running on 10.5 or later, the deployment target defaults
8258 # to the OS version, if on x86, and 10.4, the deployment
8259 # target defaults to 10.4. Don't you love it?
8260 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8261 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8262 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8263 10.[012]*)
8264 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8265 10.*)
8266 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8267 esac
8268 ;;
8269 esac
8270 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8271 _lt_dar_single_mod='$single_module'
8272 fi
8273 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8274 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8275 else
8276 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8277 fi
8278 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8279 _lt_dsymutil='~$DSYMUTIL $lib || :'
8280 else
8281 _lt_dsymutil=
8282 fi
8283 ;;
8284 esac
9c60689e 8285
a243b558
JF
8286ac_ext=c
8287ac_cpp='$CPP $CPPFLAGS'
8288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290ac_compiler_gnu=$ac_cv_c_compiler_gnu
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8292$as_echo_n "checking how to run the C preprocessor... " >&6; }
8293# On Suns, sometimes $CPP names a directory.
8294if test -n "$CPP" && test -d "$CPP"; then
8295 CPP=
9c60689e 8296fi
a243b558
JF
8297if test -z "$CPP"; then
8298 if ${ac_cv_prog_CPP+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300else
8301 # Double quotes because CPP needs to be expanded
8302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8303 do
8304 ac_preproc_ok=false
8305for ac_c_preproc_warn_flag in '' yes
8306do
8307 # Use a header file that comes with gcc, so configuring glibc
8308 # with a fresh cross-compiler works.
8309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310 # <limits.h> exists even on freestanding compilers.
8311 # On the NeXT, cc -E runs the code through the compiler's parser,
8312 # not just through cpp. "Syntax error" is here to catch this case.
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h. */
8315#ifdef __STDC__
8316# include <limits.h>
8317#else
8318# include <assert.h>
8319#endif
8320 Syntax error
8321_ACEOF
8322if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8323
a243b558
JF
8324else
8325 # Broken: fails on valid input.
8326continue
8327fi
8328rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8329
a243b558
JF
8330 # OK, works on sane cases. Now check whether nonexistent headers
8331 # can be detected and how.
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333/* end confdefs.h. */
8334#include <ac_nonexistent.h>
8335_ACEOF
8336if ac_fn_c_try_cpp "$LINENO"; then :
8337 # Broken: success on invalid input.
8338continue
8339else
8340 # Passes both tests.
8341ac_preproc_ok=:
8342break
8343fi
8344rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8345
a243b558
JF
8346done
8347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8348rm -f conftest.i conftest.err conftest.$ac_ext
8349if $ac_preproc_ok; then :
8350 break
8351fi
9c60689e 8352
a243b558
JF
8353 done
8354 ac_cv_prog_CPP=$CPP
9c60689e 8355
a243b558
JF
8356fi
8357 CPP=$ac_cv_prog_CPP
9c60689e 8358else
a243b558
JF
8359 ac_cv_prog_CPP=$CPP
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8362$as_echo "$CPP" >&6; }
8363ac_preproc_ok=false
8364for ac_c_preproc_warn_flag in '' yes
8365do
8366 # Use a header file that comes with gcc, so configuring glibc
8367 # with a fresh cross-compiler works.
8368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8369 # <limits.h> exists even on freestanding compilers.
8370 # On the NeXT, cc -E runs the code through the compiler's parser,
8371 # not just through cpp. "Syntax error" is here to catch this case.
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h. */
8374#ifdef __STDC__
8375# include <limits.h>
8376#else
8377# include <assert.h>
8378#endif
8379 Syntax error
8380_ACEOF
8381if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8382
a243b558
JF
8383else
8384 # Broken: fails on valid input.
8385continue
9c60689e 8386fi
a243b558 8387rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8388
a243b558
JF
8389 # OK, works on sane cases. Now check whether nonexistent headers
8390 # can be detected and how.
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392/* end confdefs.h. */
8393#include <ac_nonexistent.h>
8394_ACEOF
8395if ac_fn_c_try_cpp "$LINENO"; then :
8396 # Broken: success on invalid input.
8397continue
8398else
8399 # Passes both tests.
8400ac_preproc_ok=:
8401break
8402fi
8403rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8404
a243b558
JF
8405done
8406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8407rm -f conftest.i conftest.err conftest.$ac_ext
8408if $ac_preproc_ok; then :
9c60689e 8409
a243b558
JF
8410else
8411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8413as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8414See \`config.log' for more details" "$LINENO" 5; }
8415fi
9c60689e 8416
a243b558
JF
8417ac_ext=c
8418ac_cpp='$CPP $CPPFLAGS'
8419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8422
8423
a243b558
JF
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8425$as_echo_n "checking for ANSI C header files... " >&6; }
8426if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8427 $as_echo_n "(cached) " >&6
8428else
a243b558
JF
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h. */
8431#include <stdlib.h>
8432#include <stdarg.h>
8433#include <string.h>
8434#include <float.h>
9c60689e 8435
a243b558
JF
8436int
8437main ()
8438{
9c60689e 8439
a243b558
JF
8440 ;
8441 return 0;
8442}
8443_ACEOF
8444if ac_fn_c_try_compile "$LINENO"; then :
8445 ac_cv_header_stdc=yes
8446else
8447 ac_cv_header_stdc=no
9c60689e 8448fi
a243b558
JF
8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450
8451if test $ac_cv_header_stdc = yes; then
8452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h. */
8455#include <string.h>
9c60689e 8456
a243b558
JF
8457_ACEOF
8458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8459 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8460
a243b558
JF
8461else
8462 ac_cv_header_stdc=no
8463fi
8464rm -f conftest*
9c60689e 8465
a243b558
JF
8466fi
8467
8468if test $ac_cv_header_stdc = yes; then
8469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
8472#include <stdlib.h>
8473
8474_ACEOF
8475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8476 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8477
9c60689e 8478else
a243b558 8479 ac_cv_header_stdc=no
9c60689e 8480fi
a243b558 8481rm -f conftest*
9c60689e 8482
a243b558 8483fi
9c60689e 8484
a243b558
JF
8485if test $ac_cv_header_stdc = yes; then
8486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8487 if test "$cross_compiling" = yes; then :
8488 :
8489else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h. */
8492#include <ctype.h>
8493#include <stdlib.h>
8494#if ((' ' & 0x0FF) == 0x020)
8495# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8496# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8497#else
8498# define ISLOWER(c) \
8499 (('a' <= (c) && (c) <= 'i') \
8500 || ('j' <= (c) && (c) <= 'r') \
8501 || ('s' <= (c) && (c) <= 'z'))
8502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8503#endif
9c60689e 8504
a243b558
JF
8505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8506int
8507main ()
8508{
8509 int i;
8510 for (i = 0; i < 256; i++)
8511 if (XOR (islower (i), ISLOWER (i))
8512 || toupper (i) != TOUPPER (i))
8513 return 2;
8514 return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8518
a243b558
JF
8519else
8520 ac_cv_header_stdc=no
8521fi
8522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8523 conftest.$ac_objext conftest.beam conftest.$ac_ext
8524fi
9c60689e 8525
a243b558
JF
8526fi
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8529$as_echo "$ac_cv_header_stdc" >&6; }
8530if test $ac_cv_header_stdc = yes; then
9c60689e 8531
a243b558 8532$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8533
a243b558 8534fi
9c60689e 8535
a243b558
JF
8536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8537for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8538 inttypes.h stdint.h unistd.h
8539do :
8540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8541ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8542"
8543if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8544 cat >>confdefs.h <<_ACEOF
8545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546_ACEOF
9c60689e 8547
a243b558 8548fi
ee134472 8549
a243b558 8550done
ee134472 8551
9c60689e 8552
a243b558
JF
8553for ac_header in dlfcn.h
8554do :
8555 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8556"
8557if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8558 cat >>confdefs.h <<_ACEOF
8559#define HAVE_DLFCN_H 1
8560_ACEOF
9c60689e 8561
a243b558 8562fi
9c60689e 8563
a243b558 8564done
9c60689e 8565
9c60689e 8566
9c60689e 8567
9c60689e 8568
a243b558
JF
8569func_stripname_cnf ()
8570{
8571 case ${2} in
8572 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8573 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8574 esac
8575} # func_stripname_cnf
9c60689e 8576
9c60689e 8577
ee134472 8578
a243b558
JF
8579
8580
8581# Set options
8582# Check whether --enable-static was given.
8583if test "${enable_static+set}" = set; then :
8584 enableval=$enable_static; p=${PACKAGE-default}
8585 case $enableval in
8586 yes) enable_static=yes ;;
8587 no) enable_static=no ;;
8588 *)
8589 enable_static=no
8590 # Look at the argument we got. We use all the common list separators.
8591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8592 for pkg in $enableval; do
8593 IFS="$lt_save_ifs"
8594 if test "X$pkg" = "X$p"; then
8595 enable_static=yes
8596 fi
8597 done
8598 IFS="$lt_save_ifs"
9c60689e 8599 ;;
a243b558
JF
8600 esac
8601else
8602 enable_static=no
8603fi
9c60689e 8604
9c60689e 8605
9c60689e 8606
9c60689e 8607
9c60689e 8608
9c60689e 8609
9c60689e 8610
9c60689e 8611
9c60689e 8612
9c60689e 8613
a243b558 8614 enable_dlopen=no
9c60689e 8615
9c60689e 8616
a243b558
JF
8617 enable_win32_dll=no
8618
8619
8620 # Check whether --enable-shared was given.
8621if test "${enable_shared+set}" = set; then :
8622 enableval=$enable_shared; p=${PACKAGE-default}
8623 case $enableval in
8624 yes) enable_shared=yes ;;
8625 no) enable_shared=no ;;
9c60689e 8626 *)
a243b558
JF
8627 enable_shared=no
8628 # Look at the argument we got. We use all the common list separators.
8629 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8630 for pkg in $enableval; do
8631 IFS="$lt_save_ifs"
8632 if test "X$pkg" = "X$p"; then
8633 enable_shared=yes
8634 fi
8635 done
8636 IFS="$lt_save_ifs"
9c60689e
DWT
8637 ;;
8638 esac
a243b558
JF
8639else
8640 enable_shared=yes
8641fi
9c60689e 8642
9c60689e 8643
9c60689e 8644
9c60689e 8645
9c60689e 8646
9c60689e 8647
9c60689e 8648
9c60689e 8649
9c60689e 8650
9c60689e 8651
9c60689e 8652
a243b558
JF
8653# Check whether --with-pic was given.
8654if test "${with_pic+set}" = set; then :
8655 withval=$with_pic; lt_p=${PACKAGE-default}
8656 case $withval in
8657 yes|no) pic_mode=$withval ;;
8658 *)
8659 pic_mode=default
8660 # Look at the argument we got. We use all the common list separators.
8661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8662 for lt_pkg in $withval; do
8663 IFS="$lt_save_ifs"
8664 if test "X$lt_pkg" = "X$lt_p"; then
8665 pic_mode=yes
8666 fi
8667 done
8668 IFS="$lt_save_ifs"
8669 ;;
8670 esac
8671else
8672 pic_mode=default
9c60689e 8673fi
ee134472 8674
ee134472 8675
a243b558 8676test -z "$pic_mode" && pic_mode=default
9c60689e 8677
9c60689e 8678
9c60689e 8679
9c60689e 8680
ee134472 8681
ee134472 8682
9c60689e 8683
a243b558
JF
8684 # Check whether --enable-fast-install was given.
8685if test "${enable_fast_install+set}" = set; then :
8686 enableval=$enable_fast_install; p=${PACKAGE-default}
8687 case $enableval in
8688 yes) enable_fast_install=yes ;;
8689 no) enable_fast_install=no ;;
8690 *)
8691 enable_fast_install=no
8692 # Look at the argument we got. We use all the common list separators.
8693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8694 for pkg in $enableval; do
8695 IFS="$lt_save_ifs"
8696 if test "X$pkg" = "X$p"; then
8697 enable_fast_install=yes
9c60689e 8698 fi
a243b558
JF
8699 done
8700 IFS="$lt_save_ifs"
9c60689e 8701 ;;
a243b558
JF
8702 esac
8703else
8704 enable_fast_install=yes
8705fi
9c60689e 8706
9c60689e 8707
9c60689e 8708
9c60689e 8709
9c60689e
DWT
8710
8711
53ba6704 8712
9c60689e 8713
9c60689e 8714
9c60689e 8715
9c60689e 8716
a243b558
JF
8717# This can be used to rebuild libtool when needed
8718LIBTOOL_DEPS="$ltmain"
9c60689e 8719
a243b558
JF
8720# Always use our own libtool.
8721LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 8722
9c60689e 8723
9c60689e 8724
9c60689e 8725
9c60689e 8726
ee134472 8727
ee134472 8728
ee134472 8729
ee134472 8730
9c60689e 8731
9c60689e 8732
9c60689e 8733
9c60689e 8734
9c60689e 8735
9c60689e 8736
9c60689e 8737
9c60689e 8738
9c60689e 8739
9c60689e 8740
9c60689e 8741
9c60689e 8742
9c60689e 8743
9c60689e 8744
9c60689e 8745
9c60689e 8746
9c60689e 8747
9c60689e 8748
9c60689e 8749
9c60689e 8750
9c60689e 8751
a243b558 8752test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
a243b558
JF
8767if test -n "${ZSH_VERSION+set}" ; then
8768 setopt NO_GLOB_SUBST
8769fi
9c60689e 8770
a243b558
JF
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8772$as_echo_n "checking for objdir... " >&6; }
8773if ${lt_cv_objdir+:} false; then :
ee134472
JF
8774 $as_echo_n "(cached) " >&6
8775else
a243b558
JF
8776 rm -f .libs 2>/dev/null
8777mkdir .libs 2>/dev/null
8778if test -d .libs; then
8779 lt_cv_objdir=.libs
8780else
8781 # MS-DOS does not allow filenames that begin with a dot.
8782 lt_cv_objdir=_libs
ee134472 8783fi
a243b558
JF
8784rmdir .libs 2>/dev/null
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8787$as_echo "$lt_cv_objdir" >&6; }
8788objdir=$lt_cv_objdir
9c60689e
DWT
8789
8790
8791
8792
8793
a243b558
JF
8794cat >>confdefs.h <<_ACEOF
8795#define LT_OBJDIR "$lt_cv_objdir/"
8796_ACEOF
9c60689e
DWT
8797
8798
8799
8800
a243b558
JF
8801case $host_os in
8802aix3*)
8803 # AIX sometimes has problems with the GCC collect2 program. For some
8804 # reason, if we set the COLLECT_NAMES environment variable, the problems
8805 # vanish in a puff of smoke.
8806 if test "X${COLLECT_NAMES+set}" != Xset; then
8807 COLLECT_NAMES=
8808 export COLLECT_NAMES
8809 fi
8810 ;;
8811esac
9c60689e 8812
a243b558
JF
8813# Global variables:
8814ofile=libtool
8815can_build_shared=yes
9c60689e 8816
a243b558
JF
8817# All known linkers require a `.a' archive for static linking (except MSVC,
8818# which needs '.lib').
8819libext=a
9c60689e 8820
a243b558 8821with_gnu_ld="$lt_cv_prog_gnu_ld"
9c60689e 8822
a243b558
JF
8823old_CC="$CC"
8824old_CFLAGS="$CFLAGS"
9c60689e 8825
a243b558
JF
8826# Set sane defaults for various variables
8827test -z "$CC" && CC=cc
8828test -z "$LTCC" && LTCC=$CC
8829test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8830test -z "$LD" && LD=ld
8831test -z "$ac_objext" && ac_objext=o
9c60689e 8832
a243b558
JF
8833for cc_temp in $compiler""; do
8834 case $cc_temp in
8835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8837 \-*) ;;
8838 *) break;;
8839 esac
8840done
8841cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
8842
8843
a243b558
JF
8844# Only perform the check for file, if the check method requires it
8845test -z "$MAGIC_CMD" && MAGIC_CMD=file
8846case $deplibs_check_method in
8847file_magic*)
8848 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8850$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8851if ${lt_cv_path_MAGIC_CMD+:} false; then :
8852 $as_echo_n "(cached) " >&6
8853else
8854 case $MAGIC_CMD in
8855[\\/*] | ?:[\\/]*)
8856 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8857 ;;
8858*)
8859 lt_save_MAGIC_CMD="$MAGIC_CMD"
8860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8862 for ac_dir in $ac_dummy; do
8863 IFS="$lt_save_ifs"
8864 test -z "$ac_dir" && ac_dir=.
8865 if test -f $ac_dir/${ac_tool_prefix}file; then
8866 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8867 if test -n "$file_magic_test_file"; then
8868 case $deplibs_check_method in
8869 "file_magic "*)
8870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8873 $EGREP "$file_magic_regex" > /dev/null; then
8874 :
8875 else
8876 cat <<_LT_EOF 1>&2
9c60689e 8877
a243b558
JF
8878*** Warning: the command libtool uses to detect shared libraries,
8879*** $file_magic_cmd, produces output that libtool cannot recognize.
8880*** The result is that libtool may fail to recognize shared libraries
8881*** as such. This will affect the creation of libtool libraries that
8882*** depend on shared libraries, but programs linked with such libtool
8883*** libraries will work regardless of this problem. Nevertheless, you
8884*** may want to report the problem to your system manager and/or to
8885*** bug-libtool@gnu.org
9c60689e 8886
a243b558
JF
8887_LT_EOF
8888 fi ;;
8889 esac
8890 fi
8891 break
8892 fi
8893 done
8894 IFS="$lt_save_ifs"
8895 MAGIC_CMD="$lt_save_MAGIC_CMD"
8896 ;;
8897esac
8898fi
9c60689e 8899
a243b558
JF
8900MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8901if test -n "$MAGIC_CMD"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8903$as_echo "$MAGIC_CMD" >&6; }
8904else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
9c60689e
DWT
8908
8909
8910
8911
8912
a243b558
JF
8913if test -z "$lt_cv_path_MAGIC_CMD"; then
8914 if test -n "$ac_tool_prefix"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8916$as_echo_n "checking for file... " >&6; }
8917if ${lt_cv_path_MAGIC_CMD+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919else
8920 case $MAGIC_CMD in
8921[\\/*] | ?:[\\/]*)
8922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8923 ;;
8924*)
8925 lt_save_MAGIC_CMD="$MAGIC_CMD"
8926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8928 for ac_dir in $ac_dummy; do
8929 IFS="$lt_save_ifs"
8930 test -z "$ac_dir" && ac_dir=.
8931 if test -f $ac_dir/file; then
8932 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8933 if test -n "$file_magic_test_file"; then
8934 case $deplibs_check_method in
8935 "file_magic "*)
8936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8939 $EGREP "$file_magic_regex" > /dev/null; then
8940 :
8941 else
8942 cat <<_LT_EOF 1>&2
9c60689e 8943
a243b558
JF
8944*** Warning: the command libtool uses to detect shared libraries,
8945*** $file_magic_cmd, produces output that libtool cannot recognize.
8946*** The result is that libtool may fail to recognize shared libraries
8947*** as such. This will affect the creation of libtool libraries that
8948*** depend on shared libraries, but programs linked with such libtool
8949*** libraries will work regardless of this problem. Nevertheless, you
8950*** may want to report the problem to your system manager and/or to
8951*** bug-libtool@gnu.org
9c60689e 8952
a243b558
JF
8953_LT_EOF
8954 fi ;;
8955 esac
8956 fi
8957 break
8958 fi
8959 done
8960 IFS="$lt_save_ifs"
8961 MAGIC_CMD="$lt_save_MAGIC_CMD"
8962 ;;
8963esac
8964fi
9c60689e 8965
a243b558
JF
8966MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967if test -n "$MAGIC_CMD"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8969$as_echo "$MAGIC_CMD" >&6; }
8970else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
9c60689e
DWT
8974
8975
a243b558
JF
8976 else
8977 MAGIC_CMD=:
8978 fi
8979fi
9c60689e 8980
a243b558
JF
8981 fi
8982 ;;
8983esac
9c60689e 8984
a243b558 8985# Use C for the default configuration in the libtool script
9c60689e 8986
a243b558
JF
8987lt_save_CC="$CC"
8988ac_ext=c
8989ac_cpp='$CPP $CPPFLAGS'
8990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8992ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8993
8994
a243b558
JF
8995# Source file extension for C test sources.
8996ac_ext=c
9c60689e 8997
a243b558
JF
8998# Object file extension for compiled C test sources.
8999objext=o
9000objext=$objext
9c60689e 9001
a243b558
JF
9002# Code to be used in simple compile tests
9003lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9004
a243b558
JF
9005# Code to be used in simple link tests
9006lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9007
9008
9009
9010
9011
9012
9013
a243b558
JF
9014# If no C compiler was specified, use CC.
9015LTCC=${LTCC-"$CC"}
9c60689e 9016
a243b558
JF
9017# If no C compiler flags were specified, use CFLAGS.
9018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9019
a243b558
JF
9020# Allow CC to be a program name with arguments.
9021compiler=$CC
9c60689e 9022
a243b558
JF
9023# Save the default compiler, since it gets overwritten when the other
9024# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9025compiler_DEFAULT=$CC
9c60689e 9026
a243b558
JF
9027# save warnings/boilerplate of simple test code
9028ac_outfile=conftest.$ac_objext
9029echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9031_lt_compiler_boilerplate=`cat conftest.err`
9032$RM -r conftest*
9c60689e 9033
a243b558
JF
9034ac_outfile=conftest.$ac_objext
9035echo "$lt_simple_link_test_code" >conftest.$ac_ext
9036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9037_lt_linker_boilerplate=`cat conftest.err`
9038$RM -r conftest*
9c60689e
DWT
9039
9040
a243b558
JF
9041## CAVEAT EMPTOR:
9042## There is no encapsulation within the following macros, do not change
9043## the running order or otherwise move them around unless you know exactly
9044## what you are doing...
9045if test -n "$compiler"; then
9c60689e 9046
a243b558 9047lt_prog_compiler_no_builtin_flag=
9c60689e 9048
a243b558
JF
9049if test "$GCC" = yes; then
9050 case $cc_basename in
9051 nvcc*)
9052 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9053 *)
9054 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9055 esac
9c60689e 9056
a243b558
JF
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9058$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9059if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061else
9062 lt_cv_prog_compiler_rtti_exceptions=no
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="-fno-rtti -fno-exceptions"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 # The option is referenced via a variable to avoid confusing sed.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>conftest.err)
9077 ac_status=$?
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s "$ac_outfile"; then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings other than the usual output.
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_rtti_exceptions=yes
9087 fi
9088 fi
9089 $RM -r conftest*
9c60689e 9090
a243b558
JF
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9093$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9094
a243b558
JF
9095if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9096 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9097else
9098 :
9099fi
9c60689e 9100
a243b558 9101fi
9c60689e
DWT
9102
9103
9104
9105
9106
9107
a243b558
JF
9108 lt_prog_compiler_wl=
9109lt_prog_compiler_pic=
9110lt_prog_compiler_static=
9c60689e
DWT
9111
9112
a243b558
JF
9113 if test "$GCC" = yes; then
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_static='-static'
9c60689e 9116
a243b558
JF
9117 case $host_os in
9118 aix*)
9119 # All AIX code is PIC.
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9123 fi
9124 ;;
9c60689e 9125
a243b558
JF
9126 amigaos*)
9127 case $host_cpu in
9128 powerpc)
9129 # see comment about AmigaOS4 .so support
9130 lt_prog_compiler_pic='-fPIC'
9131 ;;
9132 m68k)
9133 # FIXME: we need at least 68020 code to build shared libraries, but
9134 # adding the `-m68020' flag to GCC prevents building anything better,
9135 # like `-m68040'.
9136 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9137 ;;
9138 esac
9139 ;;
9c60689e 9140
a243b558
JF
9141 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9142 # PIC is the default for these OSes.
9143 ;;
9c60689e 9144
a243b558
JF
9145 mingw* | cygwin* | pw32* | os2* | cegcc*)
9146 # This hack is so that the source file can tell whether it is being
9147 # built for inclusion in a dll (and should export symbols for example).
9148 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9149 # (--disable-auto-import) libraries
9150 lt_prog_compiler_pic='-DDLL_EXPORT'
9151 ;;
9c60689e 9152
a243b558
JF
9153 darwin* | rhapsody*)
9154 # PIC is the default on this platform
9155 # Common symbols not allowed in MH_DYLIB files
9156 lt_prog_compiler_pic='-fno-common'
9157 ;;
9c60689e 9158
a243b558
JF
9159 haiku*)
9160 # PIC is the default for Haiku.
9161 # The "-static" flag exists, but is broken.
9162 lt_prog_compiler_static=
9163 ;;
9c60689e 9164
a243b558
JF
9165 hpux*)
9166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9168 # sets the default TLS model and affects inlining.
9169 case $host_cpu in
9170 hppa*64*)
9171 # +Z the default
9172 ;;
9173 *)
9174 lt_prog_compiler_pic='-fPIC'
9175 ;;
9176 esac
9177 ;;
9c60689e 9178
a243b558
JF
9179 interix[3-9]*)
9180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9181 # Instead, we relocate shared libraries at runtime.
9182 ;;
9c60689e 9183
a243b558
JF
9184 msdosdjgpp*)
9185 # Just because we use GCC doesn't mean we suddenly get shared libraries
9186 # on systems that don't support them.
9187 lt_prog_compiler_can_build_shared=no
9188 enable_shared=no
9189 ;;
9c60689e 9190
a243b558
JF
9191 *nto* | *qnx*)
9192 # QNX uses GNU C++, but need to define -shared option too, otherwise
9193 # it will coredump.
9194 lt_prog_compiler_pic='-fPIC -shared'
9195 ;;
9c60689e 9196
a243b558
JF
9197 sysv4*MP*)
9198 if test -d /usr/nec; then
9199 lt_prog_compiler_pic=-Kconform_pic
9200 fi
9201 ;;
9c60689e 9202
a243b558
JF
9203 *)
9204 lt_prog_compiler_pic='-fPIC'
9205 ;;
9206 esac
9c60689e 9207
a243b558
JF
9208 case $cc_basename in
9209 nvcc*) # Cuda Compiler Driver 2.2
9210 lt_prog_compiler_wl='-Xlinker '
9211 if test -n "$lt_prog_compiler_pic"; then
9212 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9213 fi
9214 ;;
9215 esac
9216 else
9217 # PORTME Check for flag to pass linker flags through the system compiler.
9218 case $host_os in
9219 aix*)
9220 lt_prog_compiler_wl='-Wl,'
9221 if test "$host_cpu" = ia64; then
9222 # AIX 5 now supports IA64 processor
9223 lt_prog_compiler_static='-Bstatic'
9224 else
9225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9226 fi
9227 ;;
9c60689e 9228
a243b558
JF
9229 mingw* | cygwin* | pw32* | os2* | cegcc*)
9230 # This hack is so that the source file can tell whether it is being
9231 # built for inclusion in a dll (and should export symbols for example).
9232 lt_prog_compiler_pic='-DDLL_EXPORT'
9233 ;;
9c60689e 9234
a243b558
JF
9235 hpux9* | hpux10* | hpux11*)
9236 lt_prog_compiler_wl='-Wl,'
9237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9238 # not for PA HP-UX.
9239 case $host_cpu in
9240 hppa*64*|ia64*)
9241 # +Z the default
9242 ;;
9243 *)
9244 lt_prog_compiler_pic='+Z'
9245 ;;
9246 esac
9247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9248 lt_prog_compiler_static='${wl}-a ${wl}archive'
9249 ;;
9c60689e 9250
a243b558
JF
9251 irix5* | irix6* | nonstopux*)
9252 lt_prog_compiler_wl='-Wl,'
9253 # PIC (with -KPIC) is the default.
9254 lt_prog_compiler_static='-non_shared'
9255 ;;
9c60689e 9256
a243b558
JF
9257 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9258 case $cc_basename in
9259 # old Intel for x86_64 which still supported -KPIC.
9260 ecc*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-KPIC'
9263 lt_prog_compiler_static='-static'
9264 ;;
9265 # icc used to be incompatible with GCC.
9266 # ICC 10 doesn't accept -KPIC any more.
9267 icc* | ifort*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-fPIC'
9270 lt_prog_compiler_static='-static'
9271 ;;
9272 # Lahey Fortran 8.1.
9273 lf95*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='--shared'
9276 lt_prog_compiler_static='--static'
9277 ;;
9278 nagfor*)
9279 # NAG Fortran compiler
9280 lt_prog_compiler_wl='-Wl,-Wl,,'
9281 lt_prog_compiler_pic='-PIC'
9282 lt_prog_compiler_static='-Bstatic'
9283 ;;
9284 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9285 # Portland Group compilers (*not* the Pentium gcc compiler,
9286 # which looks to be a dead project)
9287 lt_prog_compiler_wl='-Wl,'
9288 lt_prog_compiler_pic='-fpic'
9289 lt_prog_compiler_static='-Bstatic'
9290 ;;
9291 ccc*)
9292 lt_prog_compiler_wl='-Wl,'
9293 # All Alpha code is PIC.
9294 lt_prog_compiler_static='-non_shared'
9295 ;;
9296 xl* | bgxl* | bgf* | mpixl*)
9297 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-qpic'
9300 lt_prog_compiler_static='-qstaticlink'
9301 ;;
9302 *)
9303 case `$CC -V 2>&1 | sed 5q` in
9304 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9305 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_wl=''
9309 ;;
9310 *Sun\ F* | *Sun*Fortran*)
9311 lt_prog_compiler_pic='-KPIC'
9312 lt_prog_compiler_static='-Bstatic'
9313 lt_prog_compiler_wl='-Qoption ld '
9314 ;;
9315 *Sun\ C*)
9316 # Sun C 5.9
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 lt_prog_compiler_wl='-Wl,'
9320 ;;
9321 *Intel*\ [CF]*Compiler*)
9322 lt_prog_compiler_wl='-Wl,'
9323 lt_prog_compiler_pic='-fPIC'
9324 lt_prog_compiler_static='-static'
9325 ;;
9326 *Portland\ Group*)
9327 lt_prog_compiler_wl='-Wl,'
9328 lt_prog_compiler_pic='-fpic'
9329 lt_prog_compiler_static='-Bstatic'
9330 ;;
9331 esac
9332 ;;
9333 esac
9334 ;;
9c60689e 9335
a243b558
JF
9336 newsos6)
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 ;;
9c60689e 9340
a243b558
JF
9341 *nto* | *qnx*)
9342 # QNX uses GNU C++, but need to define -shared option too, otherwise
9343 # it will coredump.
9344 lt_prog_compiler_pic='-fPIC -shared'
9345 ;;
9c60689e 9346
a243b558
JF
9347 osf3* | osf4* | osf5*)
9348 lt_prog_compiler_wl='-Wl,'
9349 # All OSF/1 code is PIC.
9350 lt_prog_compiler_static='-non_shared'
9351 ;;
9c60689e 9352
a243b558
JF
9353 rdos*)
9354 lt_prog_compiler_static='-non_shared'
9355 ;;
9c60689e 9356
a243b558
JF
9357 solaris*)
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 case $cc_basename in
9361 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9362 lt_prog_compiler_wl='-Qoption ld ';;
9363 *)
9364 lt_prog_compiler_wl='-Wl,';;
9365 esac
9366 ;;
9c60689e 9367
a243b558
JF
9368 sunos4*)
9369 lt_prog_compiler_wl='-Qoption ld '
9370 lt_prog_compiler_pic='-PIC'
9371 lt_prog_compiler_static='-Bstatic'
9372 ;;
9c60689e 9373
a243b558
JF
9374 sysv4 | sysv4.2uw2* | sysv4.3*)
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_pic='-KPIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9c60689e 9379
a243b558
JF
9380 sysv4*MP*)
9381 if test -d /usr/nec ;then
9382 lt_prog_compiler_pic='-Kconform_pic'
9383 lt_prog_compiler_static='-Bstatic'
9384 fi
9385 ;;
9c60689e 9386
a243b558
JF
9387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 ;;
9c60689e 9392
a243b558
JF
9393 unicos*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_can_build_shared=no
9396 ;;
9c60689e 9397
a243b558
JF
9398 uts4*)
9399 lt_prog_compiler_pic='-pic'
9400 lt_prog_compiler_static='-Bstatic'
9401 ;;
9c60689e 9402
a243b558
JF
9403 *)
9404 lt_prog_compiler_can_build_shared=no
9405 ;;
9406 esac
9407 fi
9c60689e 9408
a243b558
JF
9409case $host_os in
9410 # For platforms which do not support PIC, -DPIC is meaningless:
9411 *djgpp*)
9412 lt_prog_compiler_pic=
9413 ;;
9414 *)
9415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9416 ;;
9417esac
9c60689e 9418
a243b558
JF
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9420$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9421if ${lt_cv_prog_compiler_pic+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423else
9424 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9427$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9428lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9429
a243b558
JF
9430#
9431# Check to make sure the PIC flag actually works.
9432#
9433if test -n "$lt_prog_compiler_pic"; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9435$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9436if ${lt_cv_prog_compiler_pic_works+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438else
9439 lt_cv_prog_compiler_pic_works=no
9440 ac_outfile=conftest.$ac_objext
9441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9442 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9443 # Insert the option either (1) after the last *FLAGS variable, or
9444 # (2) before a word containing "conftest.", or (3) at the end.
9445 # Note that $ac_compile itself does not contain backslashes and begins
9446 # with a dollar sign (not a hyphen), so the echo should work correctly.
9447 # The option is referenced via a variable to avoid confusing sed.
9448 lt_compile=`echo "$ac_compile" | $SED \
9449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9451 -e 's:$: $lt_compiler_flag:'`
9452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9453 (eval "$lt_compile" 2>conftest.err)
9454 ac_status=$?
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 if (exit $ac_status) && test -s "$ac_outfile"; then
9458 # The compiler can only warn and ignore the option if not recognized
9459 # So say no if there are warnings other than the usual output.
9460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler_pic_works=yes
9464 fi
9465 fi
9466 $RM -r conftest*
9c60689e 9467
a243b558
JF
9468fi
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9470$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9471
a243b558
JF
9472if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9473 case $lt_prog_compiler_pic in
9474 "" | " "*) ;;
9475 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9476 esac
9477else
9478 lt_prog_compiler_pic=
9479 lt_prog_compiler_can_build_shared=no
9480fi
9c60689e 9481
a243b558 9482fi
9c60689e
DWT
9483
9484
9485
9486
9487
9488
9c60689e
DWT
9489
9490
9491
9492
9493
a243b558
JF
9494#
9495# Check to make sure the static flag actually works.
9496#
9497wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9499$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9500if ${lt_cv_prog_compiler_static_works+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502else
9503 lt_cv_prog_compiler_static_works=no
9504 save_LDFLAGS="$LDFLAGS"
9505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9508 # The linker can only warn and ignore the option if not recognized
9509 # So say no if there are warnings
9510 if test -s conftest.err; then
9511 # Append any errors to the config.log.
9512 cat conftest.err 1>&5
9513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9515 if diff conftest.exp conftest.er2 >/dev/null; then
9516 lt_cv_prog_compiler_static_works=yes
9517 fi
9518 else
9519 lt_cv_prog_compiler_static_works=yes
9520 fi
9521 fi
9522 $RM -r conftest*
9523 LDFLAGS="$save_LDFLAGS"
9c60689e 9524
a243b558
JF
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9527$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9528
a243b558
JF
9529if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9530 :
9c60689e 9531else
a243b558 9532 lt_prog_compiler_static=
9c60689e 9533fi
9c60689e 9534
9c60689e 9535
9c60689e 9536
9c60689e 9537
9c60689e 9538
9c60689e 9539
9c60689e 9540
a243b558
JF
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9542$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9543if ${lt_cv_prog_compiler_c_o+:} false; then :
9544 $as_echo_n "(cached) " >&6
9545else
9546 lt_cv_prog_compiler_c_o=no
9547 $RM -r conftest 2>/dev/null
9548 mkdir conftest
9549 cd conftest
9550 mkdir out
9551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9552
a243b558
JF
9553 lt_compiler_flag="-o out/conftest2.$ac_objext"
9554 # Insert the option either (1) after the last *FLAGS variable, or
9555 # (2) before a word containing "conftest.", or (3) at the end.
9556 # Note that $ac_compile itself does not contain backslashes and begins
9557 # with a dollar sign (not a hyphen), so the echo should work correctly.
9558 lt_compile=`echo "$ac_compile" | $SED \
9559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9561 -e 's:$: $lt_compiler_flag:'`
9562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9563 (eval "$lt_compile" 2>out/conftest.err)
9564 ac_status=$?
9565 cat out/conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9568 then
9569 # The compiler can only warn and ignore the option if not recognized
9570 # So say no if there are warnings
9571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9574 lt_cv_prog_compiler_c_o=yes
9575 fi
9576 fi
9577 chmod u+w . 2>&5
9578 $RM -r conftest*
9579 # SGI C++ compiler will create directory out/ii_files/ for
9580 # template instantiation
9581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9582 $RM out/* && rmdir out
9583 cd ..
9584 $RM -r conftest
9585 $RM -r conftest*
9c60689e 9586
a243b558
JF
9587fi
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9589$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9590
ee134472 9591
ee134472 9592
ee134472 9593
ee134472 9594
9c60689e 9595
a243b558
JF
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9598if ${lt_cv_prog_compiler_c_o+:} false; then :
9599 $as_echo_n "(cached) " >&6
9600else
9601 lt_cv_prog_compiler_c_o=no
9602 $RM -r conftest 2>/dev/null
9603 mkdir conftest
9604 cd conftest
9605 mkdir out
9606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9607
a243b558
JF
9608 lt_compiler_flag="-o out/conftest2.$ac_objext"
9609 # Insert the option either (1) after the last *FLAGS variable, or
9610 # (2) before a word containing "conftest.", or (3) at the end.
9611 # Note that $ac_compile itself does not contain backslashes and begins
9612 # with a dollar sign (not a hyphen), so the echo should work correctly.
9613 lt_compile=`echo "$ac_compile" | $SED \
9614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9616 -e 's:$: $lt_compiler_flag:'`
9617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9618 (eval "$lt_compile" 2>out/conftest.err)
9619 ac_status=$?
9620 cat out/conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9623 then
9624 # The compiler can only warn and ignore the option if not recognized
9625 # So say no if there are warnings
9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9629 lt_cv_prog_compiler_c_o=yes
9630 fi
9631 fi
9632 chmod u+w . 2>&5
9633 $RM -r conftest*
9634 # SGI C++ compiler will create directory out/ii_files/ for
9635 # template instantiation
9636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9637 $RM out/* && rmdir out
9638 cd ..
9639 $RM -r conftest
9640 $RM -r conftest*
9c60689e 9641
a243b558
JF
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9644$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 9645
9c60689e 9646
a243b558
JF
9647
9648
9649hard_links="nottested"
9650if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9651 # do not overwrite the value of need_locks provided by the user
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9653$as_echo_n "checking if we can lock with hard links... " >&6; }
9654 hard_links=yes
9655 $RM -r conftest*
9656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9657 touch conftest.a
9658 ln conftest.a conftest.b 2>&5 || hard_links=no
9659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9661$as_echo "$hard_links" >&6; }
9662 if test "$hard_links" = no; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9664$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9665 need_locks=warn
9c60689e 9666 fi
a243b558
JF
9667else
9668 need_locks=no
9669fi
9c60689e 9670
ee134472 9671
9c60689e 9672
9c60689e 9673
9c60689e 9674
a243b558
JF
9675
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9677$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9678
9679 runpath_var=
9680 allow_undefined_flag=
9681 always_export_symbols=no
9682 archive_cmds=
9683 archive_expsym_cmds=
9684 compiler_needs_object=no
9685 enable_shared_with_static_runtimes=no
9686 export_dynamic_flag_spec=
9687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9688 hardcode_automatic=no
9689 hardcode_direct=no
9690 hardcode_direct_absolute=no
9691 hardcode_libdir_flag_spec=
9692 hardcode_libdir_separator=
9693 hardcode_minus_L=no
9694 hardcode_shlibpath_var=unsupported
9695 inherit_rpath=no
9696 link_all_deplibs=unknown
9697 module_cmds=
9698 module_expsym_cmds=
9699 old_archive_from_new_cmds=
9700 old_archive_from_expsyms_cmds=
9701 thread_safe_flag_spec=
9702 whole_archive_flag_spec=
9703 # include_expsyms should be a list of space-separated symbols to be *always*
9704 # included in the symbol list
9705 include_expsyms=
9706 # exclude_expsyms can be an extended regexp of symbols to exclude
9707 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9708 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9709 # as well as any symbol that contains `d'.
9710 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9711 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9712 # platforms (ab)use it in PIC code, but their linkers get confused if
9713 # the symbol is explicitly referenced. Since portable code cannot
9714 # rely on this symbol name, it's probably fine to never include it in
9715 # preloaded symbol tables.
9716 # Exclude shared library initialization/finalization symbols.
9717 extract_expsyms_cmds=
9718
9c60689e 9719 case $host_os in
a243b558
JF
9720 cygwin* | mingw* | pw32* | cegcc*)
9721 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9722 # When not using gcc, we currently assume that we are using
9723 # Microsoft Visual C++.
9724 if test "$GCC" != yes; then
9725 with_gnu_ld=no
9726 fi
9c60689e 9727 ;;
a243b558
JF
9728 interix*)
9729 # we just hope/assume this is gcc and not c89 (= MSVC++)
9730 with_gnu_ld=yes
9731 ;;
9732 openbsd*)
9733 with_gnu_ld=no
9c60689e
DWT
9734 ;;
9735 esac
9c60689e 9736
a243b558 9737 ld_shlibs=yes
ee134472 9738
a243b558
JF
9739 # On some targets, GNU ld is compatible enough with the native linker
9740 # that we're better off using the native interface for both.
9741 lt_use_gnu_ld_interface=no
9742 if test "$with_gnu_ld" = yes; then
9743 case $host_os in
9744 aix*)
9745 # The AIX port of GNU ld has always aspired to compatibility
9746 # with the native linker. However, as the warning in the GNU ld
9747 # block says, versions before 2.19.5* couldn't really create working
9748 # shared libraries, regardless of the interface used.
9749 case `$LD -v 2>&1` in
9750 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9751 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9752 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9753 *)
9754 lt_use_gnu_ld_interface=yes
9755 ;;
9756 esac
9757 ;;
9758 *)
9759 lt_use_gnu_ld_interface=yes
9760 ;;
9761 esac
9762 fi
9c60689e 9763
a243b558
JF
9764 if test "$lt_use_gnu_ld_interface" = yes; then
9765 # If archive_cmds runs LD, not CC, wlarc should be empty
9766 wlarc='${wl}'
9c60689e 9767
a243b558
JF
9768 # Set some defaults for GNU ld with shared library support. These
9769 # are reset later if shared libraries are not supported. Putting them
9770 # here allows them to be overridden if necessary.
9771 runpath_var=LD_RUN_PATH
9772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9773 export_dynamic_flag_spec='${wl}--export-dynamic'
9774 # ancient GNU ld didn't support --whole-archive et. al.
9775 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9776 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9777 else
9778 whole_archive_flag_spec=
9779 fi
9780 supports_anon_versioning=no
9781 case `$LD -v 2>&1` in
9782 *GNU\ gold*) supports_anon_versioning=yes ;;
9783 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9784 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9785 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9786 *\ 2.11.*) ;; # other 2.11 versions
9787 *) supports_anon_versioning=yes ;;
9788 esac
ee134472 9789
a243b558
JF
9790 # See if GNU ld supports shared libraries.
9791 case $host_os in
9792 aix[3-9]*)
9793 # On AIX/PPC, the GNU linker is very broken
9794 if test "$host_cpu" != ia64; then
9795 ld_shlibs=no
9796 cat <<_LT_EOF 1>&2
ee134472 9797
a243b558
JF
9798*** Warning: the GNU linker, at least up to release 2.19, is reported
9799*** to be unable to reliably create shared libraries on AIX.
9800*** Therefore, libtool is disabling shared libraries support. If you
9801*** really care for shared libraries, you may want to install binutils
9802*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9803*** You will then need to restart the configuration process.
9c60689e 9804
a243b558
JF
9805_LT_EOF
9806 fi
9807 ;;
9c60689e 9808
a243b558
JF
9809 amigaos*)
9810 case $host_cpu in
9811 powerpc)
9812 # see comment about AmigaOS4 .so support
9813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814 archive_expsym_cmds=''
9815 ;;
9816 m68k)
9817 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)'
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 hardcode_minus_L=yes
9820 ;;
9821 esac
9822 ;;
9c60689e 9823
a243b558
JF
9824 beos*)
9825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826 allow_undefined_flag=unsupported
9827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9828 # support --undefined. This deserves some investigation. FIXME
9829 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830 else
9831 ld_shlibs=no
9832 fi
9833 ;;
9c60689e 9834
a243b558
JF
9835 cygwin* | mingw* | pw32* | cegcc*)
9836 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9837 # as there is no search path for DLLs.
9838 hardcode_libdir_flag_spec='-L$libdir'
9839 export_dynamic_flag_spec='${wl}--export-all-symbols'
9840 allow_undefined_flag=unsupported
9841 always_export_symbols=no
9842 enable_shared_with_static_runtimes=yes
9843 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'
9844 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 9845
a243b558
JF
9846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9848 # If the export-symbols file already is a .def file (1st line
9849 # is EXPORTS), use it as is; otherwise, prepend...
9850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9851 cp $export_symbols $output_objdir/$soname.def;
9852 else
9853 echo EXPORTS > $output_objdir/$soname.def;
9854 cat $export_symbols >> $output_objdir/$soname.def;
9855 fi~
9856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9857 else
9858 ld_shlibs=no
9859 fi
9860 ;;
9c60689e 9861
a243b558
JF
9862 haiku*)
9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864 link_all_deplibs=yes
9865 ;;
9c60689e 9866
a243b558
JF
9867 interix[3-9]*)
9868 hardcode_direct=no
9869 hardcode_shlibpath_var=no
9870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9871 export_dynamic_flag_spec='${wl}-E'
9872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9873 # Instead, shared libraries are loaded at an image base (0x10000000 by
9874 # default) and relocated if they conflict, which is a slow very memory
9875 # consuming and fragmenting process. To avoid this, we pick a random,
9876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9879 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'
9880 ;;
9c60689e 9881
a243b558
JF
9882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9883 tmp_diet=no
9884 if test "$host_os" = linux-dietlibc; then
9885 case $cc_basename in
9886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9887 esac
9888 fi
9889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9890 && test "$tmp_diet" = no
9891 then
9892 tmp_addflag=' $pic_flag'
9893 tmp_sharedflag='-shared'
9894 case $cc_basename,$host_cpu in
9895 pgcc*) # Portland Group C compiler
9896 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'
9897 tmp_addflag=' $pic_flag'
9898 ;;
9899 pgf77* | pgf90* | pgf95* | pgfortran*)
9900 # Portland Group f77 and f90 compilers
9901 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'
9902 tmp_addflag=' $pic_flag -Mnomain' ;;
9903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9904 tmp_addflag=' -i_dynamic' ;;
9905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9906 tmp_addflag=' -i_dynamic -nofor_main' ;;
9907 ifc* | ifort*) # Intel Fortran compiler
9908 tmp_addflag=' -nofor_main' ;;
9909 lf95*) # Lahey Fortran 8.1
9910 whole_archive_flag_spec=
9911 tmp_sharedflag='--shared' ;;
9912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9913 tmp_sharedflag='-qmkshrobj'
9914 tmp_addflag= ;;
9915 nvcc*) # Cuda Compiler Driver 2.2
9916 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'
9917 compiler_needs_object=yes
9918 ;;
9919 esac
9920 case `$CC -V 2>&1 | sed 5q` in
9921 *Sun\ C*) # Sun C 5.9
9922 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'
9923 compiler_needs_object=yes
9924 tmp_sharedflag='-G' ;;
9925 *Sun\ F*) # Sun Fortran 8.3
9926 tmp_sharedflag='-G' ;;
9927 esac
9928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9c60689e 9929
a243b558
JF
9930 if test "x$supports_anon_versioning" = xyes; then
9931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9933 echo "local: *; };" >> $output_objdir/$libname.ver~
9934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9935 fi
9c60689e 9936
a243b558
JF
9937 case $cc_basename in
9938 xlf* | bgf* | bgxlf* | mpixlf*)
9939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9943 if test "x$supports_anon_versioning" = xyes; then
9944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9946 echo "local: *; };" >> $output_objdir/$libname.ver~
9947 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9948 fi
9949 ;;
9950 esac
9951 else
9952 ld_shlibs=no
9953 fi
9954 ;;
9c60689e 9955
a243b558
JF
9956 netbsd*)
9957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9959 wlarc=
9960 else
9961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963 fi
9964 ;;
9c60689e 9965
a243b558
JF
9966 solaris*)
9967 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9968 ld_shlibs=no
9969 cat <<_LT_EOF 1>&2
9c60689e 9970
a243b558
JF
9971*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9972*** create shared libraries on Solaris systems. Therefore, libtool
9973*** is disabling shared libraries support. We urge you to upgrade GNU
9974*** binutils to release 2.9.1 or newer. Another option is to modify
9975*** your PATH or compiler configuration so that the native linker is
9976*** used, and then restart.
9c60689e 9977
a243b558
JF
9978_LT_EOF
9979 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982 else
9983 ld_shlibs=no
9984 fi
9985 ;;
9c60689e 9986
a243b558
JF
9987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9988 case `$LD -v 2>&1` in
9989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9990 ld_shlibs=no
9991 cat <<_LT_EOF 1>&2
9c60689e 9992
a243b558
JF
9993*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9994*** reliably create shared libraries on SCO systems. Therefore, libtool
9995*** is disabling shared libraries support. We urge you to upgrade GNU
9996*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9997*** your PATH or compiler configuration so that the native linker is
9998*** used, and then restart.
9c60689e 9999
a243b558
JF
10000_LT_EOF
10001 ;;
10002 *)
10003 # For security reasons, it is highly recommended that you always
10004 # use absolute paths for naming shared libraries, and exclude the
10005 # DT_RUNPATH tag from executables and libraries. But doing so
10006 # requires that you compile everything twice, which is a pain.
10007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10011 else
10012 ld_shlibs=no
10013 fi
10014 ;;
10015 esac
10016 ;;
9c60689e 10017
a243b558
JF
10018 sunos4*)
10019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10020 wlarc=
10021 hardcode_direct=yes
10022 hardcode_shlibpath_var=no
10023 ;;
9c60689e 10024
a243b558
JF
10025 *)
10026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10028 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10029 else
10030 ld_shlibs=no
10031 fi
10032 ;;
10033 esac
9c60689e 10034
a243b558
JF
10035 if test "$ld_shlibs" = no; then
10036 runpath_var=
10037 hardcode_libdir_flag_spec=
10038 export_dynamic_flag_spec=
10039 whole_archive_flag_spec=
10040 fi
10041 else
10042 # PORTME fill in a description of your system's linker (not GNU ld)
10043 case $host_os in
10044 aix3*)
10045 allow_undefined_flag=unsupported
10046 always_export_symbols=yes
10047 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'
10048 # Note: this linker hardcodes the directories in LIBPATH if there
10049 # are no directories specified by -L.
10050 hardcode_minus_L=yes
10051 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10052 # Neither direct hardcoding nor static linking is supported with a
10053 # broken collect2.
10054 hardcode_direct=unsupported
10055 fi
10056 ;;
9c60689e 10057
a243b558
JF
10058 aix[4-9]*)
10059 if test "$host_cpu" = ia64; then
10060 # On IA64, the linker does run time linking by default, so we don't
10061 # have to do anything special.
10062 aix_use_runtimelinking=no
10063 exp_sym_flag='-Bexport'
10064 no_entry_flag=""
10065 else
10066 # If we're using GNU nm, then we don't want the "-C" option.
10067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10068 # Also, AIX nm treats weak defined symbols like other global
10069 # defined symbols, whereas GNU nm marks them as "W".
10070 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10071 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10072 else
10073 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10074 fi
10075 aix_use_runtimelinking=no
9c60689e 10076
a243b558
JF
10077 # Test if we are trying to use run time linking or normal
10078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10079 # need to do runtime linking.
10080 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10081 for ld_flag in $LDFLAGS; do
10082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10083 aix_use_runtimelinking=yes
10084 break
10085 fi
10086 done
10087 ;;
10088 esac
9c60689e 10089
a243b558
JF
10090 exp_sym_flag='-bexport'
10091 no_entry_flag='-bnoentry'
10092 fi
9c60689e 10093
a243b558
JF
10094 # When large executables or shared objects are built, AIX ld can
10095 # have problems creating the table of contents. If linking a library
10096 # or program results in "error TOC overflow" add -mminimal-toc to
10097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10099
a243b558
JF
10100 archive_cmds=''
10101 hardcode_direct=yes
10102 hardcode_direct_absolute=yes
10103 hardcode_libdir_separator=':'
10104 link_all_deplibs=yes
10105 file_list_spec='${wl}-f,'
9c60689e 10106
a243b558
JF
10107 if test "$GCC" = yes; then
10108 case $host_os in aix4.[012]|aix4.[012].*)
10109 # We only want to do this on AIX 4.2 and lower, the check
10110 # below for broken collect2 doesn't work under 4.3+
10111 collect2name=`${CC} -print-prog-name=collect2`
10112 if test -f "$collect2name" &&
10113 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10114 then
10115 # We have reworked collect2
10116 :
10117 else
10118 # We have old collect2
10119 hardcode_direct=unsupported
10120 # It fails to find uninstalled libraries when the uninstalled
10121 # path is not listed in the libpath. Setting hardcode_minus_L
10122 # to unsupported forces relinking
10123 hardcode_minus_L=yes
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 hardcode_libdir_separator=
10126 fi
10127 ;;
10128 esac
10129 shared_flag='-shared'
10130 if test "$aix_use_runtimelinking" = yes; then
10131 shared_flag="$shared_flag "'${wl}-G'
10132 fi
10133 else
10134 # not using gcc
10135 if test "$host_cpu" = ia64; then
10136 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10137 # chokes on -Wl,-G. The following line is correct:
10138 shared_flag='-G'
10139 else
10140 if test "$aix_use_runtimelinking" = yes; then
10141 shared_flag='${wl}-G'
10142 else
10143 shared_flag='${wl}-bM:SRE'
10144 fi
10145 fi
10146 fi
9c60689e 10147
a243b558
JF
10148 export_dynamic_flag_spec='${wl}-bexpall'
10149 # It seems that -bexpall does not export symbols beginning with
10150 # underscore (_), so it is better to generate a list of symbols to export.
10151 always_export_symbols=yes
10152 if test "$aix_use_runtimelinking" = yes; then
10153 # Warning - without using the other runtime loading flags (-brtl),
10154 # -berok will link without error, but may produce a broken library.
10155 allow_undefined_flag='-berok'
10156 # Determine the default libpath from the value encoded in an
10157 # empty executable.
10158 if test "${lt_cv_aix_libpath+set}" = set; then
10159 aix_libpath=$lt_cv_aix_libpath
9c60689e 10160else
a243b558 10161 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10162 $as_echo_n "(cached) " >&6
10163else
a243b558 10164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10165/* end confdefs.h. */
10166
9c60689e
DWT
10167int
10168main ()
10169{
a243b558 10170
9c60689e
DWT
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10176
10177 lt_aix_libpath_sed='
10178 /Import File Strings/,/^$/ {
10179 /^0/ {
10180 s/^0 *\([^ ]*\) *$/\1/
10181 p
10182 }
10183 }'
10184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185 # Check for a 64-bit object if we didn't find anything.
10186 if test -z "$lt_cv_aix_libpath_"; then
10187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188 fi
9c60689e
DWT
10189fi
10190rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10192 if test -z "$lt_cv_aix_libpath_"; then
10193 lt_cv_aix_libpath_="/usr/lib:/lib"
10194 fi
9c60689e
DWT
10195
10196fi
10197
a243b558
JF
10198 aix_libpath=$lt_cv_aix_libpath_
10199fi
9c60689e 10200
a243b558
JF
10201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10202 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10203 else
10204 if test "$host_cpu" = ia64; then
10205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10206 allow_undefined_flag="-z nodefs"
10207 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"
10208 else
10209 # Determine the default libpath from the value encoded in an
10210 # empty executable.
10211 if test "${lt_cv_aix_libpath+set}" = set; then
10212 aix_libpath=$lt_cv_aix_libpath
9c60689e 10213else
a243b558 10214 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10215 $as_echo_n "(cached) " >&6
10216else
a243b558 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10218/* end confdefs.h. */
10219
9c60689e
DWT
10220int
10221main ()
10222{
a243b558 10223
9c60689e
DWT
10224 ;
10225 return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10229
a243b558
JF
10230 lt_aix_libpath_sed='
10231 /Import File Strings/,/^$/ {
10232 /^0/ {
10233 s/^0 *\([^ ]*\) *$/\1/
10234 p
10235 }
10236 }'
10237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238 # Check for a 64-bit object if we didn't find anything.
10239 if test -z "$lt_cv_aix_libpath_"; then
10240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241 fi
9c60689e
DWT
10242fi
10243rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext conftest.$ac_ext
a243b558
JF
10245 if test -z "$lt_cv_aix_libpath_"; then
10246 lt_cv_aix_libpath_="/usr/lib:/lib"
10247 fi
10248
9c60689e 10249fi
9c60689e 10250
a243b558
JF
10251 aix_libpath=$lt_cv_aix_libpath_
10252fi
10253
10254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10255 # Warning - without using the other run time loading flags,
10256 # -berok will link without error, but may produce a broken library.
10257 no_undefined_flag=' ${wl}-bernotok'
10258 allow_undefined_flag=' ${wl}-berok'
10259 if test "$with_gnu_ld" = yes; then
10260 # We only use this code for GNU lds that support --whole-archive.
10261 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10262 else
10263 # Exported symbols can be pulled into shared objects from archives
10264 whole_archive_flag_spec='$convenience'
10265 fi
10266 archive_cmds_need_lc=yes
10267 # This is similar to how AIX traditionally builds its shared libraries.
10268 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10269 fi
10270 fi
10271 ;;
10272
10273 amigaos*)
10274 case $host_cpu in
10275 powerpc)
10276 # see comment about AmigaOS4 .so support
10277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10278 archive_expsym_cmds=''
10279 ;;
10280 m68k)
10281 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)'
10282 hardcode_libdir_flag_spec='-L$libdir'
10283 hardcode_minus_L=yes
10284 ;;
10285 esac
10286 ;;
10287
10288 bsdi[45]*)
10289 export_dynamic_flag_spec=-rdynamic
10290 ;;
10291
10292 cygwin* | mingw* | pw32* | cegcc*)
10293 # When not using gcc, we currently assume that we are using
10294 # Microsoft Visual C++.
10295 # hardcode_libdir_flag_spec is actually meaningless, as there is
10296 # no search path for DLLs.
10297 case $cc_basename in
10298 cl*)
10299 # Native MSVC
10300 hardcode_libdir_flag_spec=' '
10301 allow_undefined_flag=unsupported
10302 always_export_symbols=yes
10303 file_list_spec='@'
10304 # Tell ltmain to make .lib files, not .a files.
10305 libext=lib
10306 # Tell ltmain to make .dll files, not .so files.
10307 shrext_cmds=".dll"
10308 # FIXME: Setting linknames here is a bad hack.
10309 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10310 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10311 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10312 else
10313 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10314 fi~
10315 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10316 linknames='
10317 # The linker will not automatically build a static lib if we build a DLL.
10318 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10319 enable_shared_with_static_runtimes=yes
10320 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10322 # Don't use ranlib
10323 old_postinstall_cmds='chmod 644 $oldlib'
10324 postlink_cmds='lt_outputfile="@OUTPUT@"~
10325 lt_tool_outputfile="@TOOL_OUTPUT@"~
10326 case $lt_outputfile in
10327 *.exe|*.EXE) ;;
10328 *)
10329 lt_outputfile="$lt_outputfile.exe"
10330 lt_tool_outputfile="$lt_tool_outputfile.exe"
10331 ;;
10332 esac~
10333 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10335 $RM "$lt_outputfile.manifest";
10336 fi'
10337 ;;
10338 *)
10339 # Assume MSVC wrapper
10340 hardcode_libdir_flag_spec=' '
10341 allow_undefined_flag=unsupported
10342 # Tell ltmain to make .lib files, not .a files.
10343 libext=lib
10344 # Tell ltmain to make .dll files, not .so files.
10345 shrext_cmds=".dll"
10346 # FIXME: Setting linknames here is a bad hack.
10347 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10348 # The linker will automatically build a .lib file if we build a DLL.
10349 old_archive_from_new_cmds='true'
10350 # FIXME: Should let the user specify the lib program.
10351 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10352 enable_shared_with_static_runtimes=yes
10353 ;;
10354 esac
10355 ;;
10356
10357 darwin* | rhapsody*)
10358
10359
10360 archive_cmds_need_lc=no
10361 hardcode_direct=no
10362 hardcode_automatic=yes
10363 hardcode_shlibpath_var=unsupported
10364 if test "$lt_cv_ld_force_load" = "yes"; then
10365 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\"`'
10366
10367 else
10368 whole_archive_flag_spec=''
10369 fi
10370 link_all_deplibs=yes
10371 allow_undefined_flag="$_lt_dar_allow_undefined"
10372 case $cc_basename in
10373 ifort*) _lt_dar_can_shared=yes ;;
10374 *) _lt_dar_can_shared=$GCC ;;
10375 esac
10376 if test "$_lt_dar_can_shared" = "yes"; then
10377 output_verbose_link_cmd=func_echo_all
10378 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10379 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10380 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}"
10381 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}"
10382
10383 else
10384 ld_shlibs=no
10385 fi
10386
10387 ;;
10388
10389 dgux*)
10390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391 hardcode_libdir_flag_spec='-L$libdir'
10392 hardcode_shlibpath_var=no
10393 ;;
10394
10395 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10396 # support. Future versions do this automatically, but an explicit c++rt0.o
10397 # does not break anything, and helps significantly (at the cost of a little
10398 # extra space).
10399 freebsd2.2*)
10400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10401 hardcode_libdir_flag_spec='-R$libdir'
10402 hardcode_direct=yes
10403 hardcode_shlibpath_var=no
10404 ;;
10405
10406 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10407 freebsd2.*)
10408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_direct=yes
10410 hardcode_minus_L=yes
10411 hardcode_shlibpath_var=no
10412 ;;
10413
10414 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10415 freebsd* | dragonfly*)
10416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10417 hardcode_libdir_flag_spec='-R$libdir'
10418 hardcode_direct=yes
10419 hardcode_shlibpath_var=no
10420 ;;
10421
10422 hpux9*)
10423 if test "$GCC" = yes; then
10424 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10425 else
10426 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10427 fi
10428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_separator=:
10430 hardcode_direct=yes
10431
10432 # hardcode_minus_L: Not really in the search PATH,
10433 # but as the default location of the library.
10434 hardcode_minus_L=yes
10435 export_dynamic_flag_spec='${wl}-E'
10436 ;;
10437
10438 hpux10*)
10439 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10440 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10441 else
10442 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10443 fi
10444 if test "$with_gnu_ld" = no; then
10445 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10446 hardcode_libdir_separator=:
10447 hardcode_direct=yes
10448 hardcode_direct_absolute=yes
10449 export_dynamic_flag_spec='${wl}-E'
10450 # hardcode_minus_L: Not really in the search PATH,
10451 # but as the default location of the library.
10452 hardcode_minus_L=yes
10453 fi
10454 ;;
10455
10456 hpux11*)
10457 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10458 case $host_cpu in
10459 hppa*64*)
10460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10461 ;;
10462 ia64*)
10463 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10464 ;;
10465 *)
10466 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10467 ;;
10468 esac
10469 else
10470 case $host_cpu in
10471 hppa*64*)
10472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473 ;;
10474 ia64*)
10475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10476 ;;
10477 *)
10478
10479 # Older versions of the 11.00 compiler do not understand -b yet
10480 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10482$as_echo_n "checking if $CC understands -b... " >&6; }
10483if ${lt_cv_prog_compiler__b+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485else
10486 lt_cv_prog_compiler__b=no
10487 save_LDFLAGS="$LDFLAGS"
10488 LDFLAGS="$LDFLAGS -b"
10489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10491 # The linker can only warn and ignore the option if not recognized
10492 # So say no if there are warnings
10493 if test -s conftest.err; then
10494 # Append any errors to the config.log.
10495 cat conftest.err 1>&5
10496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10498 if diff conftest.exp conftest.er2 >/dev/null; then
10499 lt_cv_prog_compiler__b=yes
10500 fi
10501 else
10502 lt_cv_prog_compiler__b=yes
10503 fi
10504 fi
10505 $RM -r conftest*
10506 LDFLAGS="$save_LDFLAGS"
10507
10508fi
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10510$as_echo "$lt_cv_prog_compiler__b" >&6; }
10511
10512if test x"$lt_cv_prog_compiler__b" = xyes; then
10513 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10514else
10515 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10516fi
10517
10518 ;;
10519 esac
10520 fi
10521 if test "$with_gnu_ld" = no; then
10522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10523 hardcode_libdir_separator=:
10524
10525 case $host_cpu in
10526 hppa*64*|ia64*)
10527 hardcode_direct=no
10528 hardcode_shlibpath_var=no
10529 ;;
10530 *)
10531 hardcode_direct=yes
10532 hardcode_direct_absolute=yes
10533 export_dynamic_flag_spec='${wl}-E'
10534
10535 # hardcode_minus_L: Not really in the search PATH,
10536 # but as the default location of the library.
10537 hardcode_minus_L=yes
10538 ;;
10539 esac
10540 fi
10541 ;;
10542
10543 irix5* | irix6* | nonstopux*)
10544 if test "$GCC" = yes; then
10545 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'
10546 # Try to use the -exported_symbol ld option, if it does not
10547 # work, assume that -exports_file does not work either and
10548 # implicitly export all symbols.
10549 # This should be the same for all languages, so no per-tag cache variable.
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10551$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10552if ${lt_cv_irix_exported_symbol+:} false; then :
10553 $as_echo_n "(cached) " >&6
10554else
10555 save_LDFLAGS="$LDFLAGS"
10556 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h. */
10559int foo (void) { return 0; }
10560_ACEOF
10561if ac_fn_c_try_link "$LINENO"; then :
10562 lt_cv_irix_exported_symbol=yes
10563else
10564 lt_cv_irix_exported_symbol=no
10565fi
10566rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 LDFLAGS="$save_LDFLAGS"
10569fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10571$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10572 if test "$lt_cv_irix_exported_symbol" = yes; then
10573 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'
10574 fi
10575 else
10576 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'
10577 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'
10578 fi
10579 archive_cmds_need_lc='no'
10580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10581 hardcode_libdir_separator=:
10582 inherit_rpath=yes
10583 link_all_deplibs=yes
10584 ;;
10585
10586 netbsd*)
10587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10589 else
10590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10591 fi
10592 hardcode_libdir_flag_spec='-R$libdir'
10593 hardcode_direct=yes
10594 hardcode_shlibpath_var=no
10595 ;;
10596
10597 newsos6)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=yes
10600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10601 hardcode_libdir_separator=:
10602 hardcode_shlibpath_var=no
10603 ;;
10604
10605 *nto* | *qnx*)
10606 ;;
10607
10608 openbsd*)
10609 if test -f /usr/libexec/ld.so; then
10610 hardcode_direct=yes
10611 hardcode_shlibpath_var=no
10612 hardcode_direct_absolute=yes
10613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10617 export_dynamic_flag_spec='${wl}-E'
10618 else
10619 case $host_os in
10620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_libdir_flag_spec='-R$libdir'
10623 ;;
10624 *)
10625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10627 ;;
10628 esac
10629 fi
10630 else
10631 ld_shlibs=no
10632 fi
10633 ;;
10634
10635 os2*)
10636 hardcode_libdir_flag_spec='-L$libdir'
10637 hardcode_minus_L=yes
10638 allow_undefined_flag=unsupported
10639 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10640 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10641 ;;
10642
10643 osf3*)
10644 if test "$GCC" = yes; then
10645 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10646 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'
10647 else
10648 allow_undefined_flag=' -expect_unresolved \*'
10649 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'
10650 fi
10651 archive_cmds_need_lc='no'
10652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10653 hardcode_libdir_separator=:
10654 ;;
10655
10656 osf4* | osf5*) # as osf3* with the addition of -msym flag
10657 if test "$GCC" = yes; then
10658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10659 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'
10660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10661 else
10662 allow_undefined_flag=' -expect_unresolved \*'
10663 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'
10664 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~
10665 $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'
10666
10667 # Both c and cxx compiler support -rpath directly
10668 hardcode_libdir_flag_spec='-rpath $libdir'
10669 fi
10670 archive_cmds_need_lc='no'
10671 hardcode_libdir_separator=:
10672 ;;
10673
10674 solaris*)
10675 no_undefined_flag=' -z defs'
10676 if test "$GCC" = yes; then
10677 wlarc='${wl}'
10678 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10680 $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'
10681 else
10682 case `$CC -V 2>&1` in
10683 *"Compilers 5.0"*)
10684 wlarc=''
10685 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10688 ;;
10689 *)
10690 wlarc='${wl}'
10691 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10693 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10694 ;;
10695 esac
10696 fi
10697 hardcode_libdir_flag_spec='-R$libdir'
10698 hardcode_shlibpath_var=no
10699 case $host_os in
10700 solaris2.[0-5] | solaris2.[0-5].*) ;;
10701 *)
10702 # The compiler driver will combine and reorder linker options,
10703 # but understands `-z linker_flag'. GCC discards it without `$wl',
10704 # but is careful enough not to reorder.
10705 # Supported since Solaris 2.6 (maybe 2.5.1?)
10706 if test "$GCC" = yes; then
10707 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10708 else
10709 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10710 fi
10711 ;;
10712 esac
10713 link_all_deplibs=yes
10714 ;;
10715
10716 sunos4*)
10717 if test "x$host_vendor" = xsequent; then
10718 # Use $CC to link under sequent, because it throws in some extra .o
10719 # files that make .init and .fini sections work.
10720 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10721 else
10722 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10723 fi
10724 hardcode_libdir_flag_spec='-L$libdir'
10725 hardcode_direct=yes
10726 hardcode_minus_L=yes
10727 hardcode_shlibpath_var=no
10728 ;;
10729
10730 sysv4)
10731 case $host_vendor in
10732 sni)
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_direct=yes # is this really true???
10735 ;;
10736 siemens)
10737 ## LD is ld it makes a PLAMLIB
10738 ## CC just makes a GrossModule.
10739 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10740 reload_cmds='$CC -r -o $output$reload_objs'
10741 hardcode_direct=no
10742 ;;
10743 motorola)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10746 ;;
10747 esac
10748 runpath_var='LD_RUN_PATH'
10749 hardcode_shlibpath_var=no
10750 ;;
10751
10752 sysv4.3*)
10753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_shlibpath_var=no
10755 export_dynamic_flag_spec='-Bexport'
10756 ;;
10757
10758 sysv4*MP*)
10759 if test -d /usr/nec; then
10760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761 hardcode_shlibpath_var=no
10762 runpath_var=LD_RUN_PATH
10763 hardcode_runpath_var=yes
10764 ld_shlibs=yes
10765 fi
10766 ;;
10767
10768 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10769 no_undefined_flag='${wl}-z,text'
10770 archive_cmds_need_lc=no
10771 hardcode_shlibpath_var=no
10772 runpath_var='LD_RUN_PATH'
10773
10774 if test "$GCC" = yes; then
10775 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 else
10778 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780 fi
10781 ;;
10782
10783 sysv5* | sco3.2v5* | sco5v6*)
10784 # Note: We can NOT use -z defs as we might desire, because we do not
10785 # link with -lc, and that would cause any symbols used from libc to
10786 # always be unresolved, which means just about no library would
10787 # ever link correctly. If we're not using GNU ld we use -z text
10788 # though, which does catch some bad symbols but isn't as heavy-handed
10789 # as -z defs.
10790 no_undefined_flag='${wl}-z,text'
10791 allow_undefined_flag='${wl}-z,nodefs'
10792 archive_cmds_need_lc=no
10793 hardcode_shlibpath_var=no
10794 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10795 hardcode_libdir_separator=':'
10796 link_all_deplibs=yes
10797 export_dynamic_flag_spec='${wl}-Bexport'
10798 runpath_var='LD_RUN_PATH'
10799
10800 if test "$GCC" = yes; then
10801 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10802 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 else
10804 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10805 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10806 fi
10807 ;;
10808
10809 uts4*)
10810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10811 hardcode_libdir_flag_spec='-L$libdir'
10812 hardcode_shlibpath_var=no
10813 ;;
10814
10815 *)
10816 ld_shlibs=no
10817 ;;
10818 esac
10819
10820 if test x$host_vendor = xsni; then
10821 case $host in
10822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10823 export_dynamic_flag_spec='${wl}-Blargedynsym'
10824 ;;
10825 esac
10826 fi
10827 fi
10828
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10830$as_echo "$ld_shlibs" >&6; }
10831test "$ld_shlibs" = no && can_build_shared=no
10832
10833with_gnu_ld=$with_gnu_ld
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849#
10850# Do we need to explicitly link libc?
10851#
10852case "x$archive_cmds_need_lc" in
10853x|xyes)
10854 # Assume -lc should be added
10855 archive_cmds_need_lc=yes
10856
10857 if test "$enable_shared" = yes && test "$GCC" = yes; then
10858 case $archive_cmds in
10859 *'~'*)
10860 # FIXME: we may have to deal with multi-command sequences.
10861 ;;
10862 '$CC '*)
10863 # Test whether the compiler implicitly links with -lc since on some
10864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10865 # to ld, don't add -lc before -lgcc.
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10867$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10868if ${lt_cv_archive_cmds_need_lc+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870else
10871 $RM -r conftest*
10872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10873
10874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10875 (eval $ac_compile) 2>&5
10876 ac_status=$?
10877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10878 test $ac_status = 0; } 2>conftest.err; then
10879 soname=conftest
10880 lib=conftest
10881 libobjs=conftest.$ac_objext
10882 deplibs=
10883 wl=$lt_prog_compiler_wl
10884 pic_flag=$lt_prog_compiler_pic
10885 compiler_flags=-v
10886 linker_flags=-v
10887 verstring=
10888 output_objdir=.
10889 libname=conftest
10890 lt_save_allow_undefined_flag=$allow_undefined_flag
10891 allow_undefined_flag=
10892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10893 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10894 ac_status=$?
10895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896 test $ac_status = 0; }
10897 then
10898 lt_cv_archive_cmds_need_lc=no
10899 else
10900 lt_cv_archive_cmds_need_lc=yes
10901 fi
10902 allow_undefined_flag=$lt_save_allow_undefined_flag
10903 else
10904 cat conftest.err 1>&5
10905 fi
10906 $RM -r conftest*
10907
10908fi
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10910$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10911 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10912 ;;
10913 esac
10914 fi
10915 ;;
10916esac
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11070$as_echo_n "checking dynamic linker characteristics... " >&6; }
11071
11072if test "$GCC" = yes; then
11073 case $host_os in
11074 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11075 *) lt_awk_arg="/^libraries:/" ;;
11076 esac
11077 case $host_os in
11078 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11079 *) lt_sed_strip_eq="s,=/,/,g" ;;
11080 esac
11081 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11082 case $lt_search_path_spec in
11083 *\;*)
11084 # if the path contains ";" then we assume it to be the separator
11085 # otherwise default to the standard path separator (i.e. ":") - it is
11086 # assumed that no part of a normal pathname contains ";" but that should
11087 # okay in the real world where ";" in dirpaths is itself problematic.
11088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11089 ;;
11090 *)
11091 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11092 ;;
11093 esac
11094 # Ok, now we have the path, separated by spaces, we can step through it
11095 # and add multilib dir if necessary.
11096 lt_tmp_lt_search_path_spec=
11097 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11098 for lt_sys_path in $lt_search_path_spec; do
11099 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11100 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11101 else
11102 test -d "$lt_sys_path" && \
11103 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11104 fi
11105 done
11106 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11107BEGIN {RS=" "; FS="/|\n";} {
11108 lt_foo="";
11109 lt_count=0;
11110 for (lt_i = NF; lt_i > 0; lt_i--) {
11111 if ($lt_i != "" && $lt_i != ".") {
11112 if ($lt_i == "..") {
11113 lt_count++;
11114 } else {
11115 if (lt_count == 0) {
11116 lt_foo="/" $lt_i lt_foo;
11117 } else {
11118 lt_count--;
11119 }
11120 }
11121 }
11122 }
11123 if (lt_foo != "") { lt_freq[lt_foo]++; }
11124 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11125}'`
11126 # AWK program above erroneously prepends '/' to C:/dos/paths
11127 # for these hosts.
11128 case $host_os in
11129 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11130 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11131 esac
11132 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11133else
11134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11135fi
11136library_names_spec=
11137libname_spec='lib$name'
11138soname_spec=
11139shrext_cmds=".so"
11140postinstall_cmds=
11141postuninstall_cmds=
11142finish_cmds=
11143finish_eval=
11144shlibpath_var=
11145shlibpath_overrides_runpath=unknown
11146version_type=none
11147dynamic_linker="$host_os ld.so"
11148sys_lib_dlsearch_path_spec="/lib /usr/lib"
11149need_lib_prefix=unknown
11150hardcode_into_libs=no
11151
11152# when you set need_version to no, make sure it does not cause -set_version
11153# flags to be left without arguments
11154need_version=unknown
11155
11156case $host_os in
11157aix3*)
11158 version_type=linux # correct to gnu/linux during the next big refactor
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11160 shlibpath_var=LIBPATH
11161
11162 # AIX 3 has no versioning support, so we append a major version to the name.
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 ;;
11165
11166aix[4-9]*)
11167 version_type=linux # correct to gnu/linux during the next big refactor
11168 need_lib_prefix=no
11169 need_version=no
11170 hardcode_into_libs=yes
11171 if test "$host_cpu" = ia64; then
11172 # AIX 5 supports IA64
11173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 else
11176 # With GCC up to 2.95.x, collect2 would create an import file
11177 # for dependence libraries. The import file would start with
11178 # the line `#! .'. This would cause the generated library to
11179 # depend on `.', always an invalid library. This was fixed in
11180 # development snapshots of GCC prior to 3.0.
11181 case $host_os in
11182 aix4 | aix4.[01] | aix4.[01].*)
11183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11184 echo ' yes '
11185 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11186 :
11187 else
11188 can_build_shared=no
11189 fi
11190 ;;
11191 esac
11192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11193 # soname into executable. Probably we can add versioning support to
11194 # collect2, so additional links can be useful in future.
11195 if test "$aix_use_runtimelinking" = yes; then
11196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11197 # instead of lib<name>.a to let people know that these are not
11198 # typical AIX shared libraries.
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 else
11201 # We preserve .a as extension for shared libraries through AIX4.2
11202 # and later when we are not doing run time linking.
11203 library_names_spec='${libname}${release}.a $libname.a'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 fi
11206 shlibpath_var=LIBPATH
11207 fi
11208 ;;
11209
11210amigaos*)
11211 case $host_cpu in
11212 powerpc)
11213 # Since July 2007 AmigaOS4 officially supports .so libraries.
11214 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 ;;
11217 m68k)
11218 library_names_spec='$libname.ixlibrary $libname.a'
11219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11220 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11221 ;;
11222 esac
11223 ;;
11224
11225beos*)
11226 library_names_spec='${libname}${shared_ext}'
11227 dynamic_linker="$host_os ld.so"
11228 shlibpath_var=LIBRARY_PATH
11229 ;;
11230
11231bsdi[45]*)
11232 version_type=linux # correct to gnu/linux during the next big refactor
11233 need_version=no
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11240 # the default ld.so.conf also contains /usr/contrib/lib and
11241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11242 # libtool to hard-code these into programs
11243 ;;
11244
11245cygwin* | mingw* | pw32* | cegcc*)
11246 version_type=windows
11247 shrext_cmds=".dll"
11248 need_version=no
11249 need_lib_prefix=no
9c60689e 11250
a243b558
JF
11251 case $GCC,$cc_basename in
11252 yes,*)
11253 # gcc
11254 library_names_spec='$libname.dll.a'
11255 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11256 postinstall_cmds='base_file=`basename \${file}`~
11257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11258 dldir=$destdir/`dirname \$dlpath`~
11259 test -d \$dldir || mkdir -p \$dldir~
11260 $install_prog $dir/$dlname \$dldir/$dlname~
11261 chmod a+x \$dldir/$dlname~
11262 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11263 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11264 fi'
11265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11266 dlpath=$dir/\$dldll~
11267 $RM \$dlpath'
11268 shlibpath_overrides_runpath=yes
9c60689e 11269
a243b558
JF
11270 case $host_os in
11271 cygwin*)
11272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9c60689e 11274
a243b558
JF
11275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11276 ;;
11277 mingw* | cegcc*)
11278 # MinGW DLLs use traditional 'lib' prefix
11279 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11280 ;;
11281 pw32*)
11282 # pw32 DLLs use 'pw' prefix rather than 'lib'
11283 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11284 ;;
11285 esac
11286 dynamic_linker='Win32 ld.exe'
11287 ;;
9c60689e 11288
a243b558
JF
11289 *,cl*)
11290 # Native MSVC
11291 libname_spec='$name'
11292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11293 library_names_spec='${libname}.dll.lib'
9c60689e 11294
a243b558
JF
11295 case $build_os in
11296 mingw*)
11297 sys_lib_search_path_spec=
11298 lt_save_ifs=$IFS
11299 IFS=';'
11300 for lt_path in $LIB
11301 do
11302 IFS=$lt_save_ifs
11303 # Let DOS variable expansion print the short 8.3 style file name.
11304 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11305 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11306 done
11307 IFS=$lt_save_ifs
11308 # Convert to MSYS style.
11309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11310 ;;
11311 cygwin*)
11312 # Convert to unix form, then to dos form, then back to unix form
11313 # but this time dos style (no spaces!) so that the unix form looks
11314 # like /cygdrive/c/PROGRA~1:/cygdr...
11315 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11316 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11317 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11318 ;;
11319 *)
11320 sys_lib_search_path_spec="$LIB"
11321 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11322 # It is most probably a Windows format PATH.
11323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11324 else
11325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11326 fi
11327 # FIXME: find the short name or the path components, as spaces are
11328 # common. (e.g. "Program Files" -> "PROGRA~1")
11329 ;;
11330 esac
11331
11332 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11333 postinstall_cmds='base_file=`basename \${file}`~
11334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11335 dldir=$destdir/`dirname \$dlpath`~
11336 test -d \$dldir || mkdir -p \$dldir~
11337 $install_prog $dir/$dlname \$dldir/$dlname'
11338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11339 dlpath=$dir/\$dldll~
11340 $RM \$dlpath'
11341 shlibpath_overrides_runpath=yes
11342 dynamic_linker='Win32 link.exe'
11343 ;;
9c60689e 11344
a243b558
JF
11345 *)
11346 # Assume MSVC wrapper
11347 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11348 dynamic_linker='Win32 ld.exe'
11349 ;;
11350 esac
11351 # FIXME: first we should search . and the directory the executable is in
11352 shlibpath_var=PATH
11353 ;;
9c60689e 11354
a243b558
JF
11355darwin* | rhapsody*)
11356 dynamic_linker="$host_os dyld"
11357 version_type=darwin
11358 need_lib_prefix=no
11359 need_version=no
11360 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11361 soname_spec='${libname}${release}${major}$shared_ext'
11362 shlibpath_overrides_runpath=yes
11363 shlibpath_var=DYLD_LIBRARY_PATH
11364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11365
a243b558
JF
11366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11368 ;;
9c60689e 11369
a243b558
JF
11370dgux*)
11371 version_type=linux # correct to gnu/linux during the next big refactor
11372 need_lib_prefix=no
11373 need_version=no
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11375 soname_spec='${libname}${release}${shared_ext}$major'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 ;;
11378
11379freebsd* | dragonfly*)
11380 # DragonFly does not have aout. When/if they implement a new
11381 # versioning mechanism, adjust this.
11382 if test -x /usr/bin/objformat; then
11383 objformat=`/usr/bin/objformat`
11384 else
11385 case $host_os in
11386 freebsd[23].*) objformat=aout ;;
11387 *) objformat=elf ;;
11388 esac
11389 fi
11390 version_type=freebsd-$objformat
11391 case $version_type in
11392 freebsd-elf*)
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11394 need_version=no
11395 need_lib_prefix=no
11396 ;;
11397 freebsd-*)
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11399 need_version=yes
11400 ;;
11401 esac
11402 shlibpath_var=LD_LIBRARY_PATH
11403 case $host_os in
11404 freebsd2.*)
11405 shlibpath_overrides_runpath=yes
11406 ;;
11407 freebsd3.[01]* | freebsdelf3.[01]*)
11408 shlibpath_overrides_runpath=yes
11409 hardcode_into_libs=yes
11410 ;;
11411 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11412 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11413 shlibpath_overrides_runpath=no
11414 hardcode_into_libs=yes
11415 ;;
11416 *) # from 4.6 on, and DragonFly
11417 shlibpath_overrides_runpath=yes
11418 hardcode_into_libs=yes
11419 ;;
11420 esac
11421 ;;
9c60689e 11422
a243b558
JF
11423gnu*)
11424 version_type=linux # correct to gnu/linux during the next big refactor
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=no
11431 hardcode_into_libs=yes
11432 ;;
9c60689e 11433
a243b558
JF
11434haiku*)
11435 version_type=linux # correct to gnu/linux during the next big refactor
11436 need_lib_prefix=no
11437 need_version=no
11438 dynamic_linker="$host_os runtime_loader"
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes
11443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11444 hardcode_into_libs=yes
11445 ;;
9c60689e 11446
a243b558
JF
11447hpux9* | hpux10* | hpux11*)
11448 # Give a soname corresponding to the major version so that dld.sl refuses to
11449 # link against other versions.
11450 version_type=sunos
11451 need_lib_prefix=no
11452 need_version=no
11453 case $host_cpu in
11454 ia64*)
11455 shrext_cmds='.so'
11456 hardcode_into_libs=yes
11457 dynamic_linker="$host_os dld.so"
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 if test "X$HPUX_IA64_MODE" = X32; then
11463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11464 else
11465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11466 fi
11467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11468 ;;
11469 hppa*64*)
11470 shrext_cmds='.sl'
11471 hardcode_into_libs=yes
11472 dynamic_linker="$host_os dld.sl"
11473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11479 ;;
11480 *)
11481 shrext_cmds='.sl'
11482 dynamic_linker="$host_os dld.sl"
11483 shlibpath_var=SHLIB_PATH
11484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
9c60689e
DWT
11487 ;;
11488 esac
a243b558
JF
11489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11490 postinstall_cmds='chmod 555 $lib'
11491 # or fails outright, so override atomically:
11492 install_override_mode=555
11493 ;;
9c60689e 11494
a243b558
JF
11495interix[3-9]*)
11496 version_type=linux # correct to gnu/linux during the next big refactor
11497 need_lib_prefix=no
11498 need_version=no
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=no
11504 hardcode_into_libs=yes
11505 ;;
9c60689e 11506
a243b558
JF
11507irix5* | irix6* | nonstopux*)
11508 case $host_os in
11509 nonstopux*) version_type=nonstopux ;;
11510 *)
11511 if test "$lt_cv_prog_gnu_ld" = yes; then
11512 version_type=linux # correct to gnu/linux during the next big refactor
11513 else
11514 version_type=irix
11515 fi ;;
11516 esac
11517 need_lib_prefix=no
11518 need_version=no
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11521 case $host_os in
11522 irix5* | nonstopux*)
11523 libsuff= shlibsuff=
11524 ;;
11525 *)
11526 case $LD in # libtool.m4 will add one of these switches to LD
11527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11528 libsuff= shlibsuff= libmagic=32-bit;;
11529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11530 libsuff=32 shlibsuff=N32 libmagic=N32;;
11531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11533 *) libsuff= shlibsuff= libmagic=never-match;;
11534 esac
11535 ;;
11536 esac
11537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11538 shlibpath_overrides_runpath=no
11539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11541 hardcode_into_libs=yes
11542 ;;
9c60689e 11543
a243b558
JF
11544# No shared lib support for Linux oldld, aout, or coff.
11545linux*oldld* | linux*aout* | linux*coff*)
11546 dynamic_linker=no
11547 ;;
9c60689e 11548
a243b558
JF
11549# This must be glibc/ELF.
11550linux* | k*bsd*-gnu | kopensolaris*-gnu)
11551 version_type=linux # correct to gnu/linux during the next big refactor
11552 need_lib_prefix=no
11553 need_version=no
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=no
9c60689e 11559
a243b558
JF
11560 # Some binutils ld are patched to set DT_RUNPATH
11561 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
11562 $as_echo_n "(cached) " >&6
11563else
a243b558
JF
11564 lt_cv_shlibpath_overrides_runpath=no
11565 save_LDFLAGS=$LDFLAGS
11566 save_libdir=$libdir
11567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570/* end confdefs.h. */
ee134472 11571
a243b558
JF
11572int
11573main ()
9c60689e 11574{
9c60689e 11575
a243b558
JF
11576 ;
11577 return 0;
11578}
11579_ACEOF
11580if ac_fn_c_try_link "$LINENO"; then :
11581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11582 lt_cv_shlibpath_overrides_runpath=yes
11583fi
11584fi
11585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LDFLAGS=$save_LDFLAGS
11588 libdir=$save_libdir
9c60689e 11589
a243b558 11590fi
9c60689e 11591
a243b558 11592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 11593
a243b558
JF
11594 # This implies no fast_install, which is unacceptable.
11595 # Some rework will be needed to allow for fast_install
11596 # before this can be enabled.
11597 hardcode_into_libs=yes
9c60689e 11598
a243b558
JF
11599 # Append ld.so.conf contents to the search path
11600 if test -f /etc/ld.so.conf; then
11601 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' ' '`
11602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11603 fi
ee134472 11604
a243b558
JF
11605 # We used to test for /lib/ld.so.1 and disable shared libraries on
11606 # powerpc, because MkLinux only supported shared libraries with the
11607 # GNU dynamic linker. Since this was broken with cross compilers,
11608 # most powerpc-linux boxes support dynamic linking these days and
11609 # people can always --disable-shared, the test was removed, and we
11610 # assume the GNU/Linux dynamic linker is in use.
11611 dynamic_linker='GNU/Linux ld.so'
11612 ;;
9c60689e 11613
a243b558
JF
11614netbsd*)
11615 version_type=sunos
11616 need_lib_prefix=no
11617 need_version=no
11618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11621 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 11622 else
a243b558
JF
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 dynamic_linker='NetBSD ld.elf_so'
9c60689e 11626 fi
a243b558
JF
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=yes
11629 hardcode_into_libs=yes
11630 ;;
9c60689e 11631
a243b558
JF
11632newsos6)
11633 version_type=linux # correct to gnu/linux during the next big refactor
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 shlibpath_overrides_runpath=yes
11637 ;;
9c60689e 11638
a243b558
JF
11639*nto* | *qnx*)
11640 version_type=qnx
11641 need_lib_prefix=no
11642 need_version=no
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=no
11647 hardcode_into_libs=yes
11648 dynamic_linker='ldqnx.so'
11649 ;;
9c60689e 11650
a243b558
JF
11651openbsd*)
11652 version_type=sunos
11653 sys_lib_dlsearch_path_spec="/usr/lib"
11654 need_lib_prefix=no
11655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11656 case $host_os in
11657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11658 *) need_version=no ;;
9c60689e 11659 esac
a243b558
JF
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11664 case $host_os in
11665 openbsd2.[89] | openbsd2.[89].*)
11666 shlibpath_overrides_runpath=no
11667 ;;
11668 *)
11669 shlibpath_overrides_runpath=yes
11670 ;;
11671 esac
11672 else
11673 shlibpath_overrides_runpath=yes
11674 fi
11675 ;;
9c60689e 11676
a243b558
JF
11677os2*)
11678 libname_spec='$name'
11679 shrext_cmds=".dll"
11680 need_lib_prefix=no
11681 library_names_spec='$libname${shared_ext} $libname.a'
11682 dynamic_linker='OS/2 ld.exe'
11683 shlibpath_var=LIBPATH
11684 ;;
9c60689e 11685
a243b558
JF
11686osf3* | osf4* | osf5*)
11687 version_type=osf
11688 need_lib_prefix=no
11689 need_version=no
11690 soname_spec='${libname}${release}${shared_ext}$major'
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 shlibpath_var=LD_LIBRARY_PATH
11693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11695 ;;
11696
11697rdos*)
11698 dynamic_linker=no
11699 ;;
11700
11701solaris*)
11702 version_type=linux # correct to gnu/linux during the next big refactor
11703 need_lib_prefix=no
11704 need_version=no
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=yes
11709 hardcode_into_libs=yes
11710 # ldd complains unless libraries are executable
11711 postinstall_cmds='chmod +x $lib'
11712 ;;
9c60689e 11713
a243b558
JF
11714sunos4*)
11715 version_type=sunos
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 shlibpath_overrides_runpath=yes
11720 if test "$with_gnu_ld" = yes; then
11721 need_lib_prefix=no
11722 fi
11723 need_version=yes
11724 ;;
9c60689e 11725
a243b558
JF
11726sysv4 | sysv4.3*)
11727 version_type=linux # correct to gnu/linux during the next big refactor
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 case $host_vendor in
11732 sni)
11733 shlibpath_overrides_runpath=no
11734 need_lib_prefix=no
11735 runpath_var=LD_RUN_PATH
11736 ;;
11737 siemens)
11738 need_lib_prefix=no
11739 ;;
11740 motorola)
11741 need_lib_prefix=no
11742 need_version=no
11743 shlibpath_overrides_runpath=no
11744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11745 ;;
11746 esac
11747 ;;
9c60689e 11748
a243b558
JF
11749sysv4*MP*)
11750 if test -d /usr/nec ;then
11751 version_type=linux # correct to gnu/linux during the next big refactor
11752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11753 soname_spec='$libname${shared_ext}.$major'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 fi
11756 ;;
9c60689e 11757
a243b558
JF
11758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11759 version_type=freebsd-elf
11760 need_lib_prefix=no
11761 need_version=no
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=yes
11766 hardcode_into_libs=yes
11767 if test "$with_gnu_ld" = yes; then
11768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11769 else
11770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11771 case $host_os in
11772 sco3.2v5*)
11773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11774 ;;
11775 esac
11776 fi
11777 sys_lib_dlsearch_path_spec='/usr/lib'
11778 ;;
9c60689e 11779
a243b558
JF
11780tpf*)
11781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11782 version_type=linux # correct to gnu/linux during the next big refactor
11783 need_lib_prefix=no
11784 need_version=no
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 shlibpath_overrides_runpath=no
11788 hardcode_into_libs=yes
11789 ;;
9c60689e 11790
a243b558
JF
11791uts4*)
11792 version_type=linux # correct to gnu/linux during the next big refactor
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 ;;
9c60689e 11797
a243b558
JF
11798*)
11799 dynamic_linker=no
11800 ;;
11801esac
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11803$as_echo "$dynamic_linker" >&6; }
11804test "$dynamic_linker" = no && can_build_shared=no
9c60689e 11805
a243b558
JF
11806variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11807if test "$GCC" = yes; then
11808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11809fi
9c60689e 11810
a243b558
JF
11811if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11812 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11813fi
11814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11815 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11816fi
9c60689e
DWT
11817
11818
11819
11820
11821
11822
11823
11824
9c60689e
DWT
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
9c60689e 11837
9c60689e 11838
9c60689e 11839
9c60689e 11840
9c60689e
DWT
11841
11842
11843
11844
9c60689e 11845
9c60689e
DWT
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
53ba6704
JF
11859
11860
9c60689e
DWT
11861
11862
11863
11864
9c60689e
DWT
11865
11866
3fd51f51 11867
66170b30
JF
11868
11869
11870
3fd51f51 11871
12833ad8
JF
11872
11873
11874
11875
3fd51f51 11876
3fd51f51
DWT
11877
11878
3fd51f51 11879
3fd51f51 11880
3fd51f51 11881
66170b30 11882
632b71ea 11883
632b71ea
DWT
11884
11885
790e5246 11886
66170b30 11887
9c60689e 11888
9c60689e
DWT
11889
11890
9c60689e 11891
9c60689e
DWT
11892
11893
66170b30 11894
66170b30 11895
9c60689e 11896
e9c9a47c
DWT
11897
11898
11899
66170b30
JF
11900
11901
66170b30 11902
e9c9a47c 11903
a243b558
JF
11904
11905
11906
11907
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11910$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11911hardcode_action=
11912if test -n "$hardcode_libdir_flag_spec" ||
11913 test -n "$runpath_var" ||
11914 test "X$hardcode_automatic" = "Xyes" ; then
11915
11916 # We can hardcode non-existent directories.
11917 if test "$hardcode_direct" != no &&
11918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11919 # have to relink, otherwise we might link with an installed library
11920 # when we should be linking with a yet-to-be-installed one
11921 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11922 test "$hardcode_minus_L" != no; then
11923 # Linking always hardcodes the temporary library directory.
11924 hardcode_action=relink
11925 else
11926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11927 hardcode_action=immediate
9c60689e 11928 fi
e9c9a47c 11929else
a243b558
JF
11930 # We cannot hardcode anything, or else we can only hardcode existing
11931 # directories.
11932 hardcode_action=unsupported
11933fi
11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11935$as_echo "$hardcode_action" >&6; }
11936
11937if test "$hardcode_action" = relink ||
11938 test "$inherit_rpath" = yes; then
11939 # Fast installation is not supported
11940 enable_fast_install=no
11941elif test "$shlibpath_overrides_runpath" = yes ||
11942 test "$enable_shared" = no; then
11943 # Fast installation is not necessary
11944 enable_fast_install=needless
9c60689e 11945fi
9c60689e 11946
9c60689e 11947
66170b30 11948
66170b30 11949
9c60689e 11950
a243b558
JF
11951
11952 if test "x$enable_dlopen" != xyes; then
11953 enable_dlopen=unknown
11954 enable_dlopen_self=unknown
11955 enable_dlopen_self_static=unknown
66170b30 11956else
a243b558
JF
11957 lt_cv_dlopen=no
11958 lt_cv_dlopen_libs=
66170b30 11959
a243b558
JF
11960 case $host_os in
11961 beos*)
11962 lt_cv_dlopen="load_add_on"
11963 lt_cv_dlopen_libs=
11964 lt_cv_dlopen_self=yes
11965 ;;
66170b30 11966
a243b558
JF
11967 mingw* | pw32* | cegcc*)
11968 lt_cv_dlopen="LoadLibrary"
11969 lt_cv_dlopen_libs=
11970 ;;
66170b30 11971
a243b558
JF
11972 cygwin*)
11973 lt_cv_dlopen="dlopen"
11974 lt_cv_dlopen_libs=
11975 ;;
66170b30 11976
a243b558
JF
11977 darwin*)
11978 # if libdl is installed we need to link against it
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11980$as_echo_n "checking for dlopen in -ldl... " >&6; }
11981if ${ac_cv_lib_dl_dlopen+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983else
11984 ac_check_lib_save_LIBS=$LIBS
11985LIBS="-ldl $LIBS"
11986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987/* end confdefs.h. */
66170b30 11988
a243b558
JF
11989/* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995char dlopen ();
11996int
11997main ()
11998{
11999return dlopen ();
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_dl_dlopen=yes
12006else
12007 ac_cv_lib_dl_dlopen=no
66170b30 12008fi
a243b558
JF
12009rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011LIBS=$ac_check_lib_save_LIBS
66170b30 12012fi
a243b558
JF
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12014$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12015if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12017else
66170b30 12018
a243b558
JF
12019 lt_cv_dlopen="dyld"
12020 lt_cv_dlopen_libs=
12021 lt_cv_dlopen_self=yes
66170b30 12022
a243b558 12023fi
9c60689e 12024
a243b558 12025 ;;
9c60689e 12026
a243b558
JF
12027 *)
12028 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12029if test "x$ac_cv_func_shl_load" = xyes; then :
12030 lt_cv_dlopen="shl_load"
12031else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12033$as_echo_n "checking for shl_load in -ldld... " >&6; }
12034if ${ac_cv_lib_dld_shl_load+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036else
12037 ac_check_lib_save_LIBS=$LIBS
12038LIBS="-ldld $LIBS"
12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040/* end confdefs.h. */
66170b30 12041
a243b558
JF
12042/* Override any GCC internal prototype to avoid an error.
12043 Use char because int might match the return type of a GCC
12044 builtin and then its argument prototype would still apply. */
12045#ifdef __cplusplus
12046extern "C"
12047#endif
12048char shl_load ();
12049int
12050main ()
12051{
12052return shl_load ();
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057if ac_fn_c_try_link "$LINENO"; then :
12058 ac_cv_lib_dld_shl_load=yes
66170b30 12059else
a243b558
JF
12060 ac_cv_lib_dld_shl_load=no
12061fi
12062rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12064LIBS=$ac_check_lib_save_LIBS
66170b30 12065fi
a243b558
JF
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12067$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12068if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12070else
12071 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12072if test "x$ac_cv_func_dlopen" = xyes; then :
12073 lt_cv_dlopen="dlopen"
12074else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12076$as_echo_n "checking for dlopen in -ldl... " >&6; }
12077if ${ac_cv_lib_dl_dlopen+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079else
12080 ac_check_lib_save_LIBS=$LIBS
12081LIBS="-ldl $LIBS"
12082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h. */
e9c9a47c 12084
a243b558
JF
12085/* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12088#ifdef __cplusplus
12089extern "C"
12090#endif
12091char dlopen ();
12092int
12093main ()
12094{
12095return dlopen ();
12096 ;
12097 return 0;
12098}
12099_ACEOF
12100if ac_fn_c_try_link "$LINENO"; then :
12101 ac_cv_lib_dl_dlopen=yes
12102else
12103 ac_cv_lib_dl_dlopen=no
12104fi
12105rm -f core conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
12107LIBS=$ac_check_lib_save_LIBS
12108fi
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12110$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12111if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12113else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12115$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12116if ${ac_cv_lib_svld_dlopen+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118else
12119 ac_check_lib_save_LIBS=$LIBS
12120LIBS="-lsvld $LIBS"
12121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122/* end confdefs.h. */
12123
12124/* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127#ifdef __cplusplus
12128extern "C"
12129#endif
12130char dlopen ();
12131int
12132main ()
12133{
12134return dlopen ();
12135 ;
12136 return 0;
12137}
12138_ACEOF
12139if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_svld_dlopen=yes
12141else
12142 ac_cv_lib_svld_dlopen=no
12143fi
12144rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146LIBS=$ac_check_lib_save_LIBS
12147fi
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12149$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12150if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12152else
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12154$as_echo_n "checking for dld_link in -ldld... " >&6; }
12155if ${ac_cv_lib_dld_dld_link+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157else
12158 ac_check_lib_save_LIBS=$LIBS
12159LIBS="-ldld $LIBS"
12160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161/* end confdefs.h. */
12162
12163/* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12166#ifdef __cplusplus
12167extern "C"
12168#endif
12169char dld_link ();
12170int
12171main ()
12172{
12173return dld_link ();
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_dld_dld_link=yes
9c60689e 12180else
a243b558
JF
12181 ac_cv_lib_dld_dld_link=no
12182fi
12183rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185LIBS=$ac_check_lib_save_LIBS
12186fi
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12188$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12189if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9c60689e
DWT
12191fi
12192
12193
a243b558 12194fi
66170b30 12195
66170b30 12196
a243b558 12197fi
66170b30 12198
66170b30
JF
12199
12200fi
e9c9a47c 12201
66170b30 12202
a243b558 12203fi
66170b30 12204
66170b30 12205
66170b30 12206fi
e9c9a47c 12207
a243b558
JF
12208 ;;
12209 esac
9c60689e 12210
a243b558
JF
12211 if test "x$lt_cv_dlopen" != xno; then
12212 enable_dlopen=yes
12213 else
12214 enable_dlopen=no
12215 fi
9c60689e 12216
a243b558
JF
12217 case $lt_cv_dlopen in
12218 dlopen)
12219 save_CPPFLAGS="$CPPFLAGS"
12220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12221
a243b558
JF
12222 save_LDFLAGS="$LDFLAGS"
12223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12224
a243b558
JF
12225 save_LIBS="$LIBS"
12226 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12227
a243b558
JF
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12229$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12230if ${lt_cv_dlopen_self+:} false; then :
12231 $as_echo_n "(cached) " >&6
e9c9a47c 12232else
a243b558
JF
12233 if test "$cross_compiling" = yes; then :
12234 lt_cv_dlopen_self=cross
12235else
12236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12237 lt_status=$lt_dlunknown
12238 cat > conftest.$ac_ext <<_LT_EOF
12239#line $LINENO "configure"
12240#include "confdefs.h"
e9c9a47c 12241
a243b558
JF
12242#if HAVE_DLFCN_H
12243#include <dlfcn.h>
12244#endif
e9c9a47c 12245
a243b558 12246#include <stdio.h>
66170b30 12247
a243b558
JF
12248#ifdef RTLD_GLOBAL
12249# define LT_DLGLOBAL RTLD_GLOBAL
12250#else
12251# ifdef DL_GLOBAL
12252# define LT_DLGLOBAL DL_GLOBAL
12253# else
12254# define LT_DLGLOBAL 0
12255# endif
12256#endif
66170b30 12257
a243b558
JF
12258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12259 find out it does not work in some platform. */
12260#ifndef LT_DLLAZY_OR_NOW
12261# ifdef RTLD_LAZY
12262# define LT_DLLAZY_OR_NOW RTLD_LAZY
12263# else
12264# ifdef DL_LAZY
12265# define LT_DLLAZY_OR_NOW DL_LAZY
12266# else
12267# ifdef RTLD_NOW
12268# define LT_DLLAZY_OR_NOW RTLD_NOW
12269# else
12270# ifdef DL_NOW
12271# define LT_DLLAZY_OR_NOW DL_NOW
12272# else
12273# define LT_DLLAZY_OR_NOW 0
12274# endif
12275# endif
12276# endif
12277# endif
12278#endif
e9c9a47c 12279
a243b558
JF
12280/* When -fvisbility=hidden is used, assume the code has been annotated
12281 correspondingly for the symbols needed. */
12282#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12283int fnord () __attribute__((visibility("default")));
12284#endif
e9c9a47c 12285
a243b558
JF
12286int fnord () { return 42; }
12287int main ()
12288{
12289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12290 int status = $lt_dlunknown;
e9c9a47c 12291
a243b558
JF
12292 if (self)
12293 {
12294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12295 else
12296 {
12297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12298 else puts (dlerror ());
12299 }
12300 /* dlclose (self); */
12301 }
12302 else
12303 puts (dlerror ());
e9c9a47c 12304
a243b558
JF
12305 return status;
12306}
12307_LT_EOF
12308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12309 (eval $ac_link) 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12313 (./conftest; exit; ) >&5 2>/dev/null
12314 lt_status=$?
12315 case x$lt_status in
12316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12318 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12319 esac
12320 else :
12321 # compilation failed
12322 lt_cv_dlopen_self=no
12323 fi
12324fi
12325rm -fr conftest*
e9c9a47c 12326
e9c9a47c 12327
e9c9a47c 12328fi
a243b558
JF
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12330$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12331
a243b558
JF
12332 if test "x$lt_cv_dlopen_self" = xyes; then
12333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12335$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12336if ${lt_cv_dlopen_self_static+:} false; then :
12337 $as_echo_n "(cached) " >&6
e9c9a47c 12338else
a243b558
JF
12339 if test "$cross_compiling" = yes; then :
12340 lt_cv_dlopen_self_static=cross
12341else
12342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12343 lt_status=$lt_dlunknown
12344 cat > conftest.$ac_ext <<_LT_EOF
12345#line $LINENO "configure"
12346#include "confdefs.h"
12347
12348#if HAVE_DLFCN_H
12349#include <dlfcn.h>
12350#endif
12351
12352#include <stdio.h>
e9c9a47c 12353
a243b558
JF
12354#ifdef RTLD_GLOBAL
12355# define LT_DLGLOBAL RTLD_GLOBAL
12356#else
12357# ifdef DL_GLOBAL
12358# define LT_DLGLOBAL DL_GLOBAL
12359# else
12360# define LT_DLGLOBAL 0
12361# endif
12362#endif
e9c9a47c 12363
a243b558
JF
12364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12365 find out it does not work in some platform. */
12366#ifndef LT_DLLAZY_OR_NOW
12367# ifdef RTLD_LAZY
12368# define LT_DLLAZY_OR_NOW RTLD_LAZY
12369# else
12370# ifdef DL_LAZY
12371# define LT_DLLAZY_OR_NOW DL_LAZY
12372# else
12373# ifdef RTLD_NOW
12374# define LT_DLLAZY_OR_NOW RTLD_NOW
12375# else
12376# ifdef DL_NOW
12377# define LT_DLLAZY_OR_NOW DL_NOW
12378# else
12379# define LT_DLLAZY_OR_NOW 0
12380# endif
12381# endif
12382# endif
12383# endif
12384#endif
66170b30 12385
a243b558
JF
12386/* When -fvisbility=hidden is used, assume the code has been annotated
12387 correspondingly for the symbols needed. */
12388#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12389int fnord () __attribute__((visibility("default")));
12390#endif
e9c9a47c 12391
a243b558
JF
12392int fnord () { return 42; }
12393int main ()
12394{
12395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12396 int status = $lt_dlunknown;
e9c9a47c 12397
a243b558
JF
12398 if (self)
12399 {
12400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12401 else
12402 {
12403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12404 else puts (dlerror ());
12405 }
12406 /* dlclose (self); */
12407 }
12408 else
12409 puts (dlerror ());
e9c9a47c 12410
a243b558
JF
12411 return status;
12412}
12413_LT_EOF
12414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12415 (eval $ac_link) 2>&5
12416 ac_status=$?
12417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12418 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12419 (./conftest; exit; ) >&5 2>/dev/null
12420 lt_status=$?
12421 case x$lt_status in
12422 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12423 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12424 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12425 esac
12426 else :
12427 # compilation failed
12428 lt_cv_dlopen_self_static=no
12429 fi
12430fi
12431rm -fr conftest*
e9c9a47c 12432
b65019fe 12433
a243b558
JF
12434fi
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12436$as_echo "$lt_cv_dlopen_self_static" >&6; }
12437 fi
66170b30 12438
a243b558
JF
12439 CPPFLAGS="$save_CPPFLAGS"
12440 LDFLAGS="$save_LDFLAGS"
12441 LIBS="$save_LIBS"
12442 ;;
12443 esac
66170b30 12444
a243b558
JF
12445 case $lt_cv_dlopen_self in
12446 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12447 *) enable_dlopen_self=unknown ;;
12448 esac
12449
12450 case $lt_cv_dlopen_self_static in
12451 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12452 *) enable_dlopen_self_static=unknown ;;
12453 esac
b65019fe
DWT
12454fi
12455
12456
66170b30 12457
b65019fe 12458
e9c9a47c 12459
e9c9a47c
DWT
12460
12461
e9c9a47c 12462
e9c9a47c
DWT
12463
12464
e9c9a47c 12465
e9c9a47c 12466
3530897b 12467
47aaa820 12468
47aaa820 12469
a243b558
JF
12470
12471
12472striplib=
12473old_striplib=
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12475$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12476if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12480$as_echo "yes" >&6; }
47aaa820 12481else
a243b558
JF
12482# FIXME - insert some real tests, host_os isn't really good enough
12483 case $host_os in
12484 darwin*)
12485 if test -n "$STRIP" ; then
12486 striplib="$STRIP -x"
12487 old_striplib="$STRIP -S"
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12489$as_echo "yes" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
12493 fi
12494 ;;
12495 *)
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497$as_echo "no" >&6; }
12498 ;;
12499 esac
3530897b 12500fi
47aaa820 12501
3530897b
DWT
12502
12503
9c60689e 12504
9c60689e 12505
9c60689e 12506
9c60689e 12507
9c60689e 12508
66170b30 12509
66170b30 12510
66170b30 12511
66170b30 12512
a243b558
JF
12513 # Report which library types will actually be built
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12515$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12517$as_echo "$can_build_shared" >&6; }
66170b30 12518
a243b558
JF
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12520$as_echo_n "checking whether to build shared libraries... " >&6; }
12521 test "$can_build_shared" = "no" && enable_shared=no
66170b30 12522
a243b558
JF
12523 # On AIX, shared libraries and static libraries use the same namespace, and
12524 # are all built from PIC.
12525 case $host_os in
12526 aix3*)
12527 test "$enable_shared" = yes && enable_static=no
12528 if test -n "$RANLIB"; then
12529 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12530 postinstall_cmds='$RANLIB $lib'
12531 fi
12532 ;;
66170b30 12533
a243b558
JF
12534 aix[4-9]*)
12535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12536 test "$enable_shared" = yes && enable_static=no
12537 fi
12538 ;;
12539 esac
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12541$as_echo "$enable_shared" >&6; }
66170b30 12542
a243b558
JF
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12544$as_echo_n "checking whether to build static libraries... " >&6; }
12545 # Make sure either enable_shared or enable_static is yes.
12546 test "$enable_shared" = yes || enable_static=yes
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12548$as_echo "$enable_static" >&6; }
66170b30 12549
9c60689e 12550
e9c9a47c 12551
9c60689e 12552
a243b558
JF
12553fi
12554ac_ext=c
12555ac_cpp='$CPP $CPPFLAGS'
12556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558ac_compiler_gnu=$ac_cv_c_compiler_gnu
12559
12560CC="$lt_save_CC"
e9c9a47c 12561
ee134472 12562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
e9c9a47c
DWT
12563 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12564 (test "X$CXX" != "Xg++"))) ; then
12565 ac_ext=cpp
12566ac_cpp='$CXXCPP $CPPFLAGS'
12567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12571$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12572if test -z "$CXXCPP"; then
ee134472 12573 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
12574 $as_echo_n "(cached) " >&6
12575else
12576 # Double quotes because CXXCPP needs to be expanded
12577 for CXXCPP in "$CXX -E" "/lib/cpp"
12578 do
12579 ac_preproc_ok=false
12580for ac_cxx_preproc_warn_flag in '' yes
12581do
12582 # Use a header file that comes with gcc, so configuring glibc
12583 # with a fresh cross-compiler works.
12584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12585 # <limits.h> exists even on freestanding compilers.
12586 # On the NeXT, cc -E runs the code through the compiler's parser,
12587 # not just through cpp. "Syntax error" is here to catch this case.
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589/* end confdefs.h. */
12590#ifdef __STDC__
12591# include <limits.h>
12592#else
12593# include <assert.h>
12594#endif
12595 Syntax error
12596_ACEOF
12597if ac_fn_cxx_try_cpp "$LINENO"; then :
12598
12599else
12600 # Broken: fails on valid input.
12601continue
12602fi
12833ad8 12603rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12604
12605 # OK, works on sane cases. Now check whether nonexistent headers
12606 # can be detected and how.
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608/* end confdefs.h. */
12609#include <ac_nonexistent.h>
12610_ACEOF
12611if ac_fn_cxx_try_cpp "$LINENO"; then :
12612 # Broken: success on invalid input.
12613continue
12614else
12615 # Passes both tests.
12616ac_preproc_ok=:
12617break
12618fi
12833ad8 12619rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12620
12621done
12622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12623rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12624if $ac_preproc_ok; then :
12625 break
12626fi
12627
12628 done
12629 ac_cv_prog_CXXCPP=$CXXCPP
12630
12631fi
12632 CXXCPP=$ac_cv_prog_CXXCPP
12633else
12634 ac_cv_prog_CXXCPP=$CXXCPP
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12637$as_echo "$CXXCPP" >&6; }
12638ac_preproc_ok=false
12639for ac_cxx_preproc_warn_flag in '' yes
12640do
12641 # Use a header file that comes with gcc, so configuring glibc
12642 # with a fresh cross-compiler works.
12643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12644 # <limits.h> exists even on freestanding compilers.
12645 # On the NeXT, cc -E runs the code through the compiler's parser,
12646 # not just through cpp. "Syntax error" is here to catch this case.
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h. */
12649#ifdef __STDC__
12650# include <limits.h>
12651#else
12652# include <assert.h>
12653#endif
12654 Syntax error
12655_ACEOF
12656if ac_fn_cxx_try_cpp "$LINENO"; then :
12657
12658else
12659 # Broken: fails on valid input.
12660continue
12661fi
12833ad8 12662rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12663
12664 # OK, works on sane cases. Now check whether nonexistent headers
12665 # can be detected and how.
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h. */
12668#include <ac_nonexistent.h>
12669_ACEOF
12670if ac_fn_cxx_try_cpp "$LINENO"; then :
12671 # Broken: success on invalid input.
12672continue
12673else
12674 # Passes both tests.
12675ac_preproc_ok=:
12676break
12677fi
12833ad8 12678rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
12679
12680done
12681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 12682rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
12683if $ac_preproc_ok; then :
12684
12685else
12686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
12688as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12689See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
12690fi
12691
a243b558
JF
12692ac_ext=c
12693ac_cpp='$CPP $CPPFLAGS'
12694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
12697
12698else
e9c9a47c
DWT
12699 _lt_caught_CXX_error=yes
12700fi
12701
9c60689e
DWT
12702ac_ext=cpp
12703ac_cpp='$CXXCPP $CPPFLAGS'
12704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 12707
47aaa820
DWT
12708archive_cmds_need_lc_CXX=no
12709allow_undefined_flag_CXX=
12710always_export_symbols_CXX=no
12711archive_expsym_cmds_CXX=
12712compiler_needs_object_CXX=no
12713export_dynamic_flag_spec_CXX=
12714hardcode_direct_CXX=no
12715hardcode_direct_absolute_CXX=no
12716hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
12717hardcode_libdir_separator_CXX=
12718hardcode_minus_L_CXX=no
12719hardcode_shlibpath_var_CXX=unsupported
12720hardcode_automatic_CXX=no
12721inherit_rpath_CXX=no
12722module_cmds_CXX=
12723module_expsym_cmds_CXX=
12724link_all_deplibs_CXX=unknown
12725old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
12726reload_flag_CXX=$reload_flag
12727reload_cmds_CXX=$reload_cmds
47aaa820
DWT
12728no_undefined_flag_CXX=
12729whole_archive_flag_spec_CXX=
12730enable_shared_with_static_runtimes_CXX=no
9c60689e 12731
47aaa820
DWT
12732# Source file extension for C++ test sources.
12733ac_ext=cpp
9c60689e 12734
47aaa820
DWT
12735# Object file extension for compiled C++ test sources.
12736objext=o
12737objext_CXX=$objext
9c60689e 12738
47aaa820
DWT
12739# No sense in running all these tests if we already determined that
12740# the CXX compiler isn't working. Some variables (like enable_shared)
12741# are currently assumed to apply to all compilers on this platform,
12742# and will be corrupted by setting them based on a non-working compiler.
12743if test "$_lt_caught_CXX_error" != yes; then
12744 # Code to be used in simple compile tests
12745 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 12746
47aaa820
DWT
12747 # Code to be used in simple link tests
12748 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 12749
47aaa820 12750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 12751
9c60689e 12752
9c60689e 12753
9c60689e 12754
9c60689e 12755
9c60689e 12756
47aaa820
DWT
12757# If no C compiler was specified, use CC.
12758LTCC=${LTCC-"$CC"}
9c60689e 12759
47aaa820
DWT
12760# If no C compiler flags were specified, use CFLAGS.
12761LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 12762
47aaa820
DWT
12763# Allow CC to be a program name with arguments.
12764compiler=$CC
9c60689e 12765
9c60689e 12766
47aaa820
DWT
12767 # save warnings/boilerplate of simple test code
12768 ac_outfile=conftest.$ac_objext
12769echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12770eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12771_lt_compiler_boilerplate=`cat conftest.err`
53ba6704 12772$RM -r conftest*
9c60689e 12773
47aaa820
DWT
12774 ac_outfile=conftest.$ac_objext
12775echo "$lt_simple_link_test_code" >conftest.$ac_ext
12776eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12777_lt_linker_boilerplate=`cat conftest.err`
12778$RM -r conftest*
9c60689e 12779
9c60689e 12780
47aaa820
DWT
12781 # Allow CC to be a program name with arguments.
12782 lt_save_CC=$CC
ee134472 12783 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
12784 lt_save_LD=$LD
12785 lt_save_GCC=$GCC
12786 GCC=$GXX
12787 lt_save_with_gnu_ld=$with_gnu_ld
12788 lt_save_path_LD=$lt_cv_path_LD
12789 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12790 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 12791 else
47aaa820 12792 $as_unset lt_cv_prog_gnu_ld
9c60689e 12793 fi
47aaa820
DWT
12794 if test -n "${lt_cv_path_LDCXX+set}"; then
12795 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 12796 else
47aaa820 12797 $as_unset lt_cv_path_LD
9c60689e 12798 fi
47aaa820
DWT
12799 test -z "${LDCXX+set}" || LD=$LDCXX
12800 CC=${CXX-"c++"}
ee134472 12801 CFLAGS=$CXXFLAGS
47aaa820
DWT
12802 compiler=$CC
12803 compiler_CXX=$CC
12804 for cc_temp in $compiler""; do
12805 case $cc_temp in
12806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12808 \-*) ;;
12809 *) break;;
12810 esac
12811done
ee134472 12812cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9c60689e
DWT
12813
12814
47aaa820
DWT
12815 if test -n "$compiler"; then
12816 # We don't want -fno-exception when compiling C++ code, so set the
12817 # no_builtin_flag separately
12818 if test "$GXX" = yes; then
12819 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12820 else
12821 lt_prog_compiler_no_builtin_flag_CXX=
12822 fi
9c60689e 12823
47aaa820
DWT
12824 if test "$GXX" = yes; then
12825 # Set up default GNU C++ configuration
12826
12827
12828
12829# Check whether --with-gnu-ld was given.
12830if test "${with_gnu_ld+set}" = set; then :
12831 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9c60689e 12832else
47aaa820 12833 with_gnu_ld=no
9c60689e
DWT
12834fi
12835
47aaa820
DWT
12836ac_prog=ld
12837if test "$GCC" = yes; then
12838 # Check if gcc -print-prog-name=ld gives a path.
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12840$as_echo_n "checking for ld used by $CC... " >&6; }
12841 case $host in
12842 *-*-mingw*)
12843 # gcc leaves a trailing carriage return which upsets mingw
12844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12845 *)
12846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12847 esac
12848 case $ac_prog in
12849 # Accept absolute paths.
12850 [\\/]* | ?:[\\/]*)
12851 re_direlt='/[^/][^/]*/\.\./'
12852 # Canonicalize the pathname of ld
12853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12856 done
12857 test -z "$LD" && LD="$ac_prog"
12858 ;;
12859 "")
12860 # If it fails, then pretend we aren't using GCC.
12861 ac_prog=ld
12862 ;;
12863 *)
12864 # If it is relative, then search for the first ld in PATH.
12865 with_gnu_ld=unknown
12866 ;;
12867 esac
12868elif test "$with_gnu_ld" = yes; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12870$as_echo_n "checking for GNU ld... " >&6; }
12871else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12873$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 12874fi
ee134472 12875if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
12876 $as_echo_n "(cached) " >&6
12877else
47aaa820
DWT
12878 if test -z "$LD"; then
12879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12880 for ac_dir in $PATH; do
12881 IFS="$lt_save_ifs"
12882 test -z "$ac_dir" && ac_dir=.
12883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12884 lt_cv_path_LD="$ac_dir/$ac_prog"
12885 # Check to see if the program is GNU ld. I'd rather use --version,
12886 # but apparently some variants of GNU ld only accept -v.
12887 # Break only if it was the GNU/non-GNU ld that we prefer.
12888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12889 *GNU* | *'with BFD'*)
12890 test "$with_gnu_ld" != no && break
12891 ;;
12892 *)
12893 test "$with_gnu_ld" != yes && break
12894 ;;
12895 esac
12896 fi
9c60689e 12897 done
47aaa820
DWT
12898 IFS="$lt_save_ifs"
12899else
12900 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9c60689e
DWT
12901fi
12902fi
47aaa820
DWT
12903
12904LD="$lt_cv_path_LD"
12905if test -n "$LD"; then
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12907$as_echo "$LD" >&6; }
9c60689e
DWT
12908else
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12910$as_echo "no" >&6; }
12911fi
12833ad8 12912test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12914$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 12915if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
12916 $as_echo_n "(cached) " >&6
12917else
12918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12919case `$LD -v 2>&1 </dev/null` in
12920*GNU* | *'with BFD'*)
12921 lt_cv_prog_gnu_ld=yes
12922 ;;
12923*)
12924 lt_cv_prog_gnu_ld=no
12925 ;;
12926esac
12927fi
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12929$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12930with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
12931
12932
9c60689e 12933
9c60689e 12934
9c60689e 12935
9c60689e 12936
9c60689e 12937
47aaa820
DWT
12938 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12939 # archiving commands below assume that GNU ld is being used.
12940 if test "$with_gnu_ld" = yes; then
ee134472
JF
12941 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 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 12943
47aaa820
DWT
12944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 12946
47aaa820
DWT
12947 # If archive_cmds runs LD, not CC, wlarc should be empty
12948 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12949 # investigate it a little bit more. (MM)
12950 wlarc='${wl}'
9c60689e 12951
47aaa820
DWT
12952 # ancient GNU ld didn't support --whole-archive et. al.
12953 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12954 $GREP 'no-whole-archive' > /dev/null; then
12955 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12956 else
12957 whole_archive_flag_spec_CXX=
12958 fi
12959 else
12960 with_gnu_ld=no
12961 wlarc=
12962
12963 # A generic and very simple default shared library creation
12964 # command for GNU C++ for the case where it uses the native
12965 # linker, instead of GNU ld. If possible, this setting should
12966 # overridden to take advantage of the native linker features on
12967 # the platform it is being used on.
12968 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12969 fi
12970
12971 # Commands to make compiler produce verbose output that lists
12972 # what "hidden" libraries, object files and flags are used when
12973 # linking a shared library.
ee134472 12974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
12975
12976 else
12977 GXX=no
12978 with_gnu_ld=no
12979 wlarc=
12980 fi
12981
12982 # PORTME: fill in a description of your system's C++ link characteristics
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12984$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12985 ld_shlibs_CXX=yes
12986 case $host_os in
12987 aix3*)
12988 # FIXME: insert proper C++ library support
12989 ld_shlibs_CXX=no
12990 ;;
12991 aix[4-9]*)
12992 if test "$host_cpu" = ia64; then
12993 # On IA64, the linker does run time linking by default, so we don't
12994 # have to do anything special.
12995 aix_use_runtimelinking=no
12996 exp_sym_flag='-Bexport'
12997 no_entry_flag=""
12998 else
12999 aix_use_runtimelinking=no
13000
13001 # Test if we are trying to use run time linking or normal
13002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13003 # need to do runtime linking.
13004 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13005 for ld_flag in $LDFLAGS; do
13006 case $ld_flag in
13007 *-brtl*)
13008 aix_use_runtimelinking=yes
13009 break
13010 ;;
13011 esac
13012 done
13013 ;;
13014 esac
13015
13016 exp_sym_flag='-bexport'
13017 no_entry_flag='-bnoentry'
13018 fi
13019
13020 # When large executables or shared objects are built, AIX ld can
13021 # have problems creating the table of contents. If linking a library
13022 # or program results in "error TOC overflow" add -mminimal-toc to
13023 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13024 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13025
13026 archive_cmds_CXX=''
13027 hardcode_direct_CXX=yes
13028 hardcode_direct_absolute_CXX=yes
13029 hardcode_libdir_separator_CXX=':'
13030 link_all_deplibs_CXX=yes
13031 file_list_spec_CXX='${wl}-f,'
13032
13033 if test "$GXX" = yes; then
13034 case $host_os in aix4.[012]|aix4.[012].*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name=`${CC} -print-prog-name=collect2`
13038 if test -f "$collect2name" &&
13039 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13040 then
13041 # We have reworked collect2
13042 :
13043 else
13044 # We have old collect2
13045 hardcode_direct_CXX=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L_CXX=yes
13050 hardcode_libdir_flag_spec_CXX='-L$libdir'
13051 hardcode_libdir_separator_CXX=
13052 fi
13053 esac
13054 shared_flag='-shared'
13055 if test "$aix_use_runtimelinking" = yes; then
13056 shared_flag="$shared_flag "'${wl}-G'
13057 fi
13058 else
13059 # not using gcc
13060 if test "$host_cpu" = ia64; then
13061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13062 # chokes on -Wl,-G. The following line is correct:
13063 shared_flag='-G'
13064 else
13065 if test "$aix_use_runtimelinking" = yes; then
13066 shared_flag='${wl}-G'
13067 else
13068 shared_flag='${wl}-bM:SRE'
13069 fi
13070 fi
13071 fi
13072
13073 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13074 # It seems that -bexpall does not export symbols beginning with
13075 # underscore (_), so it is better to generate a list of symbols to
13076 # export.
13077 always_export_symbols_CXX=yes
13078 if test "$aix_use_runtimelinking" = yes; then
13079 # Warning - without using the other runtime loading flags (-brtl),
13080 # -berok will link without error, but may produce a broken library.
13081 allow_undefined_flag_CXX='-berok'
13082 # Determine the default libpath from the value encoded in an empty
13083 # executable.
ee134472
JF
13084 if test "${lt_cv_aix_libpath+set}" = set; then
13085 aix_libpath=$lt_cv_aix_libpath
13086else
13087 if ${lt_cv_aix_libpath__CXX+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089else
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13091/* end confdefs.h. */
13092
13093int
13094main ()
13095{
13096
13097 ;
13098 return 0;
13099}
13100_ACEOF
47aaa820 13101if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13102
ee134472
JF
13103 lt_aix_libpath_sed='
13104 /Import File Strings/,/^$/ {
13105 /^0/ {
13106 s/^0 *\([^ ]*\) *$/\1/
13107 p
13108 }
13109 }'
13110 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111 # Check for a 64-bit object if we didn't find anything.
13112 if test -z "$lt_cv_aix_libpath__CXX"; then
13113 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13114 fi
47aaa820
DWT
13115fi
13116rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13118 if test -z "$lt_cv_aix_libpath__CXX"; then
13119 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13120 fi
13121
13122fi
13123
13124 aix_libpath=$lt_cv_aix_libpath__CXX
13125fi
47aaa820
DWT
13126
13127 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13128
ee134472 13129 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47aaa820
DWT
13130 else
13131 if test "$host_cpu" = ia64; then
13132 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13133 allow_undefined_flag_CXX="-z nodefs"
13134 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"
13135 else
13136 # Determine the default libpath from the value encoded in an
13137 # empty executable.
ee134472
JF
13138 if test "${lt_cv_aix_libpath+set}" = set; then
13139 aix_libpath=$lt_cv_aix_libpath
13140else
13141 if ${lt_cv_aix_libpath__CXX+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143else
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13145/* end confdefs.h. */
13146
13147int
13148main ()
13149{
13150
13151 ;
13152 return 0;
13153}
13154_ACEOF
47aaa820 13155if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13156
ee134472
JF
13157 lt_aix_libpath_sed='
13158 /Import File Strings/,/^$/ {
13159 /^0/ {
13160 s/^0 *\([^ ]*\) *$/\1/
13161 p
13162 }
13163 }'
13164 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13165 # Check for a 64-bit object if we didn't find anything.
13166 if test -z "$lt_cv_aix_libpath__CXX"; then
13167 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13168 fi
9c60689e 13169fi
47aaa820
DWT
13170rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
13172 if test -z "$lt_cv_aix_libpath__CXX"; then
13173 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13174 fi
13175
13176fi
13177
13178 aix_libpath=$lt_cv_aix_libpath__CXX
13179fi
9c60689e 13180
47aaa820
DWT
13181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13182 # Warning - without using the other run time loading flags,
13183 # -berok will link without error, but may produce a broken library.
13184 no_undefined_flag_CXX=' ${wl}-bernotok'
13185 allow_undefined_flag_CXX=' ${wl}-berok'
ee134472
JF
13186 if test "$with_gnu_ld" = yes; then
13187 # We only use this code for GNU lds that support --whole-archive.
13188 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13189 else
13190 # Exported symbols can be pulled into shared objects from archives
13191 whole_archive_flag_spec_CXX='$convenience'
13192 fi
47aaa820
DWT
13193 archive_cmds_need_lc_CXX=yes
13194 # This is similar to how AIX traditionally builds its shared
13195 # libraries.
13196 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13197 fi
13198 fi
13199 ;;
9c60689e 13200
47aaa820
DWT
13201 beos*)
13202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13203 allow_undefined_flag_CXX=unsupported
13204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13205 # support --undefined. This deserves some investigation. FIXME
13206 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13207 else
13208 ld_shlibs_CXX=no
13209 fi
13210 ;;
9c60689e 13211
47aaa820
DWT
13212 chorus*)
13213 case $cc_basename in
13214 *)
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13217 ;;
13218 esac
13219 ;;
9c60689e 13220
47aaa820 13221 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13222 case $GXX,$cc_basename in
13223 ,cl* | no,cl*)
13224 # Native MSVC
13225 # hardcode_libdir_flag_spec is actually meaningless, as there is
13226 # no search path for DLLs.
13227 hardcode_libdir_flag_spec_CXX=' '
13228 allow_undefined_flag_CXX=unsupported
13229 always_export_symbols_CXX=yes
13230 file_list_spec_CXX='@'
13231 # Tell ltmain to make .lib files, not .a files.
13232 libext=lib
13233 # Tell ltmain to make .dll files, not .so files.
13234 shrext_cmds=".dll"
13235 # FIXME: Setting linknames here is a bad hack.
13236 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13237 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13238 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13239 else
13240 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13241 fi~
13242 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13243 linknames='
13244 # The linker will not automatically build a static lib if we build a DLL.
13245 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13246 enable_shared_with_static_runtimes_CXX=yes
13247 # Don't use ranlib
13248 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13249 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13250 lt_tool_outputfile="@TOOL_OUTPUT@"~
13251 case $lt_outputfile in
13252 *.exe|*.EXE) ;;
13253 *)
13254 lt_outputfile="$lt_outputfile.exe"
13255 lt_tool_outputfile="$lt_tool_outputfile.exe"
13256 ;;
13257 esac~
13258 func_to_tool_file "$lt_outputfile"~
13259 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13260 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13261 $RM "$lt_outputfile.manifest";
13262 fi'
13263 ;;
13264 *)
13265 # g++
13266 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13267 # as there is no search path for DLLs.
13268 hardcode_libdir_flag_spec_CXX='-L$libdir'
13269 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13270 allow_undefined_flag_CXX=unsupported
13271 always_export_symbols_CXX=no
13272 enable_shared_with_static_runtimes_CXX=yes
13273
13274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13275 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'
13276 # If the export-symbols file already is a .def file (1st line
13277 # is EXPORTS), use it as is; otherwise, prepend...
13278 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13279 cp $export_symbols $output_objdir/$soname.def;
13280 else
13281 echo EXPORTS > $output_objdir/$soname.def;
13282 cat $export_symbols >> $output_objdir/$soname.def;
13283 fi~
13284 $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'
13285 else
13286 ld_shlibs_CXX=no
13287 fi
13288 ;;
13289 esac
13290 ;;
47aaa820 13291 darwin* | rhapsody*)
9c60689e 13292
9c60689e 13293
47aaa820
DWT
13294 archive_cmds_need_lc_CXX=no
13295 hardcode_direct_CXX=no
13296 hardcode_automatic_CXX=yes
13297 hardcode_shlibpath_var_CXX=unsupported
ee134472
JF
13298 if test "$lt_cv_ld_force_load" = "yes"; then
13299 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 13300
ee134472
JF
13301 else
13302 whole_archive_flag_spec_CXX=''
13303 fi
47aaa820
DWT
13304 link_all_deplibs_CXX=yes
13305 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13306 case $cc_basename in
13307 ifort*) _lt_dar_can_shared=yes ;;
13308 *) _lt_dar_can_shared=$GCC ;;
13309 esac
13310 if test "$_lt_dar_can_shared" = "yes"; then
ee134472 13311 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13312 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}"
13313 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13314 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}"
13315 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}"
13316 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13317 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}"
13318 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}"
13319 fi
9c60689e 13320
47aaa820
DWT
13321 else
13322 ld_shlibs_CXX=no
13323 fi
9c60689e 13324
47aaa820 13325 ;;
9c60689e 13326
47aaa820
DWT
13327 dgux*)
13328 case $cc_basename in
13329 ec++*)
13330 # FIXME: insert proper C++ library support
13331 ld_shlibs_CXX=no
13332 ;;
13333 ghcx*)
13334 # Green Hills C++ Compiler
13335 # FIXME: insert proper C++ library support
13336 ld_shlibs_CXX=no
13337 ;;
13338 *)
13339 # FIXME: insert proper C++ library support
13340 ld_shlibs_CXX=no
13341 ;;
13342 esac
13343 ;;
9c60689e 13344
53ba6704 13345 freebsd2.*)
47aaa820
DWT
13346 # C++ shared libraries reported to be fairly broken before
13347 # switch to ELF
13348 ld_shlibs_CXX=no
13349 ;;
9c60689e 13350
47aaa820
DWT
13351 freebsd-elf*)
13352 archive_cmds_need_lc_CXX=no
13353 ;;
9c60689e 13354
47aaa820
DWT
13355 freebsd* | dragonfly*)
13356 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13357 # conventions
13358 ld_shlibs_CXX=yes
13359 ;;
9c60689e 13360
47aaa820
DWT
13361 gnu*)
13362 ;;
9c60689e 13363
ee134472
JF
13364 haiku*)
13365 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13366 link_all_deplibs_CXX=yes
13367 ;;
13368
47aaa820
DWT
13369 hpux9*)
13370 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13371 hardcode_libdir_separator_CXX=:
13372 export_dynamic_flag_spec_CXX='${wl}-E'
13373 hardcode_direct_CXX=yes
13374 hardcode_minus_L_CXX=yes # Not in the search PATH,
13375 # but as the default
13376 # location of the library.
9c60689e 13377
47aaa820
DWT
13378 case $cc_basename in
13379 CC*)
13380 # FIXME: insert proper C++ library support
13381 ld_shlibs_CXX=no
13382 ;;
13383 aCC*)
13384 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13385 # Commands to make compiler produce verbose output that lists
13386 # what "hidden" libraries, object files and flags are used when
13387 # linking a shared library.
13388 #
13389 # There doesn't appear to be a way to prevent this compiler from
13390 # explicitly linking system object files so we need to strip them
13391 # from the output so that they don't get included in the library
13392 # dependencies.
ee134472 13393 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
13394 ;;
13395 *)
13396 if test "$GXX" = yes; then
ee134472 13397 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
47aaa820
DWT
13398 else
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13401 fi
13402 ;;
13403 esac
13404 ;;
9c60689e 13405
47aaa820
DWT
13406 hpux10*|hpux11*)
13407 if test $with_gnu_ld = no; then
13408 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13409 hardcode_libdir_separator_CXX=:
9c60689e 13410
47aaa820
DWT
13411 case $host_cpu in
13412 hppa*64*|ia64*)
13413 ;;
13414 *)
13415 export_dynamic_flag_spec_CXX='${wl}-E'
13416 ;;
13417 esac
13418 fi
13419 case $host_cpu in
13420 hppa*64*|ia64*)
13421 hardcode_direct_CXX=no
13422 hardcode_shlibpath_var_CXX=no
13423 ;;
13424 *)
13425 hardcode_direct_CXX=yes
13426 hardcode_direct_absolute_CXX=yes
13427 hardcode_minus_L_CXX=yes # Not in the search PATH,
13428 # but as the default
13429 # location of the library.
13430 ;;
13431 esac
9c60689e 13432
47aaa820
DWT
13433 case $cc_basename in
13434 CC*)
13435 # FIXME: insert proper C++ library support
13436 ld_shlibs_CXX=no
13437 ;;
13438 aCC*)
13439 case $host_cpu in
13440 hppa*64*)
13441 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442 ;;
13443 ia64*)
13444 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13445 ;;
13446 *)
13447 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13448 ;;
13449 esac
13450 # Commands to make compiler produce verbose output that lists
13451 # what "hidden" libraries, object files and flags are used when
13452 # linking a shared library.
13453 #
13454 # There doesn't appear to be a way to prevent this compiler from
13455 # explicitly linking system object files so we need to strip them
13456 # from the output so that they don't get included in the library
13457 # dependencies.
ee134472 13458 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
13459 ;;
13460 *)
13461 if test "$GXX" = yes; then
13462 if test $with_gnu_ld = no; then
13463 case $host_cpu in
13464 hppa*64*)
13465 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13466 ;;
13467 ia64*)
ee134472 13468 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
13469 ;;
13470 *)
ee134472 13471 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
13472 ;;
13473 esac
13474 fi
13475 else
13476 # FIXME: insert proper C++ library support
13477 ld_shlibs_CXX=no
13478 fi
13479 ;;
13480 esac
13481 ;;
9c60689e 13482
47aaa820
DWT
13483 interix[3-9]*)
13484 hardcode_direct_CXX=no
13485 hardcode_shlibpath_var_CXX=no
13486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13487 export_dynamic_flag_spec_CXX='${wl}-E'
13488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13489 # Instead, shared libraries are loaded at an image base (0x10000000 by
13490 # default) and relocated if they conflict, which is a slow very memory
13491 # consuming and fragmenting process. To avoid this, we pick a random,
13492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13494 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'
13495 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'
13496 ;;
13497 irix5* | irix6*)
13498 case $cc_basename in
13499 CC*)
13500 # SGI C++
ee134472 13501 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 13502
47aaa820
DWT
13503 # Archives containing C++ object files must be created using
13504 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13505 # necessary to make sure instantiated templates are included
13506 # in the archive.
13507 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13508 ;;
13509 *)
13510 if test "$GXX" = yes; then
13511 if test "$with_gnu_ld" = no; then
ee134472 13512 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 13513 else
ee134472 13514 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
13515 fi
13516 fi
13517 link_all_deplibs_CXX=yes
13518 ;;
13519 esac
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521 hardcode_libdir_separator_CXX=:
13522 inherit_rpath_CXX=yes
13523 ;;
9c60689e 13524
1504c9b8 13525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
47aaa820
DWT
13526 case $cc_basename in
13527 KCC*)
13528 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13529
47aaa820
DWT
13530 # KCC will only create a shared library if the output file
13531 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13532 # to its proper name (with version) after linking.
13533 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'
13534 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'
13535 # Commands to make compiler produce verbose output that lists
13536 # what "hidden" libraries, object files and flags are used when
13537 # linking a shared library.
13538 #
13539 # There doesn't appear to be a way to prevent this compiler from
13540 # explicitly linking system object files so we need to strip them
13541 # from the output so that they don't get included in the library
13542 # dependencies.
ee134472 13543 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 13544
47aaa820
DWT
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9c60689e 13547
47aaa820
DWT
13548 # Archives containing C++ object files must be created using
13549 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13550 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13551 ;;
13552 icpc* | ecpc* )
13553 # Intel C++
13554 with_gnu_ld=yes
13555 # version 8.0 and above of icpc choke on multiply defined symbols
13556 # if we add $predep_objects and $postdep_objects, however 7.1 and
13557 # earlier do not add the objects themselves.
13558 case `$CC -V 2>&1` in
13559 *"Version 7."*)
13560 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561 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'
13562 ;;
13563 *) # Version 8.0 or newer
13564 tmp_idyn=
13565 case $host_cpu in
13566 ia64*) tmp_idyn=' -i_dynamic';;
13567 esac
13568 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13569 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'
13570 ;;
13571 esac
13572 archive_cmds_need_lc_CXX=no
13573 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13575 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13576 ;;
13577 pgCC* | pgcpp*)
13578 # Portland Group C++ compiler
13579 case `$CC -V` in
ee134472 13580 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820
DWT
13581 prelink_cmds_CXX='tpldir=Template.dir~
13582 rm -rf $tpldir~
13583 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
ee134472 13584 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820
DWT
13585 old_archive_cmds_CXX='tpldir=Template.dir~
13586 rm -rf $tpldir~
13587 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
ee134472 13588 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
47aaa820
DWT
13589 $RANLIB $oldlib'
13590 archive_cmds_CXX='tpldir=Template.dir~
13591 rm -rf $tpldir~
13592 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13593 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
47aaa820
DWT
13594 archive_expsym_cmds_CXX='tpldir=Template.dir~
13595 rm -rf $tpldir~
13596 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
ee134472 13597 $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 13598 ;;
ee134472 13599 *) # Version 6 and above use weak symbols
47aaa820
DWT
13600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13601 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'
13602 ;;
13603 esac
9c60689e 13604
47aaa820
DWT
13605 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
ee134472 13607 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
13608 ;;
13609 cxx*)
13610 # Compaq C++
13611 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 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 13613
47aaa820
DWT
13614 runpath_var=LD_RUN_PATH
13615 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13616 hardcode_libdir_separator_CXX=:
9c60689e 13617
47aaa820
DWT
13618 # Commands to make compiler produce verbose output that lists
13619 # what "hidden" libraries, object files and flags are used when
13620 # linking a shared library.
13621 #
13622 # There doesn't appear to be a way to prevent this compiler from
13623 # explicitly linking system object files so we need to strip them
13624 # from the output so that they don't get included in the library
13625 # dependencies.
ee134472 13626 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 13627 ;;
ee134472 13628 xl* | mpixl* | bgxl*)
47aaa820
DWT
13629 # IBM XL 8.0 on PPC, with GNU ld
13630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13632 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633 if test "x$supports_anon_versioning" = xyes; then
13634 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13636 echo "local: *; };" >> $output_objdir/$libname.ver~
13637 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13638 fi
13639 ;;
13640 *)
13641 case `$CC -V 2>&1 | sed 5q` in
13642 *Sun\ C*)
13643 # Sun C++ 5.9
13644 no_undefined_flag_CXX=' -zdefs'
13645 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646 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'
13647 hardcode_libdir_flag_spec_CXX='-R$libdir'
ee134472 13648 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 13649 compiler_needs_object_CXX=yes
9c60689e 13650
47aaa820
DWT
13651 # Not sure whether something based on
13652 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13653 # would be better.
ee134472 13654 output_verbose_link_cmd='func_echo_all'
9c60689e 13655
47aaa820
DWT
13656 # Archives containing C++ object files must be created using
13657 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13658 # necessary to make sure instantiated templates are included
13659 # in the archive.
13660 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13661 ;;
13662 esac
13663 ;;
13664 esac
13665 ;;
9c60689e 13666
47aaa820
DWT
13667 lynxos*)
13668 # FIXME: insert proper C++ library support
13669 ld_shlibs_CXX=no
13670 ;;
9c60689e 13671
47aaa820
DWT
13672 m88k*)
13673 # FIXME: insert proper C++ library support
13674 ld_shlibs_CXX=no
13675 ;;
9c60689e 13676
47aaa820
DWT
13677 mvs*)
13678 case $cc_basename in
13679 cxx*)
13680 # FIXME: insert proper C++ library support
13681 ld_shlibs_CXX=no
13682 ;;
13683 *)
13684 # FIXME: insert proper C++ library support
13685 ld_shlibs_CXX=no
13686 ;;
13687 esac
13688 ;;
9c60689e 13689
47aaa820
DWT
13690 netbsd*)
13691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13692 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13693 wlarc=
13694 hardcode_libdir_flag_spec_CXX='-R$libdir'
13695 hardcode_direct_CXX=yes
13696 hardcode_shlibpath_var_CXX=no
13697 fi
13698 # Workaround some broken pre-1.5 toolchains
13699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 13700 ;;
47aaa820
DWT
13701
13702 *nto* | *qnx*)
13703 ld_shlibs_CXX=yes
9c60689e 13704 ;;
9c60689e 13705
47aaa820
DWT
13706 openbsd2*)
13707 # C++ shared libraries are fairly broken
13708 ld_shlibs_CXX=no
13709 ;;
9c60689e 13710
47aaa820
DWT
13711 openbsd*)
13712 if test -f /usr/libexec/ld.so; then
13713 hardcode_direct_CXX=yes
13714 hardcode_shlibpath_var_CXX=no
13715 hardcode_direct_absolute_CXX=yes
13716 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13717 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13719 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13720 export_dynamic_flag_spec_CXX='${wl}-E'
13721 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13722 fi
ee134472 13723 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
13724 else
13725 ld_shlibs_CXX=no
13726 fi
13727 ;;
9c60689e 13728
47aaa820
DWT
13729 osf3* | osf4* | osf5*)
13730 case $cc_basename in
13731 KCC*)
13732 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 13733
47aaa820
DWT
13734 # KCC will only create a shared library if the output file
13735 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13736 # to its proper name (with version) after linking.
13737 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 13738
47aaa820
DWT
13739 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13740 hardcode_libdir_separator_CXX=:
9c60689e 13741
47aaa820
DWT
13742 # Archives containing C++ object files must be created using
13743 # the KAI C++ compiler.
13744 case $host in
13745 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13746 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13747 esac
13748 ;;
13749 RCC*)
13750 # Rational C++ 2.4.1
13751 # FIXME: insert proper C++ library support
13752 ld_shlibs_CXX=no
13753 ;;
13754 cxx*)
13755 case $host in
13756 osf3*)
13757 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
ee134472 13758 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
47aaa820
DWT
13759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13760 ;;
13761 *)
13762 allow_undefined_flag_CXX=' -expect_unresolved \*'
ee134472 13763 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
47aaa820
DWT
13764 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13765 echo "-hidden">> $lib.exp~
ee134472 13766 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
47aaa820
DWT
13767 $RM $lib.exp'
13768 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13769 ;;
13770 esac
9c60689e 13771
47aaa820 13772 hardcode_libdir_separator_CXX=:
9c60689e 13773
47aaa820
DWT
13774 # Commands to make compiler produce verbose output that lists
13775 # what "hidden" libraries, object files and flags are used when
13776 # linking a shared library.
13777 #
13778 # There doesn't appear to be a way to prevent this compiler from
13779 # explicitly linking system object files so we need to strip them
13780 # from the output so that they don't get included in the library
13781 # dependencies.
ee134472 13782 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
13783 ;;
13784 *)
13785 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13786 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13787 case $host in
13788 osf3*)
ee134472 13789 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
13790 ;;
13791 *)
ee134472 13792 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
13793 ;;
13794 esac
9c60689e 13795
47aaa820
DWT
13796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13797 hardcode_libdir_separator_CXX=:
9c60689e 13798
47aaa820
DWT
13799 # Commands to make compiler produce verbose output that lists
13800 # what "hidden" libraries, object files and flags are used when
13801 # linking a shared library.
ee134472 13802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 13803
47aaa820
DWT
13804 else
13805 # FIXME: insert proper C++ library support
13806 ld_shlibs_CXX=no
13807 fi
13808 ;;
13809 esac
13810 ;;
9c60689e 13811
47aaa820 13812 psos*)
9c60689e
DWT
13813 # FIXME: insert proper C++ library support
13814 ld_shlibs_CXX=no
13815 ;;
9c60689e 13816
47aaa820
DWT
13817 sunos4*)
13818 case $cc_basename in
13819 CC*)
13820 # Sun C++ 4.x
13821 # FIXME: insert proper C++ library support
13822 ld_shlibs_CXX=no
9c60689e 13823 ;;
47aaa820
DWT
13824 lcc*)
13825 # Lucid
13826 # FIXME: insert proper C++ library support
13827 ld_shlibs_CXX=no
13828 ;;
13829 *)
13830 # FIXME: insert proper C++ library support
13831 ld_shlibs_CXX=no
13832 ;;
13833 esac
13834 ;;
9c60689e 13835
47aaa820
DWT
13836 solaris*)
13837 case $cc_basename in
ee134472 13838 CC* | sunCC*)
47aaa820
DWT
13839 # Sun C++ 4.2, 5.x and Centerline C++
13840 archive_cmds_need_lc_CXX=yes
13841 no_undefined_flag_CXX=' -zdefs'
13842 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13843 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13844 $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 13845
47aaa820
DWT
13846 hardcode_libdir_flag_spec_CXX='-R$libdir'
13847 hardcode_shlibpath_var_CXX=no
13848 case $host_os in
13849 solaris2.[0-5] | solaris2.[0-5].*) ;;
13850 *)
13851 # The compiler driver will combine and reorder linker options,
13852 # but understands `-z linker_flag'.
13853 # Supported since Solaris 2.6 (maybe 2.5.1?)
13854 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13855 ;;
13856 esac
13857 link_all_deplibs_CXX=yes
9c60689e 13858
ee134472 13859 output_verbose_link_cmd='func_echo_all'
9c60689e 13860
47aaa820
DWT
13861 # Archives containing C++ object files must be created using
13862 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13863 # necessary to make sure instantiated templates are included
13864 # in the archive.
13865 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13866 ;;
13867 gcx*)
13868 # Green Hills C++ Compiler
13869 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9c60689e 13870
47aaa820
DWT
13871 # The C++ compiler must be used to create the archive.
13872 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13873 ;;
13874 *)
13875 # GNU C++ compiler with Solaris linker
13876 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13877 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13878 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
ee134472 13879 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
47aaa820 13880 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ee134472 13881 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13882
47aaa820
DWT
13883 # Commands to make compiler produce verbose output that lists
13884 # what "hidden" libraries, object files and flags are used when
13885 # linking a shared library.
ee134472 13886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13887 else
13888 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13889 # platform.
13890 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13891 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13892 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 13893
47aaa820
DWT
13894 # Commands to make compiler produce verbose output that lists
13895 # what "hidden" libraries, object files and flags are used when
13896 # linking a shared library.
ee134472 13897 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 13898 fi
9c60689e 13899
47aaa820
DWT
13900 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13901 case $host_os in
13902 solaris2.[0-5] | solaris2.[0-5].*) ;;
13903 *)
13904 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13905 ;;
13906 esac
13907 fi
13908 ;;
13909 esac
13910 ;;
9c60689e 13911
47aaa820
DWT
13912 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13913 no_undefined_flag_CXX='${wl}-z,text'
13914 archive_cmds_need_lc_CXX=no
13915 hardcode_shlibpath_var_CXX=no
13916 runpath_var='LD_RUN_PATH'
9c60689e 13917
47aaa820
DWT
13918 case $cc_basename in
13919 CC*)
13920 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13921 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 ;;
13923 *)
13924 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 ;;
13927 esac
13928 ;;
9c60689e 13929
47aaa820
DWT
13930 sysv5* | sco3.2v5* | sco5v6*)
13931 # Note: We can NOT use -z defs as we might desire, because we do not
13932 # link with -lc, and that would cause any symbols used from libc to
13933 # always be unresolved, which means just about no library would
13934 # ever link correctly. If we're not using GNU ld we use -z text
13935 # though, which does catch some bad symbols but isn't as heavy-handed
13936 # as -z defs.
13937 no_undefined_flag_CXX='${wl}-z,text'
13938 allow_undefined_flag_CXX='${wl}-z,nodefs'
13939 archive_cmds_need_lc_CXX=no
13940 hardcode_shlibpath_var_CXX=no
13941 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13942 hardcode_libdir_separator_CXX=':'
13943 link_all_deplibs_CXX=yes
13944 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13945 runpath_var='LD_RUN_PATH'
9c60689e 13946
47aaa820
DWT
13947 case $cc_basename in
13948 CC*)
13949 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13950 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472
JF
13951 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13952 '"$old_archive_cmds_CXX"
13953 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13954 '"$reload_cmds_CXX"
47aaa820
DWT
13955 ;;
13956 *)
13957 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13958 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 ;;
13960 esac
13961 ;;
9c60689e 13962
47aaa820 13963 tandem*)
9c60689e 13964 case $cc_basename in
47aaa820
DWT
13965 NCC*)
13966 # NonStop-UX NCC 3.20
13967 # FIXME: insert proper C++ library support
13968 ld_shlibs_CXX=no
13969 ;;
9c60689e 13970 *)
47aaa820
DWT
13971 # FIXME: insert proper C++ library support
13972 ld_shlibs_CXX=no
13973 ;;
9c60689e
DWT
13974 esac
13975 ;;
13976
47aaa820
DWT
13977 vxworks*)
13978 # FIXME: insert proper C++ library support
13979 ld_shlibs_CXX=no
13980 ;;
9c60689e 13981
47aaa820
DWT
13982 *)
13983 # FIXME: insert proper C++ library support
13984 ld_shlibs_CXX=no
9c60689e 13985 ;;
47aaa820 13986 esac
9c60689e 13987
47aaa820
DWT
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13989$as_echo "$ld_shlibs_CXX" >&6; }
13990 test "$ld_shlibs_CXX" = no && can_build_shared=no
9c60689e 13991
47aaa820
DWT
13992 GCC_CXX="$GXX"
13993 LD_CXX="$LD"
9c60689e 13994
47aaa820
DWT
13995 ## CAVEAT EMPTOR:
13996 ## There is no encapsulation within the following macros, do not change
13997 ## the running order or otherwise move them around unless you know exactly
13998 ## what you are doing...
13999 # Dependencies to place before and after the object being linked:
14000predep_objects_CXX=
14001postdep_objects_CXX=
14002predeps_CXX=
14003postdeps_CXX=
14004compiler_lib_search_path_CXX=
9c60689e 14005
47aaa820
DWT
14006cat > conftest.$ac_ext <<_LT_EOF
14007class Foo
14008{
14009public:
14010 Foo (void) { a = 0; }
14011private:
14012 int a;
14013};
14014_LT_EOF
9c60689e 14015
ee134472
JF
14016
14017_lt_libdeps_save_CFLAGS=$CFLAGS
14018case "$CC $CFLAGS " in #(
14019*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14020*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14021*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14022esac
14023
47aaa820
DWT
14024if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14025 (eval $ac_compile) 2>&5
14026 ac_status=$?
14027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14028 test $ac_status = 0; }; then
14029 # Parse the compiler output and extract the necessary
14030 # objects, libraries and library flags.
9c60689e 14031
47aaa820
DWT
14032 # Sentinel used to keep track of whether or not we are before
14033 # the conftest object file.
14034 pre_test_object_deps_done=no
9c60689e 14035
47aaa820 14036 for p in `eval "$output_verbose_link_cmd"`; do
ee134472 14037 case ${prev}${p} in
9c60689e 14038
47aaa820
DWT
14039 -L* | -R* | -l*)
14040 # Some compilers place space between "-{L,R}" and the path.
14041 # Remove the space.
14042 if test $p = "-L" ||
14043 test $p = "-R"; then
14044 prev=$p
14045 continue
47aaa820 14046 fi
9c60689e 14047
ee134472
JF
14048 # Expand the sysroot to ease extracting the directories later.
14049 if test -z "$prev"; then
14050 case $p in
14051 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14052 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14053 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14054 esac
14055 fi
14056 case $p in
14057 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14058 esac
47aaa820 14059 if test "$pre_test_object_deps_done" = no; then
ee134472
JF
14060 case ${prev} in
14061 -L | -R)
47aaa820
DWT
14062 # Internal compiler library paths should come after those
14063 # provided the user. The postdeps already come after the
14064 # user supplied libs so there is no need to process them.
14065 if test -z "$compiler_lib_search_path_CXX"; then
14066 compiler_lib_search_path_CXX="${prev}${p}"
14067 else
14068 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14069 fi
14070 ;;
14071 # The "-l" case would never come before the object being
14072 # linked, so don't bother handling this case.
14073 esac
14074 else
14075 if test -z "$postdeps_CXX"; then
14076 postdeps_CXX="${prev}${p}"
14077 else
14078 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14079 fi
14080 fi
ee134472 14081 prev=
47aaa820 14082 ;;
9c60689e 14083
ee134472 14084 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14085 *.$objext)
14086 # This assumes that the test object file only shows up
14087 # once in the compiler output.
14088 if test "$p" = "conftest.$objext"; then
14089 pre_test_object_deps_done=yes
14090 continue
14091 fi
9c60689e 14092
47aaa820
DWT
14093 if test "$pre_test_object_deps_done" = no; then
14094 if test -z "$predep_objects_CXX"; then
14095 predep_objects_CXX="$p"
14096 else
14097 predep_objects_CXX="$predep_objects_CXX $p"
14098 fi
14099 else
14100 if test -z "$postdep_objects_CXX"; then
14101 postdep_objects_CXX="$p"
14102 else
14103 postdep_objects_CXX="$postdep_objects_CXX $p"
14104 fi
14105 fi
14106 ;;
9c60689e 14107
47aaa820 14108 *) ;; # Ignore the rest.
9c60689e 14109
47aaa820
DWT
14110 esac
14111 done
9c60689e 14112
47aaa820
DWT
14113 # Clean up.
14114 rm -f a.out a.exe
14115else
14116 echo "libtool.m4: error: problem compiling CXX test program"
14117fi
9c60689e 14118
47aaa820 14119$RM -f confest.$objext
ee134472 14120CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14121
47aaa820
DWT
14122# PORTME: override above test on systems where it is broken
14123case $host_os in
14124interix[3-9]*)
14125 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14126 # hack all around it, let's just trust "g++" to DTRT.
14127 predep_objects_CXX=
14128 postdep_objects_CXX=
14129 postdeps_CXX=
14130 ;;
9c60689e 14131
47aaa820
DWT
14132linux*)
14133 case `$CC -V 2>&1 | sed 5q` in
14134 *Sun\ C*)
14135 # Sun C++ 5.9
9c60689e 14136
47aaa820
DWT
14137 # The more standards-conforming stlport4 library is
14138 # incompatible with the Cstd library. Avoid specifying
14139 # it if it's in CXXFLAGS. Ignore libCrun as
14140 # -library=stlport4 depends on it.
14141 case " $CXX $CXXFLAGS " in
14142 *" -library=stlport4 "*)
14143 solaris_use_stlport4=yes
14144 ;;
14145 esac
9c60689e 14146
47aaa820
DWT
14147 if test "$solaris_use_stlport4" != yes; then
14148 postdeps_CXX='-library=Cstd -library=Crun'
14149 fi
14150 ;;
14151 esac
14152 ;;
9c60689e 14153
47aaa820
DWT
14154solaris*)
14155 case $cc_basename in
ee134472 14156 CC* | sunCC*)
47aaa820
DWT
14157 # The more standards-conforming stlport4 library is
14158 # incompatible with the Cstd library. Avoid specifying
14159 # it if it's in CXXFLAGS. Ignore libCrun as
14160 # -library=stlport4 depends on it.
14161 case " $CXX $CXXFLAGS " in
14162 *" -library=stlport4 "*)
14163 solaris_use_stlport4=yes
14164 ;;
14165 esac
9c60689e 14166
47aaa820
DWT
14167 # Adding this requires a known-good setup of shared libraries for
14168 # Sun compiler versions before 5.6, else PIC objects from an old
14169 # archive will be linked into the output, leading to subtle bugs.
14170 if test "$solaris_use_stlport4" != yes; then
14171 postdeps_CXX='-library=Cstd -library=Crun'
14172 fi
14173 ;;
14174 esac
14175 ;;
14176esac
9c60689e 14177
9c60689e 14178
47aaa820
DWT
14179case " $postdeps_CXX " in
14180*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14181esac
14182 compiler_lib_search_dirs_CXX=
14183if test -n "${compiler_lib_search_path_CXX}"; then
14184 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14185fi
9c60689e 14186
9c60689e 14187
9c60689e 14188
9c60689e 14189
9c60689e 14190
9c60689e 14191
9c60689e 14192
9c60689e 14193
9c60689e 14194
9c60689e 14195
9c60689e 14196
9c60689e 14197
9c60689e 14198
9c60689e 14199
9c60689e 14200
9c60689e 14201
9c60689e 14202
9c60689e 14203
9c60689e 14204
9c60689e 14205
9c60689e 14206
9c60689e 14207
9c60689e 14208
9c60689e 14209
9c60689e 14210
9c60689e 14211
9c60689e 14212
9c60689e 14213
9c60689e 14214
9c60689e 14215
9c60689e 14216
47aaa820
DWT
14217 lt_prog_compiler_wl_CXX=
14218lt_prog_compiler_pic_CXX=
14219lt_prog_compiler_static_CXX=
9c60689e 14220
9c60689e
DWT
14221
14222 # C++ specific cases for pic, static, wl, etc.
14223 if test "$GXX" = yes; then
14224 lt_prog_compiler_wl_CXX='-Wl,'
14225 lt_prog_compiler_static_CXX='-static'
14226
14227 case $host_os in
14228 aix*)
14229 # All AIX code is PIC.
14230 if test "$host_cpu" = ia64; then
14231 # AIX 5 now supports IA64 processor
14232 lt_prog_compiler_static_CXX='-Bstatic'
14233 fi
14234 ;;
14235
14236 amigaos*)
14237 case $host_cpu in
14238 powerpc)
14239 # see comment about AmigaOS4 .so support
14240 lt_prog_compiler_pic_CXX='-fPIC'
14241 ;;
14242 m68k)
14243 # FIXME: we need at least 68020 code to build shared libraries, but
14244 # adding the `-m68020' flag to GCC prevents building anything better,
14245 # like `-m68040'.
14246 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14247 ;;
14248 esac
14249 ;;
14250
14251 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14252 # PIC is the default for these OSes.
14253 ;;
14254 mingw* | cygwin* | os2* | pw32* | cegcc*)
14255 # This hack is so that the source file can tell whether it is being
14256 # built for inclusion in a dll (and should export symbols for example).
14257 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14258 # (--disable-auto-import) libraries
14259 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14260 ;;
14261 darwin* | rhapsody*)
14262 # PIC is the default on this platform
14263 # Common symbols not allowed in MH_DYLIB files
14264 lt_prog_compiler_pic_CXX='-fno-common'
14265 ;;
14266 *djgpp*)
14267 # DJGPP does not support shared libraries at all
14268 lt_prog_compiler_pic_CXX=
14269 ;;
ee134472
JF
14270 haiku*)
14271 # PIC is the default for Haiku.
14272 # The "-static" flag exists, but is broken.
14273 lt_prog_compiler_static_CXX=
14274 ;;
9c60689e
DWT
14275 interix[3-9]*)
14276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14277 # Instead, we relocate shared libraries at runtime.
14278 ;;
14279 sysv4*MP*)
14280 if test -d /usr/nec; then
14281 lt_prog_compiler_pic_CXX=-Kconform_pic
14282 fi
14283 ;;
14284 hpux*)
14285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14287 # sets the default TLS model and affects inlining.
14288 case $host_cpu in
14289 hppa*64*)
14290 ;;
14291 *)
14292 lt_prog_compiler_pic_CXX='-fPIC'
14293 ;;
14294 esac
14295 ;;
14296 *qnx* | *nto*)
14297 # QNX uses GNU C++, but need to define -shared option too, otherwise
14298 # it will coredump.
14299 lt_prog_compiler_pic_CXX='-fPIC -shared'
14300 ;;
14301 *)
14302 lt_prog_compiler_pic_CXX='-fPIC'
14303 ;;
14304 esac
14305 else
14306 case $host_os in
14307 aix[4-9]*)
14308 # All AIX code is PIC.
14309 if test "$host_cpu" = ia64; then
14310 # AIX 5 now supports IA64 processor
14311 lt_prog_compiler_static_CXX='-Bstatic'
14312 else
14313 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14314 fi
14315 ;;
14316 chorus*)
14317 case $cc_basename in
14318 cxch68*)
14319 # Green Hills C++ Compiler
14320 # _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"
14321 ;;
14322 esac
14323 ;;
ee134472
JF
14324 mingw* | cygwin* | os2* | pw32* | cegcc*)
14325 # This hack is so that the source file can tell whether it is being
14326 # built for inclusion in a dll (and should export symbols for example).
14327 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14328 ;;
9c60689e
DWT
14329 dgux*)
14330 case $cc_basename in
14331 ec++*)
14332 lt_prog_compiler_pic_CXX='-KPIC'
14333 ;;
14334 ghcx*)
14335 # Green Hills C++ Compiler
14336 lt_prog_compiler_pic_CXX='-pic'
14337 ;;
14338 *)
14339 ;;
14340 esac
14341 ;;
14342 freebsd* | dragonfly*)
14343 # FreeBSD uses GNU C++
14344 ;;
14345 hpux9* | hpux10* | hpux11*)
14346 case $cc_basename in
14347 CC*)
14348 lt_prog_compiler_wl_CXX='-Wl,'
14349 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14350 if test "$host_cpu" != ia64; then
14351 lt_prog_compiler_pic_CXX='+Z'
14352 fi
14353 ;;
14354 aCC*)
14355 lt_prog_compiler_wl_CXX='-Wl,'
14356 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14357 case $host_cpu in
14358 hppa*64*|ia64*)
14359 # +Z the default
14360 ;;
14361 *)
14362 lt_prog_compiler_pic_CXX='+Z'
14363 ;;
14364 esac
14365 ;;
14366 *)
14367 ;;
14368 esac
14369 ;;
14370 interix*)
14371 # This is c89, which is MS Visual C++ (no shared libs)
14372 # Anyone wants to do a port?
14373 ;;
14374 irix5* | irix6* | nonstopux*)
14375 case $cc_basename in
14376 CC*)
14377 lt_prog_compiler_wl_CXX='-Wl,'
14378 lt_prog_compiler_static_CXX='-non_shared'
14379 # CC pic flag -KPIC is the default.
14380 ;;
14381 *)
14382 ;;
14383 esac
14384 ;;
1504c9b8 14385 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9c60689e
DWT
14386 case $cc_basename in
14387 KCC*)
14388 # KAI C++ Compiler
14389 lt_prog_compiler_wl_CXX='--backend -Wl,'
14390 lt_prog_compiler_pic_CXX='-fPIC'
14391 ;;
14392 ecpc* )
14393 # old Intel C++ for x86_64 which still supported -KPIC.
14394 lt_prog_compiler_wl_CXX='-Wl,'
14395 lt_prog_compiler_pic_CXX='-KPIC'
14396 lt_prog_compiler_static_CXX='-static'
14397 ;;
14398 icpc* )
14399 # Intel C++, used to be incompatible with GCC.
14400 # ICC 10 doesn't accept -KPIC any more.
14401 lt_prog_compiler_wl_CXX='-Wl,'
14402 lt_prog_compiler_pic_CXX='-fPIC'
14403 lt_prog_compiler_static_CXX='-static'
14404 ;;
14405 pgCC* | pgcpp*)
14406 # Portland Group C++ compiler
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_pic_CXX='-fpic'
14409 lt_prog_compiler_static_CXX='-Bstatic'
14410 ;;
14411 cxx*)
14412 # Compaq C++
14413 # Make sure the PIC flag is empty. It appears that all Alpha
14414 # Linux and Compaq Tru64 Unix objects are PIC.
14415 lt_prog_compiler_pic_CXX=
14416 lt_prog_compiler_static_CXX='-non_shared'
14417 ;;
ee134472
JF
14418 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14419 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
14420 lt_prog_compiler_wl_CXX='-Wl,'
14421 lt_prog_compiler_pic_CXX='-qpic'
14422 lt_prog_compiler_static_CXX='-qstaticlink'
14423 ;;
14424 *)
14425 case `$CC -V 2>&1 | sed 5q` in
14426 *Sun\ C*)
14427 # Sun C++ 5.9
14428 lt_prog_compiler_pic_CXX='-KPIC'
14429 lt_prog_compiler_static_CXX='-Bstatic'
14430 lt_prog_compiler_wl_CXX='-Qoption ld '
14431 ;;
14432 esac
14433 ;;
14434 esac
14435 ;;
14436 lynxos*)
14437 ;;
14438 m88k*)
14439 ;;
14440 mvs*)
14441 case $cc_basename in
14442 cxx*)
14443 lt_prog_compiler_pic_CXX='-W c,exportall'
14444 ;;
14445 *)
14446 ;;
14447 esac
14448 ;;
53ba6704 14449 netbsd*)
9c60689e
DWT
14450 ;;
14451 *qnx* | *nto*)
14452 # QNX uses GNU C++, but need to define -shared option too, otherwise
14453 # it will coredump.
14454 lt_prog_compiler_pic_CXX='-fPIC -shared'
14455 ;;
14456 osf3* | osf4* | osf5*)
14457 case $cc_basename in
14458 KCC*)
14459 lt_prog_compiler_wl_CXX='--backend -Wl,'
14460 ;;
14461 RCC*)
14462 # Rational C++ 2.4.1
14463 lt_prog_compiler_pic_CXX='-pic'
14464 ;;
14465 cxx*)
14466 # Digital/Compaq C++
14467 lt_prog_compiler_wl_CXX='-Wl,'
14468 # Make sure the PIC flag is empty. It appears that all Alpha
14469 # Linux and Compaq Tru64 Unix objects are PIC.
14470 lt_prog_compiler_pic_CXX=
14471 lt_prog_compiler_static_CXX='-non_shared'
14472 ;;
14473 *)
14474 ;;
14475 esac
14476 ;;
14477 psos*)
14478 ;;
14479 solaris*)
14480 case $cc_basename in
ee134472 14481 CC* | sunCC*)
9c60689e
DWT
14482 # Sun C++ 4.2, 5.x and Centerline C++
14483 lt_prog_compiler_pic_CXX='-KPIC'
14484 lt_prog_compiler_static_CXX='-Bstatic'
14485 lt_prog_compiler_wl_CXX='-Qoption ld '
14486 ;;
14487 gcx*)
14488 # Green Hills C++ Compiler
14489 lt_prog_compiler_pic_CXX='-PIC'
14490 ;;
14491 *)
14492 ;;
14493 esac
14494 ;;
14495 sunos4*)
14496 case $cc_basename in
14497 CC*)
14498 # Sun C++ 4.x
14499 lt_prog_compiler_pic_CXX='-pic'
14500 lt_prog_compiler_static_CXX='-Bstatic'
14501 ;;
14502 lcc*)
14503 # Lucid
14504 lt_prog_compiler_pic_CXX='-pic'
14505 ;;
14506 *)
14507 ;;
14508 esac
14509 ;;
14510 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14511 case $cc_basename in
14512 CC*)
14513 lt_prog_compiler_wl_CXX='-Wl,'
14514 lt_prog_compiler_pic_CXX='-KPIC'
14515 lt_prog_compiler_static_CXX='-Bstatic'
14516 ;;
14517 esac
14518 ;;
14519 tandem*)
14520 case $cc_basename in
14521 NCC*)
14522 # NonStop-UX NCC 3.20
14523 lt_prog_compiler_pic_CXX='-KPIC'
14524 ;;
14525 *)
14526 ;;
14527 esac
14528 ;;
14529 vxworks*)
14530 ;;
14531 *)
14532 lt_prog_compiler_can_build_shared_CXX=no
14533 ;;
14534 esac
14535 fi
14536
14537case $host_os in
14538 # For platforms which do not support PIC, -DPIC is meaningless:
14539 *djgpp*)
14540 lt_prog_compiler_pic_CXX=
14541 ;;
14542 *)
14543 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14544 ;;
14545esac
9c60689e 14546
ee134472
JF
14547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14548$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14549if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14550 $as_echo_n "(cached) " >&6
14551else
14552 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14553fi
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14555$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14556lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
14557
14558#
14559# Check to make sure the PIC flag actually works.
14560#
14561if test -n "$lt_prog_compiler_pic_CXX"; then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14563$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 14564if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
14565 $as_echo_n "(cached) " >&6
14566else
14567 lt_cv_prog_compiler_pic_works_CXX=no
14568 ac_outfile=conftest.$ac_objext
14569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14570 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14571 # Insert the option either (1) after the last *FLAGS variable, or
14572 # (2) before a word containing "conftest.", or (3) at the end.
14573 # Note that $ac_compile itself does not contain backslashes and begins
14574 # with a dollar sign (not a hyphen), so the echo should work correctly.
14575 # The option is referenced via a variable to avoid confusing sed.
14576 lt_compile=`echo "$ac_compile" | $SED \
14577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14579 -e 's:$: $lt_compiler_flag:'`
ee134472 14580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
14581 (eval "$lt_compile" 2>conftest.err)
14582 ac_status=$?
14583 cat conftest.err >&5
ee134472 14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
14585 if (exit $ac_status) && test -s "$ac_outfile"; then
14586 # The compiler can only warn and ignore the option if not recognized
14587 # So say no if there are warnings other than the usual output.
ee134472 14588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
14589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14591 lt_cv_prog_compiler_pic_works_CXX=yes
14592 fi
14593 fi
53ba6704 14594 $RM -r conftest*
9c60689e
DWT
14595
14596fi
14597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14598$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14599
14600if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14601 case $lt_prog_compiler_pic_CXX in
14602 "" | " "*) ;;
14603 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14604 esac
14605else
14606 lt_prog_compiler_pic_CXX=
14607 lt_prog_compiler_can_build_shared_CXX=no
14608fi
14609
14610fi
14611
14612
14613
ee134472
JF
14614
14615
47aaa820
DWT
14616#
14617# Check to make sure the static flag actually works.
14618#
14619wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14621$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 14622if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
14623 $as_echo_n "(cached) " >&6
14624else
14625 lt_cv_prog_compiler_static_works_CXX=no
14626 save_LDFLAGS="$LDFLAGS"
14627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14628 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14630 # The linker can only warn and ignore the option if not recognized
14631 # So say no if there are warnings
14632 if test -s conftest.err; then
14633 # Append any errors to the config.log.
14634 cat conftest.err 1>&5
ee134472 14635 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
14636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14637 if diff conftest.exp conftest.er2 >/dev/null; then
14638 lt_cv_prog_compiler_static_works_CXX=yes
14639 fi
14640 else
14641 lt_cv_prog_compiler_static_works_CXX=yes
14642 fi
14643 fi
14644 $RM -r conftest*
14645 LDFLAGS="$save_LDFLAGS"
14646
14647fi
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14649$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14650
14651if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14652 :
14653else
14654 lt_prog_compiler_static_CXX=
14655fi
14656
14657
14658
14659
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14661$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14662if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14663 $as_echo_n "(cached) " >&6
14664else
14665 lt_cv_prog_compiler_c_o_CXX=no
14666 $RM -r conftest 2>/dev/null
14667 mkdir conftest
14668 cd conftest
14669 mkdir out
14670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14671
14672 lt_compiler_flag="-o out/conftest2.$ac_objext"
14673 # Insert the option either (1) after the last *FLAGS variable, or
14674 # (2) before a word containing "conftest.", or (3) at the end.
14675 # Note that $ac_compile itself does not contain backslashes and begins
14676 # with a dollar sign (not a hyphen), so the echo should work correctly.
14677 lt_compile=`echo "$ac_compile" | $SED \
14678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14680 -e 's:$: $lt_compiler_flag:'`
ee134472 14681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14682 (eval "$lt_compile" 2>out/conftest.err)
14683 ac_status=$?
14684 cat out/conftest.err >&5
ee134472 14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14687 then
14688 # The compiler can only warn and ignore the option if not recognized
14689 # So say no if there are warnings
ee134472 14690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14693 lt_cv_prog_compiler_c_o_CXX=yes
14694 fi
14695 fi
14696 chmod u+w . 2>&5
53ba6704 14697 $RM -r conftest*
47aaa820
DWT
14698 # SGI C++ compiler will create directory out/ii_files/ for
14699 # template instantiation
14700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14701 $RM out/* && rmdir out
14702 cd ..
14703 $RM -r conftest
53ba6704 14704 $RM -r conftest*
47aaa820
DWT
14705
14706fi
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14708$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14709
14710
14711
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14713$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 14714if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
14715 $as_echo_n "(cached) " >&6
14716else
14717 lt_cv_prog_compiler_c_o_CXX=no
14718 $RM -r conftest 2>/dev/null
14719 mkdir conftest
14720 cd conftest
14721 mkdir out
14722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14723
14724 lt_compiler_flag="-o out/conftest2.$ac_objext"
14725 # Insert the option either (1) after the last *FLAGS variable, or
14726 # (2) before a word containing "conftest.", or (3) at the end.
14727 # Note that $ac_compile itself does not contain backslashes and begins
14728 # with a dollar sign (not a hyphen), so the echo should work correctly.
14729 lt_compile=`echo "$ac_compile" | $SED \
14730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14732 -e 's:$: $lt_compiler_flag:'`
ee134472 14733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
14734 (eval "$lt_compile" 2>out/conftest.err)
14735 ac_status=$?
14736 cat out/conftest.err >&5
ee134472 14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
14738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14739 then
14740 # The compiler can only warn and ignore the option if not recognized
14741 # So say no if there are warnings
ee134472 14742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
14743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14745 lt_cv_prog_compiler_c_o_CXX=yes
14746 fi
14747 fi
14748 chmod u+w . 2>&5
53ba6704 14749 $RM -r conftest*
47aaa820
DWT
14750 # SGI C++ compiler will create directory out/ii_files/ for
14751 # template instantiation
14752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14753 $RM out/* && rmdir out
14754 cd ..
14755 $RM -r conftest
53ba6704 14756 $RM -r conftest*
47aaa820
DWT
14757
14758fi
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14760$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14761
14762
14763
14764
14765hard_links="nottested"
14766if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14767 # do not overwrite the value of need_locks provided by the user
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14769$as_echo_n "checking if we can lock with hard links... " >&6; }
14770 hard_links=yes
53ba6704 14771 $RM -r conftest*
47aaa820
DWT
14772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14773 touch conftest.a
14774 ln conftest.a conftest.b 2>&5 || hard_links=no
14775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14777$as_echo "$hard_links" >&6; }
14778 if test "$hard_links" = no; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14780$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14781 need_locks=warn
14782 fi
14783else
14784 need_locks=no
14785fi
14786
14787
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14791
14792 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14793 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
14794 case $host_os in
14795 aix[4-9]*)
14796 # If we're using GNU nm, then we don't want the "-C" option.
14797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
ee134472
JF
14798 # Also, AIX nm treats weak defined symbols like other global defined
14799 # symbols, whereas GNU nm marks them as "W".
47aaa820 14800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ee134472 14801 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
14802 else
14803 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14804 fi
14805 ;;
14806 pw32*)
14807 export_symbols_cmds_CXX="$ltdll_cmds"
ee134472 14808 ;;
47aaa820 14809 cygwin* | mingw* | cegcc*)
ee134472 14810 case $cc_basename in
53ba6704
JF
14811 cl*)
14812 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14813 ;;
ee134472
JF
14814 *)
14815 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'
14816 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14817 ;;
14818 esac
14819 ;;
47aaa820
DWT
14820 *)
14821 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 14822 ;;
47aaa820 14823 esac
47aaa820
DWT
14824
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14826$as_echo "$ld_shlibs_CXX" >&6; }
14827test "$ld_shlibs_CXX" = no && can_build_shared=no
14828
14829with_gnu_ld_CXX=$with_gnu_ld
14830
14831
14832
14833
14834
14835
14836#
14837# Do we need to explicitly link libc?
14838#
14839case "x$archive_cmds_need_lc_CXX" in
14840x|xyes)
14841 # Assume -lc should be added
14842 archive_cmds_need_lc_CXX=yes
14843
14844 if test "$enable_shared" = yes && test "$GCC" = yes; then
14845 case $archive_cmds_CXX in
14846 *'~'*)
14847 # FIXME: we may have to deal with multi-command sequences.
14848 ;;
14849 '$CC '*)
14850 # Test whether the compiler implicitly links with -lc since on some
14851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14852 # to ld, don't add -lc before -lgcc.
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14854$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
14855if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857else
53ba6704 14858 $RM -r conftest*
ee134472 14859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 14860
ee134472 14861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
14862 (eval $ac_compile) 2>&5
14863 ac_status=$?
14864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14865 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
14866 soname=conftest
14867 lib=conftest
14868 libobjs=conftest.$ac_objext
14869 deplibs=
14870 wl=$lt_prog_compiler_wl_CXX
14871 pic_flag=$lt_prog_compiler_pic_CXX
14872 compiler_flags=-v
14873 linker_flags=-v
14874 verstring=
14875 output_objdir=.
14876 libname=conftest
14877 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14878 allow_undefined_flag_CXX=
14879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
14880 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14881 ac_status=$?
14882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14883 test $ac_status = 0; }
ee134472
JF
14884 then
14885 lt_cv_archive_cmds_need_lc_CXX=no
14886 else
14887 lt_cv_archive_cmds_need_lc_CXX=yes
14888 fi
14889 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14890 else
14891 cat conftest.err 1>&5
14892 fi
53ba6704 14893 $RM -r conftest*
ee134472
JF
14894
14895fi
14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14897$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14898 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
14899 ;;
14900 esac
14901 fi
14902 ;;
14903esac
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
47aaa820
DWT
14963
14964
14965
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14967$as_echo_n "checking dynamic linker characteristics... " >&6; }
14968
14969library_names_spec=
14970libname_spec='lib$name'
14971soname_spec=
14972shrext_cmds=".so"
14973postinstall_cmds=
14974postuninstall_cmds=
14975finish_cmds=
14976finish_eval=
14977shlibpath_var=
14978shlibpath_overrides_runpath=unknown
14979version_type=none
14980dynamic_linker="$host_os ld.so"
14981sys_lib_dlsearch_path_spec="/lib /usr/lib"
14982need_lib_prefix=unknown
14983hardcode_into_libs=no
14984
14985# when you set need_version to no, make sure it does not cause -set_version
14986# flags to be left without arguments
14987need_version=unknown
14988
14989case $host_os in
14990aix3*)
53ba6704 14991 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14993 shlibpath_var=LIBPATH
14994
14995 # AIX 3 has no versioning support, so we append a major version to the name.
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 ;;
14998
14999aix[4-9]*)
53ba6704 15000 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15001 need_lib_prefix=no
15002 need_version=no
15003 hardcode_into_libs=yes
15004 if test "$host_cpu" = ia64; then
15005 # AIX 5 supports IA64
15006 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 else
15009 # With GCC up to 2.95.x, collect2 would create an import file
15010 # for dependence libraries. The import file would start with
15011 # the line `#! .'. This would cause the generated library to
15012 # depend on `.', always an invalid library. This was fixed in
15013 # development snapshots of GCC prior to 3.0.
15014 case $host_os in
15015 aix4 | aix4.[01] | aix4.[01].*)
15016 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15017 echo ' yes '
15018 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15019 :
15020 else
15021 can_build_shared=no
15022 fi
15023 ;;
15024 esac
15025 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15026 # soname into executable. Probably we can add versioning support to
15027 # collect2, so additional links can be useful in future.
15028 if test "$aix_use_runtimelinking" = yes; then
15029 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15030 # instead of lib<name>.a to let people know that these are not
15031 # typical AIX shared libraries.
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033 else
15034 # We preserve .a as extension for shared libraries through AIX4.2
15035 # and later when we are not doing run time linking.
15036 library_names_spec='${libname}${release}.a $libname.a'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 fi
15039 shlibpath_var=LIBPATH
15040 fi
15041 ;;
15042
15043amigaos*)
15044 case $host_cpu in
15045 powerpc)
15046 # Since July 2007 AmigaOS4 officially supports .so libraries.
15047 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 ;;
15050 m68k)
15051 library_names_spec='$libname.ixlibrary $libname.a'
15052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ee134472 15053 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
47aaa820
DWT
15054 ;;
15055 esac
15056 ;;
15057
15058beos*)
15059 library_names_spec='${libname}${shared_ext}'
15060 dynamic_linker="$host_os ld.so"
15061 shlibpath_var=LIBRARY_PATH
15062 ;;
15063
15064bsdi[45]*)
53ba6704 15065 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15066 need_version=no
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15072 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15073 # the default ld.so.conf also contains /usr/contrib/lib and
15074 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15075 # libtool to hard-code these into programs
15076 ;;
9c60689e 15077
47aaa820
DWT
15078cygwin* | mingw* | pw32* | cegcc*)
15079 version_type=windows
15080 shrext_cmds=".dll"
15081 need_version=no
15082 need_lib_prefix=no
9c60689e 15083
ee134472
JF
15084 case $GCC,$cc_basename in
15085 yes,*)
15086 # gcc
47aaa820
DWT
15087 library_names_spec='$libname.dll.a'
15088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15089 postinstall_cmds='base_file=`basename \${file}`~
15090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15091 dldir=$destdir/`dirname \$dlpath`~
15092 test -d \$dldir || mkdir -p \$dldir~
15093 $install_prog $dir/$dlname \$dldir/$dlname~
15094 chmod a+x \$dldir/$dlname~
15095 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15096 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15097 fi'
15098 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15099 dlpath=$dir/\$dldll~
15100 $RM \$dlpath'
15101 shlibpath_overrides_runpath=yes
9c60689e 15102
47aaa820
DWT
15103 case $host_os in
15104 cygwin*)
15105 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15106 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ee134472 15107
47aaa820
DWT
15108 ;;
15109 mingw* | cegcc*)
15110 # MinGW DLLs use traditional 'lib' prefix
15111 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
47aaa820
DWT
15112 ;;
15113 pw32*)
15114 # pw32 DLLs use 'pw' prefix rather than 'lib'
15115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15116 ;;
15117 esac
ee134472
JF
15118 dynamic_linker='Win32 ld.exe'
15119 ;;
15120
15121 *,cl*)
15122 # Native MSVC
15123 libname_spec='$name'
15124 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15125 library_names_spec='${libname}.dll.lib'
15126
15127 case $build_os in
15128 mingw*)
15129 sys_lib_search_path_spec=
15130 lt_save_ifs=$IFS
15131 IFS=';'
15132 for lt_path in $LIB
15133 do
15134 IFS=$lt_save_ifs
15135 # Let DOS variable expansion print the short 8.3 style file name.
15136 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15137 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15138 done
15139 IFS=$lt_save_ifs
15140 # Convert to MSYS style.
15141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15142 ;;
15143 cygwin*)
15144 # Convert to unix form, then to dos form, then back to unix form
15145 # but this time dos style (no spaces!) so that the unix form looks
15146 # like /cygdrive/c/PROGRA~1:/cygdr...
15147 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15148 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15149 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15150 ;;
15151 *)
15152 sys_lib_search_path_spec="$LIB"
15153 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15154 # It is most probably a Windows format PATH.
15155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15156 else
15157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15158 fi
15159 # FIXME: find the short name or the path components, as spaces are
15160 # common. (e.g. "Program Files" -> "PROGRA~1")
15161 ;;
15162 esac
15163
15164 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15165 postinstall_cmds='base_file=`basename \${file}`~
15166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15167 dldir=$destdir/`dirname \$dlpath`~
15168 test -d \$dldir || mkdir -p \$dldir~
15169 $install_prog $dir/$dlname \$dldir/$dlname'
15170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15171 dlpath=$dir/\$dldll~
15172 $RM \$dlpath'
15173 shlibpath_overrides_runpath=yes
15174 dynamic_linker='Win32 link.exe'
47aaa820 15175 ;;
9c60689e 15176
47aaa820 15177 *)
ee134472 15178 # Assume MSVC wrapper
47aaa820 15179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
ee134472 15180 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15181 ;;
15182 esac
47aaa820
DWT
15183 # FIXME: first we should search . and the directory the executable is in
15184 shlibpath_var=PATH
15185 ;;
9c60689e 15186
47aaa820
DWT
15187darwin* | rhapsody*)
15188 dynamic_linker="$host_os dyld"
15189 version_type=darwin
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15193 soname_spec='${libname}${release}${major}$shared_ext'
15194 shlibpath_overrides_runpath=yes
15195 shlibpath_var=DYLD_LIBRARY_PATH
15196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15197
47aaa820
DWT
15198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15199 ;;
9c60689e 15200
47aaa820 15201dgux*)
53ba6704 15202 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15203 need_lib_prefix=no
15204 need_version=no
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 ;;
9c60689e 15209
47aaa820
DWT
15210freebsd* | dragonfly*)
15211 # DragonFly does not have aout. When/if they implement a new
15212 # versioning mechanism, adjust this.
15213 if test -x /usr/bin/objformat; then
15214 objformat=`/usr/bin/objformat`
15215 else
15216 case $host_os in
53ba6704 15217 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15218 *) objformat=elf ;;
15219 esac
15220 fi
15221 version_type=freebsd-$objformat
15222 case $version_type in
15223 freebsd-elf*)
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15225 need_version=no
15226 need_lib_prefix=no
15227 ;;
15228 freebsd-*)
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15230 need_version=yes
15231 ;;
15232 esac
15233 shlibpath_var=LD_LIBRARY_PATH
15234 case $host_os in
53ba6704 15235 freebsd2.*)
47aaa820
DWT
15236 shlibpath_overrides_runpath=yes
15237 ;;
15238 freebsd3.[01]* | freebsdelf3.[01]*)
15239 shlibpath_overrides_runpath=yes
15240 hardcode_into_libs=yes
15241 ;;
15242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15244 shlibpath_overrides_runpath=no
15245 hardcode_into_libs=yes
15246 ;;
15247 *) # from 4.6 on, and DragonFly
15248 shlibpath_overrides_runpath=yes
15249 hardcode_into_libs=yes
15250 ;;
15251 esac
15252 ;;
9c60689e 15253
47aaa820 15254gnu*)
53ba6704 15255 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15256 need_lib_prefix=no
15257 need_version=no
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LD_LIBRARY_PATH
ee134472
JF
15261 shlibpath_overrides_runpath=no
15262 hardcode_into_libs=yes
15263 ;;
15264
15265haiku*)
53ba6704 15266 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15267 need_lib_prefix=no
15268 need_version=no
15269 dynamic_linker="$host_os runtime_loader"
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LIBRARY_PATH
15273 shlibpath_overrides_runpath=yes
15274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15275 hardcode_into_libs=yes
15276 ;;
9c60689e 15277
47aaa820
DWT
15278hpux9* | hpux10* | hpux11*)
15279 # Give a soname corresponding to the major version so that dld.sl refuses to
15280 # link against other versions.
15281 version_type=sunos
15282 need_lib_prefix=no
15283 need_version=no
15284 case $host_cpu in
15285 ia64*)
15286 shrext_cmds='.so'
15287 hardcode_into_libs=yes
15288 dynamic_linker="$host_os dld.so"
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 if test "X$HPUX_IA64_MODE" = X32; then
15294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15295 else
15296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15297 fi
15298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15299 ;;
15300 hppa*64*)
15301 shrext_cmds='.sl'
15302 hardcode_into_libs=yes
15303 dynamic_linker="$host_os dld.sl"
15304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307 soname_spec='${libname}${release}${shared_ext}$major'
15308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15310 ;;
15311 *)
15312 shrext_cmds='.sl'
15313 dynamic_linker="$host_os dld.sl"
15314 shlibpath_var=SHLIB_PATH
15315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 ;;
15319 esac
ee134472 15320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 15321 postinstall_cmds='chmod 555 $lib'
ee134472
JF
15322 # or fails outright, so override atomically:
15323 install_override_mode=555
47aaa820 15324 ;;
9c60689e 15325
47aaa820 15326interix[3-9]*)
53ba6704 15327 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15328 need_lib_prefix=no
15329 need_version=no
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=no
15335 hardcode_into_libs=yes
15336 ;;
9c60689e 15337
47aaa820
DWT
15338irix5* | irix6* | nonstopux*)
15339 case $host_os in
15340 nonstopux*) version_type=nonstopux ;;
15341 *)
15342 if test "$lt_cv_prog_gnu_ld" = yes; then
53ba6704 15343 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15344 else
15345 version_type=irix
15346 fi ;;
15347 esac
15348 need_lib_prefix=no
15349 need_version=no
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15352 case $host_os in
15353 irix5* | nonstopux*)
15354 libsuff= shlibsuff=
15355 ;;
15356 *)
15357 case $LD in # libtool.m4 will add one of these switches to LD
15358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15359 libsuff= shlibsuff= libmagic=32-bit;;
15360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15361 libsuff=32 shlibsuff=N32 libmagic=N32;;
15362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15364 *) libsuff= shlibsuff= libmagic=never-match;;
15365 esac
15366 ;;
15367 esac
15368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15369 shlibpath_overrides_runpath=no
15370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15372 hardcode_into_libs=yes
15373 ;;
9c60689e 15374
47aaa820
DWT
15375# No shared lib support for Linux oldld, aout, or coff.
15376linux*oldld* | linux*aout* | linux*coff*)
15377 dynamic_linker=no
15378 ;;
9c60689e 15379
53ba6704 15380# This must be glibc/ELF.
1504c9b8 15381linux* | k*bsd*-gnu | kopensolaris*-gnu)
53ba6704 15382 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15383 need_lib_prefix=no
15384 need_version=no
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 soname_spec='${libname}${release}${shared_ext}$major'
15387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=no
ee134472 15390
47aaa820 15391 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
15392 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15393 $as_echo_n "(cached) " >&6
15394else
15395 lt_cv_shlibpath_overrides_runpath=no
15396 save_LDFLAGS=$LDFLAGS
15397 save_libdir=$libdir
15398 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15399 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 15401/* end confdefs.h. */
9c60689e 15402
47aaa820
DWT
15403int
15404main ()
15405{
9c60689e 15406
47aaa820
DWT
15407 ;
15408 return 0;
15409}
15410_ACEOF
15411if ac_fn_cxx_try_link "$LINENO"; then :
15412 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 15413 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 15414fi
47aaa820
DWT
15415fi
15416rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
15418 LDFLAGS=$save_LDFLAGS
15419 libdir=$save_libdir
15420
15421fi
15422
15423 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 15424
47aaa820
DWT
15425 # This implies no fast_install, which is unacceptable.
15426 # Some rework will be needed to allow for fast_install
15427 # before this can be enabled.
15428 hardcode_into_libs=yes
9c60689e 15429
47aaa820
DWT
15430 # Append ld.so.conf contents to the search path
15431 if test -f /etc/ld.so.conf; then
ee134472 15432 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
15433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15434 fi
9c60689e 15435
47aaa820
DWT
15436 # We used to test for /lib/ld.so.1 and disable shared libraries on
15437 # powerpc, because MkLinux only supported shared libraries with the
15438 # GNU dynamic linker. Since this was broken with cross compilers,
15439 # most powerpc-linux boxes support dynamic linking these days and
15440 # people can always --disable-shared, the test was removed, and we
15441 # assume the GNU/Linux dynamic linker is in use.
15442 dynamic_linker='GNU/Linux ld.so'
9c60689e 15443 ;;
47aaa820 15444
47aaa820
DWT
15445netbsd*)
15446 version_type=sunos
15447 need_lib_prefix=no
15448 need_version=no
15449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15452 dynamic_linker='NetBSD (a.out) ld.so'
15453 else
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 dynamic_linker='NetBSD ld.elf_so'
15457 fi
15458 shlibpath_var=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath=yes
15460 hardcode_into_libs=yes
9c60689e 15461 ;;
9c60689e 15462
47aaa820 15463newsos6)
53ba6704 15464 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 shlibpath_var=LD_LIBRARY_PATH
15467 shlibpath_overrides_runpath=yes
15468 ;;
9c60689e 15469
47aaa820
DWT
15470*nto* | *qnx*)
15471 version_type=qnx
15472 need_lib_prefix=no
15473 need_version=no
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=no
15478 hardcode_into_libs=yes
15479 dynamic_linker='ldqnx.so'
15480 ;;
9c60689e 15481
47aaa820
DWT
15482openbsd*)
15483 version_type=sunos
15484 sys_lib_dlsearch_path_spec="/usr/lib"
15485 need_lib_prefix=no
15486 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15487 case $host_os in
15488 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15489 *) need_version=no ;;
15490 esac
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15495 case $host_os in
15496 openbsd2.[89] | openbsd2.[89].*)
15497 shlibpath_overrides_runpath=no
15498 ;;
15499 *)
15500 shlibpath_overrides_runpath=yes
15501 ;;
15502 esac
15503 else
15504 shlibpath_overrides_runpath=yes
15505 fi
15506 ;;
9c60689e 15507
47aaa820
DWT
15508os2*)
15509 libname_spec='$name'
15510 shrext_cmds=".dll"
15511 need_lib_prefix=no
15512 library_names_spec='$libname${shared_ext} $libname.a'
15513 dynamic_linker='OS/2 ld.exe'
15514 shlibpath_var=LIBPATH
15515 ;;
9c60689e 15516
47aaa820
DWT
15517osf3* | osf4* | osf5*)
15518 version_type=osf
15519 need_lib_prefix=no
15520 need_version=no
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15526 ;;
9c60689e 15527
47aaa820
DWT
15528rdos*)
15529 dynamic_linker=no
15530 ;;
9c60689e 15531
47aaa820 15532solaris*)
53ba6704 15533 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15534 need_lib_prefix=no
15535 need_version=no
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes
15540 hardcode_into_libs=yes
15541 # ldd complains unless libraries are executable
15542 postinstall_cmds='chmod +x $lib'
15543 ;;
9c60689e 15544
47aaa820
DWT
15545sunos4*)
15546 version_type=sunos
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 if test "$with_gnu_ld" = yes; then
15552 need_lib_prefix=no
15553 fi
15554 need_version=yes
15555 ;;
9c60689e 15556
47aaa820 15557sysv4 | sysv4.3*)
53ba6704 15558 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 case $host_vendor in
15563 sni)
15564 shlibpath_overrides_runpath=no
15565 need_lib_prefix=no
15566 runpath_var=LD_RUN_PATH
9c60689e 15567 ;;
47aaa820
DWT
15568 siemens)
15569 need_lib_prefix=no
9c60689e 15570 ;;
47aaa820
DWT
15571 motorola)
15572 need_lib_prefix=no
15573 need_version=no
15574 shlibpath_overrides_runpath=no
15575 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15576 ;;
15577 esac
9c60689e 15578 ;;
9c60689e 15579
47aaa820
DWT
15580sysv4*MP*)
15581 if test -d /usr/nec ;then
53ba6704 15582 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15583 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15584 soname_spec='$libname${shared_ext}.$major'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 fi
15587 ;;
9c60689e 15588
47aaa820
DWT
15589sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15590 version_type=freebsd-elf
15591 need_lib_prefix=no
15592 need_version=no
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15597 hardcode_into_libs=yes
15598 if test "$with_gnu_ld" = yes; then
15599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15600 else
15601 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15602 case $host_os in
15603 sco3.2v5*)
15604 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15605 ;;
15606 esac
15607 fi
15608 sys_lib_dlsearch_path_spec='/usr/lib'
15609 ;;
9c60689e 15610
47aaa820
DWT
15611tpf*)
15612 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 15613 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=no
15619 hardcode_into_libs=yes
15620 ;;
9c60689e 15621
47aaa820 15622uts4*)
53ba6704 15623 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 ;;
9c60689e 15628
47aaa820
DWT
15629*)
15630 dynamic_linker=no
e9c9a47c
DWT
15631 ;;
15632esac
15633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15634$as_echo "$dynamic_linker" >&6; }
15635test "$dynamic_linker" = no && can_build_shared=no
15636
15637variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15638if test "$GCC" = yes; then
15639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 15640fi
9c60689e 15641
e9c9a47c
DWT
15642if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15643 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
47aaa820 15644fi
e9c9a47c
DWT
15645if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15646 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
47aaa820 15647fi
9c60689e 15648
9c60689e 15649
9c60689e 15650
9c60689e 15651
47aaa820 15652
47aaa820 15653
47aaa820 15654
9c60689e 15655
9c60689e 15656
47aaa820 15657
47aaa820 15658
47aaa820 15659
47aaa820 15660
47aaa820 15661
47aaa820 15662
47aaa820 15663
47aaa820 15664
9c60689e 15665
9c60689e 15666
9c60689e 15667
9c60689e 15668
9c60689e 15669
e9c9a47c
DWT
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
ee134472
JF
15681
15682
e9c9a47c
DWT
15683
15684
15685
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15687$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15688hardcode_action_CXX=
15689if test -n "$hardcode_libdir_flag_spec_CXX" ||
15690 test -n "$runpath_var_CXX" ||
15691 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15692
15693 # We can hardcode non-existent directories.
15694 if test "$hardcode_direct_CXX" != no &&
15695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15696 # have to relink, otherwise we might link with an installed library
15697 # when we should be linking with a yet-to-be-installed one
15698 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15699 test "$hardcode_minus_L_CXX" != no; then
15700 # Linking always hardcodes the temporary library directory.
15701 hardcode_action_CXX=relink
15702 else
15703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15704 hardcode_action_CXX=immediate
15705 fi
15706else
15707 # We cannot hardcode anything, or else we can only hardcode existing
15708 # directories.
15709 hardcode_action_CXX=unsupported
15710fi
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15712$as_echo "$hardcode_action_CXX" >&6; }
15713
15714if test "$hardcode_action_CXX" = relink ||
15715 test "$inherit_rpath_CXX" = yes; then
15716 # Fast installation is not supported
15717 enable_fast_install=no
15718elif test "$shlibpath_overrides_runpath" = yes ||
15719 test "$enable_shared" = no; then
15720 # Fast installation is not necessary
15721 enable_fast_install=needless
47aaa820 15722fi
9c60689e 15723
47aaa820 15724
47aaa820 15725
e9c9a47c
DWT
15726
15727
15728
15729
a243b558
JF
15730 fi # test -n "$compiler"
15731
15732 CC=$lt_save_CC
15733 CFLAGS=$lt_save_CFLAGS
15734 LDCXX=$LD
15735 LD=$lt_save_LD
15736 GCC=$lt_save_GCC
15737 with_gnu_ld=$lt_save_with_gnu_ld
15738 lt_cv_path_LDCXX=$lt_cv_path_LD
15739 lt_cv_path_LD=$lt_save_path_LD
15740 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15741 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15742fi # test "$_lt_caught_CXX_error" != yes
15743
15744ac_ext=c
15745ac_cpp='$CPP $CPPFLAGS'
15746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15748ac_compiler_gnu=$ac_cv_c_compiler_gnu
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764 ac_config_commands="$ac_config_commands libtool"
15765
15766
15767
15768
15769# Only expand once:
15770
15771
15772
15773ac_ext=cpp
15774ac_cpp='$CXXCPP $CPPFLAGS'
15775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15778
15779
15780
15781
15782
15783
15784
15785
15786if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15787 if test -n "$ac_tool_prefix"; then
15788 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15789set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15791$as_echo_n "checking for $ac_word... " >&6; }
15792if ${ac_cv_path_PKG_CONFIG+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794else
15795 case $PKG_CONFIG in
15796 [\\/]* | ?:[\\/]*)
15797 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15798 ;;
15799 *)
15800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801for as_dir in $PATH
15802do
15803 IFS=$as_save_IFS
15804 test -z "$as_dir" && as_dir=.
15805 for ac_exec_ext in '' $ac_executable_extensions; do
15806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15809 break 2
15810 fi
15811done
15812 done
15813IFS=$as_save_IFS
15814
15815 ;;
15816esac
15817fi
15818PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15819if test -n "$PKG_CONFIG"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15821$as_echo "$PKG_CONFIG" >&6; }
15822else
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824$as_echo "no" >&6; }
15825fi
15826
15827
15828fi
15829if test -z "$ac_cv_path_PKG_CONFIG"; then
15830 ac_pt_PKG_CONFIG=$PKG_CONFIG
15831 # Extract the first word of "pkg-config", so it can be a program name with args.
15832set dummy pkg-config; ac_word=$2
15833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15834$as_echo_n "checking for $ac_word... " >&6; }
15835if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15836 $as_echo_n "(cached) " >&6
15837else
15838 case $ac_pt_PKG_CONFIG in
15839 [\\/]* | ?:[\\/]*)
15840 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15841 ;;
15842 *)
15843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15844for as_dir in $PATH
15845do
15846 IFS=$as_save_IFS
15847 test -z "$as_dir" && as_dir=.
15848 for ac_exec_ext in '' $ac_executable_extensions; do
15849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15850 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15852 break 2
15853 fi
15854done
15855 done
15856IFS=$as_save_IFS
15857
15858 ;;
15859esac
15860fi
15861ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15862if test -n "$ac_pt_PKG_CONFIG"; then
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15864$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15865else
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867$as_echo "no" >&6; }
15868fi
15869
15870 if test "x$ac_pt_PKG_CONFIG" = x; then
15871 PKG_CONFIG=""
15872 else
15873 case $cross_compiling:$ac_tool_warned in
15874yes:)
15875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15877ac_tool_warned=yes ;;
15878esac
15879 PKG_CONFIG=$ac_pt_PKG_CONFIG
15880 fi
15881else
15882 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15883fi
15884
15885fi
15886if test -n "$PKG_CONFIG"; then
15887 _pkg_min_version=0.22
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15889$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15890 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15892$as_echo "yes" >&6; }
15893 else
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15895$as_echo "no" >&6; }
15896 PKG_CONFIG=""
15897 fi
15898fi
15899
a243b558
JF
15900# Extract the first word of "git", so it can be a program name with args.
15901set dummy git; ac_word=$2
15902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15903$as_echo_n "checking for $ac_word... " >&6; }
15904if ${ac_cv_path_GIT+:} false; then :
15905 $as_echo_n "(cached) " >&6
15906else
15907 case $GIT in
15908 [\\/]* | ?:[\\/]*)
15909 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15910 ;;
15911 *)
15912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913for as_dir in $PATH
15914do
15915 IFS=$as_save_IFS
15916 test -z "$as_dir" && as_dir=.
15917 for ac_exec_ext in '' $ac_executable_extensions; do
15918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15919 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15921 break 2
15922 fi
15923done
15924 done
15925IFS=$as_save_IFS
e9c9a47c 15926
a243b558
JF
15927 ;;
15928esac
15929fi
15930GIT=$ac_cv_path_GIT
15931if test -n "$GIT"; then
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
15933$as_echo "$GIT" >&6; }
15934else
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15936$as_echo "no" >&6; }
15937fi
e9c9a47c
DWT
15938
15939
a243b558
JF
15940# Extract the first word of "time", so it can be a program name with args.
15941set dummy time; ac_word=$2
632b71ea
DWT
15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943$as_echo_n "checking for $ac_word... " >&6; }
a243b558 15944if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
15945 $as_echo_n "(cached) " >&6
15946else
a243b558
JF
15947 case $TIME in
15948 [\\/]* | ?:[\\/]*)
15949 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
15950 ;;
15951 *)
15952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
15953for as_dir in $PATH
15954do
15955 IFS=$as_save_IFS
15956 test -z "$as_dir" && as_dir=.
15957 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 15958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 15959 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
15960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15961 break 2
15962 fi
15963done
15964 done
15965IFS=$as_save_IFS
15966
a243b558
JF
15967 ;;
15968esac
632b71ea 15969fi
a243b558
JF
15970TIME=$ac_cv_path_TIME
15971if test -n "$TIME"; then
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
15973$as_echo "$TIME" >&6; }
632b71ea
DWT
15974else
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976$as_echo "no" >&6; }
15977fi
15978
15979
a243b558
JF
15980
15981
15982
15983
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
15986$as_echo_n "checking for bison >= 2.3... " >&6; }
15987 if test -z "$BISON"; then
15988 ac_path_BISON_found=false
15989 # Loop through the user's path and test for each of PROGNAME-LIST
15990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15991for as_dir in $PATH
15992do
15993 IFS=$as_save_IFS
15994 test -z "$as_dir" && as_dir=.
15995 for ac_prog in bison; do
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
15998 as_fn_executable_p "$ac_path_BISON" || continue
15999version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16000 if ${version:+false} :; then :
16001
16002else
16003 as_awk_strverscmp='
16004 # Use only awk features that work with 7th edition Unix awk (1978).
16005 # My, what an old awk you have, Mr. Solaris!
16006 END {
16007 while (length(v1) && length(v2)) {
16008 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16009 # Normally this is a single character, but if v1 and v2 contain digits,
16010 # compare them as integers and fractions as strverscmp does.
16011 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16012 # Split v1 and v2 into their leading digit string components d1 and d2,
16013 # and advance v1 and v2 past the leading digit strings.
16014 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16015 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16016 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16017 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16018 if (d1 ~ /^0/) {
16019 if (d2 ~ /^0/) {
16020 # Compare two fractions.
16021 while (d1 ~ /^0/ && d2 ~ /^0/) {
16022 d1 = substr(d1, 2); len1--
16023 d2 = substr(d2, 2); len2--
16024 }
16025 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16026 # The two components differ in length, and the common prefix
16027 # contains only leading zeros. Consider the longer to be less.
16028 d1 = -len1
16029 d2 = -len2
16030 } else {
16031 # Otherwise, compare as strings.
16032 d1 = "x" d1
16033 d2 = "x" d2
16034 }
16035 } else {
16036 # A fraction is less than an integer.
16037 exit 1
16038 }
16039 } else {
16040 if (d2 ~ /^0/) {
16041 # An integer is greater than a fraction.
16042 exit 2
16043 } else {
16044 # Compare two integers.
16045 d1 += 0
16046 d2 += 0
16047 }
16048 }
16049 } else {
16050 # The normal case, without worrying about digits.
16051 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16052 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16053 }
16054 if (d1 < d2) exit 1
16055 if (d1 > d2) exit 2
16056 }
16057 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16058 # which mishandles some comparisons of empty strings to integers.
16059 if (length(v2)) exit 1
16060 if (length(v1)) exit 2
16061 }
16062'
16063as_arg_v1=$version
16064as_arg_v2=2.3
16065awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16066case $? in #(
16067 1) :
16068 ;; #(
16069 0) :
16070 ac_cv_path_BISON=$ac_path_BISON ;; #(
16071 2) :
16072 ac_cv_path_BISON=$ac_path_BISON ;; #(
16073 *) :
16074 ;;
16075esac
16076fi
16077
16078 $ac_path_BISON_found && break 3
16079 done
16080 done
e9c9a47c 16081 done
a243b558
JF
16082IFS=$as_save_IFS
16083 if test -z "$ac_cv_path_BISON"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16085$as_echo "no" >&6; }
16086 fi
16087else
16088 ac_cv_path_BISON=$BISON
632b71ea 16089fi
a243b558
JF
16090
16091
16092 if true; then :
16093
16094 BISON=$ac_cv_path_BISON
16095
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16097$as_echo "$BISON" >&6; }
16098
47aaa820 16099else
a243b558
JF
16100 if true; then :
16101
16102 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16103
47aaa820 16104else
a243b558
JF
16105
16106 BISON=:
16107
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109$as_echo "no" >&6; }
16110
16111fi
16112fi
16113
16114
16115
16116
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16118$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16119 if test -z "$FLEX"; then
16120 ac_path_FLEX_found=false
16121 # Loop through the user's path and test for each of PROGNAME-LIST
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
16123for as_dir in $PATH
16124do
16125 IFS=$as_save_IFS
16126 test -z "$as_dir" && as_dir=.
a243b558 16127 for ac_prog in flex; do
47aaa820 16128 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
16129 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16130 as_fn_executable_p "$ac_path_FLEX" || continue
16131version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16132 if ${version:+false} :; then :
9c60689e 16133
47aaa820 16134else
a243b558
JF
16135 as_arg_v1=$version
16136as_arg_v2=2.5.33
16137awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16138case $? in #(
16139 1) :
16140 ;; #(
16141 0) :
16142 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16143 2) :
16144 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16145 *) :
16146 ;;
16147esac
16148fi
16149
16150 $ac_path_FLEX_found && break 3
16151 done
16152 done
16153 done
16154IFS=$as_save_IFS
16155 if test -z "$ac_cv_path_FLEX"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 16157$as_echo "no" >&6; }
a243b558
JF
16158 fi
16159else
16160 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
16161fi
16162
16163
a243b558 16164 if true; then :
e9c9a47c 16165
a243b558 16166 FLEX=$ac_cv_path_FLEX
e9c9a47c 16167
a243b558
JF
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16169$as_echo "$FLEX" >&6; }
9c60689e 16170
632b71ea 16171else
a243b558 16172 if true; then :
e9c9a47c 16173
a243b558 16174 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 16175
e9c9a47c 16176else
a243b558
JF
16177
16178 FLEX=:
16179
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16181$as_echo "no" >&6; }
9c60689e 16182
632b71ea 16183fi
a243b558
JF
16184fi
16185
16186
16187
16188
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16190$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16191 if test -z "$GPERF"; then
16192 ac_path_GPERF_found=false
16193 # Loop through the user's path and test for each of PROGNAME-LIST
16194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16195for as_dir in $PATH
16196do
16197 IFS=$as_save_IFS
16198 test -z "$as_dir" && as_dir=.
16199 for ac_prog in gperf; do
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16202 as_fn_executable_p "$ac_path_GPERF" || continue
16203version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16204 if ${version:+false} :; then :
16205
e9c9a47c 16206else
a243b558
JF
16207 as_arg_v1=$version
16208as_arg_v2=3.0.3
16209awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16210case $? in #(
16211 1) :
16212 ;; #(
16213 0) :
16214 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16215 2) :
16216 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16217 *) :
16218 ;;
16219esac
632b71ea 16220fi
a243b558
JF
16221
16222 $ac_path_GPERF_found && break 3
16223 done
16224 done
16225 done
16226IFS=$as_save_IFS
16227 if test -z "$ac_cv_path_GPERF"; then
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229$as_echo "no" >&6; }
16230 fi
47aaa820 16231else
a243b558
JF
16232 ac_cv_path_GPERF=$GPERF
16233fi
9c60689e
DWT
16234
16235
a243b558 16236 if true; then :
9c60689e 16237
a243b558 16238 GPERF=$ac_cv_path_GPERF
9c60689e 16239
a243b558
JF
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16241$as_echo "$GPERF" >&6; }
9c60689e 16242
47aaa820 16243else
a243b558 16244 if true; then :
9c60689e 16245
a243b558
JF
16246 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16247
16248else
16249
16250 GPERF=:
16251
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16253$as_echo "no" >&6; }
9c60689e 16254
47aaa820 16255fi
47aaa820 16256fi
a243b558
JF
16257
16258
16259
16260
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16262$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16263 if test -z "$GNUTAR"; then
16264 ac_path_GNUTAR_found=false
16265 # Loop through the user's path and test for each of PROGNAME-LIST
16266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16267for as_dir in $PATH
16268do
16269 IFS=$as_save_IFS
16270 test -z "$as_dir" && as_dir=.
16271 for ac_prog in tar gtar gnutar; do
16272 for ac_exec_ext in '' $ac_executable_extensions; do
16273 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16274 as_fn_executable_p "$ac_path_GNUTAR" || continue
16275version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16276 if ${version:+false} :; then :
16277
16278else
16279 as_arg_v1=$version
16280as_arg_v2=1.19
16281awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16282case $? in #(
16283 1) :
16284 ;; #(
16285 0) :
16286 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16287 2) :
16288 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16289 *) :
16290 ;;
16291esac
790e5246 16292fi
a243b558
JF
16293
16294 $ac_path_GNUTAR_found && break 3
16295 done
16296 done
16297 done
16298IFS=$as_save_IFS
16299 if test -z "$ac_cv_path_GNUTAR"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301$as_echo "no" >&6; }
632b71ea 16302 fi
632b71ea 16303else
a243b558 16304 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 16305fi
66170b30 16306
66170b30 16307
a243b558 16308 if true; then :
66170b30 16309
a243b558 16310 GNUTAR=$ac_cv_path_GNUTAR
66170b30 16311
a243b558
JF
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16313$as_echo "$GNUTAR" >&6; }
66170b30 16314
a243b558
JF
16315else
16316 if true; then :
66170b30 16317
a243b558 16318 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 16319
66170b30 16320else
66170b30 16321
a243b558 16322 GNUTAR=:
66170b30 16323
a243b558
JF
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325$as_echo "no" >&6; }
66170b30 16326
a243b558
JF
16327fi
16328fi
66170b30
JF
16329
16330
9228a43a
JF
16331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16332$as_echo_n "checking bison for %code{}... " >&6; }
16333echo '%code{}%%_:' >conftest.y
16334if $BISON conftest.y -o/dev/null 2>/dev/null; then
16335
16336 for element in Bison24; do
16337 haveit=
16338 for x in $CY_FILTERS; do
16339
16340 acl_save_prefix="$prefix"
16341 prefix="$acl_final_prefix"
16342 acl_save_exec_prefix="$exec_prefix"
16343 exec_prefix="$acl_final_exec_prefix"
16344 eval x=\"$x\"
16345 exec_prefix="$acl_save_exec_prefix"
16346 prefix="$acl_save_prefix"
16347
16348 if test "X$x" = "X$element"; then
16349 haveit=yes
16350 break
16351 fi
16352 done
16353 if test -z "$haveit"; then
16354 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16355 fi
16356 done
16357
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16359$as_echo "yes" >&6; }
16360else
16361
16362 for element in Bison23; do
16363 haveit=
16364 for x in $CY_FILTERS; do
16365
16366 acl_save_prefix="$prefix"
16367 prefix="$acl_final_prefix"
16368 acl_save_exec_prefix="$exec_prefix"
16369 exec_prefix="$acl_final_exec_prefix"
16370 eval x=\"$x\"
16371 exec_prefix="$acl_save_exec_prefix"
16372 prefix="$acl_save_prefix"
16373
16374 if test "X$x" = "X$element"; then
16375 haveit=yes
16376 break
16377 fi
16378 done
16379 if test -z "$haveit"; then
16380 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16381 fi
16382 done
16383
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16385$as_echo "no" >&6; }
16386fi
16387
16388rm -f conftest.y
16389
16390
66170b30
JF
16391
16392
16393
16394
16395
16396
16397
16398
16399if ${CFLAGS+:} false; then :
16400 case " $CFLAGS " in
16401 *" "*)
16402 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16403 (: CFLAGS already contains ) 2>&5
16404 ac_status=$?
16405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16406 test $ac_status = 0; }
16407 ;;
16408 *)
16409 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16410 (: CFLAGS="$CFLAGS ") 2>&5
16411 ac_status=$?
16412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16413 test $ac_status = 0; }
16414 CFLAGS="$CFLAGS "
16415 ;;
16416 esac
16417else
16418 CFLAGS=""
16419fi
16420
e9c9a47c
DWT
16421ac_ext=c
16422ac_cpp='$CPP $CPPFLAGS'
16423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16425ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 16426
66170b30
JF
16427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16428$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16429if ${ac_cv_cflags_warn_all+:} false; then :
16430 $as_echo_n "(cached) " >&6
16431else
16432 ac_cv_cflags_warn_all="no, unknown"
16433ac_save_CFLAGS="$CFLAGS"
16434for 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" #
16435do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437/* end confdefs.h. */
16438
16439int
16440main ()
16441{
16442
16443 ;
16444 return 0;
16445}
16446_ACEOF
16447if ac_fn_c_try_compile "$LINENO"; then :
16448 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16449fi
16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451done
16452CFLAGS="$ac_save_CFLAGS"
16453
16454fi
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16456$as_echo "$ac_cv_cflags_warn_all" >&6; }
16457
16458case ".$ac_cv_cflags_warn_all" in
16459 .ok|.ok,*) ;;
16460 .|.no|.no,*) ;;
16461 *) if ${CFLAGS+:} false; then :
16462 case " $CFLAGS " in
16463 *" $ac_cv_cflags_warn_all "*)
16464 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16465 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16466 ac_status=$?
16467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16468 test $ac_status = 0; }
16469 ;;
16470 *)
16471 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16472 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16473 ac_status=$?
16474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16475 test $ac_status = 0; }
16476 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16477 ;;
16478 esac
16479else
16480 CFLAGS="$ac_cv_cflags_warn_all"
16481fi
16482 ;;
16483esac
16484
b816329d
JF
16485ac_ext=cpp
16486ac_cpp='$CXXCPP $CPPFLAGS'
16487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16490
9c60689e 16491
66170b30
JF
16492ac_ext=cpp
16493ac_cpp='$CXXCPP $CPPFLAGS'
16494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 16497
66170b30
JF
16498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16499$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16500if ${ac_cv_cxxflags_warn_all+:} false; then :
16501 $as_echo_n "(cached) " >&6
16502else
16503 ac_cv_cxxflags_warn_all="no, unknown"
16504ac_save_CXXFLAGS="$CXXFLAGS"
16505for 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" #
16506do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508/* end confdefs.h. */
1504c9b8 16509
66170b30
JF
16510int
16511main ()
16512{
1504c9b8 16513
66170b30
JF
16514 ;
16515 return 0;
16516}
16517_ACEOF
16518if ac_fn_cxx_try_compile "$LINENO"; then :
16519 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16520fi
16521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522done
16523CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 16524
66170b30
JF
16525fi
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16527$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16528
16529case ".$ac_cv_cxxflags_warn_all" in
16530 .ok|.ok,*) ;;
16531 .|.no|.no,*) ;;
16532 *) if ${CXXFLAGS+:} false; then :
16533 case " $CXXFLAGS " in
16534 *" $ac_cv_cxxflags_warn_all "*)
16535 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16536 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16537 ac_status=$?
16538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16539 test $ac_status = 0; }
16540 ;;
16541 *)
16542 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16543 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16544 ac_status=$?
16545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16546 test $ac_status = 0; }
16547 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16548 ;;
16549 esac
16550else
16551 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16552fi
16553 ;;
16554esac
16555
16556ac_ext=cpp
16557ac_cpp='$CXXCPP $CPPFLAGS'
16558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16561
16562
16563
16564
66170b30 16565
66170b30 16566
c10a2228
JF
16567 ac_ext=c
16568ac_cpp='$CPP $CPPFLAGS'
16569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16571ac_compiler_gnu=$ac_cv_c_compiler_gnu
16572
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
16574$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
16575
16576 cy_save=$CFLAGS
16577
16578 for element in -Wno-deprecated-declarations; do
16579 haveit=
16580 for x in $CFLAGS; do
16581
16582 acl_save_prefix="$prefix"
16583 prefix="$acl_final_prefix"
16584 acl_save_exec_prefix="$exec_prefix"
16585 exec_prefix="$acl_final_exec_prefix"
16586 eval x=\"$x\"
16587 exec_prefix="$acl_save_exec_prefix"
16588 prefix="$acl_save_prefix"
16589
16590 if test "X$x" = "X$element"; then
16591 haveit=yes
16592 break
16593 fi
16594 done
16595 if test -z "$haveit"; then
16596 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16597 fi
16598 done
16599
16600
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h. */
16603
16604_ACEOF
16605if ac_fn_c_try_compile "$LINENO"; then :
16606 cy_good=1
16607else
16608 cy_good=0
16609fi
16610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611
16612 CFLAGS=$cy_save
16613 if test "x$cy_good" = x1; then :
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615$as_echo "yes" >&6; }
16616
16617 for element in -Wno-deprecated-declarations; do
16618 haveit=
16619 for x in $CFLAGS; do
16620
16621 acl_save_prefix="$prefix"
16622 prefix="$acl_final_prefix"
16623 acl_save_exec_prefix="$exec_prefix"
16624 exec_prefix="$acl_final_exec_prefix"
16625 eval x=\"$x\"
16626 exec_prefix="$acl_save_exec_prefix"
16627 prefix="$acl_save_prefix"
16628
16629 if test "X$x" = "X$element"; then
16630 haveit=yes
16631 break
16632 fi
16633 done
16634 if test -z "$haveit"; then
16635 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16636 fi
16637 done
16638
16639
16640else
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16642$as_echo "no" >&6; }
16643fi
16644
16645 ac_ext=cpp
16646ac_cpp='$CXXCPP $CPPFLAGS'
16647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16650
16651
16652
16653 ac_ext=cpp
16654ac_cpp='$CXXCPP $CPPFLAGS'
16655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16658
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
16660$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
16661
16662 cy_save=$CXXFLAGS
16663
16664 for element in -Wno-deprecated-declarations; do
16665 haveit=
16666 for x in $CXXFLAGS; do
16667
16668 acl_save_prefix="$prefix"
16669 prefix="$acl_final_prefix"
16670 acl_save_exec_prefix="$exec_prefix"
16671 exec_prefix="$acl_final_exec_prefix"
16672 eval x=\"$x\"
16673 exec_prefix="$acl_save_exec_prefix"
16674 prefix="$acl_save_prefix"
16675
16676 if test "X$x" = "X$element"; then
16677 haveit=yes
16678 break
16679 fi
16680 done
16681 if test -z "$haveit"; then
16682 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16683 fi
16684 done
16685
16686
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688/* end confdefs.h. */
16689
16690_ACEOF
16691if ac_fn_cxx_try_compile "$LINENO"; then :
16692 cy_good=1
16693else
16694 cy_good=0
16695fi
16696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697
16698 CXXFLAGS=$cy_save
16699 if test "x$cy_good" = x1; then :
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16701$as_echo "yes" >&6; }
16702
16703 for element in -Wno-deprecated-declarations; do
16704 haveit=
16705 for x in $CXXFLAGS; do
16706
16707 acl_save_prefix="$prefix"
16708 prefix="$acl_final_prefix"
16709 acl_save_exec_prefix="$exec_prefix"
16710 exec_prefix="$acl_final_exec_prefix"
16711 eval x=\"$x\"
16712 exec_prefix="$acl_save_exec_prefix"
16713 prefix="$acl_save_prefix"
16714
16715 if test "X$x" = "X$element"; then
16716 haveit=yes
16717 break
16718 fi
16719 done
16720 if test -z "$haveit"; then
16721 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16722 fi
16723 done
16724
16725
16726else
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16728$as_echo "no" >&6; }
16729fi
16730
16731 ac_ext=cpp
16732ac_cpp='$CXXCPP $CPPFLAGS'
16733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16736
16737
16738
16739 ac_ext=mm
16740ac_cpp='$OBJCXXCPP $CPPFLAGS'
16741ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16742ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16743ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
16746$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
16747
16748 cy_save=$OBJCXXFLAGS
16749
16750 for element in -Wno-deprecated-declarations; do
16751 haveit=
16752 for x in $OBJCXXFLAGS; do
16753
16754 acl_save_prefix="$prefix"
16755 prefix="$acl_final_prefix"
16756 acl_save_exec_prefix="$exec_prefix"
16757 exec_prefix="$acl_final_exec_prefix"
16758 eval x=\"$x\"
16759 exec_prefix="$acl_save_exec_prefix"
16760 prefix="$acl_save_prefix"
16761
16762 if test "X$x" = "X$element"; then
16763 haveit=yes
16764 break
16765 fi
16766 done
16767 if test -z "$haveit"; then
16768 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16769 fi
16770 done
16771
16772
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774/* end confdefs.h. */
16775
16776_ACEOF
16777if ac_fn_objcxx_try_compile "$LINENO"; then :
16778 cy_good=1
16779else
16780 cy_good=0
16781fi
16782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783
16784 OBJCXXFLAGS=$cy_save
16785 if test "x$cy_good" = x1; then :
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16787$as_echo "yes" >&6; }
16788
16789 for element in -Wno-deprecated-declarations; do
16790 haveit=
16791 for x in $OBJCXXFLAGS; do
16792
16793 acl_save_prefix="$prefix"
16794 prefix="$acl_final_prefix"
16795 acl_save_exec_prefix="$exec_prefix"
16796 exec_prefix="$acl_final_exec_prefix"
16797 eval x=\"$x\"
16798 exec_prefix="$acl_save_exec_prefix"
16799 prefix="$acl_save_prefix"
16800
16801 if test "X$x" = "X$element"; then
16802 haveit=yes
16803 break
16804 fi
16805 done
16806 if test -z "$haveit"; then
16807 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16808 fi
16809 done
16810
16811
16812else
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814$as_echo "no" >&6; }
16815fi
16816
16817 ac_ext=cpp
16818ac_cpp='$CXXCPP $CPPFLAGS'
16819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16822
16823
16824
16825
16826
16827
16828 ac_ext=c
16829ac_cpp='$CPP $CPPFLAGS'
16830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832ac_compiler_gnu=$ac_cv_c_compiler_gnu
16833
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
16835$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
16836
16837 cy_save=$CFLAGS
16838
16839 for element in -Wno-dangling-else; do
16840 haveit=
16841 for x in $CFLAGS; do
16842
16843 acl_save_prefix="$prefix"
16844 prefix="$acl_final_prefix"
16845 acl_save_exec_prefix="$exec_prefix"
16846 exec_prefix="$acl_final_exec_prefix"
16847 eval x=\"$x\"
16848 exec_prefix="$acl_save_exec_prefix"
16849 prefix="$acl_save_prefix"
16850
16851 if test "X$x" = "X$element"; then
16852 haveit=yes
16853 break
16854 fi
16855 done
16856 if test -z "$haveit"; then
16857 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16858 fi
16859 done
16860
16861
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863/* end confdefs.h. */
16864
16865_ACEOF
16866if ac_fn_c_try_compile "$LINENO"; then :
16867 cy_good=1
16868else
16869 cy_good=0
16870fi
16871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16872
16873 CFLAGS=$cy_save
16874 if test "x$cy_good" = x1; then :
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16876$as_echo "yes" >&6; }
16877
16878 for element in -Wno-dangling-else; do
16879 haveit=
16880 for x in $CFLAGS; do
16881
16882 acl_save_prefix="$prefix"
16883 prefix="$acl_final_prefix"
16884 acl_save_exec_prefix="$exec_prefix"
16885 exec_prefix="$acl_final_exec_prefix"
16886 eval x=\"$x\"
16887 exec_prefix="$acl_save_exec_prefix"
16888 prefix="$acl_save_prefix"
16889
16890 if test "X$x" = "X$element"; then
16891 haveit=yes
16892 break
16893 fi
16894 done
16895 if test -z "$haveit"; then
16896 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16897 fi
16898 done
16899
16900
16901else
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903$as_echo "no" >&6; }
16904fi
16905
16906 ac_ext=cpp
16907ac_cpp='$CXXCPP $CPPFLAGS'
16908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16911
16912
16913
16914 ac_ext=cpp
16915ac_cpp='$CXXCPP $CPPFLAGS'
16916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
16921$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
16922
16923 cy_save=$CXXFLAGS
16924
16925 for element in -Wno-dangling-else; do
16926 haveit=
16927 for x in $CXXFLAGS; do
16928
16929 acl_save_prefix="$prefix"
16930 prefix="$acl_final_prefix"
16931 acl_save_exec_prefix="$exec_prefix"
16932 exec_prefix="$acl_final_exec_prefix"
16933 eval x=\"$x\"
16934 exec_prefix="$acl_save_exec_prefix"
16935 prefix="$acl_save_prefix"
16936
16937 if test "X$x" = "X$element"; then
16938 haveit=yes
16939 break
16940 fi
16941 done
16942 if test -z "$haveit"; then
16943 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16944 fi
16945 done
16946
16947
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949/* end confdefs.h. */
16950
16951_ACEOF
16952if ac_fn_cxx_try_compile "$LINENO"; then :
16953 cy_good=1
16954else
16955 cy_good=0
16956fi
16957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958
16959 CXXFLAGS=$cy_save
16960 if test "x$cy_good" = x1; then :
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16962$as_echo "yes" >&6; }
16963
16964 for element in -Wno-dangling-else; do
16965 haveit=
16966 for x in $CXXFLAGS; do
16967
16968 acl_save_prefix="$prefix"
16969 prefix="$acl_final_prefix"
16970 acl_save_exec_prefix="$exec_prefix"
16971 exec_prefix="$acl_final_exec_prefix"
16972 eval x=\"$x\"
16973 exec_prefix="$acl_save_exec_prefix"
16974 prefix="$acl_save_prefix"
16975
16976 if test "X$x" = "X$element"; then
16977 haveit=yes
16978 break
16979 fi
16980 done
16981 if test -z "$haveit"; then
16982 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16983 fi
16984 done
16985
16986
16987else
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16989$as_echo "no" >&6; }
16990fi
16991
16992 ac_ext=cpp
16993ac_cpp='$CXXCPP $CPPFLAGS'
16994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16997
16998
16999
17000 ac_ext=mm
17001ac_cpp='$OBJCXXCPP $CPPFLAGS'
17002ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17003ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17004ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17005
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17007$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17008
17009 cy_save=$OBJCXXFLAGS
17010
17011 for element in -Wno-dangling-else; do
17012 haveit=
17013 for x in $OBJCXXFLAGS; do
17014
17015 acl_save_prefix="$prefix"
17016 prefix="$acl_final_prefix"
17017 acl_save_exec_prefix="$exec_prefix"
17018 exec_prefix="$acl_final_exec_prefix"
17019 eval x=\"$x\"
17020 exec_prefix="$acl_save_exec_prefix"
17021 prefix="$acl_save_prefix"
17022
17023 if test "X$x" = "X$element"; then
17024 haveit=yes
17025 break
17026 fi
17027 done
17028 if test -z "$haveit"; then
17029 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17030 fi
17031 done
17032
17033
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035/* end confdefs.h. */
17036
17037_ACEOF
17038if ac_fn_objcxx_try_compile "$LINENO"; then :
17039 cy_good=1
17040else
17041 cy_good=0
17042fi
17043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044
17045 OBJCXXFLAGS=$cy_save
17046 if test "x$cy_good" = x1; then :
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17048$as_echo "yes" >&6; }
17049
17050 for element in -Wno-dangling-else; do
17051 haveit=
17052 for x in $OBJCXXFLAGS; do
17053
17054 acl_save_prefix="$prefix"
17055 prefix="$acl_final_prefix"
17056 acl_save_exec_prefix="$exec_prefix"
17057 exec_prefix="$acl_final_exec_prefix"
17058 eval x=\"$x\"
17059 exec_prefix="$acl_save_exec_prefix"
17060 prefix="$acl_save_prefix"
17061
17062 if test "X$x" = "X$element"; then
17063 haveit=yes
17064 break
17065 fi
17066 done
17067 if test -z "$haveit"; then
17068 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17069 fi
17070 done
17071
17072
17073else
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075$as_echo "no" >&6; }
17076fi
17077
17078 ac_ext=cpp
17079ac_cpp='$CXXCPP $CPPFLAGS'
17080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17083
17084
17085
17086
17087
17088 ac_ext=c
17089ac_cpp='$CPP $CPPFLAGS'
17090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17092ac_compiler_gnu=$ac_cv_c_compiler_gnu
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17095$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17096
17097 cy_save=$CFLAGS
17098
17099 for element in -Wno-overloaded-virtual; do
17100 haveit=
17101 for x in $CFLAGS; do
17102
17103 acl_save_prefix="$prefix"
17104 prefix="$acl_final_prefix"
17105 acl_save_exec_prefix="$exec_prefix"
17106 exec_prefix="$acl_final_exec_prefix"
17107 eval x=\"$x\"
17108 exec_prefix="$acl_save_exec_prefix"
17109 prefix="$acl_save_prefix"
17110
17111 if test "X$x" = "X$element"; then
17112 haveit=yes
17113 break
17114 fi
17115 done
17116 if test -z "$haveit"; then
17117 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17118 fi
17119 done
17120
17121
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h. */
17124
17125_ACEOF
17126if ac_fn_c_try_compile "$LINENO"; then :
17127 cy_good=1
17128else
17129 cy_good=0
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132
17133 CFLAGS=$cy_save
17134 if test "x$cy_good" = x1; then :
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17136$as_echo "yes" >&6; }
17137
17138 for element in -Wno-overloaded-virtual; do
17139 haveit=
17140 for x in $CFLAGS; do
17141
17142 acl_save_prefix="$prefix"
17143 prefix="$acl_final_prefix"
17144 acl_save_exec_prefix="$exec_prefix"
17145 exec_prefix="$acl_final_exec_prefix"
17146 eval x=\"$x\"
17147 exec_prefix="$acl_save_exec_prefix"
17148 prefix="$acl_save_prefix"
17149
17150 if test "X$x" = "X$element"; then
17151 haveit=yes
17152 break
17153 fi
17154 done
17155 if test -z "$haveit"; then
17156 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17157 fi
17158 done
17159
17160
17161else
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17163$as_echo "no" >&6; }
17164fi
17165
17166 ac_ext=cpp
17167ac_cpp='$CXXCPP $CPPFLAGS'
17168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17171
17172
17173
17174 ac_ext=cpp
17175ac_cpp='$CXXCPP $CPPFLAGS'
17176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17179
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17181$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17182
17183 cy_save=$CXXFLAGS
17184
17185 for element in -Wno-overloaded-virtual; do
17186 haveit=
17187 for x in $CXXFLAGS; do
17188
17189 acl_save_prefix="$prefix"
17190 prefix="$acl_final_prefix"
17191 acl_save_exec_prefix="$exec_prefix"
17192 exec_prefix="$acl_final_exec_prefix"
17193 eval x=\"$x\"
17194 exec_prefix="$acl_save_exec_prefix"
17195 prefix="$acl_save_prefix"
17196
17197 if test "X$x" = "X$element"; then
17198 haveit=yes
17199 break
17200 fi
17201 done
17202 if test -z "$haveit"; then
17203 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17204 fi
17205 done
17206
17207
17208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17209/* end confdefs.h. */
17210
17211_ACEOF
17212if ac_fn_cxx_try_compile "$LINENO"; then :
17213 cy_good=1
17214else
17215 cy_good=0
17216fi
17217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218
17219 CXXFLAGS=$cy_save
17220 if test "x$cy_good" = x1; then :
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17222$as_echo "yes" >&6; }
17223
17224 for element in -Wno-overloaded-virtual; do
17225 haveit=
17226 for x in $CXXFLAGS; do
17227
17228 acl_save_prefix="$prefix"
17229 prefix="$acl_final_prefix"
17230 acl_save_exec_prefix="$exec_prefix"
17231 exec_prefix="$acl_final_exec_prefix"
17232 eval x=\"$x\"
17233 exec_prefix="$acl_save_exec_prefix"
17234 prefix="$acl_save_prefix"
17235
17236 if test "X$x" = "X$element"; then
17237 haveit=yes
17238 break
17239 fi
17240 done
17241 if test -z "$haveit"; then
17242 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17243 fi
17244 done
17245
17246
17247else
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17249$as_echo "no" >&6; }
17250fi
17251
17252 ac_ext=cpp
17253ac_cpp='$CXXCPP $CPPFLAGS'
17254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17257
17258
17259
17260 ac_ext=mm
17261ac_cpp='$OBJCXXCPP $CPPFLAGS'
17262ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17263ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17264ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17265
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17267$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17268
17269 cy_save=$OBJCXXFLAGS
17270
17271 for element in -Wno-overloaded-virtual; do
17272 haveit=
17273 for x in $OBJCXXFLAGS; do
17274
17275 acl_save_prefix="$prefix"
17276 prefix="$acl_final_prefix"
17277 acl_save_exec_prefix="$exec_prefix"
17278 exec_prefix="$acl_final_exec_prefix"
17279 eval x=\"$x\"
17280 exec_prefix="$acl_save_exec_prefix"
17281 prefix="$acl_save_prefix"
17282
17283 if test "X$x" = "X$element"; then
17284 haveit=yes
17285 break
17286 fi
17287 done
17288 if test -z "$haveit"; then
17289 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17290 fi
17291 done
17292
17293
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295/* end confdefs.h. */
17296
17297_ACEOF
17298if ac_fn_objcxx_try_compile "$LINENO"; then :
17299 cy_good=1
17300else
17301 cy_good=0
17302fi
17303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304
17305 OBJCXXFLAGS=$cy_save
17306 if test "x$cy_good" = x1; then :
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17308$as_echo "yes" >&6; }
17309
17310 for element in -Wno-overloaded-virtual; do
17311 haveit=
17312 for x in $OBJCXXFLAGS; do
17313
17314 acl_save_prefix="$prefix"
17315 prefix="$acl_final_prefix"
17316 acl_save_exec_prefix="$exec_prefix"
17317 exec_prefix="$acl_final_exec_prefix"
17318 eval x=\"$x\"
17319 exec_prefix="$acl_save_exec_prefix"
17320 prefix="$acl_save_prefix"
17321
17322 if test "X$x" = "X$element"; then
17323 haveit=yes
17324 break
17325 fi
17326 done
17327 if test -z "$haveit"; then
17328 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17329 fi
17330 done
17331
17332
17333else
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17335$as_echo "no" >&6; }
17336fi
17337
17338 ac_ext=cpp
17339ac_cpp='$CXXCPP $CPPFLAGS'
17340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17343
17344
17345
17346
17347
17348 ac_ext=c
17349ac_cpp='$CPP $CPPFLAGS'
17350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17352ac_compiler_gnu=$ac_cv_c_compiler_gnu
17353
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17355$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17356
17357 cy_save=$CFLAGS
17358
17359 for element in -Wno-parentheses; do
1504c9b8 17360 haveit=
c10a2228 17361 for x in $CFLAGS; do
1504c9b8
DWT
17362
17363 acl_save_prefix="$prefix"
17364 prefix="$acl_final_prefix"
17365 acl_save_exec_prefix="$exec_prefix"
17366 exec_prefix="$acl_final_exec_prefix"
17367 eval x=\"$x\"
17368 exec_prefix="$acl_save_exec_prefix"
17369 prefix="$acl_save_prefix"
17370
17371 if test "X$x" = "X$element"; then
17372 haveit=yes
17373 break
17374 fi
17375 done
17376 if test -z "$haveit"; then
c10a2228 17377 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
17378 fi
17379 done
17380
66170b30
JF
17381
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17383/* end confdefs.h. */
17384
66170b30 17385_ACEOF
c10a2228 17386if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
17387 cy_good=1
17388else
17389 cy_good=0
17390fi
17391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17392
c10a2228 17393 CFLAGS=$cy_save
66170b30
JF
17394 if test "x$cy_good" = x1; then :
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17396$as_echo "yes" >&6; }
17397
c10a2228 17398 for element in -Wno-parentheses; do
66170b30
JF
17399 haveit=
17400 for x in $CFLAGS; do
17401
17402 acl_save_prefix="$prefix"
17403 prefix="$acl_final_prefix"
17404 acl_save_exec_prefix="$exec_prefix"
17405 exec_prefix="$acl_final_exec_prefix"
17406 eval x=\"$x\"
17407 exec_prefix="$acl_save_exec_prefix"
17408 prefix="$acl_save_prefix"
17409
17410 if test "X$x" = "X$element"; then
17411 haveit=yes
17412 break
17413 fi
17414 done
17415 if test -z "$haveit"; then
17416 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17417 fi
17418 done
17419
17420
c10a2228
JF
17421else
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17423$as_echo "no" >&6; }
17424fi
17425
17426 ac_ext=cpp
17427ac_cpp='$CXXCPP $CPPFLAGS'
17428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17431
17432
17433
17434 ac_ext=cpp
17435ac_cpp='$CXXCPP $CPPFLAGS'
17436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17439
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17441$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17442
17443 cy_save=$CXXFLAGS
17444
17445 for element in -Wno-parentheses; do
66170b30
JF
17446 haveit=
17447 for x in $CXXFLAGS; do
17448
17449 acl_save_prefix="$prefix"
17450 prefix="$acl_final_prefix"
17451 acl_save_exec_prefix="$exec_prefix"
17452 exec_prefix="$acl_final_exec_prefix"
17453 eval x=\"$x\"
17454 exec_prefix="$acl_save_exec_prefix"
17455 prefix="$acl_save_prefix"
17456
17457 if test "X$x" = "X$element"; then
17458 haveit=yes
17459 break
17460 fi
17461 done
17462 if test -z "$haveit"; then
17463 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17464 fi
17465 done
17466
17467
c10a2228
JF
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469/* end confdefs.h. */
17470
17471_ACEOF
17472if ac_fn_cxx_try_compile "$LINENO"; then :
17473 cy_good=1
17474else
17475 cy_good=0
17476fi
17477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478
17479 CXXFLAGS=$cy_save
17480 if test "x$cy_good" = x1; then :
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17482$as_echo "yes" >&6; }
17483
17484 for element in -Wno-parentheses; do
66170b30 17485 haveit=
c10a2228 17486 for x in $CXXFLAGS; do
66170b30
JF
17487
17488 acl_save_prefix="$prefix"
17489 prefix="$acl_final_prefix"
17490 acl_save_exec_prefix="$exec_prefix"
17491 exec_prefix="$acl_final_exec_prefix"
17492 eval x=\"$x\"
17493 exec_prefix="$acl_save_exec_prefix"
17494 prefix="$acl_save_prefix"
17495
17496 if test "X$x" = "X$element"; then
17497 haveit=yes
17498 break
17499 fi
17500 done
17501 if test -z "$haveit"; then
c10a2228 17502 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
17503 fi
17504 done
17505
17506
66170b30
JF
17507else
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509$as_echo "no" >&6; }
17510fi
17511
c10a2228
JF
17512 ac_ext=cpp
17513ac_cpp='$CXXCPP $CPPFLAGS'
17514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17517
66170b30
JF
17518
17519
c10a2228
JF
17520 ac_ext=mm
17521ac_cpp='$OBJCXXCPP $CPPFLAGS'
17522ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17523ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17524ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17525
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17527$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
66170b30 17528
c10a2228 17529 cy_save=$OBJCXXFLAGS
66170b30
JF
17530
17531 for element in -Wno-parentheses; do
17532 haveit=
c10a2228 17533 for x in $OBJCXXFLAGS; do
66170b30
JF
17534
17535 acl_save_prefix="$prefix"
17536 prefix="$acl_final_prefix"
17537 acl_save_exec_prefix="$exec_prefix"
17538 exec_prefix="$acl_final_exec_prefix"
17539 eval x=\"$x\"
17540 exec_prefix="$acl_save_exec_prefix"
17541 prefix="$acl_save_prefix"
17542
17543 if test "X$x" = "X$element"; then
17544 haveit=yes
17545 break
17546 fi
17547 done
17548 if test -z "$haveit"; then
c10a2228 17549 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
17550 fi
17551 done
17552
17553
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555/* end confdefs.h. */
1504c9b8 17556
1504c9b8 17557_ACEOF
c10a2228 17558if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
17559 cy_good=1
17560else
17561 cy_good=0
17562fi
17563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564
c10a2228 17565 OBJCXXFLAGS=$cy_save
66170b30
JF
17566 if test "x$cy_good" = x1; then :
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17568$as_echo "yes" >&6; }
1504c9b8 17569
66170b30 17570 for element in -Wno-parentheses; do
1504c9b8 17571 haveit=
c10a2228 17572 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17573
17574 acl_save_prefix="$prefix"
17575 prefix="$acl_final_prefix"
17576 acl_save_exec_prefix="$exec_prefix"
17577 exec_prefix="$acl_final_exec_prefix"
17578 eval x=\"$x\"
17579 exec_prefix="$acl_save_exec_prefix"
17580 prefix="$acl_save_prefix"
17581
17582 if test "X$x" = "X$element"; then
17583 haveit=yes
17584 break
17585 fi
17586 done
17587 if test -z "$haveit"; then
c10a2228 17588 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17589 fi
17590 done
17591
17592
c10a2228
JF
17593else
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595$as_echo "no" >&6; }
17596fi
17597
17598 ac_ext=cpp
17599ac_cpp='$CXXCPP $CPPFLAGS'
17600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17603
17604
17605
17606
17607
17608 ac_ext=c
17609ac_cpp='$CPP $CPPFLAGS'
17610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612ac_compiler_gnu=$ac_cv_c_compiler_gnu
17613
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
17615$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
17616
17617 cy_save=$CFLAGS
17618
17619 for element in -Wno-unneeded-internal-declaration; do
66170b30 17620 haveit=
c10a2228 17621 for x in $CFLAGS; do
66170b30
JF
17622
17623 acl_save_prefix="$prefix"
17624 prefix="$acl_final_prefix"
17625 acl_save_exec_prefix="$exec_prefix"
17626 exec_prefix="$acl_final_exec_prefix"
17627 eval x=\"$x\"
17628 exec_prefix="$acl_save_exec_prefix"
17629 prefix="$acl_save_prefix"
17630
17631 if test "X$x" = "X$element"; then
17632 haveit=yes
17633 break
17634 fi
17635 done
17636 if test -z "$haveit"; then
c10a2228 17637 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17638 fi
17639 done
17640
17641
c10a2228
JF
17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643/* end confdefs.h. */
17644
17645_ACEOF
17646if ac_fn_c_try_compile "$LINENO"; then :
17647 cy_good=1
17648else
17649 cy_good=0
17650fi
17651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652
17653 CFLAGS=$cy_save
17654 if test "x$cy_good" = x1; then :
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17656$as_echo "yes" >&6; }
17657
17658 for element in -Wno-unneeded-internal-declaration; do
66170b30 17659 haveit=
c10a2228 17660 for x in $CFLAGS; do
66170b30
JF
17661
17662 acl_save_prefix="$prefix"
17663 prefix="$acl_final_prefix"
17664 acl_save_exec_prefix="$exec_prefix"
17665 exec_prefix="$acl_final_exec_prefix"
17666 eval x=\"$x\"
17667 exec_prefix="$acl_save_exec_prefix"
17668 prefix="$acl_save_prefix"
17669
17670 if test "X$x" = "X$element"; then
17671 haveit=yes
17672 break
17673 fi
17674 done
17675 if test -z "$haveit"; then
c10a2228 17676 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
17677 fi
17678 done
17679
17680
66170b30
JF
17681else
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17683$as_echo "no" >&6; }
17684fi
17685
c10a2228
JF
17686 ac_ext=cpp
17687ac_cpp='$CXXCPP $CPPFLAGS'
17688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17691
66170b30
JF
17692
17693
c10a2228
JF
17694 ac_ext=cpp
17695ac_cpp='$CXXCPP $CPPFLAGS'
17696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17699
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
17701$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
66170b30
JF
17702
17703 cy_save=$CXXFLAGS
17704
17705 for element in -Wno-unneeded-internal-declaration; do
17706 haveit=
17707 for x in $CXXFLAGS; do
17708
17709 acl_save_prefix="$prefix"
17710 prefix="$acl_final_prefix"
17711 acl_save_exec_prefix="$exec_prefix"
17712 exec_prefix="$acl_final_exec_prefix"
17713 eval x=\"$x\"
17714 exec_prefix="$acl_save_exec_prefix"
17715 prefix="$acl_save_prefix"
17716
17717 if test "X$x" = "X$element"; then
17718 haveit=yes
17719 break
17720 fi
17721 done
17722 if test -z "$haveit"; then
17723 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17724 fi
17725 done
17726
17727
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729/* end confdefs.h. */
17730
17731_ACEOF
17732if ac_fn_cxx_try_compile "$LINENO"; then :
17733 cy_good=1
17734else
17735 cy_good=0
17736fi
17737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738
17739 CXXFLAGS=$cy_save
17740 if test "x$cy_good" = x1; then :
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17742$as_echo "yes" >&6; }
17743
66170b30 17744 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 17745 haveit=
c10a2228 17746 for x in $CXXFLAGS; do
1504c9b8
DWT
17747
17748 acl_save_prefix="$prefix"
17749 prefix="$acl_final_prefix"
17750 acl_save_exec_prefix="$exec_prefix"
17751 exec_prefix="$acl_final_exec_prefix"
17752 eval x=\"$x\"
17753 exec_prefix="$acl_save_exec_prefix"
17754 prefix="$acl_save_prefix"
17755
17756 if test "X$x" = "X$element"; then
17757 haveit=yes
17758 break
17759 fi
17760 done
17761 if test -z "$haveit"; then
c10a2228 17762 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
17763 fi
17764 done
17765
17766
c10a2228
JF
17767else
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17769$as_echo "no" >&6; }
17770fi
17771
17772 ac_ext=cpp
17773ac_cpp='$CXXCPP $CPPFLAGS'
17774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17777
17778
17779
17780 ac_ext=mm
17781ac_cpp='$OBJCXXCPP $CPPFLAGS'
17782ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17783ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17784ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17785
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
17787$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
17788
17789 cy_save=$OBJCXXFLAGS
17790
66170b30 17791 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 17792 haveit=
c10a2228 17793 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17794
17795 acl_save_prefix="$prefix"
17796 prefix="$acl_final_prefix"
17797 acl_save_exec_prefix="$exec_prefix"
17798 exec_prefix="$acl_final_exec_prefix"
17799 eval x=\"$x\"
17800 exec_prefix="$acl_save_exec_prefix"
17801 prefix="$acl_save_prefix"
17802
17803 if test "X$x" = "X$element"; then
17804 haveit=yes
17805 break
17806 fi
17807 done
17808 if test -z "$haveit"; then
c10a2228 17809 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17810 fi
17811 done
17812
17813
c10a2228
JF
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815/* end confdefs.h. */
17816
17817_ACEOF
17818if ac_fn_objcxx_try_compile "$LINENO"; then :
17819 cy_good=1
17820else
17821 cy_good=0
17822fi
17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824
17825 OBJCXXFLAGS=$cy_save
17826 if test "x$cy_good" = x1; then :
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17828$as_echo "yes" >&6; }
17829
66170b30 17830 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 17831 haveit=
c10a2228 17832 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
17833
17834 acl_save_prefix="$prefix"
17835 prefix="$acl_final_prefix"
17836 acl_save_exec_prefix="$exec_prefix"
17837 exec_prefix="$acl_final_exec_prefix"
17838 eval x=\"$x\"
17839 exec_prefix="$acl_save_exec_prefix"
17840 prefix="$acl_save_prefix"
17841
17842 if test "X$x" = "X$element"; then
17843 haveit=yes
17844 break
17845 fi
17846 done
17847 if test -z "$haveit"; then
c10a2228 17848 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
17849 fi
17850 done
17851
17852
66170b30
JF
17853else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855$as_echo "no" >&6; }
1504c9b8 17856fi
1504c9b8 17857
c10a2228
JF
17858 ac_ext=cpp
17859ac_cpp='$CXXCPP $CPPFLAGS'
17860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17863
17864
1504c9b8 17865
1504c9b8 17866
66170b30
JF
17867for cy_arch in ppc ppc64 i386 x86_64 armv6; do
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
17869$as_echo_n "checking for -arch $cy_arch... " >&6; }
1504c9b8 17870
66170b30 17871 cy_save=$CXXFLAGS
1504c9b8
DWT
17872
17873 for element in "-arch $cy_arch"; do
17874 haveit=
17875 for x in $CXXFLAGS; do
17876
17877 acl_save_prefix="$prefix"
17878 prefix="$acl_final_prefix"
17879 acl_save_exec_prefix="$exec_prefix"
17880 exec_prefix="$acl_final_exec_prefix"
17881 eval x=\"$x\"
17882 exec_prefix="$acl_save_exec_prefix"
17883 prefix="$acl_save_prefix"
17884
17885 if test "X$x" = "X$element"; then
17886 haveit=yes
17887 break
17888 fi
17889 done
17890 if test -z "$haveit"; then
17891 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17892 fi
17893 done
17894
66170b30
JF
17895
17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
17897/* end confdefs.h. */
17898
17899int
17900main ()
17901{
17902
17903 ;
17904 return 0;
a243b558
JF
17905}
17906_ACEOF
17907if ac_fn_cxx_try_link "$LINENO"; then :
17908 cy_good=1
17909else
17910 cy_good=0
17911fi
17912rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
1504c9b8 17914
a243b558
JF
17915 CXXFLAGS=$cy_save
17916 if test "x$cy_good" = x1; then :
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17918$as_echo "yes" >&6; }
66170b30 17919
1504c9b8
DWT
17920 for element in "-arch $cy_arch"; do
17921 haveit=
a243b558 17922 for x in $CY_ARCH; do
1504c9b8
DWT
17923
17924 acl_save_prefix="$prefix"
17925 prefix="$acl_final_prefix"
17926 acl_save_exec_prefix="$exec_prefix"
17927 exec_prefix="$acl_final_exec_prefix"
17928 eval x=\"$x\"
17929 exec_prefix="$acl_save_exec_prefix"
17930 prefix="$acl_save_prefix"
17931
17932 if test "X$x" = "X$element"; then
17933 haveit=yes
17934 break
17935 fi
17936 done
17937 if test -z "$haveit"; then
a243b558 17938 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
1504c9b8
DWT
17939 fi
17940 done
17941
17942
17943else
66170b30
JF
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945$as_echo "no" >&6; }
1504c9b8
DWT
17946fi
17947
66170b30 17948done
1504c9b8 17949
a243b558
JF
17950
17951
296ee9a6
JF
17952
17953
9c60689e 17954
632b71ea
DWT
17955
17956
5053a6d1
DWT
17957# Check whether --enable-javascript was given.
17958if test "${enable_javascript+set}" = set; then :
17959 enableval=$enable_javascript;
66170b30 17960 case $enableval in #(
5053a6d1 17961 yes) :
9c60689e
DWT
17962
17963
9c60689e 17964
66170b30 17965
7eda51e0
JF
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17967$as_echo_n "checking for framework JavaScriptCore... " >&6; }
17968if ${ac_cv_framework_JavaScriptCore+:} false; then :
17969 $as_echo_n "(cached) " >&6
9c60689e 17970else
7eda51e0
JF
17971
17972 ac_check_framework_save_LIBS=$LIBS
17973 LIBS="-framework JavaScriptCore $LIBS"
17974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17975/* end confdefs.h. */
17976
17977 #include <JavaScriptCore/JSBase.h>
17978
17979int
17980main ()
17981{
17982
17983 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17984
17985 ;
17986 return 0;
17987}
17988_ACEOF
17989if ac_fn_cxx_try_link "$LINENO"; then :
17990
17991 ac_cv_framework_JavaScriptCore=yes
17992
9c60689e 17993else
7eda51e0 17994 ac_cv_framework_JavaScriptCore=no
9c60689e 17995fi
7eda51e0
JF
17996rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17998 LIBS=$ac_check_framework_save_LIBS
17999
9c60689e 18000fi
7eda51e0
JF
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18002$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18003 if test $ac_cv_framework_JavaScriptCore = yes; then :
18004
18005
18006 for element in "-framework JavaScriptCore"; do
18007 haveit=
18008 for x in $LIBS; do
9c60689e 18009
7eda51e0
JF
18010 acl_save_prefix="$prefix"
18011 prefix="$acl_final_prefix"
18012 acl_save_exec_prefix="$exec_prefix"
18013 exec_prefix="$acl_final_exec_prefix"
18014 eval x=\"$x\"
18015 exec_prefix="$acl_save_exec_prefix"
18016 prefix="$acl_save_prefix"
9c60689e 18017
7eda51e0
JF
18018 if test "X$x" = "X$element"; then
18019 haveit=yes
18020 break
18021 fi
18022 done
18023 if test -z "$haveit"; then
18024 LIBS="${LIBS}${LIBS:+ }$element"
18025 fi
18026 done
9c60689e 18027
9c60689e 18028
7eda51e0 18029 CY_EXECUTE=1
632b71ea 18030
5053a6d1
DWT
18031
18032
7eda51e0
JF
18033else
18034
18035 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18036
5053a6d1
DWT
18037pkg_failed=no
18038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18039$as_echo_n "checking for WEBKIT... " >&6; }
632b71ea 18040
12833ad8
JF
18041if test -n "$WEBKIT_CFLAGS"; then
18042 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18043 elif test -n "$PKG_CONFIG"; then
18044 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18046 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
5053a6d1
DWT
18047 ac_status=$?
18048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18049 test $ac_status = 0; }; then
7eda51e0 18050 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
5053a6d1
DWT
18051else
18052 pkg_failed=yes
9c60689e 18053fi
12833ad8
JF
18054 else
18055 pkg_failed=untried
5053a6d1 18056fi
12833ad8
JF
18057if test -n "$WEBKIT_LIBS"; then
18058 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18059 elif test -n "$PKG_CONFIG"; then
18060 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18062 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
5053a6d1
DWT
18063 ac_status=$?
18064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18065 test $ac_status = 0; }; then
7eda51e0 18066 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
5053a6d1
DWT
18067else
18068 pkg_failed=yes
18069fi
12833ad8
JF
18070 else
18071 pkg_failed=untried
632b71ea
DWT
18072fi
18073
18074
18075
5053a6d1 18076if test $pkg_failed = yes; then
12833ad8
JF
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18078$as_echo "no" >&6; }
5053a6d1
DWT
18079
18080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18081 _pkg_short_errors_supported=yes
18082else
18083 _pkg_short_errors_supported=no
18084fi
18085 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18086 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
5053a6d1 18087 else
7eda51e0 18088 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
5053a6d1
DWT
18089 fi
18090 # Put the nasty error message in config.log where it belongs
18091 echo "$WEBKIT_PKG_ERRORS" >&5
18092
7eda51e0
JF
18093 :
18094elif test $pkg_failed = untried; then
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18096$as_echo "no" >&6; }
18097 :
18098else
18099 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18100 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18102$as_echo "yes" >&6; }
5053a6d1 18103
7eda51e0 18104 CY_EXECUTE=1
632b71ea
DWT
18105
18106
7eda51e0 18107 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18108 haveit=
d70419f1 18109 for x in $CPPFLAGS; do
632b71ea
DWT
18110
18111 acl_save_prefix="$prefix"
18112 prefix="$acl_final_prefix"
18113 acl_save_exec_prefix="$exec_prefix"
18114 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18115 eval x=\"$x\"
632b71ea
DWT
18116 exec_prefix="$acl_save_exec_prefix"
18117 prefix="$acl_save_prefix"
18118
5053a6d1
DWT
18119 if test "X$x" = "X$element"; then
18120 haveit=yes
18121 break
18122 fi
18123 done
18124 if test -z "$haveit"; then
d70419f1 18125 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18126 fi
18127 done
18128
66170b30 18129
7eda51e0
JF
18130 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18131 haveit=
18132 for x in $LIBS; do
18133
18134 acl_save_prefix="$prefix"
18135 prefix="$acl_final_prefix"
18136 acl_save_exec_prefix="$exec_prefix"
18137 exec_prefix="$acl_final_exec_prefix"
18138 eval x=\"$x\"
18139 exec_prefix="$acl_save_exec_prefix"
18140 prefix="$acl_save_prefix"
18141
18142 if test "X$x" = "X$element"; then
18143 haveit=yes
18144 break
18145 fi
18146 done
18147 if test -z "$haveit"; then
18148 LIBS="${LIBS}${LIBS:+ }$element"
18149 fi
18150 done
66170b30
JF
18151
18152
7eda51e0
JF
18153fi; if test "x$CY_EXECUTE" = x1; then break; fi
18154 done
632b71ea 18155
5053a6d1 18156fi
7eda51e0
JF
18157 ;; #(
18158 no) :
18159
18160 CY_EXECUTE=0
18161 ;; #(
18162 JavaScriptCore) :
5053a6d1 18163
5053a6d1
DWT
18164
18165
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18167$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18168if ${ac_cv_framework_JavaScriptCore+:} false; then :
5053a6d1
DWT
18169 $as_echo_n "(cached) " >&6
18170else
18171
18172 ac_check_framework_save_LIBS=$LIBS
18173 LIBS="-framework JavaScriptCore $LIBS"
18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175/* end confdefs.h. */
18176
7eda51e0 18177 #include <JavaScriptCore/JSBase.h>
5053a6d1
DWT
18178
18179int
18180main ()
18181{
66170b30 18182
7eda51e0 18183 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18184
5053a6d1
DWT
18185 ;
18186 return 0;
18187}
18188_ACEOF
18189if ac_fn_cxx_try_link "$LINENO"; then :
18190
18191 ac_cv_framework_JavaScriptCore=yes
18192
18193else
18194 ac_cv_framework_JavaScriptCore=no
18195fi
18196rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18198 LIBS=$ac_check_framework_save_LIBS
18199
18200fi
18201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18202$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18203 if test $ac_cv_framework_JavaScriptCore = yes; then :
18204
18205
7eda51e0 18206 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18207 haveit=
18208 for x in $LIBS; do
632b71ea
DWT
18209
18210 acl_save_prefix="$prefix"
18211 prefix="$acl_final_prefix"
18212 acl_save_exec_prefix="$exec_prefix"
18213 exec_prefix="$acl_final_exec_prefix"
5053a6d1
DWT
18214 eval x=\"$x\"
18215 exec_prefix="$acl_save_exec_prefix"
18216 prefix="$acl_save_prefix"
632b71ea 18217
5053a6d1
DWT
18218 if test "X$x" = "X$element"; then
18219 haveit=yes
18220 break
18221 fi
18222 done
18223 if test -z "$haveit"; then
18224 LIBS="${LIBS}${LIBS:+ }$element"
18225 fi
18226 done
18227
66170b30 18228
7eda51e0 18229 CY_EXECUTE=1
66170b30 18230
5053a6d1 18231
5053a6d1
DWT
18232
18233else
5053a6d1 18234
7eda51e0 18235 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
66170b30 18236
7eda51e0
JF
18237pkg_failed=no
18238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18239$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 18240
7eda51e0
JF
18241if test -n "$WEBKIT_CFLAGS"; then
18242 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18243 elif test -n "$PKG_CONFIG"; then
18244 if test -n "$PKG_CONFIG" && \
18245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18246 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18247 ac_status=$?
18248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18249 test $ac_status = 0; }; then
18250 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18251else
18252 pkg_failed=yes
18253fi
18254 else
18255 pkg_failed=untried
18256fi
18257if test -n "$WEBKIT_LIBS"; then
18258 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18259 elif test -n "$PKG_CONFIG"; then
18260 if test -n "$PKG_CONFIG" && \
18261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18262 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18263 ac_status=$?
18264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18265 test $ac_status = 0; }; then
18266 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18267else
18268 pkg_failed=yes
18269fi
18270 else
18271 pkg_failed=untried
18272fi
632b71ea 18273
7eda51e0
JF
18274
18275
18276if test $pkg_failed = yes; then
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278$as_echo "no" >&6; }
18279
18280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18281 _pkg_short_errors_supported=yes
18282else
18283 _pkg_short_errors_supported=no
18284fi
18285 if test $_pkg_short_errors_supported = yes; then
18286 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18287 else
18288 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18289 fi
18290 # Put the nasty error message in config.log where it belongs
18291 echo "$WEBKIT_PKG_ERRORS" >&5
18292
18293 :
18294elif test $pkg_failed = untried; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296$as_echo "no" >&6; }
18297 :
18298else
18299 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18300 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18302$as_echo "yes" >&6; }
18303
18304 CY_EXECUTE=1
18305
18306
7eda51e0
JF
18307 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18308 haveit=
d70419f1 18309 for x in $CPPFLAGS; do
5053a6d1 18310
7eda51e0
JF
18311 acl_save_prefix="$prefix"
18312 prefix="$acl_final_prefix"
18313 acl_save_exec_prefix="$exec_prefix"
18314 exec_prefix="$acl_final_exec_prefix"
18315 eval x=\"$x\"
18316 exec_prefix="$acl_save_exec_prefix"
18317 prefix="$acl_save_prefix"
5053a6d1 18318
7eda51e0
JF
18319 if test "X$x" = "X$element"; then
18320 haveit=yes
18321 break
18322 fi
18323 done
18324 if test -z "$haveit"; then
d70419f1 18325 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
18326 fi
18327 done
5053a6d1 18328
5053a6d1 18329
7eda51e0 18330 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 18331 haveit=
5053a6d1 18332 for x in $LIBS; do
9c60689e 18333
632b71ea
DWT
18334 acl_save_prefix="$prefix"
18335 prefix="$acl_final_prefix"
18336 acl_save_exec_prefix="$exec_prefix"
18337 exec_prefix="$acl_final_exec_prefix"
18338 eval x=\"$x\"
18339 exec_prefix="$acl_save_exec_prefix"
18340 prefix="$acl_save_prefix"
18341
18342 if test "X$x" = "X$element"; then
18343 haveit=yes
18344 break
18345 fi
18346 done
18347 if test -z "$haveit"; then
5053a6d1 18348 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
18349 fi
18350 done
b128dfee 18351
66170b30 18352
7eda51e0
JF
18353fi; if test "x$CY_EXECUTE" = x1; then break; fi
18354 done
5053a6d1
DWT
18355
18356fi
7eda51e0
JF
18357 ;; #(
18358 *) :
18359 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18360esac
18361
18362else
c823f118 18363
5053a6d1
DWT
18364
18365
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18367$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 18368if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
18369 $as_echo_n "(cached) " >&6
18370else
18371
5053a6d1
DWT
18372 ac_check_framework_save_LIBS=$LIBS
18373 LIBS="-framework JavaScriptCore $LIBS"
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 18375/* end confdefs.h. */
5053a6d1 18376
7eda51e0 18377 #include <JavaScriptCore/JSBase.h>
5053a6d1 18378
632b71ea
DWT
18379int
18380main ()
18381{
66170b30 18382
7eda51e0 18383 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 18384
632b71ea
DWT
18385 ;
18386 return 0;
18387}
18388_ACEOF
5053a6d1
DWT
18389if ac_fn_cxx_try_link "$LINENO"; then :
18390
18391 ac_cv_framework_JavaScriptCore=yes
18392
18393else
18394 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
18395fi
18396rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
5053a6d1 18398 LIBS=$ac_check_framework_save_LIBS
b128dfee 18399
c823f118 18400fi
5053a6d1
DWT
18401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18402$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18403 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
18404
18405
7eda51e0 18406 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
18407 haveit=
18408 for x in $LIBS; do
18409
18410 acl_save_prefix="$prefix"
18411 prefix="$acl_final_prefix"
18412 acl_save_exec_prefix="$exec_prefix"
18413 exec_prefix="$acl_final_exec_prefix"
18414 eval x=\"$x\"
18415 exec_prefix="$acl_save_exec_prefix"
18416 prefix="$acl_save_prefix"
18417
18418 if test "X$x" = "X$element"; then
18419 haveit=yes
18420 break
18421 fi
18422 done
18423 if test -z "$haveit"; then
18424 LIBS="${LIBS}${LIBS:+ }$element"
18425 fi
18426 done
c823f118 18427
66170b30 18428
7eda51e0
JF
18429 CY_EXECUTE=1
18430
18431
18432
18433else
18434
18435 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18436
18437pkg_failed=no
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18439$as_echo_n "checking for WEBKIT... " >&6; }
18440
18441if test -n "$WEBKIT_CFLAGS"; then
18442 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18443 elif test -n "$PKG_CONFIG"; then
18444 if test -n "$PKG_CONFIG" && \
18445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18446 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18447 ac_status=$?
18448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18449 test $ac_status = 0; }; then
18450 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18451else
18452 pkg_failed=yes
18453fi
18454 else
18455 pkg_failed=untried
18456fi
18457if test -n "$WEBKIT_LIBS"; then
18458 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18459 elif test -n "$PKG_CONFIG"; then
18460 if test -n "$PKG_CONFIG" && \
18461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18462 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18463 ac_status=$?
18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18465 test $ac_status = 0; }; then
18466 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18467else
18468 pkg_failed=yes
18469fi
18470 else
18471 pkg_failed=untried
18472fi
18473
66170b30
JF
18474
18475
7eda51e0
JF
18476if test $pkg_failed = yes; then
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18478$as_echo "no" >&6; }
b128dfee 18479
7eda51e0
JF
18480if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18481 _pkg_short_errors_supported=yes
18482else
18483 _pkg_short_errors_supported=no
632b71ea 18484fi
7eda51e0
JF
18485 if test $_pkg_short_errors_supported = yes; then
18486 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18487 else
18488 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18489 fi
18490 # Put the nasty error message in config.log where it belongs
18491 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 18492
7eda51e0
JF
18493 :
18494elif test $pkg_failed = untried; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496$as_echo "no" >&6; }
18497 :
5053a6d1
DWT
18498else
18499 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18500 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18502$as_echo "yes" >&6; }
c823f118 18503
7eda51e0
JF
18504 CY_EXECUTE=1
18505
66170b30 18506
7eda51e0 18507 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 18508 haveit=
d70419f1 18509 for x in $CPPFLAGS; do
c823f118 18510
5053a6d1
DWT
18511 acl_save_prefix="$prefix"
18512 prefix="$acl_final_prefix"
18513 acl_save_exec_prefix="$exec_prefix"
18514 exec_prefix="$acl_final_exec_prefix"
18515 eval x=\"$x\"
18516 exec_prefix="$acl_save_exec_prefix"
18517 prefix="$acl_save_prefix"
c823f118 18518
5053a6d1
DWT
18519 if test "X$x" = "X$element"; then
18520 haveit=yes
18521 break
18522 fi
18523 done
18524 if test -z "$haveit"; then
d70419f1 18525 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
18526 fi
18527 done
c823f118 18528
b66977f1 18529
7eda51e0 18530 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
18531 haveit=
18532 for x in $LIBS; do
18533
18534 acl_save_prefix="$prefix"
18535 prefix="$acl_final_prefix"
18536 acl_save_exec_prefix="$exec_prefix"
18537 exec_prefix="$acl_final_exec_prefix"
18538 eval x=\"$x\"
18539 exec_prefix="$acl_save_exec_prefix"
18540 prefix="$acl_save_prefix"
18541
18542 if test "X$x" = "X$element"; then
18543 haveit=yes
18544 break
18545 fi
18546 done
18547 if test -z "$haveit"; then
18548 LIBS="${LIBS}${LIBS:+ }$element"
18549 fi
18550 done
18551
18552
7eda51e0
JF
18553fi; if test "x$CY_EXECUTE" = x1; then break; fi
18554 done
18555
5053a6d1 18556fi
5053a6d1 18557
7eda51e0 18558fi
b66977f1
DWT
18559
18560
18561
7eda51e0
JF
18562 apr_found="no"
18563
18564 if test "$target_os" = "os2-emx"; then
18565 # Scripts don't pass test -x on OS/2
18566 TEST_X="test -f"
18567 else
18568 TEST_X="test -x"
18569 fi
18570
18571 acceptable_majors="1"
18572
18573 apr_temp_acceptable_apr_config=""
18574 for apr_temp_major in $acceptable_majors
18575 do
18576 case $apr_temp_major in
18577 0)
18578 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
18579 ;;
18580 *)
18581 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
18582 ;;
18583 esac
18584 done
18585
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
18587$as_echo_n "checking for APR... " >&6; }
18588
18589# Check whether --with-apr was given.
18590if test "${with_apr+set}" = set; then :
18591 withval=$with_apr;
18592 if test "$withval" = "no" || test "$withval" = "yes"; then
18593 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
18594 fi
18595
18596 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18597 do
18598 for lookdir in "$withval/bin" "$withval"
18599 do
18600 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
18601 apr_config="$lookdir/$apr_temp_apr_config_file"
18602
18603 apr_found="yes"
18604 break 2
18605 fi
18606 done
18607 done
18608
18609 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
18610 apr_config="$withval"
18611 apr_found="yes"
18612 fi
18613
18614 if test "$apr_found" != "yes"; then
18615 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
18616 fi
b66977f1 18617
b66977f1 18618else
7eda51e0
JF
18619
18620 if test -n "1" && test "1" = "1"; then
18621 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
18622 do
18623 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
18624 apr_config="$apr_temp_apr_config_file"
18625
18626 apr_found="yes"
18627 break
18628 else
18629 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
18630 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
18631 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
18632
18633 apr_found="yes"
18634 break 2
18635 fi
18636 done
18637 fi
18638 done
18639 fi
18640 if test "$apr_found" = "no" && test -d ""; then
18641 apr_temp_abs_srcdir="`cd && pwd`"
18642 apr_found="reconfig"
18643 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
18644 case $apr_bundled_major in
18645 "")
18646 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
18647 ;;
18648 0)
18649 apr_temp_apr_config_file="apr-config"
18650 ;;
18651 *)
18652 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
18653 ;;
18654 esac
18655 if test -n ""; then
18656 apr_config="/$apr_temp_apr_config_file"
18657 else
18658 apr_config="/$apr_temp_apr_config_file"
18659 fi
18660 fi
18661
b66977f1 18662fi
7eda51e0
JF
18663
18664
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
18666$as_echo "$apr_found" >&6; }
18667
18668case $apr_found in #(
18669 yes) :
18670
18671
18672 for element in `$apr_config --includes`; do
18673 haveit=
18674 for x in $CPPFLAGS; do
18675
18676 acl_save_prefix="$prefix"
18677 prefix="$acl_final_prefix"
18678 acl_save_exec_prefix="$exec_prefix"
18679 exec_prefix="$acl_final_exec_prefix"
18680 eval x=\"$x\"
18681 exec_prefix="$acl_save_exec_prefix"
18682 prefix="$acl_save_prefix"
18683
18684 if test "X$x" = "X$element"; then
18685 haveit=yes
18686 break
18687 fi
18688 done
18689 if test -z "$haveit"; then
18690 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18691 fi
18692 done
18693
18694
18695 for element in `$apr_config --link-libtool`; do
18696 haveit=
18697 for x in $LTLIBAPR; do
18698
18699 acl_save_prefix="$prefix"
18700 prefix="$acl_final_prefix"
18701 acl_save_exec_prefix="$exec_prefix"
18702 exec_prefix="$acl_final_exec_prefix"
18703 eval x=\"$x\"
18704 exec_prefix="$acl_save_exec_prefix"
18705 prefix="$acl_save_prefix"
18706
18707 if test "X$x" = "X$element"; then
18708 haveit=yes
18709 break
18710 fi
18711 done
18712 if test -z "$haveit"; then
18713 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
18714 fi
18715 done
18716
18717
18718 ;; #(
18719 *) :
18720 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
18721esac
18722
18723
18724
18725 if test "x$CY_EXECUTE" = x1; then
18726 CY_EXECUTE_TRUE=
18727 CY_EXECUTE_FALSE='#'
b66977f1 18728else
7eda51e0
JF
18729 CY_EXECUTE_TRUE='#'
18730 CY_EXECUTE_FALSE=
b66977f1
DWT
18731fi
18732
18733
18734
7eda51e0
JF
18735case $CY_EXECUTE in #(
18736 1) :
18737
18738 for ac_header in ffi.h ffi/ffi.h
18739do :
18740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18741ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18743 cat >>confdefs.h <<_ACEOF
18744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18745_ACEOF
18746 break
b66977f1 18747fi
7eda51e0
JF
18748
18749done
18750
296ee9a6
JF
18751
18752
18753 cy_save=$LIBS
18754 LIBS=
7eda51e0 18755 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 18756
b66977f1 18757
296ee9a6
JF
18758 LIBFFI_CFLAGS
18759 C compiler flags for LIBFFI, overriding pkg-config
18760 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
18761
18762pkg_failed=no
7eda51e0
JF
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18764$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 18765
7eda51e0
JF
18766if test -n "$LIBFFI_CFLAGS"; then
18767 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
18768 elif test -n "$PKG_CONFIG"; then
18769 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18771 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18772 ac_status=$?
18773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18774 test $ac_status = 0; }; then
7eda51e0 18775 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
18776else
18777 pkg_failed=yes
18778fi
12833ad8
JF
18779 else
18780 pkg_failed=untried
b66977f1 18781fi
7eda51e0
JF
18782if test -n "$LIBFFI_LIBS"; then
18783 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
18784 elif test -n "$PKG_CONFIG"; then
18785 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18787 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18788 ac_status=$?
18789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790 test $ac_status = 0; }; then
7eda51e0 18791 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
18792else
18793 pkg_failed=yes
18794fi
12833ad8
JF
18795 else
18796 pkg_failed=untried
b66977f1
DWT
18797fi
18798
18799
18800
18801if test $pkg_failed = yes; then
12833ad8
JF
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18803$as_echo "no" >&6; }
b66977f1
DWT
18804
18805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18806 _pkg_short_errors_supported=yes
18807else
18808 _pkg_short_errors_supported=no
18809fi
18810 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18811 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 18812 else
7eda51e0 18813 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
18814 fi
18815 # Put the nasty error message in config.log where it belongs
7eda51e0 18816 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 18817
7eda51e0
JF
18818 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18819elif test $pkg_failed = untried; then
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821$as_echo "no" >&6; }
18822 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18823else
18824 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
18825 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18827$as_echo "yes" >&6; }
b66977f1
DWT
18828
18829
7eda51e0 18830 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 18831 haveit=
d70419f1 18832 for x in $CPPFLAGS; do
b66977f1
DWT
18833
18834 acl_save_prefix="$prefix"
18835 prefix="$acl_final_prefix"
18836 acl_save_exec_prefix="$exec_prefix"
18837 exec_prefix="$acl_final_exec_prefix"
18838 eval x=\"$x\"
18839 exec_prefix="$acl_save_exec_prefix"
18840 prefix="$acl_save_prefix"
18841
18842 if test "X$x" = "X$element"; then
18843 haveit=yes
18844 break
18845 fi
18846 done
18847 if test -z "$haveit"; then
d70419f1 18848 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
18849 fi
18850 done
18851
18852
7eda51e0 18853 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
18854 haveit=
18855 for x in $LIBS; do
18856
18857 acl_save_prefix="$prefix"
18858 prefix="$acl_final_prefix"
18859 acl_save_exec_prefix="$exec_prefix"
18860 exec_prefix="$acl_final_exec_prefix"
18861 eval x=\"$x\"
18862 exec_prefix="$acl_save_exec_prefix"
18863 prefix="$acl_save_prefix"
18864
18865 if test "X$x" = "X$element"; then
18866 haveit=yes
18867 break
18868 fi
18869 done
18870 if test -z "$haveit"; then
18871 LIBS="${LIBS}${LIBS:+ }$element"
18872 fi
18873 done
18874
18875
18876fi
18877
7eda51e0
JF
18878else
18879
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
18881$as_echo_n "checking for library containing ffi_call... " >&6; }
18882if ${ac_cv_search_ffi_call+:} false; then :
18883 $as_echo_n "(cached) " >&6
18884else
18885 ac_func_search_save_LIBS=$LIBS
18886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h. */
18888
18889/* Override any GCC internal prototype to avoid an error.
18890 Use char because int might match the return type of a GCC
18891 builtin and then its argument prototype would still apply. */
18892#ifdef __cplusplus
18893extern "C"
18894#endif
18895char ffi_call ();
18896int
18897main ()
18898{
18899return ffi_call ();
18900 ;
18901 return 0;
18902}
18903_ACEOF
18904for ac_lib in '' ffi; do
18905 if test -z "$ac_lib"; then
18906 ac_res="none required"
18907 else
18908 ac_res=-l$ac_lib
18909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18910 fi
18911 if ac_fn_cxx_try_link "$LINENO"; then :
18912 ac_cv_search_ffi_call=$ac_res
18913fi
18914rm -f core conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext
18916 if ${ac_cv_search_ffi_call+:} false; then :
18917 break
18918fi
18919done
18920if ${ac_cv_search_ffi_call+:} false; then :
18921
18922else
18923 ac_cv_search_ffi_call=no
18924fi
18925rm conftest.$ac_ext
18926LIBS=$ac_func_search_save_LIBS
18927fi
18928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
18929$as_echo "$ac_cv_search_ffi_call" >&6; }
18930ac_res=$ac_cv_search_ffi_call
18931if test "$ac_res" != no; then :
18932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18933
18934fi
18935
18936 case $ac_cv_search_ffi_call in #(
18937 no) :
b66977f1
DWT
18938
18939
18940pkg_failed=no
7eda51e0
JF
18941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
18942$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 18943
7eda51e0
JF
18944if test -n "$LIBFFI_CFLAGS"; then
18945 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
18946 elif test -n "$PKG_CONFIG"; then
18947 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18949 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; then
7eda51e0 18953 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
b66977f1
DWT
18954else
18955 pkg_failed=yes
18956fi
12833ad8
JF
18957 else
18958 pkg_failed=untried
b66977f1 18959fi
7eda51e0
JF
18960if test -n "$LIBFFI_LIBS"; then
18961 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
18962 elif test -n "$PKG_CONFIG"; then
18963 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
18964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
18965 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
18966 ac_status=$?
18967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18968 test $ac_status = 0; }; then
7eda51e0 18969 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
b66977f1
DWT
18970else
18971 pkg_failed=yes
18972fi
12833ad8
JF
18973 else
18974 pkg_failed=untried
b66977f1
DWT
18975fi
18976
18977
18978
18979if test $pkg_failed = yes; then
12833ad8
JF
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18981$as_echo "no" >&6; }
b66977f1
DWT
18982
18983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18984 _pkg_short_errors_supported=yes
18985else
18986 _pkg_short_errors_supported=no
18987fi
18988 if test $_pkg_short_errors_supported = yes; then
7eda51e0 18989 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
b66977f1 18990 else
7eda51e0 18991 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
b66977f1
DWT
18992 fi
18993 # Put the nasty error message in config.log where it belongs
7eda51e0 18994 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 18995
7eda51e0
JF
18996 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
18997elif test $pkg_failed = untried; then
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18999$as_echo "no" >&6; }
19000 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 19001else
7eda51e0
JF
19002 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19003 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19005$as_echo "yes" >&6; }
b66977f1 19006
b66977f1 19007
7eda51e0 19008 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 19009 haveit=
d70419f1 19010 for x in $CPPFLAGS; do
7eda51e0
JF
19011
19012 acl_save_prefix="$prefix"
19013 prefix="$acl_final_prefix"
19014 acl_save_exec_prefix="$exec_prefix"
19015 exec_prefix="$acl_final_exec_prefix"
19016 eval x=\"$x\"
19017 exec_prefix="$acl_save_exec_prefix"
19018 prefix="$acl_save_prefix"
19019
19020 if test "X$x" = "X$element"; then
19021 haveit=yes
19022 break
19023 fi
19024 done
19025 if test -z "$haveit"; then
d70419f1 19026 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19027 fi
19028 done
19029
19030
7eda51e0
JF
19031 for element in `$PKG_CONFIG --libs libffi`; do
19032 haveit=
19033 for x in $LIBS; do
19034
19035 acl_save_prefix="$prefix"
19036 prefix="$acl_final_prefix"
19037 acl_save_exec_prefix="$exec_prefix"
19038 exec_prefix="$acl_final_exec_prefix"
19039 eval x=\"$x\"
19040 exec_prefix="$acl_save_exec_prefix"
19041 prefix="$acl_save_prefix"
19042
19043 if test "X$x" = "X$element"; then
19044 haveit=yes
19045 break
19046 fi
19047 done
19048 if test -z "$haveit"; then
19049 LIBS="${LIBS}${LIBS:+ }$element"
19050 fi
19051 done
19052
19053
19054fi ;; #(
19055 *) :
19056 ;;
19057esac
19058
19059fi
296ee9a6
JF
19060 LTLIBFFI=$LIBS
19061 LIBS=$cy_save
19062
19063
7eda51e0
JF
19064
19065 ac_ext=mm
19066ac_cpp='$OBJCXXCPP $CPPFLAGS'
19067ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19070
19071
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19073$as_echo_n "checking if we really have Objective C++... " >&6; }
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075/* end confdefs.h. */
19076
19077_ACEOF
19078if ac_fn_objcxx_try_compile "$LINENO"; then :
19079
19080 CY_OBJECTIVEC=1
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19082$as_echo "yes" >&6; }
19083
19084else
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19086$as_echo "no" >&6; }
7eda51e0
JF
19087fi
19088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 19089
7eda51e0 19090 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 19091
7eda51e0
JF
19092
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19094$as_echo_n "checking for framework CoreFoundation... " >&6; }
19095if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
19096 $as_echo_n "(cached) " >&6
19097else
19098
19099 ac_check_framework_save_LIBS=$LIBS
7eda51e0 19100 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102/* end confdefs.h. */
19103
7eda51e0 19104 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
19105
19106int
19107main ()
19108{
7eda51e0 19109CFAllocatorGetDefault();
b66977f1
DWT
19110 ;
19111 return 0;
19112}
19113_ACEOF
7eda51e0 19114if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19115
7eda51e0 19116 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
19117
19118else
7eda51e0 19119 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
19120fi
19121rm -f core conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_framework_save_LIBS
19124
19125fi
7eda51e0
JF
19126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19127$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19128 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
19129
19130
7eda51e0 19131 for element in "-framework CoreFoundation"; do
b66977f1
DWT
19132 haveit=
19133 for x in $LIBS; do
19134
19135 acl_save_prefix="$prefix"
19136 prefix="$acl_final_prefix"
19137 acl_save_exec_prefix="$exec_prefix"
19138 exec_prefix="$acl_final_exec_prefix"
19139 eval x=\"$x\"
19140 exec_prefix="$acl_save_exec_prefix"
19141 prefix="$acl_save_prefix"
19142
19143 if test "X$x" = "X$element"; then
19144 haveit=yes
19145 break
19146 fi
19147 done
19148 if test -z "$haveit"; then
19149 LIBS="${LIBS}${LIBS:+ }$element"
19150 fi
19151 done
19152
66170b30 19153
66170b30
JF
19154
19155
b66977f1 19156
b66977f1 19157
7eda51e0
JF
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19159$as_echo_n "checking for framework Foundation... " >&6; }
19160if ${ac_cv_framework_Foundation+:} false; then :
19161 $as_echo_n "(cached) " >&6
b66977f1 19162else
b66977f1 19163
7eda51e0
JF
19164 ac_check_framework_save_LIBS=$LIBS
19165 LIBS="-framework Foundation $LIBS"
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167/* end confdefs.h. */
66170b30 19168
7eda51e0 19169 #include <Foundation/NSObject.h>
b66977f1 19170
7eda51e0
JF
19171int
19172main ()
19173{
19174[[NSObject alloc] init];
19175 ;
19176 return 0;
19177}
19178_ACEOF
19179if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19180
7eda51e0 19181 ac_cv_framework_Foundation=yes
b66977f1 19182
7eda51e0
JF
19183else
19184 ac_cv_framework_Foundation=no
19185fi
19186rm -f core conftest.err conftest.$ac_objext \
19187 conftest$ac_exeext conftest.$ac_ext
19188 LIBS=$ac_check_framework_save_LIBS
19189
19190fi
19191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19192$as_echo "$ac_cv_framework_Foundation" >&6; }
19193 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
19194
19195
7eda51e0 19196 for element in "-framework Foundation"; do
b66977f1
DWT
19197 haveit=
19198 for x in $LIBS; do
19199
19200 acl_save_prefix="$prefix"
19201 prefix="$acl_final_prefix"
19202 acl_save_exec_prefix="$exec_prefix"
19203 exec_prefix="$acl_final_exec_prefix"
19204 eval x=\"$x\"
19205 exec_prefix="$acl_save_exec_prefix"
19206 prefix="$acl_save_prefix"
19207
19208 if test "X$x" = "X$element"; then
19209 haveit=yes
19210 break
19211 fi
19212 done
19213 if test -z "$haveit"; then
19214 LIBS="${LIBS}${LIBS:+ }$element"
19215 fi
19216 done
19217
7eda51e0
JF
19218 cat >>confdefs.h <<_ACEOF
19219#define HAVE_FRAMEWORK_FOUNDATION 1
19220_ACEOF
19221
b66977f1
DWT
19222
19223fi
19224
7eda51e0
JF
19225
19226
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19228$as_echo_n "checking for framework WebKit... " >&6; }
19229if ${ac_cv_framework_WebKit+:} false; then :
19230 $as_echo_n "(cached) " >&6
b66977f1 19231else
b66977f1 19232
7eda51e0
JF
19233 ac_check_framework_save_LIBS=$LIBS
19234 LIBS="-framework WebKit $LIBS"
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236/* end confdefs.h. */
66170b30 19237
7eda51e0 19238 #include <WebKit/WebScriptObject.h>
b66977f1 19239
7eda51e0
JF
19240int
19241main ()
19242{
19243[[WebScriptObject alloc] init];
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 19249
7eda51e0 19250 ac_cv_framework_WebKit=yes
b66977f1 19251
7eda51e0
JF
19252else
19253 ac_cv_framework_WebKit=no
19254fi
19255rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257 LIBS=$ac_check_framework_save_LIBS
19258
19259fi
19260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19261$as_echo "$ac_cv_framework_WebKit" >&6; }
19262 if test $ac_cv_framework_WebKit = yes; then :
b66977f1
DWT
19263
19264
7eda51e0 19265 for element in "-framework WebKit"; do
b66977f1
DWT
19266 haveit=
19267 for x in $LIBS; do
19268
19269 acl_save_prefix="$prefix"
19270 prefix="$acl_final_prefix"
19271 acl_save_exec_prefix="$exec_prefix"
19272 exec_prefix="$acl_final_exec_prefix"
19273 eval x=\"$x\"
19274 exec_prefix="$acl_save_exec_prefix"
19275 prefix="$acl_save_prefix"
19276
19277 if test "X$x" = "X$element"; then
19278 haveit=yes
19279 break
19280 fi
19281 done
19282 if test -z "$haveit"; then
19283 LIBS="${LIBS}${LIBS:+ }$element"
19284 fi
19285 done
19286
7eda51e0
JF
19287 cat >>confdefs.h <<_ACEOF
19288#define HAVE_FRAMEWORK_WEBKIT 1
19289_ACEOF
b66977f1 19290
5053a6d1 19291
7eda51e0 19292fi
b66977f1
DWT
19293
19294
7eda51e0 19295else
b66977f1 19296
b66977f1 19297
7eda51e0
JF
19298 for ac_prog in gnustep-config
19299do
19300 # Extract the first word of "$ac_prog", so it can be a program name with args.
19301set dummy $ac_prog; ac_word=$2
19302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19303$as_echo_n "checking for $ac_word... " >&6; }
19304if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19305 $as_echo_n "(cached) " >&6
b66977f1 19306else
7eda51e0
JF
19307 if test -n "$GNUSTEP_CONFIG"; then
19308 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 19309else
7eda51e0
JF
19310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19311for as_dir in $PATH
19312do
19313 IFS=$as_save_IFS
19314 test -z "$as_dir" && as_dir=.
19315 for ac_exec_ext in '' $ac_executable_extensions; do
19316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19317 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19319 break 2
19320 fi
19321done
19322 done
19323IFS=$as_save_IFS
b66977f1 19324
b66977f1 19325fi
b66977f1 19326fi
7eda51e0
JF
19327GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19328if test -n "$GNUSTEP_CONFIG"; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19330$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 19331else
7eda51e0 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 19333$as_echo "no" >&6; }
b66977f1 19334fi
66170b30 19335
66170b30 19336
7eda51e0
JF
19337 test -n "$GNUSTEP_CONFIG" && break
19338done
b66977f1 19339
b66977f1 19340
7eda51e0 19341 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 19342
b66977f1
DWT
19343
19344
7eda51e0 19345 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 19346 haveit=
7eda51e0 19347 for x in $OBJCXXFLAGS; do
b66977f1
DWT
19348
19349 acl_save_prefix="$prefix"
19350 prefix="$acl_final_prefix"
19351 acl_save_exec_prefix="$exec_prefix"
19352 exec_prefix="$acl_final_exec_prefix"
19353 eval x=\"$x\"
19354 exec_prefix="$acl_save_exec_prefix"
19355 prefix="$acl_save_prefix"
19356
19357 if test "X$x" = "X$element"; then
19358 haveit=yes
19359 break
19360 fi
19361 done
19362 if test -z "$haveit"; then
7eda51e0 19363 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
b66977f1
DWT
19364 fi
19365 done
19366
66170b30 19367
7eda51e0 19368 for element in `$GNUSTEP_CONFIG --base-libs`; do
b66977f1
DWT
19369 haveit=
19370 for x in $LIBS; do
19371
19372 acl_save_prefix="$prefix"
19373 prefix="$acl_final_prefix"
19374 acl_save_exec_prefix="$exec_prefix"
19375 exec_prefix="$acl_final_exec_prefix"
19376 eval x=\"$x\"
19377 exec_prefix="$acl_save_exec_prefix"
19378 prefix="$acl_save_prefix"
19379
19380 if test "X$x" = "X$element"; then
19381 haveit=yes
19382 break
19383 fi
19384 done
19385 if test -z "$haveit"; then
19386 LIBS="${LIBS}${LIBS:+ }$element"
19387 fi
19388 done
19389
66170b30 19390
7eda51e0
JF
19391else
19392 CY_OBJECTIVEC=0
66170b30 19393
7eda51e0 19394fi
b66977f1
DWT
19395
19396fi
19397
7eda51e0 19398fi
b66977f1 19399
7eda51e0
JF
19400 ac_ext=cpp
19401ac_cpp='$CXXCPP $CPPFLAGS'
19402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
66170b30 19405
7eda51e0
JF
19406 ;; #(
19407 *) :
19408 ;;
19409esac
b66977f1 19410
7eda51e0
JF
19411 if test "x$CY_OBJECTIVEC" = x1; then
19412 CY_OBJECTIVEC_TRUE=
19413 CY_OBJECTIVEC_FALSE='#'
19414else
19415 CY_OBJECTIVEC_TRUE='#'
19416 CY_OBJECTIVEC_FALSE=
19417fi
b66977f1 19418
b66977f1 19419
b66977f1 19420
7eda51e0
JF
19421 cy_save=$LIBS
19422 LIBS=
b66977f1 19423
7eda51e0
JF
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19425$as_echo_n "checking for a readline compatible library... " >&6; }
19426if ${ax_cv_lib_readline+:} false; then :
19427 $as_echo_n "(cached) " >&6
b66977f1 19428else
b66977f1 19429
7eda51e0
JF
19430 ORIG_LIBS="$LIBS"
19431 for readline_lib in readline edit editline; do
19432 for termcap_lib in "" termcap curses ncurses; do
19433 if test -z "$termcap_lib"; then
19434 TRY_LIB="-l$readline_lib"
b66977f1 19435 else
7eda51e0 19436 TRY_LIB="-l$readline_lib -l$termcap_lib"
b66977f1 19437 fi
7eda51e0
JF
19438 LIBS="$ORIG_LIBS $TRY_LIB"
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b66977f1
DWT
19440/* end confdefs.h. */
19441
7eda51e0
JF
19442/* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19445#ifdef __cplusplus
19446extern "C"
19447#endif
19448char readline ();
b66977f1
DWT
19449int
19450main ()
19451{
7eda51e0 19452return readline ();
b66977f1
DWT
19453 ;
19454 return 0;
19455}
19456_ACEOF
19457if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19458 ax_cv_lib_readline="$TRY_LIB"
b66977f1
DWT
19459fi
19460rm -f core conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
7eda51e0
JF
19462 if test -n "$ax_cv_lib_readline"; then
19463 break
19464 fi
19465 done
19466 if test -n "$ax_cv_lib_readline"; then
b66977f1
DWT
19467 break
19468 fi
19469 done
7eda51e0
JF
19470 if test -z "$ax_cv_lib_readline"; then
19471 ax_cv_lib_readline="no"
b66977f1 19472 fi
7eda51e0 19473 LIBS="$ORIG_LIBS"
b66977f1 19474
7eda51e0
JF
19475fi
19476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19477$as_echo "$ax_cv_lib_readline" >&6; }
66170b30 19478
7eda51e0
JF
19479 if test "$ax_cv_lib_readline" != "no"; then
19480 LIBS="$LIBS $ax_cv_lib_readline"
66170b30 19481
7eda51e0 19482$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
66170b30 19483
7eda51e0
JF
19484 for ac_header in readline.h readline/readline.h
19485do :
19486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19487ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19489 cat >>confdefs.h <<_ACEOF
19490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19491_ACEOF
b66977f1
DWT
19492
19493fi
19494
7eda51e0 19495done
b66977f1 19496
7eda51e0
JF
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19498$as_echo_n "checking whether readline supports history... " >&6; }
19499if ${ax_cv_lib_readline_history+:} false; then :
b66977f1
DWT
19500 $as_echo_n "(cached) " >&6
19501else
19502
7eda51e0
JF
19503 ax_cv_lib_readline_history="no"
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b66977f1
DWT
19505/* end confdefs.h. */
19506
7eda51e0
JF
19507/* Override any GCC internal prototype to avoid an error.
19508 Use char because int might match the return type of a GCC
19509 builtin and then its argument prototype would still apply. */
19510#ifdef __cplusplus
19511extern "C"
19512#endif
19513char add_history ();
b66977f1
DWT
19514int
19515main ()
19516{
7eda51e0 19517return add_history ();
b66977f1
DWT
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19523 ax_cv_lib_readline_history="yes"
b66977f1
DWT
19524fi
19525rm -f core conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
b66977f1
DWT
19527
19528fi
7eda51e0
JF
19529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19530$as_echo "$ax_cv_lib_readline_history" >&6; }
19531 if test "$ax_cv_lib_readline_history" = "yes"; then
b66977f1 19532
7eda51e0 19533$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
b66977f1 19534
7eda51e0
JF
19535 for ac_header in history.h readline/history.h
19536do :
19537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19538ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19540 cat >>confdefs.h <<_ACEOF
19541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19542_ACEOF
b66977f1 19543
7eda51e0 19544fi
b66977f1 19545
7eda51e0 19546done
b66977f1 19547
7eda51e0
JF
19548 fi
19549 fi
66170b30 19550
7eda51e0
JF
19551 LTLIBREADLINE=$LIBS
19552 LIBS=$cy_save
66170b30
JF
19553
19554
7eda51e0
JF
19555case $ax_cv_lib_readline in #(
19556 no) :
19557 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19558 *) :
19559 ;;
19560esac
b66977f1 19561
b66977f1 19562
7eda51e0
JF
19563 cy_save=$LIBS
19564 LIBS=
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
19566$as_echo_n "checking for library containing cur_term... " >&6; }
19567if ${ac_cv_search_cur_term+:} false; then :
19568 $as_echo_n "(cached) " >&6
b66977f1 19569else
7eda51e0
JF
19570 ac_func_search_save_LIBS=$LIBS
19571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572/* end confdefs.h. */
b66977f1 19573
7eda51e0
JF
19574/* Override any GCC internal prototype to avoid an error.
19575 Use char because int might match the return type of a GCC
19576 builtin and then its argument prototype would still apply. */
19577#ifdef __cplusplus
19578extern "C"
19579#endif
19580char cur_term ();
19581int
19582main ()
19583{
19584return cur_term ();
19585 ;
19586 return 0;
19587}
19588_ACEOF
19589for ac_lib in '' termcap; do
19590 if test -z "$ac_lib"; then
19591 ac_res="none required"
19592 else
19593 ac_res=-l$ac_lib
19594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19595 fi
19596 if ac_fn_cxx_try_link "$LINENO"; then :
19597 ac_cv_search_cur_term=$ac_res
19598fi
19599rm -f core conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext
19601 if ${ac_cv_search_cur_term+:} false; then :
19602 break
19603fi
19604done
19605if ${ac_cv_search_cur_term+:} false; then :
b66977f1 19606
7eda51e0
JF
19607else
19608 ac_cv_search_cur_term=no
19609fi
19610rm conftest.$ac_ext
19611LIBS=$ac_func_search_save_LIBS
19612fi
19613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19614$as_echo "$ac_cv_search_cur_term" >&6; }
19615ac_res=$ac_cv_search_cur_term
19616if test "$ac_res" != no; then :
19617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b66977f1
DWT
19618
19619fi
19620
7eda51e0
JF
19621 LTLIBTERMCAP=$LIBS
19622 LIBS=$cy_save
b66977f1 19623
66170b30 19624
b66977f1 19625
7eda51e0
JF
19626ac_ext=c
19627ac_cpp='$CPP $CPPFLAGS'
19628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19630ac_compiler_gnu=$ac_cv_c_compiler_gnu
19631
b66977f1 19632
7eda51e0
JF
19633 if test "X$prefix" = "XNONE"; then
19634 acl_final_prefix="$ac_default_prefix"
19635 else
19636 acl_final_prefix="$prefix"
19637 fi
19638 if test "X$exec_prefix" = "XNONE"; then
19639 acl_final_exec_prefix='${prefix}'
19640 else
19641 acl_final_exec_prefix="$exec_prefix"
19642 fi
b66977f1
DWT
19643 acl_save_prefix="$prefix"
19644 prefix="$acl_final_prefix"
7eda51e0 19645 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
b66977f1
DWT
19646 prefix="$acl_save_prefix"
19647
b66977f1
DWT
19648
19649
7eda51e0
JF
19650# Check whether --with-gnu-ld was given.
19651if test "${with_gnu_ld+set}" = set; then :
19652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19653else
19654 with_gnu_ld=no
19655fi
b66977f1 19656
7eda51e0
JF
19657# Prepare PATH_SEPARATOR.
19658# The user is always right.
19659if test "${PATH_SEPARATOR+set}" != set; then
19660 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
19661 # contains only /bin. Note that ksh looks also at the FPATH variable,
19662 # so we have to set that as well for the test.
19663 PATH_SEPARATOR=:
19664 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19665 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
19666 || PATH_SEPARATOR=';'
19667 }
19668fi
b66977f1 19669
7eda51e0
JF
19670ac_prog=ld
19671if test "$GCC" = yes; then
19672 # Check if gcc -print-prog-name=ld gives a path.
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19674$as_echo_n "checking for ld used by $CC... " >&6; }
19675 case $host in
19676 *-*-mingw*)
19677 # gcc leaves a trailing carriage return which upsets mingw
19678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19679 *)
19680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19681 esac
19682 case $ac_prog in
19683 # Accept absolute paths.
19684 [\\/]* | ?:[\\/]*)
19685 re_direlt='/[^/][^/]*/\.\./'
19686 # Canonicalize the pathname of ld
19687 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
19688 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
19689 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19690 done
19691 test -z "$LD" && LD="$ac_prog"
19692 ;;
19693 "")
19694 # If it fails, then pretend we aren't using GCC.
19695 ac_prog=ld
19696 ;;
19697 *)
19698 # If it is relative, then search for the first ld in PATH.
19699 with_gnu_ld=unknown
19700 ;;
19701 esac
19702elif test "$with_gnu_ld" = yes; then
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19704$as_echo_n "checking for GNU ld... " >&6; }
19705else
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19707$as_echo_n "checking for non-GNU ld... " >&6; }
19708fi
19709if ${acl_cv_path_LD+:} false; then :
19710 $as_echo_n "(cached) " >&6
19711else
19712 if test -z "$LD"; then
19713 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19714 for ac_dir in $PATH; do
19715 IFS="$acl_save_ifs"
19716 test -z "$ac_dir" && ac_dir=.
19717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19718 acl_cv_path_LD="$ac_dir/$ac_prog"
19719 # Check to see if the program is GNU ld. I'd rather use --version,
19720 # but apparently some variants of GNU ld only accept -v.
19721 # Break only if it was the GNU/non-GNU ld that we prefer.
19722 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
19723 *GNU* | *'with BFD'*)
19724 test "$with_gnu_ld" != no && break
19725 ;;
19726 *)
19727 test "$with_gnu_ld" != yes && break
19728 ;;
19729 esac
b66977f1
DWT
19730 fi
19731 done
7eda51e0
JF
19732 IFS="$acl_save_ifs"
19733else
19734 acl_cv_path_LD="$LD" # Let the user override the test with a path.
b66977f1 19735fi
66170b30
JF
19736fi
19737
7eda51e0
JF
19738LD="$acl_cv_path_LD"
19739if test -n "$LD"; then
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19741$as_echo "$LD" >&6; }
19742else
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19744$as_echo "no" >&6; }
19745fi
19746test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19748$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19749if ${acl_cv_prog_gnu_ld+:} false; then :
19750 $as_echo_n "(cached) " >&6
19751else
19752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19753case `$LD -v 2>&1 </dev/null` in
19754*GNU* | *'with BFD'*)
19755 acl_cv_prog_gnu_ld=yes
19756 ;;
19757*)
19758 acl_cv_prog_gnu_ld=no
19759 ;;
19760esac
19761fi
19762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
19763$as_echo "$acl_cv_prog_gnu_ld" >&6; }
19764with_gnu_ld=$acl_cv_prog_gnu_ld
66170b30
JF
19765
19766
66170b30 19767
66170b30 19768
7eda51e0
JF
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
19770$as_echo_n "checking for shared library run path origin... " >&6; }
19771if ${acl_cv_rpath+:} false; then :
19772 $as_echo_n "(cached) " >&6
19773else
66170b30 19774
7eda51e0
JF
19775 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19776 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19777 . ./conftest.sh
19778 rm -f ./conftest.sh
19779 acl_cv_rpath=done
66170b30 19780
7eda51e0
JF
19781fi
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
19783$as_echo "$acl_cv_rpath" >&6; }
19784 wl="$acl_cv_wl"
19785 acl_libext="$acl_cv_libext"
19786 acl_shlibext="$acl_cv_shlibext"
19787 acl_libname_spec="$acl_cv_libname_spec"
19788 acl_library_names_spec="$acl_cv_library_names_spec"
19789 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19790 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19791 acl_hardcode_direct="$acl_cv_hardcode_direct"
19792 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
19793 # Check whether --enable-rpath was given.
19794if test "${enable_rpath+set}" = set; then :
19795 enableval=$enable_rpath; :
19796else
19797 enable_rpath=yes
19798fi
66170b30 19799
66170b30 19800
66170b30 19801
66170b30 19802
7eda51e0
JF
19803 acl_libdirstem=lib
19804 acl_libdirstem2=
19805 case "$host_os" in
19806 solaris*)
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
19808$as_echo_n "checking for 64-bit host... " >&6; }
19809if ${gl_cv_solaris_64bit+:} false; then :
19810 $as_echo_n "(cached) " >&6
19811else
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813/* end confdefs.h. */
66170b30 19814
7eda51e0
JF
19815#ifdef _LP64
19816sixtyfour bits
19817#endif
66170b30 19818
7eda51e0
JF
19819_ACEOF
19820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
19822 gl_cv_solaris_64bit=yes
66170b30 19823else
7eda51e0
JF
19824 gl_cv_solaris_64bit=no
19825fi
19826rm -f conftest*
66170b30 19827
66170b30 19828
7eda51e0
JF
19829fi
19830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
19831$as_echo "$gl_cv_solaris_64bit" >&6; }
19832 if test $gl_cv_solaris_64bit = yes; then
19833 acl_libdirstem=lib/64
19834 case "$host_cpu" in
19835 sparc*) acl_libdirstem2=lib/sparcv9 ;;
19836 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
19837 esac
66170b30 19838 fi
7eda51e0
JF
19839 ;;
19840 *)
19841 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19842 if test -n "$searchpath"; then
19843 acl_save_IFS="${IFS= }"; IFS=":"
19844 for searchdir in $searchpath; do
19845 if test -d "$searchdir"; then
19846 case "$searchdir" in
19847 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19848 */../ | */.. )
19849 # Better ignore directories of this form. They are misleading.
19850 ;;
19851 *) searchdir=`cd "$searchdir" && pwd`
19852 case "$searchdir" in
19853 */lib64 ) acl_libdirstem=lib64 ;;
19854 esac ;;
19855 esac
19856 fi
19857 done
19858 IFS="$acl_save_IFS"
19859 fi
19860 ;;
19861 esac
19862 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5053a6d1 19863
9c60689e 19864
5053a6d1 19865
66170b30 19866
66170b30
JF
19867
19868
7eda51e0
JF
19869
19870
19871
19872
19873
19874
19875 use_additional=yes
66170b30
JF
19876
19877 acl_save_prefix="$prefix"
19878 prefix="$acl_final_prefix"
19879 acl_save_exec_prefix="$exec_prefix"
19880 exec_prefix="$acl_final_exec_prefix"
7eda51e0
JF
19881
19882 eval additional_includedir=\"$includedir\"
19883 eval additional_libdir=\"$libdir\"
19884
66170b30
JF
19885 exec_prefix="$acl_save_exec_prefix"
19886 prefix="$acl_save_prefix"
19887
a243b558 19888
7eda51e0
JF
19889# Check whether --with-libiconv-prefix was given.
19890if test "${with_libiconv_prefix+set}" = set; then :
19891 withval=$with_libiconv_prefix;
19892 if test "X$withval" = "Xno"; then
19893 use_additional=no
19894 else
19895 if test "X$withval" = "X"; then
a243b558
JF
19896
19897 acl_save_prefix="$prefix"
19898 prefix="$acl_final_prefix"
19899 acl_save_exec_prefix="$exec_prefix"
19900 exec_prefix="$acl_final_exec_prefix"
7eda51e0
JF
19901
19902 eval additional_includedir=\"$includedir\"
19903 eval additional_libdir=\"$libdir\"
19904
a243b558
JF
19905 exec_prefix="$acl_save_exec_prefix"
19906 prefix="$acl_save_prefix"
19907
7eda51e0
JF
19908 else
19909 additional_includedir="$withval/include"
19910 additional_libdir="$withval/$acl_libdirstem"
19911 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19912 && ! test -d "$withval/$acl_libdirstem"; then
19913 additional_libdir="$withval/$acl_libdirstem2"
19914 fi
a243b558 19915 fi
a243b558 19916 fi
5053a6d1 19917
e5cca37d
DWT
19918fi
19919
7eda51e0
JF
19920 LIBICONV=
19921 LTLIBICONV=
19922 INCICONV=
19923 LIBICONV_PREFIX=
19924 HAVE_LIBICONV=
19925 rpathdirs=
19926 ltrpathdirs=
19927 names_already_handled=
19928 names_next_round='iconv '
19929 while test -n "$names_next_round"; do
19930 names_this_round="$names_next_round"
19931 names_next_round=
19932 for name in $names_this_round; do
19933 already_handled=
19934 for n in $names_already_handled; do
19935 if test "$n" = "$name"; then
19936 already_handled=yes
19937 break
9c60689e 19938 fi
7eda51e0
JF
19939 done
19940 if test -z "$already_handled"; then
19941 names_already_handled="$names_already_handled $name"
19942 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19943 eval value=\"\$HAVE_LIB$uppername\"
19944 if test -n "$value"; then
19945 if test "$value" = yes; then
19946 eval value=\"\$LIB$uppername\"
19947 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19948 eval value=\"\$LTLIB$uppername\"
19949 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19950 else
19951 :
19952 fi
19953 else
19954 found_dir=
19955 found_la=
19956 found_so=
19957 found_a=
19958 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19959 if test -n "$acl_shlibext"; then
19960 shrext=".$acl_shlibext" # typically: shrext=.so
19961 else
19962 shrext=
19963 fi
19964 if test $use_additional = yes; then
19965 dir="$additional_libdir"
19966 if test -n "$acl_shlibext"; then
19967 if test -f "$dir/$libname$shrext"; then
19968 found_dir="$dir"
19969 found_so="$dir/$libname$shrext"
19970 else
19971 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19972 ver=`(cd "$dir" && \
19973 for f in "$libname$shrext".*; do echo "$f"; done \
19974 | sed -e "s,^$libname$shrext\\\\.,," \
19975 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19976 | sed 1q ) 2>/dev/null`
19977 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19978 found_dir="$dir"
19979 found_so="$dir/$libname$shrext.$ver"
19980 fi
19981 else
19982 eval library_names=\"$acl_library_names_spec\"
19983 for f in $library_names; do
19984 if test -f "$dir/$f"; then
19985 found_dir="$dir"
19986 found_so="$dir/$f"
19987 break
19988 fi
19989 done
19990 fi
19991 fi
19992 fi
19993 if test "X$found_dir" = "X"; then
19994 if test -f "$dir/$libname.$acl_libext"; then
19995 found_dir="$dir"
19996 found_a="$dir/$libname.$acl_libext"
19997 fi
19998 fi
19999 if test "X$found_dir" != "X"; then
20000 if test -f "$dir/$libname.la"; then
20001 found_la="$dir/$libname.la"
20002 fi
20003 fi
20004 fi
20005 if test "X$found_dir" = "X"; then
20006 for x in $LDFLAGS $LTLIBICONV; do
e5cca37d
DWT
20007
20008 acl_save_prefix="$prefix"
20009 prefix="$acl_final_prefix"
20010 acl_save_exec_prefix="$exec_prefix"
20011 exec_prefix="$acl_final_exec_prefix"
20012 eval x=\"$x\"
20013 exec_prefix="$acl_save_exec_prefix"
20014 prefix="$acl_save_prefix"
20015
7eda51e0
JF
20016 case "$x" in
20017 -L*)
20018 dir=`echo "X$x" | sed -e 's/^X-L//'`
20019 if test -n "$acl_shlibext"; then
20020 if test -f "$dir/$libname$shrext"; then
20021 found_dir="$dir"
20022 found_so="$dir/$libname$shrext"
20023 else
20024 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20025 ver=`(cd "$dir" && \
20026 for f in "$libname$shrext".*; do echo "$f"; done \
20027 | sed -e "s,^$libname$shrext\\\\.,," \
20028 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20029 | sed 1q ) 2>/dev/null`
20030 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20031 found_dir="$dir"
20032 found_so="$dir/$libname$shrext.$ver"
20033 fi
20034 else
20035 eval library_names=\"$acl_library_names_spec\"
20036 for f in $library_names; do
20037 if test -f "$dir/$f"; then
20038 found_dir="$dir"
20039 found_so="$dir/$f"
20040 break
20041 fi
20042 done
20043 fi
20044 fi
20045 fi
20046 if test "X$found_dir" = "X"; then
20047 if test -f "$dir/$libname.$acl_libext"; then
20048 found_dir="$dir"
20049 found_a="$dir/$libname.$acl_libext"
20050 fi
20051 fi
20052 if test "X$found_dir" != "X"; then
20053 if test -f "$dir/$libname.la"; then
20054 found_la="$dir/$libname.la"
20055 fi
20056 fi
20057 ;;
20058 esac
20059 if test "X$found_dir" != "X"; then
20060 break
20061 fi
20062 done
20063 fi
20064 if test "X$found_dir" != "X"; then
20065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20066 if test "X$found_so" != "X"; then
20067 if test "$enable_rpath" = no \
20068 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20069 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20070 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20071 else
20072 haveit=
20073 for x in $ltrpathdirs; do
20074 if test "X$x" = "X$found_dir"; then
20075 haveit=yes
20076 break
20077 fi
20078 done
20079 if test -z "$haveit"; then
20080 ltrpathdirs="$ltrpathdirs $found_dir"
20081 fi
20082 if test "$acl_hardcode_direct" = yes; then
20083 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20084 else
20085 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20086 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20087 haveit=
20088 for x in $rpathdirs; do
20089 if test "X$x" = "X$found_dir"; then
20090 haveit=yes
20091 break
20092 fi
20093 done
20094 if test -z "$haveit"; then
20095 rpathdirs="$rpathdirs $found_dir"
20096 fi
20097 else
20098 haveit=
20099 for x in $LDFLAGS $LIBICONV; do
e5cca37d
DWT
20100
20101 acl_save_prefix="$prefix"
20102 prefix="$acl_final_prefix"
20103 acl_save_exec_prefix="$exec_prefix"
20104 exec_prefix="$acl_final_exec_prefix"
20105 eval x=\"$x\"
20106 exec_prefix="$acl_save_exec_prefix"
20107 prefix="$acl_save_prefix"
20108
7eda51e0
JF
20109 if test "X$x" = "X-L$found_dir"; then
20110 haveit=yes
20111 break
20112 fi
20113 done
20114 if test -z "$haveit"; then
20115 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20116 fi
20117 if test "$acl_hardcode_minus_L" != no; then
20118 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20119 else
20120 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20121 fi
20122 fi
20123 fi
20124 fi
20125 else
20126 if test "X$found_a" != "X"; then
20127 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20128 else
20129 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20130 fi
20131 fi
20132 additional_includedir=
20133 case "$found_dir" in
20134 */$acl_libdirstem | */$acl_libdirstem/)
20135 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20136 if test "$name" = 'iconv'; then
20137 LIBICONV_PREFIX="$basedir"
20138 fi
20139 additional_includedir="$basedir/include"
20140 ;;
20141 */$acl_libdirstem2 | */$acl_libdirstem2/)
20142 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20143 if test "$name" = 'iconv'; then
20144 LIBICONV_PREFIX="$basedir"
20145 fi
20146 additional_includedir="$basedir/include"
20147 ;;
20148 esac
20149 if test "X$additional_includedir" != "X"; then
20150 if test "X$additional_includedir" != "X/usr/include"; then
20151 haveit=
20152 if test "X$additional_includedir" = "X/usr/local/include"; then
20153 if test -n "$GCC"; then
20154 case $host_os in
20155 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20156 esac
20157 fi
20158 fi
20159 if test -z "$haveit"; then
20160 for x in $CPPFLAGS $INCICONV; do
3fd51f51
DWT
20161
20162 acl_save_prefix="$prefix"
20163 prefix="$acl_final_prefix"
20164 acl_save_exec_prefix="$exec_prefix"
20165 exec_prefix="$acl_final_exec_prefix"
20166 eval x=\"$x\"
20167 exec_prefix="$acl_save_exec_prefix"
20168 prefix="$acl_save_prefix"
20169
7eda51e0
JF
20170 if test "X$x" = "X-I$additional_includedir"; then
20171 haveit=yes
20172 break
20173 fi
20174 done
20175 if test -z "$haveit"; then
20176 if test -d "$additional_includedir"; then
20177 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20178 fi
20179 fi
20180 fi
20181 fi
20182 fi
20183 if test -n "$found_la"; then
20184 save_libdir="$libdir"
20185 case "$found_la" in
20186 */* | *\\*) . "$found_la" ;;
20187 *) . "./$found_la" ;;
20188 esac
20189 libdir="$save_libdir"
20190 for dep in $dependency_libs; do
20191 case "$dep" in
20192 -L*)
20193 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20194 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20195 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20196 haveit=
20197 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20198 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20199 if test -n "$GCC"; then
20200 case $host_os in
20201 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20202 esac
20203 fi
20204 fi
20205 if test -z "$haveit"; then
20206 haveit=
20207 for x in $LDFLAGS $LIBICONV; do
3fd51f51
DWT
20208
20209 acl_save_prefix="$prefix"
20210 prefix="$acl_final_prefix"
20211 acl_save_exec_prefix="$exec_prefix"
20212 exec_prefix="$acl_final_exec_prefix"
20213 eval x=\"$x\"
20214 exec_prefix="$acl_save_exec_prefix"
20215 prefix="$acl_save_prefix"
20216
7eda51e0
JF
20217 if test "X$x" = "X-L$additional_libdir"; then
20218 haveit=yes
20219 break
20220 fi
20221 done
20222 if test -z "$haveit"; then
20223 if test -d "$additional_libdir"; then
20224 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20225 fi
20226 fi
20227 haveit=
20228 for x in $LDFLAGS $LTLIBICONV; do
632b71ea
DWT
20229
20230 acl_save_prefix="$prefix"
20231 prefix="$acl_final_prefix"
20232 acl_save_exec_prefix="$exec_prefix"
20233 exec_prefix="$acl_final_exec_prefix"
20234 eval x=\"$x\"
20235 exec_prefix="$acl_save_exec_prefix"
20236 prefix="$acl_save_prefix"
20237
7eda51e0
JF
20238 if test "X$x" = "X-L$additional_libdir"; then
20239 haveit=yes
20240 break
20241 fi
20242 done
20243 if test -z "$haveit"; then
20244 if test -d "$additional_libdir"; then
20245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20246 fi
20247 fi
20248 fi
20249 fi
20250 ;;
20251 -R*)
20252 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20253 if test "$enable_rpath" != no; then
20254 haveit=
20255 for x in $rpathdirs; do
20256 if test "X$x" = "X$dir"; then
20257 haveit=yes
20258 break
20259 fi
20260 done
20261 if test -z "$haveit"; then
20262 rpathdirs="$rpathdirs $dir"
20263 fi
20264 haveit=
20265 for x in $ltrpathdirs; do
20266 if test "X$x" = "X$dir"; then
20267 haveit=yes
20268 break
20269 fi
20270 done
20271 if test -z "$haveit"; then
20272 ltrpathdirs="$ltrpathdirs $dir"
20273 fi
20274 fi
20275 ;;
20276 -l*)
20277 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20278 ;;
20279 *.la)
20280 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20281 ;;
20282 *)
20283 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20285 ;;
20286 esac
20287 done
20288 fi
20289 else
20290 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20292 fi
20293 fi
632b71ea
DWT
20294 fi
20295 done
632b71ea 20296 done
7eda51e0
JF
20297 if test "X$rpathdirs" != "X"; then
20298 if test -n "$acl_hardcode_libdir_separator"; then
20299 alldirs=
20300 for found_dir in $rpathdirs; do
20301 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20302 done
20303 acl_save_libdir="$libdir"
20304 libdir="$alldirs"
20305 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20306 libdir="$acl_save_libdir"
20307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20308 else
20309 for found_dir in $rpathdirs; do
20310 acl_save_libdir="$libdir"
20311 libdir="$found_dir"
20312 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20313 libdir="$acl_save_libdir"
20314 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20315 done
20316 fi
20317 fi
20318 if test "X$ltrpathdirs" != "X"; then
20319 for found_dir in $ltrpathdirs; do
20320 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20321 done
20322 fi
632b71ea 20323
632b71ea 20324
632b71ea 20325
632b71ea
DWT
20326
20327
66170b30 20328
a667869d 20329
632b71ea 20330
632b71ea 20331
632b71ea 20332
a667869d 20333
a667869d 20334
7eda51e0 20335 am_save_CPPFLAGS="$CPPFLAGS"
a667869d 20336
7eda51e0 20337 for element in $INCICONV; do
632b71ea 20338 haveit=
7eda51e0 20339 for x in $CPPFLAGS; do
a667869d 20340
632b71ea
DWT
20341 acl_save_prefix="$prefix"
20342 prefix="$acl_final_prefix"
20343 acl_save_exec_prefix="$exec_prefix"
20344 exec_prefix="$acl_final_exec_prefix"
20345 eval x=\"$x\"
20346 exec_prefix="$acl_save_exec_prefix"
20347 prefix="$acl_save_prefix"
20348
20349 if test "X$x" = "X$element"; then
20350 haveit=yes
20351 break
20352 fi
20353 done
20354 if test -z "$haveit"; then
7eda51e0 20355 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
632b71ea
DWT
20356 fi
20357 done
20358
5053a6d1 20359
7eda51e0
JF
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20361$as_echo_n "checking for iconv... " >&6; }
20362if ${am_cv_func_iconv+:} false; then :
5053a6d1 20363 $as_echo_n "(cached) " >&6
a667869d 20364else
632b71ea 20365
7eda51e0
JF
20366 am_cv_func_iconv="no, consider installing GNU libiconv"
20367 am_cv_lib_iconv=no
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 20369/* end confdefs.h. */
632b71ea 20370
7eda51e0
JF
20371#include <stdlib.h>
20372#include <iconv.h>
632b71ea 20373
5053a6d1
DWT
20374int
20375main ()
20376{
7eda51e0
JF
20377iconv_t cd = iconv_open("","");
20378 iconv(cd,NULL,NULL,NULL,NULL);
20379 iconv_close(cd);
5053a6d1
DWT
20380 ;
20381 return 0;
20382}
20383_ACEOF
7eda51e0
JF
20384if ac_fn_c_try_link "$LINENO"; then :
20385 am_cv_func_iconv=yes
5053a6d1
DWT
20386fi
20387rm -f core conftest.err conftest.$ac_objext \
20388 conftest$ac_exeext conftest.$ac_ext
7eda51e0
JF
20389 if test "$am_cv_func_iconv" != yes; then
20390 am_save_LIBS="$LIBS"
20391 LIBS="$LIBS $LIBICONV"
20392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393/* end confdefs.h. */
5053a6d1 20394
7eda51e0
JF
20395#include <stdlib.h>
20396#include <iconv.h>
5053a6d1 20397
058f1bc8
DWT
20398int
20399main ()
20400{
7eda51e0
JF
20401iconv_t cd = iconv_open("","");
20402 iconv(cd,NULL,NULL,NULL,NULL);
20403 iconv_close(cd);
058f1bc8
DWT
20404 ;
20405 return 0;
20406}
20407_ACEOF
7eda51e0
JF
20408if ac_fn_c_try_link "$LINENO"; then :
20409 am_cv_lib_iconv=yes
20410 am_cv_func_iconv=yes
058f1bc8
DWT
20411fi
20412rm -f core conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext conftest.$ac_ext
7eda51e0 20414 LIBS="$am_save_LIBS"
058f1bc8 20415 fi
a667869d 20416
a667869d 20417fi
7eda51e0
JF
20418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20419$as_echo "$am_cv_func_iconv" >&6; }
20420 if test "$am_cv_func_iconv" = yes; then
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20422$as_echo_n "checking for working iconv... " >&6; }
20423if ${am_cv_func_iconv_works+:} false; then :
20424 $as_echo_n "(cached) " >&6
20425else
5053a6d1 20426
7eda51e0
JF
20427 am_save_LIBS="$LIBS"
20428 if test $am_cv_lib_iconv = yes; then
20429 LIBS="$LIBS $LIBICONV"
20430 fi
20431 if test "$cross_compiling" = yes; then :
058f1bc8 20432
7eda51e0
JF
20433 case "$host_os" in
20434 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20435 *) am_cv_func_iconv_works="guessing yes" ;;
20436 esac
058f1bc8 20437
058f1bc8 20438else
7eda51e0 20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
058f1bc8
DWT
20440/* end confdefs.h. */
20441
7eda51e0
JF
20442#include <iconv.h>
20443#include <string.h>
20444int main ()
a243b558 20445{
7eda51e0
JF
20446 int result = 0;
20447 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20448 returns. */
20449 {
20450 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20451 if (cd_utf8_to_88591 != (iconv_t)(-1))
20452 {
20453 static const char input[] = "\342\202\254"; /* EURO SIGN */
20454 char buf[10];
20455 const char *inptr = input;
20456 size_t inbytesleft = strlen (input);
20457 char *outptr = buf;
20458 size_t outbytesleft = sizeof (buf);
20459 size_t res = iconv (cd_utf8_to_88591,
20460 (char **) &inptr, &inbytesleft,
20461 &outptr, &outbytesleft);
20462 if (res == 0)
20463 result |= 1;
20464 iconv_close (cd_utf8_to_88591);
20465 }
20466 }
20467 /* Test against Solaris 10 bug: Failures are not distinguishable from
20468 successful returns. */
20469 {
20470 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20471 if (cd_ascii_to_88591 != (iconv_t)(-1))
20472 {
20473 static const char input[] = "\263";
20474 char buf[10];
20475 const char *inptr = input;
20476 size_t inbytesleft = strlen (input);
20477 char *outptr = buf;
20478 size_t outbytesleft = sizeof (buf);
20479 size_t res = iconv (cd_ascii_to_88591,
20480 (char **) &inptr, &inbytesleft,
20481 &outptr, &outbytesleft);
20482 if (res == 0)
20483 result |= 2;
20484 iconv_close (cd_ascii_to_88591);
20485 }
20486 }
20487 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20488 {
20489 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20490 if (cd_88591_to_utf8 != (iconv_t)(-1))
20491 {
20492 static const char input[] = "\304";
20493 static char buf[2] = { (char)0xDE, (char)0xAD };
20494 const char *inptr = input;
20495 size_t inbytesleft = 1;
20496 char *outptr = buf;
20497 size_t outbytesleft = 1;
20498 size_t res = iconv (cd_88591_to_utf8,
20499 (char **) &inptr, &inbytesleft,
20500 &outptr, &outbytesleft);
20501 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20502 result |= 4;
20503 iconv_close (cd_88591_to_utf8);
20504 }
20505 }
20506#if 0 /* This bug could be worked around by the caller. */
20507 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20508 {
20509 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20510 if (cd_88591_to_utf8 != (iconv_t)(-1))
20511 {
20512 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20513 char buf[50];
20514 const char *inptr = input;
20515 size_t inbytesleft = strlen (input);
20516 char *outptr = buf;
20517 size_t outbytesleft = sizeof (buf);
20518 size_t res = iconv (cd_88591_to_utf8,
20519 (char **) &inptr, &inbytesleft,
20520 &outptr, &outbytesleft);
20521 if ((int)res > 0)
20522 result |= 8;
20523 iconv_close (cd_88591_to_utf8);
20524 }
20525 }
20526#endif
20527 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20528 provided. */
20529 if (/* Try standardized names. */
20530 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20531 /* Try IRIX, OSF/1 names. */
20532 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20533 /* Try AIX names. */
20534 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20535 /* Try HP-UX names. */
20536 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
20537 result |= 16;
20538 return result;
20539}
20540_ACEOF
20541if ac_fn_c_try_run "$LINENO"; then :
20542 am_cv_func_iconv_works=yes
20543else
20544 am_cv_func_iconv_works=no
20545fi
20546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20547 conftest.$ac_objext conftest.beam conftest.$ac_ext
20548fi
058f1bc8 20549
7eda51e0 20550 LIBS="$am_save_LIBS"
058f1bc8 20551
7eda51e0
JF
20552fi
20553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
20554$as_echo "$am_cv_func_iconv_works" >&6; }
20555 case "$am_cv_func_iconv_works" in
20556 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
20557 *) am_func_iconv=yes ;;
20558 esac
20559 else
20560 am_func_iconv=no am_cv_lib_iconv=no
20561 fi
20562 if test "$am_func_iconv" = yes; then
058f1bc8 20563
7eda51e0 20564$as_echo "#define HAVE_ICONV 1" >>confdefs.h
058f1bc8 20565
058f1bc8 20566 fi
7eda51e0
JF
20567 if test "$am_cv_lib_iconv" = yes; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20569$as_echo_n "checking how to link with libiconv... " >&6; }
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20571$as_echo "$LIBICONV" >&6; }
20572 else
20573 CPPFLAGS="$am_save_CPPFLAGS"
20574 LIBICONV=
20575 LTLIBICONV=
058f1bc8
DWT
20576 fi
20577
20578
20579
7eda51e0
JF
20580 if test "$am_cv_func_iconv" = yes; then
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20582$as_echo_n "checking for iconv declaration... " >&6; }
20583 if ${am_cv_proto_iconv+:} false; then :
20584 $as_echo_n "(cached) " >&6
20585else
20586
20587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20588/* end confdefs.h. */
20589
20590#include <stdlib.h>
20591#include <iconv.h>
20592extern
20593#ifdef __cplusplus
20594"C"
20595#endif
20596#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
20597size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20598#else
20599size_t iconv();
20600#endif
20601
20602int
20603main ()
20604{
20605
20606 ;
20607 return 0;
20608}
20609_ACEOF
20610if ac_fn_c_try_compile "$LINENO"; then :
20611 am_cv_proto_iconv_arg1=""
20612else
20613 am_cv_proto_iconv_arg1="const"
20614fi
20615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20617fi
058f1bc8 20618
7eda51e0
JF
20619 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
20621 $am_cv_proto_iconv" >&5
20622$as_echo "
20623 $am_cv_proto_iconv" >&6; }
058f1bc8 20624
7eda51e0
JF
20625cat >>confdefs.h <<_ACEOF
20626#define ICONV_CONST $am_cv_proto_iconv_arg1
20627_ACEOF
058f1bc8
DWT
20628
20629
7eda51e0 20630 fi
058f1bc8 20631
058f1bc8
DWT
20632case $am_cv_func_iconv in #(
20633 yes) :
20634 ;; #(
20635 *) :
66170b30 20636 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
058f1bc8
DWT
20637esac
20638ac_ext=cpp
20639ac_cpp='$CXXCPP $CPPFLAGS'
20640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20643
66170b30
JF
20644
20645
9777bd50
JF
20646SO=$acl_shlibext
20647
e1cce270 20648
7eda51e0
JF
20649if test "x$CY_EXECUTE" = x1; then :
20650
20651 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20652if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20653
7eda51e0 20654 if test -n "$ac_tool_prefix"; then
a243b558 20655 for ac_prog in lipo
794e88e7
DWT
20656 do
20657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20660$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20661if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20662 $as_echo_n "(cached) " >&6
20663else
a243b558
JF
20664 if test -n "$_LIPO"; then
20665 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20666else
20667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20668for as_dir in $PATH
20669do
20670 IFS=$as_save_IFS
20671 test -z "$as_dir" && as_dir=.
20672 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20674 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20676 break 2
20677 fi
20678done
20679 done
20680IFS=$as_save_IFS
20681
20682fi
20683fi
a243b558
JF
20684_LIPO=$ac_cv_prog__LIPO
20685if test -n "$_LIPO"; then
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20687$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20688else
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20690$as_echo "no" >&6; }
20691fi
20692
20693
a243b558 20694 test -n "$_LIPO" && break
794e88e7
DWT
20695 done
20696fi
a243b558
JF
20697if test -z "$_LIPO"; then
20698 ac_ct__LIPO=$_LIPO
20699 for ac_prog in lipo
794e88e7
DWT
20700do
20701 # Extract the first word of "$ac_prog", so it can be a program name with args.
20702set dummy $ac_prog; ac_word=$2
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20704$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20705if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20706 $as_echo_n "(cached) " >&6
20707else
a243b558
JF
20708 if test -n "$ac_ct__LIPO"; then
20709 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20710else
20711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20712for as_dir in $PATH
20713do
20714 IFS=$as_save_IFS
20715 test -z "$as_dir" && as_dir=.
20716 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20718 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20720 break 2
20721 fi
20722done
20723 done
20724IFS=$as_save_IFS
20725
20726fi
20727fi
a243b558
JF
20728ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20729if test -n "$ac_ct__LIPO"; then
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20731$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
20732else
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734$as_echo "no" >&6; }
20735fi
20736
20737
a243b558 20738 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
20739done
20740
a243b558
JF
20741 if test "x$ac_ct__LIPO" = x; then
20742 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
20743 else
20744 case $cross_compiling:$ac_tool_warned in
20745yes:)
20746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20748ac_tool_warned=yes ;;
e1cce270 20749esac
a243b558 20750 _LIPO=$ac_ct__LIPO
794e88e7
DWT
20751 fi
20752fi
20753
7eda51e0 20754 if test -n "$ac_tool_prefix"; then
a243b558 20755 for ac_prog in nm
794e88e7
DWT
20756 do
20757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20758set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20760$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20761if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
20762 $as_echo_n "(cached) " >&6
20763else
a243b558
JF
20764 if test -n "$_NM"; then
20765 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
20766else
20767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20768for as_dir in $PATH
20769do
20770 IFS=$as_save_IFS
20771 test -z "$as_dir" && as_dir=.
20772 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20774 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20776 break 2
20777 fi
20778done
20779 done
20780IFS=$as_save_IFS
20781
20782fi
20783fi
a243b558
JF
20784_NM=$ac_cv_prog__NM
20785if test -n "$_NM"; then
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20787$as_echo "$_NM" >&6; }
794e88e7
DWT
20788else
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790$as_echo "no" >&6; }
20791fi
20792
20793
a243b558 20794 test -n "$_NM" && break
794e88e7
DWT
20795 done
20796fi
a243b558
JF
20797if test -z "$_NM"; then
20798 ac_ct__NM=$_NM
20799 for ac_prog in nm
794e88e7
DWT
20800do
20801 # Extract the first word of "$ac_prog", so it can be a program name with args.
20802set dummy $ac_prog; ac_word=$2
20803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20804$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20805if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
20806 $as_echo_n "(cached) " >&6
20807else
a243b558
JF
20808 if test -n "$ac_ct__NM"; then
20809 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
20810else
20811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20812for as_dir in $PATH
20813do
20814 IFS=$as_save_IFS
20815 test -z "$as_dir" && as_dir=.
20816 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20818 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
20819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20820 break 2
20821 fi
20822done
20823 done
20824IFS=$as_save_IFS
20825
20826fi
20827fi
a243b558
JF
20828ac_ct__NM=$ac_cv_prog_ac_ct__NM
20829if test -n "$ac_ct__NM"; then
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20831$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
20832else
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834$as_echo "no" >&6; }
20835fi
20836
20837
a243b558 20838 test -n "$ac_ct__NM" && break
794e88e7
DWT
20839done
20840
a243b558
JF
20841 if test "x$ac_ct__NM" = x; then
20842 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
20843 else
20844 case $cross_compiling:$ac_tool_warned in
20845yes:)
20846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20848ac_tool_warned=yes ;;
20849esac
a243b558 20850 _NM=$ac_ct__NM
794e88e7
DWT
20851 fi
20852fi
20853
7eda51e0 20854 if test -n "$ac_tool_prefix"; then
a243b558 20855 for ac_prog in otool
794e88e7
DWT
20856 do
20857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20858set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20860$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20861if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
20862 $as_echo_n "(cached) " >&6
20863else
a243b558
JF
20864 if test -n "$_OTOOL"; then
20865 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
20866else
20867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20868for as_dir in $PATH
20869do
20870 IFS=$as_save_IFS
20871 test -z "$as_dir" && as_dir=.
20872 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20874 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20876 break 2
20877 fi
20878done
20879 done
20880IFS=$as_save_IFS
20881
20882fi
20883fi
a243b558
JF
20884_OTOOL=$ac_cv_prog__OTOOL
20885if test -n "$_OTOOL"; then
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20887$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
20888else
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20890$as_echo "no" >&6; }
20891fi
20892
20893
a243b558 20894 test -n "$_OTOOL" && break
794e88e7
DWT
20895 done
20896fi
a243b558
JF
20897if test -z "$_OTOOL"; then
20898 ac_ct__OTOOL=$_OTOOL
20899 for ac_prog in otool
794e88e7
DWT
20900do
20901 # Extract the first word of "$ac_prog", so it can be a program name with args.
20902set dummy $ac_prog; ac_word=$2
20903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20904$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20905if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
20906 $as_echo_n "(cached) " >&6
20907else
a243b558
JF
20908 if test -n "$ac_ct__OTOOL"; then
20909 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
20910else
20911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20912for as_dir in $PATH
20913do
20914 IFS=$as_save_IFS
20915 test -z "$as_dir" && as_dir=.
20916 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20918 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
20919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20920 break 2
20921 fi
20922done
20923 done
20924IFS=$as_save_IFS
20925
20926fi
20927fi
a243b558
JF
20928ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20929if test -n "$ac_ct__OTOOL"; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20931$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
20932else
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934$as_echo "no" >&6; }
20935fi
20936
20937
a243b558 20938 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
20939done
20940
a243b558
JF
20941 if test "x$ac_ct__OTOOL" = x; then
20942 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
20943 else
20944 case $cross_compiling:$ac_tool_warned in
20945yes:)
20946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20948ac_tool_warned=yes ;;
20949esac
a243b558 20950 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
20951 fi
20952fi
20953
7eda51e0 20954 CY_ATTACH_GROUP=procmod
794e88e7 20955
7eda51e0 20956 CY_MACH=1
e1cce270
DWT
20957
20958fi
20959
20960
7eda51e0 20961fi
a243b558
JF
20962 if test "x$CY_MACH" = x1; then
20963 CY_MACH_TRUE=
20964 CY_MACH_FALSE='#'
20965else
20966 CY_MACH_TRUE='#'
20967 CY_MACH_FALSE=
47aaa820 20968fi
9c60689e 20969
66170b30 20970
a243b558
JF
20971ac_config_files="$ac_config_files Makefile"
20972
9c60689e
DWT
20973cat >confcache <<\_ACEOF
20974# This file is a shell script that caches the results of configure
20975# tests run on this system so they can be shared between configure
20976# scripts and configure runs, see configure's option --config-cache.
20977# It is not useful on other systems. If it contains results you don't
20978# want to keep, you may remove or edit it.
20979#
20980# config.status only pays attention to the cache file if you give it
20981# the --recheck option to rerun configure.
20982#
20983# `ac_cv_env_foo' variables (set or unset) will be overridden when
20984# loading this file, other *unset* `ac_cv_foo' will be assigned the
20985# following values.
20986
20987_ACEOF
20988
20989# The following way of writing the cache mishandles newlines in values,
20990# but we know of no workaround that is simple, portable, and efficient.
20991# So, we kill variables containing newlines.
20992# Ultrix sh set writes to stderr and can't be redirected directly,
20993# and sets the high bit in the cache file unless we assign to the vars.
20994(
20995 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20996 eval ac_val=\$$ac_var
20997 case $ac_val in #(
20998 *${as_nl}*)
20999 case $ac_var in #(
21000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21002 esac
21003 case $ac_var in #(
21004 _ | IFS | as_nl) ;; #(
21005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21006 *) { eval $ac_var=; unset $ac_var;} ;;
21007 esac ;;
21008 esac
21009 done
21010
21011 (set) 2>&1 |
21012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21013 *${as_nl}ac_space=\ *)
21014 # `set' does not quote correctly, so add quotes: double-quote
21015 # substitution turns \\\\ into \\, and sed turns \\ into \.
21016 sed -n \
21017 "s/'/'\\\\''/g;
21018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21019 ;; #(
21020 *)
21021 # `set' quotes correctly as required by POSIX, so do not add quotes.
21022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21023 ;;
21024 esac |
21025 sort
21026) |
21027 sed '
21028 /^ac_cv_env_/b end
21029 t clear
21030 :clear
21031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21032 t end
21033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21034 :end' >>confcache
21035if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21036 if test -w "$cache_file"; then
ee134472 21037 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21039$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
21040 if test ! -f "$cache_file" || test -h "$cache_file"; then
21041 cat confcache >"$cache_file"
21042 else
21043 case $cache_file in #(
21044 */* | ?:*)
21045 mv -f confcache "$cache_file"$$ &&
21046 mv -f "$cache_file"$$ "$cache_file" ;; #(
21047 *)
21048 mv -f confcache "$cache_file" ;;
21049 esac
21050 fi
21051 fi
9c60689e
DWT
21052 else
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21054$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21055 fi
21056fi
21057rm -f confcache
21058
21059test "x$prefix" = xNONE && prefix=$ac_default_prefix
21060# Let make expand exec_prefix.
21061test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21062
296ee9a6 21063DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
21064
21065ac_libobjs=
21066ac_ltlibobjs=
12833ad8 21067U=
9c60689e
DWT
21068for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21069 # 1. Remove the extension, and $U if already installed.
21070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21071 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21073 # will be set to the directory where LIBOBJS objects are built.
21074 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21075 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21076done
21077LIBOBJS=$ac_libobjs
21078
21079LTLIBOBJS=$ac_ltlibobjs
21080
21081
66170b30
JF
21082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21083$as_echo_n "checking that generated files are newer than configure... " >&6; }
21084 if test -n "$am_sleep_pid"; then
21085 # Hide warnings about reused PIDs.
21086 wait $am_sleep_pid 2>/dev/null
21087 fi
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21089$as_echo "done" >&6; }
21090 if test -n "$EXEEXT"; then
21091 am__EXEEXT_TRUE=
21092 am__EXEEXT_FALSE='#'
21093else
21094 am__EXEEXT_TRUE='#'
21095 am__EXEEXT_FALSE=
21096fi
21097
21098if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21099 as_fn_error $? "conditional \"AMDEP\" was never defined.
21100Usually this means the macro was only invoked conditionally." "$LINENO" 5
21101fi
66170b30
JF
21102if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21103 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21104Usually this means the macro was only invoked conditionally." "$LINENO" 5
21105fi
21106if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21107 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21108Usually this means the macro was only invoked conditionally." "$LINENO" 5
21109fi
a243b558
JF
21110if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21111 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21112Usually this means the macro was only invoked conditionally." "$LINENO" 5
21113fi
21114if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21115 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21116Usually this means the macro was only invoked conditionally." "$LINENO" 5
21117fi
21118if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21119 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21120Usually this means the macro was only invoked conditionally." "$LINENO" 5
21121fi
21122if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21123 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21124Usually this means the macro was only invoked conditionally." "$LINENO" 5
21125fi
9c60689e 21126
ee134472 21127: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
21128ac_write_fail=0
21129ac_clean_files_save=$ac_clean_files
21130ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21131{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21132$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21133as_write_fail=0
21134cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21135#! $SHELL
21136# Generated by $as_me.
21137# Run this file to recreate the current configuration.
21138# Compiler output produced by configure, useful for debugging
21139# configure, is in config.log if it exists.
21140
21141debug=false
21142ac_cs_recheck=false
21143ac_cs_silent=false
21144
21145SHELL=\${CONFIG_SHELL-$SHELL}
21146export SHELL
21147_ASEOF
21148cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21149## -------------------- ##
21150## M4sh Initialization. ##
21151## -------------------- ##
21152
21153# Be more Bourne compatible
21154DUALCASE=1; export DUALCASE # for MKS sh
21155if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21156 emulate sh
21157 NULLCMD=:
21158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21159 # is contrary to our usage. Disable this feature.
21160 alias -g '${1+"$@"}'='"$@"'
21161 setopt NO_GLOB_SUBST
21162else
21163 case `(set -o) 2>/dev/null` in #(
21164 *posix*) :
21165 set -o posix ;; #(
21166 *) :
21167 ;;
21168esac
21169fi
21170
21171
21172as_nl='
21173'
21174export as_nl
21175# Printing a long string crashes Solaris 7 /usr/bin/printf.
21176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21179# Prefer a ksh shell builtin over an external printf program on Solaris,
21180# but without wasting forks for bash or zsh.
21181if test -z "$BASH_VERSION$ZSH_VERSION" \
21182 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21183 as_echo='print -r --'
21184 as_echo_n='print -rn --'
21185elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21186 as_echo='printf %s\n'
21187 as_echo_n='printf %s'
21188else
21189 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21190 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21191 as_echo_n='/usr/ucb/echo -n'
21192 else
21193 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21194 as_echo_n_body='eval
21195 arg=$1;
21196 case $arg in #(
21197 *"$as_nl"*)
21198 expr "X$arg" : "X\\(.*\\)$as_nl";
21199 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21200 esac;
21201 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21202 '
21203 export as_echo_n_body
21204 as_echo_n='sh -c $as_echo_n_body as_echo'
21205 fi
21206 export as_echo_body
21207 as_echo='sh -c $as_echo_body as_echo'
21208fi
21209
21210# The user is always right.
21211if test "${PATH_SEPARATOR+set}" != set; then
21212 PATH_SEPARATOR=:
21213 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21214 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21215 PATH_SEPARATOR=';'
21216 }
21217fi
21218
21219
21220# IFS
21221# We need space, tab and new line, in precisely that order. Quoting is
21222# there to prevent editors from complaining about space-tab.
21223# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21224# splitting by setting IFS to empty value.)
21225IFS=" "" $as_nl"
21226
21227# Find who we are. Look in the path if we contain no directory separator.
ee134472 21228as_myself=
9c60689e
DWT
21229case $0 in #((
21230 *[\\/]* ) as_myself=$0 ;;
21231 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21232for as_dir in $PATH
21233do
21234 IFS=$as_save_IFS
21235 test -z "$as_dir" && as_dir=.
21236 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21237 done
21238IFS=$as_save_IFS
21239
21240 ;;
21241esac
21242# We did not find ourselves, most probably we were run as `sh COMMAND'
21243# in which case we are not to be found in the path.
21244if test "x$as_myself" = x; then
21245 as_myself=$0
21246fi
21247if test ! -f "$as_myself"; then
21248 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21249 exit 1
21250fi
21251
21252# Unset variables that we do not need and which cause bugs (e.g. in
21253# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21254# suppresses any "Segmentation fault" message there. '((' could
21255# trigger a bug in pdksh 5.2.14.
21256for as_var in BASH_ENV ENV MAIL MAILPATH
21257do eval test x\${$as_var+set} = xset \
21258 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21259done
21260PS1='$ '
21261PS2='> '
21262PS4='+ '
21263
21264# NLS nuisances.
21265LC_ALL=C
21266export LC_ALL
21267LANGUAGE=C
21268export LANGUAGE
21269
21270# CDPATH.
21271(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21272
21273
12833ad8
JF
21274# as_fn_error STATUS ERROR [LINENO LOG_FD]
21275# ----------------------------------------
9c60689e
DWT
21276# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21277# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 21278# script with STATUS, using 1 if that was 0.
9c60689e
DWT
21279as_fn_error ()
21280{
12833ad8
JF
21281 as_status=$1; test $as_status -eq 0 && as_status=1
21282 if test "$4"; then
21283 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21284 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 21285 fi
12833ad8 21286 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
21287 as_fn_exit $as_status
21288} # as_fn_error
21289
21290
21291# as_fn_set_status STATUS
21292# -----------------------
21293# Set $? to STATUS, without forking.
21294as_fn_set_status ()
21295{
21296 return $1
21297} # as_fn_set_status
21298
21299# as_fn_exit STATUS
21300# -----------------
21301# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21302as_fn_exit ()
21303{
21304 set +e
21305 as_fn_set_status $1
21306 exit $1
21307} # as_fn_exit
21308
21309# as_fn_unset VAR
21310# ---------------
21311# Portably unset VAR.
21312as_fn_unset ()
21313{
21314 { eval $1=; unset $1;}
21315}
21316as_unset=as_fn_unset
21317# as_fn_append VAR VALUE
21318# ----------------------
21319# Append the text in VALUE to the end of the definition contained in VAR. Take
21320# advantage of any shell optimizations that allow amortized linear growth over
21321# repeated appends, instead of the typical quadratic growth present in naive
21322# implementations.
21323if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21324 eval 'as_fn_append ()
21325 {
21326 eval $1+=\$2
21327 }'
21328else
21329 as_fn_append ()
21330 {
21331 eval $1=\$$1\$2
21332 }
21333fi # as_fn_append
21334
21335# as_fn_arith ARG...
21336# ------------------
21337# Perform arithmetic evaluation on the ARGs, and store the result in the
21338# global $as_val. Take advantage of shells that can avoid forks. The arguments
21339# must be portable across $(()) and expr.
21340if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21341 eval 'as_fn_arith ()
21342 {
21343 as_val=$(( $* ))
21344 }'
21345else
21346 as_fn_arith ()
21347 {
21348 as_val=`expr "$@" || test $? -eq 1`
21349 }
21350fi # as_fn_arith
21351
21352
21353if expr a : '\(a\)' >/dev/null 2>&1 &&
21354 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21355 as_expr=expr
21356else
21357 as_expr=false
21358fi
21359
21360if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21361 as_basename=basename
21362else
21363 as_basename=false
21364fi
21365
21366if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21367 as_dirname=dirname
21368else
21369 as_dirname=false
21370fi
21371
21372as_me=`$as_basename -- "$0" ||
21373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21374 X"$0" : 'X\(//\)$' \| \
21375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21376$as_echo X/"$0" |
21377 sed '/^.*\/\([^/][^/]*\)\/*$/{
21378 s//\1/
21379 q
21380 }
21381 /^X\/\(\/\/\)$/{
21382 s//\1/
21383 q
21384 }
21385 /^X\/\(\/\).*/{
21386 s//\1/
21387 q
21388 }
21389 s/.*/./; q'`
21390
21391# Avoid depending upon Character Ranges.
21392as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21394as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21395as_cr_digits='0123456789'
21396as_cr_alnum=$as_cr_Letters$as_cr_digits
21397
21398ECHO_C= ECHO_N= ECHO_T=
21399case `echo -n x` in #(((((
21400-n*)
21401 case `echo 'xy\c'` in
21402 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21403 xy) ECHO_C='\c';;
21404 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21405 ECHO_T=' ';;
21406 esac;;
21407*)
21408 ECHO_N='-n';;
21409esac
21410
21411rm -f conf$$ conf$$.exe conf$$.file
21412if test -d conf$$.dir; then
21413 rm -f conf$$.dir/conf$$.file
21414else
21415 rm -f conf$$.dir
21416 mkdir conf$$.dir 2>/dev/null
21417fi
21418if (echo >conf$$.file) 2>/dev/null; then
21419 if ln -s conf$$.file conf$$ 2>/dev/null; then
21420 as_ln_s='ln -s'
21421 # ... but there are two gotchas:
21422 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21423 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 21424 # In both cases, we have to default to `cp -pR'.
9c60689e 21425 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 21426 as_ln_s='cp -pR'
9c60689e
DWT
21427 elif ln conf$$.file conf$$ 2>/dev/null; then
21428 as_ln_s=ln
21429 else
53ba6704 21430 as_ln_s='cp -pR'
9c60689e
DWT
21431 fi
21432else
53ba6704 21433 as_ln_s='cp -pR'
9c60689e
DWT
21434fi
21435rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21436rmdir conf$$.dir 2>/dev/null
21437
21438
21439# as_fn_mkdir_p
21440# -------------
21441# Create "$as_dir" as a directory, including parents if necessary.
21442as_fn_mkdir_p ()
21443{
21444
21445 case $as_dir in #(
21446 -*) as_dir=./$as_dir;;
21447 esac
21448 test -d "$as_dir" || eval $as_mkdir_p || {
21449 as_dirs=
21450 while :; do
21451 case $as_dir in #(
21452 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21453 *) as_qdir=$as_dir;;
21454 esac
21455 as_dirs="'$as_qdir' $as_dirs"
21456 as_dir=`$as_dirname -- "$as_dir" ||
21457$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21458 X"$as_dir" : 'X\(//\)[^/]' \| \
21459 X"$as_dir" : 'X\(//\)$' \| \
21460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21461$as_echo X"$as_dir" |
21462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21463 s//\1/
21464 q
21465 }
21466 /^X\(\/\/\)[^/].*/{
21467 s//\1/
21468 q
21469 }
21470 /^X\(\/\/\)$/{
21471 s//\1/
21472 q
21473 }
21474 /^X\(\/\).*/{
21475 s//\1/
21476 q
21477 }
21478 s/.*/./; q'`
21479 test -d "$as_dir" && break
21480 done
21481 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 21482 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
21483
21484
21485} # as_fn_mkdir_p
21486if mkdir -p . 2>/dev/null; then
21487 as_mkdir_p='mkdir -p "$as_dir"'
21488else
21489 test -d ./-p && rmdir ./-p
21490 as_mkdir_p=false
21491fi
21492
53ba6704
JF
21493
21494# as_fn_executable_p FILE
21495# -----------------------
21496# Test if FILE is an executable regular file.
21497as_fn_executable_p ()
21498{
21499 test -f "$1" && test -x "$1"
21500} # as_fn_executable_p
21501as_test_x='test -x'
21502as_executable_p=as_fn_executable_p
9c60689e
DWT
21503
21504# Sed expression to map a string onto a valid CPP name.
21505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21506
21507# Sed expression to map a string onto a valid variable name.
21508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21509
21510
21511exec 6>&1
21512## ----------------------------------- ##
21513## Main body of $CONFIG_STATUS script. ##
21514## ----------------------------------- ##
21515_ASEOF
21516test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21517
21518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21519# Save the log message, to keep $0 and so on meaningful, and to
21520# report actual input values of CONFIG_FILES etc. instead of their
21521# values after options handling.
21522ac_log="
21523This file was extended by Cycript $as_me 0.9, which was
53ba6704 21524generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
21525
21526 CONFIG_FILES = $CONFIG_FILES
21527 CONFIG_HEADERS = $CONFIG_HEADERS
21528 CONFIG_LINKS = $CONFIG_LINKS
21529 CONFIG_COMMANDS = $CONFIG_COMMANDS
21530 $ $0 $@
21531
21532on `(hostname || uname -n) 2>/dev/null | sed 1q`
21533"
21534
21535_ACEOF
21536
21537case $ac_config_files in *"
21538"*) set x $ac_config_files; shift; ac_config_files=$*;;
21539esac
21540
296ee9a6
JF
21541case $ac_config_headers in *"
21542"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21543esac
9c60689e
DWT
21544
21545
21546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21547# Files that config.status was made for.
21548config_files="$ac_config_files"
296ee9a6 21549config_headers="$ac_config_headers"
9c60689e
DWT
21550config_commands="$ac_config_commands"
21551
21552_ACEOF
21553
21554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21555ac_cs_usage="\
21556\`$as_me' instantiates files and other configuration actions
21557from templates according to the current configuration. Unless the files
21558and actions are specified as TAGs, all are instantiated by default.
21559
21560Usage: $0 [OPTION]... [TAG]...
21561
21562 -h, --help print this help, then exit
21563 -V, --version print version number and configuration settings, then exit
21564 --config print configuration, then exit
21565 -q, --quiet, --silent
21566 do not print progress messages
21567 -d, --debug don't remove temporary files
21568 --recheck update $as_me by reconfiguring in the same conditions
21569 --file=FILE[:TEMPLATE]
21570 instantiate the configuration file FILE
296ee9a6
JF
21571 --header=FILE[:TEMPLATE]
21572 instantiate the configuration header FILE
9c60689e
DWT
21573
21574Configuration files:
21575$config_files
21576
296ee9a6
JF
21577Configuration headers:
21578$config_headers
21579
9c60689e
DWT
21580Configuration commands:
21581$config_commands
21582
21583Report bugs to <saurik@saurik.com>.
21584Cycript home page: <http://www.cycript.org/>."
21585
21586_ACEOF
21587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21588ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21589ac_cs_version="\\
21590Cycript config.status 0.9
53ba6704 21591configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21592 with options \\"\$ac_cs_config\\"
21593
53ba6704 21594Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21595This config.status script is free software; the Free Software Foundation
21596gives unlimited permission to copy, distribute and modify it."
21597
21598ac_pwd='$ac_pwd'
21599srcdir='$srcdir'
21600INSTALL='$INSTALL'
66170b30
JF
21601MKDIR_P='$MKDIR_P'
21602AWK='$AWK'
9c60689e
DWT
21603test -n "\$AWK" || AWK=awk
21604_ACEOF
21605
21606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21607# The default lists apply if the user does not specify any file.
21608ac_need_defaults=:
21609while test $# != 0
21610do
21611 case $1 in
12833ad8 21612 --*=?*)
9c60689e
DWT
21613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21615 ac_shift=:
21616 ;;
12833ad8
JF
21617 --*=)
21618 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21619 ac_optarg=
21620 ac_shift=:
21621 ;;
9c60689e
DWT
21622 *)
21623 ac_option=$1
21624 ac_optarg=$2
21625 ac_shift=shift
21626 ;;
21627 esac
21628
21629 case $ac_option in
21630 # Handling of the options.
21631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21632 ac_cs_recheck=: ;;
21633 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21634 $as_echo "$ac_cs_version"; exit ;;
21635 --config | --confi | --conf | --con | --co | --c )
21636 $as_echo "$ac_cs_config"; exit ;;
21637 --debug | --debu | --deb | --de | --d | -d )
21638 debug=: ;;
21639 --file | --fil | --fi | --f )
21640 $ac_shift
21641 case $ac_optarg in
21642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21643 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21644 esac
21645 as_fn_append CONFIG_FILES " '$ac_optarg'"
21646 ac_need_defaults=false;;
296ee9a6
JF
21647 --header | --heade | --head | --hea )
21648 $ac_shift
21649 case $ac_optarg in
21650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21651 esac
21652 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21653 ac_need_defaults=false;;
21654 --he | --h)
21655 # Conflict between --help and --header
21656 as_fn_error $? "ambiguous option: \`$1'
21657Try \`$0 --help' for more information.";;
21658 --help | --hel | -h )
9c60689e
DWT
21659 $as_echo "$ac_cs_usage"; exit ;;
21660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21661 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21662 ac_cs_silent=: ;;
21663
21664 # This is an error.
12833ad8 21665 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21666Try \`$0 --help' for more information." ;;
21667
21668 *) as_fn_append ac_config_targets " $1"
21669 ac_need_defaults=false ;;
21670
21671 esac
21672 shift
21673done
21674
21675ac_configure_extra_args=
21676
21677if $ac_cs_silent; then
21678 exec 6>/dev/null
21679 ac_configure_extra_args="$ac_configure_extra_args --silent"
21680fi
21681
21682_ACEOF
21683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21684if \$ac_cs_recheck; then
53ba6704 21685 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21686 shift
21687 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21688 CONFIG_SHELL='$SHELL'
21689 export CONFIG_SHELL
21690 exec "\$@"
21691fi
21692
21693_ACEOF
21694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21695exec 5>>config.log
21696{
21697 echo
21698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21699## Running $as_me. ##
21700_ASBOX
21701 $as_echo "$ac_log"
21702} >&5
21703
21704_ACEOF
21705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21706#
21707# INIT-COMMANDS
21708#
66170b30 21709AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21710
21711
21712# The HP-UX ksh and POSIX shell print the target directory to stdout
21713# if CDPATH is set.
21714(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21715
21716sed_quote_subst='$sed_quote_subst'
21717double_quote_subst='$double_quote_subst'
21718delay_variable_subst='$delay_variable_subst'
ee134472
JF
21719macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21720macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21721enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21722enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21723pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21724enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21725SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21726ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 21727PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21728host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21729host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21730host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21731build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21732build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21733build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21734SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21735Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21736GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21737EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21738FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21739LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21740NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21741LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21742max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21743ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21744exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21745lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21746lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21747lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21748lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21749lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21750reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21751reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21752OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21753deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21754file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21755file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21756want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21757DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21758sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21759AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21760AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21761archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21762STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21763RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21764old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21765old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21766old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21767lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21768CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21769CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21770compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21771GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21772lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21773lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21774lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21775lt_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"`'
21776nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21777lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21778objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21779MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21780lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21781lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21782lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21783lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21784lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21785need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21786MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21787DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21788NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21789LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21790OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21791OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21792libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21793shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21794extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21795archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21796enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21797export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21798whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21799compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21800old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21801old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21802archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21803archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21804module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21805module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21806with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21807allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21808no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21809hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21810hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21811hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21812hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21813hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21814hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21815hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21816inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21817link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21818always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21819export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21820exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21821include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21822prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21823postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21824file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21825variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21826need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21827need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21828version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21829runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21830shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21831shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21832libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21833library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21834soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21835install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21836postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21837postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21838finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21839finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21840hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21841sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21842sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21843hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21844enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21845enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21846enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21847old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21848striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21849compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21850predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21851postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21852predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21853postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21854compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21855LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21856reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21857reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21858old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21859compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21860GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21861lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21862lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21863lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21864lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21865lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21866archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21867enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21868export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21869whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21870compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21871old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21872old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21873archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21874archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21875module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21876module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21877with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21878allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21879no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21880hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
21881hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21882hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21883hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21884hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21885hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21886hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21887inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21888link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21889always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21890export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21891exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21892include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21893prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21894postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21895file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21896hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21897compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21898predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21899postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21900predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21901postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21902compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
21903
21904LTCC='$LTCC'
21905LTCFLAGS='$LTCFLAGS'
21906compiler='$compiler_DEFAULT'
21907
ee134472
JF
21908# A function that is used when there is no print builtin or printf.
21909func_fallback_echo ()
21910{
21911 eval 'cat <<_LTECHO_EOF
21912\$1
21913_LTECHO_EOF'
21914}
21915
9c60689e 21916# Quote evaled strings.
ee134472
JF
21917for var in SHELL \
21918ECHO \
53ba6704 21919PATH_SEPARATOR \
ee134472 21920SED \
9c60689e
DWT
21921GREP \
21922EGREP \
21923FGREP \
21924LD \
21925NM \
21926LN_S \
21927lt_SP2NL \
21928lt_NL2SP \
21929reload_flag \
21930OBJDUMP \
21931deplibs_check_method \
21932file_magic_cmd \
ee134472
JF
21933file_magic_glob \
21934want_nocaseglob \
21935DLLTOOL \
21936sharedlib_from_linklib_cmd \
9c60689e
DWT
21937AR \
21938AR_FLAGS \
ee134472 21939archiver_list_spec \
9c60689e
DWT
21940STRIP \
21941RANLIB \
21942CC \
21943CFLAGS \
21944compiler \
21945lt_cv_sys_global_symbol_pipe \
21946lt_cv_sys_global_symbol_to_cdecl \
21947lt_cv_sys_global_symbol_to_c_name_address \
21948lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ee134472 21949nm_file_list_spec \
9c60689e 21950lt_prog_compiler_no_builtin_flag \
9c60689e 21951lt_prog_compiler_pic \
ee134472 21952lt_prog_compiler_wl \
9c60689e
DWT
21953lt_prog_compiler_static \
21954lt_cv_prog_compiler_c_o \
21955need_locks \
ee134472 21956MANIFEST_TOOL \
9c60689e
DWT
21957DSYMUTIL \
21958NMEDIT \
21959LIPO \
21960OTOOL \
21961OTOOL64 \
21962shrext_cmds \
21963export_dynamic_flag_spec \
21964whole_archive_flag_spec \
21965compiler_needs_object \
21966with_gnu_ld \
21967allow_undefined_flag \
21968no_undefined_flag \
21969hardcode_libdir_flag_spec \
9c60689e 21970hardcode_libdir_separator \
9c60689e
DWT
21971exclude_expsyms \
21972include_expsyms \
21973file_list_spec \
21974variables_saved_for_relink \
21975libname_spec \
21976library_names_spec \
21977soname_spec \
ee134472 21978install_override_mode \
9c60689e
DWT
21979finish_eval \
21980old_striplib \
21981striplib \
21982compiler_lib_search_dirs \
21983predep_objects \
21984postdep_objects \
21985predeps \
21986postdeps \
21987compiler_lib_search_path \
21988LD_CXX \
ee134472 21989reload_flag_CXX \
9c60689e
DWT
21990compiler_CXX \
21991lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 21992lt_prog_compiler_pic_CXX \
ee134472 21993lt_prog_compiler_wl_CXX \
9c60689e
DWT
21994lt_prog_compiler_static_CXX \
21995lt_cv_prog_compiler_c_o_CXX \
21996export_dynamic_flag_spec_CXX \
21997whole_archive_flag_spec_CXX \
21998compiler_needs_object_CXX \
21999with_gnu_ld_CXX \
22000allow_undefined_flag_CXX \
22001no_undefined_flag_CXX \
22002hardcode_libdir_flag_spec_CXX \
9c60689e 22003hardcode_libdir_separator_CXX \
9c60689e
DWT
22004exclude_expsyms_CXX \
22005include_expsyms_CXX \
22006file_list_spec_CXX \
22007compiler_lib_search_dirs_CXX \
22008predep_objects_CXX \
22009postdep_objects_CXX \
22010predeps_CXX \
22011postdeps_CXX \
22012compiler_lib_search_path_CXX; do
ee134472 22013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22014 *[\\\\\\\`\\"\\\$]*)
ee134472 22015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
9c60689e
DWT
22016 ;;
22017 *)
22018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22019 ;;
22020 esac
22021done
22022
22023# Double-quote double-evaled strings.
22024for var in reload_cmds \
22025old_postinstall_cmds \
22026old_postuninstall_cmds \
22027old_archive_cmds \
22028extract_expsyms_cmds \
22029old_archive_from_new_cmds \
22030old_archive_from_expsyms_cmds \
22031archive_cmds \
22032archive_expsym_cmds \
22033module_cmds \
22034module_expsym_cmds \
22035export_symbols_cmds \
22036prelink_cmds \
ee134472 22037postlink_cmds \
9c60689e
DWT
22038postinstall_cmds \
22039postuninstall_cmds \
22040finish_cmds \
22041sys_lib_search_path_spec \
22042sys_lib_dlsearch_path_spec \
ee134472 22043reload_cmds_CXX \
9c60689e
DWT
22044old_archive_cmds_CXX \
22045old_archive_from_new_cmds_CXX \
22046old_archive_from_expsyms_cmds_CXX \
22047archive_cmds_CXX \
22048archive_expsym_cmds_CXX \
22049module_cmds_CXX \
22050module_expsym_cmds_CXX \
22051export_symbols_cmds_CXX \
ee134472
JF
22052prelink_cmds_CXX \
22053postlink_cmds_CXX; do
22054 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22055 *[\\\\\\\`\\"\\\$]*)
ee134472 22056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
9c60689e
DWT
22057 ;;
22058 *)
22059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22060 ;;
22061 esac
22062done
22063
9c60689e
DWT
22064ac_aux_dir='$ac_aux_dir'
22065xsi_shell='$xsi_shell'
22066lt_shell_append='$lt_shell_append'
22067
22068# See if we are running on zsh, and set the options which allow our
22069# commands through without removal of \ escapes INIT.
22070if test -n "\${ZSH_VERSION+set}" ; then
22071 setopt NO_GLOB_SUBST
22072fi
22073
22074
22075 PACKAGE='$PACKAGE'
22076 VERSION='$VERSION'
22077 TIMESTAMP='$TIMESTAMP'
22078 RM='$RM'
22079 ofile='$ofile'
22080
22081
22082
22083
22084
22085
22086_ACEOF
22087
22088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22089
22090# Handling of arguments.
22091for ac_config_target in $ac_config_targets
22092do
22093 case $ac_config_target in
296ee9a6 22094 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 22095 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 22096 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 22097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 22098
ee134472 22099 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
22100 esac
22101done
22102
22103
22104# If the user did not use the arguments to specify the items to instantiate,
22105# then the envvar interface is used. Set only those that are not.
22106# We use the long form for the default assignment because of an extremely
22107# bizarre bug on SunOS 4.1.3.
22108if $ac_need_defaults; then
22109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 22110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
22111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22112fi
22113
22114# Have a temporary directory for convenience. Make it in the build tree
22115# simply because there is no reason against having it here, and in addition,
22116# creating and moving files from /tmp can sometimes cause problems.
22117# Hook for its removal unless debugging.
22118# Note that there is a small window in which the directory will not be cleaned:
22119# after its creation but before its name has been assigned to `$tmp'.
22120$debug ||
22121{
ee134472 22122 tmp= ac_tmp=
9c60689e 22123 trap 'exit_status=$?
ee134472
JF
22124 : "${ac_tmp:=$tmp}"
22125 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
22126' 0
22127 trap 'as_fn_exit 1' 1 2 13 15
22128}
22129# Create a (secure) tmp directory for tmp files.
22130
22131{
22132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 22133 test -d "$tmp"
9c60689e
DWT
22134} ||
22135{
22136 tmp=./conf$$-$RANDOM
22137 (umask 077 && mkdir "$tmp")
12833ad8 22138} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 22139ac_tmp=$tmp
9c60689e
DWT
22140
22141# Set up the scripts for CONFIG_FILES section.
22142# No need to generate them if there are no CONFIG_FILES.
22143# This happens for instance with `./config.status config.h'.
22144if test -n "$CONFIG_FILES"; then
22145
22146
22147ac_cr=`echo X | tr X '\015'`
22148# On cygwin, bash can eat \r inside `` if the user requested igncr.
22149# But we know of no other shell where ac_cr would be empty at this
22150# point, so we can use a bashism as a fallback.
22151if test "x$ac_cr" = x; then
22152 eval ac_cr=\$\'\\r\'
22153fi
22154ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22155if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 22156 ac_cs_awk_cr='\\r'
9c60689e
DWT
22157else
22158 ac_cs_awk_cr=$ac_cr
22159fi
22160
ee134472 22161echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
22162_ACEOF
22163
22164
22165{
22166 echo "cat >conf$$subs.awk <<_ACEOF" &&
22167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22168 echo "_ACEOF"
22169} >conf$$subs.sh ||
12833ad8
JF
22170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22171ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
22172ac_delim='%!_!# '
22173for ac_last_try in false false false false false :; do
22174 . ./conf$$subs.sh ||
12833ad8 22175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22176
22177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22178 if test $ac_delim_n = $ac_delim_num; then
22179 break
22180 elif $ac_last_try; then
12833ad8 22181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22182 else
22183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22184 fi
22185done
22186rm -f conf$$subs.sh
22187
22188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 22189cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
22190_ACEOF
22191sed -n '
22192h
22193s/^/S["/; s/!.*/"]=/
22194p
22195g
22196s/^[^!]*!//
22197:repl
22198t repl
22199s/'"$ac_delim"'$//
22200t delim
22201:nl
22202h
22203s/\(.\{148\}\)..*/\1/
22204t more1
22205s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22206p
22207n
22208b repl
22209:more1
22210s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22211p
22212g
22213s/.\{148\}//
22214t nl
22215:delim
22216h
22217s/\(.\{148\}\)..*/\1/
22218t more2
22219s/["\\]/\\&/g; s/^/"/; s/$/"/
22220p
22221b
22222:more2
22223s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22224p
22225g
22226s/.\{148\}//
22227t delim
22228' <conf$$subs.awk | sed '
22229/^[^""]/{
22230 N
22231 s/\n//
22232}
22233' >>$CONFIG_STATUS || ac_write_fail=1
22234rm -f conf$$subs.awk
22235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22236_ACAWK
ee134472 22237cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
22238 for (key in S) S_is_set[key] = 1
22239 FS = "\a"
22240
22241}
22242{
22243 line = $ 0
22244 nfields = split(line, field, "@")
22245 substed = 0
22246 len = length(field[1])
22247 for (i = 2; i < nfields; i++) {
22248 key = field[i]
22249 keylen = length(key)
22250 if (S_is_set[key]) {
22251 value = S[key]
22252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22253 len += length(value) + length(field[++i])
22254 substed = 1
22255 } else
22256 len += 1 + keylen
22257 }
22258
22259 print line
22260}
22261
22262_ACAWK
22263_ACEOF
22264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22265if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22266 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22267else
22268 cat
ee134472 22269fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 22270 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
22271_ACEOF
22272
12833ad8
JF
22273# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22274# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
22275# trailing colons and then remove the whole line if VPATH becomes empty
22276# (actually we leave an empty line to preserve line numbers).
22277if test "x$srcdir" = x.; then
12833ad8
JF
22278 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22279h
22280s///
22281s/^/:/
22282s/[ ]*$/:/
22283s/:\$(srcdir):/:/g
22284s/:\${srcdir}:/:/g
22285s/:@srcdir@:/:/g
22286s/^:*//
9c60689e 22287s/:*$//
12833ad8
JF
22288x
22289s/\(=[ ]*\).*/\1/
22290G
22291s/\n//
9c60689e
DWT
22292s/^[^=]*=[ ]*$//
22293}'
22294fi
22295
22296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22297fi # test -n "$CONFIG_FILES"
22298
296ee9a6
JF
22299# Set up the scripts for CONFIG_HEADERS section.
22300# No need to generate them if there are no CONFIG_HEADERS.
22301# This happens for instance with `./config.status Makefile'.
22302if test -n "$CONFIG_HEADERS"; then
22303cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22304BEGIN {
22305_ACEOF
22306
22307# Transform confdefs.h into an awk script `defines.awk', embedded as
22308# here-document in config.status, that substitutes the proper values into
22309# config.h.in to produce config.h.
22310
22311# Create a delimiter string that does not exist in confdefs.h, to ease
22312# handling of long lines.
22313ac_delim='%!_!# '
22314for ac_last_try in false false :; do
22315 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22316 if test -z "$ac_tt"; then
22317 break
22318 elif $ac_last_try; then
22319 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22320 else
22321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22322 fi
22323done
22324
22325# For the awk script, D is an array of macro values keyed by name,
22326# likewise P contains macro parameters if any. Preserve backslash
22327# newline sequences.
22328
22329ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22330sed -n '
22331s/.\{148\}/&'"$ac_delim"'/g
22332t rset
22333:rset
22334s/^[ ]*#[ ]*define[ ][ ]*/ /
22335t def
22336d
22337:def
22338s/\\$//
22339t bsnl
22340s/["\\]/\\&/g
22341s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22342D["\1"]=" \3"/p
22343s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22344d
22345:bsnl
22346s/["\\]/\\&/g
22347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22348D["\1"]=" \3\\\\\\n"\\/p
22349t cont
22350s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22351t cont
22352d
22353:cont
22354n
22355s/.\{148\}/&'"$ac_delim"'/g
22356t clear
22357:clear
22358s/\\$//
22359t bsnlc
22360s/["\\]/\\&/g; s/^/"/; s/$/"/p
22361d
22362:bsnlc
22363s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22364b cont
22365' <confdefs.h | sed '
22366s/'"$ac_delim"'/"\\\
22367"/g' >>$CONFIG_STATUS || ac_write_fail=1
22368
22369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22370 for (key in D) D_is_set[key] = 1
22371 FS = "\a"
22372}
22373/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22374 line = \$ 0
22375 split(line, arg, " ")
22376 if (arg[1] == "#") {
22377 defundef = arg[2]
22378 mac1 = arg[3]
22379 } else {
22380 defundef = substr(arg[1], 2)
22381 mac1 = arg[2]
22382 }
22383 split(mac1, mac2, "(") #)
22384 macro = mac2[1]
22385 prefix = substr(line, 1, index(line, defundef) - 1)
22386 if (D_is_set[macro]) {
22387 # Preserve the white space surrounding the "#".
22388 print prefix "define", macro P[macro] D[macro]
22389 next
22390 } else {
22391 # Replace #undef with comments. This is necessary, for example,
22392 # in the case of _POSIX_SOURCE, which is predefined and required
22393 # on some systems where configure will not decide to define it.
22394 if (defundef == "undef") {
22395 print "/*", prefix defundef, macro, "*/"
22396 next
22397 }
22398 }
22399}
22400{ print }
22401_ACAWK
22402_ACEOF
22403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22404 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22405fi # test -n "$CONFIG_HEADERS"
22406
9c60689e 22407
296ee9a6 22408eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
22409shift
22410for ac_tag
22411do
22412 case $ac_tag in
22413 :[FHLC]) ac_mode=$ac_tag; continue;;
22414 esac
22415 case $ac_mode$ac_tag in
22416 :[FHL]*:*);;
ee134472 22417 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
22418 :[FH]-) ac_tag=-:-;;
22419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22420 esac
22421 ac_save_IFS=$IFS
22422 IFS=:
22423 set x $ac_tag
22424 IFS=$ac_save_IFS
22425 shift
22426 ac_file=$1
22427 shift
22428
22429 case $ac_mode in
22430 :L) ac_source=$1;;
22431 :[FH])
22432 ac_file_inputs=
22433 for ac_f
22434 do
22435 case $ac_f in
ee134472 22436 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
22437 *) # Look for the file first in the build tree, then in the source tree
22438 # (if the path is not absolute). The absolute path cannot be DOS-style,
22439 # because $ac_f cannot contain `:'.
22440 test -f "$ac_f" ||
22441 case $ac_f in
22442 [\\/$]*) false;;
22443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22444 esac ||
ee134472 22445 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
22446 esac
22447 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22448 as_fn_append ac_file_inputs " '$ac_f'"
22449 done
22450
22451 # Let's still pretend it is `configure' which instantiates (i.e., don't
22452 # use $as_me), people would be surprised to read:
22453 # /* config.h. Generated by config.status. */
22454 configure_input='Generated from '`
22455 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22456 `' by configure.'
22457 if test x"$ac_file" != x-; then
22458 configure_input="$ac_file. $configure_input"
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22460$as_echo "$as_me: creating $ac_file" >&6;}
22461 fi
22462 # Neutralize special characters interpreted by sed in replacement strings.
22463 case $configure_input in #(
22464 *\&* | *\|* | *\\* )
22465 ac_sed_conf_input=`$as_echo "$configure_input" |
22466 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22467 *) ac_sed_conf_input=$configure_input;;
22468 esac
22469
22470 case $ac_tag in
ee134472
JF
22471 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
22473 esac
22474 ;;
22475 esac
22476
22477 ac_dir=`$as_dirname -- "$ac_file" ||
22478$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22479 X"$ac_file" : 'X\(//\)[^/]' \| \
22480 X"$ac_file" : 'X\(//\)$' \| \
22481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22482$as_echo X"$ac_file" |
22483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22484 s//\1/
22485 q
22486 }
22487 /^X\(\/\/\)[^/].*/{
22488 s//\1/
22489 q
22490 }
22491 /^X\(\/\/\)$/{
22492 s//\1/
22493 q
22494 }
22495 /^X\(\/\).*/{
22496 s//\1/
22497 q
22498 }
22499 s/.*/./; q'`
22500 as_dir="$ac_dir"; as_fn_mkdir_p
22501 ac_builddir=.
22502
22503case "$ac_dir" in
22504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22505*)
22506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22507 # A ".." for each directory in $ac_dir_suffix.
22508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22509 case $ac_top_builddir_sub in
22510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22512 esac ;;
22513esac
22514ac_abs_top_builddir=$ac_pwd
22515ac_abs_builddir=$ac_pwd$ac_dir_suffix
22516# for backward compatibility:
22517ac_top_builddir=$ac_top_build_prefix
35fa52c0 22518
9c60689e
DWT
22519case $srcdir in
22520 .) # We are building in place.
22521 ac_srcdir=.
22522 ac_top_srcdir=$ac_top_builddir_sub
22523 ac_abs_top_srcdir=$ac_pwd ;;
22524 [\\/]* | ?:[\\/]* ) # Absolute name.
22525 ac_srcdir=$srcdir$ac_dir_suffix;
22526 ac_top_srcdir=$srcdir
22527 ac_abs_top_srcdir=$srcdir ;;
22528 *) # Relative name.
22529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22530 ac_top_srcdir=$ac_top_build_prefix$srcdir
22531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22532esac
22533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
22534
22535
9c60689e
DWT
22536 case $ac_mode in
22537 :F)
22538 #
22539 # CONFIG_FILE
22540 #
35fa52c0 22541
9c60689e
DWT
22542 case $INSTALL in
22543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22544 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22545 esac
66170b30
JF
22546 ac_MKDIR_P=$MKDIR_P
22547 case $MKDIR_P in
22548 [\\/$]* | ?:[\\/]* ) ;;
22549 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22550 esac
9c60689e 22551_ACEOF
35fa52c0 22552
9c60689e
DWT
22553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22554# If the template does not know about datarootdir, expand it.
22555# FIXME: This hack should be removed a few years after 2.60.
22556ac_datarootdir_hack=; ac_datarootdir_seen=
22557ac_sed_dataroot='
22558/datarootdir/ {
22559 p
22560 q
22561}
22562/@datadir@/p
22563/@docdir@/p
22564/@infodir@/p
22565/@localedir@/p
22566/@mandir@/p'
22567case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22568*datarootdir*) ac_datarootdir_seen=yes;;
22569*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22571$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22572_ACEOF
22573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22574 ac_datarootdir_hack='
22575 s&@datadir@&$datadir&g
22576 s&@docdir@&$docdir&g
22577 s&@infodir@&$infodir&g
22578 s&@localedir@&$localedir&g
22579 s&@mandir@&$mandir&g
22580 s&\\\${datarootdir}&$datarootdir&g' ;;
22581esac
22582_ACEOF
35fa52c0 22583
9c60689e
DWT
22584# Neutralize VPATH when `$srcdir' = `.'.
22585# Shell code in configure.ac might set extrasub.
22586# FIXME: do we really want to maintain this feature?
22587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22588ac_sed_extra="$ac_vpsub
22589$extrasub
22590_ACEOF
22591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22592:t
22593/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22594s|@configure_input@|$ac_sed_conf_input|;t t
22595s&@top_builddir@&$ac_top_builddir_sub&;t t
22596s&@top_build_prefix@&$ac_top_build_prefix&;t t
22597s&@srcdir@&$ac_srcdir&;t t
22598s&@abs_srcdir@&$ac_abs_srcdir&;t t
22599s&@top_srcdir@&$ac_top_srcdir&;t t
22600s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22601s&@builddir@&$ac_builddir&;t t
22602s&@abs_builddir@&$ac_abs_builddir&;t t
22603s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22604s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22605s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22606$ac_datarootdir_hack
22607"
ee134472
JF
22608eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22609 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22610
22611test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22612 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22614 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22616which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22617$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22618which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22619
ee134472 22620 rm -f "$ac_tmp/stdin"
9c60689e 22621 case $ac_file in
ee134472
JF
22622 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22623 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22624 esac \
12833ad8 22625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22626 ;;
296ee9a6
JF
22627 :H)
22628 #
22629 # CONFIG_HEADER
22630 #
22631 if test x"$ac_file" != x-; then
22632 {
22633 $as_echo "/* $configure_input */" \
22634 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22635 } >"$ac_tmp/config.h" \
22636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22637 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22639$as_echo "$as_me: $ac_file is unchanged" >&6;}
22640 else
22641 rm -f "$ac_file"
22642 mv "$ac_tmp/config.h" "$ac_file" \
22643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22644 fi
22645 else
22646 $as_echo "/* $configure_input */" \
22647 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22648 || as_fn_error $? "could not create -" "$LINENO" 5
22649 fi
22650# Compute "$ac_file"'s index in $config_headers.
22651_am_arg="$ac_file"
22652_am_stamp_count=1
22653for _am_header in $config_headers :; do
22654 case $_am_header in
22655 $_am_arg | $_am_arg:* )
22656 break ;;
22657 * )
22658 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22659 esac
22660done
22661echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22662$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22663 X"$_am_arg" : 'X\(//\)[^/]' \| \
22664 X"$_am_arg" : 'X\(//\)$' \| \
22665 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22666$as_echo X"$_am_arg" |
22667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22668 s//\1/
22669 q
22670 }
22671 /^X\(\/\/\)[^/].*/{
22672 s//\1/
22673 q
22674 }
22675 /^X\(\/\/\)$/{
22676 s//\1/
22677 q
22678 }
22679 /^X\(\/\).*/{
22680 s//\1/
22681 q
22682 }
22683 s/.*/./; q'`/stamp-h$_am_stamp_count
22684 ;;
35fa52c0 22685
9c60689e
DWT
22686 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22687$as_echo "$as_me: executing $ac_file commands" >&6;}
22688 ;;
22689 esac
35fa52c0 22690
35fa52c0 22691
9c60689e 22692 case $ac_file$ac_mode in
66170b30
JF
22693 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22694 # Older Autoconf quotes --file arguments for eval, but not when files
22695 # are listed without --file. Let's play safe and only enable the eval
22696 # if we detect the quoting.
22697 case $CONFIG_FILES in
22698 *\'*) eval set x "$CONFIG_FILES" ;;
22699 *) set x $CONFIG_FILES ;;
22700 esac
22701 shift
22702 for mf
22703 do
22704 # Strip MF so we end up with the name of the file.
22705 mf=`echo "$mf" | sed -e 's/:.*$//'`
22706 # Check whether this is an Automake generated Makefile or not.
22707 # We used to match only the files named 'Makefile.in', but
22708 # some people rename them; so instead we look at the file content.
22709 # Grep'ing the first line is not enough: some people post-process
22710 # each Makefile.in and add a new line on top of each file to say so.
22711 # Grep'ing the whole file is not good either: AIX grep has a line
22712 # limit of 2048, but all sed's we know have understand at least 4000.
22713 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22714 dirpart=`$as_dirname -- "$mf" ||
22715$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22716 X"$mf" : 'X\(//\)[^/]' \| \
22717 X"$mf" : 'X\(//\)$' \| \
22718 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22719$as_echo X"$mf" |
22720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22721 s//\1/
22722 q
22723 }
22724 /^X\(\/\/\)[^/].*/{
22725 s//\1/
22726 q
22727 }
22728 /^X\(\/\/\)$/{
22729 s//\1/
22730 q
22731 }
22732 /^X\(\/\).*/{
22733 s//\1/
22734 q
22735 }
22736 s/.*/./; q'`
22737 else
22738 continue
22739 fi
22740 # Extract the definition of DEPDIR, am__include, and am__quote
22741 # from the Makefile without running 'make'.
22742 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22743 test -z "$DEPDIR" && continue
22744 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22745 test -z "am__include" && continue
22746 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22747 # Find all dependency output files, they are included files with
22748 # $(DEPDIR) in their names. We invoke sed twice because it is the
22749 # simplest approach to changing $(DEPDIR) to its actual value in the
22750 # expansion.
22751 for file in `sed -n "
22752 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22753 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22754 # Make sure the directory exists.
22755 test -f "$dirpart/$file" && continue
22756 fdir=`$as_dirname -- "$file" ||
22757$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758 X"$file" : 'X\(//\)[^/]' \| \
22759 X"$file" : 'X\(//\)$' \| \
22760 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22761$as_echo X"$file" |
22762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22763 s//\1/
22764 q
22765 }
22766 /^X\(\/\/\)[^/].*/{
22767 s//\1/
22768 q
22769 }
22770 /^X\(\/\/\)$/{
22771 s//\1/
22772 q
22773 }
22774 /^X\(\/\).*/{
22775 s//\1/
22776 q
22777 }
22778 s/.*/./; q'`
22779 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22780 # echo "creating $dirpart/$file"
22781 echo '# dummy' > "$dirpart/$file"
22782 done
22783 done
22784}
22785 ;;
9c60689e
DWT
22786 "libtool":C)
22787
22788 # See if we are running on zsh, and set the options which allow our
22789 # commands through without removal of \ escapes.
22790 if test -n "${ZSH_VERSION+set}" ; then
22791 setopt NO_GLOB_SUBST
35fa52c0 22792 fi
35fa52c0 22793
9c60689e
DWT
22794 cfgfile="${ofile}T"
22795 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22796 $RM "$cfgfile"
35fa52c0 22797
9c60689e
DWT
22798 cat <<_LT_EOF >> "$cfgfile"
22799#! $SHELL
35fa52c0 22800
9c60689e
DWT
22801# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22802# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22804# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22805#
22806# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
53ba6704
JF
22807# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22808# Foundation, Inc.
9c60689e
DWT
22809# Written by Gordon Matzigkeit, 1996
22810#
22811# This file is part of GNU Libtool.
22812#
22813# GNU Libtool is free software; you can redistribute it and/or
22814# modify it under the terms of the GNU General Public License as
22815# published by the Free Software Foundation; either version 2 of
22816# the License, or (at your option) any later version.
22817#
22818# As a special exception to the GNU General Public License,
22819# if you distribute this file as part of a program or library that
22820# is built using GNU Libtool, you may include this file under the
22821# same distribution terms that you use for the rest of that program.
22822#
22823# GNU Libtool is distributed in the hope that it will be useful,
22824# but WITHOUT ANY WARRANTY; without even the implied warranty of
22825# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22826# GNU General Public License for more details.
22827#
22828# You should have received a copy of the GNU General Public License
22829# along with GNU Libtool; see the file COPYING. If not, a copy
22830# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22831# obtained by writing to the Free Software Foundation, Inc.,
22832# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35fa52c0 22833
35fa52c0 22834
9c60689e
DWT
22835# The names of the tagged configurations supported by this script.
22836available_tags="CXX "
35fa52c0 22837
9c60689e 22838# ### BEGIN LIBTOOL CONFIG
35fa52c0 22839
9c60689e
DWT
22840# Which release of libtool.m4 was used?
22841macro_version=$macro_version
22842macro_revision=$macro_revision
35fa52c0 22843
9c60689e
DWT
22844# Whether or not to build static libraries.
22845build_old_libs=$enable_static
35fa52c0 22846
549f29b5
DWT
22847# Whether or not to build shared libraries.
22848build_libtool_libs=$enable_shared
22849
9c60689e
DWT
22850# What type of objects to build.
22851pic_mode=$pic_mode
35fa52c0 22852
9c60689e
DWT
22853# Whether or not to optimize for fast installation.
22854fast_install=$enable_fast_install
35fa52c0 22855
ee134472
JF
22856# Shell to use when invoking shell scripts.
22857SHELL=$lt_SHELL
22858
22859# An echo program that protects backslashes.
22860ECHO=$lt_ECHO
22861
53ba6704
JF
22862# The PATH separator for the build system.
22863PATH_SEPARATOR=$lt_PATH_SEPARATOR
22864
9c60689e
DWT
22865# The host system.
22866host_alias=$host_alias
22867host=$host
22868host_os=$host_os
35fa52c0 22869
9c60689e
DWT
22870# The build system.
22871build_alias=$build_alias
22872build=$build
22873build_os=$build_os
22874
22875# A sed program that does not truncate output.
22876SED=$lt_SED
22877
22878# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22879Xsed="\$SED -e 1s/^X//"
22880
22881# A grep program that handles long lines.
22882GREP=$lt_GREP
22883
22884# An ERE matcher.
22885EGREP=$lt_EGREP
22886
22887# A literal string matcher.
22888FGREP=$lt_FGREP
22889
22890# A BSD- or MS-compatible name lister.
22891NM=$lt_NM
22892
22893# Whether we need soft or hard links.
22894LN_S=$lt_LN_S
22895
22896# What is the maximum length of a command?
22897max_cmd_len=$max_cmd_len
22898
22899# Object file suffix (normally "o").
22900objext=$ac_objext
22901
22902# Executable file suffix (normally "").
22903exeext=$exeext
22904
22905# whether the shell understands "unset".
22906lt_unset=$lt_unset
22907
22908# turn spaces into newlines.
22909SP2NL=$lt_lt_SP2NL
22910
22911# turn newlines into spaces.
22912NL2SP=$lt_lt_NL2SP
22913
ee134472
JF
22914# convert \$build file names to \$host format.
22915to_host_file_cmd=$lt_cv_to_host_file_cmd
22916
22917# convert \$build files to toolchain format.
22918to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
22919
22920# An object symbol dumper.
22921OBJDUMP=$lt_OBJDUMP
22922
22923# Method to check whether dependent libraries are shared objects.
22924deplibs_check_method=$lt_deplibs_check_method
22925
ee134472 22926# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
22927file_magic_cmd=$lt_file_magic_cmd
22928
ee134472
JF
22929# How to find potential files when deplibs_check_method = "file_magic".
22930file_magic_glob=$lt_file_magic_glob
22931
22932# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22933want_nocaseglob=$lt_want_nocaseglob
22934
22935# DLL creation program.
22936DLLTOOL=$lt_DLLTOOL
22937
22938# Command to associate shared and link libraries.
22939sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22940
9c60689e
DWT
22941# The archiver.
22942AR=$lt_AR
ee134472
JF
22943
22944# Flags to create an archive.
9c60689e
DWT
22945AR_FLAGS=$lt_AR_FLAGS
22946
ee134472
JF
22947# How to feed a file listing to the archiver.
22948archiver_list_spec=$lt_archiver_list_spec
22949
9c60689e
DWT
22950# A symbol stripping program.
22951STRIP=$lt_STRIP
22952
22953# Commands used to install an old-style archive.
22954RANLIB=$lt_RANLIB
22955old_postinstall_cmds=$lt_old_postinstall_cmds
22956old_postuninstall_cmds=$lt_old_postuninstall_cmds
22957
ee134472
JF
22958# Whether to use a lock for old archive extraction.
22959lock_old_archive_extraction=$lock_old_archive_extraction
22960
9c60689e
DWT
22961# A C compiler.
22962LTCC=$lt_CC
22963
22964# LTCC compiler flags.
22965LTCFLAGS=$lt_CFLAGS
22966
22967# Take the output of nm and produce a listing of raw symbols and C names.
22968global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22969
22970# Transform the output of nm in a proper C declaration.
22971global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22972
22973# Transform the output of nm in a C name address pair.
22974global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22975
22976# Transform the output of nm in a C name address pair when lib prefix is needed.
22977global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22978
ee134472
JF
22979# Specify filename containing input files for \$NM.
22980nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 22981
ee134472
JF
22982# The root where to search for dependent libraries,and in which our libraries should be installed.
22983lt_sysroot=$lt_sysroot
9c60689e 22984
ee134472
JF
22985# The name of the directory that contains temporary libtool files.
22986objdir=$objdir
9c60689e
DWT
22987
22988# Used to examine libraries when file_magic_cmd begins with "file".
22989MAGIC_CMD=$MAGIC_CMD
22990
22991# Must we lock files when doing compilation?
22992need_locks=$lt_need_locks
22993
ee134472
JF
22994# Manifest tool.
22995MANIFEST_TOOL=$lt_MANIFEST_TOOL
22996
9c60689e
DWT
22997# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22998DSYMUTIL=$lt_DSYMUTIL
22999
23000# Tool to change global to local symbols on Mac OS X.
23001NMEDIT=$lt_NMEDIT
23002
23003# Tool to manipulate fat objects and archives on Mac OS X.
23004LIPO=$lt_LIPO
23005
23006# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23007OTOOL=$lt_OTOOL
23008
23009# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23010OTOOL64=$lt_OTOOL64
23011
23012# Old archive suffix (normally "a").
23013libext=$libext
23014
23015# Shared library suffix (normally ".so").
23016shrext_cmds=$lt_shrext_cmds
35fa52c0 23017
9c60689e
DWT
23018# The commands to extract the exported symbol list from a shared archive.
23019extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23020
9c60689e
DWT
23021# Variables whose values should be saved in libtool wrapper scripts and
23022# restored at link time.
23023variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23024
9c60689e
DWT
23025# Do we need the "lib" prefix for modules?
23026need_lib_prefix=$need_lib_prefix
35fa52c0 23027
9c60689e
DWT
23028# Do we need a version for libraries?
23029need_version=$need_version
35fa52c0 23030
9c60689e
DWT
23031# Library versioning type.
23032version_type=$version_type
35fa52c0 23033
9c60689e
DWT
23034# Shared library runtime path variable.
23035runpath_var=$runpath_var
35fa52c0 23036
9c60689e
DWT
23037# Shared library path variable.
23038shlibpath_var=$shlibpath_var
35fa52c0 23039
9c60689e
DWT
23040# Is shlibpath searched before the hard-coded library search path?
23041shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23042
9c60689e
DWT
23043# Format of library name prefix.
23044libname_spec=$lt_libname_spec
35fa52c0 23045
9c60689e
DWT
23046# List of archive names. First name is the real one, the rest are links.
23047# The last name is the one that the linker finds with -lNAME
23048library_names_spec=$lt_library_names_spec
dbadc56a 23049
9c60689e
DWT
23050# The coded name of the library, if different from the real name.
23051soname_spec=$lt_soname_spec
dbadc56a 23052
ee134472
JF
23053# Permission mode override for installation of shared libraries.
23054install_override_mode=$lt_install_override_mode
23055
9c60689e
DWT
23056# Command to use after installation of a shared archive.
23057postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23058
9c60689e
DWT
23059# Command to use after uninstallation of a shared archive.
23060postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23061
9c60689e
DWT
23062# Commands used to finish a libtool library installation in a directory.
23063finish_cmds=$lt_finish_cmds
35fa52c0 23064
9c60689e
DWT
23065# As "finish_cmds", except a single script fragment to be evaled but
23066# not shown.
23067finish_eval=$lt_finish_eval
35fa52c0 23068
9c60689e
DWT
23069# Whether we should hardcode library paths into libraries.
23070hardcode_into_libs=$hardcode_into_libs
dbadc56a 23071
9c60689e
DWT
23072# Compile-time system search path for libraries.
23073sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 23074
9c60689e
DWT
23075# Run-time system search path for libraries.
23076sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dbadc56a 23077
9c60689e
DWT
23078# Whether dlopen is supported.
23079dlopen_support=$enable_dlopen
dbadc56a 23080
9c60689e
DWT
23081# Whether dlopen of programs is supported.
23082dlopen_self=$enable_dlopen_self
35fa52c0 23083
9c60689e
DWT
23084# Whether dlopen of statically linked programs is supported.
23085dlopen_self_static=$enable_dlopen_self_static
35fa52c0 23086
9c60689e
DWT
23087# Commands to strip libraries.
23088old_striplib=$lt_old_striplib
23089striplib=$lt_striplib
35fa52c0 23090
35fa52c0 23091
9c60689e
DWT
23092# The linker used to build libraries.
23093LD=$lt_LD
dbadc56a 23094
ee134472
JF
23095# How to create reloadable object files.
23096reload_flag=$lt_reload_flag
23097reload_cmds=$lt_reload_cmds
23098
9c60689e
DWT
23099# Commands used to build an old-style archive.
23100old_archive_cmds=$lt_old_archive_cmds
dbadc56a 23101
9c60689e
DWT
23102# A language specific compiler.
23103CC=$lt_compiler
35fa52c0 23104
9c60689e
DWT
23105# Is the compiler the GNU compiler?
23106with_gcc=$GCC
dbadc56a 23107
9c60689e
DWT
23108# Compiler flag to turn off builtin functions.
23109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 23110
9c60689e
DWT
23111# Additional compiler flags for building library objects.
23112pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 23113
ee134472
JF
23114# How to pass a linker flag through the compiler.
23115wl=$lt_lt_prog_compiler_wl
23116
9c60689e
DWT
23117# Compiler flag to prevent dynamic linking.
23118link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 23119
9c60689e
DWT
23120# Does compiler simultaneously support -c and -o options?
23121compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 23122
9c60689e
DWT
23123# Whether or not to add -lc for building shared libraries.
23124build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 23125
9c60689e
DWT
23126# Whether or not to disallow shared libs when runtime libs are static.
23127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 23128
9c60689e
DWT
23129# Compiler flag to allow reflexive dlopens.
23130export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 23131
9c60689e
DWT
23132# Compiler flag to generate shared objects directly from archives.
23133whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 23134
9c60689e
DWT
23135# Whether the compiler copes with passing no objects directly.
23136compiler_needs_object=$lt_compiler_needs_object
dbadc56a 23137
9c60689e
DWT
23138# Create an old-style archive from a shared archive.
23139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 23140
9c60689e
DWT
23141# Create a temporary old-style archive to link instead of a shared archive.
23142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 23143
9c60689e
DWT
23144# Commands used to build a shared archive.
23145archive_cmds=$lt_archive_cmds
23146archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 23147
9c60689e
DWT
23148# Commands used to build a loadable module if different from building
23149# a shared archive.
23150module_cmds=$lt_module_cmds
23151module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 23152
9c60689e
DWT
23153# Whether we are building with GNU ld or not.
23154with_gnu_ld=$lt_with_gnu_ld
6b66678a 23155
9c60689e
DWT
23156# Flag that allows shared libraries with undefined symbols to be built.
23157allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 23158
9c60689e
DWT
23159# Flag that enforces no undefined symbols.
23160no_undefined_flag=$lt_no_undefined_flag
6b66678a 23161
9c60689e
DWT
23162# Flag to hardcode \$libdir into a binary during linking.
23163# This must work even if \$libdir does not exist
23164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 23165
9c60689e
DWT
23166# Whether we need a single "-rpath" flag with a separated argument.
23167hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 23168
9c60689e
DWT
23169# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23170# DIR into the resulting binary.
23171hardcode_direct=$hardcode_direct
6b66678a 23172
9c60689e
DWT
23173# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23174# DIR into the resulting binary and the resulting library dependency is
23175# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23176# library is relocated.
23177hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 23178
9c60689e
DWT
23179# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23180# into the resulting binary.
23181hardcode_minus_L=$hardcode_minus_L
6b66678a 23182
9c60689e
DWT
23183# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23184# into the resulting binary.
23185hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 23186
9c60689e
DWT
23187# Set to "yes" if building a shared library automatically hardcodes DIR
23188# into the library and all subsequent libraries and executables linked
23189# against it.
23190hardcode_automatic=$hardcode_automatic
6b66678a 23191
9c60689e
DWT
23192# Set to yes if linker adds runtime paths of dependent libraries
23193# to runtime path list.
23194inherit_rpath=$inherit_rpath
6b66678a 23195
9c60689e
DWT
23196# Whether libtool must link a program against all its dependency libraries.
23197link_all_deplibs=$link_all_deplibs
23198
9c60689e
DWT
23199# Set to "yes" if exported symbols are required.
23200always_export_symbols=$always_export_symbols
6b66678a 23201
9c60689e
DWT
23202# The commands to list exported symbols.
23203export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 23204
9c60689e
DWT
23205# Symbols that should not be listed in the preloaded symbols.
23206exclude_expsyms=$lt_exclude_expsyms
6b66678a 23207
9c60689e
DWT
23208# Symbols that must always be exported.
23209include_expsyms=$lt_include_expsyms
6b66678a 23210
9c60689e
DWT
23211# Commands necessary for linking programs (against libraries) with templates.
23212prelink_cmds=$lt_prelink_cmds
6b66678a 23213
ee134472
JF
23214# Commands necessary for finishing linking programs.
23215postlink_cmds=$lt_postlink_cmds
23216
9c60689e
DWT
23217# Specify filename containing input files.
23218file_list_spec=$lt_file_list_spec
6b66678a 23219
9c60689e
DWT
23220# How to hardcode a shared library path into an executable.
23221hardcode_action=$hardcode_action
23222
23223# The directories searched by this compiler when creating a shared library.
23224compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23225
23226# Dependencies to place before and after the objects being linked to
23227# create a shared library.
23228predep_objects=$lt_predep_objects
23229postdep_objects=$lt_postdep_objects
23230predeps=$lt_predeps
23231postdeps=$lt_postdeps
23232
23233# The library search path used internally by the compiler when linking
23234# a shared library.
23235compiler_lib_search_path=$lt_compiler_lib_search_path
23236
23237# ### END LIBTOOL CONFIG
23238
23239_LT_EOF
23240
23241 case $host_os in
23242 aix3*)
23243 cat <<\_LT_EOF >> "$cfgfile"
23244# AIX sometimes has problems with the GCC collect2 program. For some
23245# reason, if we set the COLLECT_NAMES environment variable, the problems
23246# vanish in a puff of smoke.
23247if test "X${COLLECT_NAMES+set}" != Xset; then
23248 COLLECT_NAMES=
23249 export COLLECT_NAMES
6b66678a 23250fi
9c60689e
DWT
23251_LT_EOF
23252 ;;
23253 esac
6b66678a
DWT
23254
23255
9c60689e 23256ltmain="$ac_aux_dir/ltmain.sh"
6b66678a 23257
9c60689e
DWT
23258
23259 # We use sed instead of cat because bash on DJGPP gets confused if
23260 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23261 # text mode, it properly converts lines to CR/LF. This bash problem
23262 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
23263 sed '$q' "$ltmain" >> "$cfgfile" \
23264 || (rm -f "$cfgfile"; exit 1)
23265
23266 if test x"$xsi_shell" = xyes; then
23267 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23268func_dirname ()\
23269{\
23270\ case ${1} in\
23271\ */*) func_dirname_result="${1%/*}${2}" ;;\
23272\ * ) func_dirname_result="${3}" ;;\
23273\ esac\
23274} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23275 && mv -f "$cfgfile.tmp" "$cfgfile" \
23276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23277test 0 -eq $? || _lt_function_replace_fail=:
23278
23279
23280 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23281func_basename ()\
23282{\
23283\ func_basename_result="${1##*/}"\
23284} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23285 && mv -f "$cfgfile.tmp" "$cfgfile" \
23286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23287test 0 -eq $? || _lt_function_replace_fail=:
23288
23289
23290 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23291func_dirname_and_basename ()\
23292{\
23293\ case ${1} in\
23294\ */*) func_dirname_result="${1%/*}${2}" ;;\
23295\ * ) func_dirname_result="${3}" ;;\
23296\ esac\
23297\ func_basename_result="${1##*/}"\
23298} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23299 && mv -f "$cfgfile.tmp" "$cfgfile" \
23300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23301test 0 -eq $? || _lt_function_replace_fail=:
23302
23303
23304 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23305func_stripname ()\
23306{\
23307\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23308\ # positional parameters, so assign one to ordinary parameter first.\
23309\ func_stripname_result=${3}\
23310\ func_stripname_result=${func_stripname_result#"${1}"}\
23311\ func_stripname_result=${func_stripname_result%"${2}"}\
23312} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23313 && mv -f "$cfgfile.tmp" "$cfgfile" \
23314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23315test 0 -eq $? || _lt_function_replace_fail=:
23316
23317
23318 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23319func_split_long_opt ()\
23320{\
23321\ func_split_long_opt_name=${1%%=*}\
23322\ func_split_long_opt_arg=${1#*=}\
23323} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23324 && mv -f "$cfgfile.tmp" "$cfgfile" \
23325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23326test 0 -eq $? || _lt_function_replace_fail=:
23327
23328
23329 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23330func_split_short_opt ()\
23331{\
23332\ func_split_short_opt_arg=${1#??}\
23333\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23334} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23335 && mv -f "$cfgfile.tmp" "$cfgfile" \
23336 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23337test 0 -eq $? || _lt_function_replace_fail=:
23338
23339
23340 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23341func_lo2o ()\
23342{\
23343\ case ${1} in\
23344\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23345\ *) func_lo2o_result=${1} ;;\
23346\ esac\
23347} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23348 && mv -f "$cfgfile.tmp" "$cfgfile" \
23349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23350test 0 -eq $? || _lt_function_replace_fail=:
23351
23352
23353 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23354func_xform ()\
23355{\
23356 func_xform_result=${1%.*}.lo\
23357} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23358 && mv -f "$cfgfile.tmp" "$cfgfile" \
23359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23360test 0 -eq $? || _lt_function_replace_fail=:
23361
23362
23363 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23364func_arith ()\
23365{\
23366 func_arith_result=$(( $* ))\
23367} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23368 && mv -f "$cfgfile.tmp" "$cfgfile" \
23369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23370test 0 -eq $? || _lt_function_replace_fail=:
23371
23372
23373 sed -e '/^func_len ()$/,/^} # func_len /c\
23374func_len ()\
23375{\
23376 func_len_result=${#1}\
23377} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23378 && mv -f "$cfgfile.tmp" "$cfgfile" \
23379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23380test 0 -eq $? || _lt_function_replace_fail=:
23381
23382fi
23383
23384if test x"$lt_shell_append" = xyes; then
23385 sed -e '/^func_append ()$/,/^} # func_append /c\
23386func_append ()\
23387{\
23388 eval "${1}+=\\${2}"\
23389} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23390 && mv -f "$cfgfile.tmp" "$cfgfile" \
23391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23392test 0 -eq $? || _lt_function_replace_fail=:
23393
23394
23395 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23396func_append_quoted ()\
23397{\
23398\ func_quote_for_eval "${2}"\
23399\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23400} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23401 && mv -f "$cfgfile.tmp" "$cfgfile" \
23402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23403test 0 -eq $? || _lt_function_replace_fail=:
23404
23405
23406 # Save a `func_append' function call where possible by direct use of '+='
23407 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23408 && mv -f "$cfgfile.tmp" "$cfgfile" \
23409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23410 test 0 -eq $? || _lt_function_replace_fail=:
23411else
23412 # Save a `func_append' function call even when '+=' is not available
23413 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23414 && mv -f "$cfgfile.tmp" "$cfgfile" \
23415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23416 test 0 -eq $? || _lt_function_replace_fail=:
23417fi
23418
23419if test x"$_lt_function_replace_fail" = x":"; then
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23421$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23422fi
23423
23424
23425 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
23426 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23427 chmod +x "$ofile"
23428
23429
23430 cat <<_LT_EOF >> "$ofile"
23431
23432# ### BEGIN LIBTOOL TAG CONFIG: CXX
23433
23434# The linker used to build libraries.
23435LD=$lt_LD_CXX
23436
ee134472
JF
23437# How to create reloadable object files.
23438reload_flag=$lt_reload_flag_CXX
23439reload_cmds=$lt_reload_cmds_CXX
23440
9c60689e
DWT
23441# Commands used to build an old-style archive.
23442old_archive_cmds=$lt_old_archive_cmds_CXX
23443
23444# A language specific compiler.
23445CC=$lt_compiler_CXX
23446
23447# Is the compiler the GNU compiler?
23448with_gcc=$GCC_CXX
23449
23450# Compiler flag to turn off builtin functions.
23451no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 23452
9c60689e
DWT
23453# Additional compiler flags for building library objects.
23454pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 23455
ee134472
JF
23456# How to pass a linker flag through the compiler.
23457wl=$lt_lt_prog_compiler_wl_CXX
23458
9c60689e
DWT
23459# Compiler flag to prevent dynamic linking.
23460link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 23461
9c60689e
DWT
23462# Does compiler simultaneously support -c and -o options?
23463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 23464
9c60689e
DWT
23465# Whether or not to add -lc for building shared libraries.
23466build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 23467
9c60689e
DWT
23468# Whether or not to disallow shared libs when runtime libs are static.
23469allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 23470
9c60689e
DWT
23471# Compiler flag to allow reflexive dlopens.
23472export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 23473
9c60689e
DWT
23474# Compiler flag to generate shared objects directly from archives.
23475whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 23476
9c60689e
DWT
23477# Whether the compiler copes with passing no objects directly.
23478compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 23479
9c60689e
DWT
23480# Create an old-style archive from a shared archive.
23481old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 23482
9c60689e
DWT
23483# Create a temporary old-style archive to link instead of a shared archive.
23484old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 23485
9c60689e
DWT
23486# Commands used to build a shared archive.
23487archive_cmds=$lt_archive_cmds_CXX
23488archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 23489
9c60689e
DWT
23490# Commands used to build a loadable module if different from building
23491# a shared archive.
23492module_cmds=$lt_module_cmds_CXX
23493module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 23494
9c60689e
DWT
23495# Whether we are building with GNU ld or not.
23496with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 23497
9c60689e
DWT
23498# Flag that allows shared libraries with undefined symbols to be built.
23499allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 23500
9c60689e
DWT
23501# Flag that enforces no undefined symbols.
23502no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 23503
9c60689e
DWT
23504# Flag to hardcode \$libdir into a binary during linking.
23505# This must work even if \$libdir does not exist
23506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 23507
9c60689e
DWT
23508# Whether we need a single "-rpath" flag with a separated argument.
23509hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 23510
9c60689e
DWT
23511# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23512# DIR into the resulting binary.
23513hardcode_direct=$hardcode_direct_CXX
6b66678a 23514
9c60689e
DWT
23515# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23516# DIR into the resulting binary and the resulting library dependency is
23517# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23518# library is relocated.
23519hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 23520
9c60689e
DWT
23521# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23522# into the resulting binary.
23523hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 23524
9c60689e
DWT
23525# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23526# into the resulting binary.
23527hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 23528
9c60689e
DWT
23529# Set to "yes" if building a shared library automatically hardcodes DIR
23530# into the library and all subsequent libraries and executables linked
23531# against it.
23532hardcode_automatic=$hardcode_automatic_CXX
6b66678a 23533
9c60689e
DWT
23534# Set to yes if linker adds runtime paths of dependent libraries
23535# to runtime path list.
23536inherit_rpath=$inherit_rpath_CXX
6b66678a 23537
9c60689e
DWT
23538# Whether libtool must link a program against all its dependency libraries.
23539link_all_deplibs=$link_all_deplibs_CXX
6b66678a 23540
9c60689e
DWT
23541# Set to "yes" if exported symbols are required.
23542always_export_symbols=$always_export_symbols_CXX
6b66678a 23543
9c60689e
DWT
23544# The commands to list exported symbols.
23545export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 23546
9c60689e
DWT
23547# Symbols that should not be listed in the preloaded symbols.
23548exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 23549
9c60689e
DWT
23550# Symbols that must always be exported.
23551include_expsyms=$lt_include_expsyms_CXX
6b66678a 23552
9c60689e
DWT
23553# Commands necessary for linking programs (against libraries) with templates.
23554prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23555
ee134472
JF
23556# Commands necessary for finishing linking programs.
23557postlink_cmds=$lt_postlink_cmds_CXX
23558
9c60689e
DWT
23559# Specify filename containing input files.
23560file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23561
9c60689e
DWT
23562# How to hardcode a shared library path into an executable.
23563hardcode_action=$hardcode_action_CXX
309b0535 23564
9c60689e
DWT
23565# The directories searched by this compiler when creating a shared library.
23566compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23567
9c60689e
DWT
23568# Dependencies to place before and after the objects being linked to
23569# create a shared library.
23570predep_objects=$lt_predep_objects_CXX
23571postdep_objects=$lt_postdep_objects_CXX
23572predeps=$lt_predeps_CXX
23573postdeps=$lt_postdeps_CXX
309b0535 23574
9c60689e
DWT
23575# The library search path used internally by the compiler when linking
23576# a shared library.
23577compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23578
23579# ### END LIBTOOL TAG CONFIG: CXX
23580_LT_EOF
23581
23582 ;;
23583
23584 esac
23585done # for ac_tag
23586
23587
23588as_fn_exit 0
23589_ACEOF
23590ac_clean_files=$ac_clean_files_save
23591
23592test $ac_write_fail = 0 ||
12833ad8 23593 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23594
23595
23596# configure is writing to config.log, and then calls config.status.
23597# config.status does its own redirection, appending to config.log.
23598# Unfortunately, on DOS this fails, as config.log is still kept open
23599# by configure, so config.status won't be able to write to it; its
23600# output is simply discarded. So we exec the FD to /dev/null,
23601# effectively closing config.log, so it can be properly (re)opened and
23602# appended to by config.status. When coming back to configure, we
23603# need to make the FD available again.
23604if test "$no_create" != yes; then
23605 ac_cs_success=:
23606 ac_config_status_args=
23607 test "$silent" = yes &&
23608 ac_config_status_args="$ac_config_status_args --quiet"
23609 exec 5>/dev/null
23610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23611 exec 5>>config.log
23612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23613 # would make configure fail if this is the last instruction.
12833ad8 23614 $ac_cs_success || as_fn_exit 1
309b0535 23615fi
9c60689e
DWT
23616if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23618$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23619fi
23620