]> git.saurik.com Git - cycript.git/blame_incremental - configure
Configure a better trade-off in lexer compression.
[cycript.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
4#
5# Report bugs to <saurik@saurik.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (C) 2009-2015 Jay Freeman (saurik)
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.
94as_myself=
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
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;}
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
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
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'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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
211test \$(( 1 + 1 )) = 2 || exit 1"
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 :
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
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"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371} # as_fn_mkdir_p
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
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
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
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
420# script with STATUS, using 1 if that was 0.
421as_fn_error ()
422{
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
427 fi
428 $as_echo "$as_me: error: $2" >&2
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
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
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.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547else
548 as_ln_s='cp -pR'
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
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
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
569SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
574
575# Name of the host.
576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
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
600ac_unique_file="Console.cpp"
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
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBOBJS
641SO
642LTFLAGS
643LTLIBGCC
644LTLIBTERMCAP
645LTLIBREADLINE
646CY_OBJECTIVEC_FALSE
647CY_OBJECTIVEC_TRUE
648CY_JAVA_FALSE
649CY_JAVA_TRUE
650LTOBJECTIVEC
651GNUSTEP_CONFIG
652CY_OBJECTIVEC
653LTJAVA
654CY_JAVA
655LTLIBFFI
656LIBFFI_LIBS
657LIBFFI_CFLAGS
658CY_EXECUTE_FALSE
659CY_EXECUTE_TRUE
660CY_ATTACH_FALSE
661CY_ATTACH_TRUE
662CY_CONSOLE_FALSE
663CY_CONSOLE_TRUE
664LTJAVASCRIPTCORE
665WEBKIT_LIBS
666WEBKIT_CFLAGS
667CY_EXECUTE
668PTHREAD_CFLAGS
669PTHREAD_LIBS
670PTHREAD_CC
671ax_pthread_config
672GNUTAR
673GPERF
674FLEX
675BISON
676TIME
677GIT
678PKG_CONFIG_LIBDIR
679PKG_CONFIG_PATH
680PKG_CONFIG
681HAVE_CXX11
682CXXCPP
683CPP
684LT_SYS_LIBRARY_PATH
685OTOOL64
686OTOOL
687LIPO
688NMEDIT
689DSYMUTIL
690MANIFEST_TOOL
691RANLIB
692DLLTOOL
693OBJDUMP
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702SED
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711LIBTOOL
712ac_ct_AR
713AR
714am__fastdepOBJCXX_FALSE
715am__fastdepOBJCXX_TRUE
716OBJCXXDEPMODE
717ac_ct_OBJCXX
718OBJCXXFLAGS
719OBJCXX
720am__fastdepCXX_FALSE
721am__fastdepCXX_TRUE
722CXXDEPMODE
723ac_ct_CXX
724CXXFLAGS
725CXX
726am__fastdepCC_FALSE
727am__fastdepCC_TRUE
728CCDEPMODE
729am__nodep
730AMDEPBACKSLASH
731AMDEP_FALSE
732AMDEP_TRUE
733am__quote
734am__include
735DEPDIR
736OBJEXT
737EXEEXT
738ac_ct_CC
739CPPFLAGS
740LDFLAGS
741CFLAGS
742CC
743MAINT
744MAINTAINER_MODE_FALSE
745MAINTAINER_MODE_TRUE
746AM_BACKSLASH
747AM_DEFAULT_VERBOSITY
748AM_DEFAULT_V
749AM_V
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_silent_rules
815enable_maintainer_mode
816enable_dependency_tracking
817enable_static
818enable_shared
819with_pic
820enable_fast_install
821with_aix_soname
822with_gnu_ld
823with_sysroot
824enable_libtool_lock
825enable_javascript
826enable_console
827enable_attach
828'
829 ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837CXX
838CXXFLAGS
839CCC
840OBJCXX
841OBJCXXFLAGS
842LT_SYS_LIBRARY_PATH
843CPP
844CXXCPP
845PKG_CONFIG
846PKG_CONFIG_PATH
847PKG_CONFIG_LIBDIR
848BISON
849FLEX
850GPERF
851GNUTAR
852WEBKIT_CFLAGS
853WEBKIT_LIBS
854LIBFFI_CFLAGS
855LIBFFI_LIBS
856GNUSTEP_CONFIG'
857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of Cycript 0.9:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-static[=PKGS] build static libraries [default=no]
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-javascript[=ENGINE]
1490 use a JavaScript runtime (currently the only
1491 available option for ENGINE is JavaScriptCore)
1492 [default=yes]
1493 --disable-console disable console
1494 --disable-attach disable attach
1495
1496Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-aix-soname=aix|svr4|both
1502 shared library versioning (aka "SONAME") variant to
1503 provide on AIX, [default=aix].
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1506 compiler's sysroot if not specified).
1507
1508Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
1518 OBJCXX Objective C++ compiler command
1519 OBJCXXFLAGS Objective C++ compiler flags
1520 LT_SYS_LIBRARY_PATH
1521 User-defined run-time library search path.
1522 CPP C preprocessor
1523 CXXCPP C++ preprocessor
1524 PKG_CONFIG path to pkg-config utility
1525 PKG_CONFIG_PATH
1526 directories to add to pkg-config's search path
1527 PKG_CONFIG_LIBDIR
1528 path overriding pkg-config's built-in search path
1529 BISON GNU Project parser generator (yacc replacement)
1530 FLEX the fast lexical analyser generator
1531 GPERF perfect hash function generator
1532 GNUTAR a very sticky lump of files
1533 WEBKIT_CFLAGS
1534 C compiler flags for WEBKIT, overriding pkg-config
1535 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1536 GNUSTEP_CONFIG
1537 prints information about the current gnustep installation
1538
1539Use these variables to override the choices made by `configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <saurik@saurik.com>.
1543Cycript home page: <http://www.cycript.org/>.
1544_ACEOF
1545ac_status=$?
1546fi
1547
1548if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1555
1556case "$ac_dir" in
1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558*)
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566esac
1567ac_abs_top_builddir=$ac_pwd
1568ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569# for backward compatibility:
1570ac_top_builddir=$ac_top_build_prefix
1571
1572case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585esac
1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601fi
1602
1603test -n "$ac_init_help" && exit $ac_status
1604if $ac_init_version; then
1605 cat <<\_ACEOF
1606Cycript configure 0.9
1607generated by GNU Autoconf 2.69
1608
1609Copyright (C) 2012 Free Software Foundation, Inc.
1610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612
1613Copyright (C) 2009-2015 Jay Freeman (saurik)
1614_ACEOF
1615 exit
1616fi
1617
1618## ------------------------ ##
1619## Autoconf initialization. ##
1620## ------------------------ ##
1621
1622# ac_fn_c_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_compile ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649else
1650 $as_echo "$as_me: failed program was:" >&5
1651sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658} # ac_fn_c_try_compile
1659
1660# ac_fn_cxx_try_compile LINENO
1661# ----------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_cxx_try_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_cxx_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696} # ac_fn_cxx_try_compile
1697
1698# ac_fn_objcxx_try_compile LINENO
1699# -------------------------------
1700# Try to compile conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_objcxx_try_compile ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext
1705 if { { ac_try="$ac_compile"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_objcxx_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734} # ac_fn_objcxx_try_compile
1735
1736# ac_fn_c_try_link LINENO
1737# -----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_link ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest$ac_exeext
1743 if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest$ac_exeext && {
1762 test "$cross_compiling" = yes ||
1763 test -x conftest$ac_exeext
1764 }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771fi
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_link
1781
1782# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists and can be compiled using the include files in
1785# INCLUDES, setting the cache variable VAR accordingly.
1786ac_fn_c_check_header_compile ()
1787{
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
1791if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800 eval "$3=yes"
1801else
1802 eval "$3=no"
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_header_compile
1812
1813# ac_fn_c_try_cpp LINENO
1814# ----------------------
1815# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_cpp ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_cpp conftest.$ac_ext"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } > conftest.i && {
1835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 }; then :
1838 ac_retval=0
1839else
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_cpp
1849
1850# ac_fn_c_try_run LINENO
1851# ----------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1853# that executables *can* be run.
1854ac_fn_c_try_run ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>&5
1865 ac_status=$?
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1868 { { case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_try") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; }; }; then :
1878 ac_retval=0
1879else
1880 $as_echo "$as_me: program exited with status $ac_status" >&5
1881 $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=$ac_status
1885fi
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_run
1891
1892# ac_fn_c_check_func LINENO FUNC VAR
1893# ----------------------------------
1894# Tests whether FUNC exists, setting the cache variable VAR accordingly
1895ac_fn_c_check_func ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899$as_echo_n "checking for $2... " >&6; }
1900if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h. */
1905/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1907#define $2 innocuous_$2
1908
1909/* System header to define __stub macros and hopefully few prototypes,
1910 which can conflict with char $2 (); below.
1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912 <limits.h> exists even on freestanding compilers. */
1913
1914#ifdef __STDC__
1915# include <limits.h>
1916#else
1917# include <assert.h>
1918#endif
1919
1920#undef $2
1921
1922/* Override any GCC internal prototype to avoid an error.
1923 Use char because int might match the return type of a GCC
1924 builtin and then its argument prototype would still apply. */
1925#ifdef __cplusplus
1926extern "C"
1927#endif
1928char $2 ();
1929/* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932#if defined __stub_$2 || defined __stub___$2
1933choke me
1934#endif
1935
1936int
1937main ()
1938{
1939return $2 ();
1940 ;
1941 return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_link "$LINENO"; then :
1945 eval "$3=yes"
1946else
1947 eval "$3=no"
1948fi
1949rm -f core conftest.err conftest.$ac_objext \
1950 conftest$ac_exeext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_func
1958
1959# ac_fn_cxx_try_cpp LINENO
1960# ------------------------
1961# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962ac_fn_cxx_try_cpp ()
1963{
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1966case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969esac
1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971$as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } > conftest.i && {
1981 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1982 test ! -s conftest.err
1983 }; then :
1984 ac_retval=0
1985else
1986 $as_echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990fi
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1993
1994} # ac_fn_cxx_try_cpp
1995
1996# ac_fn_cxx_try_link LINENO
1997# -------------------------
1998# Try to link conftest.$ac_ext, and return whether this succeeded.
1999ac_fn_cxx_try_link ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 rm -f conftest.$ac_objext conftest$ac_exeext
2003 if { { ac_try="$ac_link"
2004case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007esac
2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009$as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>conftest.err
2011 ac_status=$?
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2016 fi
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && {
2019 test -z "$ac_cxx_werror_flag" ||
2020 test ! -s conftest.err
2021 } && test -s conftest$ac_exeext && {
2022 test "$cross_compiling" = yes ||
2023 test -x conftest$ac_exeext
2024 }; then :
2025 ac_retval=0
2026else
2027 $as_echo "$as_me: failed program was:" >&5
2028sed 's/^/| /' conftest.$ac_ext >&5
2029
2030 ac_retval=1
2031fi
2032 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2033 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2034 # interfere with the next link command; also delete a directory that is
2035 # left behind by Apple's compiler. We do this before executing the actions.
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status $ac_retval
2039
2040} # ac_fn_cxx_try_link
2041
2042# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2043# ---------------------------------------------------------
2044# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2045# the include files in INCLUDES and setting the cache variable VAR
2046# accordingly.
2047ac_fn_cxx_check_header_mongrel ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if eval \${$3+:} false; then :
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052$as_echo_n "checking for $2... " >&6; }
2053if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055fi
2056eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059else
2060 # Is the header compilable?
2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2062$as_echo_n "checking $2 usability... " >&6; }
2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$4
2066#include <$2>
2067_ACEOF
2068if ac_fn_cxx_try_compile "$LINENO"; then :
2069 ac_header_compiler=yes
2070else
2071 ac_header_compiler=no
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2075$as_echo "$ac_header_compiler" >&6; }
2076
2077# Is the header present?
2078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2079$as_echo_n "checking $2 presence... " >&6; }
2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082#include <$2>
2083_ACEOF
2084if ac_fn_cxx_try_cpp "$LINENO"; then :
2085 ac_header_preproc=yes
2086else
2087 ac_header_preproc=no
2088fi
2089rm -f conftest.err conftest.i conftest.$ac_ext
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2091$as_echo "$ac_header_preproc" >&6; }
2092
2093# So? What about this header?
2094case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2095 yes:no: )
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2097$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2099$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2100 ;;
2101 no:yes:* )
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2103$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2105$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2107$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2109$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2111$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112( $as_echo "## -------------------------------- ##
2113## Report this to saurik@saurik.com ##
2114## -------------------------------- ##"
2115 ) | sed "s/^/$as_me: WARNING: /" >&2
2116 ;;
2117esac
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119$as_echo_n "checking for $2... " >&6; }
2120if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122else
2123 eval "$3=\$ac_header_compiler"
2124fi
2125eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127$as_echo "$ac_res" >&6; }
2128fi
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131} # ac_fn_cxx_check_header_mongrel
2132
2133# ac_fn_objcxx_try_link LINENO
2134# ----------------------------
2135# Try to link conftest.$ac_ext, and return whether this succeeded.
2136ac_fn_objcxx_try_link ()
2137{
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext conftest$ac_exeext
2140 if { { ac_try="$ac_link"
2141case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144esac
2145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146$as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_link") 2>conftest.err
2148 ac_status=$?
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2153 fi
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_objcxx_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest$ac_exeext && {
2159 test "$cross_compiling" = yes ||
2160 test -x conftest$ac_exeext
2161 }; then :
2162 ac_retval=0
2163else
2164 $as_echo "$as_me: failed program was:" >&5
2165sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 ac_retval=1
2168fi
2169 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2170 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2171 # interfere with the next link command; also delete a directory that is
2172 # left behind by Apple's compiler. We do this before executing the actions.
2173 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2176
2177} # ac_fn_objcxx_try_link
2178cat >config.log <<_ACEOF
2179This file contains any messages produced by compilers while
2180running configure, to aid debugging if configure makes a mistake.
2181
2182It was created by Cycript $as_me 0.9, which was
2183generated by GNU Autoconf 2.69. Invocation command line was
2184
2185 $ $0 $@
2186
2187_ACEOF
2188exec 5>>config.log
2189{
2190cat <<_ASUNAME
2191## --------- ##
2192## Platform. ##
2193## --------- ##
2194
2195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199uname -v = `(uname -v) 2>/dev/null || echo unknown`
2200
2201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2203
2204/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2208/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2211
2212_ASUNAME
2213
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 $as_echo "PATH: $as_dir"
2220 done
2221IFS=$as_save_IFS
2222
2223} >&5
2224
2225cat >&5 <<_ACEOF
2226
2227
2228## ----------- ##
2229## Core tests. ##
2230## ----------- ##
2231
2232_ACEOF
2233
2234
2235# Keep a trace of the command line.
2236# Strip out --no-create and --no-recursion so they do not pile up.
2237# Strip out --silent because we don't want to record it for future runs.
2238# Also quote any args containing shell meta-characters.
2239# Make two passes to allow for proper duplicate-argument suppression.
2240ac_configure_args=
2241ac_configure_args0=
2242ac_configure_args1=
2243ac_must_keep_next=false
2244for ac_pass in 1 2
2245do
2246 for ac_arg
2247 do
2248 case $ac_arg in
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2252 continue ;;
2253 *\'*)
2254 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2255 esac
2256 case $ac_pass in
2257 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2258 2)
2259 as_fn_append ac_configure_args1 " '$ac_arg'"
2260 if test $ac_must_keep_next = true; then
2261 ac_must_keep_next=false # Got value, back to normal.
2262 else
2263 case $ac_arg in
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2270 esac
2271 ;;
2272 -* ) ac_must_keep_next=true ;;
2273 esac
2274 fi
2275 as_fn_append ac_configure_args " '$ac_arg'"
2276 ;;
2277 esac
2278 done
2279done
2280{ ac_configure_args0=; unset ac_configure_args0;}
2281{ ac_configure_args1=; unset ac_configure_args1;}
2282
2283# When interrupted or exit'd, cleanup temporary files, and complete
2284# config.log. We remove comments because anyway the quotes in there
2285# would cause problems or look ugly.
2286# WARNING: Use '\'' to represent an apostrophe within the trap.
2287# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2290 {
2291 echo
2292
2293 $as_echo "## ---------------- ##
2294## Cache variables. ##
2295## ---------------- ##"
2296 echo
2297 # The following way of writing the cache mishandles newlines in values,
2298(
2299 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in #(
2302 *${as_nl}*)
2303 case $ac_var in #(
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306 esac
2307 case $ac_var in #(
2308 _ | IFS | as_nl) ;; #(
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310 *) { eval $ac_var=; unset $ac_var;} ;;
2311 esac ;;
2312 esac
2313 done
2314 (set) 2>&1 |
2315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
2317 sed -n \
2318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 ;; #(
2321 *)
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2323 ;;
2324 esac |
2325 sort
2326)
2327 echo
2328
2329 $as_echo "## ----------------- ##
2330## Output variables. ##
2331## ----------------- ##"
2332 echo
2333 for ac_var in $ac_subst_vars
2334 do
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2342
2343 if test -n "$ac_subst_files"; then
2344 $as_echo "## ------------------- ##
2345## File substitutions. ##
2346## ------------------- ##"
2347 echo
2348 for ac_var in $ac_subst_files
2349 do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2357 fi
2358
2359 if test -s confdefs.h; then
2360 $as_echo "## ----------- ##
2361## confdefs.h. ##
2362## ----------- ##"
2363 echo
2364 cat confdefs.h
2365 echo
2366 fi
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2370 } >&5
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373 exit $exit_status
2374' 0
2375for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377done
2378ac_signal=0
2379
2380# confdefs.h avoids OS command line length limits that DEFS can exceed.
2381rm -f -r conftest* confdefs.h
2382
2383$as_echo "/* confdefs.h */" > confdefs.h
2384
2385# Predefined preprocessor variables.
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_NAME "$PACKAGE_NAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_VERSION "$PACKAGE_VERSION"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_STRING "$PACKAGE_STRING"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_URL "$PACKAGE_URL"
2409_ACEOF
2410
2411
2412# Let the site file select an alternate cache file if it wants to.
2413# Prefer an explicitly selected file to automatically selected ones.
2414ac_site_file1=NONE
2415ac_site_file2=NONE
2416if test -n "$CONFIG_SITE"; then
2417 # We do not want a PATH search for config.site.
2418 case $CONFIG_SITE in #((
2419 -*) ac_site_file1=./$CONFIG_SITE;;
2420 */*) ac_site_file1=$CONFIG_SITE;;
2421 *) ac_site_file1=./$CONFIG_SITE;;
2422 esac
2423elif test "x$prefix" != xNONE; then
2424 ac_site_file1=$prefix/share/config.site
2425 ac_site_file2=$prefix/etc/config.site
2426else
2427 ac_site_file1=$ac_default_prefix/share/config.site
2428 ac_site_file2=$ac_default_prefix/etc/config.site
2429fi
2430for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2431do
2432 test "x$ac_site_file" = xNONE && continue
2433 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436 sed 's/^/| /' "$ac_site_file" >&5
2437 . "$ac_site_file" \
2438 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440as_fn_error $? "failed to load site script $ac_site_file
2441See \`config.log' for more details" "$LINENO" 5; }
2442 fi
2443done
2444
2445if test -r "$cache_file"; then
2446 # Some versions of bash will fail to source /dev/null (special files
2447 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2448 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450$as_echo "$as_me: loading cache $cache_file" >&6;}
2451 case $cache_file in
2452 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2453 *) . "./$cache_file";;
2454 esac
2455 fi
2456else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458$as_echo "$as_me: creating cache $cache_file" >&6;}
2459 >$cache_file
2460fi
2461
2462# Check that the precious variables saved in the cache have kept the same
2463# value.
2464ac_cache_corrupted=false
2465for ac_var in $ac_precious_vars; do
2466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2467 eval ac_new_set=\$ac_env_${ac_var}_set
2468 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2469 eval ac_new_val=\$ac_env_${ac_var}_value
2470 case $ac_old_set,$ac_new_set in
2471 set,)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,set)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,);;
2480 *)
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
2482 # differences in whitespace do not lead to failure.
2483 ac_old_val_w=`echo x $ac_old_val`
2484 ac_new_val_w=`echo x $ac_new_val`
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted=:
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492 eval $ac_var=\$ac_old_val
2493 fi
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2498 fi;;
2499 esac
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2502 case $ac_new_val in
2503 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504 *) ac_arg=$ac_var=$ac_new_val ;;
2505 esac
2506 case " $ac_configure_args " in
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2509 esac
2510 fi
2511done
2512if $ac_cache_corrupted; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2518fi
2519## -------------------- ##
2520## Main body of script. ##
2521## -------------------- ##
2522
2523ac_ext=c
2524ac_cpp='$CPP $CPPFLAGS'
2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
2529
2530
2531
2532
2533ac_aux_dir=
2534for ac_dir in . "$srcdir"/.; do
2535 if test -f "$ac_dir/install-sh"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/install-sh -c"
2538 break
2539 elif test -f "$ac_dir/install.sh"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/install.sh -c"
2542 break
2543 elif test -f "$ac_dir/shtool"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/shtool install -c"
2546 break
2547 fi
2548done
2549if test -z "$ac_aux_dir"; then
2550 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2551fi
2552
2553# These three variables are undocumented and unsupported,
2554# and are intended to be withdrawn in a future Autoconf release.
2555# They can cause serious problems if a builder's source tree is in a directory
2556# whose full name contains unusual characters.
2557ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2558ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2559ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2560
2561
2562
2563ac_config_headers="$ac_config_headers config.h"
2564
2565
2566am__api_version='1.15'
2567
2568# Find a good install program. We prefer a C program (faster),
2569# so one script is as good as another. But avoid the broken or
2570# incompatible versions:
2571# SysV /etc/install, /usr/sbin/install
2572# SunOS /usr/etc/install
2573# IRIX /sbin/install
2574# AIX /bin/install
2575# AmigaOS /C/install, which installs bootblocks on floppy discs
2576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2577# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2579# OS/2's system install, which has a completely different semantic
2580# ./install, which can be erroneously created by make from ./install.sh.
2581# Reject install programs that cannot install multiple files.
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2583$as_echo_n "checking for a BSD-compatible install... " >&6; }
2584if test -z "$INSTALL"; then
2585if ${ac_cv_path_install+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 # Account for people who put trailing slashes in PATH elements.
2594case $as_dir/ in #((
2595 ./ | .// | /[cC]/* | \
2596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598 /usr/ucb/* ) ;;
2599 *)
2600 # OSF1 and SCO ODT 3.0 have their own names for install.
2601 # Don't use installbsd from OSF since it installs stuff as root
2602 # by default.
2603 for ac_prog in ginstall scoinst install; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2606 if test $ac_prog = install &&
2607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # AIX install. It has an incompatible calling convention.
2609 :
2610 elif test $ac_prog = install &&
2611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # program-specific install script used by HP pwplus--don't use.
2613 :
2614 else
2615 rm -rf conftest.one conftest.two conftest.dir
2616 echo one > conftest.one
2617 echo two > conftest.two
2618 mkdir conftest.dir
2619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2620 test -s conftest.one && test -s conftest.two &&
2621 test -s conftest.dir/conftest.one &&
2622 test -s conftest.dir/conftest.two
2623 then
2624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2625 break 3
2626 fi
2627 fi
2628 fi
2629 done
2630 done
2631 ;;
2632esac
2633
2634 done
2635IFS=$as_save_IFS
2636
2637rm -rf conftest.one conftest.two conftest.dir
2638
2639fi
2640 if test "${ac_cv_path_install+set}" = set; then
2641 INSTALL=$ac_cv_path_install
2642 else
2643 # As a last resort, use the slow shell script. Don't cache a
2644 # value for INSTALL within a source directory, because that will
2645 # break other packages using the cache if that directory is
2646 # removed, or if the value is a relative name.
2647 INSTALL=$ac_install_sh
2648 fi
2649fi
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2651$as_echo "$INSTALL" >&6; }
2652
2653# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2654# It thinks the first close brace ends the variable substitution.
2655test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2656
2657test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2658
2659test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2660
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2662$as_echo_n "checking whether build environment is sane... " >&6; }
2663# Reject unsafe characters in $srcdir or the absolute working directory
2664# name. Accept space and tab only in the latter.
2665am_lf='
2666'
2667case `pwd` in
2668 *[\\\"\#\$\&\'\`$am_lf]*)
2669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2670esac
2671case $srcdir in
2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2673 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2674esac
2675
2676# Do 'set' in a subshell so we don't clobber the current shell's
2677# arguments. Must try -L first in case configure is actually a
2678# symlink; some systems play weird games with the mod time of symlinks
2679# (eg FreeBSD returns the mod time of the symlink's containing
2680# directory).
2681if (
2682 am_has_slept=no
2683 for am_try in 1 2; do
2684 echo "timestamp, slept: $am_has_slept" > conftest.file
2685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2686 if test "$*" = "X"; then
2687 # -L didn't work.
2688 set X `ls -t "$srcdir/configure" conftest.file`
2689 fi
2690 if test "$*" != "X $srcdir/configure conftest.file" \
2691 && test "$*" != "X conftest.file $srcdir/configure"; then
2692
2693 # If neither matched, then we have a broken ls. This can happen
2694 # if, for instance, CONFIG_SHELL is bash and it inherits a
2695 # broken ls alias from the environment. This has actually
2696 # happened. Such a system could not be considered "sane".
2697 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2698 alias in your environment" "$LINENO" 5
2699 fi
2700 if test "$2" = conftest.file || test $am_try -eq 2; then
2701 break
2702 fi
2703 # Just in case.
2704 sleep 1
2705 am_has_slept=yes
2706 done
2707 test "$2" = conftest.file
2708 )
2709then
2710 # Ok.
2711 :
2712else
2713 as_fn_error $? "newly created file is older than distributed files!
2714Check your system clock" "$LINENO" 5
2715fi
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717$as_echo "yes" >&6; }
2718# If we didn't sleep, we still need to ensure time stamps of config.status and
2719# generated files are strictly newer.
2720am_sleep_pid=
2721if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2722 ( sleep 1 ) &
2723 am_sleep_pid=$!
2724fi
2725
2726rm -f conftest.file
2727
2728test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730# Use a double $ so make ignores it.
2731test "$program_suffix" != NONE &&
2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2733# Double any \ or $.
2734# By default was `s,x,x', remove it if useless.
2735ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2737
2738# Expand $ac_aux_dir to an absolute path.
2739am_aux_dir=`cd "$ac_aux_dir" && pwd`
2740
2741if test x"${MISSING+set}" != xset; then
2742 case $am_aux_dir in
2743 *\ * | *\ *)
2744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2745 *)
2746 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2747 esac
2748fi
2749# Use eval to expand $SHELL
2750if eval "$MISSING --is-lightweight"; then
2751 am_missing_run="$MISSING "
2752else
2753 am_missing_run=
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2755$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2756fi
2757
2758if test x"${install_sh+set}" != xset; then
2759 case $am_aux_dir in
2760 *\ * | *\ *)
2761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2762 *)
2763 install_sh="\${SHELL} $am_aux_dir/install-sh"
2764 esac
2765fi
2766
2767# Installed binaries are usually stripped using 'strip' when the user
2768# run "make install-strip". However 'strip' might not be the right
2769# tool to use in cross-compilation environments, therefore Automake
2770# will honor the 'STRIP' environment variable to overrule this program.
2771if test "$cross_compiling" != no; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}strip; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_STRIP+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779else
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800STRIP=$ac_cv_prog_STRIP
2801if test -n "$STRIP"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2803$as_echo "$STRIP" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810fi
2811if test -z "$ac_cv_prog_STRIP"; then
2812 ac_ct_STRIP=$STRIP
2813 # Extract the first word of "strip", so it can be a program name with args.
2814set dummy strip; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819else
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_STRIP="strip"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835 done
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2841if test -n "$ac_ct_STRIP"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2843$as_echo "$ac_ct_STRIP" >&6; }
2844else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846$as_echo "no" >&6; }
2847fi
2848
2849 if test "x$ac_ct_STRIP" = x; then
2850 STRIP=":"
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853yes:)
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856ac_tool_warned=yes ;;
2857esac
2858 STRIP=$ac_ct_STRIP
2859 fi
2860else
2861 STRIP="$ac_cv_prog_STRIP"
2862fi
2863
2864fi
2865INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2866
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2868$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869if test -z "$MKDIR_P"; then
2870 if ${ac_cv_path_mkdir+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_prog in mkdir gmkdir; do
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2882 'mkdir (GNU coreutils) '* | \
2883 'mkdir (coreutils) '* | \
2884 'mkdir (fileutils) '4.1*)
2885 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2886 break 3;;
2887 esac
2888 done
2889 done
2890 done
2891IFS=$as_save_IFS
2892
2893fi
2894
2895 test -d ./--version && rmdir ./--version
2896 if test "${ac_cv_path_mkdir+set}" = set; then
2897 MKDIR_P="$ac_cv_path_mkdir -p"
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for MKDIR_P within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 MKDIR_P="$ac_install_sh -d"
2904 fi
2905fi
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2907$as_echo "$MKDIR_P" >&6; }
2908
2909for ac_prog in gawk mawk nawk awk
2910do
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if ${ac_cv_prog_AWK+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917else
2918 if test -n "$AWK"; then
2919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_AWK="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933 done
2934IFS=$as_save_IFS
2935
2936fi
2937fi
2938AWK=$ac_cv_prog_AWK
2939if test -n "$AWK"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2941$as_echo "$AWK" >&6; }
2942else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
2945fi
2946
2947
2948 test -n "$AWK" && break
2949done
2950
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2952$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2953set x ${MAKE-make}
2954ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2955if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957else
2958 cat >conftest.make <<\_ACEOF
2959SHELL = /bin/sh
2960all:
2961 @echo '@@@%%%=$(MAKE)=@@@%%%'
2962_ACEOF
2963# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2964case `${MAKE-make} -f conftest.make 2>/dev/null` in
2965 *@@@%%%=?*=@@@%%%*)
2966 eval ac_cv_prog_make_${ac_make}_set=yes;;
2967 *)
2968 eval ac_cv_prog_make_${ac_make}_set=no;;
2969esac
2970rm -f conftest.make
2971fi
2972if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974$as_echo "yes" >&6; }
2975 SET_MAKE=
2976else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979 SET_MAKE="MAKE=${MAKE-make}"
2980fi
2981
2982rm -rf .tst 2>/dev/null
2983mkdir .tst 2>/dev/null
2984if test -d .tst; then
2985 am__leading_dot=.
2986else
2987 am__leading_dot=_
2988fi
2989rmdir .tst 2>/dev/null
2990
2991# Check whether --enable-silent-rules was given.
2992if test "${enable_silent_rules+set}" = set; then :
2993 enableval=$enable_silent_rules;
2994fi
2995
2996case $enable_silent_rules in # (((
2997 yes) AM_DEFAULT_VERBOSITY=0;;
2998 no) AM_DEFAULT_VERBOSITY=1;;
2999 *) AM_DEFAULT_VERBOSITY=1;;
3000esac
3001am_make=${MAKE-make}
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3003$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3004if ${am_cv_make_support_nested_variables+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 if $as_echo 'TRUE=$(BAR$(V))
3008BAR0=false
3009BAR1=true
3010V=1
3011am__doit:
3012 @$(TRUE)
3013.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3014 am_cv_make_support_nested_variables=yes
3015else
3016 am_cv_make_support_nested_variables=no
3017fi
3018fi
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3020$as_echo "$am_cv_make_support_nested_variables" >&6; }
3021if test $am_cv_make_support_nested_variables = yes; then
3022 AM_V='$(V)'
3023 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3024else
3025 AM_V=$AM_DEFAULT_VERBOSITY
3026 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3027fi
3028AM_BACKSLASH='\'
3029
3030if test "`cd $srcdir && pwd`" != "`pwd`"; then
3031 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3032 # is not polluted with repeated "-I."
3033 am__isrc=' -I$(srcdir)'
3034 # test to see if srcdir already configured
3035 if test -f $srcdir/config.status; then
3036 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3037 fi
3038fi
3039
3040# test whether we have cygpath
3041if test -z "$CYGPATH_W"; then
3042 if (cygpath --version) >/dev/null 2>/dev/null; then
3043 CYGPATH_W='cygpath -w'
3044 else
3045 CYGPATH_W=echo
3046 fi
3047fi
3048
3049
3050# Define the identity of the package.
3051 PACKAGE='cycript'
3052 VERSION='0.9'
3053
3054
3055cat >>confdefs.h <<_ACEOF
3056#define PACKAGE "$PACKAGE"
3057_ACEOF
3058
3059
3060cat >>confdefs.h <<_ACEOF
3061#define VERSION "$VERSION"
3062_ACEOF
3063
3064# Some tools Automake needs.
3065
3066ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3067
3068
3069AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3070
3071
3072AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3073
3074
3075AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3076
3077
3078MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3079
3080# For better backward compatibility. To be removed once Automake 1.9.x
3081# dies out for good. For more background, see:
3082# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3083# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3084mkdir_p='$(MKDIR_P)'
3085
3086# We need awk for the "check" target (and possibly the TAP driver). The
3087# system "awk" is bad on some platforms.
3088# Always define AMTAR for backward compatibility. Yes, it's still used
3089# in the wild :-( We should find a proper way to deprecate it ...
3090AMTAR='$${TAR-tar}'
3091
3092
3093# We'll loop over all known methods to create a tar archive until one works.
3094_am_tools='gnutar pax cpio none'
3095
3096am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3097
3098
3099
3100
3101
3102
3103# POSIX will say in a future version that running "rm -f" with no argument
3104# is OK; and we want to be able to make that assumption in our Makefile
3105# recipes. So use an aggressive probe to check that the usage we want is
3106# actually supported "in the wild" to an acceptable degree.
3107# See automake bug#10828.
3108# To make any issue more visible, cause the running configure to be aborted
3109# by default if the 'rm' program in use doesn't match our expectations; the
3110# user can still override this though.
3111if rm -f && rm -fr && rm -rf; then : OK; else
3112 cat >&2 <<'END'
3113Oops!
3114
3115Your 'rm' program seems unable to run without file operands specified
3116on the command line, even when the '-f' option is present. This is contrary
3117to the behaviour of most rm programs out there, and not conforming with
3118the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3119
3120Please tell bug-automake@gnu.org about your system, including the value
3121of your $PATH and any error possibly output before this message. This
3122can help us improve future automake versions.
3123
3124END
3125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3126 echo 'Configuration will proceed anyway, since you have set the' >&2
3127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3128 echo >&2
3129 else
3130 cat >&2 <<'END'
3131Aborting the configuration process, to ensure you take notice of the issue.
3132
3133You can download and install GNU coreutils to get an 'rm' implementation
3134that behaves properly: <http://www.gnu.org/software/coreutils/>.
3135
3136If you want to complete the configuration process using your problematic
3137'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3138to "yes", and re-run configure.
3139
3140END
3141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3142 fi
3143fi
3144
3145
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3147$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3148 # Check whether --enable-maintainer-mode was given.
3149if test "${enable_maintainer_mode+set}" = set; then :
3150 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3151else
3152 USE_MAINTAINER_MODE=no
3153fi
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3156$as_echo "$USE_MAINTAINER_MODE" >&6; }
3157 if test $USE_MAINTAINER_MODE = yes; then
3158 MAINTAINER_MODE_TRUE=
3159 MAINTAINER_MODE_FALSE='#'
3160else
3161 MAINTAINER_MODE_TRUE='#'
3162 MAINTAINER_MODE_FALSE=
3163fi
3164
3165 MAINT=$MAINTAINER_MODE_TRUE
3166
3167
3168
3169ac_ext=c
3170ac_cpp='$CPP $CPPFLAGS'
3171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3176set dummy ${ac_tool_prefix}gcc; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196done
3197 done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205$as_echo "$CC" >&6; }
3206else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212fi
3213if test -z "$ac_cv_prog_CC"; then
3214 ac_ct_CC=$CC
3215 # Extract the first word of "gcc", so it can be a program name with args.
3216set dummy gcc; ac_word=$2
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218$as_echo_n "checking for $ac_word... " >&6; }
3219if ${ac_cv_prog_ac_ct_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221else
3222 if test -n "$ac_ct_CC"; then
3223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_ac_ct_CC="gcc"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 break 2
3235 fi
3236done
3237 done
3238IFS=$as_save_IFS
3239
3240fi
3241fi
3242ac_ct_CC=$ac_cv_prog_ac_ct_CC
3243if test -n "$ac_ct_CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3245$as_echo "$ac_ct_CC" >&6; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248$as_echo "no" >&6; }
3249fi
3250
3251 if test "x$ac_ct_CC" = x; then
3252 CC=""
3253 else
3254 case $cross_compiling:$ac_tool_warned in
3255yes:)
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258ac_tool_warned=yes ;;
3259esac
3260 CC=$ac_ct_CC
3261 fi
3262else
3263 CC="$ac_cv_prog_CC"
3264fi
3265
3266if test -z "$CC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3269set dummy ${ac_tool_prefix}cc; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if ${ac_cv_prog_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC="${ac_tool_prefix}cc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289done
3290 done
3291IFS=$as_save_IFS
3292
3293fi
3294fi
3295CC=$ac_cv_prog_CC
3296if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298$as_echo "$CC" >&6; }
3299else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302fi
3303
3304
3305 fi
3306fi
3307if test -z "$CC"; then
3308 # Extract the first word of "cc", so it can be a program name with args.
3309set dummy cc; ac_word=$2
3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311$as_echo_n "checking for $ac_word... " >&6; }
3312if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317else
3318 ac_prog_rejected=no
3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320for as_dir in $PATH
3321do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3327 ac_prog_rejected=yes
3328 continue
3329 fi
3330 ac_cv_prog_CC="cc"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334done
3335 done
3336IFS=$as_save_IFS
3337
3338if test $ac_prog_rejected = yes; then
3339 # We found a bogon in the path, so make sure we never use it.
3340 set dummy $ac_cv_prog_CC
3341 shift
3342 if test $# != 0; then
3343 # We chose a different compiler from the bogus one.
3344 # However, it has the same basename, so the bogon will be chosen
3345 # first if we set CC to just the basename; use the full file name.
3346 shift
3347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3348 fi
3349fi
3350fi
3351fi
3352CC=$ac_cv_prog_CC
3353if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355$as_echo "$CC" >&6; }
3356else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
3359fi
3360
3361
3362fi
3363if test -z "$CC"; then
3364 if test -n "$ac_tool_prefix"; then
3365 for ac_prog in cl.exe
3366 do
3367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370$as_echo_n "checking for $ac_word... " >&6; }
3371if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373else
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388done
3389 done
3390IFS=$as_save_IFS
3391
3392fi
3393fi
3394CC=$ac_cv_prog_CC
3395if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397$as_echo "$CC" >&6; }
3398else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400$as_echo "no" >&6; }
3401fi
3402
3403
3404 test -n "$CC" && break
3405 done
3406fi
3407if test -z "$CC"; then
3408 ac_ct_CC=$CC
3409 for ac_prog in cl.exe
3410do
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412set dummy $ac_prog; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if ${ac_cv_prog_ac_ct_CC+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417else
3418 if test -n "$ac_ct_CC"; then
3419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_ac_ct_CC="$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432done
3433 done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438ac_ct_CC=$ac_cv_prog_ac_ct_CC
3439if test -n "$ac_ct_CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3441$as_echo "$ac_ct_CC" >&6; }
3442else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448 test -n "$ac_ct_CC" && break
3449done
3450
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455yes:)
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458ac_tool_warned=yes ;;
3459esac
3460 CC=$ac_ct_CC
3461 fi
3462fi
3463
3464fi
3465
3466
3467test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469as_fn_error $? "no acceptable C compiler found in \$PATH
3470See \`config.log' for more details" "$LINENO" 5; }
3471
3472# Provide some information about the compiler.
3473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3474set X $ac_compile
3475ac_compiler=$2
3476for ac_option in --version -v -V -qversion; do
3477 { { ac_try="$ac_compiler $ac_option >&5"
3478case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3485 ac_status=$?
3486 if test -s conftest.err; then
3487 sed '10a\
3488... rest of stderr output deleted ...
3489 10q' conftest.err >conftest.er1
3490 cat conftest.er1 >&5
3491 fi
3492 rm -f conftest.er1 conftest.err
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }
3495done
3496
3497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h. */
3499
3500int
3501main ()
3502{
3503
3504 ;
3505 return 0;
3506}
3507_ACEOF
3508ac_clean_files_save=$ac_clean_files
3509ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3510# Try to create an executable without -o first, disregard a.out.
3511# It will help us diagnose broken compilers, and finding out an intuition
3512# of exeext.
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3514$as_echo_n "checking whether the C compiler works... " >&6; }
3515ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3516
3517# The possible output files:
3518ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3519
3520ac_rmfiles=
3521for ac_file in $ac_files
3522do
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3526 esac
3527done
3528rm -f $ac_rmfiles
3529
3530if { { ac_try="$ac_link_default"
3531case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534esac
3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536$as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_link_default") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540 test $ac_status = 0; }; then :
3541 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3542# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3543# in a Makefile. We should not override ac_cv_exeext if it was cached,
3544# so that the user can short-circuit this test for compilers unknown to
3545# Autoconf.
3546for ac_file in $ac_files ''
3547do
3548 test -f "$ac_file" || continue
3549 case $ac_file in
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3551 ;;
3552 [ab].out )
3553 # We found the default executable, but exeext='' is most
3554 # certainly right.
3555 break;;
3556 *.* )
3557 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3558 then :; else
3559 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560 fi
3561 # We set ac_cv_exeext here because the later test for it is not
3562 # safe: cross compilers may not add the suffix if given an `-o'
3563 # argument, so we may need to know it at that point already.
3564 # Even if this section looks crufty: it has the advantage of
3565 # actually working.
3566 break;;
3567 * )
3568 break;;
3569 esac
3570done
3571test "$ac_cv_exeext" = no && ac_cv_exeext=
3572
3573else
3574 ac_file=''
3575fi
3576if test -z "$ac_file"; then :
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578$as_echo "no" >&6; }
3579$as_echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error 77 "C compiler cannot create executables
3585See \`config.log' for more details" "$LINENO" 5; }
3586else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3588$as_echo "yes" >&6; }
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3591$as_echo_n "checking for C compiler default output file name... " >&6; }
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3593$as_echo "$ac_file" >&6; }
3594ac_exeext=$ac_cv_exeext
3595
3596rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3597ac_clean_files=$ac_clean_files_save
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3599$as_echo_n "checking for suffix of executables... " >&6; }
3600if { { ac_try="$ac_link"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3613# work properly (i.e., refer to `conftest.exe'), while it won't with
3614# `rm'.
3615for ac_file in conftest.exe conftest conftest.*; do
3616 test -f "$ac_file" || continue
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 break;;
3621 * ) break;;
3622 esac
3623done
3624else
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3628See \`config.log' for more details" "$LINENO" 5; }
3629fi
3630rm -f conftest conftest$ac_cv_exeext
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3632$as_echo "$ac_cv_exeext" >&6; }
3633
3634rm -f conftest.$ac_ext
3635EXEEXT=$ac_cv_exeext
3636ac_exeext=$EXEEXT
3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h. */
3639#include <stdio.h>
3640int
3641main ()
3642{
3643FILE *f = fopen ("conftest.out", "w");
3644 return ferror (f) || fclose (f) != 0;
3645
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650ac_clean_files="$ac_clean_files conftest.out"
3651# Check that the compiler produces executables we can run. If not, either
3652# the compiler is broken, or we cross compile.
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3654$as_echo_n "checking whether we are cross compiling... " >&6; }
3655if test "$cross_compiling" != yes; then
3656 { { ac_try="$ac_link"
3657case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662$as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_link") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }
3667 if { ac_try='./conftest$ac_cv_exeext'
3668 { { case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673$as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_try") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; }; then
3678 cross_compiling=no
3679 else
3680 if test "$cross_compiling" = maybe; then
3681 cross_compiling=yes
3682 else
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot run C compiled programs.
3686If you meant to cross compile, use \`--host'.
3687See \`config.log' for more details" "$LINENO" 5; }
3688 fi
3689 fi
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3692$as_echo "$cross_compiling" >&6; }
3693
3694rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3695ac_clean_files=$ac_clean_files_save
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3697$as_echo_n "checking for suffix of object files... " >&6; }
3698if ${ac_cv_objext+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703
3704int
3705main ()
3706{
3707
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712rm -f conftest.o conftest.obj
3713if { { ac_try="$ac_compile"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719$as_echo "$ac_try_echo"; } >&5
3720 (eval "$ac_compile") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }; then :
3724 for ac_file in conftest.o conftest.obj conftest.*; do
3725 test -f "$ac_file" || continue;
3726 case $ac_file in
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3729 break;;
3730 esac
3731done
3732else
3733 $as_echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738as_fn_error $? "cannot compute suffix of object files: cannot compile
3739See \`config.log' for more details" "$LINENO" 5; }
3740fi
3741rm -f conftest.$ac_cv_objext conftest.$ac_ext
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3744$as_echo "$ac_cv_objext" >&6; }
3745OBJEXT=$ac_cv_objext
3746ac_objext=$OBJEXT
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3748$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3749if ${ac_cv_c_compiler_gnu+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751else
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h. */
3754
3755int
3756main ()
3757{
3758#ifndef __GNUC__
3759 choke me
3760#endif
3761
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_compiler_gnu=yes
3768else
3769 ac_compiler_gnu=no
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772ac_cv_c_compiler_gnu=$ac_compiler_gnu
3773
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3776$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3777if test $ac_compiler_gnu = yes; then
3778 GCC=yes
3779else
3780 GCC=
3781fi
3782ac_test_CFLAGS=${CFLAGS+set}
3783ac_save_CFLAGS=$CFLAGS
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3785$as_echo_n "checking whether $CC accepts -g... " >&6; }
3786if ${ac_cv_prog_cc_g+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788else
3789 ac_save_c_werror_flag=$ac_c_werror_flag
3790 ac_c_werror_flag=yes
3791 ac_cv_prog_cc_g=no
3792 CFLAGS="-g"
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h. */
3795
3796int
3797main ()
3798{
3799
3800 ;
3801 return 0;
3802}
3803_ACEOF
3804if ac_fn_c_try_compile "$LINENO"; then :
3805 ac_cv_prog_cc_g=yes
3806else
3807 CFLAGS=""
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809/* end confdefs.h. */
3810
3811int
3812main ()
3813{
3814
3815 ;
3816 return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_compile "$LINENO"; then :
3820
3821else
3822 ac_c_werror_flag=$ac_save_c_werror_flag
3823 CFLAGS="-g"
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h. */
3826
3827int
3828main ()
3829{
3830
3831 ;
3832 return 0;
3833}
3834_ACEOF
3835if ac_fn_c_try_compile "$LINENO"; then :
3836 ac_cv_prog_cc_g=yes
3837fi
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839fi
3840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841fi
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_c_werror_flag=$ac_save_c_werror_flag
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3846$as_echo "$ac_cv_prog_cc_g" >&6; }
3847if test "$ac_test_CFLAGS" = set; then
3848 CFLAGS=$ac_save_CFLAGS
3849elif test $ac_cv_prog_cc_g = yes; then
3850 if test "$GCC" = yes; then
3851 CFLAGS="-g -O2"
3852 else
3853 CFLAGS="-g"
3854 fi
3855else
3856 if test "$GCC" = yes; then
3857 CFLAGS="-O2"
3858 else
3859 CFLAGS=
3860 fi
3861fi
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3864if ${ac_cv_prog_cc_c89+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866else
3867 ac_cv_prog_cc_c89=no
3868ac_save_CC=$CC
3869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h. */
3871#include <stdarg.h>
3872#include <stdio.h>
3873struct stat;
3874/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3875struct buf { int x; };
3876FILE * (*rcsopen) (struct buf *, struct stat *, int);
3877static char *e (p, i)
3878 char **p;
3879 int i;
3880{
3881 return p[i];
3882}
3883static char *f (char * (*g) (char **, int), char **p, ...)
3884{
3885 char *s;
3886 va_list v;
3887 va_start (v,p);
3888 s = g (p, va_arg (v,int));
3889 va_end (v);
3890 return s;
3891}
3892
3893/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3894 function prototypes and stuff, but not '\xHH' hex character constants.
3895 These don't provoke an error unfortunately, instead are silently treated
3896 as 'x'. The following induces an error, until -std is added to get
3897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3898 array size at least. It's necessary to write '\x00'==0 to get something
3899 that's true only with -std. */
3900int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901
3902/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3903 inside strings and character constants. */
3904#define FOO(x) 'x'
3905int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3906
3907int test (int i, double x);
3908struct s1 {int (*f) (int a);};
3909struct s2 {int (*f) (double a);};
3910int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3911int argc;
3912char **argv;
3913int
3914main ()
3915{
3916return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923do
3924 CC="$ac_save_CC $ac_arg"
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_prog_cc_c89=$ac_arg
3927fi
3928rm -f core conftest.err conftest.$ac_objext
3929 test "x$ac_cv_prog_cc_c89" != "xno" && break
3930done
3931rm -f conftest.$ac_ext
3932CC=$ac_save_CC
3933
3934fi
3935# AC_CACHE_VAL
3936case "x$ac_cv_prog_cc_c89" in
3937 x)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3939$as_echo "none needed" >&6; } ;;
3940 xno)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3942$as_echo "unsupported" >&6; } ;;
3943 *)
3944 CC="$CC $ac_cv_prog_cc_c89"
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3946$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3947esac
3948if test "x$ac_cv_prog_cc_c89" != xno; then :
3949
3950fi
3951
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3964$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3965if ${am_cv_prog_cc_c_o+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h. */
3970
3971int
3972main ()
3973{
3974
3975 ;
3976 return 0;
3977}
3978_ACEOF
3979 # Make sure it works both with $CC and with simple cc.
3980 # Following AC_PROG_CC_C_O, we do the test twice because some
3981 # compilers refuse to overwrite an existing .o file with -o,
3982 # though they will create one.
3983 am_cv_prog_cc_c_o=yes
3984 for am_i in 1 2; do
3985 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3986 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } \
3990 && test -f conftest2.$ac_objext; then
3991 : OK
3992 else
3993 am_cv_prog_cc_c_o=no
3994 break
3995 fi
3996 done
3997 rm -f core conftest*
3998 unset am_i
3999fi
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4001$as_echo "$am_cv_prog_cc_c_o" >&6; }
4002if test "$am_cv_prog_cc_c_o" != yes; then
4003 # Losing compiler, so override with the script.
4004 # FIXME: It is wrong to rewrite CC.
4005 # But if we don't then we get into trouble of one sort or another.
4006 # A longer-term fix would be to have automake use am__CC in this case,
4007 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4008 CC="$am_aux_dir/compile $CC"
4009fi
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
4016DEPDIR="${am__leading_dot}deps"
4017
4018ac_config_commands="$ac_config_commands depfiles"
4019
4020
4021am_make=${MAKE-make}
4022cat > confinc << 'END'
4023am__doit:
4024 @echo this is the am__doit target
4025.PHONY: am__doit
4026END
4027# If we don't find an include directive, just comment out the code.
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029$as_echo_n "checking for style of include used by $am_make... " >&6; }
4030am__include="#"
4031am__quote=
4032_am_result=none
4033# First try GNU make style include.
4034echo "include confinc" > confmf
4035# Ignore all kinds of additional output from 'make'.
4036case `$am_make -s -f confmf 2> /dev/null` in #(
4037*the\ am__doit\ target*)
4038 am__include=include
4039 am__quote=
4040 _am_result=GNU
4041 ;;
4042esac
4043# Now try BSD make style include.
4044if test "$am__include" = "#"; then
4045 echo '.include "confinc"' > confmf
4046 case `$am_make -s -f confmf 2> /dev/null` in #(
4047 *the\ am__doit\ target*)
4048 am__include=.include
4049 am__quote="\""
4050 _am_result=BSD
4051 ;;
4052 esac
4053fi
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057$as_echo "$_am_result" >&6; }
4058rm -f confinc confmf
4059
4060# Check whether --enable-dependency-tracking was given.
4061if test "${enable_dependency_tracking+set}" = set; then :
4062 enableval=$enable_dependency_tracking;
4063fi
4064
4065if test "x$enable_dependency_tracking" != xno; then
4066 am_depcomp="$ac_aux_dir/depcomp"
4067 AMDEPBACKSLASH='\'
4068 am__nodep='_no'
4069fi
4070 if test "x$enable_dependency_tracking" != xno; then
4071 AMDEP_TRUE=
4072 AMDEP_FALSE='#'
4073else
4074 AMDEP_TRUE='#'
4075 AMDEP_FALSE=
4076fi
4077
4078
4079
4080depcc="$CC" am_compiler_list=
4081
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4083$as_echo_n "checking dependency style of $depcc... " >&6; }
4084if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086else
4087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088 # We make a subdir and do the tests there. Otherwise we can end up
4089 # making bogus files that we don't know about and never remove. For
4090 # instance it was reported that on HP-UX the gcc test will end up
4091 # making a dummy file named 'D' -- because '-MD' means "put the output
4092 # in D".
4093 rm -rf conftest.dir
4094 mkdir conftest.dir
4095 # Copy depcomp to subdir because otherwise we won't find it if we're
4096 # using a relative directory.
4097 cp "$am_depcomp" conftest.dir
4098 cd conftest.dir
4099 # We will build objects and dependencies in a subdirectory because
4100 # it helps to detect inapplicable dependency modes. For instance
4101 # both Tru64's cc and ICC support -MD to output dependencies as a
4102 # side effect of compilation, but ICC will put the dependencies in
4103 # the current directory while Tru64 will put them in the object
4104 # directory.
4105 mkdir sub
4106
4107 am_cv_CC_dependencies_compiler_type=none
4108 if test "$am_compiler_list" = ""; then
4109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110 fi
4111 am__universal=false
4112 case " $depcc " in #(
4113 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114 esac
4115
4116 for depmode in $am_compiler_list; do
4117 # Setup a source with many dependencies, because some compilers
4118 # like to wrap large dependency lists on column 80 (with \), and
4119 # we should not choose a depcomp mode which is confused by this.
4120 #
4121 # We need to recreate these files for each test, as the compiler may
4122 # overwrite some of them when testing with obscure command lines.
4123 # This happens at least with the AIX C compiler.
4124 : > sub/conftest.c
4125 for i in 1 2 3 4 5 6; do
4126 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4128 # Solaris 10 /bin/sh.
4129 echo '/* dummy */' > sub/conftst$i.h
4130 done
4131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
4133 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4134 # mode. It turns out that the SunPro C++ compiler does not properly
4135 # handle '-M -o', and we need to detect this. Also, some Intel
4136 # versions had trouble with output in subdirs.
4137 am__obj=sub/conftest.${OBJEXT-o}
4138 am__minus_obj="-o $am__obj"
4139 case $depmode in
4140 gcc)
4141 # This depmode causes a compiler race in universal mode.
4142 test "$am__universal" = false || continue
4143 ;;
4144 nosideeffect)
4145 # After this tag, mechanisms are not by side-effect, so they'll
4146 # only be used when explicitly requested.
4147 if test "x$enable_dependency_tracking" = xyes; then
4148 continue
4149 else
4150 break
4151 fi
4152 ;;
4153 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4154 # This compiler won't grok '-c -o', but also, the minuso test has
4155 # not run yet. These depmodes are late enough in the game, and
4156 # so weak that their functioning should not be impacted.
4157 am__obj=conftest.${OBJEXT-o}
4158 am__minus_obj=
4159 ;;
4160 none) break ;;
4161 esac
4162 if depmode=$depmode \
4163 source=sub/conftest.c object=$am__obj \
4164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4166 >/dev/null 2>conftest.err &&
4167 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4170 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171 # icc doesn't choke on unknown options, it will just issue warnings
4172 # or remarks (even with -Werror). So we grep stderr for any message
4173 # that says an option was ignored or not supported.
4174 # When given -MP, icc 7.0 and 7.1 complain thusly:
4175 # icc: Command line warning: ignoring option '-M'; no argument required
4176 # The diagnosis changed in icc 8.0:
4177 # icc: Command line remark: option '-MP' not supported
4178 if (grep 'ignoring option' conftest.err ||
4179 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180 am_cv_CC_dependencies_compiler_type=$depmode
4181 break
4182 fi
4183 fi
4184 done
4185
4186 cd ..
4187 rm -rf conftest.dir
4188else
4189 am_cv_CC_dependencies_compiler_type=none
4190fi
4191
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4194$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4195CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197 if
4198 test "x$enable_dependency_tracking" != xno \
4199 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200 am__fastdepCC_TRUE=
4201 am__fastdepCC_FALSE='#'
4202else
4203 am__fastdepCC_TRUE='#'
4204 am__fastdepCC_FALSE=
4205fi
4206
4207
4208ac_ext=cpp
4209ac_cpp='$CXXCPP $CPPFLAGS'
4210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4213if test -z "$CXX"; then
4214 if test -n "$CCC"; then
4215 CXX=$CCC
4216 else
4217 if test -n "$ac_tool_prefix"; then
4218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4219 do
4220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
4224if ${ac_cv_prog_CXX+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226else
4227 if test -n "$CXX"; then
4228 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241done
4242 done
4243IFS=$as_save_IFS
4244
4245fi
4246fi
4247CXX=$ac_cv_prog_CXX
4248if test -n "$CXX"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4250$as_echo "$CXX" >&6; }
4251else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
4254fi
4255
4256
4257 test -n "$CXX" && break
4258 done
4259fi
4260if test -z "$CXX"; then
4261 ac_ct_CXX=$CXX
4262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4263do
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265set dummy $ac_prog; ac_word=$2
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 if test -n "$ac_ct_CXX"; then
4272 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_prog_ac_ct_CXX="$ac_prog"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285done
4286 done
4287IFS=$as_save_IFS
4288
4289fi
4290fi
4291ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4292if test -n "$ac_ct_CXX"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4294$as_echo "$ac_ct_CXX" >&6; }
4295else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
4298fi
4299
4300
4301 test -n "$ac_ct_CXX" && break
4302done
4303
4304 if test "x$ac_ct_CXX" = x; then
4305 CXX="g++"
4306 else
4307 case $cross_compiling:$ac_tool_warned in
4308yes:)
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311ac_tool_warned=yes ;;
4312esac
4313 CXX=$ac_ct_CXX
4314 fi
4315fi
4316
4317 fi
4318fi
4319# Provide some information about the compiler.
4320$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4321set X $ac_compile
4322ac_compiler=$2
4323for ac_option in --version -v -V -qversion; do
4324 { { ac_try="$ac_compiler $ac_option >&5"
4325case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330$as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4332 ac_status=$?
4333 if test -s conftest.err; then
4334 sed '10a\
4335... rest of stderr output deleted ...
4336 10q' conftest.err >conftest.er1
4337 cat conftest.er1 >&5
4338 fi
4339 rm -f conftest.er1 conftest.err
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }
4342done
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4345$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4346if ${ac_cv_cxx_compiler_gnu+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h. */
4351
4352int
4353main ()
4354{
4355#ifndef __GNUC__
4356 choke me
4357#endif
4358
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363if ac_fn_cxx_try_compile "$LINENO"; then :
4364 ac_compiler_gnu=yes
4365else
4366 ac_compiler_gnu=no
4367fi
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4370
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4373$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4374if test $ac_compiler_gnu = yes; then
4375 GXX=yes
4376else
4377 GXX=
4378fi
4379ac_test_CXXFLAGS=${CXXFLAGS+set}
4380ac_save_CXXFLAGS=$CXXFLAGS
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4382$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4383if ${ac_cv_prog_cxx_g+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385else
4386 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4387 ac_cxx_werror_flag=yes
4388 ac_cv_prog_cxx_g=no
4389 CXXFLAGS="-g"
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h. */
4392
4393int
4394main ()
4395{
4396
4397 ;
4398 return 0;
4399}
4400_ACEOF
4401if ac_fn_cxx_try_compile "$LINENO"; then :
4402 ac_cv_prog_cxx_g=yes
4403else
4404 CXXFLAGS=""
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h. */
4407
4408int
4409main ()
4410{
4411
4412 ;
4413 return 0;
4414}
4415_ACEOF
4416if ac_fn_cxx_try_compile "$LINENO"; then :
4417
4418else
4419 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4420 CXXFLAGS="-g"
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h. */
4423
4424int
4425main ()
4426{
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
4432if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_cv_prog_cxx_g=yes
4434fi
4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436fi
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438fi
4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4441fi
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4443$as_echo "$ac_cv_prog_cxx_g" >&6; }
4444if test "$ac_test_CXXFLAGS" = set; then
4445 CXXFLAGS=$ac_save_CXXFLAGS
4446elif test $ac_cv_prog_cxx_g = yes; then
4447 if test "$GXX" = yes; then
4448 CXXFLAGS="-g -O2"
4449 else
4450 CXXFLAGS="-g"
4451 fi
4452else
4453 if test "$GXX" = yes; then
4454 CXXFLAGS="-O2"
4455 else
4456 CXXFLAGS=
4457 fi
4458fi
4459ac_ext=c
4460ac_cpp='$CPP $CPPFLAGS'
4461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464
4465depcc="$CXX" am_compiler_list=
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4468$as_echo_n "checking dependency style of $depcc... " >&6; }
4469if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471else
4472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4473 # We make a subdir and do the tests there. Otherwise we can end up
4474 # making bogus files that we don't know about and never remove. For
4475 # instance it was reported that on HP-UX the gcc test will end up
4476 # making a dummy file named 'D' -- because '-MD' means "put the output
4477 # in D".
4478 rm -rf conftest.dir
4479 mkdir conftest.dir
4480 # Copy depcomp to subdir because otherwise we won't find it if we're
4481 # using a relative directory.
4482 cp "$am_depcomp" conftest.dir
4483 cd conftest.dir
4484 # We will build objects and dependencies in a subdirectory because
4485 # it helps to detect inapplicable dependency modes. For instance
4486 # both Tru64's cc and ICC support -MD to output dependencies as a
4487 # side effect of compilation, but ICC will put the dependencies in
4488 # the current directory while Tru64 will put them in the object
4489 # directory.
4490 mkdir sub
4491
4492 am_cv_CXX_dependencies_compiler_type=none
4493 if test "$am_compiler_list" = ""; then
4494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4495 fi
4496 am__universal=false
4497 case " $depcc " in #(
4498 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4499 esac
4500
4501 for depmode in $am_compiler_list; do
4502 # Setup a source with many dependencies, because some compilers
4503 # like to wrap large dependency lists on column 80 (with \), and
4504 # we should not choose a depcomp mode which is confused by this.
4505 #
4506 # We need to recreate these files for each test, as the compiler may
4507 # overwrite some of them when testing with obscure command lines.
4508 # This happens at least with the AIX C compiler.
4509 : > sub/conftest.c
4510 for i in 1 2 3 4 5 6; do
4511 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4512 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4513 # Solaris 10 /bin/sh.
4514 echo '/* dummy */' > sub/conftst$i.h
4515 done
4516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517
4518 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4519 # mode. It turns out that the SunPro C++ compiler does not properly
4520 # handle '-M -o', and we need to detect this. Also, some Intel
4521 # versions had trouble with output in subdirs.
4522 am__obj=sub/conftest.${OBJEXT-o}
4523 am__minus_obj="-o $am__obj"
4524 case $depmode in
4525 gcc)
4526 # This depmode causes a compiler race in universal mode.
4527 test "$am__universal" = false || continue
4528 ;;
4529 nosideeffect)
4530 # After this tag, mechanisms are not by side-effect, so they'll
4531 # only be used when explicitly requested.
4532 if test "x$enable_dependency_tracking" = xyes; then
4533 continue
4534 else
4535 break
4536 fi
4537 ;;
4538 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4539 # This compiler won't grok '-c -o', but also, the minuso test has
4540 # not run yet. These depmodes are late enough in the game, and
4541 # so weak that their functioning should not be impacted.
4542 am__obj=conftest.${OBJEXT-o}
4543 am__minus_obj=
4544 ;;
4545 none) break ;;
4546 esac
4547 if depmode=$depmode \
4548 source=sub/conftest.c object=$am__obj \
4549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4550 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4551 >/dev/null 2>conftest.err &&
4552 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4556 # icc doesn't choke on unknown options, it will just issue warnings
4557 # or remarks (even with -Werror). So we grep stderr for any message
4558 # that says an option was ignored or not supported.
4559 # When given -MP, icc 7.0 and 7.1 complain thusly:
4560 # icc: Command line warning: ignoring option '-M'; no argument required
4561 # The diagnosis changed in icc 8.0:
4562 # icc: Command line remark: option '-MP' not supported
4563 if (grep 'ignoring option' conftest.err ||
4564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4565 am_cv_CXX_dependencies_compiler_type=$depmode
4566 break
4567 fi
4568 fi
4569 done
4570
4571 cd ..
4572 rm -rf conftest.dir
4573else
4574 am_cv_CXX_dependencies_compiler_type=none
4575fi
4576
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4579$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4580CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4581
4582 if
4583 test "x$enable_dependency_tracking" != xno \
4584 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4585 am__fastdepCXX_TRUE=
4586 am__fastdepCXX_FALSE='#'
4587else
4588 am__fastdepCXX_TRUE='#'
4589 am__fastdepCXX_FALSE=
4590fi
4591
4592
4593ac_ext=mm
4594ac_cpp='$OBJCXXCPP $CPPFLAGS'
4595ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4598if test -n "$ac_tool_prefix"; then
4599 for ac_prog in g++ objc++ objcxx c++ CXX
4600 do
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if ${ac_cv_prog_OBJCXX+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607else
4608 if test -n "$OBJCXX"; then
4609 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622done
4623 done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628OBJCXX=$ac_cv_prog_OBJCXX
4629if test -n "$OBJCXX"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4631$as_echo "$OBJCXX" >&6; }
4632else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637
4638 test -n "$OBJCXX" && break
4639 done
4640fi
4641if test -z "$OBJCXX"; then
4642 ac_ct_OBJCXX=$OBJCXX
4643 for ac_prog in g++ objc++ objcxx c++ CXX
4644do
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646set dummy $ac_prog; ac_word=$2
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651else
4652 if test -n "$ac_ct_OBJCXX"; then
4653 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666done
4667 done
4668IFS=$as_save_IFS
4669
4670fi
4671fi
4672ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4673if test -n "$ac_ct_OBJCXX"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4675$as_echo "$ac_ct_OBJCXX" >&6; }
4676else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678$as_echo "no" >&6; }
4679fi
4680
4681
4682 test -n "$ac_ct_OBJCXX" && break
4683done
4684
4685 if test "x$ac_ct_OBJCXX" = x; then
4686 OBJCXX="g++"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689yes:)
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692ac_tool_warned=yes ;;
4693esac
4694 OBJCXX=$ac_ct_OBJCXX
4695 fi
4696fi
4697
4698# Provide some information about the compiler.
4699$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4700set X $ac_compile
4701ac_compiler=$2
4702for ac_option in --version -v -V -qversion; do
4703 { { ac_try="$ac_compiler $ac_option >&5"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4711 ac_status=$?
4712 if test -s conftest.err; then
4713 sed '10a\
4714... rest of stderr output deleted ...
4715 10q' conftest.err >conftest.er1
4716 cat conftest.er1 >&5
4717 fi
4718 rm -f conftest.er1 conftest.err
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721done
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4724$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4725if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742if ac_fn_objcxx_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744else
4745 ac_compiler_gnu=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4749
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4752$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4753if test $ac_compiler_gnu = yes; then
4754 GOBJCXX=yes
4755else
4756 GOBJCXX=
4757fi
4758ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4759ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4761$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4762if ${ac_cv_prog_objcxx_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764else
4765 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4766 ac_objcxx_werror_flag=yes
4767 ac_cv_prog_objcxx_g=no
4768 OBJCXXFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780if ac_fn_objcxx_try_compile "$LINENO"; then :
4781 ac_cv_prog_objcxx_g=yes
4782else
4783 OBJCXXFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786
4787int
4788main ()
4789{
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795if ac_fn_objcxx_try_compile "$LINENO"; then :
4796
4797else
4798 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4799 OBJCXXFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811if ac_fn_objcxx_try_compile "$LINENO"; then :
4812 ac_cv_prog_objcxx_g=yes
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4822$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4823if test "$ac_test_OBJCXXFLAGS" = set; then
4824 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4825elif test $ac_cv_prog_objcxx_g = yes; then
4826 if test "$GOBJCXX" = yes; then
4827 OBJCXXFLAGS="-g -O2"
4828 else
4829 OBJCXXFLAGS="-g"
4830 fi
4831else
4832 if test "$GOBJCXX" = yes; then
4833 OBJCXXFLAGS="-O2"
4834 else
4835 OBJCXXFLAGS=
4836 fi
4837fi
4838ac_ext=c
4839ac_cpp='$CPP $CPPFLAGS'
4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4847$as_echo_n "checking dependency style of $depcc... " >&6; }
4848if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4852 # We make a subdir and do the tests there. Otherwise we can end up
4853 # making bogus files that we don't know about and never remove. For
4854 # instance it was reported that on HP-UX the gcc test will end up
4855 # making a dummy file named 'D' -- because '-MD' means "put the output
4856 # in D".
4857 rm -rf conftest.dir
4858 mkdir conftest.dir
4859 # Copy depcomp to subdir because otherwise we won't find it if we're
4860 # using a relative directory.
4861 cp "$am_depcomp" conftest.dir
4862 cd conftest.dir
4863 # We will build objects and dependencies in a subdirectory because
4864 # it helps to detect inapplicable dependency modes. For instance
4865 # both Tru64's cc and ICC support -MD to output dependencies as a
4866 # side effect of compilation, but ICC will put the dependencies in
4867 # the current directory while Tru64 will put them in the object
4868 # directory.
4869 mkdir sub
4870
4871 am_cv_OBJCXX_dependencies_compiler_type=none
4872 if test "$am_compiler_list" = ""; then
4873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4874 fi
4875 am__universal=false
4876
4877
4878 for depmode in $am_compiler_list; do
4879 # Setup a source with many dependencies, because some compilers
4880 # like to wrap large dependency lists on column 80 (with \), and
4881 # we should not choose a depcomp mode which is confused by this.
4882 #
4883 # We need to recreate these files for each test, as the compiler may
4884 # overwrite some of them when testing with obscure command lines.
4885 # This happens at least with the AIX C compiler.
4886 : > sub/conftest.c
4887 for i in 1 2 3 4 5 6; do
4888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4889 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4890 # Solaris 10 /bin/sh.
4891 echo '/* dummy */' > sub/conftst$i.h
4892 done
4893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4894
4895 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4896 # mode. It turns out that the SunPro C++ compiler does not properly
4897 # handle '-M -o', and we need to detect this. Also, some Intel
4898 # versions had trouble with output in subdirs.
4899 am__obj=sub/conftest.${OBJEXT-o}
4900 am__minus_obj="-o $am__obj"
4901 case $depmode in
4902 gcc)
4903 # This depmode causes a compiler race in universal mode.
4904 test "$am__universal" = false || continue
4905 ;;
4906 nosideeffect)
4907 # After this tag, mechanisms are not by side-effect, so they'll
4908 # only be used when explicitly requested.
4909 if test "x$enable_dependency_tracking" = xyes; then
4910 continue
4911 else
4912 break
4913 fi
4914 ;;
4915 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4916 # This compiler won't grok '-c -o', but also, the minuso test has
4917 # not run yet. These depmodes are late enough in the game, and
4918 # so weak that their functioning should not be impacted.
4919 am__obj=conftest.${OBJEXT-o}
4920 am__minus_obj=
4921 ;;
4922 none) break ;;
4923 esac
4924 if depmode=$depmode \
4925 source=sub/conftest.c object=$am__obj \
4926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4928 >/dev/null 2>conftest.err &&
4929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4933 # icc doesn't choke on unknown options, it will just issue warnings
4934 # or remarks (even with -Werror). So we grep stderr for any message
4935 # that says an option was ignored or not supported.
4936 # When given -MP, icc 7.0 and 7.1 complain thusly:
4937 # icc: Command line warning: ignoring option '-M'; no argument required
4938 # The diagnosis changed in icc 8.0:
4939 # icc: Command line remark: option '-MP' not supported
4940 if (grep 'ignoring option' conftest.err ||
4941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4942 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4943 break
4944 fi
4945 fi
4946 done
4947
4948 cd ..
4949 rm -rf conftest.dir
4950else
4951 am_cv_OBJCXX_dependencies_compiler_type=none
4952fi
4953
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4956$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4957OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4958
4959 if
4960 test "x$enable_dependency_tracking" != xno \
4961 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4962 am__fastdepOBJCXX_TRUE=
4963 am__fastdepOBJCXX_FALSE='#'
4964else
4965 am__fastdepOBJCXX_TRUE='#'
4966 am__fastdepOBJCXX_FALSE=
4967fi
4968
4969
4970
4971
4972if test -n "$ac_tool_prefix"; then
4973 for ac_prog in ar lib "link -lib"
4974 do
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978$as_echo_n "checking for $ac_word... " >&6; }
4979if ${ac_cv_prog_AR+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981else
4982 if test -n "$AR"; then
4983 ac_cv_prog_AR="$AR" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997 done
4998IFS=$as_save_IFS
4999
5000fi
5001fi
5002AR=$ac_cv_prog_AR
5003if test -n "$AR"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5005$as_echo "$AR" >&6; }
5006else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008$as_echo "no" >&6; }
5009fi
5010
5011
5012 test -n "$AR" && break
5013 done
5014fi
5015if test -z "$AR"; then
5016 ac_ct_AR=$AR
5017 for ac_prog in ar lib "link -lib"
5018do
5019 # Extract the first word of "$ac_prog", so it can be a program name with args.
5020set dummy $ac_prog; ac_word=$2
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022$as_echo_n "checking for $ac_word... " >&6; }
5023if ${ac_cv_prog_ac_ct_AR+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025else
5026 if test -n "$ac_ct_AR"; then
5027 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_AR="$ac_prog"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041 done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046ac_ct_AR=$ac_cv_prog_ac_ct_AR
5047if test -n "$ac_ct_AR"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5049$as_echo "$ac_ct_AR" >&6; }
5050else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052$as_echo "no" >&6; }
5053fi
5054
5055
5056 test -n "$ac_ct_AR" && break
5057done
5058
5059 if test "x$ac_ct_AR" = x; then
5060 AR="false"
5061 else
5062 case $cross_compiling:$ac_tool_warned in
5063yes:)
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066ac_tool_warned=yes ;;
5067esac
5068 AR=$ac_ct_AR
5069 fi
5070fi
5071
5072: ${AR=ar}
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5075$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5076if ${am_cv_ar_interface+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085 am_cv_ar_interface=ar
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h. */
5088int some_variable = 0;
5089_ACEOF
5090if ac_fn_c_try_compile "$LINENO"; then :
5091 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5093 (eval $am_ar_try) 2>&5
5094 ac_status=$?
5095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096 test $ac_status = 0; }
5097 if test "$ac_status" -eq 0; then
5098 am_cv_ar_interface=ar
5099 else
5100 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5102 (eval $am_ar_try) 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }
5106 if test "$ac_status" -eq 0; then
5107 am_cv_ar_interface=lib
5108 else
5109 am_cv_ar_interface=unknown
5110 fi
5111 fi
5112 rm -f conftest.lib libconftest.a
5113
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_ext=c
5117ac_cpp='$CPP $CPPFLAGS'
5118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121
5122fi
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5124$as_echo "$am_cv_ar_interface" >&6; }
5125
5126case $am_cv_ar_interface in
5127ar)
5128 ;;
5129lib)
5130 # Microsoft lib, so override with the ar-lib wrapper script.
5131 # FIXME: It is wrong to rewrite AR.
5132 # But if we don't then we get into trouble of one sort or another.
5133 # A longer-term fix would be to have automake use am__AR in this case,
5134 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5135 # similar.
5136 AR="$am_aux_dir/ar-lib $AR"
5137 ;;
5138unknown)
5139 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5140 ;;
5141esac
5142
5143
5144
5145case `pwd` in
5146 *\ * | *\ *)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5148$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5149esac
5150
5151
5152
5153macro_version='2.4.6'
5154macro_revision='2.4.6'
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168ltmain=$ac_aux_dir/ltmain.sh
5169
5170# Make sure we can run config.sub.
5171$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5172 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5173
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5175$as_echo_n "checking build system type... " >&6; }
5176if ${ac_cv_build+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178else
5179 ac_build_alias=$build_alias
5180test "x$ac_build_alias" = x &&
5181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5182test "x$ac_build_alias" = x &&
5183 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5184ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5185 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5186
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5189$as_echo "$ac_cv_build" >&6; }
5190case $ac_cv_build in
5191*-*-*) ;;
5192*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5193esac
5194build=$ac_cv_build
5195ac_save_IFS=$IFS; IFS='-'
5196set x $ac_cv_build
5197shift
5198build_cpu=$1
5199build_vendor=$2
5200shift; shift
5201# Remember, the first character of IFS is used to create $*,
5202# except with old shells:
5203build_os=$*
5204IFS=$ac_save_IFS
5205case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5209$as_echo_n "checking host system type... " >&6; }
5210if ${ac_cv_host+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 if test "x$host_alias" = x; then
5214 ac_cv_host=$ac_cv_build
5215else
5216 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5217 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5218fi
5219
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5222$as_echo "$ac_cv_host" >&6; }
5223case $ac_cv_host in
5224*-*-*) ;;
5225*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5226esac
5227host=$ac_cv_host
5228ac_save_IFS=$IFS; IFS='-'
5229set x $ac_cv_host
5230shift
5231host_cpu=$1
5232host_vendor=$2
5233shift; shift
5234# Remember, the first character of IFS is used to create $*,
5235# except with old shells:
5236host_os=$*
5237IFS=$ac_save_IFS
5238case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5239
5240
5241# Backslashify metacharacters that are still active within
5242# double-quoted strings.
5243sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5244
5245# Same as above, but do not quote variable references.
5246double_quote_subst='s/\(["`\\]\)/\\\1/g'
5247
5248# Sed substitution to delay expansion of an escaped shell variable in a
5249# double_quote_subst'ed string.
5250delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5251
5252# Sed substitution to delay expansion of an escaped single quote.
5253delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5254
5255# Sed substitution to avoid accidental globbing in evaled expressions
5256no_glob_subst='s/\*/\\\*/g'
5257
5258ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5259ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5260ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5261
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5263$as_echo_n "checking how to print strings... " >&6; }
5264# Test print first, because it will be a builtin if present.
5265if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5266 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5267 ECHO='print -r --'
5268elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5269 ECHO='printf %s\n'
5270else
5271 # Use this function as a fallback that always works.
5272 func_fallback_echo ()
5273 {
5274 eval 'cat <<_LTECHO_EOF
5275$1
5276_LTECHO_EOF'
5277 }
5278 ECHO='func_fallback_echo'
5279fi
5280
5281# func_echo_all arg...
5282# Invoke $ECHO with all args, space-separated.
5283func_echo_all ()
5284{
5285 $ECHO ""
5286}
5287
5288case $ECHO in
5289 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5290$as_echo "printf" >&6; } ;;
5291 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5292$as_echo "print -r" >&6; } ;;
5293 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5294$as_echo "cat" >&6; } ;;
5295esac
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5311$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5312if ${ac_cv_path_SED+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314else
5315 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5316 for ac_i in 1 2 3 4 5 6 7; do
5317 ac_script="$ac_script$as_nl$ac_script"
5318 done
5319 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5320 { ac_script=; unset ac_script;}
5321 if test -z "$SED"; then
5322 ac_path_SED_found=false
5323 # Loop through the user's path and test for each of PROGNAME-LIST
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325for as_dir in $PATH
5326do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_prog in sed gsed; do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5332 as_fn_executable_p "$ac_path_SED" || continue
5333# Check for GNU ac_path_SED and select it if it is found.
5334 # Check for GNU $ac_path_SED
5335case `"$ac_path_SED" --version 2>&1` in
5336*GNU*)
5337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5338*)
5339 ac_count=0
5340 $as_echo_n 0123456789 >"conftest.in"
5341 while :
5342 do
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 $as_echo '' >> "conftest.nl"
5347 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 as_fn_arith $ac_count + 1 && ac_count=$as_val
5350 if test $ac_count -gt ${ac_path_SED_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_SED="$ac_path_SED"
5353 ac_path_SED_max=$ac_count
5354 fi
5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5357 done
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359esac
5360
5361 $ac_path_SED_found && break 3
5362 done
5363 done
5364 done
5365IFS=$as_save_IFS
5366 if test -z "$ac_cv_path_SED"; then
5367 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5368 fi
5369else
5370 ac_cv_path_SED=$SED
5371fi
5372
5373fi
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5375$as_echo "$ac_cv_path_SED" >&6; }
5376 SED="$ac_cv_path_SED"
5377 rm -f conftest.sed
5378
5379test -z "$SED" && SED=sed
5380Xsed="$SED -e 1s/^X//"
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5393$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5394if ${ac_cv_path_GREP+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396else
5397 if test -z "$GREP"; then
5398 ac_path_GREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_prog in grep ggrep; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5408 as_fn_executable_p "$ac_path_GREP" || continue
5409# Check for GNU ac_path_GREP and select it if it is found.
5410 # Check for GNU $ac_path_GREP
5411case `"$ac_path_GREP" --version 2>&1` in
5412*GNU*)
5413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5414*)
5415 ac_count=0
5416 $as_echo_n 0123456789 >"conftest.in"
5417 while :
5418 do
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'GREP' >> "conftest.nl"
5423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425 as_fn_arith $ac_count + 1 && ac_count=$as_val
5426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_GREP="$ac_path_GREP"
5429 ac_path_GREP_max=$ac_count
5430 fi
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5433 done
5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5435esac
5436
5437 $ac_path_GREP_found && break 3
5438 done
5439 done
5440 done
5441IFS=$as_save_IFS
5442 if test -z "$ac_cv_path_GREP"; then
5443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444 fi
5445else
5446 ac_cv_path_GREP=$GREP
5447fi
5448
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5451$as_echo "$ac_cv_path_GREP" >&6; }
5452 GREP="$ac_cv_path_GREP"
5453
5454
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5456$as_echo_n "checking for egrep... " >&6; }
5457if ${ac_cv_path_EGREP+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5461 then ac_cv_path_EGREP="$GREP -E"
5462 else
5463 if test -z "$EGREP"; then
5464 ac_path_EGREP_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_prog in egrep; do
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5474 as_fn_executable_p "$ac_path_EGREP" || continue
5475# Check for GNU ac_path_EGREP and select it if it is found.
5476 # Check for GNU $ac_path_EGREP
5477case `"$ac_path_EGREP" --version 2>&1` in
5478*GNU*)
5479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5480*)
5481 ac_count=0
5482 $as_echo_n 0123456789 >"conftest.in"
5483 while :
5484 do
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'EGREP' >> "conftest.nl"
5489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491 as_fn_arith $ac_count + 1 && ac_count=$as_val
5492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_EGREP="$ac_path_EGREP"
5495 ac_path_EGREP_max=$ac_count
5496 fi
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5499 done
5500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501esac
5502
5503 $ac_path_EGREP_found && break 3
5504 done
5505 done
5506 done
5507IFS=$as_save_IFS
5508 if test -z "$ac_cv_path_EGREP"; then
5509 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5510 fi
5511else
5512 ac_cv_path_EGREP=$EGREP
5513fi
5514
5515 fi
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5518$as_echo "$ac_cv_path_EGREP" >&6; }
5519 EGREP="$ac_cv_path_EGREP"
5520
5521
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5523$as_echo_n "checking for fgrep... " >&6; }
5524if ${ac_cv_path_FGREP+:} false; then :
5525 $as_echo_n "(cached) " >&6
5526else
5527 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5528 then ac_cv_path_FGREP="$GREP -F"
5529 else
5530 if test -z "$FGREP"; then
5531 ac_path_FGREP_found=false
5532 # Loop through the user's path and test for each of PROGNAME-LIST
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_prog in fgrep; do
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5541 as_fn_executable_p "$ac_path_FGREP" || continue
5542# Check for GNU ac_path_FGREP and select it if it is found.
5543 # Check for GNU $ac_path_FGREP
5544case `"$ac_path_FGREP" --version 2>&1` in
5545*GNU*)
5546 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5547*)
5548 ac_count=0
5549 $as_echo_n 0123456789 >"conftest.in"
5550 while :
5551 do
5552 cat "conftest.in" "conftest.in" >"conftest.tmp"
5553 mv "conftest.tmp" "conftest.in"
5554 cp "conftest.in" "conftest.nl"
5555 $as_echo 'FGREP' >> "conftest.nl"
5556 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558 as_fn_arith $ac_count + 1 && ac_count=$as_val
5559 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5560 # Best one so far, save it but keep looking for a better one
5561 ac_cv_path_FGREP="$ac_path_FGREP"
5562 ac_path_FGREP_max=$ac_count
5563 fi
5564 # 10*(2^10) chars as input seems more than enough
5565 test $ac_count -gt 10 && break
5566 done
5567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568esac
5569
5570 $ac_path_FGREP_found && break 3
5571 done
5572 done
5573 done
5574IFS=$as_save_IFS
5575 if test -z "$ac_cv_path_FGREP"; then
5576 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5577 fi
5578else
5579 ac_cv_path_FGREP=$FGREP
5580fi
5581
5582 fi
5583fi
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5585$as_echo "$ac_cv_path_FGREP" >&6; }
5586 FGREP="$ac_cv_path_FGREP"
5587
5588
5589test -z "$GREP" && GREP=grep
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609# Check whether --with-gnu-ld was given.
5610if test "${with_gnu_ld+set}" = set; then :
5611 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5612else
5613 with_gnu_ld=no
5614fi
5615
5616ac_prog=ld
5617if test yes = "$GCC"; then
5618 # Check if gcc -print-prog-name=ld gives a path.
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5620$as_echo_n "checking for ld used by $CC... " >&6; }
5621 case $host in
5622 *-*-mingw*)
5623 # gcc leaves a trailing carriage return, which upsets mingw
5624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5625 *)
5626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5627 esac
5628 case $ac_prog in
5629 # Accept absolute paths.
5630 [\\/]* | ?:[\\/]*)
5631 re_direlt='/[^/][^/]*/\.\./'
5632 # Canonicalize the pathname of ld
5633 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5634 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5635 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5636 done
5637 test -z "$LD" && LD=$ac_prog
5638 ;;
5639 "")
5640 # If it fails, then pretend we aren't using GCC.
5641 ac_prog=ld
5642 ;;
5643 *)
5644 # If it is relative, then search for the first ld in PATH.
5645 with_gnu_ld=unknown
5646 ;;
5647 esac
5648elif test yes = "$with_gnu_ld"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5650$as_echo_n "checking for GNU ld... " >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5653$as_echo_n "checking for non-GNU ld... " >&6; }
5654fi
5655if ${lt_cv_path_LD+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657else
5658 if test -z "$LD"; then
5659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5660 for ac_dir in $PATH; do
5661 IFS=$lt_save_ifs
5662 test -z "$ac_dir" && ac_dir=.
5663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5664 lt_cv_path_LD=$ac_dir/$ac_prog
5665 # Check to see if the program is GNU ld. I'd rather use --version,
5666 # but apparently some variants of GNU ld only accept -v.
5667 # Break only if it was the GNU/non-GNU ld that we prefer.
5668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5669 *GNU* | *'with BFD'*)
5670 test no != "$with_gnu_ld" && break
5671 ;;
5672 *)
5673 test yes != "$with_gnu_ld" && break
5674 ;;
5675 esac
5676 fi
5677 done
5678 IFS=$lt_save_ifs
5679else
5680 lt_cv_path_LD=$LD # Let the user override the test with a path.
5681fi
5682fi
5683
5684LD=$lt_cv_path_LD
5685if test -n "$LD"; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5687$as_echo "$LD" >&6; }
5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690$as_echo "no" >&6; }
5691fi
5692test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5694$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5695if ${lt_cv_prog_gnu_ld+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697else
5698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5699case `$LD -v 2>&1 </dev/null` in
5700*GNU* | *'with BFD'*)
5701 lt_cv_prog_gnu_ld=yes
5702 ;;
5703*)
5704 lt_cv_prog_gnu_ld=no
5705 ;;
5706esac
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5709$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5710with_gnu_ld=$lt_cv_prog_gnu_ld
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5721$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5722if ${lt_cv_path_NM+:} false; then :
5723 $as_echo_n "(cached) " >&6
5724else
5725 if test -n "$NM"; then
5726 # Let the user override the test.
5727 lt_cv_path_NM=$NM
5728else
5729 lt_nm_to_check=${ac_tool_prefix}nm
5730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5731 lt_nm_to_check="$lt_nm_to_check nm"
5732 fi
5733 for lt_tmp_nm in $lt_nm_to_check; do
5734 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5736 IFS=$lt_save_ifs
5737 test -z "$ac_dir" && ac_dir=.
5738 tmp_nm=$ac_dir/$lt_tmp_nm
5739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5740 # Check to see if the nm accepts a BSD-compat flag.
5741 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5742 # nm: unknown option "B" ignored
5743 # Tru64's nm complains that /dev/null is an invalid object file
5744 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5745 case $build_os in
5746 mingw*) lt_bad_file=conftest.nm/nofile ;;
5747 *) lt_bad_file=/dev/null ;;
5748 esac
5749 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5750 *$lt_bad_file* | *'Invalid file or object type'*)
5751 lt_cv_path_NM="$tmp_nm -B"
5752 break 2
5753 ;;
5754 *)
5755 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5756 */dev/null*)
5757 lt_cv_path_NM="$tmp_nm -p"
5758 break 2
5759 ;;
5760 *)
5761 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5762 continue # so that we can try to find one that supports BSD flags
5763 ;;
5764 esac
5765 ;;
5766 esac
5767 fi
5768 done
5769 IFS=$lt_save_ifs
5770 done
5771 : ${lt_cv_path_NM=no}
5772fi
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5775$as_echo "$lt_cv_path_NM" >&6; }
5776if test no != "$lt_cv_path_NM"; then
5777 NM=$lt_cv_path_NM
5778else
5779 # Didn't find any BSD compatible name lister, look for dumpbin.
5780 if test -n "$DUMPBIN"; then :
5781 # Let the user override the test.
5782 else
5783 if test -n "$ac_tool_prefix"; then
5784 for ac_prog in dumpbin "link -dump"
5785 do
5786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5787set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789$as_echo_n "checking for $ac_word... " >&6; }
5790if ${ac_cv_prog_DUMPBIN+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792else
5793 if test -n "$DUMPBIN"; then
5794 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808 done
5809IFS=$as_save_IFS
5810
5811fi
5812fi
5813DUMPBIN=$ac_cv_prog_DUMPBIN
5814if test -n "$DUMPBIN"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5816$as_echo "$DUMPBIN" >&6; }
5817else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819$as_echo "no" >&6; }
5820fi
5821
5822
5823 test -n "$DUMPBIN" && break
5824 done
5825fi
5826if test -z "$DUMPBIN"; then
5827 ac_ct_DUMPBIN=$DUMPBIN
5828 for ac_prog in dumpbin "link -dump"
5829do
5830 # Extract the first word of "$ac_prog", so it can be a program name with args.
5831set dummy $ac_prog; ac_word=$2
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833$as_echo_n "checking for $ac_word... " >&6; }
5834if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5835 $as_echo_n "(cached) " >&6
5836else
5837 if test -n "$ac_ct_DUMPBIN"; then
5838 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5839else
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852 done
5853IFS=$as_save_IFS
5854
5855fi
5856fi
5857ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5858if test -n "$ac_ct_DUMPBIN"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5860$as_echo "$ac_ct_DUMPBIN" >&6; }
5861else
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863$as_echo "no" >&6; }
5864fi
5865
5866
5867 test -n "$ac_ct_DUMPBIN" && break
5868done
5869
5870 if test "x$ac_ct_DUMPBIN" = x; then
5871 DUMPBIN=":"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874yes:)
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877ac_tool_warned=yes ;;
5878esac
5879 DUMPBIN=$ac_ct_DUMPBIN
5880 fi
5881fi
5882
5883 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5884 *COFF*)
5885 DUMPBIN="$DUMPBIN -symbols -headers"
5886 ;;
5887 *)
5888 DUMPBIN=:
5889 ;;
5890 esac
5891 fi
5892
5893 if test : != "$DUMPBIN"; then
5894 NM=$DUMPBIN
5895 fi
5896fi
5897test -z "$NM" && NM=nm
5898
5899
5900
5901
5902
5903
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5905$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5906if ${lt_cv_nm_interface+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908else
5909 lt_cv_nm_interface="BSD nm"
5910 echo "int some_variable = 0;" > conftest.$ac_ext
5911 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5912 (eval "$ac_compile" 2>conftest.err)
5913 cat conftest.err >&5
5914 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5915 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5916 cat conftest.err >&5
5917 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5918 cat conftest.out >&5
5919 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5920 lt_cv_nm_interface="MS dumpbin"
5921 fi
5922 rm -rf conftest*
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5925$as_echo "$lt_cv_nm_interface" >&6; }
5926
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5928$as_echo_n "checking whether ln -s works... " >&6; }
5929LN_S=$as_ln_s
5930if test "$LN_S" = "ln -s"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5932$as_echo "yes" >&6; }
5933else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5935$as_echo "no, using $LN_S" >&6; }
5936fi
5937
5938# find the maximum length of command line arguments
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5940$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5941if ${lt_cv_sys_max_cmd_len+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943else
5944 i=0
5945 teststring=ABCD
5946
5947 case $build_os in
5948 msdosdjgpp*)
5949 # On DJGPP, this test can blow up pretty badly due to problems in libc
5950 # (any single argument exceeding 2000 bytes causes a buffer overrun
5951 # during glob expansion). Even if it were fixed, the result of this
5952 # check would be larger than it should be.
5953 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5954 ;;
5955
5956 gnu*)
5957 # Under GNU Hurd, this test is not required because there is
5958 # no limit to the length of command line arguments.
5959 # Libtool will interpret -1 as no limit whatsoever
5960 lt_cv_sys_max_cmd_len=-1;
5961 ;;
5962
5963 cygwin* | mingw* | cegcc*)
5964 # On Win9x/ME, this test blows up -- it succeeds, but takes
5965 # about 5 minutes as the teststring grows exponentially.
5966 # Worse, since 9x/ME are not pre-emptively multitasking,
5967 # you end up with a "frozen" computer, even though with patience
5968 # the test eventually succeeds (with a max line length of 256k).
5969 # Instead, let's just punt: use the minimum linelength reported by
5970 # all of the supported platforms: 8192 (on NT/2K/XP).
5971 lt_cv_sys_max_cmd_len=8192;
5972 ;;
5973
5974 mint*)
5975 # On MiNT this can take a long time and run out of memory.
5976 lt_cv_sys_max_cmd_len=8192;
5977 ;;
5978
5979 amigaos*)
5980 # On AmigaOS with pdksh, this test takes hours, literally.
5981 # So we just punt and use a minimum line length of 8192.
5982 lt_cv_sys_max_cmd_len=8192;
5983 ;;
5984
5985 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5986 # This has been around since 386BSD, at least. Likely further.
5987 if test -x /sbin/sysctl; then
5988 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5989 elif test -x /usr/sbin/sysctl; then
5990 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5991 else
5992 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5993 fi
5994 # And add a safety zone
5995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5997 ;;
5998
5999 interix*)
6000 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6001 lt_cv_sys_max_cmd_len=196608
6002 ;;
6003
6004 os2*)
6005 # The test takes a long time on OS/2.
6006 lt_cv_sys_max_cmd_len=8192
6007 ;;
6008
6009 osf*)
6010 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6011 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6012 # nice to cause kernel panics so lets avoid the loop below.
6013 # First set a reasonable default.
6014 lt_cv_sys_max_cmd_len=16384
6015 #
6016 if test -x /sbin/sysconfig; then
6017 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6018 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6019 esac
6020 fi
6021 ;;
6022 sco3.2v5*)
6023 lt_cv_sys_max_cmd_len=102400
6024 ;;
6025 sysv5* | sco5v6* | sysv4.2uw2*)
6026 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6027 if test -n "$kargmax"; then
6028 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6029 else
6030 lt_cv_sys_max_cmd_len=32768
6031 fi
6032 ;;
6033 *)
6034 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6035 if test -n "$lt_cv_sys_max_cmd_len" && \
6036 test undefined != "$lt_cv_sys_max_cmd_len"; then
6037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6039 else
6040 # Make teststring a little bigger before we do anything with it.
6041 # a 1K string should be a reasonable start.
6042 for i in 1 2 3 4 5 6 7 8; do
6043 teststring=$teststring$teststring
6044 done
6045 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6046 # If test is not a shell built-in, we'll probably end up computing a
6047 # maximum length that is only half of the actual maximum length, but
6048 # we can't tell.
6049 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6050 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6051 test 17 != "$i" # 1/2 MB should be enough
6052 do
6053 i=`expr $i + 1`
6054 teststring=$teststring$teststring
6055 done
6056 # Only check the string length outside the loop.
6057 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6058 teststring=
6059 # Add a significant safety factor because C++ compilers can tack on
6060 # massive amounts of additional arguments before passing them to the
6061 # linker. It appears as though 1/2 is a usable value.
6062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6063 fi
6064 ;;
6065 esac
6066
6067fi
6068
6069if test -n "$lt_cv_sys_max_cmd_len"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6071$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6072else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6074$as_echo "none" >&6; }
6075fi
6076max_cmd_len=$lt_cv_sys_max_cmd_len
6077
6078
6079
6080
6081
6082
6083: ${CP="cp -f"}
6084: ${MV="mv -f"}
6085: ${RM="rm -f"}
6086
6087if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6088 lt_unset=unset
6089else
6090 lt_unset=false
6091fi
6092
6093
6094
6095
6096
6097# test EBCDIC or ASCII
6098case `echo X|tr X '\101'` in
6099 A) # ASCII based system
6100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6101 lt_SP2NL='tr \040 \012'
6102 lt_NL2SP='tr \015\012 \040\040'
6103 ;;
6104 *) # EBCDIC based system
6105 lt_SP2NL='tr \100 \n'
6106 lt_NL2SP='tr \r\n \100\100'
6107 ;;
6108esac
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6119$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6120if ${lt_cv_to_host_file_cmd+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122else
6123 case $host in
6124 *-*-mingw* )
6125 case $build in
6126 *-*-mingw* ) # actually msys
6127 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6128 ;;
6129 *-*-cygwin* )
6130 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6131 ;;
6132 * ) # otherwise, assume *nix
6133 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6134 ;;
6135 esac
6136 ;;
6137 *-*-cygwin* )
6138 case $build in
6139 *-*-mingw* ) # actually msys
6140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6141 ;;
6142 *-*-cygwin* )
6143 lt_cv_to_host_file_cmd=func_convert_file_noop
6144 ;;
6145 * ) # otherwise, assume *nix
6146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6147 ;;
6148 esac
6149 ;;
6150 * ) # unhandled hosts (and "normal" native builds)
6151 lt_cv_to_host_file_cmd=func_convert_file_noop
6152 ;;
6153esac
6154
6155fi
6156
6157to_host_file_cmd=$lt_cv_to_host_file_cmd
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6159$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6160
6161
6162
6163
6164
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6166$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6167if ${lt_cv_to_tool_file_cmd+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169else
6170 #assume ordinary cross tools, or native build.
6171lt_cv_to_tool_file_cmd=func_convert_file_noop
6172case $host in
6173 *-*-mingw* )
6174 case $build in
6175 *-*-mingw* ) # actually msys
6176 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6177 ;;
6178 esac
6179 ;;
6180esac
6181
6182fi
6183
6184to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6186$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6187
6188
6189
6190
6191
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6193$as_echo_n "checking for $LD option to reload object files... " >&6; }
6194if ${lt_cv_ld_reload_flag+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196else
6197 lt_cv_ld_reload_flag='-r'
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6200$as_echo "$lt_cv_ld_reload_flag" >&6; }
6201reload_flag=$lt_cv_ld_reload_flag
6202case $reload_flag in
6203"" | " "*) ;;
6204*) reload_flag=" $reload_flag" ;;
6205esac
6206reload_cmds='$LD$reload_flag -o $output$reload_objs'
6207case $host_os in
6208 cygwin* | mingw* | pw32* | cegcc*)
6209 if test yes != "$GCC"; then
6210 reload_cmds=false
6211 fi
6212 ;;
6213 darwin*)
6214 if test yes = "$GCC"; then
6215 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6216 else
6217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6218 fi
6219 ;;
6220esac
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6232set dummy ${ac_tool_prefix}objdump; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_OBJDUMP+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237else
6238 if test -n "$OBJDUMP"; then
6239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252done
6253 done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258OBJDUMP=$ac_cv_prog_OBJDUMP
6259if test -n "$OBJDUMP"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6261$as_echo "$OBJDUMP" >&6; }
6262else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267
6268fi
6269if test -z "$ac_cv_prog_OBJDUMP"; then
6270 ac_ct_OBJDUMP=$OBJDUMP
6271 # Extract the first word of "objdump", so it can be a program name with args.
6272set dummy objdump; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277else
6278 if test -n "$ac_ct_OBJDUMP"; then
6279 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293 done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6299if test -n "$ac_ct_OBJDUMP"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6301$as_echo "$ac_ct_OBJDUMP" >&6; }
6302else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307 if test "x$ac_ct_OBJDUMP" = x; then
6308 OBJDUMP="false"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311yes:)
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314ac_tool_warned=yes ;;
6315esac
6316 OBJDUMP=$ac_ct_OBJDUMP
6317 fi
6318else
6319 OBJDUMP="$ac_cv_prog_OBJDUMP"
6320fi
6321
6322test -z "$OBJDUMP" && OBJDUMP=objdump
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6333$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6334if ${lt_cv_deplibs_check_method+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336else
6337 lt_cv_file_magic_cmd='$MAGIC_CMD'
6338lt_cv_file_magic_test_file=
6339lt_cv_deplibs_check_method='unknown'
6340# Need to set the preceding variable on all platforms that support
6341# interlibrary dependencies.
6342# 'none' -- dependencies not supported.
6343# 'unknown' -- same as none, but documents that we really don't know.
6344# 'pass_all' -- all dependencies passed with no checks.
6345# 'test_compile' -- check by making test program.
6346# 'file_magic [[regex]]' -- check by looking for files in library path
6347# that responds to the $file_magic_cmd with a given extended regex.
6348# If you have 'file' or equivalent on your system and you're not sure
6349# whether 'pass_all' will *always* work, you probably want this one.
6350
6351case $host_os in
6352aix[4-9]*)
6353 lt_cv_deplibs_check_method=pass_all
6354 ;;
6355
6356beos*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359
6360bsdi[45]*)
6361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6362 lt_cv_file_magic_cmd='/usr/bin/file -L'
6363 lt_cv_file_magic_test_file=/shlib/libc.so
6364 ;;
6365
6366cygwin*)
6367 # func_win32_libid is a shell function defined in ltmain.sh
6368 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6369 lt_cv_file_magic_cmd='func_win32_libid'
6370 ;;
6371
6372mingw* | pw32*)
6373 # Base MSYS/MinGW do not provide the 'file' command needed by
6374 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6375 # unless we find 'file', for example because we are cross-compiling.
6376 if ( file / ) >/dev/null 2>&1; then
6377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6378 lt_cv_file_magic_cmd='func_win32_libid'
6379 else
6380 # Keep this pattern in sync with the one in func_win32_libid.
6381 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6382 lt_cv_file_magic_cmd='$OBJDUMP -f'
6383 fi
6384 ;;
6385
6386cegcc*)
6387 # use the weaker test based on 'objdump'. See mingw*.
6388 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6389 lt_cv_file_magic_cmd='$OBJDUMP -f'
6390 ;;
6391
6392darwin* | rhapsody*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396freebsd* | dragonfly*)
6397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6398 case $host_cpu in
6399 i*86 )
6400 # Not sure whether the presence of OpenBSD here was a mistake.
6401 # Let's accept both of them until this is cleared up.
6402 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6403 lt_cv_file_magic_cmd=/usr/bin/file
6404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6405 ;;
6406 esac
6407 else
6408 lt_cv_deplibs_check_method=pass_all
6409 fi
6410 ;;
6411
6412haiku*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416hpux10.20* | hpux11*)
6417 lt_cv_file_magic_cmd=/usr/bin/file
6418 case $host_cpu in
6419 ia64*)
6420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6421 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6422 ;;
6423 hppa*64*)
6424 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]'
6425 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6426 ;;
6427 *)
6428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6429 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6430 ;;
6431 esac
6432 ;;
6433
6434interix[3-9]*)
6435 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6437 ;;
6438
6439irix5* | irix6* | nonstopux*)
6440 case $LD in
6441 *-32|*"-32 ") libmagic=32-bit;;
6442 *-n32|*"-n32 ") libmagic=N32;;
6443 *-64|*"-64 ") libmagic=64-bit;;
6444 *) libmagic=never-match;;
6445 esac
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448
6449# This must be glibc/ELF.
6450linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453
6454netbsd*)
6455 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6457 else
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6459 fi
6460 ;;
6461
6462newos6*)
6463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6464 lt_cv_file_magic_cmd=/usr/bin/file
6465 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6466 ;;
6467
6468*nto* | *qnx*)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
6471
6472openbsd* | bitrig*)
6473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6475 else
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6477 fi
6478 ;;
6479
6480osf3* | osf4* | osf5*)
6481 lt_cv_deplibs_check_method=pass_all
6482 ;;
6483
6484rdos*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488solaris*)
6489 lt_cv_deplibs_check_method=pass_all
6490 ;;
6491
6492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496sysv4 | sysv4.3*)
6497 case $host_vendor in
6498 motorola)
6499 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]'
6500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6501 ;;
6502 ncr)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505 sequent)
6506 lt_cv_file_magic_cmd='/bin/file'
6507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6508 ;;
6509 sni)
6510 lt_cv_file_magic_cmd='/bin/file'
6511 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6512 lt_cv_file_magic_test_file=/lib/libc.so
6513 ;;
6514 siemens)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517 pc)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520 esac
6521 ;;
6522
6523tpf*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526os2*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529esac
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6533$as_echo "$lt_cv_deplibs_check_method" >&6; }
6534
6535file_magic_glob=
6536want_nocaseglob=no
6537if test "$build" = "$host"; then
6538 case $host_os in
6539 mingw* | pw32*)
6540 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6541 want_nocaseglob=yes
6542 else
6543 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6544 fi
6545 ;;
6546 esac
6547fi
6548
6549file_magic_cmd=$lt_cv_file_magic_cmd
6550deplibs_check_method=$lt_cv_deplibs_check_method
6551test -z "$deplibs_check_method" && deplibs_check_method=unknown
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6576set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if ${ac_cv_prog_DLLTOOL+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581else
6582 if test -n "$DLLTOOL"; then
6583 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597 done
6598IFS=$as_save_IFS
6599
6600fi
6601fi
6602DLLTOOL=$ac_cv_prog_DLLTOOL
6603if test -n "$DLLTOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6605$as_echo "$DLLTOOL" >&6; }
6606else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
6610
6611
6612fi
6613if test -z "$ac_cv_prog_DLLTOOL"; then
6614 ac_ct_DLLTOOL=$DLLTOOL
6615 # Extract the first word of "dlltool", so it can be a program name with args.
6616set dummy dlltool; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621else
6622 if test -n "$ac_ct_DLLTOOL"; then
6623 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6632 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637 done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6643if test -n "$ac_ct_DLLTOOL"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6645$as_echo "$ac_ct_DLLTOOL" >&6; }
6646else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
6649fi
6650
6651 if test "x$ac_ct_DLLTOOL" = x; then
6652 DLLTOOL="false"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655yes:)
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658ac_tool_warned=yes ;;
6659esac
6660 DLLTOOL=$ac_ct_DLLTOOL
6661 fi
6662else
6663 DLLTOOL="$ac_cv_prog_DLLTOOL"
6664fi
6665
6666test -z "$DLLTOOL" && DLLTOOL=dlltool
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6678$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6679if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681else
6682 lt_cv_sharedlib_from_linklib_cmd='unknown'
6683
6684case $host_os in
6685cygwin* | mingw* | pw32* | cegcc*)
6686 # two different shell functions defined in ltmain.sh;
6687 # decide which one to use based on capabilities of $DLLTOOL
6688 case `$DLLTOOL --help 2>&1` in
6689 *--identify-strict*)
6690 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6691 ;;
6692 *)
6693 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6694 ;;
6695 esac
6696 ;;
6697*)
6698 # fallback: assume linklib IS sharedlib
6699 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6700 ;;
6701esac
6702
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6705$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6706sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6707test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6708
6709
6710
6711
6712
6713
6714
6715if test -n "$ac_tool_prefix"; then
6716 for ac_prog in ar
6717 do
6718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6719set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721$as_echo_n "checking for $ac_word... " >&6; }
6722if ${ac_cv_prog_AR+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724else
6725 if test -n "$AR"; then
6726 ac_cv_prog_AR="$AR" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740 done
6741IFS=$as_save_IFS
6742
6743fi
6744fi
6745AR=$ac_cv_prog_AR
6746if test -n "$AR"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6748$as_echo "$AR" >&6; }
6749else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751$as_echo "no" >&6; }
6752fi
6753
6754
6755 test -n "$AR" && break
6756 done
6757fi
6758if test -z "$AR"; then
6759 ac_ct_AR=$AR
6760 for ac_prog in ar
6761do
6762 # Extract the first word of "$ac_prog", so it can be a program name with args.
6763set dummy $ac_prog; ac_word=$2
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768else
6769 if test -n "$ac_ct_AR"; then
6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_AR="$ac_prog"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784 done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790if test -n "$ac_ct_AR"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792$as_echo "$ac_ct_AR" >&6; }
6793else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798
6799 test -n "$ac_ct_AR" && break
6800done
6801
6802 if test "x$ac_ct_AR" = x; then
6803 AR="false"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806yes:)
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809ac_tool_warned=yes ;;
6810esac
6811 AR=$ac_ct_AR
6812 fi
6813fi
6814
6815: ${AR=ar}
6816: ${AR_FLAGS=cru}
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6829$as_echo_n "checking for archiver @FILE support... " >&6; }
6830if ${lt_cv_ar_at_file+:} false; then :
6831 $as_echo_n "(cached) " >&6
6832else
6833 lt_cv_ar_at_file=no
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836
6837int
6838main ()
6839{
6840
6841 ;
6842 return 0;
6843}
6844_ACEOF
6845if ac_fn_c_try_compile "$LINENO"; then :
6846 echo conftest.$ac_objext > conftest.lst
6847 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849 (eval $lt_ar_try) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }
6853 if test 0 -eq "$ac_status"; then
6854 # Ensure the archiver fails upon bogus file names.
6855 rm -f conftest.$ac_objext libconftest.a
6856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6857 (eval $lt_ar_try) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }
6861 if test 0 -ne "$ac_status"; then
6862 lt_cv_ar_at_file=@
6863 fi
6864 fi
6865 rm -f conftest.* libconftest.a
6866
6867fi
6868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869
6870fi
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6872$as_echo "$lt_cv_ar_at_file" >&6; }
6873
6874if test no = "$lt_cv_ar_at_file"; then
6875 archiver_list_spec=
6876else
6877 archiver_list_spec=$lt_cv_ar_at_file
6878fi
6879
6880
6881
6882
6883
6884
6885
6886if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888set dummy ${ac_tool_prefix}strip; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if ${ac_cv_prog_STRIP+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893else
6894 if test -n "$STRIP"; then
6895 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909 done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914STRIP=$ac_cv_prog_STRIP
6915if test -n "$STRIP"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6917$as_echo "$STRIP" >&6; }
6918else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923
6924fi
6925if test -z "$ac_cv_prog_STRIP"; then
6926 ac_ct_STRIP=$STRIP
6927 # Extract the first word of "strip", so it can be a program name with args.
6928set dummy strip; ac_word=$2
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933else
6934 if test -n "$ac_ct_STRIP"; then
6935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936else
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_STRIP="strip"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948done
6949 done
6950IFS=$as_save_IFS
6951
6952fi
6953fi
6954ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955if test -n "$ac_ct_STRIP"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6957$as_echo "$ac_ct_STRIP" >&6; }
6958else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
6961fi
6962
6963 if test "x$ac_ct_STRIP" = x; then
6964 STRIP=":"
6965 else
6966 case $cross_compiling:$ac_tool_warned in
6967yes:)
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970ac_tool_warned=yes ;;
6971esac
6972 STRIP=$ac_ct_STRIP
6973 fi
6974else
6975 STRIP="$ac_cv_prog_STRIP"
6976fi
6977
6978test -z "$STRIP" && STRIP=:
6979
6980
6981
6982
6983
6984
6985if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6987set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989$as_echo_n "checking for $ac_word... " >&6; }
6990if ${ac_cv_prog_RANLIB+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992else
6993 if test -n "$RANLIB"; then
6994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008 done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013RANLIB=$ac_cv_prog_RANLIB
7014if test -n "$RANLIB"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7016$as_echo "$RANLIB" >&6; }
7017else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019$as_echo "no" >&6; }
7020fi
7021
7022
7023fi
7024if test -z "$ac_cv_prog_RANLIB"; then
7025 ac_ct_RANLIB=$RANLIB
7026 # Extract the first word of "ranlib", so it can be a program name with args.
7027set dummy ranlib; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032else
7033 if test -n "$ac_ct_RANLIB"; then
7034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_ac_ct_RANLIB="ranlib"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047done
7048 done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7054if test -n "$ac_ct_RANLIB"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7056$as_echo "$ac_ct_RANLIB" >&6; }
7057else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062 if test "x$ac_ct_RANLIB" = x; then
7063 RANLIB=":"
7064 else
7065 case $cross_compiling:$ac_tool_warned in
7066yes:)
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7069ac_tool_warned=yes ;;
7070esac
7071 RANLIB=$ac_ct_RANLIB
7072 fi
7073else
7074 RANLIB="$ac_cv_prog_RANLIB"
7075fi
7076
7077test -z "$RANLIB" && RANLIB=:
7078
7079
7080
7081
7082
7083
7084# Determine commands to create old-style static archives.
7085old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7086old_postinstall_cmds='chmod 644 $oldlib'
7087old_postuninstall_cmds=
7088
7089if test -n "$RANLIB"; then
7090 case $host_os in
7091 bitrig* | openbsd*)
7092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7093 ;;
7094 *)
7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7096 ;;
7097 esac
7098 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7099fi
7100
7101case $host_os in
7102 darwin*)
7103 lock_old_archive_extraction=yes ;;
7104 *)
7105 lock_old_archive_extraction=no ;;
7106esac
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146# If no C compiler was specified, use CC.
7147LTCC=${LTCC-"$CC"}
7148
7149# If no C compiler flags were specified, use CFLAGS.
7150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7151
7152# Allow CC to be a program name with arguments.
7153compiler=$CC
7154
7155
7156# Check for command to grab the raw symbol name followed by C symbol from nm.
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7158$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7159if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161else
7162
7163# These are sane defaults that work on at least a few old systems.
7164# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7165
7166# Character class describing NM global symbol codes.
7167symcode='[BCDEGRST]'
7168
7169# Regexp to match symbols that can be accessed directly from C.
7170sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7171
7172# Define system-specific variables.
7173case $host_os in
7174aix*)
7175 symcode='[BCDT]'
7176 ;;
7177cygwin* | mingw* | pw32* | cegcc*)
7178 symcode='[ABCDGISTW]'
7179 ;;
7180hpux*)
7181 if test ia64 = "$host_cpu"; then
7182 symcode='[ABCDEGRST]'
7183 fi
7184 ;;
7185irix* | nonstopux*)
7186 symcode='[BCDEGRST]'
7187 ;;
7188osf*)
7189 symcode='[BCDEGQRST]'
7190 ;;
7191solaris*)
7192 symcode='[BDRT]'
7193 ;;
7194sco3.2v5*)
7195 symcode='[DT]'
7196 ;;
7197sysv4.2uw2*)
7198 symcode='[DT]'
7199 ;;
7200sysv5* | sco5v6* | unixware* | OpenUNIX*)
7201 symcode='[ABDT]'
7202 ;;
7203sysv4)
7204 symcode='[DFNSTU]'
7205 ;;
7206esac
7207
7208# If we're using GNU nm, then use its standard symbol codes.
7209case `$NM -V 2>&1` in
7210*GNU* | *'with BFD'*)
7211 symcode='[ABCDGIRSTW]' ;;
7212esac
7213
7214if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7215 # Gets list of data symbols to import.
7216 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7217 # Adjust the below global symbol transforms to fixup imported variables.
7218 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7219 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7220 lt_c_name_lib_hook="\
7221 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7222 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7223else
7224 # Disable hooks by default.
7225 lt_cv_sys_global_symbol_to_import=
7226 lt_cdecl_hook=
7227 lt_c_name_hook=
7228 lt_c_name_lib_hook=
7229fi
7230
7231# Transform an extracted symbol line into a proper C declaration.
7232# Some systems (esp. on ia64) link data and code symbols differently,
7233# so use this general approach.
7234lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7235$lt_cdecl_hook\
7236" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7237" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7238
7239# Transform an extracted symbol line into symbol name and symbol address
7240lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7241$lt_c_name_hook\
7242" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7243" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7244
7245# Transform an extracted symbol line into symbol name with lib prefix and
7246# symbol address.
7247lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7248$lt_c_name_lib_hook\
7249" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7250" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7251" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7252
7253# Handle CRLF in mingw tool chain
7254opt_cr=
7255case $build_os in
7256mingw*)
7257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7258 ;;
7259esac
7260
7261# Try without a prefix underscore, then with it.
7262for ac_symprfx in "" "_"; do
7263
7264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7265 symxfrm="\\1 $ac_symprfx\\2 \\2"
7266
7267 # Write the raw and C identifiers.
7268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7269 # Fake it for dumpbin and say T for any non-static function,
7270 # D for any global variable and I for any imported variable.
7271 # Also find C++ and __fastcall symbols from MSVC++,
7272 # which start with @ or ?.
7273 lt_cv_sys_global_symbol_pipe="$AWK '"\
7274" {last_section=section; section=\$ 3};"\
7275" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7276" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7277" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7278" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7279" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7280" \$ 0!~/External *\|/{next};"\
7281" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7282" {if(hide[section]) next};"\
7283" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7284" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7285" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7286" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7287" ' prfx=^$ac_symprfx"
7288 else
7289 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7290 fi
7291 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7292
7293 # Check to see that the pipe works correctly.
7294 pipe_works=no
7295
7296 rm -rf conftest*
7297 cat > conftest.$ac_ext <<_LT_EOF
7298#ifdef __cplusplus
7299extern "C" {
7300#endif
7301char nm_test_var;
7302void nm_test_func(void);
7303void nm_test_func(void){}
7304#ifdef __cplusplus
7305}
7306#endif
7307int main(){nm_test_var='a';nm_test_func();return(0);}
7308_LT_EOF
7309
7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7311 (eval $ac_compile) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; }; then
7315 # Now try to grab the symbols.
7316 nlist=conftest.nm
7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7318 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7319 ac_status=$?
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; } && test -s "$nlist"; then
7322 # Try sorting and uniquifying the output.
7323 if sort "$nlist" | uniq > "$nlist"T; then
7324 mv -f "$nlist"T "$nlist"
7325 else
7326 rm -f "$nlist"T
7327 fi
7328
7329 # Make sure that we snagged all the symbols we need.
7330 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7331 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7332 cat <<_LT_EOF > conftest.$ac_ext
7333/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7334#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7335/* DATA imports from DLLs on WIN32 can't be const, because runtime
7336 relocations are performed -- see ld's documentation on pseudo-relocs. */
7337# define LT_DLSYM_CONST
7338#elif defined __osf__
7339/* This system does not cope well with relocations in const data. */
7340# define LT_DLSYM_CONST
7341#else
7342# define LT_DLSYM_CONST const
7343#endif
7344
7345#ifdef __cplusplus
7346extern "C" {
7347#endif
7348
7349_LT_EOF
7350 # Now generate the symbol file.
7351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7352
7353 cat <<_LT_EOF >> conftest.$ac_ext
7354
7355/* The mapping between symbol names and symbols. */
7356LT_DLSYM_CONST struct {
7357 const char *name;
7358 void *address;
7359}
7360lt__PROGRAM__LTX_preloaded_symbols[] =
7361{
7362 { "@PROGRAM@", (void *) 0 },
7363_LT_EOF
7364 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7365 cat <<\_LT_EOF >> conftest.$ac_ext
7366 {0, (void *) 0}
7367};
7368
7369/* This works around a problem in FreeBSD linker */
7370#ifdef FREEBSD_WORKAROUND
7371static const void *lt_preloaded_setup() {
7372 return lt__PROGRAM__LTX_preloaded_symbols;
7373}
7374#endif
7375
7376#ifdef __cplusplus
7377}
7378#endif
7379_LT_EOF
7380 # Now try linking the two files.
7381 mv conftest.$ac_objext conftstm.$ac_objext
7382 lt_globsym_save_LIBS=$LIBS
7383 lt_globsym_save_CFLAGS=$CFLAGS
7384 LIBS=conftstm.$ac_objext
7385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7387 (eval $ac_link) 2>&5
7388 ac_status=$?
7389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7390 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7391 pipe_works=yes
7392 fi
7393 LIBS=$lt_globsym_save_LIBS
7394 CFLAGS=$lt_globsym_save_CFLAGS
7395 else
7396 echo "cannot find nm_test_func in $nlist" >&5
7397 fi
7398 else
7399 echo "cannot find nm_test_var in $nlist" >&5
7400 fi
7401 else
7402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7403 fi
7404 else
7405 echo "$progname: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 fi
7408 rm -rf conftest* conftst*
7409
7410 # Do not use the global_symbol_pipe unless it works.
7411 if test yes = "$pipe_works"; then
7412 break
7413 else
7414 lt_cv_sys_global_symbol_pipe=
7415 fi
7416done
7417
7418fi
7419
7420if test -z "$lt_cv_sys_global_symbol_pipe"; then
7421 lt_cv_sys_global_symbol_to_cdecl=
7422fi
7423if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7425$as_echo "failed" >&6; }
7426else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7428$as_echo "ok" >&6; }
7429fi
7430
7431# Response file support.
7432if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7433 nm_file_list_spec='@'
7434elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7435 nm_file_list_spec='@'
7436fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7475$as_echo_n "checking for sysroot... " >&6; }
7476
7477# Check whether --with-sysroot was given.
7478if test "${with_sysroot+set}" = set; then :
7479 withval=$with_sysroot;
7480else
7481 with_sysroot=no
7482fi
7483
7484
7485lt_sysroot=
7486case $with_sysroot in #(
7487 yes)
7488 if test yes = "$GCC"; then
7489 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7490 fi
7491 ;; #(
7492 /*)
7493 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7494 ;; #(
7495 no|'')
7496 ;; #(
7497 *)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7499$as_echo "$with_sysroot" >&6; }
7500 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7501 ;;
7502esac
7503
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7505$as_echo "${lt_sysroot:-no}" >&6; }
7506
7507
7508
7509
7510
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7512$as_echo_n "checking for a working dd... " >&6; }
7513if ${ac_cv_path_lt_DD+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515else
7516 printf 0123456789abcdef0123456789abcdef >conftest.i
7517cat conftest.i conftest.i >conftest2.i
7518: ${lt_DD:=$DD}
7519if test -z "$lt_DD"; then
7520 ac_path_lt_DD_found=false
7521 # Loop through the user's path and test for each of PROGNAME-LIST
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_prog in dd; do
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7530 as_fn_executable_p "$ac_path_lt_DD" || continue
7531if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7532 cmp -s conftest.i conftest.out \
7533 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7534fi
7535 $ac_path_lt_DD_found && break 3
7536 done
7537 done
7538 done
7539IFS=$as_save_IFS
7540 if test -z "$ac_cv_path_lt_DD"; then
7541 :
7542 fi
7543else
7544 ac_cv_path_lt_DD=$lt_DD
7545fi
7546
7547rm -f conftest.i conftest2.i conftest.out
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7550$as_echo "$ac_cv_path_lt_DD" >&6; }
7551
7552
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7554$as_echo_n "checking how to truncate binary pipes... " >&6; }
7555if ${lt_cv_truncate_bin+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557else
7558 printf 0123456789abcdef0123456789abcdef >conftest.i
7559cat conftest.i conftest.i >conftest2.i
7560lt_cv_truncate_bin=
7561if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7562 cmp -s conftest.i conftest.out \
7563 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7564fi
7565rm -f conftest.i conftest2.i conftest.out
7566test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7569$as_echo "$lt_cv_truncate_bin" >&6; }
7570
7571
7572
7573
7574
7575
7576
7577# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7578func_cc_basename ()
7579{
7580 for cc_temp in $*""; do
7581 case $cc_temp in
7582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584 \-*) ;;
7585 *) break;;
7586 esac
7587 done
7588 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7589}
7590
7591# Check whether --enable-libtool-lock was given.
7592if test "${enable_libtool_lock+set}" = set; then :
7593 enableval=$enable_libtool_lock;
7594fi
7595
7596test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7597
7598# Some flags need to be propagated to the compiler or linker for good
7599# libtool support.
7600case $host in
7601ia64-*-hpux*)
7602 # Find out what ABI is being produced by ac_compile, and set mode
7603 # options accordingly.
7604 echo 'int i;' > conftest.$ac_ext
7605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7606 (eval $ac_compile) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; }; then
7610 case `/usr/bin/file conftest.$ac_objext` in
7611 *ELF-32*)
7612 HPUX_IA64_MODE=32
7613 ;;
7614 *ELF-64*)
7615 HPUX_IA64_MODE=64
7616 ;;
7617 esac
7618 fi
7619 rm -rf conftest*
7620 ;;
7621*-*-irix6*)
7622 # Find out what ABI is being produced by ac_compile, and set linker
7623 # options accordingly.
7624 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7626 (eval $ac_compile) 2>&5
7627 ac_status=$?
7628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629 test $ac_status = 0; }; then
7630 if test yes = "$lt_cv_prog_gnu_ld"; then
7631 case `/usr/bin/file conftest.$ac_objext` in
7632 *32-bit*)
7633 LD="${LD-ld} -melf32bsmip"
7634 ;;
7635 *N32*)
7636 LD="${LD-ld} -melf32bmipn32"
7637 ;;
7638 *64-bit*)
7639 LD="${LD-ld} -melf64bmip"
7640 ;;
7641 esac
7642 else
7643 case `/usr/bin/file conftest.$ac_objext` in
7644 *32-bit*)
7645 LD="${LD-ld} -32"
7646 ;;
7647 *N32*)
7648 LD="${LD-ld} -n32"
7649 ;;
7650 *64-bit*)
7651 LD="${LD-ld} -64"
7652 ;;
7653 esac
7654 fi
7655 fi
7656 rm -rf conftest*
7657 ;;
7658
7659mips64*-*linux*)
7660 # Find out what ABI is being produced by ac_compile, and set linker
7661 # options accordingly.
7662 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664 (eval $ac_compile) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; }; then
7668 emul=elf
7669 case `/usr/bin/file conftest.$ac_objext` in
7670 *32-bit*)
7671 emul="${emul}32"
7672 ;;
7673 *64-bit*)
7674 emul="${emul}64"
7675 ;;
7676 esac
7677 case `/usr/bin/file conftest.$ac_objext` in
7678 *MSB*)
7679 emul="${emul}btsmip"
7680 ;;
7681 *LSB*)
7682 emul="${emul}ltsmip"
7683 ;;
7684 esac
7685 case `/usr/bin/file conftest.$ac_objext` in
7686 *N32*)
7687 emul="${emul}n32"
7688 ;;
7689 esac
7690 LD="${LD-ld} -m $emul"
7691 fi
7692 rm -rf conftest*
7693 ;;
7694
7695x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7696s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7697 # Find out what ABI is being produced by ac_compile, and set linker
7698 # options accordingly. Note that the listed cases only cover the
7699 # situations where additional linker options are needed (such as when
7700 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7701 # vice versa); the common cases where no linker options are needed do
7702 # not appear in the list.
7703 echo 'int i;' > conftest.$ac_ext
7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7705 (eval $ac_compile) 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 case `/usr/bin/file conftest.o` in
7710 *32-bit*)
7711 case $host in
7712 x86_64-*kfreebsd*-gnu)
7713 LD="${LD-ld} -m elf_i386_fbsd"
7714 ;;
7715 x86_64-*linux*)
7716 case `/usr/bin/file conftest.o` in
7717 *x86-64*)
7718 LD="${LD-ld} -m elf32_x86_64"
7719 ;;
7720 *)
7721 LD="${LD-ld} -m elf_i386"
7722 ;;
7723 esac
7724 ;;
7725 powerpc64le-*linux*)
7726 LD="${LD-ld} -m elf32lppclinux"
7727 ;;
7728 powerpc64-*linux*)
7729 LD="${LD-ld} -m elf32ppclinux"
7730 ;;
7731 s390x-*linux*)
7732 LD="${LD-ld} -m elf_s390"
7733 ;;
7734 sparc64-*linux*)
7735 LD="${LD-ld} -m elf32_sparc"
7736 ;;
7737 esac
7738 ;;
7739 *64-bit*)
7740 case $host in
7741 x86_64-*kfreebsd*-gnu)
7742 LD="${LD-ld} -m elf_x86_64_fbsd"
7743 ;;
7744 x86_64-*linux*)
7745 LD="${LD-ld} -m elf_x86_64"
7746 ;;
7747 powerpcle-*linux*)
7748 LD="${LD-ld} -m elf64lppc"
7749 ;;
7750 powerpc-*linux*)
7751 LD="${LD-ld} -m elf64ppc"
7752 ;;
7753 s390*-*linux*|s390*-*tpf*)
7754 LD="${LD-ld} -m elf64_s390"
7755 ;;
7756 sparc*-*linux*)
7757 LD="${LD-ld} -m elf64_sparc"
7758 ;;
7759 esac
7760 ;;
7761 esac
7762 fi
7763 rm -rf conftest*
7764 ;;
7765
7766*-*-sco3.2v5*)
7767 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7768 SAVE_CFLAGS=$CFLAGS
7769 CFLAGS="$CFLAGS -belf"
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7771$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7772if ${lt_cv_cc_needs_belf+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774else
7775 ac_ext=c
7776ac_cpp='$CPP $CPPFLAGS'
7777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h. */
7783
7784int
7785main ()
7786{
7787
7788 ;
7789 return 0;
7790}
7791_ACEOF
7792if ac_fn_c_try_link "$LINENO"; then :
7793 lt_cv_cc_needs_belf=yes
7794else
7795 lt_cv_cc_needs_belf=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7799 ac_ext=c
7800ac_cpp='$CPP $CPPFLAGS'
7801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7803ac_compiler_gnu=$ac_cv_c_compiler_gnu
7804
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7807$as_echo "$lt_cv_cc_needs_belf" >&6; }
7808 if test yes != "$lt_cv_cc_needs_belf"; then
7809 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7810 CFLAGS=$SAVE_CFLAGS
7811 fi
7812 ;;
7813*-*solaris*)
7814 # Find out what ABI is being produced by ac_compile, and set linker
7815 # options accordingly.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.o` in
7823 *64-bit*)
7824 case $lt_cv_prog_gnu_ld in
7825 yes*)
7826 case $host in
7827 i?86-*-solaris*|x86_64-*-solaris*)
7828 LD="${LD-ld} -m elf_x86_64"
7829 ;;
7830 sparc*-*-solaris*)
7831 LD="${LD-ld} -m elf64_sparc"
7832 ;;
7833 esac
7834 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7835 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7836 LD=${LD-ld}_sol2
7837 fi
7838 ;;
7839 *)
7840 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7841 LD="${LD-ld} -64"
7842 fi
7843 ;;
7844 esac
7845 ;;
7846 esac
7847 fi
7848 rm -rf conftest*
7849 ;;
7850esac
7851
7852need_locks=$enable_libtool_lock
7853
7854if test -n "$ac_tool_prefix"; then
7855 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7856set dummy ${ac_tool_prefix}mt; ac_word=$2
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858$as_echo_n "checking for $ac_word... " >&6; }
7859if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861else
7862 if test -n "$MANIFEST_TOOL"; then
7863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7864else
7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876done
7877 done
7878IFS=$as_save_IFS
7879
7880fi
7881fi
7882MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7883if test -n "$MANIFEST_TOOL"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7885$as_echo "$MANIFEST_TOOL" >&6; }
7886else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888$as_echo "no" >&6; }
7889fi
7890
7891
7892fi
7893if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7894 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7895 # Extract the first word of "mt", so it can be a program name with args.
7896set dummy mt; ac_word=$2
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898$as_echo_n "checking for $ac_word... " >&6; }
7899if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901else
7902 if test -n "$ac_ct_MANIFEST_TOOL"; then
7903 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916done
7917 done
7918IFS=$as_save_IFS
7919
7920fi
7921fi
7922ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7923if test -n "$ac_ct_MANIFEST_TOOL"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7925$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7926else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
7929fi
7930
7931 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7932 MANIFEST_TOOL=":"
7933 else
7934 case $cross_compiling:$ac_tool_warned in
7935yes:)
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938ac_tool_warned=yes ;;
7939esac
7940 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7941 fi
7942else
7943 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7944fi
7945
7946test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7948$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7949if ${lt_cv_path_mainfest_tool+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951else
7952 lt_cv_path_mainfest_tool=no
7953 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7954 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7955 cat conftest.err >&5
7956 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7957 lt_cv_path_mainfest_tool=yes
7958 fi
7959 rm -rf conftest*
7960fi
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7962$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7963if test yes != "$lt_cv_path_mainfest_tool"; then
7964 MANIFEST_TOOL=:
7965fi
7966
7967
7968
7969
7970
7971
7972 case $host_os in
7973 rhapsody* | darwin*)
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if ${ac_cv_prog_DSYMUTIL+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981else
7982 if test -n "$DSYMUTIL"; then
7983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996done
7997 done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002DSYMUTIL=$ac_cv_prog_DSYMUTIL
8003if test -n "$DSYMUTIL"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8005$as_echo "$DSYMUTIL" >&6; }
8006else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_DSYMUTIL"; then
8014 ac_ct_DSYMUTIL=$DSYMUTIL
8015 # Extract the first word of "dsymutil", so it can be a program name with args.
8016set dummy dsymutil; ac_word=$2
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021else
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036done
8037 done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8043if test -n "$ac_ct_DSYMUTIL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8045$as_echo "$ac_ct_DSYMUTIL" >&6; }
8046else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051 if test "x$ac_ct_DSYMUTIL" = x; then
8052 DSYMUTIL=":"
8053 else
8054 case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060 DSYMUTIL=$ac_ct_DSYMUTIL
8061 fi
8062else
8063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8064fi
8065
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8068set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if ${ac_cv_prog_NMEDIT+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073else
8074 if test -n "$NMEDIT"; then
8075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8087 fi
8088done
8089 done
8090IFS=$as_save_IFS
8091
8092fi
8093fi
8094NMEDIT=$ac_cv_prog_NMEDIT
8095if test -n "$NMEDIT"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8097$as_echo "$NMEDIT" >&6; }
8098else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102
8103
8104fi
8105if test -z "$ac_cv_prog_NMEDIT"; then
8106 ac_ct_NMEDIT=$NMEDIT
8107 # Extract the first word of "nmedit", so it can be a program name with args.
8108set dummy nmedit; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113else
8114 if test -n "$ac_ct_NMEDIT"; then
8115 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128done
8129 done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8135if test -n "$ac_ct_NMEDIT"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8137$as_echo "$ac_ct_NMEDIT" >&6; }
8138else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143 if test "x$ac_ct_NMEDIT" = x; then
8144 NMEDIT=":"
8145 else
8146 case $cross_compiling:$ac_tool_warned in
8147yes:)
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150ac_tool_warned=yes ;;
8151esac
8152 NMEDIT=$ac_ct_NMEDIT
8153 fi
8154else
8155 NMEDIT="$ac_cv_prog_NMEDIT"
8156fi
8157
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8160set dummy ${ac_tool_prefix}lipo; ac_word=$2
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
8163if ${ac_cv_prog_LIPO+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165else
8166 if test -n "$LIPO"; then
8167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180done
8181 done
8182IFS=$as_save_IFS
8183
8184fi
8185fi
8186LIPO=$ac_cv_prog_LIPO
8187if test -n "$LIPO"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8189$as_echo "$LIPO" >&6; }
8190else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
8193fi
8194
8195
8196fi
8197if test -z "$ac_cv_prog_LIPO"; then
8198 ac_ct_LIPO=$LIPO
8199 # Extract the first word of "lipo", so it can be a program name with args.
8200set dummy lipo; ac_word=$2
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202$as_echo_n "checking for $ac_word... " >&6; }
8203if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205else
8206 if test -n "$ac_ct_LIPO"; then
8207 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8208else
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_ac_ct_LIPO="lipo"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221 done
8222IFS=$as_save_IFS
8223
8224fi
8225fi
8226ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8227if test -n "$ac_ct_LIPO"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8229$as_echo "$ac_ct_LIPO" >&6; }
8230else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232$as_echo "no" >&6; }
8233fi
8234
8235 if test "x$ac_ct_LIPO" = x; then
8236 LIPO=":"
8237 else
8238 case $cross_compiling:$ac_tool_warned in
8239yes:)
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242ac_tool_warned=yes ;;
8243esac
8244 LIPO=$ac_ct_LIPO
8245 fi
8246else
8247 LIPO="$ac_cv_prog_LIPO"
8248fi
8249
8250 if test -n "$ac_tool_prefix"; then
8251 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8252set dummy ${ac_tool_prefix}otool; ac_word=$2
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254$as_echo_n "checking for $ac_word... " >&6; }
8255if ${ac_cv_prog_OTOOL+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257else
8258 if test -n "$OTOOL"; then
8259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8260else
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272done
8273 done
8274IFS=$as_save_IFS
8275
8276fi
8277fi
8278OTOOL=$ac_cv_prog_OTOOL
8279if test -n "$OTOOL"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8281$as_echo "$OTOOL" >&6; }
8282else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284$as_echo "no" >&6; }
8285fi
8286
8287
8288fi
8289if test -z "$ac_cv_prog_OTOOL"; then
8290 ac_ct_OTOOL=$OTOOL
8291 # Extract the first word of "otool", so it can be a program name with args.
8292set dummy otool; ac_word=$2
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294$as_echo_n "checking for $ac_word... " >&6; }
8295if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297else
8298 if test -n "$ac_ct_OTOOL"; then
8299 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8300else
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_ac_ct_OTOOL="otool"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312done
8313 done
8314IFS=$as_save_IFS
8315
8316fi
8317fi
8318ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8319if test -n "$ac_ct_OTOOL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8321$as_echo "$ac_ct_OTOOL" >&6; }
8322else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324$as_echo "no" >&6; }
8325fi
8326
8327 if test "x$ac_ct_OTOOL" = x; then
8328 OTOOL=":"
8329 else
8330 case $cross_compiling:$ac_tool_warned in
8331yes:)
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8334ac_tool_warned=yes ;;
8335esac
8336 OTOOL=$ac_ct_OTOOL
8337 fi
8338else
8339 OTOOL="$ac_cv_prog_OTOOL"
8340fi
8341
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8344set dummy ${ac_tool_prefix}otool64; ac_word=$2
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
8347if ${ac_cv_prog_OTOOL64+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349else
8350 if test -n "$OTOOL64"; then
8351 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364done
8365 done
8366IFS=$as_save_IFS
8367
8368fi
8369fi
8370OTOOL64=$ac_cv_prog_OTOOL64
8371if test -n "$OTOOL64"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8373$as_echo "$OTOOL64" >&6; }
8374else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377fi
8378
8379
8380fi
8381if test -z "$ac_cv_prog_OTOOL64"; then
8382 ac_ct_OTOOL64=$OTOOL64
8383 # Extract the first word of "otool64", so it can be a program name with args.
8384set dummy otool64; ac_word=$2
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
8387if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389else
8390 if test -n "$ac_ct_OTOOL64"; then
8391 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_ac_ct_OTOOL64="otool64"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404done
8405 done
8406IFS=$as_save_IFS
8407
8408fi
8409fi
8410ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8411if test -n "$ac_ct_OTOOL64"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8413$as_echo "$ac_ct_OTOOL64" >&6; }
8414else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
8417fi
8418
8419 if test "x$ac_ct_OTOOL64" = x; then
8420 OTOOL64=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423yes:)
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426ac_tool_warned=yes ;;
8427esac
8428 OTOOL64=$ac_ct_OTOOL64
8429 fi
8430else
8431 OTOOL64="$ac_cv_prog_OTOOL64"
8432fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8461$as_echo_n "checking for -single_module linker flag... " >&6; }
8462if ${lt_cv_apple_cc_single_mod+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464else
8465 lt_cv_apple_cc_single_mod=no
8466 if test -z "$LT_MULTI_MODULE"; then
8467 # By default we will add the -single_module flag. You can override
8468 # by either setting the environment variable LT_MULTI_MODULE
8469 # non-empty at configure time, or by adding -multi_module to the
8470 # link flags.
8471 rm -rf libconftest.dylib*
8472 echo "int foo(void){return 1;}" > conftest.c
8473 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8474-dynamiclib -Wl,-single_module conftest.c" >&5
8475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8476 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8477 _lt_result=$?
8478 # If there is a non-empty error log, and "single_module"
8479 # appears in it, assume the flag caused a linker warning
8480 if test -s conftest.err && $GREP single_module conftest.err; then
8481 cat conftest.err >&5
8482 # Otherwise, if the output was created with a 0 exit code from
8483 # the compiler, it worked.
8484 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8485 lt_cv_apple_cc_single_mod=yes
8486 else
8487 cat conftest.err >&5
8488 fi
8489 rm -rf libconftest.dylib*
8490 rm -f conftest.*
8491 fi
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8494$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8495
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8497$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8498if ${lt_cv_ld_exported_symbols_list+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 lt_cv_ld_exported_symbols_list=no
8502 save_LDFLAGS=$LDFLAGS
8503 echo "_main" > conftest.sym
8504 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h. */
8507
8508int
8509main ()
8510{
8511
8512 ;
8513 return 0;
8514}
8515_ACEOF
8516if ac_fn_c_try_link "$LINENO"; then :
8517 lt_cv_ld_exported_symbols_list=yes
8518else
8519 lt_cv_ld_exported_symbols_list=no
8520fi
8521rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 LDFLAGS=$save_LDFLAGS
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8527$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8530$as_echo_n "checking for -force_load linker flag... " >&6; }
8531if ${lt_cv_ld_force_load+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533else
8534 lt_cv_ld_force_load=no
8535 cat > conftest.c << _LT_EOF
8536int forced_loaded() { return 2;}
8537_LT_EOF
8538 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8539 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8540 echo "$AR cru libconftest.a conftest.o" >&5
8541 $AR cru libconftest.a conftest.o 2>&5
8542 echo "$RANLIB libconftest.a" >&5
8543 $RANLIB libconftest.a 2>&5
8544 cat > conftest.c << _LT_EOF
8545int main() { return 0;}
8546_LT_EOF
8547 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8548 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8549 _lt_result=$?
8550 if test -s conftest.err && $GREP force_load conftest.err; then
8551 cat conftest.err >&5
8552 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8553 lt_cv_ld_force_load=yes
8554 else
8555 cat conftest.err >&5
8556 fi
8557 rm -f conftest.err libconftest.a conftest conftest.c
8558 rm -rf conftest.dSYM
8559
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8562$as_echo "$lt_cv_ld_force_load" >&6; }
8563 case $host_os in
8564 rhapsody* | darwin1.[012])
8565 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8566 darwin1.*)
8567 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8568 darwin*) # darwin 5.x on
8569 # if running on 10.5 or later, the deployment target defaults
8570 # to the OS version, if on x86, and 10.4, the deployment
8571 # target defaults to 10.4. Don't you love it?
8572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8574 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8575 10.[012][,.]*)
8576 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8577 10.*)
8578 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8579 esac
8580 ;;
8581 esac
8582 if test yes = "$lt_cv_apple_cc_single_mod"; then
8583 _lt_dar_single_mod='$single_module'
8584 fi
8585 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8586 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8587 else
8588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8589 fi
8590 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8591 _lt_dsymutil='~$DSYMUTIL $lib || :'
8592 else
8593 _lt_dsymutil=
8594 fi
8595 ;;
8596 esac
8597
8598# func_munge_path_list VARIABLE PATH
8599# -----------------------------------
8600# VARIABLE is name of variable containing _space_ separated list of
8601# directories to be munged by the contents of PATH, which is string
8602# having a format:
8603# "DIR[:DIR]:"
8604# string "DIR[ DIR]" will be prepended to VARIABLE
8605# ":DIR[:DIR]"
8606# string "DIR[ DIR]" will be appended to VARIABLE
8607# "DIRP[:DIRP]::[DIRA:]DIRA"
8608# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8609# "DIRA[ DIRA]" will be appended to VARIABLE
8610# "DIR[:DIR]"
8611# VARIABLE will be replaced by "DIR[ DIR]"
8612func_munge_path_list ()
8613{
8614 case x$2 in
8615 x)
8616 ;;
8617 *:)
8618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8619 ;;
8620 x:*)
8621 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8622 ;;
8623 *::*)
8624 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8625 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8626 ;;
8627 *)
8628 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8629 ;;
8630 esac
8631}
8632
8633ac_ext=c
8634ac_cpp='$CPP $CPPFLAGS'
8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8639$as_echo_n "checking how to run the C preprocessor... " >&6; }
8640# On Suns, sometimes $CPP names a directory.
8641if test -n "$CPP" && test -d "$CPP"; then
8642 CPP=
8643fi
8644if test -z "$CPP"; then
8645 if ${ac_cv_prog_CPP+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647else
8648 # Double quotes because CPP needs to be expanded
8649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8650 do
8651 ac_preproc_ok=false
8652for ac_c_preproc_warn_flag in '' yes
8653do
8654 # Use a header file that comes with gcc, so configuring glibc
8655 # with a fresh cross-compiler works.
8656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 # <limits.h> exists even on freestanding compilers.
8658 # On the NeXT, cc -E runs the code through the compiler's parser,
8659 # not just through cpp. "Syntax error" is here to catch this case.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h. */
8662#ifdef __STDC__
8663# include <limits.h>
8664#else
8665# include <assert.h>
8666#endif
8667 Syntax error
8668_ACEOF
8669if ac_fn_c_try_cpp "$LINENO"; then :
8670
8671else
8672 # Broken: fails on valid input.
8673continue
8674fi
8675rm -f conftest.err conftest.i conftest.$ac_ext
8676
8677 # OK, works on sane cases. Now check whether nonexistent headers
8678 # can be detected and how.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h. */
8681#include <ac_nonexistent.h>
8682_ACEOF
8683if ac_fn_c_try_cpp "$LINENO"; then :
8684 # Broken: success on invalid input.
8685continue
8686else
8687 # Passes both tests.
8688ac_preproc_ok=:
8689break
8690fi
8691rm -f conftest.err conftest.i conftest.$ac_ext
8692
8693done
8694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8695rm -f conftest.i conftest.err conftest.$ac_ext
8696if $ac_preproc_ok; then :
8697 break
8698fi
8699
8700 done
8701 ac_cv_prog_CPP=$CPP
8702
8703fi
8704 CPP=$ac_cv_prog_CPP
8705else
8706 ac_cv_prog_CPP=$CPP
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8709$as_echo "$CPP" >&6; }
8710ac_preproc_ok=false
8711for ac_c_preproc_warn_flag in '' yes
8712do
8713 # Use a header file that comes with gcc, so configuring glibc
8714 # with a fresh cross-compiler works.
8715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8716 # <limits.h> exists even on freestanding compilers.
8717 # On the NeXT, cc -E runs the code through the compiler's parser,
8718 # not just through cpp. "Syntax error" is here to catch this case.
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h. */
8721#ifdef __STDC__
8722# include <limits.h>
8723#else
8724# include <assert.h>
8725#endif
8726 Syntax error
8727_ACEOF
8728if ac_fn_c_try_cpp "$LINENO"; then :
8729
8730else
8731 # Broken: fails on valid input.
8732continue
8733fi
8734rm -f conftest.err conftest.i conftest.$ac_ext
8735
8736 # OK, works on sane cases. Now check whether nonexistent headers
8737 # can be detected and how.
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h. */
8740#include <ac_nonexistent.h>
8741_ACEOF
8742if ac_fn_c_try_cpp "$LINENO"; then :
8743 # Broken: success on invalid input.
8744continue
8745else
8746 # Passes both tests.
8747ac_preproc_ok=:
8748break
8749fi
8750rm -f conftest.err conftest.i conftest.$ac_ext
8751
8752done
8753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8754rm -f conftest.i conftest.err conftest.$ac_ext
8755if $ac_preproc_ok; then :
8756
8757else
8758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8760as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8761See \`config.log' for more details" "$LINENO" 5; }
8762fi
8763
8764ac_ext=c
8765ac_cpp='$CPP $CPPFLAGS'
8766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769
8770
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8772$as_echo_n "checking for ANSI C header files... " >&6; }
8773if ${ac_cv_header_stdc+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h. */
8778#include <stdlib.h>
8779#include <stdarg.h>
8780#include <string.h>
8781#include <float.h>
8782
8783int
8784main ()
8785{
8786
8787 ;
8788 return 0;
8789}
8790_ACEOF
8791if ac_fn_c_try_compile "$LINENO"; then :
8792 ac_cv_header_stdc=yes
8793else
8794 ac_cv_header_stdc=no
8795fi
8796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797
8798if test $ac_cv_header_stdc = yes; then
8799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h. */
8802#include <string.h>
8803
8804_ACEOF
8805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP "memchr" >/dev/null 2>&1; then :
8807
8808else
8809 ac_cv_header_stdc=no
8810fi
8811rm -f conftest*
8812
8813fi
8814
8815if test $ac_cv_header_stdc = yes; then
8816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818/* end confdefs.h. */
8819#include <stdlib.h>
8820
8821_ACEOF
8822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8823 $EGREP "free" >/dev/null 2>&1; then :
8824
8825else
8826 ac_cv_header_stdc=no
8827fi
8828rm -f conftest*
8829
8830fi
8831
8832if test $ac_cv_header_stdc = yes; then
8833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8834 if test "$cross_compiling" = yes; then :
8835 :
8836else
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h. */
8839#include <ctype.h>
8840#include <stdlib.h>
8841#if ((' ' & 0x0FF) == 0x020)
8842# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8843# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8844#else
8845# define ISLOWER(c) \
8846 (('a' <= (c) && (c) <= 'i') \
8847 || ('j' <= (c) && (c) <= 'r') \
8848 || ('s' <= (c) && (c) <= 'z'))
8849# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8850#endif
8851
8852#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8853int
8854main ()
8855{
8856 int i;
8857 for (i = 0; i < 256; i++)
8858 if (XOR (islower (i), ISLOWER (i))
8859 || toupper (i) != TOUPPER (i))
8860 return 2;
8861 return 0;
8862}
8863_ACEOF
8864if ac_fn_c_try_run "$LINENO"; then :
8865
8866else
8867 ac_cv_header_stdc=no
8868fi
8869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8870 conftest.$ac_objext conftest.beam conftest.$ac_ext
8871fi
8872
8873fi
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8876$as_echo "$ac_cv_header_stdc" >&6; }
8877if test $ac_cv_header_stdc = yes; then
8878
8879$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8880
8881fi
8882
8883# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8884for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8885 inttypes.h stdint.h unistd.h
8886do :
8887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8889"
8890if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8891 cat >>confdefs.h <<_ACEOF
8892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8893_ACEOF
8894
8895fi
8896
8897done
8898
8899
8900for ac_header in dlfcn.h
8901do :
8902 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8903"
8904if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8905 cat >>confdefs.h <<_ACEOF
8906#define HAVE_DLFCN_H 1
8907_ACEOF
8908
8909fi
8910
8911done
8912
8913
8914
8915
8916func_stripname_cnf ()
8917{
8918 case $2 in
8919 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8920 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8921 esac
8922} # func_stripname_cnf
8923
8924
8925
8926
8927
8928# Set options
8929# Check whether --enable-static was given.
8930if test "${enable_static+set}" = set; then :
8931 enableval=$enable_static; p=${PACKAGE-default}
8932 case $enableval in
8933 yes) enable_static=yes ;;
8934 no) enable_static=no ;;
8935 *)
8936 enable_static=no
8937 # Look at the argument we got. We use all the common list separators.
8938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8939 for pkg in $enableval; do
8940 IFS=$lt_save_ifs
8941 if test "X$pkg" = "X$p"; then
8942 enable_static=yes
8943 fi
8944 done
8945 IFS=$lt_save_ifs
8946 ;;
8947 esac
8948else
8949 enable_static=no
8950fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 enable_dlopen=no
8962
8963
8964 enable_win32_dll=no
8965
8966
8967 # Check whether --enable-shared was given.
8968if test "${enable_shared+set}" = set; then :
8969 enableval=$enable_shared; p=${PACKAGE-default}
8970 case $enableval in
8971 yes) enable_shared=yes ;;
8972 no) enable_shared=no ;;
8973 *)
8974 enable_shared=no
8975 # Look at the argument we got. We use all the common list separators.
8976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8977 for pkg in $enableval; do
8978 IFS=$lt_save_ifs
8979 if test "X$pkg" = "X$p"; then
8980 enable_shared=yes
8981 fi
8982 done
8983 IFS=$lt_save_ifs
8984 ;;
8985 esac
8986else
8987 enable_shared=yes
8988fi
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000# Check whether --with-pic was given.
9001if test "${with_pic+set}" = set; then :
9002 withval=$with_pic; lt_p=${PACKAGE-default}
9003 case $withval in
9004 yes|no) pic_mode=$withval ;;
9005 *)
9006 pic_mode=default
9007 # Look at the argument we got. We use all the common list separators.
9008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9009 for lt_pkg in $withval; do
9010 IFS=$lt_save_ifs
9011 if test "X$lt_pkg" = "X$lt_p"; then
9012 pic_mode=yes
9013 fi
9014 done
9015 IFS=$lt_save_ifs
9016 ;;
9017 esac
9018else
9019 pic_mode=default
9020fi
9021
9022
9023
9024
9025
9026
9027
9028
9029 # Check whether --enable-fast-install was given.
9030if test "${enable_fast_install+set}" = set; then :
9031 enableval=$enable_fast_install; p=${PACKAGE-default}
9032 case $enableval in
9033 yes) enable_fast_install=yes ;;
9034 no) enable_fast_install=no ;;
9035 *)
9036 enable_fast_install=no
9037 # Look at the argument we got. We use all the common list separators.
9038 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9039 for pkg in $enableval; do
9040 IFS=$lt_save_ifs
9041 if test "X$pkg" = "X$p"; then
9042 enable_fast_install=yes
9043 fi
9044 done
9045 IFS=$lt_save_ifs
9046 ;;
9047 esac
9048else
9049 enable_fast_install=yes
9050fi
9051
9052
9053
9054
9055
9056
9057
9058
9059 shared_archive_member_spec=
9060case $host,$enable_shared in
9061power*-*-aix[5-9]*,yes)
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9063$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9064
9065# Check whether --with-aix-soname was given.
9066if test "${with_aix_soname+set}" = set; then :
9067 withval=$with_aix_soname; case $withval in
9068 aix|svr4|both)
9069 ;;
9070 *)
9071 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9072 ;;
9073 esac
9074 lt_cv_with_aix_soname=$with_aix_soname
9075else
9076 if ${lt_cv_with_aix_soname+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078else
9079 lt_cv_with_aix_soname=aix
9080fi
9081
9082 with_aix_soname=$lt_cv_with_aix_soname
9083fi
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9086$as_echo "$with_aix_soname" >&6; }
9087 if test aix != "$with_aix_soname"; then
9088 # For the AIX way of multilib, we name the shared archive member
9089 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9090 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9091 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9092 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9093 if test 64 = "${OBJECT_MODE-32}"; then
9094 shared_archive_member_spec=shr_64
9095 else
9096 shared_archive_member_spec=shr
9097 fi
9098 fi
9099 ;;
9100*)
9101 with_aix_soname=aix
9102 ;;
9103esac
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114# This can be used to rebuild libtool when needed
9115LIBTOOL_DEPS=$ltmain
9116
9117# Always use our own libtool.
9118LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149test -z "$LN_S" && LN_S="ln -s"
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164if test -n "${ZSH_VERSION+set}"; then
9165 setopt NO_GLOB_SUBST
9166fi
9167
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9169$as_echo_n "checking for objdir... " >&6; }
9170if ${lt_cv_objdir+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172else
9173 rm -f .libs 2>/dev/null
9174mkdir .libs 2>/dev/null
9175if test -d .libs; then
9176 lt_cv_objdir=.libs
9177else
9178 # MS-DOS does not allow filenames that begin with a dot.
9179 lt_cv_objdir=_libs
9180fi
9181rmdir .libs 2>/dev/null
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9184$as_echo "$lt_cv_objdir" >&6; }
9185objdir=$lt_cv_objdir
9186
9187
9188
9189
9190
9191cat >>confdefs.h <<_ACEOF
9192#define LT_OBJDIR "$lt_cv_objdir/"
9193_ACEOF
9194
9195
9196
9197
9198case $host_os in
9199aix3*)
9200 # AIX sometimes has problems with the GCC collect2 program. For some
9201 # reason, if we set the COLLECT_NAMES environment variable, the problems
9202 # vanish in a puff of smoke.
9203 if test set != "${COLLECT_NAMES+set}"; then
9204 COLLECT_NAMES=
9205 export COLLECT_NAMES
9206 fi
9207 ;;
9208esac
9209
9210# Global variables:
9211ofile=libtool
9212can_build_shared=yes
9213
9214# All known linkers require a '.a' archive for static linking (except MSVC,
9215# which needs '.lib').
9216libext=a
9217
9218with_gnu_ld=$lt_cv_prog_gnu_ld
9219
9220old_CC=$CC
9221old_CFLAGS=$CFLAGS
9222
9223# Set sane defaults for various variables
9224test -z "$CC" && CC=cc
9225test -z "$LTCC" && LTCC=$CC
9226test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9227test -z "$LD" && LD=ld
9228test -z "$ac_objext" && ac_objext=o
9229
9230func_cc_basename $compiler
9231cc_basename=$func_cc_basename_result
9232
9233
9234# Only perform the check for file, if the check method requires it
9235test -z "$MAGIC_CMD" && MAGIC_CMD=file
9236case $deplibs_check_method in
9237file_magic*)
9238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9240$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9241if ${lt_cv_path_MAGIC_CMD+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243else
9244 case $MAGIC_CMD in
9245[\\/*] | ?:[\\/]*)
9246 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9247 ;;
9248*)
9249 lt_save_MAGIC_CMD=$MAGIC_CMD
9250 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9252 for ac_dir in $ac_dummy; do
9253 IFS=$lt_save_ifs
9254 test -z "$ac_dir" && ac_dir=.
9255 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9256 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9257 if test -n "$file_magic_test_file"; then
9258 case $deplibs_check_method in
9259 "file_magic "*)
9260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9261 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9263 $EGREP "$file_magic_regex" > /dev/null; then
9264 :
9265 else
9266 cat <<_LT_EOF 1>&2
9267
9268*** Warning: the command libtool uses to detect shared libraries,
9269*** $file_magic_cmd, produces output that libtool cannot recognize.
9270*** The result is that libtool may fail to recognize shared libraries
9271*** as such. This will affect the creation of libtool libraries that
9272*** depend on shared libraries, but programs linked with such libtool
9273*** libraries will work regardless of this problem. Nevertheless, you
9274*** may want to report the problem to your system manager and/or to
9275*** bug-libtool@gnu.org
9276
9277_LT_EOF
9278 fi ;;
9279 esac
9280 fi
9281 break
9282 fi
9283 done
9284 IFS=$lt_save_ifs
9285 MAGIC_CMD=$lt_save_MAGIC_CMD
9286 ;;
9287esac
9288fi
9289
9290MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9291if test -n "$MAGIC_CMD"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9293$as_echo "$MAGIC_CMD" >&6; }
9294else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
9297fi
9298
9299
9300
9301
9302
9303if test -z "$lt_cv_path_MAGIC_CMD"; then
9304 if test -n "$ac_tool_prefix"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9306$as_echo_n "checking for file... " >&6; }
9307if ${lt_cv_path_MAGIC_CMD+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309else
9310 case $MAGIC_CMD in
9311[\\/*] | ?:[\\/]*)
9312 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9313 ;;
9314*)
9315 lt_save_MAGIC_CMD=$MAGIC_CMD
9316 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9317 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9318 for ac_dir in $ac_dummy; do
9319 IFS=$lt_save_ifs
9320 test -z "$ac_dir" && ac_dir=.
9321 if test -f "$ac_dir/file"; then
9322 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9323 if test -n "$file_magic_test_file"; then
9324 case $deplibs_check_method in
9325 "file_magic "*)
9326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9327 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9329 $EGREP "$file_magic_regex" > /dev/null; then
9330 :
9331 else
9332 cat <<_LT_EOF 1>&2
9333
9334*** Warning: the command libtool uses to detect shared libraries,
9335*** $file_magic_cmd, produces output that libtool cannot recognize.
9336*** The result is that libtool may fail to recognize shared libraries
9337*** as such. This will affect the creation of libtool libraries that
9338*** depend on shared libraries, but programs linked with such libtool
9339*** libraries will work regardless of this problem. Nevertheless, you
9340*** may want to report the problem to your system manager and/or to
9341*** bug-libtool@gnu.org
9342
9343_LT_EOF
9344 fi ;;
9345 esac
9346 fi
9347 break
9348 fi
9349 done
9350 IFS=$lt_save_ifs
9351 MAGIC_CMD=$lt_save_MAGIC_CMD
9352 ;;
9353esac
9354fi
9355
9356MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9357if test -n "$MAGIC_CMD"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9359$as_echo "$MAGIC_CMD" >&6; }
9360else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362$as_echo "no" >&6; }
9363fi
9364
9365
9366 else
9367 MAGIC_CMD=:
9368 fi
9369fi
9370
9371 fi
9372 ;;
9373esac
9374
9375# Use C for the default configuration in the libtool script
9376
9377lt_save_CC=$CC
9378ac_ext=c
9379ac_cpp='$CPP $CPPFLAGS'
9380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9382ac_compiler_gnu=$ac_cv_c_compiler_gnu
9383
9384
9385# Source file extension for C test sources.
9386ac_ext=c
9387
9388# Object file extension for compiled C test sources.
9389objext=o
9390objext=$objext
9391
9392# Code to be used in simple compile tests
9393lt_simple_compile_test_code="int some_variable = 0;"
9394
9395# Code to be used in simple link tests
9396lt_simple_link_test_code='int main(){return(0);}'
9397
9398
9399
9400
9401
9402
9403
9404# If no C compiler was specified, use CC.
9405LTCC=${LTCC-"$CC"}
9406
9407# If no C compiler flags were specified, use CFLAGS.
9408LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9409
9410# Allow CC to be a program name with arguments.
9411compiler=$CC
9412
9413# Save the default compiler, since it gets overwritten when the other
9414# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9415compiler_DEFAULT=$CC
9416
9417# save warnings/boilerplate of simple test code
9418ac_outfile=conftest.$ac_objext
9419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9421_lt_compiler_boilerplate=`cat conftest.err`
9422$RM -r conftest*
9423
9424ac_outfile=conftest.$ac_objext
9425echo "$lt_simple_link_test_code" >conftest.$ac_ext
9426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9427_lt_linker_boilerplate=`cat conftest.err`
9428$RM -r conftest*
9429
9430
9431## CAVEAT EMPTOR:
9432## There is no encapsulation within the following macros, do not change
9433## the running order or otherwise move them around unless you know exactly
9434## what you are doing...
9435if test -n "$compiler"; then
9436
9437lt_prog_compiler_no_builtin_flag=
9438
9439if test yes = "$GCC"; then
9440 case $cc_basename in
9441 nvcc*)
9442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9443 *)
9444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9445 esac
9446
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9448$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9449if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451else
9452 lt_cv_prog_compiler_rtti_exceptions=no
9453 ac_outfile=conftest.$ac_objext
9454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9456 # Insert the option either (1) after the last *FLAGS variable, or
9457 # (2) before a word containing "conftest.", or (3) at the end.
9458 # Note that $ac_compile itself does not contain backslashes and begins
9459 # with a dollar sign (not a hyphen), so the echo should work correctly.
9460 # The option is referenced via a variable to avoid confusing sed.
9461 lt_compile=`echo "$ac_compile" | $SED \
9462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464 -e 's:$: $lt_compiler_flag:'`
9465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9466 (eval "$lt_compile" 2>conftest.err)
9467 ac_status=$?
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 if (exit $ac_status) && test -s "$ac_outfile"; then
9471 # The compiler can only warn and ignore the option if not recognized
9472 # So say no if there are warnings other than the usual output.
9473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_rtti_exceptions=yes
9477 fi
9478 fi
9479 $RM -r conftest*
9480
9481fi
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9483$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9484
9485if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9487else
9488 :
9489fi
9490
9491fi
9492
9493
9494
9495
9496
9497
9498 lt_prog_compiler_wl=
9499lt_prog_compiler_pic=
9500lt_prog_compiler_static=
9501
9502
9503 if test yes = "$GCC"; then
9504 lt_prog_compiler_wl='-Wl,'
9505 lt_prog_compiler_static='-static'
9506
9507 case $host_os in
9508 aix*)
9509 # All AIX code is PIC.
9510 if test ia64 = "$host_cpu"; then
9511 # AIX 5 now supports IA64 processor
9512 lt_prog_compiler_static='-Bstatic'
9513 fi
9514 lt_prog_compiler_pic='-fPIC'
9515 ;;
9516
9517 amigaos*)
9518 case $host_cpu in
9519 powerpc)
9520 # see comment about AmigaOS4 .so support
9521 lt_prog_compiler_pic='-fPIC'
9522 ;;
9523 m68k)
9524 # FIXME: we need at least 68020 code to build shared libraries, but
9525 # adding the '-m68020' flag to GCC prevents building anything better,
9526 # like '-m68040'.
9527 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9528 ;;
9529 esac
9530 ;;
9531
9532 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9533 # PIC is the default for these OSes.
9534 ;;
9535
9536 mingw* | cygwin* | pw32* | os2* | cegcc*)
9537 # This hack is so that the source file can tell whether it is being
9538 # built for inclusion in a dll (and should export symbols for example).
9539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9540 # (--disable-auto-import) libraries
9541 lt_prog_compiler_pic='-DDLL_EXPORT'
9542 case $host_os in
9543 os2*)
9544 lt_prog_compiler_static='$wl-static'
9545 ;;
9546 esac
9547 ;;
9548
9549 darwin* | rhapsody*)
9550 # PIC is the default on this platform
9551 # Common symbols not allowed in MH_DYLIB files
9552 lt_prog_compiler_pic='-fno-common'
9553 ;;
9554
9555 haiku*)
9556 # PIC is the default for Haiku.
9557 # The "-static" flag exists, but is broken.
9558 lt_prog_compiler_static=
9559 ;;
9560
9561 hpux*)
9562 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9563 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9564 # sets the default TLS model and affects inlining.
9565 case $host_cpu in
9566 hppa*64*)
9567 # +Z the default
9568 ;;
9569 *)
9570 lt_prog_compiler_pic='-fPIC'
9571 ;;
9572 esac
9573 ;;
9574
9575 interix[3-9]*)
9576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9577 # Instead, we relocate shared libraries at runtime.
9578 ;;
9579
9580 msdosdjgpp*)
9581 # Just because we use GCC doesn't mean we suddenly get shared libraries
9582 # on systems that don't support them.
9583 lt_prog_compiler_can_build_shared=no
9584 enable_shared=no
9585 ;;
9586
9587 *nto* | *qnx*)
9588 # QNX uses GNU C++, but need to define -shared option too, otherwise
9589 # it will coredump.
9590 lt_prog_compiler_pic='-fPIC -shared'
9591 ;;
9592
9593 sysv4*MP*)
9594 if test -d /usr/nec; then
9595 lt_prog_compiler_pic=-Kconform_pic
9596 fi
9597 ;;
9598
9599 *)
9600 lt_prog_compiler_pic='-fPIC'
9601 ;;
9602 esac
9603
9604 case $cc_basename in
9605 nvcc*) # Cuda Compiler Driver 2.2
9606 lt_prog_compiler_wl='-Xlinker '
9607 if test -n "$lt_prog_compiler_pic"; then
9608 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9609 fi
9610 ;;
9611 esac
9612 else
9613 # PORTME Check for flag to pass linker flags through the system compiler.
9614 case $host_os in
9615 aix*)
9616 lt_prog_compiler_wl='-Wl,'
9617 if test ia64 = "$host_cpu"; then
9618 # AIX 5 now supports IA64 processor
9619 lt_prog_compiler_static='-Bstatic'
9620 else
9621 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9622 fi
9623 ;;
9624
9625 darwin* | rhapsody*)
9626 # PIC is the default on this platform
9627 # Common symbols not allowed in MH_DYLIB files
9628 lt_prog_compiler_pic='-fno-common'
9629 case $cc_basename in
9630 nagfor*)
9631 # NAG Fortran compiler
9632 lt_prog_compiler_wl='-Wl,-Wl,,'
9633 lt_prog_compiler_pic='-PIC'
9634 lt_prog_compiler_static='-Bstatic'
9635 ;;
9636 esac
9637 ;;
9638
9639 mingw* | cygwin* | pw32* | os2* | cegcc*)
9640 # This hack is so that the source file can tell whether it is being
9641 # built for inclusion in a dll (and should export symbols for example).
9642 lt_prog_compiler_pic='-DDLL_EXPORT'
9643 case $host_os in
9644 os2*)
9645 lt_prog_compiler_static='$wl-static'
9646 ;;
9647 esac
9648 ;;
9649
9650 hpux9* | hpux10* | hpux11*)
9651 lt_prog_compiler_wl='-Wl,'
9652 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9653 # not for PA HP-UX.
9654 case $host_cpu in
9655 hppa*64*|ia64*)
9656 # +Z the default
9657 ;;
9658 *)
9659 lt_prog_compiler_pic='+Z'
9660 ;;
9661 esac
9662 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9663 lt_prog_compiler_static='$wl-a ${wl}archive'
9664 ;;
9665
9666 irix5* | irix6* | nonstopux*)
9667 lt_prog_compiler_wl='-Wl,'
9668 # PIC (with -KPIC) is the default.
9669 lt_prog_compiler_static='-non_shared'
9670 ;;
9671
9672 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9673 case $cc_basename in
9674 # old Intel for x86_64, which still supported -KPIC.
9675 ecc*)
9676 lt_prog_compiler_wl='-Wl,'
9677 lt_prog_compiler_pic='-KPIC'
9678 lt_prog_compiler_static='-static'
9679 ;;
9680 # icc used to be incompatible with GCC.
9681 # ICC 10 doesn't accept -KPIC any more.
9682 icc* | ifort*)
9683 lt_prog_compiler_wl='-Wl,'
9684 lt_prog_compiler_pic='-fPIC'
9685 lt_prog_compiler_static='-static'
9686 ;;
9687 # Lahey Fortran 8.1.
9688 lf95*)
9689 lt_prog_compiler_wl='-Wl,'
9690 lt_prog_compiler_pic='--shared'
9691 lt_prog_compiler_static='--static'
9692 ;;
9693 nagfor*)
9694 # NAG Fortran compiler
9695 lt_prog_compiler_wl='-Wl,-Wl,,'
9696 lt_prog_compiler_pic='-PIC'
9697 lt_prog_compiler_static='-Bstatic'
9698 ;;
9699 tcc*)
9700 # Fabrice Bellard et al's Tiny C Compiler
9701 lt_prog_compiler_wl='-Wl,'
9702 lt_prog_compiler_pic='-fPIC'
9703 lt_prog_compiler_static='-static'
9704 ;;
9705 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9706 # Portland Group compilers (*not* the Pentium gcc compiler,
9707 # which looks to be a dead project)
9708 lt_prog_compiler_wl='-Wl,'
9709 lt_prog_compiler_pic='-fpic'
9710 lt_prog_compiler_static='-Bstatic'
9711 ;;
9712 ccc*)
9713 lt_prog_compiler_wl='-Wl,'
9714 # All Alpha code is PIC.
9715 lt_prog_compiler_static='-non_shared'
9716 ;;
9717 xl* | bgxl* | bgf* | mpixl*)
9718 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-qpic'
9721 lt_prog_compiler_static='-qstaticlink'
9722 ;;
9723 *)
9724 case `$CC -V 2>&1 | sed 5q` in
9725 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9726 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9727 lt_prog_compiler_pic='-KPIC'
9728 lt_prog_compiler_static='-Bstatic'
9729 lt_prog_compiler_wl=''
9730 ;;
9731 *Sun\ F* | *Sun*Fortran*)
9732 lt_prog_compiler_pic='-KPIC'
9733 lt_prog_compiler_static='-Bstatic'
9734 lt_prog_compiler_wl='-Qoption ld '
9735 ;;
9736 *Sun\ C*)
9737 # Sun C 5.9
9738 lt_prog_compiler_pic='-KPIC'
9739 lt_prog_compiler_static='-Bstatic'
9740 lt_prog_compiler_wl='-Wl,'
9741 ;;
9742 *Intel*\ [CF]*Compiler*)
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_pic='-fPIC'
9745 lt_prog_compiler_static='-static'
9746 ;;
9747 *Portland\ Group*)
9748 lt_prog_compiler_wl='-Wl,'
9749 lt_prog_compiler_pic='-fpic'
9750 lt_prog_compiler_static='-Bstatic'
9751 ;;
9752 esac
9753 ;;
9754 esac
9755 ;;
9756
9757 newsos6)
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-Bstatic'
9760 ;;
9761
9762 *nto* | *qnx*)
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9764 # it will coredump.
9765 lt_prog_compiler_pic='-fPIC -shared'
9766 ;;
9767
9768 osf3* | osf4* | osf5*)
9769 lt_prog_compiler_wl='-Wl,'
9770 # All OSF/1 code is PIC.
9771 lt_prog_compiler_static='-non_shared'
9772 ;;
9773
9774 rdos*)
9775 lt_prog_compiler_static='-non_shared'
9776 ;;
9777
9778 solaris*)
9779 lt_prog_compiler_pic='-KPIC'
9780 lt_prog_compiler_static='-Bstatic'
9781 case $cc_basename in
9782 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9783 lt_prog_compiler_wl='-Qoption ld ';;
9784 *)
9785 lt_prog_compiler_wl='-Wl,';;
9786 esac
9787 ;;
9788
9789 sunos4*)
9790 lt_prog_compiler_wl='-Qoption ld '
9791 lt_prog_compiler_pic='-PIC'
9792 lt_prog_compiler_static='-Bstatic'
9793 ;;
9794
9795 sysv4 | sysv4.2uw2* | sysv4.3*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-KPIC'
9798 lt_prog_compiler_static='-Bstatic'
9799 ;;
9800
9801 sysv4*MP*)
9802 if test -d /usr/nec; then
9803 lt_prog_compiler_pic='-Kconform_pic'
9804 lt_prog_compiler_static='-Bstatic'
9805 fi
9806 ;;
9807
9808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-KPIC'
9811 lt_prog_compiler_static='-Bstatic'
9812 ;;
9813
9814 unicos*)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_can_build_shared=no
9817 ;;
9818
9819 uts4*)
9820 lt_prog_compiler_pic='-pic'
9821 lt_prog_compiler_static='-Bstatic'
9822 ;;
9823
9824 *)
9825 lt_prog_compiler_can_build_shared=no
9826 ;;
9827 esac
9828 fi
9829
9830case $host_os in
9831 # For platforms that do not support PIC, -DPIC is meaningless:
9832 *djgpp*)
9833 lt_prog_compiler_pic=
9834 ;;
9835 *)
9836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9837 ;;
9838esac
9839
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9841$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9842if ${lt_cv_prog_compiler_pic+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844else
9845 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9848$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9849lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9850
9851#
9852# Check to make sure the PIC flag actually works.
9853#
9854if test -n "$lt_prog_compiler_pic"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9856$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9857if ${lt_cv_prog_compiler_pic_works+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859else
9860 lt_cv_prog_compiler_pic_works=no
9861 ac_outfile=conftest.$ac_objext
9862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9863 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9864 # Insert the option either (1) after the last *FLAGS variable, or
9865 # (2) before a word containing "conftest.", or (3) at the end.
9866 # Note that $ac_compile itself does not contain backslashes and begins
9867 # with a dollar sign (not a hyphen), so the echo should work correctly.
9868 # The option is referenced via a variable to avoid confusing sed.
9869 lt_compile=`echo "$ac_compile" | $SED \
9870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9872 -e 's:$: $lt_compiler_flag:'`
9873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9874 (eval "$lt_compile" 2>conftest.err)
9875 ac_status=$?
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 if (exit $ac_status) && test -s "$ac_outfile"; then
9879 # The compiler can only warn and ignore the option if not recognized
9880 # So say no if there are warnings other than the usual output.
9881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9884 lt_cv_prog_compiler_pic_works=yes
9885 fi
9886 fi
9887 $RM -r conftest*
9888
9889fi
9890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9891$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9892
9893if test yes = "$lt_cv_prog_compiler_pic_works"; then
9894 case $lt_prog_compiler_pic in
9895 "" | " "*) ;;
9896 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9897 esac
9898else
9899 lt_prog_compiler_pic=
9900 lt_prog_compiler_can_build_shared=no
9901fi
9902
9903fi
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915#
9916# Check to make sure the static flag actually works.
9917#
9918wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9920$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9921if ${lt_cv_prog_compiler_static_works+:} false; then :
9922 $as_echo_n "(cached) " >&6
9923else
9924 lt_cv_prog_compiler_static_works=no
9925 save_LDFLAGS=$LDFLAGS
9926 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9927 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9929 # The linker can only warn and ignore the option if not recognized
9930 # So say no if there are warnings
9931 if test -s conftest.err; then
9932 # Append any errors to the config.log.
9933 cat conftest.err 1>&5
9934 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9936 if diff conftest.exp conftest.er2 >/dev/null; then
9937 lt_cv_prog_compiler_static_works=yes
9938 fi
9939 else
9940 lt_cv_prog_compiler_static_works=yes
9941 fi
9942 fi
9943 $RM -r conftest*
9944 LDFLAGS=$save_LDFLAGS
9945
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9948$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9949
9950if test yes = "$lt_cv_prog_compiler_static_works"; then
9951 :
9952else
9953 lt_prog_compiler_static=
9954fi
9955
9956
9957
9958
9959
9960
9961
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9964if ${lt_cv_prog_compiler_c_o+:} false; then :
9965 $as_echo_n "(cached) " >&6
9966else
9967 lt_cv_prog_compiler_c_o=no
9968 $RM -r conftest 2>/dev/null
9969 mkdir conftest
9970 cd conftest
9971 mkdir out
9972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9973
9974 lt_compiler_flag="-o out/conftest2.$ac_objext"
9975 # Insert the option either (1) after the last *FLAGS variable, or
9976 # (2) before a word containing "conftest.", or (3) at the end.
9977 # Note that $ac_compile itself does not contain backslashes and begins
9978 # with a dollar sign (not a hyphen), so the echo should work correctly.
9979 lt_compile=`echo "$ac_compile" | $SED \
9980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9982 -e 's:$: $lt_compiler_flag:'`
9983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9984 (eval "$lt_compile" 2>out/conftest.err)
9985 ac_status=$?
9986 cat out/conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9989 then
9990 # The compiler can only warn and ignore the option if not recognized
9991 # So say no if there are warnings
9992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9995 lt_cv_prog_compiler_c_o=yes
9996 fi
9997 fi
9998 chmod u+w . 2>&5
9999 $RM -r conftest*
10000 # SGI C++ compiler will create directory out/ii_files/ for
10001 # template instantiation
10002 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10003 $RM out/* && rmdir out
10004 cd ..
10005 $RM -r conftest
10006 $RM -r conftest*
10007
10008fi
10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10010$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10011
10012
10013
10014
10015
10016
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10018$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10019if ${lt_cv_prog_compiler_c_o+:} false; then :
10020 $as_echo_n "(cached) " >&6
10021else
10022 lt_cv_prog_compiler_c_o=no
10023 $RM -r conftest 2>/dev/null
10024 mkdir conftest
10025 cd conftest
10026 mkdir out
10027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10028
10029 lt_compiler_flag="-o out/conftest2.$ac_objext"
10030 # Insert the option either (1) after the last *FLAGS variable, or
10031 # (2) before a word containing "conftest.", or (3) at the end.
10032 # Note that $ac_compile itself does not contain backslashes and begins
10033 # with a dollar sign (not a hyphen), so the echo should work correctly.
10034 lt_compile=`echo "$ac_compile" | $SED \
10035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10037 -e 's:$: $lt_compiler_flag:'`
10038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10039 (eval "$lt_compile" 2>out/conftest.err)
10040 ac_status=$?
10041 cat out/conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10044 then
10045 # The compiler can only warn and ignore the option if not recognized
10046 # So say no if there are warnings
10047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10050 lt_cv_prog_compiler_c_o=yes
10051 fi
10052 fi
10053 chmod u+w . 2>&5
10054 $RM -r conftest*
10055 # SGI C++ compiler will create directory out/ii_files/ for
10056 # template instantiation
10057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10058 $RM out/* && rmdir out
10059 cd ..
10060 $RM -r conftest
10061 $RM -r conftest*
10062
10063fi
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10065$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10066
10067
10068
10069
10070hard_links=nottested
10071if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10072 # do not overwrite the value of need_locks provided by the user
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10074$as_echo_n "checking if we can lock with hard links... " >&6; }
10075 hard_links=yes
10076 $RM -r conftest*
10077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10078 touch conftest.a
10079 ln conftest.a conftest.b 2>&5 || hard_links=no
10080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10082$as_echo "$hard_links" >&6; }
10083 if test no = "$hard_links"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10085$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10086 need_locks=warn
10087 fi
10088else
10089 need_locks=no
10090fi
10091
10092
10093
10094
10095
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10098$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10099
10100 runpath_var=
10101 allow_undefined_flag=
10102 always_export_symbols=no
10103 archive_cmds=
10104 archive_expsym_cmds=
10105 compiler_needs_object=no
10106 enable_shared_with_static_runtimes=no
10107 export_dynamic_flag_spec=
10108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10109 hardcode_automatic=no
10110 hardcode_direct=no
10111 hardcode_direct_absolute=no
10112 hardcode_libdir_flag_spec=
10113 hardcode_libdir_separator=
10114 hardcode_minus_L=no
10115 hardcode_shlibpath_var=unsupported
10116 inherit_rpath=no
10117 link_all_deplibs=unknown
10118 module_cmds=
10119 module_expsym_cmds=
10120 old_archive_from_new_cmds=
10121 old_archive_from_expsyms_cmds=
10122 thread_safe_flag_spec=
10123 whole_archive_flag_spec=
10124 # include_expsyms should be a list of space-separated symbols to be *always*
10125 # included in the symbol list
10126 include_expsyms=
10127 # exclude_expsyms can be an extended regexp of symbols to exclude
10128 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10129 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10130 # as well as any symbol that contains 'd'.
10131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10133 # platforms (ab)use it in PIC code, but their linkers get confused if
10134 # the symbol is explicitly referenced. Since portable code cannot
10135 # rely on this symbol name, it's probably fine to never include it in
10136 # preloaded symbol tables.
10137 # Exclude shared library initialization/finalization symbols.
10138 extract_expsyms_cmds=
10139
10140 case $host_os in
10141 cygwin* | mingw* | pw32* | cegcc*)
10142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10143 # When not using gcc, we currently assume that we are using
10144 # Microsoft Visual C++.
10145 if test yes != "$GCC"; then
10146 with_gnu_ld=no
10147 fi
10148 ;;
10149 interix*)
10150 # we just hope/assume this is gcc and not c89 (= MSVC++)
10151 with_gnu_ld=yes
10152 ;;
10153 openbsd* | bitrig*)
10154 with_gnu_ld=no
10155 ;;
10156 esac
10157
10158 ld_shlibs=yes
10159
10160 # On some targets, GNU ld is compatible enough with the native linker
10161 # that we're better off using the native interface for both.
10162 lt_use_gnu_ld_interface=no
10163 if test yes = "$with_gnu_ld"; then
10164 case $host_os in
10165 aix*)
10166 # The AIX port of GNU ld has always aspired to compatibility
10167 # with the native linker. However, as the warning in the GNU ld
10168 # block says, versions before 2.19.5* couldn't really create working
10169 # shared libraries, regardless of the interface used.
10170 case `$LD -v 2>&1` in
10171 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10172 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10173 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10174 *)
10175 lt_use_gnu_ld_interface=yes
10176 ;;
10177 esac
10178 ;;
10179 *)
10180 lt_use_gnu_ld_interface=yes
10181 ;;
10182 esac
10183 fi
10184
10185 if test yes = "$lt_use_gnu_ld_interface"; then
10186 # If archive_cmds runs LD, not CC, wlarc should be empty
10187 wlarc='$wl'
10188
10189 # Set some defaults for GNU ld with shared library support. These
10190 # are reset later if shared libraries are not supported. Putting them
10191 # here allows them to be overridden if necessary.
10192 runpath_var=LD_RUN_PATH
10193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194 export_dynamic_flag_spec='$wl--export-dynamic'
10195 # ancient GNU ld didn't support --whole-archive et. al.
10196 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10197 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10198 else
10199 whole_archive_flag_spec=
10200 fi
10201 supports_anon_versioning=no
10202 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10203 *GNU\ gold*) supports_anon_versioning=yes ;;
10204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10207 *\ 2.11.*) ;; # other 2.11 versions
10208 *) supports_anon_versioning=yes ;;
10209 esac
10210
10211 # See if GNU ld supports shared libraries.
10212 case $host_os in
10213 aix[3-9]*)
10214 # On AIX/PPC, the GNU linker is very broken
10215 if test ia64 != "$host_cpu"; then
10216 ld_shlibs=no
10217 cat <<_LT_EOF 1>&2
10218
10219*** Warning: the GNU linker, at least up to release 2.19, is reported
10220*** to be unable to reliably create shared libraries on AIX.
10221*** Therefore, libtool is disabling shared libraries support. If you
10222*** really care for shared libraries, you may want to install binutils
10223*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10224*** You will then need to restart the configuration process.
10225
10226_LT_EOF
10227 fi
10228 ;;
10229
10230 amigaos*)
10231 case $host_cpu in
10232 powerpc)
10233 # see comment about AmigaOS4 .so support
10234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10235 archive_expsym_cmds=''
10236 ;;
10237 m68k)
10238 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)'
10239 hardcode_libdir_flag_spec='-L$libdir'
10240 hardcode_minus_L=yes
10241 ;;
10242 esac
10243 ;;
10244
10245 beos*)
10246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10247 allow_undefined_flag=unsupported
10248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10249 # support --undefined. This deserves some investigation. FIXME
10250 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10251 else
10252 ld_shlibs=no
10253 fi
10254 ;;
10255
10256 cygwin* | mingw* | pw32* | cegcc*)
10257 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10258 # as there is no search path for DLLs.
10259 hardcode_libdir_flag_spec='-L$libdir'
10260 export_dynamic_flag_spec='$wl--export-all-symbols'
10261 allow_undefined_flag=unsupported
10262 always_export_symbols=no
10263 enable_shared_with_static_runtimes=yes
10264 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'
10265 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10266
10267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10269 # If the export-symbols file already is a .def file, use it as
10270 # is; otherwise, prepend EXPORTS...
10271 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10272 cp $export_symbols $output_objdir/$soname.def;
10273 else
10274 echo EXPORTS > $output_objdir/$soname.def;
10275 cat $export_symbols >> $output_objdir/$soname.def;
10276 fi~
10277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10278 else
10279 ld_shlibs=no
10280 fi
10281 ;;
10282
10283 haiku*)
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10285 link_all_deplibs=yes
10286 ;;
10287
10288 os2*)
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10291 allow_undefined_flag=unsupported
10292 shrext_cmds=.dll
10293 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10294 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10295 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10296 $ECHO EXPORTS >> $output_objdir/$libname.def~
10297 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10299 emximp -o $lib $output_objdir/$libname.def'
10300 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10301 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10302 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10303 $ECHO EXPORTS >> $output_objdir/$libname.def~
10304 prefix_cmds="$SED"~
10305 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10306 prefix_cmds="$prefix_cmds -e 1d";
10307 fi~
10308 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10309 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10310 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10311 emximp -o $lib $output_objdir/$libname.def'
10312 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10313 enable_shared_with_static_runtimes=yes
10314 ;;
10315
10316 interix[3-9]*)
10317 hardcode_direct=no
10318 hardcode_shlibpath_var=no
10319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10320 export_dynamic_flag_spec='$wl-E'
10321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10322 # Instead, shared libraries are loaded at an image base (0x10000000 by
10323 # default) and relocated if they conflict, which is a slow very memory
10324 # consuming and fragmenting process. To avoid this, we pick a random,
10325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10328 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'
10329 ;;
10330
10331 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10332 tmp_diet=no
10333 if test linux-dietlibc = "$host_os"; then
10334 case $cc_basename in
10335 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10336 esac
10337 fi
10338 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10339 && test no = "$tmp_diet"
10340 then
10341 tmp_addflag=' $pic_flag'
10342 tmp_sharedflag='-shared'
10343 case $cc_basename,$host_cpu in
10344 pgcc*) # Portland Group C compiler
10345 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'
10346 tmp_addflag=' $pic_flag'
10347 ;;
10348 pgf77* | pgf90* | pgf95* | pgfortran*)
10349 # Portland Group f77 and f90 compilers
10350 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'
10351 tmp_addflag=' $pic_flag -Mnomain' ;;
10352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10353 tmp_addflag=' -i_dynamic' ;;
10354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10355 tmp_addflag=' -i_dynamic -nofor_main' ;;
10356 ifc* | ifort*) # Intel Fortran compiler
10357 tmp_addflag=' -nofor_main' ;;
10358 lf95*) # Lahey Fortran 8.1
10359 whole_archive_flag_spec=
10360 tmp_sharedflag='--shared' ;;
10361 nagfor*) # NAGFOR 5.3
10362 tmp_sharedflag='-Wl,-shared' ;;
10363 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10364 tmp_sharedflag='-qmkshrobj'
10365 tmp_addflag= ;;
10366 nvcc*) # Cuda Compiler Driver 2.2
10367 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'
10368 compiler_needs_object=yes
10369 ;;
10370 esac
10371 case `$CC -V 2>&1 | sed 5q` in
10372 *Sun\ C*) # Sun C 5.9
10373 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'
10374 compiler_needs_object=yes
10375 tmp_sharedflag='-G' ;;
10376 *Sun\ F*) # Sun Fortran 8.3
10377 tmp_sharedflag='-G' ;;
10378 esac
10379 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10380
10381 if test yes = "$supports_anon_versioning"; then
10382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10384 echo "local: *; };" >> $output_objdir/$libname.ver~
10385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10386 fi
10387
10388 case $cc_basename in
10389 tcc*)
10390 export_dynamic_flag_spec='-rdynamic'
10391 ;;
10392 xlf* | bgf* | bgxlf* | mpixlf*)
10393 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10394 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10395 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10396 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10397 if test yes = "$supports_anon_versioning"; then
10398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10400 echo "local: *; };" >> $output_objdir/$libname.ver~
10401 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10402 fi
10403 ;;
10404 esac
10405 else
10406 ld_shlibs=no
10407 fi
10408 ;;
10409
10410 netbsd*)
10411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10413 wlarc=
10414 else
10415 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10417 fi
10418 ;;
10419
10420 solaris*)
10421 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10422 ld_shlibs=no
10423 cat <<_LT_EOF 1>&2
10424
10425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10426*** create shared libraries on Solaris systems. Therefore, libtool
10427*** is disabling shared libraries support. We urge you to upgrade GNU
10428*** binutils to release 2.9.1 or newer. Another option is to modify
10429*** your PATH or compiler configuration so that the native linker is
10430*** used, and then restart.
10431
10432_LT_EOF
10433 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10436 else
10437 ld_shlibs=no
10438 fi
10439 ;;
10440
10441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10442 case `$LD -v 2>&1` in
10443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10444 ld_shlibs=no
10445 cat <<_LT_EOF 1>&2
10446
10447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10448*** reliably create shared libraries on SCO systems. Therefore, libtool
10449*** is disabling shared libraries support. We urge you to upgrade GNU
10450*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10451*** your PATH or compiler configuration so that the native linker is
10452*** used, and then restart.
10453
10454_LT_EOF
10455 ;;
10456 *)
10457 # For security reasons, it is highly recommended that you always
10458 # use absolute paths for naming shared libraries, and exclude the
10459 # DT_RUNPATH tag from executables and libraries. But doing so
10460 # requires that you compile everything twice, which is a pain.
10461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10465 else
10466 ld_shlibs=no
10467 fi
10468 ;;
10469 esac
10470 ;;
10471
10472 sunos4*)
10473 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10474 wlarc=
10475 hardcode_direct=yes
10476 hardcode_shlibpath_var=no
10477 ;;
10478
10479 *)
10480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10482 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10483 else
10484 ld_shlibs=no
10485 fi
10486 ;;
10487 esac
10488
10489 if test no = "$ld_shlibs"; then
10490 runpath_var=
10491 hardcode_libdir_flag_spec=
10492 export_dynamic_flag_spec=
10493 whole_archive_flag_spec=
10494 fi
10495 else
10496 # PORTME fill in a description of your system's linker (not GNU ld)
10497 case $host_os in
10498 aix3*)
10499 allow_undefined_flag=unsupported
10500 always_export_symbols=yes
10501 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'
10502 # Note: this linker hardcodes the directories in LIBPATH if there
10503 # are no directories specified by -L.
10504 hardcode_minus_L=yes
10505 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10506 # Neither direct hardcoding nor static linking is supported with a
10507 # broken collect2.
10508 hardcode_direct=unsupported
10509 fi
10510 ;;
10511
10512 aix[4-9]*)
10513 if test ia64 = "$host_cpu"; then
10514 # On IA64, the linker does run time linking by default, so we don't
10515 # have to do anything special.
10516 aix_use_runtimelinking=no
10517 exp_sym_flag='-Bexport'
10518 no_entry_flag=
10519 else
10520 # If we're using GNU nm, then we don't want the "-C" option.
10521 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10522 # Without the "-l" option, or with the "-B" option, AIX nm treats
10523 # weak defined symbols like other global defined symbols, whereas
10524 # GNU nm marks them as "W".
10525 # While the 'weak' keyword is ignored in the Export File, we need
10526 # it in the Import File for the 'aix-soname' feature, so we have
10527 # to replace the "-B" option with "-P" for AIX nm.
10528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10530 else
10531 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10532 fi
10533 aix_use_runtimelinking=no
10534
10535 # Test if we are trying to use run time linking or normal
10536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537 # have runtime linking enabled, and use it for executables.
10538 # For shared libraries, we enable/disable runtime linking
10539 # depending on the kind of the shared library created -
10540 # when "with_aix_soname,aix_use_runtimelinking" is:
10541 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10542 # "aix,yes" lib.so shared, rtl:yes, for executables
10543 # lib.a static archive
10544 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10545 # lib.a(lib.so.V) shared, rtl:no, for executables
10546 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10547 # lib.a(lib.so.V) shared, rtl:no
10548 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10549 # lib.a static archive
10550 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10551 for ld_flag in $LDFLAGS; do
10552 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10553 aix_use_runtimelinking=yes
10554 break
10555 fi
10556 done
10557 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10558 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10559 # so we don't have lib.a shared libs to link our executables.
10560 # We have to force runtime linking in this case.
10561 aix_use_runtimelinking=yes
10562 LDFLAGS="$LDFLAGS -Wl,-brtl"
10563 fi
10564 ;;
10565 esac
10566
10567 exp_sym_flag='-bexport'
10568 no_entry_flag='-bnoentry'
10569 fi
10570
10571 # When large executables or shared objects are built, AIX ld can
10572 # have problems creating the table of contents. If linking a library
10573 # or program results in "error TOC overflow" add -mminimal-toc to
10574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10576
10577 archive_cmds=''
10578 hardcode_direct=yes
10579 hardcode_direct_absolute=yes
10580 hardcode_libdir_separator=':'
10581 link_all_deplibs=yes
10582 file_list_spec='$wl-f,'
10583 case $with_aix_soname,$aix_use_runtimelinking in
10584 aix,*) ;; # traditional, no import file
10585 svr4,* | *,yes) # use import file
10586 # The Import File defines what to hardcode.
10587 hardcode_direct=no
10588 hardcode_direct_absolute=no
10589 ;;
10590 esac
10591
10592 if test yes = "$GCC"; then
10593 case $host_os in aix4.[012]|aix4.[012].*)
10594 # We only want to do this on AIX 4.2 and lower, the check
10595 # below for broken collect2 doesn't work under 4.3+
10596 collect2name=`$CC -print-prog-name=collect2`
10597 if test -f "$collect2name" &&
10598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10599 then
10600 # We have reworked collect2
10601 :
10602 else
10603 # We have old collect2
10604 hardcode_direct=unsupported
10605 # It fails to find uninstalled libraries when the uninstalled
10606 # path is not listed in the libpath. Setting hardcode_minus_L
10607 # to unsupported forces relinking
10608 hardcode_minus_L=yes
10609 hardcode_libdir_flag_spec='-L$libdir'
10610 hardcode_libdir_separator=
10611 fi
10612 ;;
10613 esac
10614 shared_flag='-shared'
10615 if test yes = "$aix_use_runtimelinking"; then
10616 shared_flag="$shared_flag "'$wl-G'
10617 fi
10618 # Need to ensure runtime linking is disabled for the traditional
10619 # shared library, or the linker may eventually find shared libraries
10620 # /with/ Import File - we do not want to mix them.
10621 shared_flag_aix='-shared'
10622 shared_flag_svr4='-shared $wl-G'
10623 else
10624 # not using gcc
10625 if test ia64 = "$host_cpu"; then
10626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10627 # chokes on -Wl,-G. The following line is correct:
10628 shared_flag='-G'
10629 else
10630 if test yes = "$aix_use_runtimelinking"; then
10631 shared_flag='$wl-G'
10632 else
10633 shared_flag='$wl-bM:SRE'
10634 fi
10635 shared_flag_aix='$wl-bM:SRE'
10636 shared_flag_svr4='$wl-G'
10637 fi
10638 fi
10639
10640 export_dynamic_flag_spec='$wl-bexpall'
10641 # It seems that -bexpall does not export symbols beginning with
10642 # underscore (_), so it is better to generate a list of symbols to export.
10643 always_export_symbols=yes
10644 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10645 # Warning - without using the other runtime loading flags (-brtl),
10646 # -berok will link without error, but may produce a broken library.
10647 allow_undefined_flag='-berok'
10648 # Determine the default libpath from the value encoded in an
10649 # empty executable.
10650 if test set = "${lt_cv_aix_libpath+set}"; then
10651 aix_libpath=$lt_cv_aix_libpath
10652else
10653 if ${lt_cv_aix_libpath_+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657/* end confdefs.h. */
10658
10659int
10660main ()
10661{
10662
10663 ;
10664 return 0;
10665}
10666_ACEOF
10667if ac_fn_c_try_link "$LINENO"; then :
10668
10669 lt_aix_libpath_sed='
10670 /Import File Strings/,/^$/ {
10671 /^0/ {
10672 s/^0 *\([^ ]*\) *$/\1/
10673 p
10674 }
10675 }'
10676 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10677 # Check for a 64-bit object if we didn't find anything.
10678 if test -z "$lt_cv_aix_libpath_"; then
10679 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 fi
10681fi
10682rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 if test -z "$lt_cv_aix_libpath_"; then
10685 lt_cv_aix_libpath_=/usr/lib:/lib
10686 fi
10687
10688fi
10689
10690 aix_libpath=$lt_cv_aix_libpath_
10691fi
10692
10693 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10694 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10695 else
10696 if test ia64 = "$host_cpu"; then
10697 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10698 allow_undefined_flag="-z nodefs"
10699 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"
10700 else
10701 # Determine the default libpath from the value encoded in an
10702 # empty executable.
10703 if test set = "${lt_cv_aix_libpath+set}"; then
10704 aix_libpath=$lt_cv_aix_libpath
10705else
10706 if ${lt_cv_aix_libpath_+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710/* end confdefs.h. */
10711
10712int
10713main ()
10714{
10715
10716 ;
10717 return 0;
10718}
10719_ACEOF
10720if ac_fn_c_try_link "$LINENO"; then :
10721
10722 lt_aix_libpath_sed='
10723 /Import File Strings/,/^$/ {
10724 /^0/ {
10725 s/^0 *\([^ ]*\) *$/\1/
10726 p
10727 }
10728 }'
10729 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10730 # Check for a 64-bit object if we didn't find anything.
10731 if test -z "$lt_cv_aix_libpath_"; then
10732 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 fi
10734fi
10735rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 if test -z "$lt_cv_aix_libpath_"; then
10738 lt_cv_aix_libpath_=/usr/lib:/lib
10739 fi
10740
10741fi
10742
10743 aix_libpath=$lt_cv_aix_libpath_
10744fi
10745
10746 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10747 # Warning - without using the other run time loading flags,
10748 # -berok will link without error, but may produce a broken library.
10749 no_undefined_flag=' $wl-bernotok'
10750 allow_undefined_flag=' $wl-berok'
10751 if test yes = "$with_gnu_ld"; then
10752 # We only use this code for GNU lds that support --whole-archive.
10753 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10754 else
10755 # Exported symbols can be pulled into shared objects from archives
10756 whole_archive_flag_spec='$convenience'
10757 fi
10758 archive_cmds_need_lc=yes
10759 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10760 # -brtl affects multiple linker settings, -berok does not and is overridden later
10761 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10762 if test svr4 != "$with_aix_soname"; then
10763 # This is similar to how AIX traditionally builds its shared libraries.
10764 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10765 fi
10766 if test aix != "$with_aix_soname"; then
10767 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10768 else
10769 # used by -dlpreopen to get the symbols
10770 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10771 fi
10772 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10773 fi
10774 fi
10775 ;;
10776
10777 amigaos*)
10778 case $host_cpu in
10779 powerpc)
10780 # see comment about AmigaOS4 .so support
10781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10782 archive_expsym_cmds=''
10783 ;;
10784 m68k)
10785 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)'
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_minus_L=yes
10788 ;;
10789 esac
10790 ;;
10791
10792 bsdi[45]*)
10793 export_dynamic_flag_spec=-rdynamic
10794 ;;
10795
10796 cygwin* | mingw* | pw32* | cegcc*)
10797 # When not using gcc, we currently assume that we are using
10798 # Microsoft Visual C++.
10799 # hardcode_libdir_flag_spec is actually meaningless, as there is
10800 # no search path for DLLs.
10801 case $cc_basename in
10802 cl*)
10803 # Native MSVC
10804 hardcode_libdir_flag_spec=' '
10805 allow_undefined_flag=unsupported
10806 always_export_symbols=yes
10807 file_list_spec='@'
10808 # Tell ltmain to make .lib files, not .a files.
10809 libext=lib
10810 # Tell ltmain to make .dll files, not .so files.
10811 shrext_cmds=.dll
10812 # FIXME: Setting linknames here is a bad hack.
10813 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10814 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10815 cp "$export_symbols" "$output_objdir/$soname.def";
10816 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10817 else
10818 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10819 fi~
10820 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10821 linknames='
10822 # The linker will not automatically build a static lib if we build a DLL.
10823 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10824 enable_shared_with_static_runtimes=yes
10825 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10827 # Don't use ranlib
10828 old_postinstall_cmds='chmod 644 $oldlib'
10829 postlink_cmds='lt_outputfile="@OUTPUT@"~
10830 lt_tool_outputfile="@TOOL_OUTPUT@"~
10831 case $lt_outputfile in
10832 *.exe|*.EXE) ;;
10833 *)
10834 lt_outputfile=$lt_outputfile.exe
10835 lt_tool_outputfile=$lt_tool_outputfile.exe
10836 ;;
10837 esac~
10838 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10839 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10840 $RM "$lt_outputfile.manifest";
10841 fi'
10842 ;;
10843 *)
10844 # Assume MSVC wrapper
10845 hardcode_libdir_flag_spec=' '
10846 allow_undefined_flag=unsupported
10847 # Tell ltmain to make .lib files, not .a files.
10848 libext=lib
10849 # Tell ltmain to make .dll files, not .so files.
10850 shrext_cmds=.dll
10851 # FIXME: Setting linknames here is a bad hack.
10852 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10853 # The linker will automatically build a .lib file if we build a DLL.
10854 old_archive_from_new_cmds='true'
10855 # FIXME: Should let the user specify the lib program.
10856 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10857 enable_shared_with_static_runtimes=yes
10858 ;;
10859 esac
10860 ;;
10861
10862 darwin* | rhapsody*)
10863
10864
10865 archive_cmds_need_lc=no
10866 hardcode_direct=no
10867 hardcode_automatic=yes
10868 hardcode_shlibpath_var=unsupported
10869 if test yes = "$lt_cv_ld_force_load"; then
10870 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\"`'
10871
10872 else
10873 whole_archive_flag_spec=''
10874 fi
10875 link_all_deplibs=yes
10876 allow_undefined_flag=$_lt_dar_allow_undefined
10877 case $cc_basename in
10878 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10879 *) _lt_dar_can_shared=$GCC ;;
10880 esac
10881 if test yes = "$_lt_dar_can_shared"; then
10882 output_verbose_link_cmd=func_echo_all
10883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10885 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"
10886 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"
10887
10888 else
10889 ld_shlibs=no
10890 fi
10891
10892 ;;
10893
10894 dgux*)
10895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896 hardcode_libdir_flag_spec='-L$libdir'
10897 hardcode_shlibpath_var=no
10898 ;;
10899
10900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10901 # support. Future versions do this automatically, but an explicit c++rt0.o
10902 # does not break anything, and helps significantly (at the cost of a little
10903 # extra space).
10904 freebsd2.2*)
10905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10906 hardcode_libdir_flag_spec='-R$libdir'
10907 hardcode_direct=yes
10908 hardcode_shlibpath_var=no
10909 ;;
10910
10911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10912 freebsd2.*)
10913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=yes
10915 hardcode_minus_L=yes
10916 hardcode_shlibpath_var=no
10917 ;;
10918
10919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10920 freebsd* | dragonfly*)
10921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10922 hardcode_libdir_flag_spec='-R$libdir'
10923 hardcode_direct=yes
10924 hardcode_shlibpath_var=no
10925 ;;
10926
10927 hpux9*)
10928 if test yes = "$GCC"; then
10929 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10930 else
10931 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10932 fi
10933 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10934 hardcode_libdir_separator=:
10935 hardcode_direct=yes
10936
10937 # hardcode_minus_L: Not really in the search PATH,
10938 # but as the default location of the library.
10939 hardcode_minus_L=yes
10940 export_dynamic_flag_spec='$wl-E'
10941 ;;
10942
10943 hpux10*)
10944 if test yes,no = "$GCC,$with_gnu_ld"; then
10945 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946 else
10947 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10948 fi
10949 if test no = "$with_gnu_ld"; then
10950 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10951 hardcode_libdir_separator=:
10952 hardcode_direct=yes
10953 hardcode_direct_absolute=yes
10954 export_dynamic_flag_spec='$wl-E'
10955 # hardcode_minus_L: Not really in the search PATH,
10956 # but as the default location of the library.
10957 hardcode_minus_L=yes
10958 fi
10959 ;;
10960
10961 hpux11*)
10962 if test yes,no = "$GCC,$with_gnu_ld"; then
10963 case $host_cpu in
10964 hppa*64*)
10965 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 ;;
10967 ia64*)
10968 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10969 ;;
10970 *)
10971 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 esac
10974 else
10975 case $host_cpu in
10976 hppa*64*)
10977 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10978 ;;
10979 ia64*)
10980 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10981 ;;
10982 *)
10983
10984 # Older versions of the 11.00 compiler do not understand -b yet
10985 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10987$as_echo_n "checking if $CC understands -b... " >&6; }
10988if ${lt_cv_prog_compiler__b+:} false; then :
10989 $as_echo_n "(cached) " >&6
10990else
10991 lt_cv_prog_compiler__b=no
10992 save_LDFLAGS=$LDFLAGS
10993 LDFLAGS="$LDFLAGS -b"
10994 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10995 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10996 # The linker can only warn and ignore the option if not recognized
10997 # So say no if there are warnings
10998 if test -s conftest.err; then
10999 # Append any errors to the config.log.
11000 cat conftest.err 1>&5
11001 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11003 if diff conftest.exp conftest.er2 >/dev/null; then
11004 lt_cv_prog_compiler__b=yes
11005 fi
11006 else
11007 lt_cv_prog_compiler__b=yes
11008 fi
11009 fi
11010 $RM -r conftest*
11011 LDFLAGS=$save_LDFLAGS
11012
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11015$as_echo "$lt_cv_prog_compiler__b" >&6; }
11016
11017if test yes = "$lt_cv_prog_compiler__b"; then
11018 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11019else
11020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11021fi
11022
11023 ;;
11024 esac
11025 fi
11026 if test no = "$with_gnu_ld"; then
11027 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11028 hardcode_libdir_separator=:
11029
11030 case $host_cpu in
11031 hppa*64*|ia64*)
11032 hardcode_direct=no
11033 hardcode_shlibpath_var=no
11034 ;;
11035 *)
11036 hardcode_direct=yes
11037 hardcode_direct_absolute=yes
11038 export_dynamic_flag_spec='$wl-E'
11039
11040 # hardcode_minus_L: Not really in the search PATH,
11041 # but as the default location of the library.
11042 hardcode_minus_L=yes
11043 ;;
11044 esac
11045 fi
11046 ;;
11047
11048 irix5* | irix6* | nonstopux*)
11049 if test yes = "$GCC"; then
11050 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'
11051 # Try to use the -exported_symbol ld option, if it does not
11052 # work, assume that -exports_file does not work either and
11053 # implicitly export all symbols.
11054 # This should be the same for all languages, so no per-tag cache variable.
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11056$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11057if ${lt_cv_irix_exported_symbol+:} false; then :
11058 $as_echo_n "(cached) " >&6
11059else
11060 save_LDFLAGS=$LDFLAGS
11061 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h. */
11064int foo (void) { return 0; }
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"; then :
11067 lt_cv_irix_exported_symbol=yes
11068else
11069 lt_cv_irix_exported_symbol=no
11070fi
11071rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11073 LDFLAGS=$save_LDFLAGS
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11076$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11077 if test yes = "$lt_cv_irix_exported_symbol"; then
11078 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'
11079 fi
11080 else
11081 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'
11082 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'
11083 fi
11084 archive_cmds_need_lc='no'
11085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11086 hardcode_libdir_separator=:
11087 inherit_rpath=yes
11088 link_all_deplibs=yes
11089 ;;
11090
11091 linux*)
11092 case $cc_basename in
11093 tcc*)
11094 # Fabrice Bellard et al's Tiny C Compiler
11095 ld_shlibs=yes
11096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11097 ;;
11098 esac
11099 ;;
11100
11101 netbsd*)
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11104 else
11105 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11106 fi
11107 hardcode_libdir_flag_spec='-R$libdir'
11108 hardcode_direct=yes
11109 hardcode_shlibpath_var=no
11110 ;;
11111
11112 newsos6)
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_direct=yes
11115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11116 hardcode_libdir_separator=:
11117 hardcode_shlibpath_var=no
11118 ;;
11119
11120 *nto* | *qnx*)
11121 ;;
11122
11123 openbsd* | bitrig*)
11124 if test -f /usr/libexec/ld.so; then
11125 hardcode_direct=yes
11126 hardcode_shlibpath_var=no
11127 hardcode_direct_absolute=yes
11128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11131 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11132 export_dynamic_flag_spec='$wl-E'
11133 else
11134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11135 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11136 fi
11137 else
11138 ld_shlibs=no
11139 fi
11140 ;;
11141
11142 os2*)
11143 hardcode_libdir_flag_spec='-L$libdir'
11144 hardcode_minus_L=yes
11145 allow_undefined_flag=unsupported
11146 shrext_cmds=.dll
11147 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11148 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11149 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11150 $ECHO EXPORTS >> $output_objdir/$libname.def~
11151 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11152 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11153 emximp -o $lib $output_objdir/$libname.def'
11154 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11155 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11156 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11157 $ECHO EXPORTS >> $output_objdir/$libname.def~
11158 prefix_cmds="$SED"~
11159 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11160 prefix_cmds="$prefix_cmds -e 1d";
11161 fi~
11162 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11163 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11164 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11165 emximp -o $lib $output_objdir/$libname.def'
11166 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11167 enable_shared_with_static_runtimes=yes
11168 ;;
11169
11170 osf3*)
11171 if test yes = "$GCC"; then
11172 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11173 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'
11174 else
11175 allow_undefined_flag=' -expect_unresolved \*'
11176 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'
11177 fi
11178 archive_cmds_need_lc='no'
11179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11180 hardcode_libdir_separator=:
11181 ;;
11182
11183 osf4* | osf5*) # as osf3* with the addition of -msym flag
11184 if test yes = "$GCC"; then
11185 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11186 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'
11187 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11188 else
11189 allow_undefined_flag=' -expect_unresolved \*'
11190 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'
11191 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~
11192 $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'
11193
11194 # Both c and cxx compiler support -rpath directly
11195 hardcode_libdir_flag_spec='-rpath $libdir'
11196 fi
11197 archive_cmds_need_lc='no'
11198 hardcode_libdir_separator=:
11199 ;;
11200
11201 solaris*)
11202 no_undefined_flag=' -z defs'
11203 if test yes = "$GCC"; then
11204 wlarc='$wl'
11205 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11207 $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'
11208 else
11209 case `$CC -V 2>&1` in
11210 *"Compilers 5.0"*)
11211 wlarc=''
11212 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11215 ;;
11216 *)
11217 wlarc='$wl'
11218 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11220 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11221 ;;
11222 esac
11223 fi
11224 hardcode_libdir_flag_spec='-R$libdir'
11225 hardcode_shlibpath_var=no
11226 case $host_os in
11227 solaris2.[0-5] | solaris2.[0-5].*) ;;
11228 *)
11229 # The compiler driver will combine and reorder linker options,
11230 # but understands '-z linker_flag'. GCC discards it without '$wl',
11231 # but is careful enough not to reorder.
11232 # Supported since Solaris 2.6 (maybe 2.5.1?)
11233 if test yes = "$GCC"; then
11234 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11235 else
11236 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11237 fi
11238 ;;
11239 esac
11240 link_all_deplibs=yes
11241 ;;
11242
11243 sunos4*)
11244 if test sequent = "$host_vendor"; then
11245 # Use $CC to link under sequent, because it throws in some extra .o
11246 # files that make .init and .fini sections work.
11247 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11248 else
11249 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11250 fi
11251 hardcode_libdir_flag_spec='-L$libdir'
11252 hardcode_direct=yes
11253 hardcode_minus_L=yes
11254 hardcode_shlibpath_var=no
11255 ;;
11256
11257 sysv4)
11258 case $host_vendor in
11259 sni)
11260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11261 hardcode_direct=yes # is this really true???
11262 ;;
11263 siemens)
11264 ## LD is ld it makes a PLAMLIB
11265 ## CC just makes a GrossModule.
11266 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11267 reload_cmds='$CC -r -o $output$reload_objs'
11268 hardcode_direct=no
11269 ;;
11270 motorola)
11271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11272 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11273 ;;
11274 esac
11275 runpath_var='LD_RUN_PATH'
11276 hardcode_shlibpath_var=no
11277 ;;
11278
11279 sysv4.3*)
11280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11281 hardcode_shlibpath_var=no
11282 export_dynamic_flag_spec='-Bexport'
11283 ;;
11284
11285 sysv4*MP*)
11286 if test -d /usr/nec; then
11287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288 hardcode_shlibpath_var=no
11289 runpath_var=LD_RUN_PATH
11290 hardcode_runpath_var=yes
11291 ld_shlibs=yes
11292 fi
11293 ;;
11294
11295 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11296 no_undefined_flag='$wl-z,text'
11297 archive_cmds_need_lc=no
11298 hardcode_shlibpath_var=no
11299 runpath_var='LD_RUN_PATH'
11300
11301 if test yes = "$GCC"; then
11302 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 else
11305 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 fi
11308 ;;
11309
11310 sysv5* | sco3.2v5* | sco5v6*)
11311 # Note: We CANNOT use -z defs as we might desire, because we do not
11312 # link with -lc, and that would cause any symbols used from libc to
11313 # always be unresolved, which means just about no library would
11314 # ever link correctly. If we're not using GNU ld we use -z text
11315 # though, which does catch some bad symbols but isn't as heavy-handed
11316 # as -z defs.
11317 no_undefined_flag='$wl-z,text'
11318 allow_undefined_flag='$wl-z,nodefs'
11319 archive_cmds_need_lc=no
11320 hardcode_shlibpath_var=no
11321 hardcode_libdir_flag_spec='$wl-R,$libdir'
11322 hardcode_libdir_separator=':'
11323 link_all_deplibs=yes
11324 export_dynamic_flag_spec='$wl-Bexport'
11325 runpath_var='LD_RUN_PATH'
11326
11327 if test yes = "$GCC"; then
11328 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 else
11331 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 fi
11334 ;;
11335
11336 uts4*)
11337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11338 hardcode_libdir_flag_spec='-L$libdir'
11339 hardcode_shlibpath_var=no
11340 ;;
11341
11342 *)
11343 ld_shlibs=no
11344 ;;
11345 esac
11346
11347 if test sni = "$host_vendor"; then
11348 case $host in
11349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11350 export_dynamic_flag_spec='$wl-Blargedynsym'
11351 ;;
11352 esac
11353 fi
11354 fi
11355
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11357$as_echo "$ld_shlibs" >&6; }
11358test no = "$ld_shlibs" && can_build_shared=no
11359
11360with_gnu_ld=$with_gnu_ld
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376#
11377# Do we need to explicitly link libc?
11378#
11379case "x$archive_cmds_need_lc" in
11380x|xyes)
11381 # Assume -lc should be added
11382 archive_cmds_need_lc=yes
11383
11384 if test yes,yes = "$GCC,$enable_shared"; then
11385 case $archive_cmds in
11386 *'~'*)
11387 # FIXME: we may have to deal with multi-command sequences.
11388 ;;
11389 '$CC '*)
11390 # Test whether the compiler implicitly links with -lc since on some
11391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11392 # to ld, don't add -lc before -lgcc.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11394$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11395if ${lt_cv_archive_cmds_need_lc+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397else
11398 $RM -r conftest*
11399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11400
11401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11402 (eval $ac_compile) 2>&5
11403 ac_status=$?
11404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405 test $ac_status = 0; } 2>conftest.err; then
11406 soname=conftest
11407 lib=conftest
11408 libobjs=conftest.$ac_objext
11409 deplibs=
11410 wl=$lt_prog_compiler_wl
11411 pic_flag=$lt_prog_compiler_pic
11412 compiler_flags=-v
11413 linker_flags=-v
11414 verstring=
11415 output_objdir=.
11416 libname=conftest
11417 lt_save_allow_undefined_flag=$allow_undefined_flag
11418 allow_undefined_flag=
11419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11420 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11421 ac_status=$?
11422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11423 test $ac_status = 0; }
11424 then
11425 lt_cv_archive_cmds_need_lc=no
11426 else
11427 lt_cv_archive_cmds_need_lc=yes
11428 fi
11429 allow_undefined_flag=$lt_save_allow_undefined_flag
11430 else
11431 cat conftest.err 1>&5
11432 fi
11433 $RM -r conftest*
11434
11435fi
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11437$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11438 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11439 ;;
11440 esac
11441 fi
11442 ;;
11443esac
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11597$as_echo_n "checking dynamic linker characteristics... " >&6; }
11598
11599if test yes = "$GCC"; then
11600 case $host_os in
11601 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11602 *) lt_awk_arg='/^libraries:/' ;;
11603 esac
11604 case $host_os in
11605 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11606 *) lt_sed_strip_eq='s|=/|/|g' ;;
11607 esac
11608 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11609 case $lt_search_path_spec in
11610 *\;*)
11611 # if the path contains ";" then we assume it to be the separator
11612 # otherwise default to the standard path separator (i.e. ":") - it is
11613 # assumed that no part of a normal pathname contains ";" but that should
11614 # okay in the real world where ";" in dirpaths is itself problematic.
11615 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11616 ;;
11617 *)
11618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11619 ;;
11620 esac
11621 # Ok, now we have the path, separated by spaces, we can step through it
11622 # and add multilib dir if necessary...
11623 lt_tmp_lt_search_path_spec=
11624 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11625 # ...but if some path component already ends with the multilib dir we assume
11626 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11627 case "$lt_multi_os_dir; $lt_search_path_spec " in
11628 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11629 lt_multi_os_dir=
11630 ;;
11631 esac
11632 for lt_sys_path in $lt_search_path_spec; do
11633 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11635 elif test -n "$lt_multi_os_dir"; then
11636 test -d "$lt_sys_path" && \
11637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11638 fi
11639 done
11640 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11641BEGIN {RS = " "; FS = "/|\n";} {
11642 lt_foo = "";
11643 lt_count = 0;
11644 for (lt_i = NF; lt_i > 0; lt_i--) {
11645 if ($lt_i != "" && $lt_i != ".") {
11646 if ($lt_i == "..") {
11647 lt_count++;
11648 } else {
11649 if (lt_count == 0) {
11650 lt_foo = "/" $lt_i lt_foo;
11651 } else {
11652 lt_count--;
11653 }
11654 }
11655 }
11656 }
11657 if (lt_foo != "") { lt_freq[lt_foo]++; }
11658 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11659}'`
11660 # AWK program above erroneously prepends '/' to C:/dos/paths
11661 # for these hosts.
11662 case $host_os in
11663 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11664 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11665 esac
11666 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11667else
11668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11669fi
11670library_names_spec=
11671libname_spec='lib$name'
11672soname_spec=
11673shrext_cmds=.so
11674postinstall_cmds=
11675postuninstall_cmds=
11676finish_cmds=
11677finish_eval=
11678shlibpath_var=
11679shlibpath_overrides_runpath=unknown
11680version_type=none
11681dynamic_linker="$host_os ld.so"
11682sys_lib_dlsearch_path_spec="/lib /usr/lib"
11683need_lib_prefix=unknown
11684hardcode_into_libs=no
11685
11686# when you set need_version to no, make sure it does not cause -set_version
11687# flags to be left without arguments
11688need_version=unknown
11689
11690
11691
11692case $host_os in
11693aix3*)
11694 version_type=linux # correct to gnu/linux during the next big refactor
11695 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11696 shlibpath_var=LIBPATH
11697
11698 # AIX 3 has no versioning support, so we append a major version to the name.
11699 soname_spec='$libname$release$shared_ext$major'
11700 ;;
11701
11702aix[4-9]*)
11703 version_type=linux # correct to gnu/linux during the next big refactor
11704 need_lib_prefix=no
11705 need_version=no
11706 hardcode_into_libs=yes
11707 if test ia64 = "$host_cpu"; then
11708 # AIX 5 supports IA64
11709 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 else
11712 # With GCC up to 2.95.x, collect2 would create an import file
11713 # for dependence libraries. The import file would start with
11714 # the line '#! .'. This would cause the generated library to
11715 # depend on '.', always an invalid library. This was fixed in
11716 # development snapshots of GCC prior to 3.0.
11717 case $host_os in
11718 aix4 | aix4.[01] | aix4.[01].*)
11719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11720 echo ' yes '
11721 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11722 :
11723 else
11724 can_build_shared=no
11725 fi
11726 ;;
11727 esac
11728 # Using Import Files as archive members, it is possible to support
11729 # filename-based versioning of shared library archives on AIX. While
11730 # this would work for both with and without runtime linking, it will
11731 # prevent static linking of such archives. So we do filename-based
11732 # shared library versioning with .so extension only, which is used
11733 # when both runtime linking and shared linking is enabled.
11734 # Unfortunately, runtime linking may impact performance, so we do
11735 # not want this to be the default eventually. Also, we use the
11736 # versioned .so libs for executables only if there is the -brtl
11737 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11738 # To allow for filename-based versioning support, we need to create
11739 # libNAME.so.V as an archive file, containing:
11740 # *) an Import File, referring to the versioned filename of the
11741 # archive as well as the shared archive member, telling the
11742 # bitwidth (32 or 64) of that shared object, and providing the
11743 # list of exported symbols of that shared object, eventually
11744 # decorated with the 'weak' keyword
11745 # *) the shared object with the F_LOADONLY flag set, to really avoid
11746 # it being seen by the linker.
11747 # At run time we better use the real file rather than another symlink,
11748 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11749
11750 case $with_aix_soname,$aix_use_runtimelinking in
11751 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11752 # soname into executable. Probably we can add versioning support to
11753 # collect2, so additional links can be useful in future.
11754 aix,yes) # traditional libtool
11755 dynamic_linker='AIX unversionable lib.so'
11756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11757 # instead of lib<name>.a to let people know that these are not
11758 # typical AIX shared libraries.
11759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11760 ;;
11761 aix,no) # traditional AIX only
11762 dynamic_linker='AIX lib.a(lib.so.V)'
11763 # We preserve .a as extension for shared libraries through AIX4.2
11764 # and later when we are not doing run time linking.
11765 library_names_spec='$libname$release.a $libname.a'
11766 soname_spec='$libname$release$shared_ext$major'
11767 ;;
11768 svr4,*) # full svr4 only
11769 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11770 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11771 # We do not specify a path in Import Files, so LIBPATH fires.
11772 shlibpath_overrides_runpath=yes
11773 ;;
11774 *,yes) # both, prefer svr4
11775 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11776 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11777 # unpreferred sharedlib libNAME.a needs extra handling
11778 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11779 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11780 # We do not specify a path in Import Files, so LIBPATH fires.
11781 shlibpath_overrides_runpath=yes
11782 ;;
11783 *,no) # both, prefer aix
11784 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11785 library_names_spec='$libname$release.a $libname.a'
11786 soname_spec='$libname$release$shared_ext$major'
11787 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11788 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11789 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11790 ;;
11791 esac
11792 shlibpath_var=LIBPATH
11793 fi
11794 ;;
11795
11796amigaos*)
11797 case $host_cpu in
11798 powerpc)
11799 # Since July 2007 AmigaOS4 officially supports .so libraries.
11800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802 ;;
11803 m68k)
11804 library_names_spec='$libname.ixlibrary $libname.a'
11805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11806 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11807 ;;
11808 esac
11809 ;;
11810
11811beos*)
11812 library_names_spec='$libname$shared_ext'
11813 dynamic_linker="$host_os ld.so"
11814 shlibpath_var=LIBRARY_PATH
11815 ;;
11816
11817bsdi[45]*)
11818 version_type=linux # correct to gnu/linux during the next big refactor
11819 need_version=no
11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11821 soname_spec='$libname$release$shared_ext$major'
11822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11826 # the default ld.so.conf also contains /usr/contrib/lib and
11827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11828 # libtool to hard-code these into programs
11829 ;;
11830
11831cygwin* | mingw* | pw32* | cegcc*)
11832 version_type=windows
11833 shrext_cmds=.dll
11834 need_version=no
11835 need_lib_prefix=no
11836
11837 case $GCC,$cc_basename in
11838 yes,*)
11839 # gcc
11840 library_names_spec='$libname.dll.a'
11841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11842 postinstall_cmds='base_file=`basename \$file`~
11843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11844 dldir=$destdir/`dirname \$dlpath`~
11845 test -d \$dldir || mkdir -p \$dldir~
11846 $install_prog $dir/$dlname \$dldir/$dlname~
11847 chmod a+x \$dldir/$dlname~
11848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11850 fi'
11851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11852 dlpath=$dir/\$dldll~
11853 $RM \$dlpath'
11854 shlibpath_overrides_runpath=yes
11855
11856 case $host_os in
11857 cygwin*)
11858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11859 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11860
11861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11862 ;;
11863 mingw* | cegcc*)
11864 # MinGW DLLs use traditional 'lib' prefix
11865 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11866 ;;
11867 pw32*)
11868 # pw32 DLLs use 'pw' prefix rather than 'lib'
11869 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11870 ;;
11871 esac
11872 dynamic_linker='Win32 ld.exe'
11873 ;;
11874
11875 *,cl*)
11876 # Native MSVC
11877 libname_spec='$name'
11878 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11879 library_names_spec='$libname.dll.lib'
11880
11881 case $build_os in
11882 mingw*)
11883 sys_lib_search_path_spec=
11884 lt_save_ifs=$IFS
11885 IFS=';'
11886 for lt_path in $LIB
11887 do
11888 IFS=$lt_save_ifs
11889 # Let DOS variable expansion print the short 8.3 style file name.
11890 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11891 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11892 done
11893 IFS=$lt_save_ifs
11894 # Convert to MSYS style.
11895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11896 ;;
11897 cygwin*)
11898 # Convert to unix form, then to dos form, then back to unix form
11899 # but this time dos style (no spaces!) so that the unix form looks
11900 # like /cygdrive/c/PROGRA~1:/cygdr...
11901 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11902 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11903 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11904 ;;
11905 *)
11906 sys_lib_search_path_spec=$LIB
11907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11908 # It is most probably a Windows format PATH.
11909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11910 else
11911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11912 fi
11913 # FIXME: find the short name or the path components, as spaces are
11914 # common. (e.g. "Program Files" -> "PROGRA~1")
11915 ;;
11916 esac
11917
11918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11919 postinstall_cmds='base_file=`basename \$file`~
11920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11921 dldir=$destdir/`dirname \$dlpath`~
11922 test -d \$dldir || mkdir -p \$dldir~
11923 $install_prog $dir/$dlname \$dldir/$dlname'
11924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11925 dlpath=$dir/\$dldll~
11926 $RM \$dlpath'
11927 shlibpath_overrides_runpath=yes
11928 dynamic_linker='Win32 link.exe'
11929 ;;
11930
11931 *)
11932 # Assume MSVC wrapper
11933 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11934 dynamic_linker='Win32 ld.exe'
11935 ;;
11936 esac
11937 # FIXME: first we should search . and the directory the executable is in
11938 shlibpath_var=PATH
11939 ;;
11940
11941darwin* | rhapsody*)
11942 dynamic_linker="$host_os dyld"
11943 version_type=darwin
11944 need_lib_prefix=no
11945 need_version=no
11946 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11947 soname_spec='$libname$release$major$shared_ext'
11948 shlibpath_overrides_runpath=yes
11949 shlibpath_var=DYLD_LIBRARY_PATH
11950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11951
11952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11954 ;;
11955
11956dgux*)
11957 version_type=linux # correct to gnu/linux during the next big refactor
11958 need_lib_prefix=no
11959 need_version=no
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11961 soname_spec='$libname$release$shared_ext$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 ;;
11964
11965freebsd* | dragonfly*)
11966 # DragonFly does not have aout. When/if they implement a new
11967 # versioning mechanism, adjust this.
11968 if test -x /usr/bin/objformat; then
11969 objformat=`/usr/bin/objformat`
11970 else
11971 case $host_os in
11972 freebsd[23].*) objformat=aout ;;
11973 *) objformat=elf ;;
11974 esac
11975 fi
11976 version_type=freebsd-$objformat
11977 case $version_type in
11978 freebsd-elf*)
11979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980 soname_spec='$libname$release$shared_ext$major'
11981 need_version=no
11982 need_lib_prefix=no
11983 ;;
11984 freebsd-*)
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11986 need_version=yes
11987 ;;
11988 esac
11989 shlibpath_var=LD_LIBRARY_PATH
11990 case $host_os in
11991 freebsd2.*)
11992 shlibpath_overrides_runpath=yes
11993 ;;
11994 freebsd3.[01]* | freebsdelf3.[01]*)
11995 shlibpath_overrides_runpath=yes
11996 hardcode_into_libs=yes
11997 ;;
11998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12000 shlibpath_overrides_runpath=no
12001 hardcode_into_libs=yes
12002 ;;
12003 *) # from 4.6 on, and DragonFly
12004 shlibpath_overrides_runpath=yes
12005 hardcode_into_libs=yes
12006 ;;
12007 esac
12008 ;;
12009
12010haiku*)
12011 version_type=linux # correct to gnu/linux during the next big refactor
12012 need_lib_prefix=no
12013 need_version=no
12014 dynamic_linker="$host_os runtime_loader"
12015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016 soname_spec='$libname$release$shared_ext$major'
12017 shlibpath_var=LIBRARY_PATH
12018 shlibpath_overrides_runpath=no
12019 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12020 hardcode_into_libs=yes
12021 ;;
12022
12023hpux9* | hpux10* | hpux11*)
12024 # Give a soname corresponding to the major version so that dld.sl refuses to
12025 # link against other versions.
12026 version_type=sunos
12027 need_lib_prefix=no
12028 need_version=no
12029 case $host_cpu in
12030 ia64*)
12031 shrext_cmds='.so'
12032 hardcode_into_libs=yes
12033 dynamic_linker="$host_os dld.so"
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037 soname_spec='$libname$release$shared_ext$major'
12038 if test 32 = "$HPUX_IA64_MODE"; then
12039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12040 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12041 else
12042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12043 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12044 fi
12045 ;;
12046 hppa*64*)
12047 shrext_cmds='.sl'
12048 hardcode_into_libs=yes
12049 dynamic_linker="$host_os dld.sl"
12050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053 soname_spec='$libname$release$shared_ext$major'
12054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056 ;;
12057 *)
12058 shrext_cmds='.sl'
12059 dynamic_linker="$host_os dld.sl"
12060 shlibpath_var=SHLIB_PATH
12061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12063 soname_spec='$libname$release$shared_ext$major'
12064 ;;
12065 esac
12066 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12067 postinstall_cmds='chmod 555 $lib'
12068 # or fails outright, so override atomically:
12069 install_override_mode=555
12070 ;;
12071
12072interix[3-9]*)
12073 version_type=linux # correct to gnu/linux during the next big refactor
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077 soname_spec='$libname$release$shared_ext$major'
12078 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12082 ;;
12083
12084irix5* | irix6* | nonstopux*)
12085 case $host_os in
12086 nonstopux*) version_type=nonstopux ;;
12087 *)
12088 if test yes = "$lt_cv_prog_gnu_ld"; then
12089 version_type=linux # correct to gnu/linux during the next big refactor
12090 else
12091 version_type=irix
12092 fi ;;
12093 esac
12094 need_lib_prefix=no
12095 need_version=no
12096 soname_spec='$libname$release$shared_ext$major'
12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12098 case $host_os in
12099 irix5* | nonstopux*)
12100 libsuff= shlibsuff=
12101 ;;
12102 *)
12103 case $LD in # libtool.m4 will add one of these switches to LD
12104 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105 libsuff= shlibsuff= libmagic=32-bit;;
12106 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107 libsuff=32 shlibsuff=N32 libmagic=N32;;
12108 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110 *) libsuff= shlibsuff= libmagic=never-match;;
12111 esac
12112 ;;
12113 esac
12114 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115 shlibpath_overrides_runpath=no
12116 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12117 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12118 hardcode_into_libs=yes
12119 ;;
12120
12121# No shared lib support for Linux oldld, aout, or coff.
12122linux*oldld* | linux*aout* | linux*coff*)
12123 dynamic_linker=no
12124 ;;
12125
12126linux*android*)
12127 version_type=none # Android doesn't support versioned libraries.
12128 need_lib_prefix=no
12129 need_version=no
12130 library_names_spec='$libname$release$shared_ext'
12131 soname_spec='$libname$release$shared_ext'
12132 finish_cmds=
12133 shlibpath_var=LD_LIBRARY_PATH
12134 shlibpath_overrides_runpath=yes
12135
12136 # This implies no fast_install, which is unacceptable.
12137 # Some rework will be needed to allow for fast_install
12138 # before this can be enabled.
12139 hardcode_into_libs=yes
12140
12141 dynamic_linker='Android linker'
12142 # Don't embed -rpath directories since the linker doesn't support them.
12143 hardcode_libdir_flag_spec='-L$libdir'
12144 ;;
12145
12146# This must be glibc/ELF.
12147linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12148 version_type=linux # correct to gnu/linux during the next big refactor
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152 soname_spec='$libname$release$shared_ext$major'
12153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156
12157 # Some binutils ld are patched to set DT_RUNPATH
12158 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160else
12161 lt_cv_shlibpath_overrides_runpath=no
12162 save_LDFLAGS=$LDFLAGS
12163 save_libdir=$libdir
12164 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12165 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167/* end confdefs.h. */
12168
12169int
12170main ()
12171{
12172
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177if ac_fn_c_try_link "$LINENO"; then :
12178 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12179 lt_cv_shlibpath_overrides_runpath=yes
12180fi
12181fi
12182rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 LDFLAGS=$save_LDFLAGS
12185 libdir=$save_libdir
12186
12187fi
12188
12189 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12190
12191 # This implies no fast_install, which is unacceptable.
12192 # Some rework will be needed to allow for fast_install
12193 # before this can be enabled.
12194 hardcode_into_libs=yes
12195
12196 # Ideally, we could use ldconfig to report *all* directores which are
12197 # searched for libraries, however this is still not possible. Aside from not
12198 # being certain /sbin/ldconfig is available, command
12199 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12200 # even though it is searched at run-time. Try to do the best guess by
12201 # appending ld.so.conf contents (and includes) to the search path.
12202 if test -f /etc/ld.so.conf; then
12203 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' ' '`
12204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12205 fi
12206
12207 # We used to test for /lib/ld.so.1 and disable shared libraries on
12208 # powerpc, because MkLinux only supported shared libraries with the
12209 # GNU dynamic linker. Since this was broken with cross compilers,
12210 # most powerpc-linux boxes support dynamic linking these days and
12211 # people can always --disable-shared, the test was removed, and we
12212 # assume the GNU/Linux dynamic linker is in use.
12213 dynamic_linker='GNU/Linux ld.so'
12214 ;;
12215
12216netbsd*)
12217 version_type=sunos
12218 need_lib_prefix=no
12219 need_version=no
12220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12223 dynamic_linker='NetBSD (a.out) ld.so'
12224 else
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12226 soname_spec='$libname$release$shared_ext$major'
12227 dynamic_linker='NetBSD ld.elf_so'
12228 fi
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=yes
12231 hardcode_into_libs=yes
12232 ;;
12233
12234newsos6)
12235 version_type=linux # correct to gnu/linux during the next big refactor
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 ;;
12240
12241*nto* | *qnx*)
12242 version_type=qnx
12243 need_lib_prefix=no
12244 need_version=no
12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246 soname_spec='$libname$release$shared_ext$major'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=no
12249 hardcode_into_libs=yes
12250 dynamic_linker='ldqnx.so'
12251 ;;
12252
12253openbsd* | bitrig*)
12254 version_type=sunos
12255 sys_lib_dlsearch_path_spec=/usr/lib
12256 need_lib_prefix=no
12257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12258 need_version=no
12259 else
12260 need_version=yes
12261 fi
12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath=yes
12266 ;;
12267
12268os2*)
12269 libname_spec='$name'
12270 version_type=windows
12271 shrext_cmds=.dll
12272 need_version=no
12273 need_lib_prefix=no
12274 # OS/2 can only load a DLL with a base name of 8 characters or less.
12275 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12276 v=$($ECHO $release$versuffix | tr -d .-);
12277 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12278 $ECHO $n$v`$shared_ext'
12279 library_names_spec='${libname}_dll.$libext'
12280 dynamic_linker='OS/2 ld.exe'
12281 shlibpath_var=BEGINLIBPATH
12282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284 postinstall_cmds='base_file=`basename \$file`~
12285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12286 dldir=$destdir/`dirname \$dlpath`~
12287 test -d \$dldir || mkdir -p \$dldir~
12288 $install_prog $dir/$dlname \$dldir/$dlname~
12289 chmod a+x \$dldir/$dlname~
12290 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12291 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12292 fi'
12293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12294 dlpath=$dir/\$dldll~
12295 $RM \$dlpath'
12296 ;;
12297
12298osf3* | osf4* | osf5*)
12299 version_type=osf
12300 need_lib_prefix=no
12301 need_version=no
12302 soname_spec='$libname$release$shared_ext$major'
12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12307 ;;
12308
12309rdos*)
12310 dynamic_linker=no
12311 ;;
12312
12313solaris*)
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 soname_spec='$libname$release$shared_ext$major'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12321 hardcode_into_libs=yes
12322 # ldd complains unless libraries are executable
12323 postinstall_cmds='chmod +x $lib'
12324 ;;
12325
12326sunos4*)
12327 version_type=sunos
12328 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 shlibpath_overrides_runpath=yes
12332 if test yes = "$with_gnu_ld"; then
12333 need_lib_prefix=no
12334 fi
12335 need_version=yes
12336 ;;
12337
12338sysv4 | sysv4.3*)
12339 version_type=linux # correct to gnu/linux during the next big refactor
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 soname_spec='$libname$release$shared_ext$major'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 case $host_vendor in
12344 sni)
12345 shlibpath_overrides_runpath=no
12346 need_lib_prefix=no
12347 runpath_var=LD_RUN_PATH
12348 ;;
12349 siemens)
12350 need_lib_prefix=no
12351 ;;
12352 motorola)
12353 need_lib_prefix=no
12354 need_version=no
12355 shlibpath_overrides_runpath=no
12356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12357 ;;
12358 esac
12359 ;;
12360
12361sysv4*MP*)
12362 if test -d /usr/nec; then
12363 version_type=linux # correct to gnu/linux during the next big refactor
12364 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12365 soname_spec='$libname$shared_ext.$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 fi
12368 ;;
12369
12370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12371 version_type=sco
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12375 soname_spec='$libname$release$shared_ext$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 shlibpath_overrides_runpath=yes
12378 hardcode_into_libs=yes
12379 if test yes = "$with_gnu_ld"; then
12380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12381 else
12382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12383 case $host_os in
12384 sco3.2v5*)
12385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12386 ;;
12387 esac
12388 fi
12389 sys_lib_dlsearch_path_spec='/usr/lib'
12390 ;;
12391
12392tpf*)
12393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12394 version_type=linux # correct to gnu/linux during the next big refactor
12395 need_lib_prefix=no
12396 need_version=no
12397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 shlibpath_overrides_runpath=no
12400 hardcode_into_libs=yes
12401 ;;
12402
12403uts4*)
12404 version_type=linux # correct to gnu/linux during the next big refactor
12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406 soname_spec='$libname$release$shared_ext$major'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 ;;
12409
12410*)
12411 dynamic_linker=no
12412 ;;
12413esac
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12415$as_echo "$dynamic_linker" >&6; }
12416test no = "$dynamic_linker" && can_build_shared=no
12417
12418variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12419if test yes = "$GCC"; then
12420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12421fi
12422
12423if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12424 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12425fi
12426
12427if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12428 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12429fi
12430
12431# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12432configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12433
12434# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12435func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12436
12437# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12438configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12537$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12538hardcode_action=
12539if test -n "$hardcode_libdir_flag_spec" ||
12540 test -n "$runpath_var" ||
12541 test yes = "$hardcode_automatic"; then
12542
12543 # We can hardcode non-existent directories.
12544 if test no != "$hardcode_direct" &&
12545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12546 # have to relink, otherwise we might link with an installed library
12547 # when we should be linking with a yet-to-be-installed one
12548 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12549 test no != "$hardcode_minus_L"; then
12550 # Linking always hardcodes the temporary library directory.
12551 hardcode_action=relink
12552 else
12553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12554 hardcode_action=immediate
12555 fi
12556else
12557 # We cannot hardcode anything, or else we can only hardcode existing
12558 # directories.
12559 hardcode_action=unsupported
12560fi
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12562$as_echo "$hardcode_action" >&6; }
12563
12564if test relink = "$hardcode_action" ||
12565 test yes = "$inherit_rpath"; then
12566 # Fast installation is not supported
12567 enable_fast_install=no
12568elif test yes = "$shlibpath_overrides_runpath" ||
12569 test no = "$enable_shared"; then
12570 # Fast installation is not necessary
12571 enable_fast_install=needless
12572fi
12573
12574
12575
12576
12577
12578
12579 if test yes != "$enable_dlopen"; then
12580 enable_dlopen=unknown
12581 enable_dlopen_self=unknown
12582 enable_dlopen_self_static=unknown
12583else
12584 lt_cv_dlopen=no
12585 lt_cv_dlopen_libs=
12586
12587 case $host_os in
12588 beos*)
12589 lt_cv_dlopen=load_add_on
12590 lt_cv_dlopen_libs=
12591 lt_cv_dlopen_self=yes
12592 ;;
12593
12594 mingw* | pw32* | cegcc*)
12595 lt_cv_dlopen=LoadLibrary
12596 lt_cv_dlopen_libs=
12597 ;;
12598
12599 cygwin*)
12600 lt_cv_dlopen=dlopen
12601 lt_cv_dlopen_libs=
12602 ;;
12603
12604 darwin*)
12605 # if libdl is installed we need to link against it
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12607$as_echo_n "checking for dlopen in -ldl... " >&6; }
12608if ${ac_cv_lib_dl_dlopen+:} false; then :
12609 $as_echo_n "(cached) " >&6
12610else
12611 ac_check_lib_save_LIBS=$LIBS
12612LIBS="-ldl $LIBS"
12613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h. */
12615
12616/* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12619#ifdef __cplusplus
12620extern "C"
12621#endif
12622char dlopen ();
12623int
12624main ()
12625{
12626return dlopen ();
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631if ac_fn_c_try_link "$LINENO"; then :
12632 ac_cv_lib_dl_dlopen=yes
12633else
12634 ac_cv_lib_dl_dlopen=no
12635fi
12636rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12638LIBS=$ac_check_lib_save_LIBS
12639fi
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12641$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12642if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12643 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12644else
12645
12646 lt_cv_dlopen=dyld
12647 lt_cv_dlopen_libs=
12648 lt_cv_dlopen_self=yes
12649
12650fi
12651
12652 ;;
12653
12654 tpf*)
12655 # Don't try to run any link tests for TPF. We know it's impossible
12656 # because TPF is a cross-compiler, and we know how we open DSOs.
12657 lt_cv_dlopen=dlopen
12658 lt_cv_dlopen_libs=
12659 lt_cv_dlopen_self=no
12660 ;;
12661
12662 *)
12663 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12664if test "x$ac_cv_func_shl_load" = xyes; then :
12665 lt_cv_dlopen=shl_load
12666else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12668$as_echo_n "checking for shl_load in -ldld... " >&6; }
12669if ${ac_cv_lib_dld_shl_load+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671else
12672 ac_check_lib_save_LIBS=$LIBS
12673LIBS="-ldld $LIBS"
12674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675/* end confdefs.h. */
12676
12677/* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
12680#ifdef __cplusplus
12681extern "C"
12682#endif
12683char shl_load ();
12684int
12685main ()
12686{
12687return shl_load ();
12688 ;
12689 return 0;
12690}
12691_ACEOF
12692if ac_fn_c_try_link "$LINENO"; then :
12693 ac_cv_lib_dld_shl_load=yes
12694else
12695 ac_cv_lib_dld_shl_load=no
12696fi
12697rm -f core conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
12699LIBS=$ac_check_lib_save_LIBS
12700fi
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12702$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12703if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12704 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12705else
12706 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12707if test "x$ac_cv_func_dlopen" = xyes; then :
12708 lt_cv_dlopen=dlopen
12709else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12711$as_echo_n "checking for dlopen in -ldl... " >&6; }
12712if ${ac_cv_lib_dl_dlopen+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714else
12715 ac_check_lib_save_LIBS=$LIBS
12716LIBS="-ldl $LIBS"
12717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718/* end confdefs.h. */
12719
12720/* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12723#ifdef __cplusplus
12724extern "C"
12725#endif
12726char dlopen ();
12727int
12728main ()
12729{
12730return dlopen ();
12731 ;
12732 return 0;
12733}
12734_ACEOF
12735if ac_fn_c_try_link "$LINENO"; then :
12736 ac_cv_lib_dl_dlopen=yes
12737else
12738 ac_cv_lib_dl_dlopen=no
12739fi
12740rm -f core conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12742LIBS=$ac_check_lib_save_LIBS
12743fi
12744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12745$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12746if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12747 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12748else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12750$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12751if ${ac_cv_lib_svld_dlopen+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753else
12754 ac_check_lib_save_LIBS=$LIBS
12755LIBS="-lsvld $LIBS"
12756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h. */
12758
12759/* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762#ifdef __cplusplus
12763extern "C"
12764#endif
12765char dlopen ();
12766int
12767main ()
12768{
12769return dlopen ();
12770 ;
12771 return 0;
12772}
12773_ACEOF
12774if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_lib_svld_dlopen=yes
12776else
12777 ac_cv_lib_svld_dlopen=no
12778fi
12779rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781LIBS=$ac_check_lib_save_LIBS
12782fi
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12784$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12785if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12786 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12787else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12789$as_echo_n "checking for dld_link in -ldld... " >&6; }
12790if ${ac_cv_lib_dld_dld_link+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792else
12793 ac_check_lib_save_LIBS=$LIBS
12794LIBS="-ldld $LIBS"
12795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796/* end confdefs.h. */
12797
12798/* Override any GCC internal prototype to avoid an error.
12799 Use char because int might match the return type of a GCC
12800 builtin and then its argument prototype would still apply. */
12801#ifdef __cplusplus
12802extern "C"
12803#endif
12804char dld_link ();
12805int
12806main ()
12807{
12808return dld_link ();
12809 ;
12810 return 0;
12811}
12812_ACEOF
12813if ac_fn_c_try_link "$LINENO"; then :
12814 ac_cv_lib_dld_dld_link=yes
12815else
12816 ac_cv_lib_dld_dld_link=no
12817fi
12818rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12820LIBS=$ac_check_lib_save_LIBS
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12823$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12824if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12825 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12826fi
12827
12828
12829fi
12830
12831
12832fi
12833
12834
12835fi
12836
12837
12838fi
12839
12840
12841fi
12842
12843 ;;
12844 esac
12845
12846 if test no = "$lt_cv_dlopen"; then
12847 enable_dlopen=no
12848 else
12849 enable_dlopen=yes
12850 fi
12851
12852 case $lt_cv_dlopen in
12853 dlopen)
12854 save_CPPFLAGS=$CPPFLAGS
12855 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12856
12857 save_LDFLAGS=$LDFLAGS
12858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12859
12860 save_LIBS=$LIBS
12861 LIBS="$lt_cv_dlopen_libs $LIBS"
12862
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12864$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12865if ${lt_cv_dlopen_self+:} false; then :
12866 $as_echo_n "(cached) " >&6
12867else
12868 if test yes = "$cross_compiling"; then :
12869 lt_cv_dlopen_self=cross
12870else
12871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12872 lt_status=$lt_dlunknown
12873 cat > conftest.$ac_ext <<_LT_EOF
12874#line $LINENO "configure"
12875#include "confdefs.h"
12876
12877#if HAVE_DLFCN_H
12878#include <dlfcn.h>
12879#endif
12880
12881#include <stdio.h>
12882
12883#ifdef RTLD_GLOBAL
12884# define LT_DLGLOBAL RTLD_GLOBAL
12885#else
12886# ifdef DL_GLOBAL
12887# define LT_DLGLOBAL DL_GLOBAL
12888# else
12889# define LT_DLGLOBAL 0
12890# endif
12891#endif
12892
12893/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12894 find out it does not work in some platform. */
12895#ifndef LT_DLLAZY_OR_NOW
12896# ifdef RTLD_LAZY
12897# define LT_DLLAZY_OR_NOW RTLD_LAZY
12898# else
12899# ifdef DL_LAZY
12900# define LT_DLLAZY_OR_NOW DL_LAZY
12901# else
12902# ifdef RTLD_NOW
12903# define LT_DLLAZY_OR_NOW RTLD_NOW
12904# else
12905# ifdef DL_NOW
12906# define LT_DLLAZY_OR_NOW DL_NOW
12907# else
12908# define LT_DLLAZY_OR_NOW 0
12909# endif
12910# endif
12911# endif
12912# endif
12913#endif
12914
12915/* When -fvisibility=hidden is used, assume the code has been annotated
12916 correspondingly for the symbols needed. */
12917#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12918int fnord () __attribute__((visibility("default")));
12919#endif
12920
12921int fnord () { return 42; }
12922int main ()
12923{
12924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12925 int status = $lt_dlunknown;
12926
12927 if (self)
12928 {
12929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12930 else
12931 {
12932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12933 else puts (dlerror ());
12934 }
12935 /* dlclose (self); */
12936 }
12937 else
12938 puts (dlerror ());
12939
12940 return status;
12941}
12942_LT_EOF
12943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12944 (eval $ac_link) 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12948 (./conftest; exit; ) >&5 2>/dev/null
12949 lt_status=$?
12950 case x$lt_status in
12951 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12952 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12953 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12954 esac
12955 else :
12956 # compilation failed
12957 lt_cv_dlopen_self=no
12958 fi
12959fi
12960rm -fr conftest*
12961
12962
12963fi
12964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12965$as_echo "$lt_cv_dlopen_self" >&6; }
12966
12967 if test yes = "$lt_cv_dlopen_self"; then
12968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12970$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12971if ${lt_cv_dlopen_self_static+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973else
12974 if test yes = "$cross_compiling"; then :
12975 lt_cv_dlopen_self_static=cross
12976else
12977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12978 lt_status=$lt_dlunknown
12979 cat > conftest.$ac_ext <<_LT_EOF
12980#line $LINENO "configure"
12981#include "confdefs.h"
12982
12983#if HAVE_DLFCN_H
12984#include <dlfcn.h>
12985#endif
12986
12987#include <stdio.h>
12988
12989#ifdef RTLD_GLOBAL
12990# define LT_DLGLOBAL RTLD_GLOBAL
12991#else
12992# ifdef DL_GLOBAL
12993# define LT_DLGLOBAL DL_GLOBAL
12994# else
12995# define LT_DLGLOBAL 0
12996# endif
12997#endif
12998
12999/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13000 find out it does not work in some platform. */
13001#ifndef LT_DLLAZY_OR_NOW
13002# ifdef RTLD_LAZY
13003# define LT_DLLAZY_OR_NOW RTLD_LAZY
13004# else
13005# ifdef DL_LAZY
13006# define LT_DLLAZY_OR_NOW DL_LAZY
13007# else
13008# ifdef RTLD_NOW
13009# define LT_DLLAZY_OR_NOW RTLD_NOW
13010# else
13011# ifdef DL_NOW
13012# define LT_DLLAZY_OR_NOW DL_NOW
13013# else
13014# define LT_DLLAZY_OR_NOW 0
13015# endif
13016# endif
13017# endif
13018# endif
13019#endif
13020
13021/* When -fvisibility=hidden is used, assume the code has been annotated
13022 correspondingly for the symbols needed. */
13023#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13024int fnord () __attribute__((visibility("default")));
13025#endif
13026
13027int fnord () { return 42; }
13028int main ()
13029{
13030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13031 int status = $lt_dlunknown;
13032
13033 if (self)
13034 {
13035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13036 else
13037 {
13038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13039 else puts (dlerror ());
13040 }
13041 /* dlclose (self); */
13042 }
13043 else
13044 puts (dlerror ());
13045
13046 return status;
13047}
13048_LT_EOF
13049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13050 (eval $ac_link) 2>&5
13051 ac_status=$?
13052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13053 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13054 (./conftest; exit; ) >&5 2>/dev/null
13055 lt_status=$?
13056 case x$lt_status in
13057 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13058 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13059 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13060 esac
13061 else :
13062 # compilation failed
13063 lt_cv_dlopen_self_static=no
13064 fi
13065fi
13066rm -fr conftest*
13067
13068
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13071$as_echo "$lt_cv_dlopen_self_static" >&6; }
13072 fi
13073
13074 CPPFLAGS=$save_CPPFLAGS
13075 LDFLAGS=$save_LDFLAGS
13076 LIBS=$save_LIBS
13077 ;;
13078 esac
13079
13080 case $lt_cv_dlopen_self in
13081 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13082 *) enable_dlopen_self=unknown ;;
13083 esac
13084
13085 case $lt_cv_dlopen_self_static in
13086 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13087 *) enable_dlopen_self_static=unknown ;;
13088 esac
13089fi
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107striplib=
13108old_striplib=
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13110$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13111if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13112 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13113 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13115$as_echo "yes" >&6; }
13116else
13117# FIXME - insert some real tests, host_os isn't really good enough
13118 case $host_os in
13119 darwin*)
13120 if test -n "$STRIP"; then
13121 striplib="$STRIP -x"
13122 old_striplib="$STRIP -S"
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124$as_echo "yes" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127$as_echo "no" >&6; }
13128 fi
13129 ;;
13130 *)
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
13133 ;;
13134 esac
13135fi
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 # Report what library types will actually be built
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13150$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13152$as_echo "$can_build_shared" >&6; }
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13155$as_echo_n "checking whether to build shared libraries... " >&6; }
13156 test no = "$can_build_shared" && enable_shared=no
13157
13158 # On AIX, shared libraries and static libraries use the same namespace, and
13159 # are all built from PIC.
13160 case $host_os in
13161 aix3*)
13162 test yes = "$enable_shared" && enable_static=no
13163 if test -n "$RANLIB"; then
13164 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13165 postinstall_cmds='$RANLIB $lib'
13166 fi
13167 ;;
13168
13169 aix[4-9]*)
13170 if test ia64 != "$host_cpu"; then
13171 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13172 yes,aix,yes) ;; # shared object as lib.so file only
13173 yes,svr4,*) ;; # shared object as lib.so archive member only
13174 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13175 esac
13176 fi
13177 ;;
13178 esac
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13180$as_echo "$enable_shared" >&6; }
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13183$as_echo_n "checking whether to build static libraries... " >&6; }
13184 # Make sure either enable_shared or enable_static is yes.
13185 test yes = "$enable_shared" || enable_static=yes
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13187$as_echo "$enable_static" >&6; }
13188
13189
13190
13191
13192fi
13193ac_ext=c
13194ac_cpp='$CPP $CPPFLAGS'
13195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198
13199CC=$lt_save_CC
13200
13201 if test -n "$CXX" && ( test no != "$CXX" &&
13202 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13203 (test g++ != "$CXX"))); then
13204 ac_ext=cpp
13205ac_cpp='$CXXCPP $CPPFLAGS'
13206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13210$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13211if test -z "$CXXCPP"; then
13212 if ${ac_cv_prog_CXXCPP+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214else
13215 # Double quotes because CXXCPP needs to be expanded
13216 for CXXCPP in "$CXX -E" "/lib/cpp"
13217 do
13218 ac_preproc_ok=false
13219for ac_cxx_preproc_warn_flag in '' yes
13220do
13221 # Use a header file that comes with gcc, so configuring glibc
13222 # with a fresh cross-compiler works.
13223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13224 # <limits.h> exists even on freestanding compilers.
13225 # On the NeXT, cc -E runs the code through the compiler's parser,
13226 # not just through cpp. "Syntax error" is here to catch this case.
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228/* end confdefs.h. */
13229#ifdef __STDC__
13230# include <limits.h>
13231#else
13232# include <assert.h>
13233#endif
13234 Syntax error
13235_ACEOF
13236if ac_fn_cxx_try_cpp "$LINENO"; then :
13237
13238else
13239 # Broken: fails on valid input.
13240continue
13241fi
13242rm -f conftest.err conftest.i conftest.$ac_ext
13243
13244 # OK, works on sane cases. Now check whether nonexistent headers
13245 # can be detected and how.
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247/* end confdefs.h. */
13248#include <ac_nonexistent.h>
13249_ACEOF
13250if ac_fn_cxx_try_cpp "$LINENO"; then :
13251 # Broken: success on invalid input.
13252continue
13253else
13254 # Passes both tests.
13255ac_preproc_ok=:
13256break
13257fi
13258rm -f conftest.err conftest.i conftest.$ac_ext
13259
13260done
13261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13262rm -f conftest.i conftest.err conftest.$ac_ext
13263if $ac_preproc_ok; then :
13264 break
13265fi
13266
13267 done
13268 ac_cv_prog_CXXCPP=$CXXCPP
13269
13270fi
13271 CXXCPP=$ac_cv_prog_CXXCPP
13272else
13273 ac_cv_prog_CXXCPP=$CXXCPP
13274fi
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13276$as_echo "$CXXCPP" >&6; }
13277ac_preproc_ok=false
13278for ac_cxx_preproc_warn_flag in '' yes
13279do
13280 # Use a header file that comes with gcc, so configuring glibc
13281 # with a fresh cross-compiler works.
13282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13283 # <limits.h> exists even on freestanding compilers.
13284 # On the NeXT, cc -E runs the code through the compiler's parser,
13285 # not just through cpp. "Syntax error" is here to catch this case.
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288#ifdef __STDC__
13289# include <limits.h>
13290#else
13291# include <assert.h>
13292#endif
13293 Syntax error
13294_ACEOF
13295if ac_fn_cxx_try_cpp "$LINENO"; then :
13296
13297else
13298 # Broken: fails on valid input.
13299continue
13300fi
13301rm -f conftest.err conftest.i conftest.$ac_ext
13302
13303 # OK, works on sane cases. Now check whether nonexistent headers
13304 # can be detected and how.
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306/* end confdefs.h. */
13307#include <ac_nonexistent.h>
13308_ACEOF
13309if ac_fn_cxx_try_cpp "$LINENO"; then :
13310 # Broken: success on invalid input.
13311continue
13312else
13313 # Passes both tests.
13314ac_preproc_ok=:
13315break
13316fi
13317rm -f conftest.err conftest.i conftest.$ac_ext
13318
13319done
13320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13321rm -f conftest.i conftest.err conftest.$ac_ext
13322if $ac_preproc_ok; then :
13323
13324else
13325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13327as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13328See \`config.log' for more details" "$LINENO" 5; }
13329fi
13330
13331ac_ext=c
13332ac_cpp='$CPP $CPPFLAGS'
13333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13335ac_compiler_gnu=$ac_cv_c_compiler_gnu
13336
13337else
13338 _lt_caught_CXX_error=yes
13339fi
13340
13341ac_ext=cpp
13342ac_cpp='$CXXCPP $CPPFLAGS'
13343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13346
13347archive_cmds_need_lc_CXX=no
13348allow_undefined_flag_CXX=
13349always_export_symbols_CXX=no
13350archive_expsym_cmds_CXX=
13351compiler_needs_object_CXX=no
13352export_dynamic_flag_spec_CXX=
13353hardcode_direct_CXX=no
13354hardcode_direct_absolute_CXX=no
13355hardcode_libdir_flag_spec_CXX=
13356hardcode_libdir_separator_CXX=
13357hardcode_minus_L_CXX=no
13358hardcode_shlibpath_var_CXX=unsupported
13359hardcode_automatic_CXX=no
13360inherit_rpath_CXX=no
13361module_cmds_CXX=
13362module_expsym_cmds_CXX=
13363link_all_deplibs_CXX=unknown
13364old_archive_cmds_CXX=$old_archive_cmds
13365reload_flag_CXX=$reload_flag
13366reload_cmds_CXX=$reload_cmds
13367no_undefined_flag_CXX=
13368whole_archive_flag_spec_CXX=
13369enable_shared_with_static_runtimes_CXX=no
13370
13371# Source file extension for C++ test sources.
13372ac_ext=cpp
13373
13374# Object file extension for compiled C++ test sources.
13375objext=o
13376objext_CXX=$objext
13377
13378# No sense in running all these tests if we already determined that
13379# the CXX compiler isn't working. Some variables (like enable_shared)
13380# are currently assumed to apply to all compilers on this platform,
13381# and will be corrupted by setting them based on a non-working compiler.
13382if test yes != "$_lt_caught_CXX_error"; then
13383 # Code to be used in simple compile tests
13384 lt_simple_compile_test_code="int some_variable = 0;"
13385
13386 # Code to be used in simple link tests
13387 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13388
13389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13390
13391
13392
13393
13394
13395
13396# If no C compiler was specified, use CC.
13397LTCC=${LTCC-"$CC"}
13398
13399# If no C compiler flags were specified, use CFLAGS.
13400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13401
13402# Allow CC to be a program name with arguments.
13403compiler=$CC
13404
13405
13406 # save warnings/boilerplate of simple test code
13407 ac_outfile=conftest.$ac_objext
13408echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13409eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410_lt_compiler_boilerplate=`cat conftest.err`
13411$RM -r conftest*
13412
13413 ac_outfile=conftest.$ac_objext
13414echo "$lt_simple_link_test_code" >conftest.$ac_ext
13415eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416_lt_linker_boilerplate=`cat conftest.err`
13417$RM -r conftest*
13418
13419
13420 # Allow CC to be a program name with arguments.
13421 lt_save_CC=$CC
13422 lt_save_CFLAGS=$CFLAGS
13423 lt_save_LD=$LD
13424 lt_save_GCC=$GCC
13425 GCC=$GXX
13426 lt_save_with_gnu_ld=$with_gnu_ld
13427 lt_save_path_LD=$lt_cv_path_LD
13428 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13429 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13430 else
13431 $as_unset lt_cv_prog_gnu_ld
13432 fi
13433 if test -n "${lt_cv_path_LDCXX+set}"; then
13434 lt_cv_path_LD=$lt_cv_path_LDCXX
13435 else
13436 $as_unset lt_cv_path_LD
13437 fi
13438 test -z "${LDCXX+set}" || LD=$LDCXX
13439 CC=${CXX-"c++"}
13440 CFLAGS=$CXXFLAGS
13441 compiler=$CC
13442 compiler_CXX=$CC
13443 func_cc_basename $compiler
13444cc_basename=$func_cc_basename_result
13445
13446
13447 if test -n "$compiler"; then
13448 # We don't want -fno-exception when compiling C++ code, so set the
13449 # no_builtin_flag separately
13450 if test yes = "$GXX"; then
13451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13452 else
13453 lt_prog_compiler_no_builtin_flag_CXX=
13454 fi
13455
13456 if test yes = "$GXX"; then
13457 # Set up default GNU C++ configuration
13458
13459
13460
13461# Check whether --with-gnu-ld was given.
13462if test "${with_gnu_ld+set}" = set; then :
13463 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13464else
13465 with_gnu_ld=no
13466fi
13467
13468ac_prog=ld
13469if test yes = "$GCC"; then
13470 # Check if gcc -print-prog-name=ld gives a path.
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13472$as_echo_n "checking for ld used by $CC... " >&6; }
13473 case $host in
13474 *-*-mingw*)
13475 # gcc leaves a trailing carriage return, which upsets mingw
13476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13477 *)
13478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13479 esac
13480 case $ac_prog in
13481 # Accept absolute paths.
13482 [\\/]* | ?:[\\/]*)
13483 re_direlt='/[^/][^/]*/\.\./'
13484 # Canonicalize the pathname of ld
13485 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13486 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13487 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13488 done
13489 test -z "$LD" && LD=$ac_prog
13490 ;;
13491 "")
13492 # If it fails, then pretend we aren't using GCC.
13493 ac_prog=ld
13494 ;;
13495 *)
13496 # If it is relative, then search for the first ld in PATH.
13497 with_gnu_ld=unknown
13498 ;;
13499 esac
13500elif test yes = "$with_gnu_ld"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13502$as_echo_n "checking for GNU ld... " >&6; }
13503else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13505$as_echo_n "checking for non-GNU ld... " >&6; }
13506fi
13507if ${lt_cv_path_LD+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509else
13510 if test -z "$LD"; then
13511 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13512 for ac_dir in $PATH; do
13513 IFS=$lt_save_ifs
13514 test -z "$ac_dir" && ac_dir=.
13515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13516 lt_cv_path_LD=$ac_dir/$ac_prog
13517 # Check to see if the program is GNU ld. I'd rather use --version,
13518 # but apparently some variants of GNU ld only accept -v.
13519 # Break only if it was the GNU/non-GNU ld that we prefer.
13520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13521 *GNU* | *'with BFD'*)
13522 test no != "$with_gnu_ld" && break
13523 ;;
13524 *)
13525 test yes != "$with_gnu_ld" && break
13526 ;;
13527 esac
13528 fi
13529 done
13530 IFS=$lt_save_ifs
13531else
13532 lt_cv_path_LD=$LD # Let the user override the test with a path.
13533fi
13534fi
13535
13536LD=$lt_cv_path_LD
13537if test -n "$LD"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13539$as_echo "$LD" >&6; }
13540else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542$as_echo "no" >&6; }
13543fi
13544test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13546$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13547if ${lt_cv_prog_gnu_ld+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549else
13550 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13551case `$LD -v 2>&1 </dev/null` in
13552*GNU* | *'with BFD'*)
13553 lt_cv_prog_gnu_ld=yes
13554 ;;
13555*)
13556 lt_cv_prog_gnu_ld=no
13557 ;;
13558esac
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13561$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13562with_gnu_ld=$lt_cv_prog_gnu_ld
13563
13564
13565
13566
13567
13568
13569
13570 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13571 # archiving commands below assume that GNU ld is being used.
13572 if test yes = "$with_gnu_ld"; then
13573 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13574 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'
13575
13576 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13577 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13578
13579 # If archive_cmds runs LD, not CC, wlarc should be empty
13580 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13581 # investigate it a little bit more. (MM)
13582 wlarc='$wl'
13583
13584 # ancient GNU ld didn't support --whole-archive et. al.
13585 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13586 $GREP 'no-whole-archive' > /dev/null; then
13587 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13588 else
13589 whole_archive_flag_spec_CXX=
13590 fi
13591 else
13592 with_gnu_ld=no
13593 wlarc=
13594
13595 # A generic and very simple default shared library creation
13596 # command for GNU C++ for the case where it uses the native
13597 # linker, instead of GNU ld. If possible, this setting should
13598 # overridden to take advantage of the native linker features on
13599 # the platform it is being used on.
13600 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13601 fi
13602
13603 # Commands to make compiler produce verbose output that lists
13604 # what "hidden" libraries, object files and flags are used when
13605 # linking a shared library.
13606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13607
13608 else
13609 GXX=no
13610 with_gnu_ld=no
13611 wlarc=
13612 fi
13613
13614 # PORTME: fill in a description of your system's C++ link characteristics
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13616$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13617 ld_shlibs_CXX=yes
13618 case $host_os in
13619 aix3*)
13620 # FIXME: insert proper C++ library support
13621 ld_shlibs_CXX=no
13622 ;;
13623 aix[4-9]*)
13624 if test ia64 = "$host_cpu"; then
13625 # On IA64, the linker does run time linking by default, so we don't
13626 # have to do anything special.
13627 aix_use_runtimelinking=no
13628 exp_sym_flag='-Bexport'
13629 no_entry_flag=
13630 else
13631 aix_use_runtimelinking=no
13632
13633 # Test if we are trying to use run time linking or normal
13634 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13635 # have runtime linking enabled, and use it for executables.
13636 # For shared libraries, we enable/disable runtime linking
13637 # depending on the kind of the shared library created -
13638 # when "with_aix_soname,aix_use_runtimelinking" is:
13639 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13640 # "aix,yes" lib.so shared, rtl:yes, for executables
13641 # lib.a static archive
13642 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13643 # lib.a(lib.so.V) shared, rtl:no, for executables
13644 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13645 # lib.a(lib.so.V) shared, rtl:no
13646 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13647 # lib.a static archive
13648 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13649 for ld_flag in $LDFLAGS; do
13650 case $ld_flag in
13651 *-brtl*)
13652 aix_use_runtimelinking=yes
13653 break
13654 ;;
13655 esac
13656 done
13657 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13658 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13659 # so we don't have lib.a shared libs to link our executables.
13660 # We have to force runtime linking in this case.
13661 aix_use_runtimelinking=yes
13662 LDFLAGS="$LDFLAGS -Wl,-brtl"
13663 fi
13664 ;;
13665 esac
13666
13667 exp_sym_flag='-bexport'
13668 no_entry_flag='-bnoentry'
13669 fi
13670
13671 # When large executables or shared objects are built, AIX ld can
13672 # have problems creating the table of contents. If linking a library
13673 # or program results in "error TOC overflow" add -mminimal-toc to
13674 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13675 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13676
13677 archive_cmds_CXX=''
13678 hardcode_direct_CXX=yes
13679 hardcode_direct_absolute_CXX=yes
13680 hardcode_libdir_separator_CXX=':'
13681 link_all_deplibs_CXX=yes
13682 file_list_spec_CXX='$wl-f,'
13683 case $with_aix_soname,$aix_use_runtimelinking in
13684 aix,*) ;; # no import file
13685 svr4,* | *,yes) # use import file
13686 # The Import File defines what to hardcode.
13687 hardcode_direct_CXX=no
13688 hardcode_direct_absolute_CXX=no
13689 ;;
13690 esac
13691
13692 if test yes = "$GXX"; then
13693 case $host_os in aix4.[012]|aix4.[012].*)
13694 # We only want to do this on AIX 4.2 and lower, the check
13695 # below for broken collect2 doesn't work under 4.3+
13696 collect2name=`$CC -print-prog-name=collect2`
13697 if test -f "$collect2name" &&
13698 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13699 then
13700 # We have reworked collect2
13701 :
13702 else
13703 # We have old collect2
13704 hardcode_direct_CXX=unsupported
13705 # It fails to find uninstalled libraries when the uninstalled
13706 # path is not listed in the libpath. Setting hardcode_minus_L
13707 # to unsupported forces relinking
13708 hardcode_minus_L_CXX=yes
13709 hardcode_libdir_flag_spec_CXX='-L$libdir'
13710 hardcode_libdir_separator_CXX=
13711 fi
13712 esac
13713 shared_flag='-shared'
13714 if test yes = "$aix_use_runtimelinking"; then
13715 shared_flag=$shared_flag' $wl-G'
13716 fi
13717 # Need to ensure runtime linking is disabled for the traditional
13718 # shared library, or the linker may eventually find shared libraries
13719 # /with/ Import File - we do not want to mix them.
13720 shared_flag_aix='-shared'
13721 shared_flag_svr4='-shared $wl-G'
13722 else
13723 # not using gcc
13724 if test ia64 = "$host_cpu"; then
13725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13726 # chokes on -Wl,-G. The following line is correct:
13727 shared_flag='-G'
13728 else
13729 if test yes = "$aix_use_runtimelinking"; then
13730 shared_flag='$wl-G'
13731 else
13732 shared_flag='$wl-bM:SRE'
13733 fi
13734 shared_flag_aix='$wl-bM:SRE'
13735 shared_flag_svr4='$wl-G'
13736 fi
13737 fi
13738
13739 export_dynamic_flag_spec_CXX='$wl-bexpall'
13740 # It seems that -bexpall does not export symbols beginning with
13741 # underscore (_), so it is better to generate a list of symbols to
13742 # export.
13743 always_export_symbols_CXX=yes
13744 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13745 # Warning - without using the other runtime loading flags (-brtl),
13746 # -berok will link without error, but may produce a broken library.
13747 # The "-G" linker flag allows undefined symbols.
13748 no_undefined_flag_CXX='-bernotok'
13749 # Determine the default libpath from the value encoded in an empty
13750 # executable.
13751 if test set = "${lt_cv_aix_libpath+set}"; then
13752 aix_libpath=$lt_cv_aix_libpath
13753else
13754 if ${lt_cv_aix_libpath__CXX+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758/* end confdefs.h. */
13759
13760int
13761main ()
13762{
13763
13764 ;
13765 return 0;
13766}
13767_ACEOF
13768if ac_fn_cxx_try_link "$LINENO"; then :
13769
13770 lt_aix_libpath_sed='
13771 /Import File Strings/,/^$/ {
13772 /^0/ {
13773 s/^0 *\([^ ]*\) *$/\1/
13774 p
13775 }
13776 }'
13777 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13778 # Check for a 64-bit object if we didn't find anything.
13779 if test -z "$lt_cv_aix_libpath__CXX"; then
13780 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13781 fi
13782fi
13783rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 if test -z "$lt_cv_aix_libpath__CXX"; then
13786 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13787 fi
13788
13789fi
13790
13791 aix_libpath=$lt_cv_aix_libpath__CXX
13792fi
13793
13794 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13795
13796 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13797 else
13798 if test ia64 = "$host_cpu"; then
13799 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13800 allow_undefined_flag_CXX="-z nodefs"
13801 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"
13802 else
13803 # Determine the default libpath from the value encoded in an
13804 # empty executable.
13805 if test set = "${lt_cv_aix_libpath+set}"; then
13806 aix_libpath=$lt_cv_aix_libpath
13807else
13808 if ${lt_cv_aix_libpath__CXX+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h. */
13813
13814int
13815main ()
13816{
13817
13818 ;
13819 return 0;
13820}
13821_ACEOF
13822if ac_fn_cxx_try_link "$LINENO"; then :
13823
13824 lt_aix_libpath_sed='
13825 /Import File Strings/,/^$/ {
13826 /^0/ {
13827 s/^0 *\([^ ]*\) *$/\1/
13828 p
13829 }
13830 }'
13831 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13832 # Check for a 64-bit object if we didn't find anything.
13833 if test -z "$lt_cv_aix_libpath__CXX"; then
13834 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13835 fi
13836fi
13837rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 if test -z "$lt_cv_aix_libpath__CXX"; then
13840 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13841 fi
13842
13843fi
13844
13845 aix_libpath=$lt_cv_aix_libpath__CXX
13846fi
13847
13848 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13849 # Warning - without using the other run time loading flags,
13850 # -berok will link without error, but may produce a broken library.
13851 no_undefined_flag_CXX=' $wl-bernotok'
13852 allow_undefined_flag_CXX=' $wl-berok'
13853 if test yes = "$with_gnu_ld"; then
13854 # We only use this code for GNU lds that support --whole-archive.
13855 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13856 else
13857 # Exported symbols can be pulled into shared objects from archives
13858 whole_archive_flag_spec_CXX='$convenience'
13859 fi
13860 archive_cmds_need_lc_CXX=yes
13861 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13862 # -brtl affects multiple linker settings, -berok does not and is overridden later
13863 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13864 if test svr4 != "$with_aix_soname"; then
13865 # This is similar to how AIX traditionally builds its shared
13866 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13867 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13868 fi
13869 if test aix != "$with_aix_soname"; then
13870 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13871 else
13872 # used by -dlpreopen to get the symbols
13873 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13874 fi
13875 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13876 fi
13877 fi
13878 ;;
13879
13880 beos*)
13881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13882 allow_undefined_flag_CXX=unsupported
13883 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13884 # support --undefined. This deserves some investigation. FIXME
13885 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13886 else
13887 ld_shlibs_CXX=no
13888 fi
13889 ;;
13890
13891 chorus*)
13892 case $cc_basename in
13893 *)
13894 # FIXME: insert proper C++ library support
13895 ld_shlibs_CXX=no
13896 ;;
13897 esac
13898 ;;
13899
13900 cygwin* | mingw* | pw32* | cegcc*)
13901 case $GXX,$cc_basename in
13902 ,cl* | no,cl*)
13903 # Native MSVC
13904 # hardcode_libdir_flag_spec is actually meaningless, as there is
13905 # no search path for DLLs.
13906 hardcode_libdir_flag_spec_CXX=' '
13907 allow_undefined_flag_CXX=unsupported
13908 always_export_symbols_CXX=yes
13909 file_list_spec_CXX='@'
13910 # Tell ltmain to make .lib files, not .a files.
13911 libext=lib
13912 # Tell ltmain to make .dll files, not .so files.
13913 shrext_cmds=.dll
13914 # FIXME: Setting linknames here is a bad hack.
13915 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13916 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13917 cp "$export_symbols" "$output_objdir/$soname.def";
13918 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13919 else
13920 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13921 fi~
13922 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13923 linknames='
13924 # The linker will not automatically build a static lib if we build a DLL.
13925 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13926 enable_shared_with_static_runtimes_CXX=yes
13927 # Don't use ranlib
13928 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13929 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13930 lt_tool_outputfile="@TOOL_OUTPUT@"~
13931 case $lt_outputfile in
13932 *.exe|*.EXE) ;;
13933 *)
13934 lt_outputfile=$lt_outputfile.exe
13935 lt_tool_outputfile=$lt_tool_outputfile.exe
13936 ;;
13937 esac~
13938 func_to_tool_file "$lt_outputfile"~
13939 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13940 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13941 $RM "$lt_outputfile.manifest";
13942 fi'
13943 ;;
13944 *)
13945 # g++
13946 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13947 # as there is no search path for DLLs.
13948 hardcode_libdir_flag_spec_CXX='-L$libdir'
13949 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13950 allow_undefined_flag_CXX=unsupported
13951 always_export_symbols_CXX=no
13952 enable_shared_with_static_runtimes_CXX=yes
13953
13954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13955 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'
13956 # If the export-symbols file already is a .def file, use it as
13957 # is; otherwise, prepend EXPORTS...
13958 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13959 cp $export_symbols $output_objdir/$soname.def;
13960 else
13961 echo EXPORTS > $output_objdir/$soname.def;
13962 cat $export_symbols >> $output_objdir/$soname.def;
13963 fi~
13964 $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'
13965 else
13966 ld_shlibs_CXX=no
13967 fi
13968 ;;
13969 esac
13970 ;;
13971 darwin* | rhapsody*)
13972
13973
13974 archive_cmds_need_lc_CXX=no
13975 hardcode_direct_CXX=no
13976 hardcode_automatic_CXX=yes
13977 hardcode_shlibpath_var_CXX=unsupported
13978 if test yes = "$lt_cv_ld_force_load"; then
13979 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\"`'
13980
13981 else
13982 whole_archive_flag_spec_CXX=''
13983 fi
13984 link_all_deplibs_CXX=yes
13985 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13986 case $cc_basename in
13987 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13988 *) _lt_dar_can_shared=$GCC ;;
13989 esac
13990 if test yes = "$_lt_dar_can_shared"; then
13991 output_verbose_link_cmd=func_echo_all
13992 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"
13993 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13994 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"
13995 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"
13996 if test yes != "$lt_cv_apple_cc_single_mod"; then
13997 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"
13998 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"
13999 fi
14000
14001 else
14002 ld_shlibs_CXX=no
14003 fi
14004
14005 ;;
14006
14007 os2*)
14008 hardcode_libdir_flag_spec_CXX='-L$libdir'
14009 hardcode_minus_L_CXX=yes
14010 allow_undefined_flag_CXX=unsupported
14011 shrext_cmds=.dll
14012 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14013 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14014 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14015 $ECHO EXPORTS >> $output_objdir/$libname.def~
14016 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14018 emximp -o $lib $output_objdir/$libname.def'
14019 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14022 $ECHO EXPORTS >> $output_objdir/$libname.def~
14023 prefix_cmds="$SED"~
14024 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14025 prefix_cmds="$prefix_cmds -e 1d";
14026 fi~
14027 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14028 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14030 emximp -o $lib $output_objdir/$libname.def'
14031 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14032 enable_shared_with_static_runtimes_CXX=yes
14033 ;;
14034
14035 dgux*)
14036 case $cc_basename in
14037 ec++*)
14038 # FIXME: insert proper C++ library support
14039 ld_shlibs_CXX=no
14040 ;;
14041 ghcx*)
14042 # Green Hills C++ Compiler
14043 # FIXME: insert proper C++ library support
14044 ld_shlibs_CXX=no
14045 ;;
14046 *)
14047 # FIXME: insert proper C++ library support
14048 ld_shlibs_CXX=no
14049 ;;
14050 esac
14051 ;;
14052
14053 freebsd2.*)
14054 # C++ shared libraries reported to be fairly broken before
14055 # switch to ELF
14056 ld_shlibs_CXX=no
14057 ;;
14058
14059 freebsd-elf*)
14060 archive_cmds_need_lc_CXX=no
14061 ;;
14062
14063 freebsd* | dragonfly*)
14064 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14065 # conventions
14066 ld_shlibs_CXX=yes
14067 ;;
14068
14069 haiku*)
14070 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14071 link_all_deplibs_CXX=yes
14072 ;;
14073
14074 hpux9*)
14075 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14076 hardcode_libdir_separator_CXX=:
14077 export_dynamic_flag_spec_CXX='$wl-E'
14078 hardcode_direct_CXX=yes
14079 hardcode_minus_L_CXX=yes # Not in the search PATH,
14080 # but as the default
14081 # location of the library.
14082
14083 case $cc_basename in
14084 CC*)
14085 # FIXME: insert proper C++ library support
14086 ld_shlibs_CXX=no
14087 ;;
14088 aCC*)
14089 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14090 # Commands to make compiler produce verbose output that lists
14091 # what "hidden" libraries, object files and flags are used when
14092 # linking a shared library.
14093 #
14094 # There doesn't appear to be a way to prevent this compiler from
14095 # explicitly linking system object files so we need to strip them
14096 # from the output so that they don't get included in the library
14097 # dependencies.
14098 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"'
14099 ;;
14100 *)
14101 if test yes = "$GXX"; then
14102 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14103 else
14104 # FIXME: insert proper C++ library support
14105 ld_shlibs_CXX=no
14106 fi
14107 ;;
14108 esac
14109 ;;
14110
14111 hpux10*|hpux11*)
14112 if test no = "$with_gnu_ld"; then
14113 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14114 hardcode_libdir_separator_CXX=:
14115
14116 case $host_cpu in
14117 hppa*64*|ia64*)
14118 ;;
14119 *)
14120 export_dynamic_flag_spec_CXX='$wl-E'
14121 ;;
14122 esac
14123 fi
14124 case $host_cpu in
14125 hppa*64*|ia64*)
14126 hardcode_direct_CXX=no
14127 hardcode_shlibpath_var_CXX=no
14128 ;;
14129 *)
14130 hardcode_direct_CXX=yes
14131 hardcode_direct_absolute_CXX=yes
14132 hardcode_minus_L_CXX=yes # Not in the search PATH,
14133 # but as the default
14134 # location of the library.
14135 ;;
14136 esac
14137
14138 case $cc_basename in
14139 CC*)
14140 # FIXME: insert proper C++ library support
14141 ld_shlibs_CXX=no
14142 ;;
14143 aCC*)
14144 case $host_cpu in
14145 hppa*64*)
14146 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14147 ;;
14148 ia64*)
14149 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14150 ;;
14151 *)
14152 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14153 ;;
14154 esac
14155 # Commands to make compiler produce verbose output that lists
14156 # what "hidden" libraries, object files and flags are used when
14157 # linking a shared library.
14158 #
14159 # There doesn't appear to be a way to prevent this compiler from
14160 # explicitly linking system object files so we need to strip them
14161 # from the output so that they don't get included in the library
14162 # dependencies.
14163 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"'
14164 ;;
14165 *)
14166 if test yes = "$GXX"; then
14167 if test no = "$with_gnu_ld"; then
14168 case $host_cpu in
14169 hppa*64*)
14170 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14171 ;;
14172 ia64*)
14173 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174 ;;
14175 *)
14176 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'
14177 ;;
14178 esac
14179 fi
14180 else
14181 # FIXME: insert proper C++ library support
14182 ld_shlibs_CXX=no
14183 fi
14184 ;;
14185 esac
14186 ;;
14187
14188 interix[3-9]*)
14189 hardcode_direct_CXX=no
14190 hardcode_shlibpath_var_CXX=no
14191 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14192 export_dynamic_flag_spec_CXX='$wl-E'
14193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14194 # Instead, shared libraries are loaded at an image base (0x10000000 by
14195 # default) and relocated if they conflict, which is a slow very memory
14196 # consuming and fragmenting process. To avoid this, we pick a random,
14197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14198 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14199 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'
14200 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'
14201 ;;
14202 irix5* | irix6*)
14203 case $cc_basename in
14204 CC*)
14205 # SGI C++
14206 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'
14207
14208 # Archives containing C++ object files must be created using
14209 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14210 # necessary to make sure instantiated templates are included
14211 # in the archive.
14212 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14213 ;;
14214 *)
14215 if test yes = "$GXX"; then
14216 if test no = "$with_gnu_ld"; then
14217 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'
14218 else
14219 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'
14220 fi
14221 fi
14222 link_all_deplibs_CXX=yes
14223 ;;
14224 esac
14225 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14226 hardcode_libdir_separator_CXX=:
14227 inherit_rpath_CXX=yes
14228 ;;
14229
14230 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14231 case $cc_basename in
14232 KCC*)
14233 # Kuck and Associates, Inc. (KAI) C++ Compiler
14234
14235 # KCC will only create a shared library if the output file
14236 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14237 # to its proper name (with version) after linking.
14238 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'
14239 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'
14240 # Commands to make compiler produce verbose output that lists
14241 # what "hidden" libraries, object files and flags are used when
14242 # linking a shared library.
14243 #
14244 # There doesn't appear to be a way to prevent this compiler from
14245 # explicitly linking system object files so we need to strip them
14246 # from the output so that they don't get included in the library
14247 # dependencies.
14248 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"'
14249
14250 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14251 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14252
14253 # Archives containing C++ object files must be created using
14254 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14255 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14256 ;;
14257 icpc* | ecpc* )
14258 # Intel C++
14259 with_gnu_ld=yes
14260 # version 8.0 and above of icpc choke on multiply defined symbols
14261 # if we add $predep_objects and $postdep_objects, however 7.1 and
14262 # earlier do not add the objects themselves.
14263 case `$CC -V 2>&1` in
14264 *"Version 7."*)
14265 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14266 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'
14267 ;;
14268 *) # Version 8.0 or newer
14269 tmp_idyn=
14270 case $host_cpu in
14271 ia64*) tmp_idyn=' -i_dynamic';;
14272 esac
14273 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14274 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'
14275 ;;
14276 esac
14277 archive_cmds_need_lc_CXX=no
14278 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14279 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14280 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14281 ;;
14282 pgCC* | pgcpp*)
14283 # Portland Group C++ compiler
14284 case `$CC -V` in
14285 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14286 prelink_cmds_CXX='tpldir=Template.dir~
14287 rm -rf $tpldir~
14288 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14289 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14290 old_archive_cmds_CXX='tpldir=Template.dir~
14291 rm -rf $tpldir~
14292 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14293 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14294 $RANLIB $oldlib'
14295 archive_cmds_CXX='tpldir=Template.dir~
14296 rm -rf $tpldir~
14297 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14298 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14299 archive_expsym_cmds_CXX='tpldir=Template.dir~
14300 rm -rf $tpldir~
14301 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14302 $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'
14303 ;;
14304 *) # Version 6 and above use weak symbols
14305 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14306 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'
14307 ;;
14308 esac
14309
14310 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14311 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14312 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'
14313 ;;
14314 cxx*)
14315 # Compaq C++
14316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14317 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'
14318
14319 runpath_var=LD_RUN_PATH
14320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14321 hardcode_libdir_separator_CXX=:
14322
14323 # Commands to make compiler produce verbose output that lists
14324 # what "hidden" libraries, object files and flags are used when
14325 # linking a shared library.
14326 #
14327 # There doesn't appear to be a way to prevent this compiler from
14328 # explicitly linking system object files so we need to strip them
14329 # from the output so that they don't get included in the library
14330 # dependencies.
14331 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'
14332 ;;
14333 xl* | mpixl* | bgxl*)
14334 # IBM XL 8.0 on PPC, with GNU ld
14335 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14336 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14337 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14338 if test yes = "$supports_anon_versioning"; then
14339 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14340 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14341 echo "local: *; };" >> $output_objdir/$libname.ver~
14342 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14343 fi
14344 ;;
14345 *)
14346 case `$CC -V 2>&1 | sed 5q` in
14347 *Sun\ C*)
14348 # Sun C++ 5.9
14349 no_undefined_flag_CXX=' -zdefs'
14350 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14351 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'
14352 hardcode_libdir_flag_spec_CXX='-R$libdir'
14353 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'
14354 compiler_needs_object_CXX=yes
14355
14356 # Not sure whether something based on
14357 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14358 # would be better.
14359 output_verbose_link_cmd='func_echo_all'
14360
14361 # Archives containing C++ object files must be created using
14362 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14363 # necessary to make sure instantiated templates are included
14364 # in the archive.
14365 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14366 ;;
14367 esac
14368 ;;
14369 esac
14370 ;;
14371
14372 lynxos*)
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14375 ;;
14376
14377 m88k*)
14378 # FIXME: insert proper C++ library support
14379 ld_shlibs_CXX=no
14380 ;;
14381
14382 mvs*)
14383 case $cc_basename in
14384 cxx*)
14385 # FIXME: insert proper C++ library support
14386 ld_shlibs_CXX=no
14387 ;;
14388 *)
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14391 ;;
14392 esac
14393 ;;
14394
14395 netbsd*)
14396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14397 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14398 wlarc=
14399 hardcode_libdir_flag_spec_CXX='-R$libdir'
14400 hardcode_direct_CXX=yes
14401 hardcode_shlibpath_var_CXX=no
14402 fi
14403 # Workaround some broken pre-1.5 toolchains
14404 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14405 ;;
14406
14407 *nto* | *qnx*)
14408 ld_shlibs_CXX=yes
14409 ;;
14410
14411 openbsd* | bitrig*)
14412 if test -f /usr/libexec/ld.so; then
14413 hardcode_direct_CXX=yes
14414 hardcode_shlibpath_var_CXX=no
14415 hardcode_direct_absolute_CXX=yes
14416 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14417 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14419 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14420 export_dynamic_flag_spec_CXX='$wl-E'
14421 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14422 fi
14423 output_verbose_link_cmd=func_echo_all
14424 else
14425 ld_shlibs_CXX=no
14426 fi
14427 ;;
14428
14429 osf3* | osf4* | osf5*)
14430 case $cc_basename in
14431 KCC*)
14432 # Kuck and Associates, Inc. (KAI) C++ Compiler
14433
14434 # KCC will only create a shared library if the output file
14435 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14436 # to its proper name (with version) after linking.
14437 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'
14438
14439 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14440 hardcode_libdir_separator_CXX=:
14441
14442 # Archives containing C++ object files must be created using
14443 # the KAI C++ compiler.
14444 case $host in
14445 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14446 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14447 esac
14448 ;;
14449 RCC*)
14450 # Rational C++ 2.4.1
14451 # FIXME: insert proper C++ library support
14452 ld_shlibs_CXX=no
14453 ;;
14454 cxx*)
14455 case $host in
14456 osf3*)
14457 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14458 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'
14459 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14460 ;;
14461 *)
14462 allow_undefined_flag_CXX=' -expect_unresolved \*'
14463 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'
14464 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14465 echo "-hidden">> $lib.exp~
14466 $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~
14467 $RM $lib.exp'
14468 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14469 ;;
14470 esac
14471
14472 hardcode_libdir_separator_CXX=:
14473
14474 # Commands to make compiler produce verbose output that lists
14475 # what "hidden" libraries, object files and flags are used when
14476 # linking a shared library.
14477 #
14478 # There doesn't appear to be a way to prevent this compiler from
14479 # explicitly linking system object files so we need to strip them
14480 # from the output so that they don't get included in the library
14481 # dependencies.
14482 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"'
14483 ;;
14484 *)
14485 if test yes,no = "$GXX,$with_gnu_ld"; then
14486 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14487 case $host in
14488 osf3*)
14489 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'
14490 ;;
14491 *)
14492 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'
14493 ;;
14494 esac
14495
14496 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14497 hardcode_libdir_separator_CXX=:
14498
14499 # Commands to make compiler produce verbose output that lists
14500 # what "hidden" libraries, object files and flags are used when
14501 # linking a shared library.
14502 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14503
14504 else
14505 # FIXME: insert proper C++ library support
14506 ld_shlibs_CXX=no
14507 fi
14508 ;;
14509 esac
14510 ;;
14511
14512 psos*)
14513 # FIXME: insert proper C++ library support
14514 ld_shlibs_CXX=no
14515 ;;
14516
14517 sunos4*)
14518 case $cc_basename in
14519 CC*)
14520 # Sun C++ 4.x
14521 # FIXME: insert proper C++ library support
14522 ld_shlibs_CXX=no
14523 ;;
14524 lcc*)
14525 # Lucid
14526 # FIXME: insert proper C++ library support
14527 ld_shlibs_CXX=no
14528 ;;
14529 *)
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 ;;
14533 esac
14534 ;;
14535
14536 solaris*)
14537 case $cc_basename in
14538 CC* | sunCC*)
14539 # Sun C++ 4.2, 5.x and Centerline C++
14540 archive_cmds_need_lc_CXX=yes
14541 no_undefined_flag_CXX=' -zdefs'
14542 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14543 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14544 $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'
14545
14546 hardcode_libdir_flag_spec_CXX='-R$libdir'
14547 hardcode_shlibpath_var_CXX=no
14548 case $host_os in
14549 solaris2.[0-5] | solaris2.[0-5].*) ;;
14550 *)
14551 # The compiler driver will combine and reorder linker options,
14552 # but understands '-z linker_flag'.
14553 # Supported since Solaris 2.6 (maybe 2.5.1?)
14554 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14555 ;;
14556 esac
14557 link_all_deplibs_CXX=yes
14558
14559 output_verbose_link_cmd='func_echo_all'
14560
14561 # Archives containing C++ object files must be created using
14562 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14563 # necessary to make sure instantiated templates are included
14564 # in the archive.
14565 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14566 ;;
14567 gcx*)
14568 # Green Hills C++ Compiler
14569 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14570
14571 # The C++ compiler must be used to create the archive.
14572 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14573 ;;
14574 *)
14575 # GNU C++ compiler with Solaris linker
14576 if test yes,no = "$GXX,$with_gnu_ld"; then
14577 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14578 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14579 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14580 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14581 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14582
14583 # Commands to make compiler produce verbose output that lists
14584 # what "hidden" libraries, object files and flags are used when
14585 # linking a shared library.
14586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14587 else
14588 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14589 # platform.
14590 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14592 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14593
14594 # Commands to make compiler produce verbose output that lists
14595 # what "hidden" libraries, object files and flags are used when
14596 # linking a shared library.
14597 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14598 fi
14599
14600 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14601 case $host_os in
14602 solaris2.[0-5] | solaris2.[0-5].*) ;;
14603 *)
14604 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14605 ;;
14606 esac
14607 fi
14608 ;;
14609 esac
14610 ;;
14611
14612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14613 no_undefined_flag_CXX='$wl-z,text'
14614 archive_cmds_need_lc_CXX=no
14615 hardcode_shlibpath_var_CXX=no
14616 runpath_var='LD_RUN_PATH'
14617
14618 case $cc_basename in
14619 CC*)
14620 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14621 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14622 ;;
14623 *)
14624 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 ;;
14627 esac
14628 ;;
14629
14630 sysv5* | sco3.2v5* | sco5v6*)
14631 # Note: We CANNOT use -z defs as we might desire, because we do not
14632 # link with -lc, and that would cause any symbols used from libc to
14633 # always be unresolved, which means just about no library would
14634 # ever link correctly. If we're not using GNU ld we use -z text
14635 # though, which does catch some bad symbols but isn't as heavy-handed
14636 # as -z defs.
14637 no_undefined_flag_CXX='$wl-z,text'
14638 allow_undefined_flag_CXX='$wl-z,nodefs'
14639 archive_cmds_need_lc_CXX=no
14640 hardcode_shlibpath_var_CXX=no
14641 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14642 hardcode_libdir_separator_CXX=':'
14643 link_all_deplibs_CXX=yes
14644 export_dynamic_flag_spec_CXX='$wl-Bexport'
14645 runpath_var='LD_RUN_PATH'
14646
14647 case $cc_basename in
14648 CC*)
14649 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14652 '"$old_archive_cmds_CXX"
14653 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14654 '"$reload_cmds_CXX"
14655 ;;
14656 *)
14657 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14658 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 ;;
14660 esac
14661 ;;
14662
14663 tandem*)
14664 case $cc_basename in
14665 NCC*)
14666 # NonStop-UX NCC 3.20
14667 # FIXME: insert proper C++ library support
14668 ld_shlibs_CXX=no
14669 ;;
14670 *)
14671 # FIXME: insert proper C++ library support
14672 ld_shlibs_CXX=no
14673 ;;
14674 esac
14675 ;;
14676
14677 vxworks*)
14678 # FIXME: insert proper C++ library support
14679 ld_shlibs_CXX=no
14680 ;;
14681
14682 *)
14683 # FIXME: insert proper C++ library support
14684 ld_shlibs_CXX=no
14685 ;;
14686 esac
14687
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14689$as_echo "$ld_shlibs_CXX" >&6; }
14690 test no = "$ld_shlibs_CXX" && can_build_shared=no
14691
14692 GCC_CXX=$GXX
14693 LD_CXX=$LD
14694
14695 ## CAVEAT EMPTOR:
14696 ## There is no encapsulation within the following macros, do not change
14697 ## the running order or otherwise move them around unless you know exactly
14698 ## what you are doing...
14699 # Dependencies to place before and after the object being linked:
14700predep_objects_CXX=
14701postdep_objects_CXX=
14702predeps_CXX=
14703postdeps_CXX=
14704compiler_lib_search_path_CXX=
14705
14706cat > conftest.$ac_ext <<_LT_EOF
14707class Foo
14708{
14709public:
14710 Foo (void) { a = 0; }
14711private:
14712 int a;
14713};
14714_LT_EOF
14715
14716
14717_lt_libdeps_save_CFLAGS=$CFLAGS
14718case "$CC $CFLAGS " in #(
14719*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14720*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14721*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14722esac
14723
14724if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14725 (eval $ac_compile) 2>&5
14726 ac_status=$?
14727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14728 test $ac_status = 0; }; then
14729 # Parse the compiler output and extract the necessary
14730 # objects, libraries and library flags.
14731
14732 # Sentinel used to keep track of whether or not we are before
14733 # the conftest object file.
14734 pre_test_object_deps_done=no
14735
14736 for p in `eval "$output_verbose_link_cmd"`; do
14737 case $prev$p in
14738
14739 -L* | -R* | -l*)
14740 # Some compilers place space between "-{L,R}" and the path.
14741 # Remove the space.
14742 if test x-L = "$p" ||
14743 test x-R = "$p"; then
14744 prev=$p
14745 continue
14746 fi
14747
14748 # Expand the sysroot to ease extracting the directories later.
14749 if test -z "$prev"; then
14750 case $p in
14751 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14752 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14753 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14754 esac
14755 fi
14756 case $p in
14757 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14758 esac
14759 if test no = "$pre_test_object_deps_done"; then
14760 case $prev in
14761 -L | -R)
14762 # Internal compiler library paths should come after those
14763 # provided the user. The postdeps already come after the
14764 # user supplied libs so there is no need to process them.
14765 if test -z "$compiler_lib_search_path_CXX"; then
14766 compiler_lib_search_path_CXX=$prev$p
14767 else
14768 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14769 fi
14770 ;;
14771 # The "-l" case would never come before the object being
14772 # linked, so don't bother handling this case.
14773 esac
14774 else
14775 if test -z "$postdeps_CXX"; then
14776 postdeps_CXX=$prev$p
14777 else
14778 postdeps_CXX="${postdeps_CXX} $prev$p"
14779 fi
14780 fi
14781 prev=
14782 ;;
14783
14784 *.lto.$objext) ;; # Ignore GCC LTO objects
14785 *.$objext)
14786 # This assumes that the test object file only shows up
14787 # once in the compiler output.
14788 if test "$p" = "conftest.$objext"; then
14789 pre_test_object_deps_done=yes
14790 continue
14791 fi
14792
14793 if test no = "$pre_test_object_deps_done"; then
14794 if test -z "$predep_objects_CXX"; then
14795 predep_objects_CXX=$p
14796 else
14797 predep_objects_CXX="$predep_objects_CXX $p"
14798 fi
14799 else
14800 if test -z "$postdep_objects_CXX"; then
14801 postdep_objects_CXX=$p
14802 else
14803 postdep_objects_CXX="$postdep_objects_CXX $p"
14804 fi
14805 fi
14806 ;;
14807
14808 *) ;; # Ignore the rest.
14809
14810 esac
14811 done
14812
14813 # Clean up.
14814 rm -f a.out a.exe
14815else
14816 echo "libtool.m4: error: problem compiling CXX test program"
14817fi
14818
14819$RM -f confest.$objext
14820CFLAGS=$_lt_libdeps_save_CFLAGS
14821
14822# PORTME: override above test on systems where it is broken
14823case $host_os in
14824interix[3-9]*)
14825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14826 # hack all around it, let's just trust "g++" to DTRT.
14827 predep_objects_CXX=
14828 postdep_objects_CXX=
14829 postdeps_CXX=
14830 ;;
14831esac
14832
14833
14834case " $postdeps_CXX " in
14835*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14836esac
14837 compiler_lib_search_dirs_CXX=
14838if test -n "${compiler_lib_search_path_CXX}"; then
14839 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14840fi
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872 lt_prog_compiler_wl_CXX=
14873lt_prog_compiler_pic_CXX=
14874lt_prog_compiler_static_CXX=
14875
14876
14877 # C++ specific cases for pic, static, wl, etc.
14878 if test yes = "$GXX"; then
14879 lt_prog_compiler_wl_CXX='-Wl,'
14880 lt_prog_compiler_static_CXX='-static'
14881
14882 case $host_os in
14883 aix*)
14884 # All AIX code is PIC.
14885 if test ia64 = "$host_cpu"; then
14886 # AIX 5 now supports IA64 processor
14887 lt_prog_compiler_static_CXX='-Bstatic'
14888 fi
14889 lt_prog_compiler_pic_CXX='-fPIC'
14890 ;;
14891
14892 amigaos*)
14893 case $host_cpu in
14894 powerpc)
14895 # see comment about AmigaOS4 .so support
14896 lt_prog_compiler_pic_CXX='-fPIC'
14897 ;;
14898 m68k)
14899 # FIXME: we need at least 68020 code to build shared libraries, but
14900 # adding the '-m68020' flag to GCC prevents building anything better,
14901 # like '-m68040'.
14902 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14903 ;;
14904 esac
14905 ;;
14906
14907 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14908 # PIC is the default for these OSes.
14909 ;;
14910 mingw* | cygwin* | os2* | pw32* | cegcc*)
14911 # This hack is so that the source file can tell whether it is being
14912 # built for inclusion in a dll (and should export symbols for example).
14913 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14914 # (--disable-auto-import) libraries
14915 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14916 case $host_os in
14917 os2*)
14918 lt_prog_compiler_static_CXX='$wl-static'
14919 ;;
14920 esac
14921 ;;
14922 darwin* | rhapsody*)
14923 # PIC is the default on this platform
14924 # Common symbols not allowed in MH_DYLIB files
14925 lt_prog_compiler_pic_CXX='-fno-common'
14926 ;;
14927 *djgpp*)
14928 # DJGPP does not support shared libraries at all
14929 lt_prog_compiler_pic_CXX=
14930 ;;
14931 haiku*)
14932 # PIC is the default for Haiku.
14933 # The "-static" flag exists, but is broken.
14934 lt_prog_compiler_static_CXX=
14935 ;;
14936 interix[3-9]*)
14937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14938 # Instead, we relocate shared libraries at runtime.
14939 ;;
14940 sysv4*MP*)
14941 if test -d /usr/nec; then
14942 lt_prog_compiler_pic_CXX=-Kconform_pic
14943 fi
14944 ;;
14945 hpux*)
14946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14948 # sets the default TLS model and affects inlining.
14949 case $host_cpu in
14950 hppa*64*)
14951 ;;
14952 *)
14953 lt_prog_compiler_pic_CXX='-fPIC'
14954 ;;
14955 esac
14956 ;;
14957 *qnx* | *nto*)
14958 # QNX uses GNU C++, but need to define -shared option too, otherwise
14959 # it will coredump.
14960 lt_prog_compiler_pic_CXX='-fPIC -shared'
14961 ;;
14962 *)
14963 lt_prog_compiler_pic_CXX='-fPIC'
14964 ;;
14965 esac
14966 else
14967 case $host_os in
14968 aix[4-9]*)
14969 # All AIX code is PIC.
14970 if test ia64 = "$host_cpu"; then
14971 # AIX 5 now supports IA64 processor
14972 lt_prog_compiler_static_CXX='-Bstatic'
14973 else
14974 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14975 fi
14976 ;;
14977 chorus*)
14978 case $cc_basename in
14979 cxch68*)
14980 # Green Hills C++ Compiler
14981 # _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"
14982 ;;
14983 esac
14984 ;;
14985 mingw* | cygwin* | os2* | pw32* | cegcc*)
14986 # This hack is so that the source file can tell whether it is being
14987 # built for inclusion in a dll (and should export symbols for example).
14988 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14989 ;;
14990 dgux*)
14991 case $cc_basename in
14992 ec++*)
14993 lt_prog_compiler_pic_CXX='-KPIC'
14994 ;;
14995 ghcx*)
14996 # Green Hills C++ Compiler
14997 lt_prog_compiler_pic_CXX='-pic'
14998 ;;
14999 *)
15000 ;;
15001 esac
15002 ;;
15003 freebsd* | dragonfly*)
15004 # FreeBSD uses GNU C++
15005 ;;
15006 hpux9* | hpux10* | hpux11*)
15007 case $cc_basename in
15008 CC*)
15009 lt_prog_compiler_wl_CXX='-Wl,'
15010 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15011 if test ia64 != "$host_cpu"; then
15012 lt_prog_compiler_pic_CXX='+Z'
15013 fi
15014 ;;
15015 aCC*)
15016 lt_prog_compiler_wl_CXX='-Wl,'
15017 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15018 case $host_cpu in
15019 hppa*64*|ia64*)
15020 # +Z the default
15021 ;;
15022 *)
15023 lt_prog_compiler_pic_CXX='+Z'
15024 ;;
15025 esac
15026 ;;
15027 *)
15028 ;;
15029 esac
15030 ;;
15031 interix*)
15032 # This is c89, which is MS Visual C++ (no shared libs)
15033 # Anyone wants to do a port?
15034 ;;
15035 irix5* | irix6* | nonstopux*)
15036 case $cc_basename in
15037 CC*)
15038 lt_prog_compiler_wl_CXX='-Wl,'
15039 lt_prog_compiler_static_CXX='-non_shared'
15040 # CC pic flag -KPIC is the default.
15041 ;;
15042 *)
15043 ;;
15044 esac
15045 ;;
15046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15047 case $cc_basename in
15048 KCC*)
15049 # KAI C++ Compiler
15050 lt_prog_compiler_wl_CXX='--backend -Wl,'
15051 lt_prog_compiler_pic_CXX='-fPIC'
15052 ;;
15053 ecpc* )
15054 # old Intel C++ for x86_64, which still supported -KPIC.
15055 lt_prog_compiler_wl_CXX='-Wl,'
15056 lt_prog_compiler_pic_CXX='-KPIC'
15057 lt_prog_compiler_static_CXX='-static'
15058 ;;
15059 icpc* )
15060 # Intel C++, used to be incompatible with GCC.
15061 # ICC 10 doesn't accept -KPIC any more.
15062 lt_prog_compiler_wl_CXX='-Wl,'
15063 lt_prog_compiler_pic_CXX='-fPIC'
15064 lt_prog_compiler_static_CXX='-static'
15065 ;;
15066 pgCC* | pgcpp*)
15067 # Portland Group C++ compiler
15068 lt_prog_compiler_wl_CXX='-Wl,'
15069 lt_prog_compiler_pic_CXX='-fpic'
15070 lt_prog_compiler_static_CXX='-Bstatic'
15071 ;;
15072 cxx*)
15073 # Compaq C++
15074 # Make sure the PIC flag is empty. It appears that all Alpha
15075 # Linux and Compaq Tru64 Unix objects are PIC.
15076 lt_prog_compiler_pic_CXX=
15077 lt_prog_compiler_static_CXX='-non_shared'
15078 ;;
15079 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15080 # IBM XL 8.0, 9.0 on PPC and BlueGene
15081 lt_prog_compiler_wl_CXX='-Wl,'
15082 lt_prog_compiler_pic_CXX='-qpic'
15083 lt_prog_compiler_static_CXX='-qstaticlink'
15084 ;;
15085 *)
15086 case `$CC -V 2>&1 | sed 5q` in
15087 *Sun\ C*)
15088 # Sun C++ 5.9
15089 lt_prog_compiler_pic_CXX='-KPIC'
15090 lt_prog_compiler_static_CXX='-Bstatic'
15091 lt_prog_compiler_wl_CXX='-Qoption ld '
15092 ;;
15093 esac
15094 ;;
15095 esac
15096 ;;
15097 lynxos*)
15098 ;;
15099 m88k*)
15100 ;;
15101 mvs*)
15102 case $cc_basename in
15103 cxx*)
15104 lt_prog_compiler_pic_CXX='-W c,exportall'
15105 ;;
15106 *)
15107 ;;
15108 esac
15109 ;;
15110 netbsd*)
15111 ;;
15112 *qnx* | *nto*)
15113 # QNX uses GNU C++, but need to define -shared option too, otherwise
15114 # it will coredump.
15115 lt_prog_compiler_pic_CXX='-fPIC -shared'
15116 ;;
15117 osf3* | osf4* | osf5*)
15118 case $cc_basename in
15119 KCC*)
15120 lt_prog_compiler_wl_CXX='--backend -Wl,'
15121 ;;
15122 RCC*)
15123 # Rational C++ 2.4.1
15124 lt_prog_compiler_pic_CXX='-pic'
15125 ;;
15126 cxx*)
15127 # Digital/Compaq C++
15128 lt_prog_compiler_wl_CXX='-Wl,'
15129 # Make sure the PIC flag is empty. It appears that all Alpha
15130 # Linux and Compaq Tru64 Unix objects are PIC.
15131 lt_prog_compiler_pic_CXX=
15132 lt_prog_compiler_static_CXX='-non_shared'
15133 ;;
15134 *)
15135 ;;
15136 esac
15137 ;;
15138 psos*)
15139 ;;
15140 solaris*)
15141 case $cc_basename in
15142 CC* | sunCC*)
15143 # Sun C++ 4.2, 5.x and Centerline C++
15144 lt_prog_compiler_pic_CXX='-KPIC'
15145 lt_prog_compiler_static_CXX='-Bstatic'
15146 lt_prog_compiler_wl_CXX='-Qoption ld '
15147 ;;
15148 gcx*)
15149 # Green Hills C++ Compiler
15150 lt_prog_compiler_pic_CXX='-PIC'
15151 ;;
15152 *)
15153 ;;
15154 esac
15155 ;;
15156 sunos4*)
15157 case $cc_basename in
15158 CC*)
15159 # Sun C++ 4.x
15160 lt_prog_compiler_pic_CXX='-pic'
15161 lt_prog_compiler_static_CXX='-Bstatic'
15162 ;;
15163 lcc*)
15164 # Lucid
15165 lt_prog_compiler_pic_CXX='-pic'
15166 ;;
15167 *)
15168 ;;
15169 esac
15170 ;;
15171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15172 case $cc_basename in
15173 CC*)
15174 lt_prog_compiler_wl_CXX='-Wl,'
15175 lt_prog_compiler_pic_CXX='-KPIC'
15176 lt_prog_compiler_static_CXX='-Bstatic'
15177 ;;
15178 esac
15179 ;;
15180 tandem*)
15181 case $cc_basename in
15182 NCC*)
15183 # NonStop-UX NCC 3.20
15184 lt_prog_compiler_pic_CXX='-KPIC'
15185 ;;
15186 *)
15187 ;;
15188 esac
15189 ;;
15190 vxworks*)
15191 ;;
15192 *)
15193 lt_prog_compiler_can_build_shared_CXX=no
15194 ;;
15195 esac
15196 fi
15197
15198case $host_os in
15199 # For platforms that do not support PIC, -DPIC is meaningless:
15200 *djgpp*)
15201 lt_prog_compiler_pic_CXX=
15202 ;;
15203 *)
15204 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15205 ;;
15206esac
15207
15208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15209$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15210if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15211 $as_echo_n "(cached) " >&6
15212else
15213 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15214fi
15215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15216$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15217lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15218
15219#
15220# Check to make sure the PIC flag actually works.
15221#
15222if test -n "$lt_prog_compiler_pic_CXX"; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15224$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15225if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15226 $as_echo_n "(cached) " >&6
15227else
15228 lt_cv_prog_compiler_pic_works_CXX=no
15229 ac_outfile=conftest.$ac_objext
15230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15231 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15232 # Insert the option either (1) after the last *FLAGS variable, or
15233 # (2) before a word containing "conftest.", or (3) at the end.
15234 # Note that $ac_compile itself does not contain backslashes and begins
15235 # with a dollar sign (not a hyphen), so the echo should work correctly.
15236 # The option is referenced via a variable to avoid confusing sed.
15237 lt_compile=`echo "$ac_compile" | $SED \
15238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15240 -e 's:$: $lt_compiler_flag:'`
15241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15242 (eval "$lt_compile" 2>conftest.err)
15243 ac_status=$?
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 if (exit $ac_status) && test -s "$ac_outfile"; then
15247 # The compiler can only warn and ignore the option if not recognized
15248 # So say no if there are warnings other than the usual output.
15249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15252 lt_cv_prog_compiler_pic_works_CXX=yes
15253 fi
15254 fi
15255 $RM -r conftest*
15256
15257fi
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15259$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15260
15261if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15262 case $lt_prog_compiler_pic_CXX in
15263 "" | " "*) ;;
15264 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15265 esac
15266else
15267 lt_prog_compiler_pic_CXX=
15268 lt_prog_compiler_can_build_shared_CXX=no
15269fi
15270
15271fi
15272
15273
15274
15275
15276
15277#
15278# Check to make sure the static flag actually works.
15279#
15280wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15282$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15283if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285else
15286 lt_cv_prog_compiler_static_works_CXX=no
15287 save_LDFLAGS=$LDFLAGS
15288 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15291 # The linker can only warn and ignore the option if not recognized
15292 # So say no if there are warnings
15293 if test -s conftest.err; then
15294 # Append any errors to the config.log.
15295 cat conftest.err 1>&5
15296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15298 if diff conftest.exp conftest.er2 >/dev/null; then
15299 lt_cv_prog_compiler_static_works_CXX=yes
15300 fi
15301 else
15302 lt_cv_prog_compiler_static_works_CXX=yes
15303 fi
15304 fi
15305 $RM -r conftest*
15306 LDFLAGS=$save_LDFLAGS
15307
15308fi
15309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15310$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15311
15312if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15313 :
15314else
15315 lt_prog_compiler_static_CXX=
15316fi
15317
15318
15319
15320
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15322$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15323if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325else
15326 lt_cv_prog_compiler_c_o_CXX=no
15327 $RM -r conftest 2>/dev/null
15328 mkdir conftest
15329 cd conftest
15330 mkdir out
15331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15332
15333 lt_compiler_flag="-o out/conftest2.$ac_objext"
15334 # Insert the option either (1) after the last *FLAGS variable, or
15335 # (2) before a word containing "conftest.", or (3) at the end.
15336 # Note that $ac_compile itself does not contain backslashes and begins
15337 # with a dollar sign (not a hyphen), so the echo should work correctly.
15338 lt_compile=`echo "$ac_compile" | $SED \
15339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341 -e 's:$: $lt_compiler_flag:'`
15342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15343 (eval "$lt_compile" 2>out/conftest.err)
15344 ac_status=$?
15345 cat out/conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15348 then
15349 # The compiler can only warn and ignore the option if not recognized
15350 # So say no if there are warnings
15351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15352 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15353 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15354 lt_cv_prog_compiler_c_o_CXX=yes
15355 fi
15356 fi
15357 chmod u+w . 2>&5
15358 $RM -r conftest*
15359 # SGI C++ compiler will create directory out/ii_files/ for
15360 # template instantiation
15361 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15362 $RM out/* && rmdir out
15363 cd ..
15364 $RM -r conftest
15365 $RM -r conftest*
15366
15367fi
15368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15369$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15370
15371
15372
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15374$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15375if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15376 $as_echo_n "(cached) " >&6
15377else
15378 lt_cv_prog_compiler_c_o_CXX=no
15379 $RM -r conftest 2>/dev/null
15380 mkdir conftest
15381 cd conftest
15382 mkdir out
15383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15384
15385 lt_compiler_flag="-o out/conftest2.$ac_objext"
15386 # Insert the option either (1) after the last *FLAGS variable, or
15387 # (2) before a word containing "conftest.", or (3) at the end.
15388 # Note that $ac_compile itself does not contain backslashes and begins
15389 # with a dollar sign (not a hyphen), so the echo should work correctly.
15390 lt_compile=`echo "$ac_compile" | $SED \
15391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15393 -e 's:$: $lt_compiler_flag:'`
15394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15395 (eval "$lt_compile" 2>out/conftest.err)
15396 ac_status=$?
15397 cat out/conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15400 then
15401 # The compiler can only warn and ignore the option if not recognized
15402 # So say no if there are warnings
15403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15404 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15405 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15406 lt_cv_prog_compiler_c_o_CXX=yes
15407 fi
15408 fi
15409 chmod u+w . 2>&5
15410 $RM -r conftest*
15411 # SGI C++ compiler will create directory out/ii_files/ for
15412 # template instantiation
15413 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15414 $RM out/* && rmdir out
15415 cd ..
15416 $RM -r conftest
15417 $RM -r conftest*
15418
15419fi
15420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15421$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15422
15423
15424
15425
15426hard_links=nottested
15427if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15428 # do not overwrite the value of need_locks provided by the user
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15430$as_echo_n "checking if we can lock with hard links... " >&6; }
15431 hard_links=yes
15432 $RM -r conftest*
15433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15434 touch conftest.a
15435 ln conftest.a conftest.b 2>&5 || hard_links=no
15436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15438$as_echo "$hard_links" >&6; }
15439 if test no = "$hard_links"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15441$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15442 need_locks=warn
15443 fi
15444else
15445 need_locks=no
15446fi
15447
15448
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15451$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15452
15453 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15454 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15455 case $host_os in
15456 aix[4-9]*)
15457 # If we're using GNU nm, then we don't want the "-C" option.
15458 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15459 # Without the "-l" option, or with the "-B" option, AIX nm treats
15460 # weak defined symbols like other global defined symbols, whereas
15461 # GNU nm marks them as "W".
15462 # While the 'weak' keyword is ignored in the Export File, we need
15463 # it in the Import File for the 'aix-soname' feature, so we have
15464 # to replace the "-B" option with "-P" for AIX nm.
15465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15466 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15467 else
15468 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15469 fi
15470 ;;
15471 pw32*)
15472 export_symbols_cmds_CXX=$ltdll_cmds
15473 ;;
15474 cygwin* | mingw* | cegcc*)
15475 case $cc_basename in
15476 cl*)
15477 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15478 ;;
15479 *)
15480 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'
15481 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15482 ;;
15483 esac
15484 ;;
15485 *)
15486 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15487 ;;
15488 esac
15489
15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15491$as_echo "$ld_shlibs_CXX" >&6; }
15492test no = "$ld_shlibs_CXX" && can_build_shared=no
15493
15494with_gnu_ld_CXX=$with_gnu_ld
15495
15496
15497
15498
15499
15500
15501#
15502# Do we need to explicitly link libc?
15503#
15504case "x$archive_cmds_need_lc_CXX" in
15505x|xyes)
15506 # Assume -lc should be added
15507 archive_cmds_need_lc_CXX=yes
15508
15509 if test yes,yes = "$GCC,$enable_shared"; then
15510 case $archive_cmds_CXX in
15511 *'~'*)
15512 # FIXME: we may have to deal with multi-command sequences.
15513 ;;
15514 '$CC '*)
15515 # Test whether the compiler implicitly links with -lc since on some
15516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15517 # to ld, don't add -lc before -lgcc.
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15519$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15520if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522else
15523 $RM -r conftest*
15524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15525
15526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15527 (eval $ac_compile) 2>&5
15528 ac_status=$?
15529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15530 test $ac_status = 0; } 2>conftest.err; then
15531 soname=conftest
15532 lib=conftest
15533 libobjs=conftest.$ac_objext
15534 deplibs=
15535 wl=$lt_prog_compiler_wl_CXX
15536 pic_flag=$lt_prog_compiler_pic_CXX
15537 compiler_flags=-v
15538 linker_flags=-v
15539 verstring=
15540 output_objdir=.
15541 libname=conftest
15542 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15543 allow_undefined_flag_CXX=
15544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15545 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15546 ac_status=$?
15547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15548 test $ac_status = 0; }
15549 then
15550 lt_cv_archive_cmds_need_lc_CXX=no
15551 else
15552 lt_cv_archive_cmds_need_lc_CXX=yes
15553 fi
15554 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15555 else
15556 cat conftest.err 1>&5
15557 fi
15558 $RM -r conftest*
15559
15560fi
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15562$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15563 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15564 ;;
15565 esac
15566 fi
15567 ;;
15568esac
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15632$as_echo_n "checking dynamic linker characteristics... " >&6; }
15633
15634library_names_spec=
15635libname_spec='lib$name'
15636soname_spec=
15637shrext_cmds=.so
15638postinstall_cmds=
15639postuninstall_cmds=
15640finish_cmds=
15641finish_eval=
15642shlibpath_var=
15643shlibpath_overrides_runpath=unknown
15644version_type=none
15645dynamic_linker="$host_os ld.so"
15646sys_lib_dlsearch_path_spec="/lib /usr/lib"
15647need_lib_prefix=unknown
15648hardcode_into_libs=no
15649
15650# when you set need_version to no, make sure it does not cause -set_version
15651# flags to be left without arguments
15652need_version=unknown
15653
15654
15655
15656case $host_os in
15657aix3*)
15658 version_type=linux # correct to gnu/linux during the next big refactor
15659 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15660 shlibpath_var=LIBPATH
15661
15662 # AIX 3 has no versioning support, so we append a major version to the name.
15663 soname_spec='$libname$release$shared_ext$major'
15664 ;;
15665
15666aix[4-9]*)
15667 version_type=linux # correct to gnu/linux during the next big refactor
15668 need_lib_prefix=no
15669 need_version=no
15670 hardcode_into_libs=yes
15671 if test ia64 = "$host_cpu"; then
15672 # AIX 5 supports IA64
15673 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 else
15676 # With GCC up to 2.95.x, collect2 would create an import file
15677 # for dependence libraries. The import file would start with
15678 # the line '#! .'. This would cause the generated library to
15679 # depend on '.', always an invalid library. This was fixed in
15680 # development snapshots of GCC prior to 3.0.
15681 case $host_os in
15682 aix4 | aix4.[01] | aix4.[01].*)
15683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15684 echo ' yes '
15685 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15686 :
15687 else
15688 can_build_shared=no
15689 fi
15690 ;;
15691 esac
15692 # Using Import Files as archive members, it is possible to support
15693 # filename-based versioning of shared library archives on AIX. While
15694 # this would work for both with and without runtime linking, it will
15695 # prevent static linking of such archives. So we do filename-based
15696 # shared library versioning with .so extension only, which is used
15697 # when both runtime linking and shared linking is enabled.
15698 # Unfortunately, runtime linking may impact performance, so we do
15699 # not want this to be the default eventually. Also, we use the
15700 # versioned .so libs for executables only if there is the -brtl
15701 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15702 # To allow for filename-based versioning support, we need to create
15703 # libNAME.so.V as an archive file, containing:
15704 # *) an Import File, referring to the versioned filename of the
15705 # archive as well as the shared archive member, telling the
15706 # bitwidth (32 or 64) of that shared object, and providing the
15707 # list of exported symbols of that shared object, eventually
15708 # decorated with the 'weak' keyword
15709 # *) the shared object with the F_LOADONLY flag set, to really avoid
15710 # it being seen by the linker.
15711 # At run time we better use the real file rather than another symlink,
15712 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15713
15714 case $with_aix_soname,$aix_use_runtimelinking in
15715 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15716 # soname into executable. Probably we can add versioning support to
15717 # collect2, so additional links can be useful in future.
15718 aix,yes) # traditional libtool
15719 dynamic_linker='AIX unversionable lib.so'
15720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15721 # instead of lib<name>.a to let people know that these are not
15722 # typical AIX shared libraries.
15723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15724 ;;
15725 aix,no) # traditional AIX only
15726 dynamic_linker='AIX lib.a(lib.so.V)'
15727 # We preserve .a as extension for shared libraries through AIX4.2
15728 # and later when we are not doing run time linking.
15729 library_names_spec='$libname$release.a $libname.a'
15730 soname_spec='$libname$release$shared_ext$major'
15731 ;;
15732 svr4,*) # full svr4 only
15733 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15734 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15735 # We do not specify a path in Import Files, so LIBPATH fires.
15736 shlibpath_overrides_runpath=yes
15737 ;;
15738 *,yes) # both, prefer svr4
15739 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15741 # unpreferred sharedlib libNAME.a needs extra handling
15742 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15743 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15744 # We do not specify a path in Import Files, so LIBPATH fires.
15745 shlibpath_overrides_runpath=yes
15746 ;;
15747 *,no) # both, prefer aix
15748 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15749 library_names_spec='$libname$release.a $libname.a'
15750 soname_spec='$libname$release$shared_ext$major'
15751 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15752 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15753 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15754 ;;
15755 esac
15756 shlibpath_var=LIBPATH
15757 fi
15758 ;;
15759
15760amigaos*)
15761 case $host_cpu in
15762 powerpc)
15763 # Since July 2007 AmigaOS4 officially supports .so libraries.
15764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15766 ;;
15767 m68k)
15768 library_names_spec='$libname.ixlibrary $libname.a'
15769 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15770 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15771 ;;
15772 esac
15773 ;;
15774
15775beos*)
15776 library_names_spec='$libname$shared_ext'
15777 dynamic_linker="$host_os ld.so"
15778 shlibpath_var=LIBRARY_PATH
15779 ;;
15780
15781bsdi[45]*)
15782 version_type=linux # correct to gnu/linux during the next big refactor
15783 need_version=no
15784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15785 soname_spec='$libname$release$shared_ext$major'
15786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15787 shlibpath_var=LD_LIBRARY_PATH
15788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15790 # the default ld.so.conf also contains /usr/contrib/lib and
15791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15792 # libtool to hard-code these into programs
15793 ;;
15794
15795cygwin* | mingw* | pw32* | cegcc*)
15796 version_type=windows
15797 shrext_cmds=.dll
15798 need_version=no
15799 need_lib_prefix=no
15800
15801 case $GCC,$cc_basename in
15802 yes,*)
15803 # gcc
15804 library_names_spec='$libname.dll.a'
15805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15806 postinstall_cmds='base_file=`basename \$file`~
15807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15808 dldir=$destdir/`dirname \$dlpath`~
15809 test -d \$dldir || mkdir -p \$dldir~
15810 $install_prog $dir/$dlname \$dldir/$dlname~
15811 chmod a+x \$dldir/$dlname~
15812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15814 fi'
15815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15816 dlpath=$dir/\$dldll~
15817 $RM \$dlpath'
15818 shlibpath_overrides_runpath=yes
15819
15820 case $host_os in
15821 cygwin*)
15822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15823 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15824
15825 ;;
15826 mingw* | cegcc*)
15827 # MinGW DLLs use traditional 'lib' prefix
15828 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15829 ;;
15830 pw32*)
15831 # pw32 DLLs use 'pw' prefix rather than 'lib'
15832 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15833 ;;
15834 esac
15835 dynamic_linker='Win32 ld.exe'
15836 ;;
15837
15838 *,cl*)
15839 # Native MSVC
15840 libname_spec='$name'
15841 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15842 library_names_spec='$libname.dll.lib'
15843
15844 case $build_os in
15845 mingw*)
15846 sys_lib_search_path_spec=
15847 lt_save_ifs=$IFS
15848 IFS=';'
15849 for lt_path in $LIB
15850 do
15851 IFS=$lt_save_ifs
15852 # Let DOS variable expansion print the short 8.3 style file name.
15853 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15854 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15855 done
15856 IFS=$lt_save_ifs
15857 # Convert to MSYS style.
15858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15859 ;;
15860 cygwin*)
15861 # Convert to unix form, then to dos form, then back to unix form
15862 # but this time dos style (no spaces!) so that the unix form looks
15863 # like /cygdrive/c/PROGRA~1:/cygdr...
15864 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15865 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15866 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15867 ;;
15868 *)
15869 sys_lib_search_path_spec=$LIB
15870 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15871 # It is most probably a Windows format PATH.
15872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15873 else
15874 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15875 fi
15876 # FIXME: find the short name or the path components, as spaces are
15877 # common. (e.g. "Program Files" -> "PROGRA~1")
15878 ;;
15879 esac
15880
15881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15882 postinstall_cmds='base_file=`basename \$file`~
15883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15884 dldir=$destdir/`dirname \$dlpath`~
15885 test -d \$dldir || mkdir -p \$dldir~
15886 $install_prog $dir/$dlname \$dldir/$dlname'
15887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15888 dlpath=$dir/\$dldll~
15889 $RM \$dlpath'
15890 shlibpath_overrides_runpath=yes
15891 dynamic_linker='Win32 link.exe'
15892 ;;
15893
15894 *)
15895 # Assume MSVC wrapper
15896 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15897 dynamic_linker='Win32 ld.exe'
15898 ;;
15899 esac
15900 # FIXME: first we should search . and the directory the executable is in
15901 shlibpath_var=PATH
15902 ;;
15903
15904darwin* | rhapsody*)
15905 dynamic_linker="$host_os dyld"
15906 version_type=darwin
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15910 soname_spec='$libname$release$major$shared_ext'
15911 shlibpath_overrides_runpath=yes
15912 shlibpath_var=DYLD_LIBRARY_PATH
15913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15914
15915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15916 ;;
15917
15918dgux*)
15919 version_type=linux # correct to gnu/linux during the next big refactor
15920 need_lib_prefix=no
15921 need_version=no
15922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15923 soname_spec='$libname$release$shared_ext$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 ;;
15926
15927freebsd* | dragonfly*)
15928 # DragonFly does not have aout. When/if they implement a new
15929 # versioning mechanism, adjust this.
15930 if test -x /usr/bin/objformat; then
15931 objformat=`/usr/bin/objformat`
15932 else
15933 case $host_os in
15934 freebsd[23].*) objformat=aout ;;
15935 *) objformat=elf ;;
15936 esac
15937 fi
15938 version_type=freebsd-$objformat
15939 case $version_type in
15940 freebsd-elf*)
15941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15942 soname_spec='$libname$release$shared_ext$major'
15943 need_version=no
15944 need_lib_prefix=no
15945 ;;
15946 freebsd-*)
15947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15948 need_version=yes
15949 ;;
15950 esac
15951 shlibpath_var=LD_LIBRARY_PATH
15952 case $host_os in
15953 freebsd2.*)
15954 shlibpath_overrides_runpath=yes
15955 ;;
15956 freebsd3.[01]* | freebsdelf3.[01]*)
15957 shlibpath_overrides_runpath=yes
15958 hardcode_into_libs=yes
15959 ;;
15960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15962 shlibpath_overrides_runpath=no
15963 hardcode_into_libs=yes
15964 ;;
15965 *) # from 4.6 on, and DragonFly
15966 shlibpath_overrides_runpath=yes
15967 hardcode_into_libs=yes
15968 ;;
15969 esac
15970 ;;
15971
15972haiku*)
15973 version_type=linux # correct to gnu/linux during the next big refactor
15974 need_lib_prefix=no
15975 need_version=no
15976 dynamic_linker="$host_os runtime_loader"
15977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15978 soname_spec='$libname$release$shared_ext$major'
15979 shlibpath_var=LIBRARY_PATH
15980 shlibpath_overrides_runpath=no
15981 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15982 hardcode_into_libs=yes
15983 ;;
15984
15985hpux9* | hpux10* | hpux11*)
15986 # Give a soname corresponding to the major version so that dld.sl refuses to
15987 # link against other versions.
15988 version_type=sunos
15989 need_lib_prefix=no
15990 need_version=no
15991 case $host_cpu in
15992 ia64*)
15993 shrext_cmds='.so'
15994 hardcode_into_libs=yes
15995 dynamic_linker="$host_os dld.so"
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15999 soname_spec='$libname$release$shared_ext$major'
16000 if test 32 = "$HPUX_IA64_MODE"; then
16001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16002 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16003 else
16004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16005 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16006 fi
16007 ;;
16008 hppa*64*)
16009 shrext_cmds='.sl'
16010 hardcode_into_libs=yes
16011 dynamic_linker="$host_os dld.sl"
16012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16015 soname_spec='$libname$release$shared_ext$major'
16016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018 ;;
16019 *)
16020 shrext_cmds='.sl'
16021 dynamic_linker="$host_os dld.sl"
16022 shlibpath_var=SHLIB_PATH
16023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16025 soname_spec='$libname$release$shared_ext$major'
16026 ;;
16027 esac
16028 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16029 postinstall_cmds='chmod 555 $lib'
16030 # or fails outright, so override atomically:
16031 install_override_mode=555
16032 ;;
16033
16034interix[3-9]*)
16035 version_type=linux # correct to gnu/linux during the next big refactor
16036 need_lib_prefix=no
16037 need_version=no
16038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16039 soname_spec='$libname$release$shared_ext$major'
16040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 shlibpath_overrides_runpath=no
16043 hardcode_into_libs=yes
16044 ;;
16045
16046irix5* | irix6* | nonstopux*)
16047 case $host_os in
16048 nonstopux*) version_type=nonstopux ;;
16049 *)
16050 if test yes = "$lt_cv_prog_gnu_ld"; then
16051 version_type=linux # correct to gnu/linux during the next big refactor
16052 else
16053 version_type=irix
16054 fi ;;
16055 esac
16056 need_lib_prefix=no
16057 need_version=no
16058 soname_spec='$libname$release$shared_ext$major'
16059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16060 case $host_os in
16061 irix5* | nonstopux*)
16062 libsuff= shlibsuff=
16063 ;;
16064 *)
16065 case $LD in # libtool.m4 will add one of these switches to LD
16066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16067 libsuff= shlibsuff= libmagic=32-bit;;
16068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16069 libsuff=32 shlibsuff=N32 libmagic=N32;;
16070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16072 *) libsuff= shlibsuff= libmagic=never-match;;
16073 esac
16074 ;;
16075 esac
16076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16077 shlibpath_overrides_runpath=no
16078 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16079 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16080 hardcode_into_libs=yes
16081 ;;
16082
16083# No shared lib support for Linux oldld, aout, or coff.
16084linux*oldld* | linux*aout* | linux*coff*)
16085 dynamic_linker=no
16086 ;;
16087
16088linux*android*)
16089 version_type=none # Android doesn't support versioned libraries.
16090 need_lib_prefix=no
16091 need_version=no
16092 library_names_spec='$libname$release$shared_ext'
16093 soname_spec='$libname$release$shared_ext'
16094 finish_cmds=
16095 shlibpath_var=LD_LIBRARY_PATH
16096 shlibpath_overrides_runpath=yes
16097
16098 # This implies no fast_install, which is unacceptable.
16099 # Some rework will be needed to allow for fast_install
16100 # before this can be enabled.
16101 hardcode_into_libs=yes
16102
16103 dynamic_linker='Android linker'
16104 # Don't embed -rpath directories since the linker doesn't support them.
16105 hardcode_libdir_flag_spec_CXX='-L$libdir'
16106 ;;
16107
16108# This must be glibc/ELF.
16109linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16110 version_type=linux # correct to gnu/linux during the next big refactor
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16114 soname_spec='$libname$release$shared_ext$major'
16115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16116 shlibpath_var=LD_LIBRARY_PATH
16117 shlibpath_overrides_runpath=no
16118
16119 # Some binutils ld are patched to set DT_RUNPATH
16120 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16121 $as_echo_n "(cached) " >&6
16122else
16123 lt_cv_shlibpath_overrides_runpath=no
16124 save_LDFLAGS=$LDFLAGS
16125 save_libdir=$libdir
16126 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16127 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129/* end confdefs.h. */
16130
16131int
16132main ()
16133{
16134
16135 ;
16136 return 0;
16137}
16138_ACEOF
16139if ac_fn_cxx_try_link "$LINENO"; then :
16140 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16141 lt_cv_shlibpath_overrides_runpath=yes
16142fi
16143fi
16144rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146 LDFLAGS=$save_LDFLAGS
16147 libdir=$save_libdir
16148
16149fi
16150
16151 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16152
16153 # This implies no fast_install, which is unacceptable.
16154 # Some rework will be needed to allow for fast_install
16155 # before this can be enabled.
16156 hardcode_into_libs=yes
16157
16158 # Ideally, we could use ldconfig to report *all* directores which are
16159 # searched for libraries, however this is still not possible. Aside from not
16160 # being certain /sbin/ldconfig is available, command
16161 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16162 # even though it is searched at run-time. Try to do the best guess by
16163 # appending ld.so.conf contents (and includes) to the search path.
16164 if test -f /etc/ld.so.conf; then
16165 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' ' '`
16166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16167 fi
16168
16169 # We used to test for /lib/ld.so.1 and disable shared libraries on
16170 # powerpc, because MkLinux only supported shared libraries with the
16171 # GNU dynamic linker. Since this was broken with cross compilers,
16172 # most powerpc-linux boxes support dynamic linking these days and
16173 # people can always --disable-shared, the test was removed, and we
16174 # assume the GNU/Linux dynamic linker is in use.
16175 dynamic_linker='GNU/Linux ld.so'
16176 ;;
16177
16178netbsd*)
16179 version_type=sunos
16180 need_lib_prefix=no
16181 need_version=no
16182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16183 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16185 dynamic_linker='NetBSD (a.out) ld.so'
16186 else
16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16188 soname_spec='$libname$release$shared_ext$major'
16189 dynamic_linker='NetBSD ld.elf_so'
16190 fi
16191 shlibpath_var=LD_LIBRARY_PATH
16192 shlibpath_overrides_runpath=yes
16193 hardcode_into_libs=yes
16194 ;;
16195
16196newsos6)
16197 version_type=linux # correct to gnu/linux during the next big refactor
16198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 shlibpath_overrides_runpath=yes
16201 ;;
16202
16203*nto* | *qnx*)
16204 version_type=qnx
16205 need_lib_prefix=no
16206 need_version=no
16207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16208 soname_spec='$libname$release$shared_ext$major'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=no
16211 hardcode_into_libs=yes
16212 dynamic_linker='ldqnx.so'
16213 ;;
16214
16215openbsd* | bitrig*)
16216 version_type=sunos
16217 sys_lib_dlsearch_path_spec=/usr/lib
16218 need_lib_prefix=no
16219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16220 need_version=no
16221 else
16222 need_version=yes
16223 fi
16224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 ;;
16229
16230os2*)
16231 libname_spec='$name'
16232 version_type=windows
16233 shrext_cmds=.dll
16234 need_version=no
16235 need_lib_prefix=no
16236 # OS/2 can only load a DLL with a base name of 8 characters or less.
16237 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16238 v=$($ECHO $release$versuffix | tr -d .-);
16239 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16240 $ECHO $n$v`$shared_ext'
16241 library_names_spec='${libname}_dll.$libext'
16242 dynamic_linker='OS/2 ld.exe'
16243 shlibpath_var=BEGINLIBPATH
16244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16246 postinstall_cmds='base_file=`basename \$file`~
16247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16248 dldir=$destdir/`dirname \$dlpath`~
16249 test -d \$dldir || mkdir -p \$dldir~
16250 $install_prog $dir/$dlname \$dldir/$dlname~
16251 chmod a+x \$dldir/$dlname~
16252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16254 fi'
16255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16256 dlpath=$dir/\$dldll~
16257 $RM \$dlpath'
16258 ;;
16259
16260osf3* | osf4* | osf5*)
16261 version_type=osf
16262 need_lib_prefix=no
16263 need_version=no
16264 soname_spec='$libname$release$shared_ext$major'
16265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269 ;;
16270
16271rdos*)
16272 dynamic_linker=no
16273 ;;
16274
16275solaris*)
16276 version_type=linux # correct to gnu/linux during the next big refactor
16277 need_lib_prefix=no
16278 need_version=no
16279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16280 soname_spec='$libname$release$shared_ext$major'
16281 shlibpath_var=LD_LIBRARY_PATH
16282 shlibpath_overrides_runpath=yes
16283 hardcode_into_libs=yes
16284 # ldd complains unless libraries are executable
16285 postinstall_cmds='chmod +x $lib'
16286 ;;
16287
16288sunos4*)
16289 version_type=sunos
16290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16291 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=yes
16294 if test yes = "$with_gnu_ld"; then
16295 need_lib_prefix=no
16296 fi
16297 need_version=yes
16298 ;;
16299
16300sysv4 | sysv4.3*)
16301 version_type=linux # correct to gnu/linux during the next big refactor
16302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16303 soname_spec='$libname$release$shared_ext$major'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 case $host_vendor in
16306 sni)
16307 shlibpath_overrides_runpath=no
16308 need_lib_prefix=no
16309 runpath_var=LD_RUN_PATH
16310 ;;
16311 siemens)
16312 need_lib_prefix=no
16313 ;;
16314 motorola)
16315 need_lib_prefix=no
16316 need_version=no
16317 shlibpath_overrides_runpath=no
16318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16319 ;;
16320 esac
16321 ;;
16322
16323sysv4*MP*)
16324 if test -d /usr/nec; then
16325 version_type=linux # correct to gnu/linux during the next big refactor
16326 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16327 soname_spec='$libname$shared_ext.$major'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 fi
16330 ;;
16331
16332sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16333 version_type=sco
16334 need_lib_prefix=no
16335 need_version=no
16336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16337 soname_spec='$libname$release$shared_ext$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=yes
16340 hardcode_into_libs=yes
16341 if test yes = "$with_gnu_ld"; then
16342 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16343 else
16344 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16345 case $host_os in
16346 sco3.2v5*)
16347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16348 ;;
16349 esac
16350 fi
16351 sys_lib_dlsearch_path_spec='/usr/lib'
16352 ;;
16353
16354tpf*)
16355 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16356 version_type=linux # correct to gnu/linux during the next big refactor
16357 need_lib_prefix=no
16358 need_version=no
16359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 hardcode_into_libs=yes
16363 ;;
16364
16365uts4*)
16366 version_type=linux # correct to gnu/linux during the next big refactor
16367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16368 soname_spec='$libname$release$shared_ext$major'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 ;;
16371
16372*)
16373 dynamic_linker=no
16374 ;;
16375esac
16376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16377$as_echo "$dynamic_linker" >&6; }
16378test no = "$dynamic_linker" && can_build_shared=no
16379
16380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16381if test yes = "$GCC"; then
16382 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16383fi
16384
16385if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16386 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16387fi
16388
16389if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16390 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16391fi
16392
16393# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16394configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16395
16396# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16397func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16398
16399# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16400configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16442$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16443hardcode_action_CXX=
16444if test -n "$hardcode_libdir_flag_spec_CXX" ||
16445 test -n "$runpath_var_CXX" ||
16446 test yes = "$hardcode_automatic_CXX"; then
16447
16448 # We can hardcode non-existent directories.
16449 if test no != "$hardcode_direct_CXX" &&
16450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16451 # have to relink, otherwise we might link with an installed library
16452 # when we should be linking with a yet-to-be-installed one
16453 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16454 test no != "$hardcode_minus_L_CXX"; then
16455 # Linking always hardcodes the temporary library directory.
16456 hardcode_action_CXX=relink
16457 else
16458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16459 hardcode_action_CXX=immediate
16460 fi
16461else
16462 # We cannot hardcode anything, or else we can only hardcode existing
16463 # directories.
16464 hardcode_action_CXX=unsupported
16465fi
16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16467$as_echo "$hardcode_action_CXX" >&6; }
16468
16469if test relink = "$hardcode_action_CXX" ||
16470 test yes = "$inherit_rpath_CXX"; then
16471 # Fast installation is not supported
16472 enable_fast_install=no
16473elif test yes = "$shlibpath_overrides_runpath" ||
16474 test no = "$enable_shared"; then
16475 # Fast installation is not necessary
16476 enable_fast_install=needless
16477fi
16478
16479
16480
16481
16482
16483
16484
16485 fi # test -n "$compiler"
16486
16487 CC=$lt_save_CC
16488 CFLAGS=$lt_save_CFLAGS
16489 LDCXX=$LD
16490 LD=$lt_save_LD
16491 GCC=$lt_save_GCC
16492 with_gnu_ld=$lt_save_with_gnu_ld
16493 lt_cv_path_LDCXX=$lt_cv_path_LD
16494 lt_cv_path_LD=$lt_save_path_LD
16495 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16496 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16497fi # test yes != "$_lt_caught_CXX_error"
16498
16499ac_ext=c
16500ac_cpp='$CPP $CPPFLAGS'
16501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16503ac_compiler_gnu=$ac_cv_c_compiler_gnu
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519 ac_config_commands="$ac_config_commands libtool"
16520
16521
16522
16523
16524# Only expand once:
16525
16526
16527
16528ac_ext=cpp
16529ac_cpp='$CXXCPP $CPPFLAGS'
16530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16533
16534
16535 ax_cxx_compile_cxx11_required=true
16536 ac_ext=cpp
16537ac_cpp='$CXXCPP $CPPFLAGS'
16538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16541 ac_success=no
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16543$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16544if ${ax_cv_cxx_compile_cxx11+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546else
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h. */
16549
16550 template <typename T>
16551 struct check
16552 {
16553 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16554 };
16555
16556 struct Base {
16557 virtual void f() {}
16558 };
16559 struct Child : public Base {
16560 virtual void f() override {}
16561 };
16562
16563 typedef check<check<bool>> right_angle_brackets;
16564
16565 int a;
16566 decltype(a) b;
16567
16568 typedef check<int> check_type;
16569 check_type c;
16570 check_type&& cr = static_cast<check_type&&>(c);
16571
16572 auto d = a;
16573 auto l = [](){};
16574
16575_ACEOF
16576if ac_fn_cxx_try_compile "$LINENO"; then :
16577 ax_cv_cxx_compile_cxx11=yes
16578else
16579 ax_cv_cxx_compile_cxx11=no
16580fi
16581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582fi
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16584$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16585 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16586 ac_success=yes
16587 fi
16588
16589 if test x$ac_success = xno; then
16590 for switch in -std=gnu++11 -std=gnu++0x; do
16591 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16593$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16594if eval \${$cachevar+:} false; then :
16595 $as_echo_n "(cached) " >&6
16596else
16597 ac_save_CXXFLAGS="$CXXFLAGS"
16598 CXXFLAGS="$CXXFLAGS $switch"
16599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600/* end confdefs.h. */
16601
16602 template <typename T>
16603 struct check
16604 {
16605 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16606 };
16607
16608 struct Base {
16609 virtual void f() {}
16610 };
16611 struct Child : public Base {
16612 virtual void f() override {}
16613 };
16614
16615 typedef check<check<bool>> right_angle_brackets;
16616
16617 int a;
16618 decltype(a) b;
16619
16620 typedef check<int> check_type;
16621 check_type c;
16622 check_type&& cr = static_cast<check_type&&>(c);
16623
16624 auto d = a;
16625 auto l = [](){};
16626
16627_ACEOF
16628if ac_fn_cxx_try_compile "$LINENO"; then :
16629 eval $cachevar=yes
16630else
16631 eval $cachevar=no
16632fi
16633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 CXXFLAGS="$ac_save_CXXFLAGS"
16635fi
16636eval ac_res=\$$cachevar
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16638$as_echo "$ac_res" >&6; }
16639 if eval test x\$$cachevar = xyes; then
16640 CXXFLAGS="$CXXFLAGS $switch"
16641 ac_success=yes
16642 break
16643 fi
16644 done
16645 fi
16646
16647
16648 ac_ext=cpp
16649ac_cpp='$CXXCPP $CPPFLAGS'
16650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16653
16654 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16655 if test x$ac_success = xno; then
16656 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16657 fi
16658 else
16659 if test x$ac_success = xno; then
16660 HAVE_CXX11=0
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16662$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16663 else
16664 HAVE_CXX11=1
16665
16666$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16667
16668 fi
16669
16670
16671 fi
16672
16673OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16674
16675
16676
16677
16678
16679
16680
16681
16682if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16683 if test -n "$ac_tool_prefix"; then
16684 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16685set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687$as_echo_n "checking for $ac_word... " >&6; }
16688if ${ac_cv_path_PKG_CONFIG+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690else
16691 case $PKG_CONFIG in
16692 [\\/]* | ?:[\\/]*)
16693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16694 ;;
16695 *)
16696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697for as_dir in $PATH
16698do
16699 IFS=$as_save_IFS
16700 test -z "$as_dir" && as_dir=.
16701 for ac_exec_ext in '' $ac_executable_extensions; do
16702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16705 break 2
16706 fi
16707done
16708 done
16709IFS=$as_save_IFS
16710
16711 ;;
16712esac
16713fi
16714PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16715if test -n "$PKG_CONFIG"; then
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16717$as_echo "$PKG_CONFIG" >&6; }
16718else
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720$as_echo "no" >&6; }
16721fi
16722
16723
16724fi
16725if test -z "$ac_cv_path_PKG_CONFIG"; then
16726 ac_pt_PKG_CONFIG=$PKG_CONFIG
16727 # Extract the first word of "pkg-config", so it can be a program name with args.
16728set dummy pkg-config; ac_word=$2
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16730$as_echo_n "checking for $ac_word... " >&6; }
16731if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16732 $as_echo_n "(cached) " >&6
16733else
16734 case $ac_pt_PKG_CONFIG in
16735 [\\/]* | ?:[\\/]*)
16736 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16737 ;;
16738 *)
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740for as_dir in $PATH
16741do
16742 IFS=$as_save_IFS
16743 test -z "$as_dir" && as_dir=.
16744 for ac_exec_ext in '' $ac_executable_extensions; do
16745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16746 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16748 break 2
16749 fi
16750done
16751 done
16752IFS=$as_save_IFS
16753
16754 ;;
16755esac
16756fi
16757ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16758if test -n "$ac_pt_PKG_CONFIG"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16760$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16761else
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763$as_echo "no" >&6; }
16764fi
16765
16766 if test "x$ac_pt_PKG_CONFIG" = x; then
16767 PKG_CONFIG=""
16768 else
16769 case $cross_compiling:$ac_tool_warned in
16770yes:)
16771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16773ac_tool_warned=yes ;;
16774esac
16775 PKG_CONFIG=$ac_pt_PKG_CONFIG
16776 fi
16777else
16778 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16779fi
16780
16781fi
16782if test -n "$PKG_CONFIG"; then
16783 _pkg_min_version=0.22
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16785$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16786 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16788$as_echo "yes" >&6; }
16789 else
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16791$as_echo "no" >&6; }
16792 PKG_CONFIG=""
16793 fi
16794fi
16795
16796# Extract the first word of "git", so it can be a program name with args.
16797set dummy git; ac_word=$2
16798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16799$as_echo_n "checking for $ac_word... " >&6; }
16800if ${ac_cv_path_GIT+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802else
16803 case $GIT in
16804 [\\/]* | ?:[\\/]*)
16805 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16806 ;;
16807 *)
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809for as_dir in $PATH
16810do
16811 IFS=$as_save_IFS
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16817 break 2
16818 fi
16819done
16820 done
16821IFS=$as_save_IFS
16822
16823 ;;
16824esac
16825fi
16826GIT=$ac_cv_path_GIT
16827if test -n "$GIT"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16829$as_echo "$GIT" >&6; }
16830else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832$as_echo "no" >&6; }
16833fi
16834
16835
16836# Extract the first word of "time", so it can be a program name with args.
16837set dummy time; ac_word=$2
16838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16839$as_echo_n "checking for $ac_word... " >&6; }
16840if ${ac_cv_path_TIME+:} false; then :
16841 $as_echo_n "(cached) " >&6
16842else
16843 case $TIME in
16844 [\\/]* | ?:[\\/]*)
16845 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16846 ;;
16847 *)
16848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16849for as_dir in $PATH
16850do
16851 IFS=$as_save_IFS
16852 test -z "$as_dir" && as_dir=.
16853 for ac_exec_ext in '' $ac_executable_extensions; do
16854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16855 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16857 break 2
16858 fi
16859done
16860 done
16861IFS=$as_save_IFS
16862
16863 ;;
16864esac
16865fi
16866TIME=$ac_cv_path_TIME
16867if test -n "$TIME"; then
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16869$as_echo "$TIME" >&6; }
16870else
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16872$as_echo "no" >&6; }
16873fi
16874
16875
16876
16877
16878
16879
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16882$as_echo_n "checking for bison >= 3.0... " >&6; }
16883 if test -z "$BISON"; then
16884 ac_path_BISON_found=false
16885 # Loop through the user's path and test for each of PROGNAME-LIST
16886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887for as_dir in $PATH
16888do
16889 IFS=$as_save_IFS
16890 test -z "$as_dir" && as_dir=.
16891 for ac_prog in bison; do
16892 for ac_exec_ext in '' $ac_executable_extensions; do
16893 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16894 as_fn_executable_p "$ac_path_BISON" || continue
16895version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16896 if ${version:+false} :; then :
16897
16898else
16899 as_awk_strverscmp='
16900 # Use only awk features that work with 7th edition Unix awk (1978).
16901 # My, what an old awk you have, Mr. Solaris!
16902 END {
16903 while (length(v1) && length(v2)) {
16904 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16905 # Normally this is a single character, but if v1 and v2 contain digits,
16906 # compare them as integers and fractions as strverscmp does.
16907 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16908 # Split v1 and v2 into their leading digit string components d1 and d2,
16909 # and advance v1 and v2 past the leading digit strings.
16910 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16911 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16912 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16913 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16914 if (d1 ~ /^0/) {
16915 if (d2 ~ /^0/) {
16916 # Compare two fractions.
16917 while (d1 ~ /^0/ && d2 ~ /^0/) {
16918 d1 = substr(d1, 2); len1--
16919 d2 = substr(d2, 2); len2--
16920 }
16921 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16922 # The two components differ in length, and the common prefix
16923 # contains only leading zeros. Consider the longer to be less.
16924 d1 = -len1
16925 d2 = -len2
16926 } else {
16927 # Otherwise, compare as strings.
16928 d1 = "x" d1
16929 d2 = "x" d2
16930 }
16931 } else {
16932 # A fraction is less than an integer.
16933 exit 1
16934 }
16935 } else {
16936 if (d2 ~ /^0/) {
16937 # An integer is greater than a fraction.
16938 exit 2
16939 } else {
16940 # Compare two integers.
16941 d1 += 0
16942 d2 += 0
16943 }
16944 }
16945 } else {
16946 # The normal case, without worrying about digits.
16947 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16948 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16949 }
16950 if (d1 < d2) exit 1
16951 if (d1 > d2) exit 2
16952 }
16953 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16954 # which mishandles some comparisons of empty strings to integers.
16955 if (length(v2)) exit 1
16956 if (length(v1)) exit 2
16957 }
16958'
16959as_arg_v1=$version
16960as_arg_v2=3.0
16961awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16962case $? in #(
16963 1) :
16964 ;; #(
16965 0) :
16966 ac_cv_path_BISON=$ac_path_BISON ;; #(
16967 2) :
16968 ac_cv_path_BISON=$ac_path_BISON ;; #(
16969 *) :
16970 ;;
16971esac
16972fi
16973
16974 $ac_path_BISON_found && break 3
16975 done
16976 done
16977 done
16978IFS=$as_save_IFS
16979 if test -z "$ac_cv_path_BISON"; then
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981$as_echo "no" >&6; }
16982 fi
16983else
16984 ac_cv_path_BISON=$BISON
16985fi
16986
16987
16988 if true; then :
16989
16990 BISON=$ac_cv_path_BISON
16991
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16993$as_echo "$BISON" >&6; }
16994
16995else
16996 if true; then :
16997
16998 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
16999
17000else
17001
17002 BISON=:
17003
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005$as_echo "no" >&6; }
17006
17007fi
17008fi
17009
17010
17011
17012
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17014$as_echo_n "checking for flex >= 2.5.33... " >&6; }
17015 if test -z "$FLEX"; then
17016 ac_path_FLEX_found=false
17017 # Loop through the user's path and test for each of PROGNAME-LIST
17018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019for as_dir in $PATH
17020do
17021 IFS=$as_save_IFS
17022 test -z "$as_dir" && as_dir=.
17023 for ac_prog in flex; do
17024 for ac_exec_ext in '' $ac_executable_extensions; do
17025 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17026 as_fn_executable_p "$ac_path_FLEX" || continue
17027version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17028 if ${version:+false} :; then :
17029
17030else
17031 as_arg_v1=$version
17032as_arg_v2=2.5.33
17033awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17034case $? in #(
17035 1) :
17036 ;; #(
17037 0) :
17038 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17039 2) :
17040 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17041 *) :
17042 ;;
17043esac
17044fi
17045
17046 $ac_path_FLEX_found && break 3
17047 done
17048 done
17049 done
17050IFS=$as_save_IFS
17051 if test -z "$ac_cv_path_FLEX"; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17053$as_echo "no" >&6; }
17054 fi
17055else
17056 ac_cv_path_FLEX=$FLEX
17057fi
17058
17059
17060 if true; then :
17061
17062 FLEX=$ac_cv_path_FLEX
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17065$as_echo "$FLEX" >&6; }
17066
17067else
17068 if true; then :
17069
17070 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
17071
17072else
17073
17074 FLEX=:
17075
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077$as_echo "no" >&6; }
17078
17079fi
17080fi
17081
17082
17083
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17086$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17087 if test -z "$GPERF"; then
17088 ac_path_GPERF_found=false
17089 # Loop through the user's path and test for each of PROGNAME-LIST
17090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17091for as_dir in $PATH
17092do
17093 IFS=$as_save_IFS
17094 test -z "$as_dir" && as_dir=.
17095 for ac_prog in gperf; do
17096 for ac_exec_ext in '' $ac_executable_extensions; do
17097 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17098 as_fn_executable_p "$ac_path_GPERF" || continue
17099version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17100 if ${version:+false} :; then :
17101
17102else
17103 as_arg_v1=$version
17104as_arg_v2=3.0.3
17105awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17106case $? in #(
17107 1) :
17108 ;; #(
17109 0) :
17110 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17111 2) :
17112 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17113 *) :
17114 ;;
17115esac
17116fi
17117
17118 $ac_path_GPERF_found && break 3
17119 done
17120 done
17121 done
17122IFS=$as_save_IFS
17123 if test -z "$ac_cv_path_GPERF"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125$as_echo "no" >&6; }
17126 fi
17127else
17128 ac_cv_path_GPERF=$GPERF
17129fi
17130
17131
17132 if true; then :
17133
17134 GPERF=$ac_cv_path_GPERF
17135
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17137$as_echo "$GPERF" >&6; }
17138
17139else
17140 if true; then :
17141
17142 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17143
17144else
17145
17146 GPERF=:
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17149$as_echo "no" >&6; }
17150
17151fi
17152fi
17153
17154
17155
17156
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17158$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17159 if test -z "$GNUTAR"; then
17160 ac_path_GNUTAR_found=false
17161 # Loop through the user's path and test for each of PROGNAME-LIST
17162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17163for as_dir in $PATH
17164do
17165 IFS=$as_save_IFS
17166 test -z "$as_dir" && as_dir=.
17167 for ac_prog in tar gtar gnutar; do
17168 for ac_exec_ext in '' $ac_executable_extensions; do
17169 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17170 as_fn_executable_p "$ac_path_GNUTAR" || continue
17171version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17172 if ${version:+false} :; then :
17173
17174else
17175 as_arg_v1=$version
17176as_arg_v2=1.19
17177awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17178case $? in #(
17179 1) :
17180 ;; #(
17181 0) :
17182 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17183 2) :
17184 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17185 *) :
17186 ;;
17187esac
17188fi
17189
17190 $ac_path_GNUTAR_found && break 3
17191 done
17192 done
17193 done
17194IFS=$as_save_IFS
17195 if test -z "$ac_cv_path_GNUTAR"; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197$as_echo "no" >&6; }
17198 fi
17199else
17200 ac_cv_path_GNUTAR=$GNUTAR
17201fi
17202
17203
17204 if true; then :
17205
17206 GNUTAR=$ac_cv_path_GNUTAR
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17209$as_echo "$GNUTAR" >&6; }
17210
17211else
17212 if true; then :
17213
17214 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
17215
17216else
17217
17218 GNUTAR=:
17219
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221$as_echo "no" >&6; }
17222
17223fi
17224fi
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235ac_ext=c
17236ac_cpp='$CPP $CPPFLAGS'
17237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17239ac_compiler_gnu=$ac_cv_c_compiler_gnu
17240
17241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17242$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17243if ${ac_cv_cflags_warn_all+:} false; then :
17244 $as_echo_n "(cached) " >&6
17245else
17246 ac_cv_cflags_warn_all="no, unknown"
17247ac_save_CFLAGS="$CFLAGS"
17248for 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" #
17249do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251/* end confdefs.h. */
17252
17253int
17254main ()
17255{
17256
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_compile "$LINENO"; then :
17262 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17263fi
17264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17265done
17266CFLAGS="$ac_save_CFLAGS"
17267
17268fi
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17270$as_echo "$ac_cv_cflags_warn_all" >&6; }
17271
17272
17273case ".$ac_cv_cflags_warn_all" in
17274 .ok|.ok,*) ;;
17275 .|.no|.no,*) ;;
17276 *) if ${CFLAGS+:} false; then :
17277 case " $CFLAGS " in
17278 *" $ac_cv_cflags_warn_all "*)
17279 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17280 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17281 ac_status=$?
17282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17283 test $ac_status = 0; }
17284 ;;
17285 *)
17286 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17287 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17288 ac_status=$?
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290 test $ac_status = 0; }
17291 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17292 ;;
17293 esac
17294else
17295 CFLAGS="$ac_cv_cflags_warn_all"
17296fi
17297 ;;
17298esac
17299
17300ac_ext=cpp
17301ac_cpp='$CXXCPP $CPPFLAGS'
17302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17305
17306
17307ac_ext=cpp
17308ac_cpp='$CXXCPP $CPPFLAGS'
17309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17312
17313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17314$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17315if ${ac_cv_cxxflags_warn_all+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317else
17318 ac_cv_cxxflags_warn_all="no, unknown"
17319ac_save_CXXFLAGS="$CXXFLAGS"
17320for 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" #
17321do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h. */
17324
17325int
17326main ()
17327{
17328
17329 ;
17330 return 0;
17331}
17332_ACEOF
17333if ac_fn_cxx_try_compile "$LINENO"; then :
17334 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17335fi
17336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337done
17338CXXFLAGS="$ac_save_CXXFLAGS"
17339
17340fi
17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17342$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17343
17344
17345case ".$ac_cv_cxxflags_warn_all" in
17346 .ok|.ok,*) ;;
17347 .|.no|.no,*) ;;
17348 *) if ${CXXFLAGS+:} false; then :
17349 case " $CXXFLAGS " in
17350 *" $ac_cv_cxxflags_warn_all "*)
17351 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17352 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17353 ac_status=$?
17354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355 test $ac_status = 0; }
17356 ;;
17357 *)
17358 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17359 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17360 ac_status=$?
17361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; }
17363 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17364 ;;
17365 esac
17366else
17367 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17368fi
17369 ;;
17370esac
17371
17372ac_ext=cpp
17373ac_cpp='$CXXCPP $CPPFLAGS'
17374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17377
17378
17379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17380$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17381if ${ac_cv_cxxflags_warn_all+:} false; then :
17382 $as_echo_n "(cached) " >&6
17383else
17384 ac_cv_cxxflags_warn_all="no, unknown"
17385ac_save_CXXFLAGS="$CXXFLAGS"
17386for 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" #
17387do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h. */
17390
17391int
17392main ()
17393{
17394
17395 ;
17396 return 0;
17397}
17398_ACEOF
17399if ac_fn_cxx_try_compile "$LINENO"; then :
17400 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17401fi
17402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403done
17404CXXFLAGS="$ac_save_CXXFLAGS"
17405
17406fi
17407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17408$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17409
17410
17411case ".$ac_cv_cxxflags_warn_all" in
17412 .ok|.ok,*) ;;
17413 .|.no|.no,*) ;;
17414 *) if ${CXXFLAGS+:} false; then :
17415 case " $CXXFLAGS " in
17416 *" $ac_cv_cxxflags_warn_all "*)
17417 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17418 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17419 ac_status=$?
17420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17421 test $ac_status = 0; }
17422 ;;
17423 *)
17424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17425 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17426 ac_status=$?
17427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17428 test $ac_status = 0; }
17429 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17430 ;;
17431 esac
17432else
17433 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17434fi
17435 ;;
17436esac
17437
17438
17439
17440
17441
17442 ac_ext=c
17443ac_cpp='$CPP $CPPFLAGS'
17444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446ac_compiler_gnu=$ac_cv_c_compiler_gnu
17447
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17449$as_echo_n "checking for cc -Werror... " >&6; }
17450
17451 cy_save=$CFLAGS
17452
17453 for element in -Werror; do
17454 haveit=
17455 for x in $CFLAGS; do
17456
17457 acl_save_prefix="$prefix"
17458 prefix="$acl_final_prefix"
17459 acl_save_exec_prefix="$exec_prefix"
17460 exec_prefix="$acl_final_exec_prefix"
17461 eval x=\"$x\"
17462 exec_prefix="$acl_save_exec_prefix"
17463 prefix="$acl_save_prefix"
17464
17465 if test "X$x" = "X$element"; then
17466 haveit=yes
17467 break
17468 fi
17469 done
17470 if test -z "$haveit"; then
17471 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17472 fi
17473 done
17474
17475
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477/* end confdefs.h. */
17478
17479_ACEOF
17480if ac_fn_c_try_compile "$LINENO"; then :
17481 cy_good=1
17482else
17483 cy_good=0
17484fi
17485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486
17487 CFLAGS=$cy_save
17488 if test "x$cy_good" = x1; then :
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17490$as_echo "yes" >&6; }
17491
17492 for element in -Werror; do
17493 haveit=
17494 for x in $CFLAGS; do
17495
17496 acl_save_prefix="$prefix"
17497 prefix="$acl_final_prefix"
17498 acl_save_exec_prefix="$exec_prefix"
17499 exec_prefix="$acl_final_exec_prefix"
17500 eval x=\"$x\"
17501 exec_prefix="$acl_save_exec_prefix"
17502 prefix="$acl_save_prefix"
17503
17504 if test "X$x" = "X$element"; then
17505 haveit=yes
17506 break
17507 fi
17508 done
17509 if test -z "$haveit"; then
17510 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17511 fi
17512 done
17513
17514
17515else
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517$as_echo "no" >&6; }
17518fi
17519
17520 ac_ext=cpp
17521ac_cpp='$CXXCPP $CPPFLAGS'
17522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17525
17526
17527
17528 ac_ext=cpp
17529ac_cpp='$CXXCPP $CPPFLAGS'
17530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17533
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17535$as_echo_n "checking for c++ -Werror... " >&6; }
17536
17537 cy_save=$CXXFLAGS
17538
17539 for element in -Werror; do
17540 haveit=
17541 for x in $CXXFLAGS; do
17542
17543 acl_save_prefix="$prefix"
17544 prefix="$acl_final_prefix"
17545 acl_save_exec_prefix="$exec_prefix"
17546 exec_prefix="$acl_final_exec_prefix"
17547 eval x=\"$x\"
17548 exec_prefix="$acl_save_exec_prefix"
17549 prefix="$acl_save_prefix"
17550
17551 if test "X$x" = "X$element"; then
17552 haveit=yes
17553 break
17554 fi
17555 done
17556 if test -z "$haveit"; then
17557 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17558 fi
17559 done
17560
17561
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563/* end confdefs.h. */
17564
17565_ACEOF
17566if ac_fn_cxx_try_compile "$LINENO"; then :
17567 cy_good=1
17568else
17569 cy_good=0
17570fi
17571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572
17573 CXXFLAGS=$cy_save
17574 if test "x$cy_good" = x1; then :
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17576$as_echo "yes" >&6; }
17577
17578 for element in -Werror; do
17579 haveit=
17580 for x in $CXXFLAGS; do
17581
17582 acl_save_prefix="$prefix"
17583 prefix="$acl_final_prefix"
17584 acl_save_exec_prefix="$exec_prefix"
17585 exec_prefix="$acl_final_exec_prefix"
17586 eval x=\"$x\"
17587 exec_prefix="$acl_save_exec_prefix"
17588 prefix="$acl_save_prefix"
17589
17590 if test "X$x" = "X$element"; then
17591 haveit=yes
17592 break
17593 fi
17594 done
17595 if test -z "$haveit"; then
17596 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17597 fi
17598 done
17599
17600
17601else
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17603$as_echo "no" >&6; }
17604fi
17605
17606 ac_ext=cpp
17607ac_cpp='$CXXCPP $CPPFLAGS'
17608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17611
17612
17613
17614 ac_ext=mm
17615ac_cpp='$OBJCXXCPP $CPPFLAGS'
17616ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17617ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17618ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17619
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17621$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17622
17623 cy_save=$OBJCXXFLAGS
17624
17625 for element in -Werror; do
17626 haveit=
17627 for x in $OBJCXXFLAGS; do
17628
17629 acl_save_prefix="$prefix"
17630 prefix="$acl_final_prefix"
17631 acl_save_exec_prefix="$exec_prefix"
17632 exec_prefix="$acl_final_exec_prefix"
17633 eval x=\"$x\"
17634 exec_prefix="$acl_save_exec_prefix"
17635 prefix="$acl_save_prefix"
17636
17637 if test "X$x" = "X$element"; then
17638 haveit=yes
17639 break
17640 fi
17641 done
17642 if test -z "$haveit"; then
17643 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17644 fi
17645 done
17646
17647
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649/* end confdefs.h. */
17650
17651_ACEOF
17652if ac_fn_objcxx_try_compile "$LINENO"; then :
17653 cy_good=1
17654else
17655 cy_good=0
17656fi
17657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658
17659 OBJCXXFLAGS=$cy_save
17660 if test "x$cy_good" = x1; then :
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662$as_echo "yes" >&6; }
17663
17664 for element in -Werror; do
17665 haveit=
17666 for x in $OBJCXXFLAGS; do
17667
17668 acl_save_prefix="$prefix"
17669 prefix="$acl_final_prefix"
17670 acl_save_exec_prefix="$exec_prefix"
17671 exec_prefix="$acl_final_exec_prefix"
17672 eval x=\"$x\"
17673 exec_prefix="$acl_save_exec_prefix"
17674 prefix="$acl_save_prefix"
17675
17676 if test "X$x" = "X$element"; then
17677 haveit=yes
17678 break
17679 fi
17680 done
17681 if test -z "$haveit"; then
17682 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17683 fi
17684 done
17685
17686
17687else
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17689$as_echo "no" >&6; }
17690fi
17691
17692 ac_ext=cpp
17693ac_cpp='$CXXCPP $CPPFLAGS'
17694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17697
17698
17699
17700
17701
17702
17703 ac_ext=c
17704ac_cpp='$CPP $CPPFLAGS'
17705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17707ac_compiler_gnu=$ac_cv_c_compiler_gnu
17708
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17710$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17711
17712 cy_save=$CFLAGS
17713
17714 for element in -Wno-deprecated-declarations; do
17715 haveit=
17716 for x in $CFLAGS; do
17717
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17722 eval x=\"$x\"
17723 exec_prefix="$acl_save_exec_prefix"
17724 prefix="$acl_save_prefix"
17725
17726 if test "X$x" = "X$element"; then
17727 haveit=yes
17728 break
17729 fi
17730 done
17731 if test -z "$haveit"; then
17732 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17733 fi
17734 done
17735
17736
17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17738/* end confdefs.h. */
17739
17740_ACEOF
17741if ac_fn_c_try_compile "$LINENO"; then :
17742 cy_good=1
17743else
17744 cy_good=0
17745fi
17746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747
17748 CFLAGS=$cy_save
17749 if test "x$cy_good" = x1; then :
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751$as_echo "yes" >&6; }
17752
17753 for element in -Wno-deprecated-declarations; do
17754 haveit=
17755 for x in $CFLAGS; do
17756
17757 acl_save_prefix="$prefix"
17758 prefix="$acl_final_prefix"
17759 acl_save_exec_prefix="$exec_prefix"
17760 exec_prefix="$acl_final_exec_prefix"
17761 eval x=\"$x\"
17762 exec_prefix="$acl_save_exec_prefix"
17763 prefix="$acl_save_prefix"
17764
17765 if test "X$x" = "X$element"; then
17766 haveit=yes
17767 break
17768 fi
17769 done
17770 if test -z "$haveit"; then
17771 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17772 fi
17773 done
17774
17775
17776else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778$as_echo "no" >&6; }
17779fi
17780
17781 ac_ext=cpp
17782ac_cpp='$CXXCPP $CPPFLAGS'
17783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17786
17787
17788
17789 ac_ext=cpp
17790ac_cpp='$CXXCPP $CPPFLAGS'
17791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17794
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17796$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17797
17798 cy_save=$CXXFLAGS
17799
17800 for element in -Wno-deprecated-declarations; do
17801 haveit=
17802 for x in $CXXFLAGS; do
17803
17804 acl_save_prefix="$prefix"
17805 prefix="$acl_final_prefix"
17806 acl_save_exec_prefix="$exec_prefix"
17807 exec_prefix="$acl_final_exec_prefix"
17808 eval x=\"$x\"
17809 exec_prefix="$acl_save_exec_prefix"
17810 prefix="$acl_save_prefix"
17811
17812 if test "X$x" = "X$element"; then
17813 haveit=yes
17814 break
17815 fi
17816 done
17817 if test -z "$haveit"; then
17818 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17819 fi
17820 done
17821
17822
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824/* end confdefs.h. */
17825
17826_ACEOF
17827if ac_fn_cxx_try_compile "$LINENO"; then :
17828 cy_good=1
17829else
17830 cy_good=0
17831fi
17832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833
17834 CXXFLAGS=$cy_save
17835 if test "x$cy_good" = x1; then :
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17837$as_echo "yes" >&6; }
17838
17839 for element in -Wno-deprecated-declarations; do
17840 haveit=
17841 for x in $CXXFLAGS; do
17842
17843 acl_save_prefix="$prefix"
17844 prefix="$acl_final_prefix"
17845 acl_save_exec_prefix="$exec_prefix"
17846 exec_prefix="$acl_final_exec_prefix"
17847 eval x=\"$x\"
17848 exec_prefix="$acl_save_exec_prefix"
17849 prefix="$acl_save_prefix"
17850
17851 if test "X$x" = "X$element"; then
17852 haveit=yes
17853 break
17854 fi
17855 done
17856 if test -z "$haveit"; then
17857 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17858 fi
17859 done
17860
17861
17862else
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17864$as_echo "no" >&6; }
17865fi
17866
17867 ac_ext=cpp
17868ac_cpp='$CXXCPP $CPPFLAGS'
17869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17872
17873
17874
17875 ac_ext=mm
17876ac_cpp='$OBJCXXCPP $CPPFLAGS'
17877ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17882$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17883
17884 cy_save=$OBJCXXFLAGS
17885
17886 for element in -Wno-deprecated-declarations; do
17887 haveit=
17888 for x in $OBJCXXFLAGS; do
17889
17890 acl_save_prefix="$prefix"
17891 prefix="$acl_final_prefix"
17892 acl_save_exec_prefix="$exec_prefix"
17893 exec_prefix="$acl_final_exec_prefix"
17894 eval x=\"$x\"
17895 exec_prefix="$acl_save_exec_prefix"
17896 prefix="$acl_save_prefix"
17897
17898 if test "X$x" = "X$element"; then
17899 haveit=yes
17900 break
17901 fi
17902 done
17903 if test -z "$haveit"; then
17904 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17905 fi
17906 done
17907
17908
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910/* end confdefs.h. */
17911
17912_ACEOF
17913if ac_fn_objcxx_try_compile "$LINENO"; then :
17914 cy_good=1
17915else
17916 cy_good=0
17917fi
17918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919
17920 OBJCXXFLAGS=$cy_save
17921 if test "x$cy_good" = x1; then :
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17923$as_echo "yes" >&6; }
17924
17925 for element in -Wno-deprecated-declarations; do
17926 haveit=
17927 for x in $OBJCXXFLAGS; do
17928
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 acl_save_exec_prefix="$exec_prefix"
17932 exec_prefix="$acl_final_exec_prefix"
17933 eval x=\"$x\"
17934 exec_prefix="$acl_save_exec_prefix"
17935 prefix="$acl_save_prefix"
17936
17937 if test "X$x" = "X$element"; then
17938 haveit=yes
17939 break
17940 fi
17941 done
17942 if test -z "$haveit"; then
17943 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17944 fi
17945 done
17946
17947
17948else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17950$as_echo "no" >&6; }
17951fi
17952
17953 ac_ext=cpp
17954ac_cpp='$CXXCPP $CPPFLAGS'
17955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17958
17959
17960
17961
17962
17963
17964 ac_ext=c
17965ac_cpp='$CPP $CPPFLAGS'
17966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17968ac_compiler_gnu=$ac_cv_c_compiler_gnu
17969
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17971$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17972
17973 cy_save=$CFLAGS
17974
17975 for element in -Wno-dangling-else; do
17976 haveit=
17977 for x in $CFLAGS; do
17978
17979 acl_save_prefix="$prefix"
17980 prefix="$acl_final_prefix"
17981 acl_save_exec_prefix="$exec_prefix"
17982 exec_prefix="$acl_final_exec_prefix"
17983 eval x=\"$x\"
17984 exec_prefix="$acl_save_exec_prefix"
17985 prefix="$acl_save_prefix"
17986
17987 if test "X$x" = "X$element"; then
17988 haveit=yes
17989 break
17990 fi
17991 done
17992 if test -z "$haveit"; then
17993 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17994 fi
17995 done
17996
17997
17998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17999/* end confdefs.h. */
18000
18001_ACEOF
18002if ac_fn_c_try_compile "$LINENO"; then :
18003 cy_good=1
18004else
18005 cy_good=0
18006fi
18007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18008
18009 CFLAGS=$cy_save
18010 if test "x$cy_good" = x1; then :
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18012$as_echo "yes" >&6; }
18013
18014 for element in -Wno-dangling-else; do
18015 haveit=
18016 for x in $CFLAGS; do
18017
18018 acl_save_prefix="$prefix"
18019 prefix="$acl_final_prefix"
18020 acl_save_exec_prefix="$exec_prefix"
18021 exec_prefix="$acl_final_exec_prefix"
18022 eval x=\"$x\"
18023 exec_prefix="$acl_save_exec_prefix"
18024 prefix="$acl_save_prefix"
18025
18026 if test "X$x" = "X$element"; then
18027 haveit=yes
18028 break
18029 fi
18030 done
18031 if test -z "$haveit"; then
18032 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18033 fi
18034 done
18035
18036
18037else
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18039$as_echo "no" >&6; }
18040fi
18041
18042 ac_ext=cpp
18043ac_cpp='$CXXCPP $CPPFLAGS'
18044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18047
18048
18049
18050 ac_ext=cpp
18051ac_cpp='$CXXCPP $CPPFLAGS'
18052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18055
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18057$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18058
18059 cy_save=$CXXFLAGS
18060
18061 for element in -Wno-dangling-else; do
18062 haveit=
18063 for x in $CXXFLAGS; do
18064
18065 acl_save_prefix="$prefix"
18066 prefix="$acl_final_prefix"
18067 acl_save_exec_prefix="$exec_prefix"
18068 exec_prefix="$acl_final_exec_prefix"
18069 eval x=\"$x\"
18070 exec_prefix="$acl_save_exec_prefix"
18071 prefix="$acl_save_prefix"
18072
18073 if test "X$x" = "X$element"; then
18074 haveit=yes
18075 break
18076 fi
18077 done
18078 if test -z "$haveit"; then
18079 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18080 fi
18081 done
18082
18083
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085/* end confdefs.h. */
18086
18087_ACEOF
18088if ac_fn_cxx_try_compile "$LINENO"; then :
18089 cy_good=1
18090else
18091 cy_good=0
18092fi
18093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094
18095 CXXFLAGS=$cy_save
18096 if test "x$cy_good" = x1; then :
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18098$as_echo "yes" >&6; }
18099
18100 for element in -Wno-dangling-else; do
18101 haveit=
18102 for x in $CXXFLAGS; do
18103
18104 acl_save_prefix="$prefix"
18105 prefix="$acl_final_prefix"
18106 acl_save_exec_prefix="$exec_prefix"
18107 exec_prefix="$acl_final_exec_prefix"
18108 eval x=\"$x\"
18109 exec_prefix="$acl_save_exec_prefix"
18110 prefix="$acl_save_prefix"
18111
18112 if test "X$x" = "X$element"; then
18113 haveit=yes
18114 break
18115 fi
18116 done
18117 if test -z "$haveit"; then
18118 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18119 fi
18120 done
18121
18122
18123else
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125$as_echo "no" >&6; }
18126fi
18127
18128 ac_ext=cpp
18129ac_cpp='$CXXCPP $CPPFLAGS'
18130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18133
18134
18135
18136 ac_ext=mm
18137ac_cpp='$OBJCXXCPP $CPPFLAGS'
18138ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18139ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18140ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18141
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18143$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18144
18145 cy_save=$OBJCXXFLAGS
18146
18147 for element in -Wno-dangling-else; do
18148 haveit=
18149 for x in $OBJCXXFLAGS; do
18150
18151 acl_save_prefix="$prefix"
18152 prefix="$acl_final_prefix"
18153 acl_save_exec_prefix="$exec_prefix"
18154 exec_prefix="$acl_final_exec_prefix"
18155 eval x=\"$x\"
18156 exec_prefix="$acl_save_exec_prefix"
18157 prefix="$acl_save_prefix"
18158
18159 if test "X$x" = "X$element"; then
18160 haveit=yes
18161 break
18162 fi
18163 done
18164 if test -z "$haveit"; then
18165 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18166 fi
18167 done
18168
18169
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171/* end confdefs.h. */
18172
18173_ACEOF
18174if ac_fn_objcxx_try_compile "$LINENO"; then :
18175 cy_good=1
18176else
18177 cy_good=0
18178fi
18179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180
18181 OBJCXXFLAGS=$cy_save
18182 if test "x$cy_good" = x1; then :
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18184$as_echo "yes" >&6; }
18185
18186 for element in -Wno-dangling-else; do
18187 haveit=
18188 for x in $OBJCXXFLAGS; do
18189
18190 acl_save_prefix="$prefix"
18191 prefix="$acl_final_prefix"
18192 acl_save_exec_prefix="$exec_prefix"
18193 exec_prefix="$acl_final_exec_prefix"
18194 eval x=\"$x\"
18195 exec_prefix="$acl_save_exec_prefix"
18196 prefix="$acl_save_prefix"
18197
18198 if test "X$x" = "X$element"; then
18199 haveit=yes
18200 break
18201 fi
18202 done
18203 if test -z "$haveit"; then
18204 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18205 fi
18206 done
18207
18208
18209else
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18211$as_echo "no" >&6; }
18212fi
18213
18214 ac_ext=cpp
18215ac_cpp='$CXXCPP $CPPFLAGS'
18216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18219
18220
18221
18222
18223
18224 ac_ext=c
18225ac_cpp='$CPP $CPPFLAGS'
18226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18228ac_compiler_gnu=$ac_cv_c_compiler_gnu
18229
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
18231$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
18232
18233 cy_save=$CFLAGS
18234
18235 for element in -Wno-empty-body; do
18236 haveit=
18237 for x in $CFLAGS; do
18238
18239 acl_save_prefix="$prefix"
18240 prefix="$acl_final_prefix"
18241 acl_save_exec_prefix="$exec_prefix"
18242 exec_prefix="$acl_final_exec_prefix"
18243 eval x=\"$x\"
18244 exec_prefix="$acl_save_exec_prefix"
18245 prefix="$acl_save_prefix"
18246
18247 if test "X$x" = "X$element"; then
18248 haveit=yes
18249 break
18250 fi
18251 done
18252 if test -z "$haveit"; then
18253 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18254 fi
18255 done
18256
18257
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259/* end confdefs.h. */
18260
18261_ACEOF
18262if ac_fn_c_try_compile "$LINENO"; then :
18263 cy_good=1
18264else
18265 cy_good=0
18266fi
18267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268
18269 CFLAGS=$cy_save
18270 if test "x$cy_good" = x1; then :
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18272$as_echo "yes" >&6; }
18273
18274 for element in -Wno-empty-body; do
18275 haveit=
18276 for x in $CFLAGS; do
18277
18278 acl_save_prefix="$prefix"
18279 prefix="$acl_final_prefix"
18280 acl_save_exec_prefix="$exec_prefix"
18281 exec_prefix="$acl_final_exec_prefix"
18282 eval x=\"$x\"
18283 exec_prefix="$acl_save_exec_prefix"
18284 prefix="$acl_save_prefix"
18285
18286 if test "X$x" = "X$element"; then
18287 haveit=yes
18288 break
18289 fi
18290 done
18291 if test -z "$haveit"; then
18292 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18293 fi
18294 done
18295
18296
18297else
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18299$as_echo "no" >&6; }
18300fi
18301
18302 ac_ext=cpp
18303ac_cpp='$CXXCPP $CPPFLAGS'
18304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18307
18308
18309
18310 ac_ext=cpp
18311ac_cpp='$CXXCPP $CPPFLAGS'
18312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18315
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
18317$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
18318
18319 cy_save=$CXXFLAGS
18320
18321 for element in -Wno-empty-body; do
18322 haveit=
18323 for x in $CXXFLAGS; do
18324
18325 acl_save_prefix="$prefix"
18326 prefix="$acl_final_prefix"
18327 acl_save_exec_prefix="$exec_prefix"
18328 exec_prefix="$acl_final_exec_prefix"
18329 eval x=\"$x\"
18330 exec_prefix="$acl_save_exec_prefix"
18331 prefix="$acl_save_prefix"
18332
18333 if test "X$x" = "X$element"; then
18334 haveit=yes
18335 break
18336 fi
18337 done
18338 if test -z "$haveit"; then
18339 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18340 fi
18341 done
18342
18343
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345/* end confdefs.h. */
18346
18347_ACEOF
18348if ac_fn_cxx_try_compile "$LINENO"; then :
18349 cy_good=1
18350else
18351 cy_good=0
18352fi
18353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18354
18355 CXXFLAGS=$cy_save
18356 if test "x$cy_good" = x1; then :
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358$as_echo "yes" >&6; }
18359
18360 for element in -Wno-empty-body; do
18361 haveit=
18362 for x in $CXXFLAGS; do
18363
18364 acl_save_prefix="$prefix"
18365 prefix="$acl_final_prefix"
18366 acl_save_exec_prefix="$exec_prefix"
18367 exec_prefix="$acl_final_exec_prefix"
18368 eval x=\"$x\"
18369 exec_prefix="$acl_save_exec_prefix"
18370 prefix="$acl_save_prefix"
18371
18372 if test "X$x" = "X$element"; then
18373 haveit=yes
18374 break
18375 fi
18376 done
18377 if test -z "$haveit"; then
18378 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18379 fi
18380 done
18381
18382
18383else
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18385$as_echo "no" >&6; }
18386fi
18387
18388 ac_ext=cpp
18389ac_cpp='$CXXCPP $CPPFLAGS'
18390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18393
18394
18395
18396 ac_ext=mm
18397ac_cpp='$OBJCXXCPP $CPPFLAGS'
18398ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18401
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
18403$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
18404
18405 cy_save=$OBJCXXFLAGS
18406
18407 for element in -Wno-empty-body; do
18408 haveit=
18409 for x in $OBJCXXFLAGS; do
18410
18411 acl_save_prefix="$prefix"
18412 prefix="$acl_final_prefix"
18413 acl_save_exec_prefix="$exec_prefix"
18414 exec_prefix="$acl_final_exec_prefix"
18415 eval x=\"$x\"
18416 exec_prefix="$acl_save_exec_prefix"
18417 prefix="$acl_save_prefix"
18418
18419 if test "X$x" = "X$element"; then
18420 haveit=yes
18421 break
18422 fi
18423 done
18424 if test -z "$haveit"; then
18425 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18426 fi
18427 done
18428
18429
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h. */
18432
18433_ACEOF
18434if ac_fn_objcxx_try_compile "$LINENO"; then :
18435 cy_good=1
18436else
18437 cy_good=0
18438fi
18439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18440
18441 OBJCXXFLAGS=$cy_save
18442 if test "x$cy_good" = x1; then :
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18444$as_echo "yes" >&6; }
18445
18446 for element in -Wno-empty-body; do
18447 haveit=
18448 for x in $OBJCXXFLAGS; do
18449
18450 acl_save_prefix="$prefix"
18451 prefix="$acl_final_prefix"
18452 acl_save_exec_prefix="$exec_prefix"
18453 exec_prefix="$acl_final_exec_prefix"
18454 eval x=\"$x\"
18455 exec_prefix="$acl_save_exec_prefix"
18456 prefix="$acl_save_prefix"
18457
18458 if test "X$x" = "X$element"; then
18459 haveit=yes
18460 break
18461 fi
18462 done
18463 if test -z "$haveit"; then
18464 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18465 fi
18466 done
18467
18468
18469else
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471$as_echo "no" >&6; }
18472fi
18473
18474 ac_ext=cpp
18475ac_cpp='$CXXCPP $CPPFLAGS'
18476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479
18480
18481
18482
18483
18484 ac_ext=c
18485ac_cpp='$CPP $CPPFLAGS'
18486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18491$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18492
18493 cy_save=$CFLAGS
18494
18495 for element in -Wno-overloaded-virtual; do
18496 haveit=
18497 for x in $CFLAGS; do
18498
18499 acl_save_prefix="$prefix"
18500 prefix="$acl_final_prefix"
18501 acl_save_exec_prefix="$exec_prefix"
18502 exec_prefix="$acl_final_exec_prefix"
18503 eval x=\"$x\"
18504 exec_prefix="$acl_save_exec_prefix"
18505 prefix="$acl_save_prefix"
18506
18507 if test "X$x" = "X$element"; then
18508 haveit=yes
18509 break
18510 fi
18511 done
18512 if test -z "$haveit"; then
18513 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18514 fi
18515 done
18516
18517
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519/* end confdefs.h. */
18520
18521_ACEOF
18522if ac_fn_c_try_compile "$LINENO"; then :
18523 cy_good=1
18524else
18525 cy_good=0
18526fi
18527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528
18529 CFLAGS=$cy_save
18530 if test "x$cy_good" = x1; then :
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18532$as_echo "yes" >&6; }
18533
18534 for element in -Wno-overloaded-virtual; do
18535 haveit=
18536 for x in $CFLAGS; do
18537
18538 acl_save_prefix="$prefix"
18539 prefix="$acl_final_prefix"
18540 acl_save_exec_prefix="$exec_prefix"
18541 exec_prefix="$acl_final_exec_prefix"
18542 eval x=\"$x\"
18543 exec_prefix="$acl_save_exec_prefix"
18544 prefix="$acl_save_prefix"
18545
18546 if test "X$x" = "X$element"; then
18547 haveit=yes
18548 break
18549 fi
18550 done
18551 if test -z "$haveit"; then
18552 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18553 fi
18554 done
18555
18556
18557else
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18559$as_echo "no" >&6; }
18560fi
18561
18562 ac_ext=cpp
18563ac_cpp='$CXXCPP $CPPFLAGS'
18564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18567
18568
18569
18570 ac_ext=cpp
18571ac_cpp='$CXXCPP $CPPFLAGS'
18572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18575
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18577$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18578
18579 cy_save=$CXXFLAGS
18580
18581 for element in -Wno-overloaded-virtual; do
18582 haveit=
18583 for x in $CXXFLAGS; do
18584
18585 acl_save_prefix="$prefix"
18586 prefix="$acl_final_prefix"
18587 acl_save_exec_prefix="$exec_prefix"
18588 exec_prefix="$acl_final_exec_prefix"
18589 eval x=\"$x\"
18590 exec_prefix="$acl_save_exec_prefix"
18591 prefix="$acl_save_prefix"
18592
18593 if test "X$x" = "X$element"; then
18594 haveit=yes
18595 break
18596 fi
18597 done
18598 if test -z "$haveit"; then
18599 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18600 fi
18601 done
18602
18603
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605/* end confdefs.h. */
18606
18607_ACEOF
18608if ac_fn_cxx_try_compile "$LINENO"; then :
18609 cy_good=1
18610else
18611 cy_good=0
18612fi
18613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614
18615 CXXFLAGS=$cy_save
18616 if test "x$cy_good" = x1; then :
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18618$as_echo "yes" >&6; }
18619
18620 for element in -Wno-overloaded-virtual; do
18621 haveit=
18622 for x in $CXXFLAGS; do
18623
18624 acl_save_prefix="$prefix"
18625 prefix="$acl_final_prefix"
18626 acl_save_exec_prefix="$exec_prefix"
18627 exec_prefix="$acl_final_exec_prefix"
18628 eval x=\"$x\"
18629 exec_prefix="$acl_save_exec_prefix"
18630 prefix="$acl_save_prefix"
18631
18632 if test "X$x" = "X$element"; then
18633 haveit=yes
18634 break
18635 fi
18636 done
18637 if test -z "$haveit"; then
18638 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18639 fi
18640 done
18641
18642
18643else
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645$as_echo "no" >&6; }
18646fi
18647
18648 ac_ext=cpp
18649ac_cpp='$CXXCPP $CPPFLAGS'
18650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18653
18654
18655
18656 ac_ext=mm
18657ac_cpp='$OBJCXXCPP $CPPFLAGS'
18658ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18659ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18660ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18661
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18663$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18664
18665 cy_save=$OBJCXXFLAGS
18666
18667 for element in -Wno-overloaded-virtual; do
18668 haveit=
18669 for x in $OBJCXXFLAGS; do
18670
18671 acl_save_prefix="$prefix"
18672 prefix="$acl_final_prefix"
18673 acl_save_exec_prefix="$exec_prefix"
18674 exec_prefix="$acl_final_exec_prefix"
18675 eval x=\"$x\"
18676 exec_prefix="$acl_save_exec_prefix"
18677 prefix="$acl_save_prefix"
18678
18679 if test "X$x" = "X$element"; then
18680 haveit=yes
18681 break
18682 fi
18683 done
18684 if test -z "$haveit"; then
18685 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18686 fi
18687 done
18688
18689
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691/* end confdefs.h. */
18692
18693_ACEOF
18694if ac_fn_objcxx_try_compile "$LINENO"; then :
18695 cy_good=1
18696else
18697 cy_good=0
18698fi
18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700
18701 OBJCXXFLAGS=$cy_save
18702 if test "x$cy_good" = x1; then :
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704$as_echo "yes" >&6; }
18705
18706 for element in -Wno-overloaded-virtual; do
18707 haveit=
18708 for x in $OBJCXXFLAGS; do
18709
18710 acl_save_prefix="$prefix"
18711 prefix="$acl_final_prefix"
18712 acl_save_exec_prefix="$exec_prefix"
18713 exec_prefix="$acl_final_exec_prefix"
18714 eval x=\"$x\"
18715 exec_prefix="$acl_save_exec_prefix"
18716 prefix="$acl_save_prefix"
18717
18718 if test "X$x" = "X$element"; then
18719 haveit=yes
18720 break
18721 fi
18722 done
18723 if test -z "$haveit"; then
18724 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18725 fi
18726 done
18727
18728
18729else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731$as_echo "no" >&6; }
18732fi
18733
18734 ac_ext=cpp
18735ac_cpp='$CXXCPP $CPPFLAGS'
18736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18739
18740
18741
18742
18743
18744 ac_ext=c
18745ac_cpp='$CPP $CPPFLAGS'
18746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18748ac_compiler_gnu=$ac_cv_c_compiler_gnu
18749
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18751$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18752
18753 cy_save=$CFLAGS
18754
18755 for element in -Wno-parentheses; do
18756 haveit=
18757 for x in $CFLAGS; do
18758
18759 acl_save_prefix="$prefix"
18760 prefix="$acl_final_prefix"
18761 acl_save_exec_prefix="$exec_prefix"
18762 exec_prefix="$acl_final_exec_prefix"
18763 eval x=\"$x\"
18764 exec_prefix="$acl_save_exec_prefix"
18765 prefix="$acl_save_prefix"
18766
18767 if test "X$x" = "X$element"; then
18768 haveit=yes
18769 break
18770 fi
18771 done
18772 if test -z "$haveit"; then
18773 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18774 fi
18775 done
18776
18777
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h. */
18780
18781_ACEOF
18782if ac_fn_c_try_compile "$LINENO"; then :
18783 cy_good=1
18784else
18785 cy_good=0
18786fi
18787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788
18789 CFLAGS=$cy_save
18790 if test "x$cy_good" = x1; then :
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18792$as_echo "yes" >&6; }
18793
18794 for element in -Wno-parentheses; do
18795 haveit=
18796 for x in $CFLAGS; do
18797
18798 acl_save_prefix="$prefix"
18799 prefix="$acl_final_prefix"
18800 acl_save_exec_prefix="$exec_prefix"
18801 exec_prefix="$acl_final_exec_prefix"
18802 eval x=\"$x\"
18803 exec_prefix="$acl_save_exec_prefix"
18804 prefix="$acl_save_prefix"
18805
18806 if test "X$x" = "X$element"; then
18807 haveit=yes
18808 break
18809 fi
18810 done
18811 if test -z "$haveit"; then
18812 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18813 fi
18814 done
18815
18816
18817else
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819$as_echo "no" >&6; }
18820fi
18821
18822 ac_ext=cpp
18823ac_cpp='$CXXCPP $CPPFLAGS'
18824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827
18828
18829
18830 ac_ext=cpp
18831ac_cpp='$CXXCPP $CPPFLAGS'
18832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18835
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18837$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18838
18839 cy_save=$CXXFLAGS
18840
18841 for element in -Wno-parentheses; do
18842 haveit=
18843 for x in $CXXFLAGS; do
18844
18845 acl_save_prefix="$prefix"
18846 prefix="$acl_final_prefix"
18847 acl_save_exec_prefix="$exec_prefix"
18848 exec_prefix="$acl_final_exec_prefix"
18849 eval x=\"$x\"
18850 exec_prefix="$acl_save_exec_prefix"
18851 prefix="$acl_save_prefix"
18852
18853 if test "X$x" = "X$element"; then
18854 haveit=yes
18855 break
18856 fi
18857 done
18858 if test -z "$haveit"; then
18859 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18860 fi
18861 done
18862
18863
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865/* end confdefs.h. */
18866
18867_ACEOF
18868if ac_fn_cxx_try_compile "$LINENO"; then :
18869 cy_good=1
18870else
18871 cy_good=0
18872fi
18873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874
18875 CXXFLAGS=$cy_save
18876 if test "x$cy_good" = x1; then :
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18878$as_echo "yes" >&6; }
18879
18880 for element in -Wno-parentheses; do
18881 haveit=
18882 for x in $CXXFLAGS; do
18883
18884 acl_save_prefix="$prefix"
18885 prefix="$acl_final_prefix"
18886 acl_save_exec_prefix="$exec_prefix"
18887 exec_prefix="$acl_final_exec_prefix"
18888 eval x=\"$x\"
18889 exec_prefix="$acl_save_exec_prefix"
18890 prefix="$acl_save_prefix"
18891
18892 if test "X$x" = "X$element"; then
18893 haveit=yes
18894 break
18895 fi
18896 done
18897 if test -z "$haveit"; then
18898 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18899 fi
18900 done
18901
18902
18903else
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905$as_echo "no" >&6; }
18906fi
18907
18908 ac_ext=cpp
18909ac_cpp='$CXXCPP $CPPFLAGS'
18910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18913
18914
18915
18916 ac_ext=mm
18917ac_cpp='$OBJCXXCPP $CPPFLAGS'
18918ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18921
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18923$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18924
18925 cy_save=$OBJCXXFLAGS
18926
18927 for element in -Wno-parentheses; do
18928 haveit=
18929 for x in $OBJCXXFLAGS; do
18930
18931 acl_save_prefix="$prefix"
18932 prefix="$acl_final_prefix"
18933 acl_save_exec_prefix="$exec_prefix"
18934 exec_prefix="$acl_final_exec_prefix"
18935 eval x=\"$x\"
18936 exec_prefix="$acl_save_exec_prefix"
18937 prefix="$acl_save_prefix"
18938
18939 if test "X$x" = "X$element"; then
18940 haveit=yes
18941 break
18942 fi
18943 done
18944 if test -z "$haveit"; then
18945 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18946 fi
18947 done
18948
18949
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951/* end confdefs.h. */
18952
18953_ACEOF
18954if ac_fn_objcxx_try_compile "$LINENO"; then :
18955 cy_good=1
18956else
18957 cy_good=0
18958fi
18959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960
18961 OBJCXXFLAGS=$cy_save
18962 if test "x$cy_good" = x1; then :
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18964$as_echo "yes" >&6; }
18965
18966 for element in -Wno-parentheses; do
18967 haveit=
18968 for x in $OBJCXXFLAGS; do
18969
18970 acl_save_prefix="$prefix"
18971 prefix="$acl_final_prefix"
18972 acl_save_exec_prefix="$exec_prefix"
18973 exec_prefix="$acl_final_exec_prefix"
18974 eval x=\"$x\"
18975 exec_prefix="$acl_save_exec_prefix"
18976 prefix="$acl_save_prefix"
18977
18978 if test "X$x" = "X$element"; then
18979 haveit=yes
18980 break
18981 fi
18982 done
18983 if test -z "$haveit"; then
18984 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18985 fi
18986 done
18987
18988
18989else
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18991$as_echo "no" >&6; }
18992fi
18993
18994 ac_ext=cpp
18995ac_cpp='$CXXCPP $CPPFLAGS'
18996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18999
19000
19001
19002
19003
19004 ac_ext=c
19005ac_cpp='$CPP $CPPFLAGS'
19006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008ac_compiler_gnu=$ac_cv_c_compiler_gnu
19009
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
19011$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
19012
19013 cy_save=$CFLAGS
19014
19015 for element in -Wno-tautological-undefined-compare; do
19016 haveit=
19017 for x in $CFLAGS; do
19018
19019 acl_save_prefix="$prefix"
19020 prefix="$acl_final_prefix"
19021 acl_save_exec_prefix="$exec_prefix"
19022 exec_prefix="$acl_final_exec_prefix"
19023 eval x=\"$x\"
19024 exec_prefix="$acl_save_exec_prefix"
19025 prefix="$acl_save_prefix"
19026
19027 if test "X$x" = "X$element"; then
19028 haveit=yes
19029 break
19030 fi
19031 done
19032 if test -z "$haveit"; then
19033 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19034 fi
19035 done
19036
19037
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039/* end confdefs.h. */
19040
19041_ACEOF
19042if ac_fn_c_try_compile "$LINENO"; then :
19043 cy_good=1
19044else
19045 cy_good=0
19046fi
19047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048
19049 CFLAGS=$cy_save
19050 if test "x$cy_good" = x1; then :
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19052$as_echo "yes" >&6; }
19053
19054 for element in -Wno-tautological-undefined-compare; do
19055 haveit=
19056 for x in $CFLAGS; do
19057
19058 acl_save_prefix="$prefix"
19059 prefix="$acl_final_prefix"
19060 acl_save_exec_prefix="$exec_prefix"
19061 exec_prefix="$acl_final_exec_prefix"
19062 eval x=\"$x\"
19063 exec_prefix="$acl_save_exec_prefix"
19064 prefix="$acl_save_prefix"
19065
19066 if test "X$x" = "X$element"; then
19067 haveit=yes
19068 break
19069 fi
19070 done
19071 if test -z "$haveit"; then
19072 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19073 fi
19074 done
19075
19076
19077else
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19079$as_echo "no" >&6; }
19080fi
19081
19082 ac_ext=cpp
19083ac_cpp='$CXXCPP $CPPFLAGS'
19084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19087
19088
19089
19090 ac_ext=cpp
19091ac_cpp='$CXXCPP $CPPFLAGS'
19092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19095
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
19097$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
19098
19099 cy_save=$CXXFLAGS
19100
19101 for element in -Wno-tautological-undefined-compare; do
19102 haveit=
19103 for x in $CXXFLAGS; do
19104
19105 acl_save_prefix="$prefix"
19106 prefix="$acl_final_prefix"
19107 acl_save_exec_prefix="$exec_prefix"
19108 exec_prefix="$acl_final_exec_prefix"
19109 eval x=\"$x\"
19110 exec_prefix="$acl_save_exec_prefix"
19111 prefix="$acl_save_prefix"
19112
19113 if test "X$x" = "X$element"; then
19114 haveit=yes
19115 break
19116 fi
19117 done
19118 if test -z "$haveit"; then
19119 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19120 fi
19121 done
19122
19123
19124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125/* end confdefs.h. */
19126
19127_ACEOF
19128if ac_fn_cxx_try_compile "$LINENO"; then :
19129 cy_good=1
19130else
19131 cy_good=0
19132fi
19133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134
19135 CXXFLAGS=$cy_save
19136 if test "x$cy_good" = x1; then :
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19138$as_echo "yes" >&6; }
19139
19140 for element in -Wno-tautological-undefined-compare; do
19141 haveit=
19142 for x in $CXXFLAGS; do
19143
19144 acl_save_prefix="$prefix"
19145 prefix="$acl_final_prefix"
19146 acl_save_exec_prefix="$exec_prefix"
19147 exec_prefix="$acl_final_exec_prefix"
19148 eval x=\"$x\"
19149 exec_prefix="$acl_save_exec_prefix"
19150 prefix="$acl_save_prefix"
19151
19152 if test "X$x" = "X$element"; then
19153 haveit=yes
19154 break
19155 fi
19156 done
19157 if test -z "$haveit"; then
19158 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19159 fi
19160 done
19161
19162
19163else
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19165$as_echo "no" >&6; }
19166fi
19167
19168 ac_ext=cpp
19169ac_cpp='$CXXCPP $CPPFLAGS'
19170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19173
19174
19175
19176 ac_ext=mm
19177ac_cpp='$OBJCXXCPP $CPPFLAGS'
19178ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19181
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
19183$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
19184
19185 cy_save=$OBJCXXFLAGS
19186
19187 for element in -Wno-tautological-undefined-compare; do
19188 haveit=
19189 for x in $OBJCXXFLAGS; do
19190
19191 acl_save_prefix="$prefix"
19192 prefix="$acl_final_prefix"
19193 acl_save_exec_prefix="$exec_prefix"
19194 exec_prefix="$acl_final_exec_prefix"
19195 eval x=\"$x\"
19196 exec_prefix="$acl_save_exec_prefix"
19197 prefix="$acl_save_prefix"
19198
19199 if test "X$x" = "X$element"; then
19200 haveit=yes
19201 break
19202 fi
19203 done
19204 if test -z "$haveit"; then
19205 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19206 fi
19207 done
19208
19209
19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211/* end confdefs.h. */
19212
19213_ACEOF
19214if ac_fn_objcxx_try_compile "$LINENO"; then :
19215 cy_good=1
19216else
19217 cy_good=0
19218fi
19219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220
19221 OBJCXXFLAGS=$cy_save
19222 if test "x$cy_good" = x1; then :
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19224$as_echo "yes" >&6; }
19225
19226 for element in -Wno-tautological-undefined-compare; do
19227 haveit=
19228 for x in $OBJCXXFLAGS; do
19229
19230 acl_save_prefix="$prefix"
19231 prefix="$acl_final_prefix"
19232 acl_save_exec_prefix="$exec_prefix"
19233 exec_prefix="$acl_final_exec_prefix"
19234 eval x=\"$x\"
19235 exec_prefix="$acl_save_exec_prefix"
19236 prefix="$acl_save_prefix"
19237
19238 if test "X$x" = "X$element"; then
19239 haveit=yes
19240 break
19241 fi
19242 done
19243 if test -z "$haveit"; then
19244 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19245 fi
19246 done
19247
19248
19249else
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19251$as_echo "no" >&6; }
19252fi
19253
19254 ac_ext=cpp
19255ac_cpp='$CXXCPP $CPPFLAGS'
19256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19259
19260
19261
19262
19263
19264 ac_ext=c
19265ac_cpp='$CPP $CPPFLAGS'
19266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
19271$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
19272
19273 cy_save=$CFLAGS
19274
19275 for element in -Wno-unneeded-internal-declaration; do
19276 haveit=
19277 for x in $CFLAGS; do
19278
19279 acl_save_prefix="$prefix"
19280 prefix="$acl_final_prefix"
19281 acl_save_exec_prefix="$exec_prefix"
19282 exec_prefix="$acl_final_exec_prefix"
19283 eval x=\"$x\"
19284 exec_prefix="$acl_save_exec_prefix"
19285 prefix="$acl_save_prefix"
19286
19287 if test "X$x" = "X$element"; then
19288 haveit=yes
19289 break
19290 fi
19291 done
19292 if test -z "$haveit"; then
19293 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19294 fi
19295 done
19296
19297
19298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19299/* end confdefs.h. */
19300
19301_ACEOF
19302if ac_fn_c_try_compile "$LINENO"; then :
19303 cy_good=1
19304else
19305 cy_good=0
19306fi
19307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308
19309 CFLAGS=$cy_save
19310 if test "x$cy_good" = x1; then :
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19312$as_echo "yes" >&6; }
19313
19314 for element in -Wno-unneeded-internal-declaration; do
19315 haveit=
19316 for x in $CFLAGS; do
19317
19318 acl_save_prefix="$prefix"
19319 prefix="$acl_final_prefix"
19320 acl_save_exec_prefix="$exec_prefix"
19321 exec_prefix="$acl_final_exec_prefix"
19322 eval x=\"$x\"
19323 exec_prefix="$acl_save_exec_prefix"
19324 prefix="$acl_save_prefix"
19325
19326 if test "X$x" = "X$element"; then
19327 haveit=yes
19328 break
19329 fi
19330 done
19331 if test -z "$haveit"; then
19332 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19333 fi
19334 done
19335
19336
19337else
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19339$as_echo "no" >&6; }
19340fi
19341
19342 ac_ext=cpp
19343ac_cpp='$CXXCPP $CPPFLAGS'
19344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347
19348
19349
19350 ac_ext=cpp
19351ac_cpp='$CXXCPP $CPPFLAGS'
19352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19355
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
19357$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
19358
19359 cy_save=$CXXFLAGS
19360
19361 for element in -Wno-unneeded-internal-declaration; do
19362 haveit=
19363 for x in $CXXFLAGS; do
19364
19365 acl_save_prefix="$prefix"
19366 prefix="$acl_final_prefix"
19367 acl_save_exec_prefix="$exec_prefix"
19368 exec_prefix="$acl_final_exec_prefix"
19369 eval x=\"$x\"
19370 exec_prefix="$acl_save_exec_prefix"
19371 prefix="$acl_save_prefix"
19372
19373 if test "X$x" = "X$element"; then
19374 haveit=yes
19375 break
19376 fi
19377 done
19378 if test -z "$haveit"; then
19379 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19380 fi
19381 done
19382
19383
19384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385/* end confdefs.h. */
19386
19387_ACEOF
19388if ac_fn_cxx_try_compile "$LINENO"; then :
19389 cy_good=1
19390else
19391 cy_good=0
19392fi
19393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19394
19395 CXXFLAGS=$cy_save
19396 if test "x$cy_good" = x1; then :
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19398$as_echo "yes" >&6; }
19399
19400 for element in -Wno-unneeded-internal-declaration; do
19401 haveit=
19402 for x in $CXXFLAGS; do
19403
19404 acl_save_prefix="$prefix"
19405 prefix="$acl_final_prefix"
19406 acl_save_exec_prefix="$exec_prefix"
19407 exec_prefix="$acl_final_exec_prefix"
19408 eval x=\"$x\"
19409 exec_prefix="$acl_save_exec_prefix"
19410 prefix="$acl_save_prefix"
19411
19412 if test "X$x" = "X$element"; then
19413 haveit=yes
19414 break
19415 fi
19416 done
19417 if test -z "$haveit"; then
19418 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19419 fi
19420 done
19421
19422
19423else
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425$as_echo "no" >&6; }
19426fi
19427
19428 ac_ext=cpp
19429ac_cpp='$CXXCPP $CPPFLAGS'
19430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19433
19434
19435
19436 ac_ext=mm
19437ac_cpp='$OBJCXXCPP $CPPFLAGS'
19438ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19439ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19440ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19441
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
19443$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
19444
19445 cy_save=$OBJCXXFLAGS
19446
19447 for element in -Wno-unneeded-internal-declaration; do
19448 haveit=
19449 for x in $OBJCXXFLAGS; do
19450
19451 acl_save_prefix="$prefix"
19452 prefix="$acl_final_prefix"
19453 acl_save_exec_prefix="$exec_prefix"
19454 exec_prefix="$acl_final_exec_prefix"
19455 eval x=\"$x\"
19456 exec_prefix="$acl_save_exec_prefix"
19457 prefix="$acl_save_prefix"
19458
19459 if test "X$x" = "X$element"; then
19460 haveit=yes
19461 break
19462 fi
19463 done
19464 if test -z "$haveit"; then
19465 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19466 fi
19467 done
19468
19469
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471/* end confdefs.h. */
19472
19473_ACEOF
19474if ac_fn_objcxx_try_compile "$LINENO"; then :
19475 cy_good=1
19476else
19477 cy_good=0
19478fi
19479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480
19481 OBJCXXFLAGS=$cy_save
19482 if test "x$cy_good" = x1; then :
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484$as_echo "yes" >&6; }
19485
19486 for element in -Wno-unneeded-internal-declaration; do
19487 haveit=
19488 for x in $OBJCXXFLAGS; do
19489
19490 acl_save_prefix="$prefix"
19491 prefix="$acl_final_prefix"
19492 acl_save_exec_prefix="$exec_prefix"
19493 exec_prefix="$acl_final_exec_prefix"
19494 eval x=\"$x\"
19495 exec_prefix="$acl_save_exec_prefix"
19496 prefix="$acl_save_prefix"
19497
19498 if test "X$x" = "X$element"; then
19499 haveit=yes
19500 break
19501 fi
19502 done
19503 if test -z "$haveit"; then
19504 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19505 fi
19506 done
19507
19508
19509else
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19511$as_echo "no" >&6; }
19512fi
19513
19514 ac_ext=cpp
19515ac_cpp='$CXXCPP $CPPFLAGS'
19516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19519
19520
19521
19522
19523
19524
19525
19526ac_ext=c
19527ac_cpp='$CPP $CPPFLAGS'
19528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531
19532ax_pthread_ok=no
19533
19534# We used to check for pthread.h first, but this fails if pthread.h
19535# requires special compiler flags (e.g. on Tru64 or Sequent).
19536# It gets checked for in the link test anyway.
19537
19538# First of all, check if the user has set any of the PTHREAD_LIBS,
19539# etcetera environment variables, and if threads linking works using
19540# them:
19541if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19542 save_CFLAGS="$CFLAGS"
19543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19544 save_LIBS="$LIBS"
19545 LIBS="$PTHREAD_LIBS $LIBS"
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19547$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h. */
19550
19551/* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19554#ifdef __cplusplus
19555extern "C"
19556#endif
19557char pthread_join ();
19558int
19559main ()
19560{
19561return pthread_join ();
19562 ;
19563 return 0;
19564}
19565_ACEOF
19566if ac_fn_c_try_link "$LINENO"; then :
19567 ax_pthread_ok=yes
19568fi
19569rm -f core conftest.err conftest.$ac_objext \
19570 conftest$ac_exeext conftest.$ac_ext
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19572$as_echo "$ax_pthread_ok" >&6; }
19573 if test x"$ax_pthread_ok" = xno; then
19574 PTHREAD_LIBS=""
19575 PTHREAD_CFLAGS=""
19576 fi
19577 LIBS="$save_LIBS"
19578 CFLAGS="$save_CFLAGS"
19579fi
19580
19581# We must check for the threads library under a number of different
19582# names; the ordering is very important because some systems
19583# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19584# libraries is broken (non-POSIX).
19585
19586# Create a list of thread flags to try. Items starting with a "-" are
19587# C compiler flags, and other items are library names, except for "none"
19588# which indicates that we try without any flags at all, and "pthread-config"
19589# which is a program returning the flags for the Pth emulation library.
19590
19591ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
19592
19593# The ordering *is* (sometimes) important. Some notes on the
19594# individual items follow:
19595
19596# pthreads: AIX (must check this before -lpthread)
19597# none: in case threads are in libc; should be tried before -Kthread and
19598# other compiler flags to prevent continual compiler warnings
19599# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19600# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19601# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19602# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19603# -pthreads: Solaris/gcc
19604# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19605# doesn't hurt to check since this sometimes defines pthreads and
19606# -D_REENTRANT too), HP C (must be checked before -lpthread, which
19607# is present but should not be used directly)
19608# -mthreads: Mingw32/gcc, Lynx/gcc
19609# pthread: Linux, etcetera
19610# --thread-safe: KAI C++
19611# pthread-config: use pthread-config program (for GNU Pth library)
19612
19613case $host_os in
19614
19615 hpux*)
19616
19617 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19618 # multi-threading and also sets -lpthread."
19619
19620 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19621 ;;
19622
19623 openedition*)
19624
19625 # IBM z/OS requires a feature-test macro to be defined in order to
19626 # enable POSIX threads at all, so give the user a hint if this is
19627 # not set. (We don't define these ourselves, as they can affect
19628 # other portions of the system API in unpredictable ways.)
19629
19630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631/* end confdefs.h. */
19632
19633# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19634 AX_PTHREAD_ZOS_MISSING
19635# endif
19636
19637_ACEOF
19638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19639 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19641$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19642fi
19643rm -f conftest*
19644
19645 ;;
19646
19647 solaris*)
19648
19649 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19650 # check that first. On some older versions, libc contains stubbed
19651 # (non-functional) versions of the pthreads routines, so link-based
19652 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19653 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19654 # a function called by this macro, so we could check for that, but
19655 # who knows whether they'll stub that too in a future libc.) So
19656 # we'll look for -pthreads and -lpthread shortly thereafter.
19657
19658 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
19659 ;;
19660esac
19661
19662# Older versions of Clang only give a warning instead of an error for an
19663# unrecognized option, unless we specify -Werror. (We throw in some extra
19664# Clang warning flags for good measure.)
19665
19666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19667$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19668if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19669 $as_echo_n "(cached) " >&6
19670else
19671 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19672 save_CFLAGS="$CFLAGS"
19673 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19674 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19676/* end confdefs.h. */
19677int foo(void);
19678int
19679main ()
19680{
19681foo()
19682 ;
19683 return 0;
19684}
19685_ACEOF
19686if ac_fn_c_try_compile "$LINENO"; then :
19687 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
19688else
19689 ax_cv_PTHREAD_REJECT_UNKNOWN=no
19690fi
19691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 CFLAGS="$save_CFLAGS"
19693
19694fi
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19696$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19697ax_pthread_extra_flags=
19698if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19699 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19700fi
19701
19702if test x"$ax_pthread_ok" = xno; then
19703for flag in $ax_pthread_flags; do
19704
19705 case $flag in
19706 none)
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19708$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19709 ;;
19710
19711 -mt,pthread)
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19713$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19714 PTHREAD_CFLAGS="-mt"
19715 PTHREAD_LIBS="-lpthread"
19716 ;;
19717
19718 -*)
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19720$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19721 PTHREAD_CFLAGS="$flag"
19722 ;;
19723
19724 pthread-config)
19725 # Extract the first word of "pthread-config", so it can be a program name with args.
19726set dummy pthread-config; ac_word=$2
19727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19728$as_echo_n "checking for $ac_word... " >&6; }
19729if ${ac_cv_prog_ax_pthread_config+:} false; then :
19730 $as_echo_n "(cached) " >&6
19731else
19732 if test -n "$ax_pthread_config"; then
19733 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19734else
19735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19736for as_dir in $PATH
19737do
19738 IFS=$as_save_IFS
19739 test -z "$as_dir" && as_dir=.
19740 for ac_exec_ext in '' $ac_executable_extensions; do
19741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19742 ac_cv_prog_ax_pthread_config="yes"
19743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19744 break 2
19745 fi
19746done
19747 done
19748IFS=$as_save_IFS
19749
19750 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19751fi
19752fi
19753ax_pthread_config=$ac_cv_prog_ax_pthread_config
19754if test -n "$ax_pthread_config"; then
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19756$as_echo "$ax_pthread_config" >&6; }
19757else
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19759$as_echo "no" >&6; }
19760fi
19761
19762
19763 if test x"$ax_pthread_config" = xno; then continue; fi
19764 PTHREAD_CFLAGS="`pthread-config --cflags`"
19765 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19766 ;;
19767
19768 *)
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19770$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19771 PTHREAD_LIBS="-l$flag"
19772 ;;
19773 esac
19774
19775 save_LIBS="$LIBS"
19776 save_CFLAGS="$CFLAGS"
19777 LIBS="$PTHREAD_LIBS $LIBS"
19778 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19779
19780 # Check for various functions. We must include pthread.h,
19781 # since some functions may be macros. (On the Sequent, we
19782 # need a special flag -Kthread to make this header compile.)
19783 # We check for pthread_join because it is in -lpthread on IRIX
19784 # while pthread_create is in libc. We check for pthread_attr_init
19785 # due to DEC craziness with -lpthreads. We check for
19786 # pthread_cleanup_push because it is one of the few pthread
19787 # functions on Solaris that doesn't have a non-functional libc stub.
19788 # We try pthread_create on general principles.
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790/* end confdefs.h. */
19791#include <pthread.h>
19792 static void routine(void *a) { a = 0; }
19793 static void *start_routine(void *a) { return a; }
19794int
19795main ()
19796{
19797pthread_t th; pthread_attr_t attr;
19798 pthread_create(&th, 0, start_routine, 0);
19799 pthread_join(th, 0);
19800 pthread_attr_init(&attr);
19801 pthread_cleanup_push(routine, 0);
19802 pthread_cleanup_pop(0) /* ; */
19803 ;
19804 return 0;
19805}
19806_ACEOF
19807if ac_fn_c_try_link "$LINENO"; then :
19808 ax_pthread_ok=yes
19809fi
19810rm -f core conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19812
19813 LIBS="$save_LIBS"
19814 CFLAGS="$save_CFLAGS"
19815
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19817$as_echo "$ax_pthread_ok" >&6; }
19818 if test "x$ax_pthread_ok" = xyes; then
19819 break;
19820 fi
19821
19822 PTHREAD_LIBS=""
19823 PTHREAD_CFLAGS=""
19824done
19825fi
19826
19827# Various other checks:
19828if test "x$ax_pthread_ok" = xyes; then
19829 save_LIBS="$LIBS"
19830 LIBS="$PTHREAD_LIBS $LIBS"
19831 save_CFLAGS="$CFLAGS"
19832 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19833
19834 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19836$as_echo_n "checking for joinable pthread attribute... " >&6; }
19837if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19838 $as_echo_n "(cached) " >&6
19839else
19840 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19841 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843/* end confdefs.h. */
19844#include <pthread.h>
19845int
19846main ()
19847{
19848int attr = $attr; return attr /* ; */
19849 ;
19850 return 0;
19851}
19852_ACEOF
19853if ac_fn_c_try_link "$LINENO"; then :
19854 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
19855fi
19856rm -f core conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19858 done
19859
19860fi
19861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19862$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19863 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19864 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
19865
19866cat >>confdefs.h <<_ACEOF
19867#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19868_ACEOF
19869
19870fi
19871
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19873$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19874if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19875 $as_echo_n "(cached) " >&6
19876else
19877 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19878 ax_pthread_special_flags_added=no
19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880/* end confdefs.h. */
19881
19882# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19883 AX_PTHREAD_NEED_SPECIAL_FLAG
19884# endif
19885
19886_ACEOF
19887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19889 case $host_os in
19890 aix* | freebsd*)
19891 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19892 ;;
19893 darwin* | hpux* | osf* | solaris*)
19894 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19895 ;;
19896 esac
19897
19898fi
19899rm -f conftest*
19900
19901
19902fi
19903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19904$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19905 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19906 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19907 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19908 ax_pthread_special_flags_added=yes
19909fi
19910
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19912$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19913if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19914 $as_echo_n "(cached) " >&6
19915else
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917/* end confdefs.h. */
19918#include <pthread.h>
19919int
19920main ()
19921{
19922int i = PTHREAD_PRIO_INHERIT;
19923 ;
19924 return 0;
19925}
19926_ACEOF
19927if ac_fn_c_try_link "$LINENO"; then :
19928 ax_cv_PTHREAD_PRIO_INHERIT=yes
19929else
19930 ax_cv_PTHREAD_PRIO_INHERIT=no
19931fi
19932rm -f core conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19934
19935fi
19936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19937$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19938 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19939
19940$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19941
19942fi
19943
19944 LIBS="$save_LIBS"
19945 CFLAGS="$save_CFLAGS"
19946
19947 # More AIX lossage: compile with *_r variant
19948 if test "x$GCC" != xyes; then
19949 case $host_os in
19950 aix*)
19951 case "x/$CC" in #(
19952 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19953 #handle absolute path differently from PATH based program lookup
19954 case "x$CC" in #(
19955 x/*) :
19956 if as_fn_executable_p ${CC}_r; then :
19957 PTHREAD_CC="${CC}_r"
19958fi ;; #(
19959 *) :
19960 for ac_prog in ${CC}_r
19961do
19962 # Extract the first word of "$ac_prog", so it can be a program name with args.
19963set dummy $ac_prog; ac_word=$2
19964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19965$as_echo_n "checking for $ac_word... " >&6; }
19966if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19967 $as_echo_n "(cached) " >&6
19968else
19969 if test -n "$PTHREAD_CC"; then
19970 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19971else
19972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19973for as_dir in $PATH
19974do
19975 IFS=$as_save_IFS
19976 test -z "$as_dir" && as_dir=.
19977 for ac_exec_ext in '' $ac_executable_extensions; do
19978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19979 ac_cv_prog_PTHREAD_CC="$ac_prog"
19980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19981 break 2
19982 fi
19983done
19984 done
19985IFS=$as_save_IFS
19986
19987fi
19988fi
19989PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19990if test -n "$PTHREAD_CC"; then
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19992$as_echo "$PTHREAD_CC" >&6; }
19993else
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19995$as_echo "no" >&6; }
19996fi
19997
19998
19999 test -n "$PTHREAD_CC" && break
20000done
20001test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20002 ;;
20003esac ;; #(
20004 *) :
20005 ;;
20006esac
20007 ;;
20008 esac
20009 fi
20010fi
20011
20012test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20013
20014
20015
20016
20017
20018# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20019if test x"$ax_pthread_ok" = xyes; then
20020
20021$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20022
20023 :
20024else
20025 ax_pthread_ok=no
20026
20027fi
20028ac_ext=cpp
20029ac_cpp='$CXXCPP $CPPFLAGS'
20030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042# Check whether --enable-javascript was given.
20043if test "${enable_javascript+set}" = set; then :
20044 enableval=$enable_javascript;
20045 case $enableval in #(
20046 yes) :
20047
20048
20049
20050
20051 cy_save=$LIBS
20052 LIBS=
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20054$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20055if ${ac_cv_search_JSEvaluateScript+:} false; then :
20056 $as_echo_n "(cached) " >&6
20057else
20058 ac_func_search_save_LIBS=$LIBS
20059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060/* end confdefs.h. */
20061
20062/* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20065#ifdef __cplusplus
20066extern "C"
20067#endif
20068char JSEvaluateScript ();
20069int
20070main ()
20071{
20072return JSEvaluateScript ();
20073 ;
20074 return 0;
20075}
20076_ACEOF
20077for ac_lib in '' JavaScriptCore; do
20078 if test -z "$ac_lib"; then
20079 ac_res="none required"
20080 else
20081 ac_res=-l$ac_lib
20082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20083 fi
20084 if ac_fn_cxx_try_link "$LINENO"; then :
20085 ac_cv_search_JSEvaluateScript=$ac_res
20086fi
20087rm -f core conftest.err conftest.$ac_objext \
20088 conftest$ac_exeext
20089 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20090 break
20091fi
20092done
20093if ${ac_cv_search_JSEvaluateScript+:} false; then :
20094
20095else
20096 ac_cv_search_JSEvaluateScript=no
20097fi
20098rm conftest.$ac_ext
20099LIBS=$ac_func_search_save_LIBS
20100fi
20101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20102$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20103ac_res=$ac_cv_search_JSEvaluateScript
20104if test "$ac_res" != no; then :
20105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20106
20107 CY_EXECUTE=1
20108
20109
20110else
20111
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20113$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20114if ${ac_cv_framework_JavaScriptCore+:} false; then :
20115 $as_echo_n "(cached) " >&6
20116else
20117
20118 ac_check_framework_save_LIBS=$LIBS
20119 LIBS="-framework JavaScriptCore $LIBS"
20120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20121/* end confdefs.h. */
20122
20123 #include <JavaScriptCore/JSBase.h>
20124
20125int
20126main ()
20127{
20128
20129 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20130
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135if ac_fn_cxx_try_link "$LINENO"; then :
20136
20137 ac_cv_framework_JavaScriptCore=yes
20138
20139else
20140 ac_cv_framework_JavaScriptCore=no
20141fi
20142rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext conftest.$ac_ext
20144 LIBS=$ac_check_framework_save_LIBS
20145
20146fi
20147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20148$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20149 if test $ac_cv_framework_JavaScriptCore = yes; then :
20150
20151
20152 for element in "-framework JavaScriptCore"; do
20153 haveit=
20154 for x in $LIBS; do
20155
20156 acl_save_prefix="$prefix"
20157 prefix="$acl_final_prefix"
20158 acl_save_exec_prefix="$exec_prefix"
20159 exec_prefix="$acl_final_exec_prefix"
20160 eval x=\"$x\"
20161 exec_prefix="$acl_save_exec_prefix"
20162 prefix="$acl_save_prefix"
20163
20164 if test "X$x" = "X$element"; then
20165 haveit=yes
20166 break
20167 fi
20168 done
20169 if test -z "$haveit"; then
20170 LIBS="${LIBS}${LIBS:+ }$element"
20171 fi
20172 done
20173
20174
20175 CY_EXECUTE=1
20176
20177
20178
20179else
20180
20181 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20182
20183pkg_failed=no
20184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20185$as_echo_n "checking for WEBKIT... " >&6; }
20186
20187if test -n "$WEBKIT_CFLAGS"; then
20188 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20189 elif test -n "$PKG_CONFIG"; then
20190 if test -n "$PKG_CONFIG" && \
20191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20192 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20193 ac_status=$?
20194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20195 test $ac_status = 0; }; then
20196 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20197 test "x$?" != "x0" && pkg_failed=yes
20198else
20199 pkg_failed=yes
20200fi
20201 else
20202 pkg_failed=untried
20203fi
20204if test -n "$WEBKIT_LIBS"; then
20205 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20206 elif test -n "$PKG_CONFIG"; then
20207 if test -n "$PKG_CONFIG" && \
20208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20209 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20210 ac_status=$?
20211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20212 test $ac_status = 0; }; then
20213 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20214 test "x$?" != "x0" && pkg_failed=yes
20215else
20216 pkg_failed=yes
20217fi
20218 else
20219 pkg_failed=untried
20220fi
20221
20222
20223
20224if test $pkg_failed = yes; then
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20226$as_echo "no" >&6; }
20227
20228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20229 _pkg_short_errors_supported=yes
20230else
20231 _pkg_short_errors_supported=no
20232fi
20233 if test $_pkg_short_errors_supported = yes; then
20234 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20235 else
20236 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20237 fi
20238 # Put the nasty error message in config.log where it belongs
20239 echo "$WEBKIT_PKG_ERRORS" >&5
20240
20241 :
20242elif test $pkg_failed = untried; then
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244$as_echo "no" >&6; }
20245 :
20246else
20247 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20248 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20250$as_echo "yes" >&6; }
20251
20252 CY_EXECUTE=1
20253
20254
20255 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20256 haveit=
20257 for x in $CPPFLAGS; do
20258
20259 acl_save_prefix="$prefix"
20260 prefix="$acl_final_prefix"
20261 acl_save_exec_prefix="$exec_prefix"
20262 exec_prefix="$acl_final_exec_prefix"
20263 eval x=\"$x\"
20264 exec_prefix="$acl_save_exec_prefix"
20265 prefix="$acl_save_prefix"
20266
20267 if test "X$x" = "X$element"; then
20268 haveit=yes
20269 break
20270 fi
20271 done
20272 if test -z "$haveit"; then
20273 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20274 fi
20275 done
20276
20277
20278 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20279 haveit=
20280 for x in $LIBS; do
20281
20282 acl_save_prefix="$prefix"
20283 prefix="$acl_final_prefix"
20284 acl_save_exec_prefix="$exec_prefix"
20285 exec_prefix="$acl_final_exec_prefix"
20286 eval x=\"$x\"
20287 exec_prefix="$acl_save_exec_prefix"
20288 prefix="$acl_save_prefix"
20289
20290 if test "X$x" = "X$element"; then
20291 haveit=yes
20292 break
20293 fi
20294 done
20295 if test -z "$haveit"; then
20296 LIBS="${LIBS}${LIBS:+ }$element"
20297 fi
20298 done
20299
20300
20301fi; if test "x$CY_EXECUTE" = x1; then break; fi
20302 done
20303
20304fi
20305fi
20306
20307 LTJAVASCRIPTCORE=$LIBS
20308 LIBS=$cy_save
20309
20310
20311 ;; #(
20312 no) :
20313
20314 CY_EXECUTE=0
20315 ;; #(
20316 JavaScriptCore) :
20317
20318
20319
20320 cy_save=$LIBS
20321 LIBS=
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20323$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20324if ${ac_cv_search_JSEvaluateScript+:} false; then :
20325 $as_echo_n "(cached) " >&6
20326else
20327 ac_func_search_save_LIBS=$LIBS
20328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329/* end confdefs.h. */
20330
20331/* Override any GCC internal prototype to avoid an error.
20332 Use char because int might match the return type of a GCC
20333 builtin and then its argument prototype would still apply. */
20334#ifdef __cplusplus
20335extern "C"
20336#endif
20337char JSEvaluateScript ();
20338int
20339main ()
20340{
20341return JSEvaluateScript ();
20342 ;
20343 return 0;
20344}
20345_ACEOF
20346for ac_lib in '' JavaScriptCore; do
20347 if test -z "$ac_lib"; then
20348 ac_res="none required"
20349 else
20350 ac_res=-l$ac_lib
20351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20352 fi
20353 if ac_fn_cxx_try_link "$LINENO"; then :
20354 ac_cv_search_JSEvaluateScript=$ac_res
20355fi
20356rm -f core conftest.err conftest.$ac_objext \
20357 conftest$ac_exeext
20358 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20359 break
20360fi
20361done
20362if ${ac_cv_search_JSEvaluateScript+:} false; then :
20363
20364else
20365 ac_cv_search_JSEvaluateScript=no
20366fi
20367rm conftest.$ac_ext
20368LIBS=$ac_func_search_save_LIBS
20369fi
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20371$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20372ac_res=$ac_cv_search_JSEvaluateScript
20373if test "$ac_res" != no; then :
20374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20375
20376 CY_EXECUTE=1
20377
20378
20379else
20380
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20382$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20383if ${ac_cv_framework_JavaScriptCore+:} false; then :
20384 $as_echo_n "(cached) " >&6
20385else
20386
20387 ac_check_framework_save_LIBS=$LIBS
20388 LIBS="-framework JavaScriptCore $LIBS"
20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390/* end confdefs.h. */
20391
20392 #include <JavaScriptCore/JSBase.h>
20393
20394int
20395main ()
20396{
20397
20398 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20399
20400 ;
20401 return 0;
20402}
20403_ACEOF
20404if ac_fn_cxx_try_link "$LINENO"; then :
20405
20406 ac_cv_framework_JavaScriptCore=yes
20407
20408else
20409 ac_cv_framework_JavaScriptCore=no
20410fi
20411rm -f core conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_framework_save_LIBS
20414
20415fi
20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20417$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20418 if test $ac_cv_framework_JavaScriptCore = yes; then :
20419
20420
20421 for element in "-framework JavaScriptCore"; do
20422 haveit=
20423 for x in $LIBS; do
20424
20425 acl_save_prefix="$prefix"
20426 prefix="$acl_final_prefix"
20427 acl_save_exec_prefix="$exec_prefix"
20428 exec_prefix="$acl_final_exec_prefix"
20429 eval x=\"$x\"
20430 exec_prefix="$acl_save_exec_prefix"
20431 prefix="$acl_save_prefix"
20432
20433 if test "X$x" = "X$element"; then
20434 haveit=yes
20435 break
20436 fi
20437 done
20438 if test -z "$haveit"; then
20439 LIBS="${LIBS}${LIBS:+ }$element"
20440 fi
20441 done
20442
20443
20444 CY_EXECUTE=1
20445
20446
20447
20448else
20449
20450 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20451
20452pkg_failed=no
20453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20454$as_echo_n "checking for WEBKIT... " >&6; }
20455
20456if test -n "$WEBKIT_CFLAGS"; then
20457 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20458 elif test -n "$PKG_CONFIG"; then
20459 if test -n "$PKG_CONFIG" && \
20460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20461 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20462 ac_status=$?
20463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20464 test $ac_status = 0; }; then
20465 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20466 test "x$?" != "x0" && pkg_failed=yes
20467else
20468 pkg_failed=yes
20469fi
20470 else
20471 pkg_failed=untried
20472fi
20473if test -n "$WEBKIT_LIBS"; then
20474 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20475 elif test -n "$PKG_CONFIG"; then
20476 if test -n "$PKG_CONFIG" && \
20477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20478 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20479 ac_status=$?
20480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20481 test $ac_status = 0; }; then
20482 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20483 test "x$?" != "x0" && pkg_failed=yes
20484else
20485 pkg_failed=yes
20486fi
20487 else
20488 pkg_failed=untried
20489fi
20490
20491
20492
20493if test $pkg_failed = yes; then
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20495$as_echo "no" >&6; }
20496
20497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20498 _pkg_short_errors_supported=yes
20499else
20500 _pkg_short_errors_supported=no
20501fi
20502 if test $_pkg_short_errors_supported = yes; then
20503 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20504 else
20505 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20506 fi
20507 # Put the nasty error message in config.log where it belongs
20508 echo "$WEBKIT_PKG_ERRORS" >&5
20509
20510 :
20511elif test $pkg_failed = untried; then
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513$as_echo "no" >&6; }
20514 :
20515else
20516 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20517 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20519$as_echo "yes" >&6; }
20520
20521 CY_EXECUTE=1
20522
20523
20524 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20525 haveit=
20526 for x in $CPPFLAGS; do
20527
20528 acl_save_prefix="$prefix"
20529 prefix="$acl_final_prefix"
20530 acl_save_exec_prefix="$exec_prefix"
20531 exec_prefix="$acl_final_exec_prefix"
20532 eval x=\"$x\"
20533 exec_prefix="$acl_save_exec_prefix"
20534 prefix="$acl_save_prefix"
20535
20536 if test "X$x" = "X$element"; then
20537 haveit=yes
20538 break
20539 fi
20540 done
20541 if test -z "$haveit"; then
20542 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20543 fi
20544 done
20545
20546
20547 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20548 haveit=
20549 for x in $LIBS; do
20550
20551 acl_save_prefix="$prefix"
20552 prefix="$acl_final_prefix"
20553 acl_save_exec_prefix="$exec_prefix"
20554 exec_prefix="$acl_final_exec_prefix"
20555 eval x=\"$x\"
20556 exec_prefix="$acl_save_exec_prefix"
20557 prefix="$acl_save_prefix"
20558
20559 if test "X$x" = "X$element"; then
20560 haveit=yes
20561 break
20562 fi
20563 done
20564 if test -z "$haveit"; then
20565 LIBS="${LIBS}${LIBS:+ }$element"
20566 fi
20567 done
20568
20569
20570fi; if test "x$CY_EXECUTE" = x1; then break; fi
20571 done
20572
20573fi
20574fi
20575
20576 LTJAVASCRIPTCORE=$LIBS
20577 LIBS=$cy_save
20578
20579
20580 ;; #(
20581 *) :
20582 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20583esac
20584
20585else
20586
20587
20588
20589 cy_save=$LIBS
20590 LIBS=
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20592$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20593if ${ac_cv_search_JSEvaluateScript+:} false; then :
20594 $as_echo_n "(cached) " >&6
20595else
20596 ac_func_search_save_LIBS=$LIBS
20597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598/* end confdefs.h. */
20599
20600/* Override any GCC internal prototype to avoid an error.
20601 Use char because int might match the return type of a GCC
20602 builtin and then its argument prototype would still apply. */
20603#ifdef __cplusplus
20604extern "C"
20605#endif
20606char JSEvaluateScript ();
20607int
20608main ()
20609{
20610return JSEvaluateScript ();
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615for ac_lib in '' JavaScriptCore; do
20616 if test -z "$ac_lib"; then
20617 ac_res="none required"
20618 else
20619 ac_res=-l$ac_lib
20620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20621 fi
20622 if ac_fn_cxx_try_link "$LINENO"; then :
20623 ac_cv_search_JSEvaluateScript=$ac_res
20624fi
20625rm -f core conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext
20627 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20628 break
20629fi
20630done
20631if ${ac_cv_search_JSEvaluateScript+:} false; then :
20632
20633else
20634 ac_cv_search_JSEvaluateScript=no
20635fi
20636rm conftest.$ac_ext
20637LIBS=$ac_func_search_save_LIBS
20638fi
20639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20640$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20641ac_res=$ac_cv_search_JSEvaluateScript
20642if test "$ac_res" != no; then :
20643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20644
20645 CY_EXECUTE=1
20646
20647
20648else
20649
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20651$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20652if ${ac_cv_framework_JavaScriptCore+:} false; then :
20653 $as_echo_n "(cached) " >&6
20654else
20655
20656 ac_check_framework_save_LIBS=$LIBS
20657 LIBS="-framework JavaScriptCore $LIBS"
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659/* end confdefs.h. */
20660
20661 #include <JavaScriptCore/JSBase.h>
20662
20663int
20664main ()
20665{
20666
20667 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20668
20669 ;
20670 return 0;
20671}
20672_ACEOF
20673if ac_fn_cxx_try_link "$LINENO"; then :
20674
20675 ac_cv_framework_JavaScriptCore=yes
20676
20677else
20678 ac_cv_framework_JavaScriptCore=no
20679fi
20680rm -f core conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20682 LIBS=$ac_check_framework_save_LIBS
20683
20684fi
20685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20686$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20687 if test $ac_cv_framework_JavaScriptCore = yes; then :
20688
20689
20690 for element in "-framework JavaScriptCore"; do
20691 haveit=
20692 for x in $LIBS; do
20693
20694 acl_save_prefix="$prefix"
20695 prefix="$acl_final_prefix"
20696 acl_save_exec_prefix="$exec_prefix"
20697 exec_prefix="$acl_final_exec_prefix"
20698 eval x=\"$x\"
20699 exec_prefix="$acl_save_exec_prefix"
20700 prefix="$acl_save_prefix"
20701
20702 if test "X$x" = "X$element"; then
20703 haveit=yes
20704 break
20705 fi
20706 done
20707 if test -z "$haveit"; then
20708 LIBS="${LIBS}${LIBS:+ }$element"
20709 fi
20710 done
20711
20712
20713 CY_EXECUTE=1
20714
20715
20716
20717else
20718
20719 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20720
20721pkg_failed=no
20722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20723$as_echo_n "checking for WEBKIT... " >&6; }
20724
20725if test -n "$WEBKIT_CFLAGS"; then
20726 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20727 elif test -n "$PKG_CONFIG"; then
20728 if test -n "$PKG_CONFIG" && \
20729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20730 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20731 ac_status=$?
20732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20733 test $ac_status = 0; }; then
20734 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20735 test "x$?" != "x0" && pkg_failed=yes
20736else
20737 pkg_failed=yes
20738fi
20739 else
20740 pkg_failed=untried
20741fi
20742if test -n "$WEBKIT_LIBS"; then
20743 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20744 elif test -n "$PKG_CONFIG"; then
20745 if test -n "$PKG_CONFIG" && \
20746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20747 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20748 ac_status=$?
20749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20750 test $ac_status = 0; }; then
20751 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20752 test "x$?" != "x0" && pkg_failed=yes
20753else
20754 pkg_failed=yes
20755fi
20756 else
20757 pkg_failed=untried
20758fi
20759
20760
20761
20762if test $pkg_failed = yes; then
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20764$as_echo "no" >&6; }
20765
20766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20767 _pkg_short_errors_supported=yes
20768else
20769 _pkg_short_errors_supported=no
20770fi
20771 if test $_pkg_short_errors_supported = yes; then
20772 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20773 else
20774 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20775 fi
20776 # Put the nasty error message in config.log where it belongs
20777 echo "$WEBKIT_PKG_ERRORS" >&5
20778
20779 :
20780elif test $pkg_failed = untried; then
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20782$as_echo "no" >&6; }
20783 :
20784else
20785 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20786 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20788$as_echo "yes" >&6; }
20789
20790 CY_EXECUTE=1
20791
20792
20793 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20794 haveit=
20795 for x in $CPPFLAGS; do
20796
20797 acl_save_prefix="$prefix"
20798 prefix="$acl_final_prefix"
20799 acl_save_exec_prefix="$exec_prefix"
20800 exec_prefix="$acl_final_exec_prefix"
20801 eval x=\"$x\"
20802 exec_prefix="$acl_save_exec_prefix"
20803 prefix="$acl_save_prefix"
20804
20805 if test "X$x" = "X$element"; then
20806 haveit=yes
20807 break
20808 fi
20809 done
20810 if test -z "$haveit"; then
20811 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20812 fi
20813 done
20814
20815
20816 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20817 haveit=
20818 for x in $LIBS; do
20819
20820 acl_save_prefix="$prefix"
20821 prefix="$acl_final_prefix"
20822 acl_save_exec_prefix="$exec_prefix"
20823 exec_prefix="$acl_final_exec_prefix"
20824 eval x=\"$x\"
20825 exec_prefix="$acl_save_exec_prefix"
20826 prefix="$acl_save_prefix"
20827
20828 if test "X$x" = "X$element"; then
20829 haveit=yes
20830 break
20831 fi
20832 done
20833 if test -z "$haveit"; then
20834 LIBS="${LIBS}${LIBS:+ }$element"
20835 fi
20836 done
20837
20838
20839fi; if test "x$CY_EXECUTE" = x1; then break; fi
20840 done
20841
20842fi
20843fi
20844
20845 LTJAVASCRIPTCORE=$LIBS
20846 LIBS=$cy_save
20847
20848
20849
20850fi
20851
20852
20853# Check whether --enable-console was given.
20854if test "${enable_console+set}" = set; then :
20855 enableval=$enable_console;
20856fi
20857
20858 if test "x$enable_console" != "xno"; then
20859 CY_CONSOLE_TRUE=
20860 CY_CONSOLE_FALSE='#'
20861else
20862 CY_CONSOLE_TRUE='#'
20863 CY_CONSOLE_FALSE=
20864fi
20865
20866
20867# Check whether --enable-attach was given.
20868if test "${enable_attach+set}" = set; then :
20869 enableval=$enable_attach;
20870fi
20871
20872 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20873 CY_ATTACH_TRUE=
20874 CY_ATTACH_FALSE='#'
20875else
20876 CY_ATTACH_TRUE='#'
20877 CY_ATTACH_FALSE=
20878fi
20879
20880
20881
20882
20883 if test "x$CY_EXECUTE" = x1; then
20884 CY_EXECUTE_TRUE=
20885 CY_EXECUTE_FALSE='#'
20886else
20887 CY_EXECUTE_TRUE='#'
20888 CY_EXECUTE_FALSE=
20889fi
20890
20891
20892
20893case $CY_EXECUTE in #(
20894 1) :
20895
20896 for ac_header in ffi.h ffi/ffi.h
20897do :
20898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20899ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20901 cat >>confdefs.h <<_ACEOF
20902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20903_ACEOF
20904 break
20905fi
20906
20907done
20908
20909
20910
20911 cy_save=$LIBS
20912 LIBS=
20913 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
20914
20915
20916 LIBFFI_CFLAGS
20917 C compiler flags for LIBFFI, overriding pkg-config
20918 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
20919
20920pkg_failed=no
20921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20922$as_echo_n "checking for LIBFFI... " >&6; }
20923
20924if test -n "$LIBFFI_CFLAGS"; then
20925 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20926 elif test -n "$PKG_CONFIG"; then
20927 if test -n "$PKG_CONFIG" && \
20928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20929 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20930 ac_status=$?
20931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20932 test $ac_status = 0; }; then
20933 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20934 test "x$?" != "x0" && pkg_failed=yes
20935else
20936 pkg_failed=yes
20937fi
20938 else
20939 pkg_failed=untried
20940fi
20941if test -n "$LIBFFI_LIBS"; then
20942 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20943 elif test -n "$PKG_CONFIG"; then
20944 if test -n "$PKG_CONFIG" && \
20945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20946 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20947 ac_status=$?
20948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20949 test $ac_status = 0; }; then
20950 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20951 test "x$?" != "x0" && pkg_failed=yes
20952else
20953 pkg_failed=yes
20954fi
20955 else
20956 pkg_failed=untried
20957fi
20958
20959
20960
20961if test $pkg_failed = yes; then
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20963$as_echo "no" >&6; }
20964
20965if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20966 _pkg_short_errors_supported=yes
20967else
20968 _pkg_short_errors_supported=no
20969fi
20970 if test $_pkg_short_errors_supported = yes; then
20971 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20972 else
20973 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20974 fi
20975 # Put the nasty error message in config.log where it belongs
20976 echo "$LIBFFI_PKG_ERRORS" >&5
20977
20978 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20979elif test $pkg_failed = untried; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981$as_echo "no" >&6; }
20982 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20983else
20984 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20985 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20987$as_echo "yes" >&6; }
20988
20989
20990 for element in `$PKG_CONFIG --cflags libffi`; do
20991 haveit=
20992 for x in $CPPFLAGS; do
20993
20994 acl_save_prefix="$prefix"
20995 prefix="$acl_final_prefix"
20996 acl_save_exec_prefix="$exec_prefix"
20997 exec_prefix="$acl_final_exec_prefix"
20998 eval x=\"$x\"
20999 exec_prefix="$acl_save_exec_prefix"
21000 prefix="$acl_save_prefix"
21001
21002 if test "X$x" = "X$element"; then
21003 haveit=yes
21004 break
21005 fi
21006 done
21007 if test -z "$haveit"; then
21008 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21009 fi
21010 done
21011
21012
21013 for element in `$PKG_CONFIG --libs libffi`; do
21014 haveit=
21015 for x in $LIBS; do
21016
21017 acl_save_prefix="$prefix"
21018 prefix="$acl_final_prefix"
21019 acl_save_exec_prefix="$exec_prefix"
21020 exec_prefix="$acl_final_exec_prefix"
21021 eval x=\"$x\"
21022 exec_prefix="$acl_save_exec_prefix"
21023 prefix="$acl_save_prefix"
21024
21025 if test "X$x" = "X$element"; then
21026 haveit=yes
21027 break
21028 fi
21029 done
21030 if test -z "$haveit"; then
21031 LIBS="${LIBS}${LIBS:+ }$element"
21032 fi
21033 done
21034
21035
21036fi
21037
21038else
21039
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
21041$as_echo_n "checking for library containing ffi_call... " >&6; }
21042if ${ac_cv_search_ffi_call+:} false; then :
21043 $as_echo_n "(cached) " >&6
21044else
21045 ac_func_search_save_LIBS=$LIBS
21046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21047/* end confdefs.h. */
21048
21049/* Override any GCC internal prototype to avoid an error.
21050 Use char because int might match the return type of a GCC
21051 builtin and then its argument prototype would still apply. */
21052#ifdef __cplusplus
21053extern "C"
21054#endif
21055char ffi_call ();
21056int
21057main ()
21058{
21059return ffi_call ();
21060 ;
21061 return 0;
21062}
21063_ACEOF
21064for ac_lib in '' ffi; do
21065 if test -z "$ac_lib"; then
21066 ac_res="none required"
21067 else
21068 ac_res=-l$ac_lib
21069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21070 fi
21071 if ac_fn_cxx_try_link "$LINENO"; then :
21072 ac_cv_search_ffi_call=$ac_res
21073fi
21074rm -f core conftest.err conftest.$ac_objext \
21075 conftest$ac_exeext
21076 if ${ac_cv_search_ffi_call+:} false; then :
21077 break
21078fi
21079done
21080if ${ac_cv_search_ffi_call+:} false; then :
21081
21082else
21083 ac_cv_search_ffi_call=no
21084fi
21085rm conftest.$ac_ext
21086LIBS=$ac_func_search_save_LIBS
21087fi
21088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
21089$as_echo "$ac_cv_search_ffi_call" >&6; }
21090ac_res=$ac_cv_search_ffi_call
21091if test "$ac_res" != no; then :
21092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21093
21094fi
21095
21096 case $ac_cv_search_ffi_call in #(
21097 no) :
21098
21099
21100pkg_failed=no
21101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
21102$as_echo_n "checking for LIBFFI... " >&6; }
21103
21104if test -n "$LIBFFI_CFLAGS"; then
21105 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
21106 elif test -n "$PKG_CONFIG"; then
21107 if test -n "$PKG_CONFIG" && \
21108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21109 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21110 ac_status=$?
21111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21112 test $ac_status = 0; }; then
21113 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
21114 test "x$?" != "x0" && pkg_failed=yes
21115else
21116 pkg_failed=yes
21117fi
21118 else
21119 pkg_failed=untried
21120fi
21121if test -n "$LIBFFI_LIBS"; then
21122 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
21123 elif test -n "$PKG_CONFIG"; then
21124 if test -n "$PKG_CONFIG" && \
21125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21126 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21127 ac_status=$?
21128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21129 test $ac_status = 0; }; then
21130 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
21131 test "x$?" != "x0" && pkg_failed=yes
21132else
21133 pkg_failed=yes
21134fi
21135 else
21136 pkg_failed=untried
21137fi
21138
21139
21140
21141if test $pkg_failed = yes; then
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21143$as_echo "no" >&6; }
21144
21145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21146 _pkg_short_errors_supported=yes
21147else
21148 _pkg_short_errors_supported=no
21149fi
21150 if test $_pkg_short_errors_supported = yes; then
21151 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
21152 else
21153 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
21154 fi
21155 # Put the nasty error message in config.log where it belongs
21156 echo "$LIBFFI_PKG_ERRORS" >&5
21157
21158 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21159elif test $pkg_failed = untried; then
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21161$as_echo "no" >&6; }
21162 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21163else
21164 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
21165 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21167$as_echo "yes" >&6; }
21168
21169
21170 for element in `$PKG_CONFIG --cflags libffi`; do
21171 haveit=
21172 for x in $CPPFLAGS; do
21173
21174 acl_save_prefix="$prefix"
21175 prefix="$acl_final_prefix"
21176 acl_save_exec_prefix="$exec_prefix"
21177 exec_prefix="$acl_final_exec_prefix"
21178 eval x=\"$x\"
21179 exec_prefix="$acl_save_exec_prefix"
21180 prefix="$acl_save_prefix"
21181
21182 if test "X$x" = "X$element"; then
21183 haveit=yes
21184 break
21185 fi
21186 done
21187 if test -z "$haveit"; then
21188 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21189 fi
21190 done
21191
21192
21193 for element in `$PKG_CONFIG --libs libffi`; do
21194 haveit=
21195 for x in $LIBS; do
21196
21197 acl_save_prefix="$prefix"
21198 prefix="$acl_final_prefix"
21199 acl_save_exec_prefix="$exec_prefix"
21200 exec_prefix="$acl_final_exec_prefix"
21201 eval x=\"$x\"
21202 exec_prefix="$acl_save_exec_prefix"
21203 prefix="$acl_save_prefix"
21204
21205 if test "X$x" = "X$element"; then
21206 haveit=yes
21207 break
21208 fi
21209 done
21210 if test -z "$haveit"; then
21211 LIBS="${LIBS}${LIBS:+ }$element"
21212 fi
21213 done
21214
21215
21216fi ;; #(
21217 *) :
21218 ;;
21219esac
21220
21221fi
21222 LTLIBFFI=$LIBS
21223 LIBS=$cy_save
21224
21225
21226
21227
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
21229$as_echo_n "checking for framework JavaVM... " >&6; }
21230if ${ac_cv_framework_JavaVM+:} false; then :
21231 $as_echo_n "(cached) " >&6
21232else
21233
21234 ac_check_framework_save_LIBS=$LIBS
21235 LIBS="-framework JavaVM $LIBS"
21236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237/* end confdefs.h. */
21238
21239 #include <JavaVM/jni.h>
21240
21241int
21242main ()
21243{
21244JNI_GetCreatedJavaVMs(NULL, 0, NULL);
21245 ;
21246 return 0;
21247}
21248_ACEOF
21249if ac_fn_cxx_try_link "$LINENO"; then :
21250
21251 ac_cv_framework_JavaVM=yes
21252
21253else
21254 ac_cv_framework_JavaVM=no
21255fi
21256rm -f core conftest.err conftest.$ac_objext \
21257 conftest$ac_exeext conftest.$ac_ext
21258 LIBS=$ac_check_framework_save_LIBS
21259
21260fi
21261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
21262$as_echo "$ac_cv_framework_JavaVM" >&6; }
21263 if test $ac_cv_framework_JavaVM = yes; then :
21264
21265
21266 for element in "-framework JavaVM"; do
21267 haveit=
21268 for x in $LIBS; do
21269
21270 acl_save_prefix="$prefix"
21271 prefix="$acl_final_prefix"
21272 acl_save_exec_prefix="$exec_prefix"
21273 exec_prefix="$acl_final_exec_prefix"
21274 eval x=\"$x\"
21275 exec_prefix="$acl_save_exec_prefix"
21276 prefix="$acl_save_prefix"
21277
21278 if test "X$x" = "X$element"; then
21279 haveit=yes
21280 break
21281 fi
21282 done
21283 if test -z "$haveit"; then
21284 LIBS="${LIBS}${LIBS:+ }$element"
21285 fi
21286 done
21287
21288
21289 CY_JAVA=1
21290
21291
21292
21293else
21294 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
21295if test "x$ac_cv_header_jni_h" = xyes; then :
21296
21297 CY_JAVA=1
21298
21299
21300 cy_save=$LIBS
21301 LIBS=
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
21303$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
21304if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21305 $as_echo_n "(cached) " >&6
21306else
21307 ac_func_search_save_LIBS=$LIBS
21308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309/* end confdefs.h. */
21310
21311/* Override any GCC internal prototype to avoid an error.
21312 Use char because int might match the return type of a GCC
21313 builtin and then its argument prototype would still apply. */
21314#ifdef __cplusplus
21315extern "C"
21316#endif
21317char JNI_GetCreatedJavaVMs ();
21318int
21319main ()
21320{
21321return JNI_GetCreatedJavaVMs ();
21322 ;
21323 return 0;
21324}
21325_ACEOF
21326for ac_lib in '' dvm; do
21327 if test -z "$ac_lib"; then
21328 ac_res="none required"
21329 else
21330 ac_res=-l$ac_lib
21331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21332 fi
21333 if ac_fn_cxx_try_link "$LINENO"; then :
21334 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
21335fi
21336rm -f core conftest.err conftest.$ac_objext \
21337 conftest$ac_exeext
21338 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21339 break
21340fi
21341done
21342if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21343
21344else
21345 ac_cv_search_JNI_GetCreatedJavaVMs=no
21346fi
21347rm conftest.$ac_ext
21348LIBS=$ac_func_search_save_LIBS
21349fi
21350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
21351$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
21352ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
21353if test "$ac_res" != no; then :
21354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21355
21356
21357fi
21358
21359 LTJAVA=$LIBS
21360 LIBS=$cy_save
21361
21362
21363
21364else
21365
21366 CY_JAVA=0
21367
21368
21369fi
21370
21371
21372fi
21373
21374 ac_ext=mm
21375ac_cpp='$OBJCXXCPP $CPPFLAGS'
21376ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21377ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21378ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21379
21380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
21382$as_echo_n "checking if we really have Objective C++... " >&6; }
21383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384/* end confdefs.h. */
21385
21386_ACEOF
21387if ac_fn_objcxx_try_compile "$LINENO"; then :
21388
21389 CY_OBJECTIVEC=1
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21391$as_echo "yes" >&6; }
21392
21393else
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21395$as_echo "no" >&6; }
21396fi
21397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398
21399 if test "x$CY_OBJECTIVEC" = x1; then :
21400
21401
21402 cy_save=$LIBS
21403 LIBS=
21404
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
21406$as_echo_n "checking for framework CoreFoundation... " >&6; }
21407if ${ac_cv_framework_CoreFoundation+:} false; then :
21408 $as_echo_n "(cached) " >&6
21409else
21410
21411 ac_check_framework_save_LIBS=$LIBS
21412 LIBS="-framework CoreFoundation $LIBS"
21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21414/* end confdefs.h. */
21415
21416 #include <CoreFoundation/CFBase.h>
21417
21418int
21419main ()
21420{
21421CFAllocatorGetDefault();
21422 ;
21423 return 0;
21424}
21425_ACEOF
21426if ac_fn_objcxx_try_link "$LINENO"; then :
21427
21428 ac_cv_framework_CoreFoundation=yes
21429
21430else
21431 ac_cv_framework_CoreFoundation=no
21432fi
21433rm -f core conftest.err conftest.$ac_objext \
21434 conftest$ac_exeext conftest.$ac_ext
21435 LIBS=$ac_check_framework_save_LIBS
21436
21437fi
21438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
21439$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
21440 if test $ac_cv_framework_CoreFoundation = yes; then :
21441
21442
21443 for element in "-framework CoreFoundation"; do
21444 haveit=
21445 for x in $LIBS; do
21446
21447 acl_save_prefix="$prefix"
21448 prefix="$acl_final_prefix"
21449 acl_save_exec_prefix="$exec_prefix"
21450 exec_prefix="$acl_final_exec_prefix"
21451 eval x=\"$x\"
21452 exec_prefix="$acl_save_exec_prefix"
21453 prefix="$acl_save_prefix"
21454
21455 if test "X$x" = "X$element"; then
21456 haveit=yes
21457 break
21458 fi
21459 done
21460 if test -z "$haveit"; then
21461 LIBS="${LIBS}${LIBS:+ }$element"
21462 fi
21463 done
21464
21465
21466
21467
21468
21469
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
21471$as_echo_n "checking for framework Foundation... " >&6; }
21472if ${ac_cv_framework_Foundation+:} false; then :
21473 $as_echo_n "(cached) " >&6
21474else
21475
21476 ac_check_framework_save_LIBS=$LIBS
21477 LIBS="-framework Foundation $LIBS"
21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479/* end confdefs.h. */
21480
21481 #include <Foundation/NSObject.h>
21482
21483int
21484main ()
21485{
21486[[NSObject alloc] init];
21487 ;
21488 return 0;
21489}
21490_ACEOF
21491if ac_fn_objcxx_try_link "$LINENO"; then :
21492
21493 ac_cv_framework_Foundation=yes
21494
21495else
21496 ac_cv_framework_Foundation=no
21497fi
21498rm -f core conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
21500 LIBS=$ac_check_framework_save_LIBS
21501
21502fi
21503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21504$as_echo "$ac_cv_framework_Foundation" >&6; }
21505 if test $ac_cv_framework_Foundation = yes; then :
21506
21507
21508 for element in "-framework Foundation"; do
21509 haveit=
21510 for x in $LIBS; do
21511
21512 acl_save_prefix="$prefix"
21513 prefix="$acl_final_prefix"
21514 acl_save_exec_prefix="$exec_prefix"
21515 exec_prefix="$acl_final_exec_prefix"
21516 eval x=\"$x\"
21517 exec_prefix="$acl_save_exec_prefix"
21518 prefix="$acl_save_prefix"
21519
21520 if test "X$x" = "X$element"; then
21521 haveit=yes
21522 break
21523 fi
21524 done
21525 if test -z "$haveit"; then
21526 LIBS="${LIBS}${LIBS:+ }$element"
21527 fi
21528 done
21529
21530 cat >>confdefs.h <<_ACEOF
21531#define HAVE_FRAMEWORK_FOUNDATION 1
21532_ACEOF
21533
21534
21535fi
21536
21537
21538else
21539
21540
21541 for ac_prog in gnustep-config
21542do
21543 # Extract the first word of "$ac_prog", so it can be a program name with args.
21544set dummy $ac_prog; ac_word=$2
21545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21546$as_echo_n "checking for $ac_word... " >&6; }
21547if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21548 $as_echo_n "(cached) " >&6
21549else
21550 if test -n "$GNUSTEP_CONFIG"; then
21551 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
21552else
21553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21554for as_dir in $PATH
21555do
21556 IFS=$as_save_IFS
21557 test -z "$as_dir" && as_dir=.
21558 for ac_exec_ext in '' $ac_executable_extensions; do
21559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21560 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21562 break 2
21563 fi
21564done
21565 done
21566IFS=$as_save_IFS
21567
21568fi
21569fi
21570GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21571if test -n "$GNUSTEP_CONFIG"; then
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21573$as_echo "$GNUSTEP_CONFIG" >&6; }
21574else
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21576$as_echo "no" >&6; }
21577fi
21578
21579
21580 test -n "$GNUSTEP_CONFIG" && break
21581done
21582
21583
21584 if test "x$GNUSTEP_CONFIG" != x; then :
21585
21586
21587
21588 for element in `$GNUSTEP_CONFIG --objc-flags`; do
21589 haveit=
21590 for x in $OBJCXXFLAGS; do
21591
21592 acl_save_prefix="$prefix"
21593 prefix="$acl_final_prefix"
21594 acl_save_exec_prefix="$exec_prefix"
21595 exec_prefix="$acl_final_exec_prefix"
21596 eval x=\"$x\"
21597 exec_prefix="$acl_save_exec_prefix"
21598 prefix="$acl_save_prefix"
21599
21600 if test "X$x" = "X$element"; then
21601 haveit=yes
21602 break
21603 fi
21604 done
21605 if test -z "$haveit"; then
21606 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21607 fi
21608 done
21609
21610
21611 for element in `$GNUSTEP_CONFIG --base-libs`; do
21612 haveit=
21613 for x in $LIBS; do
21614
21615 acl_save_prefix="$prefix"
21616 prefix="$acl_final_prefix"
21617 acl_save_exec_prefix="$exec_prefix"
21618 exec_prefix="$acl_final_exec_prefix"
21619 eval x=\"$x\"
21620 exec_prefix="$acl_save_exec_prefix"
21621 prefix="$acl_save_prefix"
21622
21623 if test "X$x" = "X$element"; then
21624 haveit=yes
21625 break
21626 fi
21627 done
21628 if test -z "$haveit"; then
21629 LIBS="${LIBS}${LIBS:+ }$element"
21630 fi
21631 done
21632
21633
21634else
21635 CY_OBJECTIVEC=0
21636
21637fi
21638
21639fi
21640 LTOBJECTIVEC=$LIBS
21641 LIBS=$cy_save
21642
21643
21644
21645fi
21646
21647 ac_ext=cpp
21648ac_cpp='$CXXCPP $CPPFLAGS'
21649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21652
21653 ;; #(
21654 *) :
21655 ;;
21656esac
21657
21658 if test "x$CY_JAVA" = x1; then
21659 CY_JAVA_TRUE=
21660 CY_JAVA_FALSE='#'
21661else
21662 CY_JAVA_TRUE='#'
21663 CY_JAVA_FALSE=
21664fi
21665
21666 if test "x$CY_OBJECTIVEC" = x1; then
21667 CY_OBJECTIVEC_TRUE=
21668 CY_OBJECTIVEC_FALSE='#'
21669else
21670 CY_OBJECTIVEC_TRUE='#'
21671 CY_OBJECTIVEC_FALSE=
21672fi
21673
21674
21675
21676 cy_save=$LIBS
21677 LIBS=
21678
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21680$as_echo_n "checking for a readline compatible library... " >&6; }
21681if ${ax_cv_lib_readline+:} false; then :
21682 $as_echo_n "(cached) " >&6
21683else
21684
21685 ORIG_LIBS="$LIBS"
21686 for readline_lib in readline edit editline; do
21687 for termcap_lib in "" termcap curses ncurses; do
21688 if test -z "$termcap_lib"; then
21689 TRY_LIB="-l$readline_lib"
21690 else
21691 TRY_LIB="-l$readline_lib -l$termcap_lib"
21692 fi
21693 LIBS="$ORIG_LIBS $TRY_LIB"
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695/* end confdefs.h. */
21696
21697/* Override any GCC internal prototype to avoid an error.
21698 Use char because int might match the return type of a GCC
21699 builtin and then its argument prototype would still apply. */
21700#ifdef __cplusplus
21701extern "C"
21702#endif
21703char readline ();
21704int
21705main ()
21706{
21707return readline ();
21708 ;
21709 return 0;
21710}
21711_ACEOF
21712if ac_fn_cxx_try_link "$LINENO"; then :
21713 ax_cv_lib_readline="$TRY_LIB"
21714fi
21715rm -f core conftest.err conftest.$ac_objext \
21716 conftest$ac_exeext conftest.$ac_ext
21717 if test -n "$ax_cv_lib_readline"; then
21718 break
21719 fi
21720 done
21721 if test -n "$ax_cv_lib_readline"; then
21722 break
21723 fi
21724 done
21725 if test -z "$ax_cv_lib_readline"; then
21726 ax_cv_lib_readline="no"
21727 fi
21728 LIBS="$ORIG_LIBS"
21729
21730fi
21731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21732$as_echo "$ax_cv_lib_readline" >&6; }
21733
21734 if test "$ax_cv_lib_readline" != "no"; then
21735 LIBS="$LIBS $ax_cv_lib_readline"
21736
21737$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21738
21739 for ac_header in readline.h readline/readline.h
21740do :
21741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21744 cat >>confdefs.h <<_ACEOF
21745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21746_ACEOF
21747
21748fi
21749
21750done
21751
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21753$as_echo_n "checking whether readline supports history... " >&6; }
21754if ${ax_cv_lib_readline_history+:} false; then :
21755 $as_echo_n "(cached) " >&6
21756else
21757
21758 ax_cv_lib_readline_history="no"
21759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760/* end confdefs.h. */
21761
21762/* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21765#ifdef __cplusplus
21766extern "C"
21767#endif
21768char add_history ();
21769int
21770main ()
21771{
21772return add_history ();
21773 ;
21774 return 0;
21775}
21776_ACEOF
21777if ac_fn_cxx_try_link "$LINENO"; then :
21778 ax_cv_lib_readline_history="yes"
21779fi
21780rm -f core conftest.err conftest.$ac_objext \
21781 conftest$ac_exeext conftest.$ac_ext
21782
21783fi
21784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21785$as_echo "$ax_cv_lib_readline_history" >&6; }
21786 if test "$ax_cv_lib_readline_history" = "yes"; then
21787
21788$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21789
21790 for ac_header in history.h readline/history.h
21791do :
21792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21793ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21795 cat >>confdefs.h <<_ACEOF
21796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21797_ACEOF
21798
21799fi
21800
21801done
21802
21803 fi
21804 fi
21805
21806 LTLIBREADLINE=$LIBS
21807 LIBS=$cy_save
21808
21809
21810case $ax_cv_lib_readline in #(
21811 no) :
21812 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21813 *) :
21814 ;;
21815esac
21816
21817
21818 cy_save=$LIBS
21819 LIBS=
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21821$as_echo_n "checking for library containing cur_term... " >&6; }
21822if ${ac_cv_search_cur_term+:} false; then :
21823 $as_echo_n "(cached) " >&6
21824else
21825 ac_func_search_save_LIBS=$LIBS
21826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827/* end confdefs.h. */
21828
21829/* Override any GCC internal prototype to avoid an error.
21830 Use char because int might match the return type of a GCC
21831 builtin and then its argument prototype would still apply. */
21832#ifdef __cplusplus
21833extern "C"
21834#endif
21835char cur_term ();
21836int
21837main ()
21838{
21839return cur_term ();
21840 ;
21841 return 0;
21842}
21843_ACEOF
21844for ac_lib in '' termcap ncurses; do
21845 if test -z "$ac_lib"; then
21846 ac_res="none required"
21847 else
21848 ac_res=-l$ac_lib
21849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21850 fi
21851 if ac_fn_cxx_try_link "$LINENO"; then :
21852 ac_cv_search_cur_term=$ac_res
21853fi
21854rm -f core conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext
21856 if ${ac_cv_search_cur_term+:} false; then :
21857 break
21858fi
21859done
21860if ${ac_cv_search_cur_term+:} false; then :
21861
21862else
21863 ac_cv_search_cur_term=no
21864fi
21865rm conftest.$ac_ext
21866LIBS=$ac_func_search_save_LIBS
21867fi
21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21869$as_echo "$ac_cv_search_cur_term" >&6; }
21870ac_res=$ac_cv_search_cur_term
21871if test "$ac_res" != no; then :
21872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21873
21874fi
21875
21876 LTLIBTERMCAP=$LIBS
21877 LIBS=$cy_save
21878
21879
21880
21881
21882
21883
21884SO=$acl_shlibext
21885
21886
21887ac_config_files="$ac_config_files Makefile"
21888
21889cat >confcache <<\_ACEOF
21890# This file is a shell script that caches the results of configure
21891# tests run on this system so they can be shared between configure
21892# scripts and configure runs, see configure's option --config-cache.
21893# It is not useful on other systems. If it contains results you don't
21894# want to keep, you may remove or edit it.
21895#
21896# config.status only pays attention to the cache file if you give it
21897# the --recheck option to rerun configure.
21898#
21899# `ac_cv_env_foo' variables (set or unset) will be overridden when
21900# loading this file, other *unset* `ac_cv_foo' will be assigned the
21901# following values.
21902
21903_ACEOF
21904
21905# The following way of writing the cache mishandles newlines in values,
21906# but we know of no workaround that is simple, portable, and efficient.
21907# So, we kill variables containing newlines.
21908# Ultrix sh set writes to stderr and can't be redirected directly,
21909# and sets the high bit in the cache file unless we assign to the vars.
21910(
21911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21912 eval ac_val=\$$ac_var
21913 case $ac_val in #(
21914 *${as_nl}*)
21915 case $ac_var in #(
21916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21918 esac
21919 case $ac_var in #(
21920 _ | IFS | as_nl) ;; #(
21921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21922 *) { eval $ac_var=; unset $ac_var;} ;;
21923 esac ;;
21924 esac
21925 done
21926
21927 (set) 2>&1 |
21928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21929 *${as_nl}ac_space=\ *)
21930 # `set' does not quote correctly, so add quotes: double-quote
21931 # substitution turns \\\\ into \\, and sed turns \\ into \.
21932 sed -n \
21933 "s/'/'\\\\''/g;
21934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21935 ;; #(
21936 *)
21937 # `set' quotes correctly as required by POSIX, so do not add quotes.
21938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21939 ;;
21940 esac |
21941 sort
21942) |
21943 sed '
21944 /^ac_cv_env_/b end
21945 t clear
21946 :clear
21947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21948 t end
21949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21950 :end' >>confcache
21951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21952 if test -w "$cache_file"; then
21953 if test "x$cache_file" != "x/dev/null"; then
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21955$as_echo "$as_me: updating cache $cache_file" >&6;}
21956 if test ! -f "$cache_file" || test -h "$cache_file"; then
21957 cat confcache >"$cache_file"
21958 else
21959 case $cache_file in #(
21960 */* | ?:*)
21961 mv -f confcache "$cache_file"$$ &&
21962 mv -f "$cache_file"$$ "$cache_file" ;; #(
21963 *)
21964 mv -f confcache "$cache_file" ;;
21965 esac
21966 fi
21967 fi
21968 else
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21971 fi
21972fi
21973rm -f confcache
21974
21975test "x$prefix" = xNONE && prefix=$ac_default_prefix
21976# Let make expand exec_prefix.
21977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21978
21979DEFS=-DHAVE_CONFIG_H
21980
21981ac_libobjs=
21982ac_ltlibobjs=
21983U=
21984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21985 # 1. Remove the extension, and $U if already installed.
21986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21989 # will be set to the directory where LIBOBJS objects are built.
21990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21992done
21993LIBOBJS=$ac_libobjs
21994
21995LTLIBOBJS=$ac_ltlibobjs
21996
21997
21998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21999$as_echo_n "checking that generated files are newer than configure... " >&6; }
22000 if test -n "$am_sleep_pid"; then
22001 # Hide warnings about reused PIDs.
22002 wait $am_sleep_pid 2>/dev/null
22003 fi
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22005$as_echo "done" >&6; }
22006 if test -n "$EXEEXT"; then
22007 am__EXEEXT_TRUE=
22008 am__EXEEXT_FALSE='#'
22009else
22010 am__EXEEXT_TRUE='#'
22011 am__EXEEXT_FALSE=
22012fi
22013
22014if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22015 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22016Usually this means the macro was only invoked conditionally." "$LINENO" 5
22017fi
22018if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22019 as_fn_error $? "conditional \"AMDEP\" was never defined.
22020Usually this means the macro was only invoked conditionally." "$LINENO" 5
22021fi
22022if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22023 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22024Usually this means the macro was only invoked conditionally." "$LINENO" 5
22025fi
22026if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22027 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22028Usually this means the macro was only invoked conditionally." "$LINENO" 5
22029fi
22030if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22031 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22032Usually this means the macro was only invoked conditionally." "$LINENO" 5
22033fi
22034if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
22035 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
22036Usually this means the macro was only invoked conditionally." "$LINENO" 5
22037fi
22038if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
22039 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
22040Usually this means the macro was only invoked conditionally." "$LINENO" 5
22041fi
22042if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22043 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22044Usually this means the macro was only invoked conditionally." "$LINENO" 5
22045fi
22046if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
22047 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
22048Usually this means the macro was only invoked conditionally." "$LINENO" 5
22049fi
22050if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22051 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22052Usually this means the macro was only invoked conditionally." "$LINENO" 5
22053fi
22054
22055: "${CONFIG_STATUS=./config.status}"
22056ac_write_fail=0
22057ac_clean_files_save=$ac_clean_files
22058ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22059{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22060$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22061as_write_fail=0
22062cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22063#! $SHELL
22064# Generated by $as_me.
22065# Run this file to recreate the current configuration.
22066# Compiler output produced by configure, useful for debugging
22067# configure, is in config.log if it exists.
22068
22069debug=false
22070ac_cs_recheck=false
22071ac_cs_silent=false
22072
22073SHELL=\${CONFIG_SHELL-$SHELL}
22074export SHELL
22075_ASEOF
22076cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22077## -------------------- ##
22078## M4sh Initialization. ##
22079## -------------------- ##
22080
22081# Be more Bourne compatible
22082DUALCASE=1; export DUALCASE # for MKS sh
22083if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22084 emulate sh
22085 NULLCMD=:
22086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22087 # is contrary to our usage. Disable this feature.
22088 alias -g '${1+"$@"}'='"$@"'
22089 setopt NO_GLOB_SUBST
22090else
22091 case `(set -o) 2>/dev/null` in #(
22092 *posix*) :
22093 set -o posix ;; #(
22094 *) :
22095 ;;
22096esac
22097fi
22098
22099
22100as_nl='
22101'
22102export as_nl
22103# Printing a long string crashes Solaris 7 /usr/bin/printf.
22104as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22105as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22107# Prefer a ksh shell builtin over an external printf program on Solaris,
22108# but without wasting forks for bash or zsh.
22109if test -z "$BASH_VERSION$ZSH_VERSION" \
22110 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22111 as_echo='print -r --'
22112 as_echo_n='print -rn --'
22113elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22114 as_echo='printf %s\n'
22115 as_echo_n='printf %s'
22116else
22117 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22118 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22119 as_echo_n='/usr/ucb/echo -n'
22120 else
22121 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22122 as_echo_n_body='eval
22123 arg=$1;
22124 case $arg in #(
22125 *"$as_nl"*)
22126 expr "X$arg" : "X\\(.*\\)$as_nl";
22127 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22128 esac;
22129 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22130 '
22131 export as_echo_n_body
22132 as_echo_n='sh -c $as_echo_n_body as_echo'
22133 fi
22134 export as_echo_body
22135 as_echo='sh -c $as_echo_body as_echo'
22136fi
22137
22138# The user is always right.
22139if test "${PATH_SEPARATOR+set}" != set; then
22140 PATH_SEPARATOR=:
22141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22143 PATH_SEPARATOR=';'
22144 }
22145fi
22146
22147
22148# IFS
22149# We need space, tab and new line, in precisely that order. Quoting is
22150# there to prevent editors from complaining about space-tab.
22151# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22152# splitting by setting IFS to empty value.)
22153IFS=" "" $as_nl"
22154
22155# Find who we are. Look in the path if we contain no directory separator.
22156as_myself=
22157case $0 in #((
22158 *[\\/]* ) as_myself=$0 ;;
22159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22160for as_dir in $PATH
22161do
22162 IFS=$as_save_IFS
22163 test -z "$as_dir" && as_dir=.
22164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22165 done
22166IFS=$as_save_IFS
22167
22168 ;;
22169esac
22170# We did not find ourselves, most probably we were run as `sh COMMAND'
22171# in which case we are not to be found in the path.
22172if test "x$as_myself" = x; then
22173 as_myself=$0
22174fi
22175if test ! -f "$as_myself"; then
22176 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22177 exit 1
22178fi
22179
22180# Unset variables that we do not need and which cause bugs (e.g. in
22181# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22182# suppresses any "Segmentation fault" message there. '((' could
22183# trigger a bug in pdksh 5.2.14.
22184for as_var in BASH_ENV ENV MAIL MAILPATH
22185do eval test x\${$as_var+set} = xset \
22186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22187done
22188PS1='$ '
22189PS2='> '
22190PS4='+ '
22191
22192# NLS nuisances.
22193LC_ALL=C
22194export LC_ALL
22195LANGUAGE=C
22196export LANGUAGE
22197
22198# CDPATH.
22199(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22200
22201
22202# as_fn_error STATUS ERROR [LINENO LOG_FD]
22203# ----------------------------------------
22204# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22205# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22206# script with STATUS, using 1 if that was 0.
22207as_fn_error ()
22208{
22209 as_status=$1; test $as_status -eq 0 && as_status=1
22210 if test "$4"; then
22211 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22212 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22213 fi
22214 $as_echo "$as_me: error: $2" >&2
22215 as_fn_exit $as_status
22216} # as_fn_error
22217
22218
22219# as_fn_set_status STATUS
22220# -----------------------
22221# Set $? to STATUS, without forking.
22222as_fn_set_status ()
22223{
22224 return $1
22225} # as_fn_set_status
22226
22227# as_fn_exit STATUS
22228# -----------------
22229# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22230as_fn_exit ()
22231{
22232 set +e
22233 as_fn_set_status $1
22234 exit $1
22235} # as_fn_exit
22236
22237# as_fn_unset VAR
22238# ---------------
22239# Portably unset VAR.
22240as_fn_unset ()
22241{
22242 { eval $1=; unset $1;}
22243}
22244as_unset=as_fn_unset
22245# as_fn_append VAR VALUE
22246# ----------------------
22247# Append the text in VALUE to the end of the definition contained in VAR. Take
22248# advantage of any shell optimizations that allow amortized linear growth over
22249# repeated appends, instead of the typical quadratic growth present in naive
22250# implementations.
22251if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22252 eval 'as_fn_append ()
22253 {
22254 eval $1+=\$2
22255 }'
22256else
22257 as_fn_append ()
22258 {
22259 eval $1=\$$1\$2
22260 }
22261fi # as_fn_append
22262
22263# as_fn_arith ARG...
22264# ------------------
22265# Perform arithmetic evaluation on the ARGs, and store the result in the
22266# global $as_val. Take advantage of shells that can avoid forks. The arguments
22267# must be portable across $(()) and expr.
22268if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22269 eval 'as_fn_arith ()
22270 {
22271 as_val=$(( $* ))
22272 }'
22273else
22274 as_fn_arith ()
22275 {
22276 as_val=`expr "$@" || test $? -eq 1`
22277 }
22278fi # as_fn_arith
22279
22280
22281if expr a : '\(a\)' >/dev/null 2>&1 &&
22282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22283 as_expr=expr
22284else
22285 as_expr=false
22286fi
22287
22288if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22289 as_basename=basename
22290else
22291 as_basename=false
22292fi
22293
22294if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22295 as_dirname=dirname
22296else
22297 as_dirname=false
22298fi
22299
22300as_me=`$as_basename -- "$0" ||
22301$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22302 X"$0" : 'X\(//\)$' \| \
22303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22304$as_echo X/"$0" |
22305 sed '/^.*\/\([^/][^/]*\)\/*$/{
22306 s//\1/
22307 q
22308 }
22309 /^X\/\(\/\/\)$/{
22310 s//\1/
22311 q
22312 }
22313 /^X\/\(\/\).*/{
22314 s//\1/
22315 q
22316 }
22317 s/.*/./; q'`
22318
22319# Avoid depending upon Character Ranges.
22320as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22321as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22322as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22323as_cr_digits='0123456789'
22324as_cr_alnum=$as_cr_Letters$as_cr_digits
22325
22326ECHO_C= ECHO_N= ECHO_T=
22327case `echo -n x` in #(((((
22328-n*)
22329 case `echo 'xy\c'` in
22330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22331 xy) ECHO_C='\c';;
22332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22333 ECHO_T=' ';;
22334 esac;;
22335*)
22336 ECHO_N='-n';;
22337esac
22338
22339rm -f conf$$ conf$$.exe conf$$.file
22340if test -d conf$$.dir; then
22341 rm -f conf$$.dir/conf$$.file
22342else
22343 rm -f conf$$.dir
22344 mkdir conf$$.dir 2>/dev/null
22345fi
22346if (echo >conf$$.file) 2>/dev/null; then
22347 if ln -s conf$$.file conf$$ 2>/dev/null; then
22348 as_ln_s='ln -s'
22349 # ... but there are two gotchas:
22350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22352 # In both cases, we have to default to `cp -pR'.
22353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22354 as_ln_s='cp -pR'
22355 elif ln conf$$.file conf$$ 2>/dev/null; then
22356 as_ln_s=ln
22357 else
22358 as_ln_s='cp -pR'
22359 fi
22360else
22361 as_ln_s='cp -pR'
22362fi
22363rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22364rmdir conf$$.dir 2>/dev/null
22365
22366
22367# as_fn_mkdir_p
22368# -------------
22369# Create "$as_dir" as a directory, including parents if necessary.
22370as_fn_mkdir_p ()
22371{
22372
22373 case $as_dir in #(
22374 -*) as_dir=./$as_dir;;
22375 esac
22376 test -d "$as_dir" || eval $as_mkdir_p || {
22377 as_dirs=
22378 while :; do
22379 case $as_dir in #(
22380 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22381 *) as_qdir=$as_dir;;
22382 esac
22383 as_dirs="'$as_qdir' $as_dirs"
22384 as_dir=`$as_dirname -- "$as_dir" ||
22385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22386 X"$as_dir" : 'X\(//\)[^/]' \| \
22387 X"$as_dir" : 'X\(//\)$' \| \
22388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22389$as_echo X"$as_dir" |
22390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22391 s//\1/
22392 q
22393 }
22394 /^X\(\/\/\)[^/].*/{
22395 s//\1/
22396 q
22397 }
22398 /^X\(\/\/\)$/{
22399 s//\1/
22400 q
22401 }
22402 /^X\(\/\).*/{
22403 s//\1/
22404 q
22405 }
22406 s/.*/./; q'`
22407 test -d "$as_dir" && break
22408 done
22409 test -z "$as_dirs" || eval "mkdir $as_dirs"
22410 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22411
22412
22413} # as_fn_mkdir_p
22414if mkdir -p . 2>/dev/null; then
22415 as_mkdir_p='mkdir -p "$as_dir"'
22416else
22417 test -d ./-p && rmdir ./-p
22418 as_mkdir_p=false
22419fi
22420
22421
22422# as_fn_executable_p FILE
22423# -----------------------
22424# Test if FILE is an executable regular file.
22425as_fn_executable_p ()
22426{
22427 test -f "$1" && test -x "$1"
22428} # as_fn_executable_p
22429as_test_x='test -x'
22430as_executable_p=as_fn_executable_p
22431
22432# Sed expression to map a string onto a valid CPP name.
22433as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22434
22435# Sed expression to map a string onto a valid variable name.
22436as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22437
22438
22439exec 6>&1
22440## ----------------------------------- ##
22441## Main body of $CONFIG_STATUS script. ##
22442## ----------------------------------- ##
22443_ASEOF
22444test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22445
22446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22447# Save the log message, to keep $0 and so on meaningful, and to
22448# report actual input values of CONFIG_FILES etc. instead of their
22449# values after options handling.
22450ac_log="
22451This file was extended by Cycript $as_me 0.9, which was
22452generated by GNU Autoconf 2.69. Invocation command line was
22453
22454 CONFIG_FILES = $CONFIG_FILES
22455 CONFIG_HEADERS = $CONFIG_HEADERS
22456 CONFIG_LINKS = $CONFIG_LINKS
22457 CONFIG_COMMANDS = $CONFIG_COMMANDS
22458 $ $0 $@
22459
22460on `(hostname || uname -n) 2>/dev/null | sed 1q`
22461"
22462
22463_ACEOF
22464
22465case $ac_config_files in *"
22466"*) set x $ac_config_files; shift; ac_config_files=$*;;
22467esac
22468
22469case $ac_config_headers in *"
22470"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22471esac
22472
22473
22474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22475# Files that config.status was made for.
22476config_files="$ac_config_files"
22477config_headers="$ac_config_headers"
22478config_commands="$ac_config_commands"
22479
22480_ACEOF
22481
22482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22483ac_cs_usage="\
22484\`$as_me' instantiates files and other configuration actions
22485from templates according to the current configuration. Unless the files
22486and actions are specified as TAGs, all are instantiated by default.
22487
22488Usage: $0 [OPTION]... [TAG]...
22489
22490 -h, --help print this help, then exit
22491 -V, --version print version number and configuration settings, then exit
22492 --config print configuration, then exit
22493 -q, --quiet, --silent
22494 do not print progress messages
22495 -d, --debug don't remove temporary files
22496 --recheck update $as_me by reconfiguring in the same conditions
22497 --file=FILE[:TEMPLATE]
22498 instantiate the configuration file FILE
22499 --header=FILE[:TEMPLATE]
22500 instantiate the configuration header FILE
22501
22502Configuration files:
22503$config_files
22504
22505Configuration headers:
22506$config_headers
22507
22508Configuration commands:
22509$config_commands
22510
22511Report bugs to <saurik@saurik.com>.
22512Cycript home page: <http://www.cycript.org/>."
22513
22514_ACEOF
22515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22516ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22517ac_cs_version="\\
22518Cycript config.status 0.9
22519configured by $0, generated by GNU Autoconf 2.69,
22520 with options \\"\$ac_cs_config\\"
22521
22522Copyright (C) 2012 Free Software Foundation, Inc.
22523This config.status script is free software; the Free Software Foundation
22524gives unlimited permission to copy, distribute and modify it."
22525
22526ac_pwd='$ac_pwd'
22527srcdir='$srcdir'
22528INSTALL='$INSTALL'
22529MKDIR_P='$MKDIR_P'
22530AWK='$AWK'
22531test -n "\$AWK" || AWK=awk
22532_ACEOF
22533
22534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535# The default lists apply if the user does not specify any file.
22536ac_need_defaults=:
22537while test $# != 0
22538do
22539 case $1 in
22540 --*=?*)
22541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22543 ac_shift=:
22544 ;;
22545 --*=)
22546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22547 ac_optarg=
22548 ac_shift=:
22549 ;;
22550 *)
22551 ac_option=$1
22552 ac_optarg=$2
22553 ac_shift=shift
22554 ;;
22555 esac
22556
22557 case $ac_option in
22558 # Handling of the options.
22559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22560 ac_cs_recheck=: ;;
22561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22562 $as_echo "$ac_cs_version"; exit ;;
22563 --config | --confi | --conf | --con | --co | --c )
22564 $as_echo "$ac_cs_config"; exit ;;
22565 --debug | --debu | --deb | --de | --d | -d )
22566 debug=: ;;
22567 --file | --fil | --fi | --f )
22568 $ac_shift
22569 case $ac_optarg in
22570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22571 '') as_fn_error $? "missing file argument" ;;
22572 esac
22573 as_fn_append CONFIG_FILES " '$ac_optarg'"
22574 ac_need_defaults=false;;
22575 --header | --heade | --head | --hea )
22576 $ac_shift
22577 case $ac_optarg in
22578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22579 esac
22580 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22581 ac_need_defaults=false;;
22582 --he | --h)
22583 # Conflict between --help and --header
22584 as_fn_error $? "ambiguous option: \`$1'
22585Try \`$0 --help' for more information.";;
22586 --help | --hel | -h )
22587 $as_echo "$ac_cs_usage"; exit ;;
22588 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22589 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22590 ac_cs_silent=: ;;
22591
22592 # This is an error.
22593 -*) as_fn_error $? "unrecognized option: \`$1'
22594Try \`$0 --help' for more information." ;;
22595
22596 *) as_fn_append ac_config_targets " $1"
22597 ac_need_defaults=false ;;
22598
22599 esac
22600 shift
22601done
22602
22603ac_configure_extra_args=
22604
22605if $ac_cs_silent; then
22606 exec 6>/dev/null
22607 ac_configure_extra_args="$ac_configure_extra_args --silent"
22608fi
22609
22610_ACEOF
22611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22612if \$ac_cs_recheck; then
22613 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22614 shift
22615 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22616 CONFIG_SHELL='$SHELL'
22617 export CONFIG_SHELL
22618 exec "\$@"
22619fi
22620
22621_ACEOF
22622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22623exec 5>>config.log
22624{
22625 echo
22626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22627## Running $as_me. ##
22628_ASBOX
22629 $as_echo "$ac_log"
22630} >&5
22631
22632_ACEOF
22633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22634#
22635# INIT-COMMANDS
22636#
22637AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22638
22639
22640# The HP-UX ksh and POSIX shell print the target directory to stdout
22641# if CDPATH is set.
22642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22643
22644sed_quote_subst='$sed_quote_subst'
22645double_quote_subst='$double_quote_subst'
22646delay_variable_subst='$delay_variable_subst'
22647macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22648macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22649enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22650enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22651pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22652enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22653shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22654SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22655ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22656PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22657host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22658host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22659host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22660build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22661build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22662build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22663SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22664Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22665GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22666EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22667FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22668LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22669NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22670LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22671max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22672ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22673exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22674lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22675lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22676lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22677lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22678lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22679reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22680reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22681OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22682deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22683file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22684file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22685want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22686DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22687sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22688AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22689AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22690archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22691STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22692RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22693old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22694old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22695old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22696lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22697CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22698CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22699compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22700GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22701lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22702lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22703lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22704lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22705lt_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"`'
22706lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22707nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22708lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22709lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22710objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22711MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22712lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22713lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22714lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22715lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22716lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22717need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22718MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22719DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22720NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22721LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22722OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22723OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22724libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22725shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22726extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22727archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22728enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22729export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22730whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22731compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22732old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22733old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22734archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22735archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22736module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22737module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22738with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22739allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22740no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22741hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22742hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22743hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22744hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22745hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22746hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22747hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22748inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22749link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22750always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22751export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22752exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22753include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22754prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22755postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22756file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22757variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22758need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22759need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22760version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22761runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22762shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22763shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22764libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22765library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22766soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22767install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22768postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22769postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22770finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22771finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22772hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22773sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22774configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22775configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22776hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22777enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22778enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22779enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22780old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22781striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22782compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22783predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22784postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22785predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22786postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22787compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22788LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22789reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22790reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22791old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22792compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22793GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22794lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22795lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22796lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22797lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22798lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22799archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22800enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22801export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22802whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22803compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22804old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22805old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22806archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22807archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22808module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22809module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22810with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22811allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22812no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22813hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22814hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22815hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22816hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22817hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22818hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22819hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22820inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22821link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22822always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22823export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22824exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22825include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22826prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22827postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22828file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22829hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22830compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22831predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22832postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22833predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22834postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22835compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22836
22837LTCC='$LTCC'
22838LTCFLAGS='$LTCFLAGS'
22839compiler='$compiler_DEFAULT'
22840
22841# A function that is used when there is no print builtin or printf.
22842func_fallback_echo ()
22843{
22844 eval 'cat <<_LTECHO_EOF
22845\$1
22846_LTECHO_EOF'
22847}
22848
22849# Quote evaled strings.
22850for var in SHELL \
22851ECHO \
22852PATH_SEPARATOR \
22853SED \
22854GREP \
22855EGREP \
22856FGREP \
22857LD \
22858NM \
22859LN_S \
22860lt_SP2NL \
22861lt_NL2SP \
22862reload_flag \
22863OBJDUMP \
22864deplibs_check_method \
22865file_magic_cmd \
22866file_magic_glob \
22867want_nocaseglob \
22868DLLTOOL \
22869sharedlib_from_linklib_cmd \
22870AR \
22871AR_FLAGS \
22872archiver_list_spec \
22873STRIP \
22874RANLIB \
22875CC \
22876CFLAGS \
22877compiler \
22878lt_cv_sys_global_symbol_pipe \
22879lt_cv_sys_global_symbol_to_cdecl \
22880lt_cv_sys_global_symbol_to_import \
22881lt_cv_sys_global_symbol_to_c_name_address \
22882lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22883lt_cv_nm_interface \
22884nm_file_list_spec \
22885lt_cv_truncate_bin \
22886lt_prog_compiler_no_builtin_flag \
22887lt_prog_compiler_pic \
22888lt_prog_compiler_wl \
22889lt_prog_compiler_static \
22890lt_cv_prog_compiler_c_o \
22891need_locks \
22892MANIFEST_TOOL \
22893DSYMUTIL \
22894NMEDIT \
22895LIPO \
22896OTOOL \
22897OTOOL64 \
22898shrext_cmds \
22899export_dynamic_flag_spec \
22900whole_archive_flag_spec \
22901compiler_needs_object \
22902with_gnu_ld \
22903allow_undefined_flag \
22904no_undefined_flag \
22905hardcode_libdir_flag_spec \
22906hardcode_libdir_separator \
22907exclude_expsyms \
22908include_expsyms \
22909file_list_spec \
22910variables_saved_for_relink \
22911libname_spec \
22912library_names_spec \
22913soname_spec \
22914install_override_mode \
22915finish_eval \
22916old_striplib \
22917striplib \
22918compiler_lib_search_dirs \
22919predep_objects \
22920postdep_objects \
22921predeps \
22922postdeps \
22923compiler_lib_search_path \
22924LD_CXX \
22925reload_flag_CXX \
22926compiler_CXX \
22927lt_prog_compiler_no_builtin_flag_CXX \
22928lt_prog_compiler_pic_CXX \
22929lt_prog_compiler_wl_CXX \
22930lt_prog_compiler_static_CXX \
22931lt_cv_prog_compiler_c_o_CXX \
22932export_dynamic_flag_spec_CXX \
22933whole_archive_flag_spec_CXX \
22934compiler_needs_object_CXX \
22935with_gnu_ld_CXX \
22936allow_undefined_flag_CXX \
22937no_undefined_flag_CXX \
22938hardcode_libdir_flag_spec_CXX \
22939hardcode_libdir_separator_CXX \
22940exclude_expsyms_CXX \
22941include_expsyms_CXX \
22942file_list_spec_CXX \
22943compiler_lib_search_dirs_CXX \
22944predep_objects_CXX \
22945postdep_objects_CXX \
22946predeps_CXX \
22947postdeps_CXX \
22948compiler_lib_search_path_CXX; do
22949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22950 *[\\\\\\\`\\"\\\$]*)
22951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22952 ;;
22953 *)
22954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22955 ;;
22956 esac
22957done
22958
22959# Double-quote double-evaled strings.
22960for var in reload_cmds \
22961old_postinstall_cmds \
22962old_postuninstall_cmds \
22963old_archive_cmds \
22964extract_expsyms_cmds \
22965old_archive_from_new_cmds \
22966old_archive_from_expsyms_cmds \
22967archive_cmds \
22968archive_expsym_cmds \
22969module_cmds \
22970module_expsym_cmds \
22971export_symbols_cmds \
22972prelink_cmds \
22973postlink_cmds \
22974postinstall_cmds \
22975postuninstall_cmds \
22976finish_cmds \
22977sys_lib_search_path_spec \
22978configure_time_dlsearch_path \
22979configure_time_lt_sys_library_path \
22980reload_cmds_CXX \
22981old_archive_cmds_CXX \
22982old_archive_from_new_cmds_CXX \
22983old_archive_from_expsyms_cmds_CXX \
22984archive_cmds_CXX \
22985archive_expsym_cmds_CXX \
22986module_cmds_CXX \
22987module_expsym_cmds_CXX \
22988export_symbols_cmds_CXX \
22989prelink_cmds_CXX \
22990postlink_cmds_CXX; do
22991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22992 *[\\\\\\\`\\"\\\$]*)
22993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22994 ;;
22995 *)
22996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22997 ;;
22998 esac
22999done
23000
23001ac_aux_dir='$ac_aux_dir'
23002
23003# See if we are running on zsh, and set the options that allow our
23004# commands through without removal of \ escapes INIT.
23005if test -n "\${ZSH_VERSION+set}"; then
23006 setopt NO_GLOB_SUBST
23007fi
23008
23009
23010 PACKAGE='$PACKAGE'
23011 VERSION='$VERSION'
23012 RM='$RM'
23013 ofile='$ofile'
23014
23015
23016
23017
23018
23019
23020_ACEOF
23021
23022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23023
23024# Handling of arguments.
23025for ac_config_target in $ac_config_targets
23026do
23027 case $ac_config_target in
23028 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23029 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23030 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23031 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23032
23033 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23034 esac
23035done
23036
23037
23038# If the user did not use the arguments to specify the items to instantiate,
23039# then the envvar interface is used. Set only those that are not.
23040# We use the long form for the default assignment because of an extremely
23041# bizarre bug on SunOS 4.1.3.
23042if $ac_need_defaults; then
23043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23046fi
23047
23048# Have a temporary directory for convenience. Make it in the build tree
23049# simply because there is no reason against having it here, and in addition,
23050# creating and moving files from /tmp can sometimes cause problems.
23051# Hook for its removal unless debugging.
23052# Note that there is a small window in which the directory will not be cleaned:
23053# after its creation but before its name has been assigned to `$tmp'.
23054$debug ||
23055{
23056 tmp= ac_tmp=
23057 trap 'exit_status=$?
23058 : "${ac_tmp:=$tmp}"
23059 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23060' 0
23061 trap 'as_fn_exit 1' 1 2 13 15
23062}
23063# Create a (secure) tmp directory for tmp files.
23064
23065{
23066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23067 test -d "$tmp"
23068} ||
23069{
23070 tmp=./conf$$-$RANDOM
23071 (umask 077 && mkdir "$tmp")
23072} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23073ac_tmp=$tmp
23074
23075# Set up the scripts for CONFIG_FILES section.
23076# No need to generate them if there are no CONFIG_FILES.
23077# This happens for instance with `./config.status config.h'.
23078if test -n "$CONFIG_FILES"; then
23079
23080
23081ac_cr=`echo X | tr X '\015'`
23082# On cygwin, bash can eat \r inside `` if the user requested igncr.
23083# But we know of no other shell where ac_cr would be empty at this
23084# point, so we can use a bashism as a fallback.
23085if test "x$ac_cr" = x; then
23086 eval ac_cr=\$\'\\r\'
23087fi
23088ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23089if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23090 ac_cs_awk_cr='\\r'
23091else
23092 ac_cs_awk_cr=$ac_cr
23093fi
23094
23095echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23096_ACEOF
23097
23098
23099{
23100 echo "cat >conf$$subs.awk <<_ACEOF" &&
23101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23102 echo "_ACEOF"
23103} >conf$$subs.sh ||
23104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23105ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23106ac_delim='%!_!# '
23107for ac_last_try in false false false false false :; do
23108 . ./conf$$subs.sh ||
23109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23110
23111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23112 if test $ac_delim_n = $ac_delim_num; then
23113 break
23114 elif $ac_last_try; then
23115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23116 else
23117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23118 fi
23119done
23120rm -f conf$$subs.sh
23121
23122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23123cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23124_ACEOF
23125sed -n '
23126h
23127s/^/S["/; s/!.*/"]=/
23128p
23129g
23130s/^[^!]*!//
23131:repl
23132t repl
23133s/'"$ac_delim"'$//
23134t delim
23135:nl
23136h
23137s/\(.\{148\}\)..*/\1/
23138t more1
23139s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23140p
23141n
23142b repl
23143:more1
23144s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23145p
23146g
23147s/.\{148\}//
23148t nl
23149:delim
23150h
23151s/\(.\{148\}\)..*/\1/
23152t more2
23153s/["\\]/\\&/g; s/^/"/; s/$/"/
23154p
23155b
23156:more2
23157s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23158p
23159g
23160s/.\{148\}//
23161t delim
23162' <conf$$subs.awk | sed '
23163/^[^""]/{
23164 N
23165 s/\n//
23166}
23167' >>$CONFIG_STATUS || ac_write_fail=1
23168rm -f conf$$subs.awk
23169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23170_ACAWK
23171cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23172 for (key in S) S_is_set[key] = 1
23173 FS = "\a"
23174
23175}
23176{
23177 line = $ 0
23178 nfields = split(line, field, "@")
23179 substed = 0
23180 len = length(field[1])
23181 for (i = 2; i < nfields; i++) {
23182 key = field[i]
23183 keylen = length(key)
23184 if (S_is_set[key]) {
23185 value = S[key]
23186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23187 len += length(value) + length(field[++i])
23188 substed = 1
23189 } else
23190 len += 1 + keylen
23191 }
23192
23193 print line
23194}
23195
23196_ACAWK
23197_ACEOF
23198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23199if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23200 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23201else
23202 cat
23203fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23204 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23205_ACEOF
23206
23207# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23208# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23209# trailing colons and then remove the whole line if VPATH becomes empty
23210# (actually we leave an empty line to preserve line numbers).
23211if test "x$srcdir" = x.; then
23212 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23213h
23214s///
23215s/^/:/
23216s/[ ]*$/:/
23217s/:\$(srcdir):/:/g
23218s/:\${srcdir}:/:/g
23219s/:@srcdir@:/:/g
23220s/^:*//
23221s/:*$//
23222x
23223s/\(=[ ]*\).*/\1/
23224G
23225s/\n//
23226s/^[^=]*=[ ]*$//
23227}'
23228fi
23229
23230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23231fi # test -n "$CONFIG_FILES"
23232
23233# Set up the scripts for CONFIG_HEADERS section.
23234# No need to generate them if there are no CONFIG_HEADERS.
23235# This happens for instance with `./config.status Makefile'.
23236if test -n "$CONFIG_HEADERS"; then
23237cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23238BEGIN {
23239_ACEOF
23240
23241# Transform confdefs.h into an awk script `defines.awk', embedded as
23242# here-document in config.status, that substitutes the proper values into
23243# config.h.in to produce config.h.
23244
23245# Create a delimiter string that does not exist in confdefs.h, to ease
23246# handling of long lines.
23247ac_delim='%!_!# '
23248for ac_last_try in false false :; do
23249 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23250 if test -z "$ac_tt"; then
23251 break
23252 elif $ac_last_try; then
23253 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23254 else
23255 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23256 fi
23257done
23258
23259# For the awk script, D is an array of macro values keyed by name,
23260# likewise P contains macro parameters if any. Preserve backslash
23261# newline sequences.
23262
23263ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23264sed -n '
23265s/.\{148\}/&'"$ac_delim"'/g
23266t rset
23267:rset
23268s/^[ ]*#[ ]*define[ ][ ]*/ /
23269t def
23270d
23271:def
23272s/\\$//
23273t bsnl
23274s/["\\]/\\&/g
23275s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23276D["\1"]=" \3"/p
23277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23278d
23279:bsnl
23280s/["\\]/\\&/g
23281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23282D["\1"]=" \3\\\\\\n"\\/p
23283t cont
23284s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23285t cont
23286d
23287:cont
23288n
23289s/.\{148\}/&'"$ac_delim"'/g
23290t clear
23291:clear
23292s/\\$//
23293t bsnlc
23294s/["\\]/\\&/g; s/^/"/; s/$/"/p
23295d
23296:bsnlc
23297s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23298b cont
23299' <confdefs.h | sed '
23300s/'"$ac_delim"'/"\\\
23301"/g' >>$CONFIG_STATUS || ac_write_fail=1
23302
23303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23304 for (key in D) D_is_set[key] = 1
23305 FS = "\a"
23306}
23307/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23308 line = \$ 0
23309 split(line, arg, " ")
23310 if (arg[1] == "#") {
23311 defundef = arg[2]
23312 mac1 = arg[3]
23313 } else {
23314 defundef = substr(arg[1], 2)
23315 mac1 = arg[2]
23316 }
23317 split(mac1, mac2, "(") #)
23318 macro = mac2[1]
23319 prefix = substr(line, 1, index(line, defundef) - 1)
23320 if (D_is_set[macro]) {
23321 # Preserve the white space surrounding the "#".
23322 print prefix "define", macro P[macro] D[macro]
23323 next
23324 } else {
23325 # Replace #undef with comments. This is necessary, for example,
23326 # in the case of _POSIX_SOURCE, which is predefined and required
23327 # on some systems where configure will not decide to define it.
23328 if (defundef == "undef") {
23329 print "/*", prefix defundef, macro, "*/"
23330 next
23331 }
23332 }
23333}
23334{ print }
23335_ACAWK
23336_ACEOF
23337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23338 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23339fi # test -n "$CONFIG_HEADERS"
23340
23341
23342eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23343shift
23344for ac_tag
23345do
23346 case $ac_tag in
23347 :[FHLC]) ac_mode=$ac_tag; continue;;
23348 esac
23349 case $ac_mode$ac_tag in
23350 :[FHL]*:*);;
23351 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23352 :[FH]-) ac_tag=-:-;;
23353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23354 esac
23355 ac_save_IFS=$IFS
23356 IFS=:
23357 set x $ac_tag
23358 IFS=$ac_save_IFS
23359 shift
23360 ac_file=$1
23361 shift
23362
23363 case $ac_mode in
23364 :L) ac_source=$1;;
23365 :[FH])
23366 ac_file_inputs=
23367 for ac_f
23368 do
23369 case $ac_f in
23370 -) ac_f="$ac_tmp/stdin";;
23371 *) # Look for the file first in the build tree, then in the source tree
23372 # (if the path is not absolute). The absolute path cannot be DOS-style,
23373 # because $ac_f cannot contain `:'.
23374 test -f "$ac_f" ||
23375 case $ac_f in
23376 [\\/$]*) false;;
23377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23378 esac ||
23379 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23380 esac
23381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23382 as_fn_append ac_file_inputs " '$ac_f'"
23383 done
23384
23385 # Let's still pretend it is `configure' which instantiates (i.e., don't
23386 # use $as_me), people would be surprised to read:
23387 # /* config.h. Generated by config.status. */
23388 configure_input='Generated from '`
23389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23390 `' by configure.'
23391 if test x"$ac_file" != x-; then
23392 configure_input="$ac_file. $configure_input"
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23394$as_echo "$as_me: creating $ac_file" >&6;}
23395 fi
23396 # Neutralize special characters interpreted by sed in replacement strings.
23397 case $configure_input in #(
23398 *\&* | *\|* | *\\* )
23399 ac_sed_conf_input=`$as_echo "$configure_input" |
23400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23401 *) ac_sed_conf_input=$configure_input;;
23402 esac
23403
23404 case $ac_tag in
23405 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23407 esac
23408 ;;
23409 esac
23410
23411 ac_dir=`$as_dirname -- "$ac_file" ||
23412$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23413 X"$ac_file" : 'X\(//\)[^/]' \| \
23414 X"$ac_file" : 'X\(//\)$' \| \
23415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23416$as_echo X"$ac_file" |
23417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23418 s//\1/
23419 q
23420 }
23421 /^X\(\/\/\)[^/].*/{
23422 s//\1/
23423 q
23424 }
23425 /^X\(\/\/\)$/{
23426 s//\1/
23427 q
23428 }
23429 /^X\(\/\).*/{
23430 s//\1/
23431 q
23432 }
23433 s/.*/./; q'`
23434 as_dir="$ac_dir"; as_fn_mkdir_p
23435 ac_builddir=.
23436
23437case "$ac_dir" in
23438.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23439*)
23440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23441 # A ".." for each directory in $ac_dir_suffix.
23442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23443 case $ac_top_builddir_sub in
23444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23446 esac ;;
23447esac
23448ac_abs_top_builddir=$ac_pwd
23449ac_abs_builddir=$ac_pwd$ac_dir_suffix
23450# for backward compatibility:
23451ac_top_builddir=$ac_top_build_prefix
23452
23453case $srcdir in
23454 .) # We are building in place.
23455 ac_srcdir=.
23456 ac_top_srcdir=$ac_top_builddir_sub
23457 ac_abs_top_srcdir=$ac_pwd ;;
23458 [\\/]* | ?:[\\/]* ) # Absolute name.
23459 ac_srcdir=$srcdir$ac_dir_suffix;
23460 ac_top_srcdir=$srcdir
23461 ac_abs_top_srcdir=$srcdir ;;
23462 *) # Relative name.
23463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23464 ac_top_srcdir=$ac_top_build_prefix$srcdir
23465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23466esac
23467ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23468
23469
23470 case $ac_mode in
23471 :F)
23472 #
23473 # CONFIG_FILE
23474 #
23475
23476 case $INSTALL in
23477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23479 esac
23480 ac_MKDIR_P=$MKDIR_P
23481 case $MKDIR_P in
23482 [\\/$]* | ?:[\\/]* ) ;;
23483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23484 esac
23485_ACEOF
23486
23487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23488# If the template does not know about datarootdir, expand it.
23489# FIXME: This hack should be removed a few years after 2.60.
23490ac_datarootdir_hack=; ac_datarootdir_seen=
23491ac_sed_dataroot='
23492/datarootdir/ {
23493 p
23494 q
23495}
23496/@datadir@/p
23497/@docdir@/p
23498/@infodir@/p
23499/@localedir@/p
23500/@mandir@/p'
23501case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23502*datarootdir*) ac_datarootdir_seen=yes;;
23503*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23505$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23506_ACEOF
23507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23508 ac_datarootdir_hack='
23509 s&@datadir@&$datadir&g
23510 s&@docdir@&$docdir&g
23511 s&@infodir@&$infodir&g
23512 s&@localedir@&$localedir&g
23513 s&@mandir@&$mandir&g
23514 s&\\\${datarootdir}&$datarootdir&g' ;;
23515esac
23516_ACEOF
23517
23518# Neutralize VPATH when `$srcdir' = `.'.
23519# Shell code in configure.ac might set extrasub.
23520# FIXME: do we really want to maintain this feature?
23521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23522ac_sed_extra="$ac_vpsub
23523$extrasub
23524_ACEOF
23525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526:t
23527/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23528s|@configure_input@|$ac_sed_conf_input|;t t
23529s&@top_builddir@&$ac_top_builddir_sub&;t t
23530s&@top_build_prefix@&$ac_top_build_prefix&;t t
23531s&@srcdir@&$ac_srcdir&;t t
23532s&@abs_srcdir@&$ac_abs_srcdir&;t t
23533s&@top_srcdir@&$ac_top_srcdir&;t t
23534s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23535s&@builddir@&$ac_builddir&;t t
23536s&@abs_builddir@&$ac_abs_builddir&;t t
23537s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23538s&@INSTALL@&$ac_INSTALL&;t t
23539s&@MKDIR_P@&$ac_MKDIR_P&;t t
23540$ac_datarootdir_hack
23541"
23542eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23544
23545test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23548 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23550which seems to be undefined. Please make sure it is defined" >&5
23551$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23552which seems to be undefined. Please make sure it is defined" >&2;}
23553
23554 rm -f "$ac_tmp/stdin"
23555 case $ac_file in
23556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23558 esac \
23559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23560 ;;
23561 :H)
23562 #
23563 # CONFIG_HEADER
23564 #
23565 if test x"$ac_file" != x-; then
23566 {
23567 $as_echo "/* $configure_input */" \
23568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23569 } >"$ac_tmp/config.h" \
23570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23571 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23573$as_echo "$as_me: $ac_file is unchanged" >&6;}
23574 else
23575 rm -f "$ac_file"
23576 mv "$ac_tmp/config.h" "$ac_file" \
23577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23578 fi
23579 else
23580 $as_echo "/* $configure_input */" \
23581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23582 || as_fn_error $? "could not create -" "$LINENO" 5
23583 fi
23584# Compute "$ac_file"'s index in $config_headers.
23585_am_arg="$ac_file"
23586_am_stamp_count=1
23587for _am_header in $config_headers :; do
23588 case $_am_header in
23589 $_am_arg | $_am_arg:* )
23590 break ;;
23591 * )
23592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23593 esac
23594done
23595echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23596$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23597 X"$_am_arg" : 'X\(//\)[^/]' \| \
23598 X"$_am_arg" : 'X\(//\)$' \| \
23599 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23600$as_echo X"$_am_arg" |
23601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23602 s//\1/
23603 q
23604 }
23605 /^X\(\/\/\)[^/].*/{
23606 s//\1/
23607 q
23608 }
23609 /^X\(\/\/\)$/{
23610 s//\1/
23611 q
23612 }
23613 /^X\(\/\).*/{
23614 s//\1/
23615 q
23616 }
23617 s/.*/./; q'`/stamp-h$_am_stamp_count
23618 ;;
23619
23620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23621$as_echo "$as_me: executing $ac_file commands" >&6;}
23622 ;;
23623 esac
23624
23625
23626 case $ac_file$ac_mode in
23627 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23628 # Older Autoconf quotes --file arguments for eval, but not when files
23629 # are listed without --file. Let's play safe and only enable the eval
23630 # if we detect the quoting.
23631 case $CONFIG_FILES in
23632 *\'*) eval set x "$CONFIG_FILES" ;;
23633 *) set x $CONFIG_FILES ;;
23634 esac
23635 shift
23636 for mf
23637 do
23638 # Strip MF so we end up with the name of the file.
23639 mf=`echo "$mf" | sed -e 's/:.*$//'`
23640 # Check whether this is an Automake generated Makefile or not.
23641 # We used to match only the files named 'Makefile.in', but
23642 # some people rename them; so instead we look at the file content.
23643 # Grep'ing the first line is not enough: some people post-process
23644 # each Makefile.in and add a new line on top of each file to say so.
23645 # Grep'ing the whole file is not good either: AIX grep has a line
23646 # limit of 2048, but all sed's we know have understand at least 4000.
23647 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23648 dirpart=`$as_dirname -- "$mf" ||
23649$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23650 X"$mf" : 'X\(//\)[^/]' \| \
23651 X"$mf" : 'X\(//\)$' \| \
23652 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23653$as_echo X"$mf" |
23654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23655 s//\1/
23656 q
23657 }
23658 /^X\(\/\/\)[^/].*/{
23659 s//\1/
23660 q
23661 }
23662 /^X\(\/\/\)$/{
23663 s//\1/
23664 q
23665 }
23666 /^X\(\/\).*/{
23667 s//\1/
23668 q
23669 }
23670 s/.*/./; q'`
23671 else
23672 continue
23673 fi
23674 # Extract the definition of DEPDIR, am__include, and am__quote
23675 # from the Makefile without running 'make'.
23676 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23677 test -z "$DEPDIR" && continue
23678 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23679 test -z "$am__include" && continue
23680 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23681 # Find all dependency output files, they are included files with
23682 # $(DEPDIR) in their names. We invoke sed twice because it is the
23683 # simplest approach to changing $(DEPDIR) to its actual value in the
23684 # expansion.
23685 for file in `sed -n "
23686 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23687 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23688 # Make sure the directory exists.
23689 test -f "$dirpart/$file" && continue
23690 fdir=`$as_dirname -- "$file" ||
23691$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23692 X"$file" : 'X\(//\)[^/]' \| \
23693 X"$file" : 'X\(//\)$' \| \
23694 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23695$as_echo X"$file" |
23696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23697 s//\1/
23698 q
23699 }
23700 /^X\(\/\/\)[^/].*/{
23701 s//\1/
23702 q
23703 }
23704 /^X\(\/\/\)$/{
23705 s//\1/
23706 q
23707 }
23708 /^X\(\/\).*/{
23709 s//\1/
23710 q
23711 }
23712 s/.*/./; q'`
23713 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23714 # echo "creating $dirpart/$file"
23715 echo '# dummy' > "$dirpart/$file"
23716 done
23717 done
23718}
23719 ;;
23720 "libtool":C)
23721
23722 # See if we are running on zsh, and set the options that allow our
23723 # commands through without removal of \ escapes.
23724 if test -n "${ZSH_VERSION+set}"; then
23725 setopt NO_GLOB_SUBST
23726 fi
23727
23728 cfgfile=${ofile}T
23729 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23730 $RM "$cfgfile"
23731
23732 cat <<_LT_EOF >> "$cfgfile"
23733#! $SHELL
23734# Generated automatically by $as_me ($PACKAGE) $VERSION
23735# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23736# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23737
23738# Provide generalized library-building support services.
23739# Written by Gordon Matzigkeit, 1996
23740
23741# Copyright (C) 2014 Free Software Foundation, Inc.
23742# This is free software; see the source for copying conditions. There is NO
23743# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23744
23745# GNU Libtool is free software; you can redistribute it and/or modify
23746# it under the terms of the GNU General Public License as published by
23747# the Free Software Foundation; either version 2 of of the License, or
23748# (at your option) any later version.
23749#
23750# As a special exception to the GNU General Public License, if you
23751# distribute this file as part of a program or library that is built
23752# using GNU Libtool, you may include this file under the same
23753# distribution terms that you use for the rest of that program.
23754#
23755# GNU Libtool is distributed in the hope that it will be useful, but
23756# WITHOUT ANY WARRANTY; without even the implied warranty of
23757# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23758# GNU General Public License for more details.
23759#
23760# You should have received a copy of the GNU General Public License
23761# along with this program. If not, see <http://www.gnu.org/licenses/>.
23762
23763
23764# The names of the tagged configurations supported by this script.
23765available_tags='CXX '
23766
23767# Configured defaults for sys_lib_dlsearch_path munging.
23768: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23769
23770# ### BEGIN LIBTOOL CONFIG
23771
23772# Which release of libtool.m4 was used?
23773macro_version=$macro_version
23774macro_revision=$macro_revision
23775
23776# Whether or not to build static libraries.
23777build_old_libs=$enable_static
23778
23779# Whether or not to build shared libraries.
23780build_libtool_libs=$enable_shared
23781
23782# What type of objects to build.
23783pic_mode=$pic_mode
23784
23785# Whether or not to optimize for fast installation.
23786fast_install=$enable_fast_install
23787
23788# Shared archive member basename,for filename based shared library versioning on AIX.
23789shared_archive_member_spec=$shared_archive_member_spec
23790
23791# Shell to use when invoking shell scripts.
23792SHELL=$lt_SHELL
23793
23794# An echo program that protects backslashes.
23795ECHO=$lt_ECHO
23796
23797# The PATH separator for the build system.
23798PATH_SEPARATOR=$lt_PATH_SEPARATOR
23799
23800# The host system.
23801host_alias=$host_alias
23802host=$host
23803host_os=$host_os
23804
23805# The build system.
23806build_alias=$build_alias
23807build=$build
23808build_os=$build_os
23809
23810# A sed program that does not truncate output.
23811SED=$lt_SED
23812
23813# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23814Xsed="\$SED -e 1s/^X//"
23815
23816# A grep program that handles long lines.
23817GREP=$lt_GREP
23818
23819# An ERE matcher.
23820EGREP=$lt_EGREP
23821
23822# A literal string matcher.
23823FGREP=$lt_FGREP
23824
23825# A BSD- or MS-compatible name lister.
23826NM=$lt_NM
23827
23828# Whether we need soft or hard links.
23829LN_S=$lt_LN_S
23830
23831# What is the maximum length of a command?
23832max_cmd_len=$max_cmd_len
23833
23834# Object file suffix (normally "o").
23835objext=$ac_objext
23836
23837# Executable file suffix (normally "").
23838exeext=$exeext
23839
23840# whether the shell understands "unset".
23841lt_unset=$lt_unset
23842
23843# turn spaces into newlines.
23844SP2NL=$lt_lt_SP2NL
23845
23846# turn newlines into spaces.
23847NL2SP=$lt_lt_NL2SP
23848
23849# convert \$build file names to \$host format.
23850to_host_file_cmd=$lt_cv_to_host_file_cmd
23851
23852# convert \$build files to toolchain format.
23853to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23854
23855# An object symbol dumper.
23856OBJDUMP=$lt_OBJDUMP
23857
23858# Method to check whether dependent libraries are shared objects.
23859deplibs_check_method=$lt_deplibs_check_method
23860
23861# Command to use when deplibs_check_method = "file_magic".
23862file_magic_cmd=$lt_file_magic_cmd
23863
23864# How to find potential files when deplibs_check_method = "file_magic".
23865file_magic_glob=$lt_file_magic_glob
23866
23867# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23868want_nocaseglob=$lt_want_nocaseglob
23869
23870# DLL creation program.
23871DLLTOOL=$lt_DLLTOOL
23872
23873# Command to associate shared and link libraries.
23874sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23875
23876# The archiver.
23877AR=$lt_AR
23878
23879# Flags to create an archive.
23880AR_FLAGS=$lt_AR_FLAGS
23881
23882# How to feed a file listing to the archiver.
23883archiver_list_spec=$lt_archiver_list_spec
23884
23885# A symbol stripping program.
23886STRIP=$lt_STRIP
23887
23888# Commands used to install an old-style archive.
23889RANLIB=$lt_RANLIB
23890old_postinstall_cmds=$lt_old_postinstall_cmds
23891old_postuninstall_cmds=$lt_old_postuninstall_cmds
23892
23893# Whether to use a lock for old archive extraction.
23894lock_old_archive_extraction=$lock_old_archive_extraction
23895
23896# A C compiler.
23897LTCC=$lt_CC
23898
23899# LTCC compiler flags.
23900LTCFLAGS=$lt_CFLAGS
23901
23902# Take the output of nm and produce a listing of raw symbols and C names.
23903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23904
23905# Transform the output of nm in a proper C declaration.
23906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23907
23908# Transform the output of nm into a list of symbols to manually relocate.
23909global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23910
23911# Transform the output of nm in a C name address pair.
23912global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23913
23914# Transform the output of nm in a C name address pair when lib prefix is needed.
23915global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23916
23917# The name lister interface.
23918nm_interface=$lt_lt_cv_nm_interface
23919
23920# Specify filename containing input files for \$NM.
23921nm_file_list_spec=$lt_nm_file_list_spec
23922
23923# The root where to search for dependent libraries,and where our libraries should be installed.
23924lt_sysroot=$lt_sysroot
23925
23926# Command to truncate a binary pipe.
23927lt_truncate_bin=$lt_lt_cv_truncate_bin
23928
23929# The name of the directory that contains temporary libtool files.
23930objdir=$objdir
23931
23932# Used to examine libraries when file_magic_cmd begins with "file".
23933MAGIC_CMD=$MAGIC_CMD
23934
23935# Must we lock files when doing compilation?
23936need_locks=$lt_need_locks
23937
23938# Manifest tool.
23939MANIFEST_TOOL=$lt_MANIFEST_TOOL
23940
23941# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23942DSYMUTIL=$lt_DSYMUTIL
23943
23944# Tool to change global to local symbols on Mac OS X.
23945NMEDIT=$lt_NMEDIT
23946
23947# Tool to manipulate fat objects and archives on Mac OS X.
23948LIPO=$lt_LIPO
23949
23950# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23951OTOOL=$lt_OTOOL
23952
23953# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23954OTOOL64=$lt_OTOOL64
23955
23956# Old archive suffix (normally "a").
23957libext=$libext
23958
23959# Shared library suffix (normally ".so").
23960shrext_cmds=$lt_shrext_cmds
23961
23962# The commands to extract the exported symbol list from a shared archive.
23963extract_expsyms_cmds=$lt_extract_expsyms_cmds
23964
23965# Variables whose values should be saved in libtool wrapper scripts and
23966# restored at link time.
23967variables_saved_for_relink=$lt_variables_saved_for_relink
23968
23969# Do we need the "lib" prefix for modules?
23970need_lib_prefix=$need_lib_prefix
23971
23972# Do we need a version for libraries?
23973need_version=$need_version
23974
23975# Library versioning type.
23976version_type=$version_type
23977
23978# Shared library runtime path variable.
23979runpath_var=$runpath_var
23980
23981# Shared library path variable.
23982shlibpath_var=$shlibpath_var
23983
23984# Is shlibpath searched before the hard-coded library search path?
23985shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23986
23987# Format of library name prefix.
23988libname_spec=$lt_libname_spec
23989
23990# List of archive names. First name is the real one, the rest are links.
23991# The last name is the one that the linker finds with -lNAME
23992library_names_spec=$lt_library_names_spec
23993
23994# The coded name of the library, if different from the real name.
23995soname_spec=$lt_soname_spec
23996
23997# Permission mode override for installation of shared libraries.
23998install_override_mode=$lt_install_override_mode
23999
24000# Command to use after installation of a shared archive.
24001postinstall_cmds=$lt_postinstall_cmds
24002
24003# Command to use after uninstallation of a shared archive.
24004postuninstall_cmds=$lt_postuninstall_cmds
24005
24006# Commands used to finish a libtool library installation in a directory.
24007finish_cmds=$lt_finish_cmds
24008
24009# As "finish_cmds", except a single script fragment to be evaled but
24010# not shown.
24011finish_eval=$lt_finish_eval
24012
24013# Whether we should hardcode library paths into libraries.
24014hardcode_into_libs=$hardcode_into_libs
24015
24016# Compile-time system search path for libraries.
24017sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24018
24019# Detected run-time system search path for libraries.
24020sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24021
24022# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24023configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24024
24025# Whether dlopen is supported.
24026dlopen_support=$enable_dlopen
24027
24028# Whether dlopen of programs is supported.
24029dlopen_self=$enable_dlopen_self
24030
24031# Whether dlopen of statically linked programs is supported.
24032dlopen_self_static=$enable_dlopen_self_static
24033
24034# Commands to strip libraries.
24035old_striplib=$lt_old_striplib
24036striplib=$lt_striplib
24037
24038
24039# The linker used to build libraries.
24040LD=$lt_LD
24041
24042# How to create reloadable object files.
24043reload_flag=$lt_reload_flag
24044reload_cmds=$lt_reload_cmds
24045
24046# Commands used to build an old-style archive.
24047old_archive_cmds=$lt_old_archive_cmds
24048
24049# A language specific compiler.
24050CC=$lt_compiler
24051
24052# Is the compiler the GNU compiler?
24053with_gcc=$GCC
24054
24055# Compiler flag to turn off builtin functions.
24056no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24057
24058# Additional compiler flags for building library objects.
24059pic_flag=$lt_lt_prog_compiler_pic
24060
24061# How to pass a linker flag through the compiler.
24062wl=$lt_lt_prog_compiler_wl
24063
24064# Compiler flag to prevent dynamic linking.
24065link_static_flag=$lt_lt_prog_compiler_static
24066
24067# Does compiler simultaneously support -c and -o options?
24068compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24069
24070# Whether or not to add -lc for building shared libraries.
24071build_libtool_need_lc=$archive_cmds_need_lc
24072
24073# Whether or not to disallow shared libs when runtime libs are static.
24074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24075
24076# Compiler flag to allow reflexive dlopens.
24077export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24078
24079# Compiler flag to generate shared objects directly from archives.
24080whole_archive_flag_spec=$lt_whole_archive_flag_spec
24081
24082# Whether the compiler copes with passing no objects directly.
24083compiler_needs_object=$lt_compiler_needs_object
24084
24085# Create an old-style archive from a shared archive.
24086old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24087
24088# Create a temporary old-style archive to link instead of a shared archive.
24089old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24090
24091# Commands used to build a shared archive.
24092archive_cmds=$lt_archive_cmds
24093archive_expsym_cmds=$lt_archive_expsym_cmds
24094
24095# Commands used to build a loadable module if different from building
24096# a shared archive.
24097module_cmds=$lt_module_cmds
24098module_expsym_cmds=$lt_module_expsym_cmds
24099
24100# Whether we are building with GNU ld or not.
24101with_gnu_ld=$lt_with_gnu_ld
24102
24103# Flag that allows shared libraries with undefined symbols to be built.
24104allow_undefined_flag=$lt_allow_undefined_flag
24105
24106# Flag that enforces no undefined symbols.
24107no_undefined_flag=$lt_no_undefined_flag
24108
24109# Flag to hardcode \$libdir into a binary during linking.
24110# This must work even if \$libdir does not exist
24111hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24112
24113# Whether we need a single "-rpath" flag with a separated argument.
24114hardcode_libdir_separator=$lt_hardcode_libdir_separator
24115
24116# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24117# DIR into the resulting binary.
24118hardcode_direct=$hardcode_direct
24119
24120# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24121# DIR into the resulting binary and the resulting library dependency is
24122# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24123# library is relocated.
24124hardcode_direct_absolute=$hardcode_direct_absolute
24125
24126# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24127# into the resulting binary.
24128hardcode_minus_L=$hardcode_minus_L
24129
24130# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24131# into the resulting binary.
24132hardcode_shlibpath_var=$hardcode_shlibpath_var
24133
24134# Set to "yes" if building a shared library automatically hardcodes DIR
24135# into the library and all subsequent libraries and executables linked
24136# against it.
24137hardcode_automatic=$hardcode_automatic
24138
24139# Set to yes if linker adds runtime paths of dependent libraries
24140# to runtime path list.
24141inherit_rpath=$inherit_rpath
24142
24143# Whether libtool must link a program against all its dependency libraries.
24144link_all_deplibs=$link_all_deplibs
24145
24146# Set to "yes" if exported symbols are required.
24147always_export_symbols=$always_export_symbols
24148
24149# The commands to list exported symbols.
24150export_symbols_cmds=$lt_export_symbols_cmds
24151
24152# Symbols that should not be listed in the preloaded symbols.
24153exclude_expsyms=$lt_exclude_expsyms
24154
24155# Symbols that must always be exported.
24156include_expsyms=$lt_include_expsyms
24157
24158# Commands necessary for linking programs (against libraries) with templates.
24159prelink_cmds=$lt_prelink_cmds
24160
24161# Commands necessary for finishing linking programs.
24162postlink_cmds=$lt_postlink_cmds
24163
24164# Specify filename containing input files.
24165file_list_spec=$lt_file_list_spec
24166
24167# How to hardcode a shared library path into an executable.
24168hardcode_action=$hardcode_action
24169
24170# The directories searched by this compiler when creating a shared library.
24171compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24172
24173# Dependencies to place before and after the objects being linked to
24174# create a shared library.
24175predep_objects=$lt_predep_objects
24176postdep_objects=$lt_postdep_objects
24177predeps=$lt_predeps
24178postdeps=$lt_postdeps
24179
24180# The library search path used internally by the compiler when linking
24181# a shared library.
24182compiler_lib_search_path=$lt_compiler_lib_search_path
24183
24184# ### END LIBTOOL CONFIG
24185
24186_LT_EOF
24187
24188 cat <<'_LT_EOF' >> "$cfgfile"
24189
24190# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24191
24192# func_munge_path_list VARIABLE PATH
24193# -----------------------------------
24194# VARIABLE is name of variable containing _space_ separated list of
24195# directories to be munged by the contents of PATH, which is string
24196# having a format:
24197# "DIR[:DIR]:"
24198# string "DIR[ DIR]" will be prepended to VARIABLE
24199# ":DIR[:DIR]"
24200# string "DIR[ DIR]" will be appended to VARIABLE
24201# "DIRP[:DIRP]::[DIRA:]DIRA"
24202# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24203# "DIRA[ DIRA]" will be appended to VARIABLE
24204# "DIR[:DIR]"
24205# VARIABLE will be replaced by "DIR[ DIR]"
24206func_munge_path_list ()
24207{
24208 case x$2 in
24209 x)
24210 ;;
24211 *:)
24212 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24213 ;;
24214 x:*)
24215 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24216 ;;
24217 *::*)
24218 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24219 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24220 ;;
24221 *)
24222 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24223 ;;
24224 esac
24225}
24226
24227
24228# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24229func_cc_basename ()
24230{
24231 for cc_temp in $*""; do
24232 case $cc_temp in
24233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24235 \-*) ;;
24236 *) break;;
24237 esac
24238 done
24239 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24240}
24241
24242
24243# ### END FUNCTIONS SHARED WITH CONFIGURE
24244
24245_LT_EOF
24246
24247 case $host_os in
24248 aix3*)
24249 cat <<\_LT_EOF >> "$cfgfile"
24250# AIX sometimes has problems with the GCC collect2 program. For some
24251# reason, if we set the COLLECT_NAMES environment variable, the problems
24252# vanish in a puff of smoke.
24253if test set != "${COLLECT_NAMES+set}"; then
24254 COLLECT_NAMES=
24255 export COLLECT_NAMES
24256fi
24257_LT_EOF
24258 ;;
24259 esac
24260
24261
24262ltmain=$ac_aux_dir/ltmain.sh
24263
24264
24265 # We use sed instead of cat because bash on DJGPP gets confused if
24266 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24267 # text mode, it properly converts lines to CR/LF. This bash problem
24268 # is reportedly fixed, but why not run on old versions too?
24269 sed '$q' "$ltmain" >> "$cfgfile" \
24270 || (rm -f "$cfgfile"; exit 1)
24271
24272 mv -f "$cfgfile" "$ofile" ||
24273 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24274 chmod +x "$ofile"
24275
24276
24277 cat <<_LT_EOF >> "$ofile"
24278
24279# ### BEGIN LIBTOOL TAG CONFIG: CXX
24280
24281# The linker used to build libraries.
24282LD=$lt_LD_CXX
24283
24284# How to create reloadable object files.
24285reload_flag=$lt_reload_flag_CXX
24286reload_cmds=$lt_reload_cmds_CXX
24287
24288# Commands used to build an old-style archive.
24289old_archive_cmds=$lt_old_archive_cmds_CXX
24290
24291# A language specific compiler.
24292CC=$lt_compiler_CXX
24293
24294# Is the compiler the GNU compiler?
24295with_gcc=$GCC_CXX
24296
24297# Compiler flag to turn off builtin functions.
24298no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24299
24300# Additional compiler flags for building library objects.
24301pic_flag=$lt_lt_prog_compiler_pic_CXX
24302
24303# How to pass a linker flag through the compiler.
24304wl=$lt_lt_prog_compiler_wl_CXX
24305
24306# Compiler flag to prevent dynamic linking.
24307link_static_flag=$lt_lt_prog_compiler_static_CXX
24308
24309# Does compiler simultaneously support -c and -o options?
24310compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24311
24312# Whether or not to add -lc for building shared libraries.
24313build_libtool_need_lc=$archive_cmds_need_lc_CXX
24314
24315# Whether or not to disallow shared libs when runtime libs are static.
24316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24317
24318# Compiler flag to allow reflexive dlopens.
24319export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24320
24321# Compiler flag to generate shared objects directly from archives.
24322whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24323
24324# Whether the compiler copes with passing no objects directly.
24325compiler_needs_object=$lt_compiler_needs_object_CXX
24326
24327# Create an old-style archive from a shared archive.
24328old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24329
24330# Create a temporary old-style archive to link instead of a shared archive.
24331old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24332
24333# Commands used to build a shared archive.
24334archive_cmds=$lt_archive_cmds_CXX
24335archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24336
24337# Commands used to build a loadable module if different from building
24338# a shared archive.
24339module_cmds=$lt_module_cmds_CXX
24340module_expsym_cmds=$lt_module_expsym_cmds_CXX
24341
24342# Whether we are building with GNU ld or not.
24343with_gnu_ld=$lt_with_gnu_ld_CXX
24344
24345# Flag that allows shared libraries with undefined symbols to be built.
24346allow_undefined_flag=$lt_allow_undefined_flag_CXX
24347
24348# Flag that enforces no undefined symbols.
24349no_undefined_flag=$lt_no_undefined_flag_CXX
24350
24351# Flag to hardcode \$libdir into a binary during linking.
24352# This must work even if \$libdir does not exist
24353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24354
24355# Whether we need a single "-rpath" flag with a separated argument.
24356hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24357
24358# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24359# DIR into the resulting binary.
24360hardcode_direct=$hardcode_direct_CXX
24361
24362# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24363# DIR into the resulting binary and the resulting library dependency is
24364# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24365# library is relocated.
24366hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24367
24368# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24369# into the resulting binary.
24370hardcode_minus_L=$hardcode_minus_L_CXX
24371
24372# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24373# into the resulting binary.
24374hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24375
24376# Set to "yes" if building a shared library automatically hardcodes DIR
24377# into the library and all subsequent libraries and executables linked
24378# against it.
24379hardcode_automatic=$hardcode_automatic_CXX
24380
24381# Set to yes if linker adds runtime paths of dependent libraries
24382# to runtime path list.
24383inherit_rpath=$inherit_rpath_CXX
24384
24385# Whether libtool must link a program against all its dependency libraries.
24386link_all_deplibs=$link_all_deplibs_CXX
24387
24388# Set to "yes" if exported symbols are required.
24389always_export_symbols=$always_export_symbols_CXX
24390
24391# The commands to list exported symbols.
24392export_symbols_cmds=$lt_export_symbols_cmds_CXX
24393
24394# Symbols that should not be listed in the preloaded symbols.
24395exclude_expsyms=$lt_exclude_expsyms_CXX
24396
24397# Symbols that must always be exported.
24398include_expsyms=$lt_include_expsyms_CXX
24399
24400# Commands necessary for linking programs (against libraries) with templates.
24401prelink_cmds=$lt_prelink_cmds_CXX
24402
24403# Commands necessary for finishing linking programs.
24404postlink_cmds=$lt_postlink_cmds_CXX
24405
24406# Specify filename containing input files.
24407file_list_spec=$lt_file_list_spec_CXX
24408
24409# How to hardcode a shared library path into an executable.
24410hardcode_action=$hardcode_action_CXX
24411
24412# The directories searched by this compiler when creating a shared library.
24413compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24414
24415# Dependencies to place before and after the objects being linked to
24416# create a shared library.
24417predep_objects=$lt_predep_objects_CXX
24418postdep_objects=$lt_postdep_objects_CXX
24419predeps=$lt_predeps_CXX
24420postdeps=$lt_postdeps_CXX
24421
24422# The library search path used internally by the compiler when linking
24423# a shared library.
24424compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24425
24426# ### END LIBTOOL TAG CONFIG: CXX
24427_LT_EOF
24428
24429 ;;
24430
24431 esac
24432done # for ac_tag
24433
24434
24435as_fn_exit 0
24436_ACEOF
24437ac_clean_files=$ac_clean_files_save
24438
24439test $ac_write_fail = 0 ||
24440 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24441
24442
24443# configure is writing to config.log, and then calls config.status.
24444# config.status does its own redirection, appending to config.log.
24445# Unfortunately, on DOS this fails, as config.log is still kept open
24446# by configure, so config.status won't be able to write to it; its
24447# output is simply discarded. So we exec the FD to /dev/null,
24448# effectively closing config.log, so it can be properly (re)opened and
24449# appended to by config.status. When coming back to configure, we
24450# need to make the FD available again.
24451if test "$no_create" != yes; then
24452 ac_cs_success=:
24453 ac_config_status_args=
24454 test "$silent" = yes &&
24455 ac_config_status_args="$ac_config_status_args --quiet"
24456 exec 5>/dev/null
24457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24458 exec 5>>config.log
24459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24460 # would make configure fail if this is the last instruction.
24461 $ac_cs_success || as_fn_exit 1
24462fi
24463if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24465$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24466fi
24467