]> git.saurik.com Git - cycript.git/blame_incremental - configure
Allow APR link flags to be configure overridden.
[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-2012 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
641CY_MACH_FALSE
642CY_MACH_TRUE
643CY_MACH
644CY_ATTACH_GROUP
645ac_ct__OTOOL
646_OTOOL
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
651SO
652LTFLAGS
653LTLIBTERMCAP
654LTLIBREADLINE
655CY_OBJECTIVEC_FALSE
656CY_OBJECTIVEC_TRUE
657LTOBJECTIVEC
658GNUSTEP_CONFIG
659CY_OBJECTIVEC
660LTLIBFFI
661LIBFFI_LIBS
662LIBFFI_CFLAGS
663CY_EXECUTE_FALSE
664CY_EXECUTE_TRUE
665LTLIBAPR
666LTJAVASCRIPTCORE
667WEBKIT_LIBS
668WEBKIT_CFLAGS
669CY_EXECUTE
670CY_IOS_SIMULATOR_FALSE
671CY_IOS_SIMULATOR_TRUE
672CY_XCODE_IOSSIMSDK
673CY_XCODE_MACOSXSDK
674XCODEBUILD
675CY_ARCH
676CY_FILTERS
677GNUTAR
678GPERF
679FLEX
680BISON
681TIME
682GIT
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CXXCPP
687CPP
688OTOOL64
689OTOOL
690LIPO
691NMEDIT
692DSYMUTIL
693MANIFEST_TOOL
694RANLIB
695DLLTOOL
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703EGREP
704GREP
705SED
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
714LIBTOOL
715am__fastdepCC_FALSE
716am__fastdepCC_TRUE
717CCDEPMODE
718ac_ct_CC
719CFLAGS
720CC
721ac_ct_AR
722AR
723am__fastdepOBJCXX_FALSE
724am__fastdepOBJCXX_TRUE
725OBJCXXDEPMODE
726ac_ct_OBJCXX
727OBJCXXFLAGS
728OBJCXX
729am__fastdepCXX_FALSE
730am__fastdepCXX_TRUE
731CXXDEPMODE
732am__nodep
733AMDEPBACKSLASH
734AMDEP_FALSE
735AMDEP_TRUE
736am__quote
737am__include
738DEPDIR
739OBJEXT
740EXEEXT
741ac_ct_CXX
742CPPFLAGS
743LDFLAGS
744CXXFLAGS
745CXX
746MAINT
747MAINTAINER_MODE_FALSE
748MAINTAINER_MODE_TRUE
749AM_BACKSLASH
750AM_DEFAULT_VERBOSITY
751AM_DEFAULT_V
752AM_V
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_URL
807PACKAGE_BUGREPORT
808PACKAGE_STRING
809PACKAGE_VERSION
810PACKAGE_TARNAME
811PACKAGE_NAME
812PATH_SEPARATOR
813SHELL'
814ac_subst_files=''
815ac_user_opts='
816enable_option_checking
817enable_silent_rules
818enable_maintainer_mode
819enable_dependency_tracking
820enable_static
821enable_shared
822with_pic
823enable_fast_install
824with_gnu_ld
825with_sysroot
826enable_libtool_lock
827enable_javascript
828with_apr
829'
830 ac_precious_vars='build_alias
831host_alias
832target_alias
833CXX
834CXXFLAGS
835LDFLAGS
836LIBS
837CPPFLAGS
838CCC
839OBJCXX
840OBJCXXFLAGS
841CC
842CFLAGS
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
1494Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot=DIR Search for dependent libraries within DIR
1501 (or the compiler's sysroot if not specified).
1502 --with-apr=PATH prefix for installed APR or the full path to
1503 apr-config
1504
1505Some influential environment variables:
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1513 OBJCXX Objective C++ compiler command
1514 OBJCXXFLAGS Objective C++ compiler flags
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 CPP C preprocessor
1518 CXXCPP C++ preprocessor
1519 PKG_CONFIG path to pkg-config utility
1520 PKG_CONFIG_PATH
1521 directories to add to pkg-config's search path
1522 PKG_CONFIG_LIBDIR
1523 path overriding pkg-config's built-in search path
1524 BISON GNU Project parser generator (yacc replacement)
1525 FLEX the fast lexical analyser generator
1526 GPERF perfect hash function generator
1527 GNUTAR a very sticky lump of files
1528 WEBKIT_CFLAGS
1529 C compiler flags for WEBKIT, overriding pkg-config
1530 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1531 GNUSTEP_CONFIG
1532 prints information about the current gnustep installation
1533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
1537Report bugs to <saurik@saurik.com>.
1538Cycript home page: <http://www.cycript.org/>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600 cat <<\_ACEOF
1601Cycript configure 0.9
1602generated by GNU Autoconf 2.69
1603
1604Copyright (C) 2012 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
1607
1608Copyright (C) 2009-2012 Jay Freeman (saurik)
1609_ACEOF
1610 exit
1611fi
1612
1613## ------------------------ ##
1614## Autoconf initialization. ##
1615## ------------------------ ##
1616
1617# ac_fn_cxx_try_compile LINENO
1618# ----------------------------
1619# Try to compile conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_cxx_try_compile ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1637 fi
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_cxx_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644else
1645 $as_echo "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=1
1649fi
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1652
1653} # ac_fn_cxx_try_compile
1654
1655# ac_fn_objcxx_try_compile LINENO
1656# -------------------------------
1657# Try to compile conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_objcxx_try_compile ()
1659{
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1663case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_objcxx_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1681 ac_retval=0
1682else
1683 $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691} # ac_fn_objcxx_try_compile
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720else
1721 $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725fi
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 test -x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_link
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_cpp LINENO
1809# ----------------------
1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_cpp ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } > conftest.i && {
1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 }; then :
1833 ac_retval=0
1834else
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=1
1839fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_cpp
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1902#define $2 innocuous_$2
1903
1904/* System header to define __stub macros and hopefully few prototypes,
1905 which can conflict with char $2 (); below.
1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907 <limits.h> exists even on freestanding compilers. */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918 Use char because int might match the return type of a GCC
1919 builtin and then its argument prototype would still apply. */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925 to always fail with ENOSYS. Some functions are actually named
1926 something starting with __ and the normal name is an alias. */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940 eval "$3=yes"
1941else
1942 eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945 conftest$ac_exeext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_func
1953
1954# ac_fn_cxx_try_cpp LINENO
1955# ------------------------
1956# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_cxx_try_cpp ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_cpp conftest.$ac_ext"
1961case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966$as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } > conftest.i && {
1976 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1977 test ! -s conftest.err
1978 }; then :
1979 ac_retval=0
1980else
1981 $as_echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985fi
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989} # ac_fn_cxx_try_cpp
1990
1991# ac_fn_cxx_try_link LINENO
1992# -------------------------
1993# Try to link conftest.$ac_ext, and return whether this succeeded.
1994ac_fn_cxx_try_link ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext conftest$ac_exeext
1998 if { { ac_try="$ac_link"
1999case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002esac
2003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004$as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_link") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest$ac_exeext && {
2017 test "$cross_compiling" = yes ||
2018 test -x conftest$ac_exeext
2019 }; then :
2020 ac_retval=0
2021else
2022 $as_echo "$as_me: failed program was:" >&5
2023sed 's/^/| /' conftest.$ac_ext >&5
2024
2025 ac_retval=1
2026fi
2027 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2028 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2029 # interfere with the next link command; also delete a directory that is
2030 # left behind by Apple's compiler. We do this before executing the actions.
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2034
2035} # ac_fn_cxx_try_link
2036
2037# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2038# ---------------------------------------------------------
2039# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2040# the include files in INCLUDES and setting the cache variable VAR
2041# accordingly.
2042ac_fn_cxx_check_header_mongrel ()
2043{
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if eval \${$3+:} false; then :
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047$as_echo_n "checking for $2... " >&6; }
2048if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054else
2055 # Is the header compilable?
2056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2057$as_echo_n "checking $2 usability... " >&6; }
2058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061#include <$2>
2062_ACEOF
2063if ac_fn_cxx_try_compile "$LINENO"; then :
2064 ac_header_compiler=yes
2065else
2066 ac_header_compiler=no
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2070$as_echo "$ac_header_compiler" >&6; }
2071
2072# Is the header present?
2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2074$as_echo_n "checking $2 presence... " >&6; }
2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077#include <$2>
2078_ACEOF
2079if ac_fn_cxx_try_cpp "$LINENO"; then :
2080 ac_header_preproc=yes
2081else
2082 ac_header_preproc=no
2083fi
2084rm -f conftest.err conftest.i conftest.$ac_ext
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2086$as_echo "$ac_header_preproc" >&6; }
2087
2088# So? What about this header?
2089case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2090 yes:no: )
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2092$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ;;
2096 no:yes:* )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2098$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2100$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2102$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2104$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107( $as_echo "## -------------------------------- ##
2108## Report this to saurik@saurik.com ##
2109## -------------------------------- ##"
2110 ) | sed "s/^/$as_me: WARNING: /" >&2
2111 ;;
2112esac
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114$as_echo_n "checking for $2... " >&6; }
2115if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2117else
2118 eval "$3=\$ac_header_compiler"
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123fi
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126} # ac_fn_cxx_check_header_mongrel
2127
2128# ac_fn_objcxx_try_link LINENO
2129# ----------------------------
2130# Try to link conftest.$ac_ext, and return whether this succeeded.
2131ac_fn_objcxx_try_link ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext conftest$ac_exeext
2135 if { { ac_try="$ac_link"
2136case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139esac
2140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141$as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2148 fi
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_objcxx_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest$ac_exeext && {
2154 test "$cross_compiling" = yes ||
2155 test -x conftest$ac_exeext
2156 }; then :
2157 ac_retval=0
2158else
2159 $as_echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_retval=1
2163fi
2164 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2165 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2166 # interfere with the next link command; also delete a directory that is
2167 # left behind by Apple's compiler. We do this before executing the actions.
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status $ac_retval
2171
2172} # ac_fn_objcxx_try_link
2173cat >config.log <<_ACEOF
2174This file contains any messages produced by compilers while
2175running configure, to aid debugging if configure makes a mistake.
2176
2177It was created by Cycript $as_me 0.9, which was
2178generated by GNU Autoconf 2.69. Invocation command line was
2179
2180 $ $0 $@
2181
2182_ACEOF
2183exec 5>>config.log
2184{
2185cat <<_ASUNAME
2186## --------- ##
2187## Platform. ##
2188## --------- ##
2189
2190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194uname -v = `(uname -v) 2>/dev/null || echo unknown`
2195
2196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2198
2199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206
2207_ASUNAME
2208
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 $as_echo "PATH: $as_dir"
2215 done
2216IFS=$as_save_IFS
2217
2218} >&5
2219
2220cat >&5 <<_ACEOF
2221
2222
2223## ----------- ##
2224## Core tests. ##
2225## ----------- ##
2226
2227_ACEOF
2228
2229
2230# Keep a trace of the command line.
2231# Strip out --no-create and --no-recursion so they do not pile up.
2232# Strip out --silent because we don't want to record it for future runs.
2233# Also quote any args containing shell meta-characters.
2234# Make two passes to allow for proper duplicate-argument suppression.
2235ac_configure_args=
2236ac_configure_args0=
2237ac_configure_args1=
2238ac_must_keep_next=false
2239for ac_pass in 1 2
2240do
2241 for ac_arg
2242 do
2243 case $ac_arg in
2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246 | -silent | --silent | --silen | --sile | --sil)
2247 continue ;;
2248 *\'*)
2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 esac
2251 case $ac_pass in
2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2253 2)
2254 as_fn_append ac_configure_args1 " '$ac_arg'"
2255 if test $ac_must_keep_next = true; then
2256 ac_must_keep_next=false # Got value, back to normal.
2257 else
2258 case $ac_arg in
2259 *=* | --config-cache | -C | -disable-* | --disable-* \
2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262 | -with-* | --with-* | -without-* | --without-* | --x)
2263 case "$ac_configure_args0 " in
2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 esac
2266 ;;
2267 -* ) ac_must_keep_next=true ;;
2268 esac
2269 fi
2270 as_fn_append ac_configure_args " '$ac_arg'"
2271 ;;
2272 esac
2273 done
2274done
2275{ ac_configure_args0=; unset ac_configure_args0;}
2276{ ac_configure_args1=; unset ac_configure_args1;}
2277
2278# When interrupted or exit'd, cleanup temporary files, and complete
2279# config.log. We remove comments because anyway the quotes in there
2280# would cause problems or look ugly.
2281# WARNING: Use '\'' to represent an apostrophe within the trap.
2282# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283trap 'exit_status=$?
2284 # Save into config.log some information that might help in debugging.
2285 {
2286 echo
2287
2288 $as_echo "## ---------------- ##
2289## Cache variables. ##
2290## ---------------- ##"
2291 echo
2292 # The following way of writing the cache mishandles newlines in values,
2293(
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in #(
2297 *${as_nl}*)
2298 case $ac_var in #(
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 esac
2302 case $ac_var in #(
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2306 esac ;;
2307 esac
2308 done
2309 (set) 2>&1 |
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2312 sed -n \
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 ;; #(
2316 *)
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2318 ;;
2319 esac |
2320 sort
2321)
2322 echo
2323
2324 $as_echo "## ----------------- ##
2325## Output variables. ##
2326## ----------------- ##"
2327 echo
2328 for ac_var in $ac_subst_vars
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337
2338 if test -n "$ac_subst_files"; then
2339 $as_echo "## ------------------- ##
2340## File substitutions. ##
2341## ------------------- ##"
2342 echo
2343 for ac_var in $ac_subst_files
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352 fi
2353
2354 if test -s confdefs.h; then
2355 $as_echo "## ----------- ##
2356## confdefs.h. ##
2357## ----------- ##"
2358 echo
2359 cat confdefs.h
2360 echo
2361 fi
2362 test "$ac_signal" != 0 &&
2363 $as_echo "$as_me: caught signal $ac_signal"
2364 $as_echo "$as_me: exit $exit_status"
2365 } >&5
2366 rm -f core *.core core.conftest.* &&
2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 exit $exit_status
2369' 0
2370for ac_signal in 1 2 13 15; do
2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372done
2373ac_signal=0
2374
2375# confdefs.h avoids OS command line length limits that DEFS can exceed.
2376rm -f -r conftest* confdefs.h
2377
2378$as_echo "/* confdefs.h */" > confdefs.h
2379
2380# Predefined preprocessor variables.
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_NAME "$PACKAGE_NAME"
2384_ACEOF
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388_ACEOF
2389
2390cat >>confdefs.h <<_ACEOF
2391#define PACKAGE_VERSION "$PACKAGE_VERSION"
2392_ACEOF
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_STRING "$PACKAGE_STRING"
2396_ACEOF
2397
2398cat >>confdefs.h <<_ACEOF
2399#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400_ACEOF
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_URL "$PACKAGE_URL"
2404_ACEOF
2405
2406
2407# Let the site file select an alternate cache file if it wants to.
2408# Prefer an explicitly selected file to automatically selected ones.
2409ac_site_file1=NONE
2410ac_site_file2=NONE
2411if test -n "$CONFIG_SITE"; then
2412 # We do not want a PATH search for config.site.
2413 case $CONFIG_SITE in #((
2414 -*) ac_site_file1=./$CONFIG_SITE;;
2415 */*) ac_site_file1=$CONFIG_SITE;;
2416 *) ac_site_file1=./$CONFIG_SITE;;
2417 esac
2418elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2421else
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2424fi
2425for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426do
2427 test "x$ac_site_file" = xNONE && continue
2428 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
2432 . "$ac_site_file" \
2433 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435as_fn_error $? "failed to load site script $ac_site_file
2436See \`config.log' for more details" "$LINENO" 5; }
2437 fi
2438done
2439
2440if test -r "$cache_file"; then
2441 # Some versions of bash will fail to source /dev/null (special files
2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445$as_echo "$as_me: loading cache $cache_file" >&6;}
2446 case $cache_file in
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2449 esac
2450 fi
2451else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453$as_echo "$as_me: creating cache $cache_file" >&6;}
2454 >$cache_file
2455fi
2456
2457# Check that the precious variables saved in the cache have kept the same
2458# value.
2459ac_cache_corrupted=false
2460for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2466 set,)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,set)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2474 ,);;
2475 *)
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2488 fi
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 fi;;
2494 esac
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2497 case $ac_new_val in
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2500 esac
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2504 esac
2505 fi
2506done
2507if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2513fi
2514## -------------------- ##
2515## Main body of script. ##
2516## -------------------- ##
2517
2518ac_ext=c
2519ac_cpp='$CPP $CPPFLAGS'
2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525
2526
2527
2528ac_aux_dir=
2529for ac_dir in . "$srcdir"/.; do
2530 if test -f "$ac_dir/install-sh"; then
2531 ac_aux_dir=$ac_dir
2532 ac_install_sh="$ac_aux_dir/install-sh -c"
2533 break
2534 elif test -f "$ac_dir/install.sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install.sh -c"
2537 break
2538 elif test -f "$ac_dir/shtool"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 break
2542 fi
2543done
2544if test -z "$ac_aux_dir"; then
2545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2546fi
2547
2548# These three variables are undocumented and unsupported,
2549# and are intended to be withdrawn in a future Autoconf release.
2550# They can cause serious problems if a builder's source tree is in a directory
2551# whose full name contains unusual characters.
2552ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2555
2556
2557
2558ac_config_headers="$ac_config_headers config.h"
2559
2560
2561am__api_version='1.13'
2562
2563# Find a good install program. We prefer a C program (faster),
2564# so one script is as good as another. But avoid the broken or
2565# incompatible versions:
2566# SysV /etc/install, /usr/sbin/install
2567# SunOS /usr/etc/install
2568# IRIX /sbin/install
2569# AIX /bin/install
2570# AmigaOS /C/install, which installs bootblocks on floppy discs
2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574# OS/2's system install, which has a completely different semantic
2575# ./install, which can be erroneously created by make from ./install.sh.
2576# Reject install programs that cannot install multiple files.
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578$as_echo_n "checking for a BSD-compatible install... " >&6; }
2579if test -z "$INSTALL"; then
2580if ${ac_cv_path_install+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2589case $as_dir/ in #((
2590 ./ | .// | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627esac
2628
2629 done
2630IFS=$as_save_IFS
2631
2632rm -rf conftest.one conftest.two conftest.dir
2633
2634fi
2635 if test "${ac_cv_path_install+set}" = set; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646$as_echo "$INSTALL" >&6; }
2647
2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649# It thinks the first close brace ends the variable substitution.
2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651
2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653
2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657$as_echo_n "checking whether build environment is sane... " >&6; }
2658# Reject unsafe characters in $srcdir or the absolute working directory
2659# name. Accept space and tab only in the latter.
2660am_lf='
2661'
2662case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665esac
2666case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669esac
2670
2671# Do 'set' in a subshell so we don't clobber the current shell's
2672# arguments. Must try -L first in case configure is actually a
2673# symlink; some systems play weird games with the mod time of symlinks
2674# (eg FreeBSD returns the mod time of the symlink's containing
2675# directory).
2676if (
2677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
2702 test "$2" = conftest.file
2703 )
2704then
2705 # Ok.
2706 :
2707else
2708 as_fn_error $? "newly created file is older than distributed files!
2709Check your system clock" "$LINENO" 5
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712$as_echo "yes" >&6; }
2713# If we didn't sleep, we still need to ensure time stamps of config.status and
2714# generated files are strictly newer.
2715am_sleep_pid=
2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719fi
2720
2721rm -f conftest.file
2722
2723test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725# Use a double $ so make ignores it.
2726test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728# Double any \ or $.
2729# By default was `s,x,x', remove it if useless.
2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
2733# expand $ac_aux_dir to an absolute path
2734am_aux_dir=`cd $ac_aux_dir && pwd`
2735
2736if test x"${MISSING+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 *)
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 esac
2743fi
2744# Use eval to expand $SHELL
2745if eval "$MISSING --is-lightweight"; then
2746 am_missing_run="$MISSING "
2747else
2748 am_missing_run=
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2750$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2751fi
2752
2753if test x"${install_sh}" != xset; then
2754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 *)
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2759 esac
2760fi
2761
2762# Installed binaries are usually stripped using 'strip' when the user
2763# run "make install-strip". However 'strip' might not be the right
2764# tool to use in cross-compilation environments, therefore Automake
2765# will honor the 'STRIP' environment variable to overrule this program.
2766if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769set dummy ${ac_tool_prefix}strip; ac_word=$2
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771$as_echo_n "checking for $ac_word... " >&6; }
2772if ${ac_cv_prog_STRIP+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774else
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777else
2778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779for as_dir in $PATH
2780do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789done
2790 done
2791IFS=$as_save_IFS
2792
2793fi
2794fi
2795STRIP=$ac_cv_prog_STRIP
2796if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798$as_echo "$STRIP" >&6; }
2799else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805fi
2806if test -z "$ac_cv_prog_STRIP"; then
2807 ac_ct_STRIP=$STRIP
2808 # Extract the first word of "strip", so it can be a program name with args.
2809set dummy strip; ac_word=$2
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811$as_echo_n "checking for $ac_word... " >&6; }
2812if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814else
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817else
2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829done
2830 done
2831IFS=$as_save_IFS
2832
2833fi
2834fi
2835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838$as_echo "$ac_ct_STRIP" >&6; }
2839else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841$as_echo "no" >&6; }
2842fi
2843
2844 if test "x$ac_ct_STRIP" = x; then
2845 STRIP=":"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848yes:)
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851ac_tool_warned=yes ;;
2852esac
2853 STRIP=$ac_ct_STRIP
2854 fi
2855else
2856 STRIP="$ac_cv_prog_STRIP"
2857fi
2858
2859fi
2860INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864if test -z "$MKDIR_P"; then
2865 if ${ac_cv_path_mkdir+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 break 3;;
2882 esac
2883 done
2884 done
2885 done
2886IFS=$as_save_IFS
2887
2888fi
2889
2890 test -d ./--version && rmdir ./--version
2891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 MKDIR_P="$ac_install_sh -d"
2899 fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902$as_echo "$MKDIR_P" >&6; }
2903
2904for ac_prog in gawk mawk nawk awk
2905do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if ${ac_cv_prog_AWK+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_AWK="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927done
2928 done
2929IFS=$as_save_IFS
2930
2931fi
2932fi
2933AWK=$ac_cv_prog_AWK
2934if test -n "$AWK"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2936$as_echo "$AWK" >&6; }
2937else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940fi
2941
2942
2943 test -n "$AWK" && break
2944done
2945
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948set x ${MAKE-make}
2949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2950if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952else
2953 cat >conftest.make <<\_ACEOF
2954SHELL = /bin/sh
2955all:
2956 @echo '@@@%%%=$(MAKE)=@@@%%%'
2957_ACEOF
2958# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2959case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 *@@@%%%=?*=@@@%%%*)
2961 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 *)
2963 eval ac_cv_prog_make_${ac_make}_set=no;;
2964esac
2965rm -f conftest.make
2966fi
2967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970 SET_MAKE=
2971else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974 SET_MAKE="MAKE=${MAKE-make}"
2975fi
2976
2977rm -rf .tst 2>/dev/null
2978mkdir .tst 2>/dev/null
2979if test -d .tst; then
2980 am__leading_dot=.
2981else
2982 am__leading_dot=_
2983fi
2984rmdir .tst 2>/dev/null
2985
2986# Check whether --enable-silent-rules was given.
2987if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989fi
2990
2991case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995esac
2996am_make=${MAKE-make}
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003BAR0=false
3004BAR1=true
3005V=1
3006am__doit:
3007 @$(TRUE)
3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010else
3011 am_cv_make_support_nested_variables=no
3012fi
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015$as_echo "$am_cv_make_support_nested_variables" >&6; }
3016if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022fi
3023AM_BACKSLASH='\'
3024
3025if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 fi
3033fi
3034
3035# test whether we have cygpath
3036if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042fi
3043
3044
3045# Define the identity of the package.
3046 PACKAGE='cycript'
3047 VERSION='0.9'
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define PACKAGE "$PACKAGE"
3052_ACEOF
3053
3054
3055cat >>confdefs.h <<_ACEOF
3056#define VERSION "$VERSION"
3057_ACEOF
3058
3059# Some tools Automake needs.
3060
3061ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075# For better backward compatibility. To be removed once Automake 1.9.x
3076# dies out for good. For more background, see:
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3078# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3079mkdir_p='$(MKDIR_P)'
3080
3081# We need awk for the "check" target. The system "awk" is bad on
3082# some platforms.
3083# Always define AMTAR for backward compatibility. Yes, it's still used
3084# in the wild :-( We should find a proper way to deprecate it ...
3085AMTAR='$${TAR-tar}'
3086
3087am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088
3089
3090
3091
3092
3093
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3095$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3096 # Check whether --enable-maintainer-mode was given.
3097if test "${enable_maintainer_mode+set}" = set; then :
3098 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3099else
3100 USE_MAINTAINER_MODE=no
3101fi
3102
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3104$as_echo "$USE_MAINTAINER_MODE" >&6; }
3105 if test $USE_MAINTAINER_MODE = yes; then
3106 MAINTAINER_MODE_TRUE=
3107 MAINTAINER_MODE_FALSE='#'
3108else
3109 MAINTAINER_MODE_TRUE='#'
3110 MAINTAINER_MODE_FALSE=
3111fi
3112
3113 MAINT=$MAINTAINER_MODE_TRUE
3114
3115
3116
3117am_cv_CC_dependencies_compiler_type=none
3118am_cv_CXX_dependencies_compiler_type=none
3119am_cv_OBJCXX_dependencies_compiler_type=none
3120
3121ac_ext=cpp
3122ac_cpp='$CXXCPP $CPPFLAGS'
3123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3126if test -z "$CXX"; then
3127 if test -n "$CCC"; then
3128 CXX=$CCC
3129 else
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3132 do
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CXX+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139else
3140 if test -n "$CXX"; then
3141 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154done
3155 done
3156IFS=$as_save_IFS
3157
3158fi
3159fi
3160CXX=$ac_cv_prog_CXX
3161if test -n "$CXX"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3163$as_echo "$CXX" >&6; }
3164else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
3167fi
3168
3169
3170 test -n "$CXX" && break
3171 done
3172fi
3173if test -z "$CXX"; then
3174 ac_ct_CXX=$CXX
3175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3176do
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183else
3184 if test -n "$ac_ct_CXX"; then
3185 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_CXX="$ac_prog"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198done
3199 done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3205if test -n "$ac_ct_CXX"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3207$as_echo "$ac_ct_CXX" >&6; }
3208else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214 test -n "$ac_ct_CXX" && break
3215done
3216
3217 if test "x$ac_ct_CXX" = x; then
3218 CXX="g++"
3219 else
3220 case $cross_compiling:$ac_tool_warned in
3221yes:)
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224ac_tool_warned=yes ;;
3225esac
3226 CXX=$ac_ct_CXX
3227 fi
3228fi
3229
3230 fi
3231fi
3232# Provide some information about the compiler.
3233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3234set X $ac_compile
3235ac_compiler=$2
3236for ac_option in --version -v -V -qversion; do
3237 { { ac_try="$ac_compiler $ac_option >&5"
3238case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3245 ac_status=$?
3246 if test -s conftest.err; then
3247 sed '10a\
3248... rest of stderr output deleted ...
3249 10q' conftest.err >conftest.er1
3250 cat conftest.er1 >&5
3251 fi
3252 rm -f conftest.er1 conftest.err
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255done
3256
3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h. */
3259
3260int
3261main ()
3262{
3263
3264 ;
3265 return 0;
3266}
3267_ACEOF
3268ac_clean_files_save=$ac_clean_files
3269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3270# Try to create an executable without -o first, disregard a.out.
3271# It will help us diagnose broken compilers, and finding out an intuition
3272# of exeext.
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3274$as_echo_n "checking whether the C++ compiler works... " >&6; }
3275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3276
3277# The possible output files:
3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3279
3280ac_rmfiles=
3281for ac_file in $ac_files
3282do
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3285 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3286 esac
3287done
3288rm -f $ac_rmfiles
3289
3290if { { ac_try="$ac_link_default"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296$as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_link_default") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
3301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303# in a Makefile. We should not override ac_cv_exeext if it was cached,
3304# so that the user can short-circuit this test for compilers unknown to
3305# Autoconf.
3306for ac_file in $ac_files ''
3307do
3308 test -f "$ac_file" || continue
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3311 ;;
3312 [ab].out )
3313 # We found the default executable, but exeext='' is most
3314 # certainly right.
3315 break;;
3316 *.* )
3317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3318 then :; else
3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 fi
3321 # We set ac_cv_exeext here because the later test for it is not
3322 # safe: cross compilers may not add the suffix if given an `-o'
3323 # argument, so we may need to know it at that point already.
3324 # Even if this section looks crufty: it has the advantage of
3325 # actually working.
3326 break;;
3327 * )
3328 break;;
3329 esac
3330done
3331test "$ac_cv_exeext" = no && ac_cv_exeext=
3332
3333else
3334 ac_file=''
3335fi
3336if test -z "$ac_file"; then :
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339$as_echo "$as_me: failed program was:" >&5
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
3342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344as_fn_error 77 "C++ compiler cannot create executables
3345See \`config.log' for more details" "$LINENO" 5; }
3346else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348$as_echo "yes" >&6; }
3349fi
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3351$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3353$as_echo "$ac_file" >&6; }
3354ac_exeext=$ac_cv_exeext
3355
3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3357ac_clean_files=$ac_clean_files_save
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3359$as_echo_n "checking for suffix of executables... " >&6; }
3360if { { ac_try="$ac_link"
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; then :
3371 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3373# work properly (i.e., refer to `conftest.exe'), while it won't with
3374# `rm'.
3375for ac_file in conftest.exe conftest conftest.*; do
3376 test -f "$ac_file" || continue
3377 case $ac_file in
3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380 break;;
3381 * ) break;;
3382 esac
3383done
3384else
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3388See \`config.log' for more details" "$LINENO" 5; }
3389fi
3390rm -f conftest conftest$ac_cv_exeext
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3392$as_echo "$ac_cv_exeext" >&6; }
3393
3394rm -f conftest.$ac_ext
3395EXEEXT=$ac_cv_exeext
3396ac_exeext=$EXEEXT
3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h. */
3399#include <stdio.h>
3400int
3401main ()
3402{
3403FILE *f = fopen ("conftest.out", "w");
3404 return ferror (f) || fclose (f) != 0;
3405
3406 ;
3407 return 0;
3408}
3409_ACEOF
3410ac_clean_files="$ac_clean_files conftest.out"
3411# Check that the compiler produces executables we can run. If not, either
3412# the compiler is broken, or we cross compile.
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3414$as_echo_n "checking whether we are cross compiling... " >&6; }
3415if test "$cross_compiling" != yes; then
3416 { { ac_try="$ac_link"
3417case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }
3427 if { ac_try='./conftest$ac_cv_exeext'
3428 { { case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_try") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }; }; then
3438 cross_compiling=no
3439 else
3440 if test "$cross_compiling" = maybe; then
3441 cross_compiling=yes
3442 else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "cannot run C++ compiled programs.
3446If you meant to cross compile, use \`--host'.
3447See \`config.log' for more details" "$LINENO" 5; }
3448 fi
3449 fi
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3452$as_echo "$cross_compiling" >&6; }
3453
3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3455ac_clean_files=$ac_clean_files_save
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3457$as_echo_n "checking for suffix of object files... " >&6; }
3458if ${ac_cv_objext+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460else
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h. */
3463
3464int
3465main ()
3466{
3467
3468 ;
3469 return 0;
3470}
3471_ACEOF
3472rm -f conftest.o conftest.obj
3473if { { ac_try="$ac_compile"
3474case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_compile") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; then :
3484 for ac_file in conftest.o conftest.obj conftest.*; do
3485 test -f "$ac_file" || continue;
3486 case $ac_file in
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3489 break;;
3490 esac
3491done
3492else
3493 $as_echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498as_fn_error $? "cannot compute suffix of object files: cannot compile
3499See \`config.log' for more details" "$LINENO" 5; }
3500fi
3501rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502fi
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3504$as_echo "$ac_cv_objext" >&6; }
3505OBJEXT=$ac_cv_objext
3506ac_objext=$OBJEXT
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3508$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3509if ${ac_cv_cxx_compiler_gnu+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511else
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h. */
3514
3515int
3516main ()
3517{
3518#ifndef __GNUC__
3519 choke me
3520#endif
3521
3522 ;
3523 return 0;
3524}
3525_ACEOF
3526if ac_fn_cxx_try_compile "$LINENO"; then :
3527 ac_compiler_gnu=yes
3528else
3529 ac_compiler_gnu=no
3530fi
3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3533
3534fi
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3536$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3537if test $ac_compiler_gnu = yes; then
3538 GXX=yes
3539else
3540 GXX=
3541fi
3542ac_test_CXXFLAGS=${CXXFLAGS+set}
3543ac_save_CXXFLAGS=$CXXFLAGS
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3545$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3546if ${ac_cv_prog_cxx_g+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548else
3549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3550 ac_cxx_werror_flag=yes
3551 ac_cv_prog_cxx_g=no
3552 CXXFLAGS="-g"
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564if ac_fn_cxx_try_compile "$LINENO"; then :
3565 ac_cv_prog_cxx_g=yes
3566else
3567 CXXFLAGS=""
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h. */
3570
3571int
3572main ()
3573{
3574
3575 ;
3576 return 0;
3577}
3578_ACEOF
3579if ac_fn_cxx_try_compile "$LINENO"; then :
3580
3581else
3582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3583 CXXFLAGS="-g"
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
3595if ac_fn_cxx_try_compile "$LINENO"; then :
3596 ac_cv_prog_cxx_g=yes
3597fi
3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599fi
3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3606$as_echo "$ac_cv_prog_cxx_g" >&6; }
3607if test "$ac_test_CXXFLAGS" = set; then
3608 CXXFLAGS=$ac_save_CXXFLAGS
3609elif test $ac_cv_prog_cxx_g = yes; then
3610 if test "$GXX" = yes; then
3611 CXXFLAGS="-g -O2"
3612 else
3613 CXXFLAGS="-g"
3614 fi
3615else
3616 if test "$GXX" = yes; then
3617 CXXFLAGS="-O2"
3618 else
3619 CXXFLAGS=
3620 fi
3621fi
3622ac_ext=c
3623ac_cpp='$CPP $CPPFLAGS'
3624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627DEPDIR="${am__leading_dot}deps"
3628
3629ac_config_commands="$ac_config_commands depfiles"
3630
3631
3632am_make=${MAKE-make}
3633cat > confinc << 'END'
3634am__doit:
3635 @echo this is the am__doit target
3636.PHONY: am__doit
3637END
3638# If we don't find an include directive, just comment out the code.
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3640$as_echo_n "checking for style of include used by $am_make... " >&6; }
3641am__include="#"
3642am__quote=
3643_am_result=none
3644# First try GNU make style include.
3645echo "include confinc" > confmf
3646# Ignore all kinds of additional output from 'make'.
3647case `$am_make -s -f confmf 2> /dev/null` in #(
3648*the\ am__doit\ target*)
3649 am__include=include
3650 am__quote=
3651 _am_result=GNU
3652 ;;
3653esac
3654# Now try BSD make style include.
3655if test "$am__include" = "#"; then
3656 echo '.include "confinc"' > confmf
3657 case `$am_make -s -f confmf 2> /dev/null` in #(
3658 *the\ am__doit\ target*)
3659 am__include=.include
3660 am__quote="\""
3661 _am_result=BSD
3662 ;;
3663 esac
3664fi
3665
3666
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3668$as_echo "$_am_result" >&6; }
3669rm -f confinc confmf
3670
3671# Check whether --enable-dependency-tracking was given.
3672if test "${enable_dependency_tracking+set}" = set; then :
3673 enableval=$enable_dependency_tracking;
3674fi
3675
3676if test "x$enable_dependency_tracking" != xno; then
3677 am_depcomp="$ac_aux_dir/depcomp"
3678 AMDEPBACKSLASH='\'
3679 am__nodep='_no'
3680fi
3681 if test "x$enable_dependency_tracking" != xno; then
3682 AMDEP_TRUE=
3683 AMDEP_FALSE='#'
3684else
3685 AMDEP_TRUE='#'
3686 AMDEP_FALSE=
3687fi
3688
3689
3690
3691depcc="$CXX" am_compiler_list=
3692
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694$as_echo_n "checking dependency style of $depcc... " >&6; }
3695if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697else
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named 'D' -- because '-MD' means "put the output
3703 # in D".
3704 rm -rf conftest.dir
3705 mkdir conftest.dir
3706 # Copy depcomp to subdir because otherwise we won't find it if we're
3707 # using a relative directory.
3708 cp "$am_depcomp" conftest.dir
3709 cd conftest.dir
3710 # We will build objects and dependencies in a subdirectory because
3711 # it helps to detect inapplicable dependency modes. For instance
3712 # both Tru64's cc and ICC support -MD to output dependencies as a
3713 # side effect of compilation, but ICC will put the dependencies in
3714 # the current directory while Tru64 will put them in the object
3715 # directory.
3716 mkdir sub
3717
3718 am_cv_CXX_dependencies_compiler_type=none
3719 if test "$am_compiler_list" = ""; then
3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721 fi
3722 am__universal=false
3723 case " $depcc " in #(
3724 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3725 esac
3726
3727 for depmode in $am_compiler_list; do
3728 # Setup a source with many dependencies, because some compilers
3729 # like to wrap large dependency lists on column 80 (with \), and
3730 # we should not choose a depcomp mode which is confused by this.
3731 #
3732 # We need to recreate these files for each test, as the compiler may
3733 # overwrite some of them when testing with obscure command lines.
3734 # This happens at least with the AIX C compiler.
3735 : > sub/conftest.c
3736 for i in 1 2 3 4 5 6; do
3737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3738 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3739 # Solaris 10 /bin/sh.
3740 echo '/* dummy */' > sub/conftst$i.h
3741 done
3742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743
3744 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3745 # mode. It turns out that the SunPro C++ compiler does not properly
3746 # handle '-M -o', and we need to detect this. Also, some Intel
3747 # versions had trouble with output in subdirs.
3748 am__obj=sub/conftest.${OBJEXT-o}
3749 am__minus_obj="-o $am__obj"
3750 case $depmode in
3751 gcc)
3752 # This depmode causes a compiler race in universal mode.
3753 test "$am__universal" = false || continue
3754 ;;
3755 nosideeffect)
3756 # After this tag, mechanisms are not by side-effect, so they'll
3757 # only be used when explicitly requested.
3758 if test "x$enable_dependency_tracking" = xyes; then
3759 continue
3760 else
3761 break
3762 fi
3763 ;;
3764 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3765 # This compiler won't grok '-c -o', but also, the minuso test has
3766 # not run yet. These depmodes are late enough in the game, and
3767 # so weak that their functioning should not be impacted.
3768 am__obj=conftest.${OBJEXT-o}
3769 am__minus_obj=
3770 ;;
3771 none) break ;;
3772 esac
3773 if depmode=$depmode \
3774 source=sub/conftest.c object=$am__obj \
3775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3777 >/dev/null 2>conftest.err &&
3778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3782 # icc doesn't choke on unknown options, it will just issue warnings
3783 # or remarks (even with -Werror). So we grep stderr for any message
3784 # that says an option was ignored or not supported.
3785 # When given -MP, icc 7.0 and 7.1 complain thusly:
3786 # icc: Command line warning: ignoring option '-M'; no argument required
3787 # The diagnosis changed in icc 8.0:
3788 # icc: Command line remark: option '-MP' not supported
3789 if (grep 'ignoring option' conftest.err ||
3790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3791 am_cv_CXX_dependencies_compiler_type=$depmode
3792 break
3793 fi
3794 fi
3795 done
3796
3797 cd ..
3798 rm -rf conftest.dir
3799else
3800 am_cv_CXX_dependencies_compiler_type=none
3801fi
3802
3803fi
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3805$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3806CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3807
3808 if
3809 test "x$enable_dependency_tracking" != xno \
3810 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3811 am__fastdepCXX_TRUE=
3812 am__fastdepCXX_FALSE='#'
3813else
3814 am__fastdepCXX_TRUE='#'
3815 am__fastdepCXX_FALSE=
3816fi
3817
3818
3819ac_ext=mm
3820ac_cpp='$OBJCXXCPP $CPPFLAGS'
3821ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3824if test -n "$ac_tool_prefix"; then
3825 for ac_prog in g++ objc++ objcxx c++ CXX
3826 do
3827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3828set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830$as_echo_n "checking for $ac_word... " >&6; }
3831if ${ac_cv_prog_OBJCXX+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833else
3834 if test -n "$OBJCXX"; then
3835 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848done
3849 done
3850IFS=$as_save_IFS
3851
3852fi
3853fi
3854OBJCXX=$ac_cv_prog_OBJCXX
3855if test -n "$OBJCXX"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3857$as_echo "$OBJCXX" >&6; }
3858else
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860$as_echo "no" >&6; }
3861fi
3862
3863
3864 test -n "$OBJCXX" && break
3865 done
3866fi
3867if test -z "$OBJCXX"; then
3868 ac_ct_OBJCXX=$OBJCXX
3869 for ac_prog in g++ objc++ objcxx c++ CXX
3870do
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872set dummy $ac_prog; ac_word=$2
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874$as_echo_n "checking for $ac_word... " >&6; }
3875if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
3876 $as_echo_n "(cached) " >&6
3877else
3878 if test -n "$ac_ct_OBJCXX"; then
3879 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3880else
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3891 fi
3892done
3893 done
3894IFS=$as_save_IFS
3895
3896fi
3897fi
3898ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3899if test -n "$ac_ct_OBJCXX"; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3901$as_echo "$ac_ct_OBJCXX" >&6; }
3902else
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
3905fi
3906
3907
3908 test -n "$ac_ct_OBJCXX" && break
3909done
3910
3911 if test "x$ac_ct_OBJCXX" = x; then
3912 OBJCXX="g++"
3913 else
3914 case $cross_compiling:$ac_tool_warned in
3915yes:)
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3918ac_tool_warned=yes ;;
3919esac
3920 OBJCXX=$ac_ct_OBJCXX
3921 fi
3922fi
3923
3924# Provide some information about the compiler.
3925$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3926set X $ac_compile
3927ac_compiler=$2
3928for ac_option in --version -v -V -qversion; do
3929 { { ac_try="$ac_compiler $ac_option >&5"
3930case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933esac
3934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935$as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3937 ac_status=$?
3938 if test -s conftest.err; then
3939 sed '10a\
3940... rest of stderr output deleted ...
3941 10q' conftest.err >conftest.er1
3942 cat conftest.er1 >&5
3943 fi
3944 rm -f conftest.er1 conftest.err
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }
3947done
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3950$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3951if ${ac_cv_objcxx_compiler_gnu+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h. */
3956
3957int
3958main ()
3959{
3960#ifndef __GNUC__
3961 choke me
3962#endif
3963
3964 ;
3965 return 0;
3966}
3967_ACEOF
3968if ac_fn_objcxx_try_compile "$LINENO"; then :
3969 ac_compiler_gnu=yes
3970else
3971 ac_compiler_gnu=no
3972fi
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
3975
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3978$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3979if test $ac_compiler_gnu = yes; then
3980 GOBJCXX=yes
3981else
3982 GOBJCXX=
3983fi
3984ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3985ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3987$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3988if ${ac_cv_prog_objcxx_g+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990else
3991 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3992 ac_objcxx_werror_flag=yes
3993 ac_cv_prog_objcxx_g=no
3994 OBJCXXFLAGS="-g"
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h. */
3997
3998int
3999main ()
4000{
4001
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006if ac_fn_objcxx_try_compile "$LINENO"; then :
4007 ac_cv_prog_objcxx_g=yes
4008else
4009 OBJCXXFLAGS=""
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h. */
4012
4013int
4014main ()
4015{
4016
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021if ac_fn_objcxx_try_compile "$LINENO"; then :
4022
4023else
4024 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4025 OBJCXXFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037if ac_fn_objcxx_try_compile "$LINENO"; then :
4038 ac_cv_prog_objcxx_g=yes
4039fi
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043fi
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4048$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4049if test "$ac_test_OBJCXXFLAGS" = set; then
4050 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4051elif test $ac_cv_prog_objcxx_g = yes; then
4052 if test "$GOBJCXX" = yes; then
4053 OBJCXXFLAGS="-g -O2"
4054 else
4055 OBJCXXFLAGS="-g"
4056 fi
4057else
4058 if test "$GOBJCXX" = yes; then
4059 OBJCXXFLAGS="-O2"
4060 else
4061 OBJCXXFLAGS=
4062 fi
4063fi
4064ac_ext=c
4065ac_cpp='$CPP $CPPFLAGS'
4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4071
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4073$as_echo_n "checking dependency style of $depcc... " >&6; }
4074if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4078 # We make a subdir and do the tests there. Otherwise we can end up
4079 # making bogus files that we don't know about and never remove. For
4080 # instance it was reported that on HP-UX the gcc test will end up
4081 # making a dummy file named 'D' -- because '-MD' means "put the output
4082 # in D".
4083 rm -rf conftest.dir
4084 mkdir conftest.dir
4085 # Copy depcomp to subdir because otherwise we won't find it if we're
4086 # using a relative directory.
4087 cp "$am_depcomp" conftest.dir
4088 cd conftest.dir
4089 # We will build objects and dependencies in a subdirectory because
4090 # it helps to detect inapplicable dependency modes. For instance
4091 # both Tru64's cc and ICC support -MD to output dependencies as a
4092 # side effect of compilation, but ICC will put the dependencies in
4093 # the current directory while Tru64 will put them in the object
4094 # directory.
4095 mkdir sub
4096
4097 am_cv_OBJCXX_dependencies_compiler_type=none
4098 if test "$am_compiler_list" = ""; then
4099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4100 fi
4101 am__universal=false
4102
4103
4104 for depmode in $am_compiler_list; do
4105 # Setup a source with many dependencies, because some compilers
4106 # like to wrap large dependency lists on column 80 (with \), and
4107 # we should not choose a depcomp mode which is confused by this.
4108 #
4109 # We need to recreate these files for each test, as the compiler may
4110 # overwrite some of them when testing with obscure command lines.
4111 # This happens at least with the AIX C compiler.
4112 : > sub/conftest.c
4113 for i in 1 2 3 4 5 6; do
4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4115 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4116 # Solaris 10 /bin/sh.
4117 echo '/* dummy */' > sub/conftst$i.h
4118 done
4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4120
4121 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4122 # mode. It turns out that the SunPro C++ compiler does not properly
4123 # handle '-M -o', and we need to detect this. Also, some Intel
4124 # versions had trouble with output in subdirs.
4125 am__obj=sub/conftest.${OBJEXT-o}
4126 am__minus_obj="-o $am__obj"
4127 case $depmode in
4128 gcc)
4129 # This depmode causes a compiler race in universal mode.
4130 test "$am__universal" = false || continue
4131 ;;
4132 nosideeffect)
4133 # After this tag, mechanisms are not by side-effect, so they'll
4134 # only be used when explicitly requested.
4135 if test "x$enable_dependency_tracking" = xyes; then
4136 continue
4137 else
4138 break
4139 fi
4140 ;;
4141 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4142 # This compiler won't grok '-c -o', but also, the minuso test has
4143 # not run yet. These depmodes are late enough in the game, and
4144 # so weak that their functioning should not be impacted.
4145 am__obj=conftest.${OBJEXT-o}
4146 am__minus_obj=
4147 ;;
4148 none) break ;;
4149 esac
4150 if depmode=$depmode \
4151 source=sub/conftest.c object=$am__obj \
4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4154 >/dev/null 2>conftest.err &&
4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4159 # icc doesn't choke on unknown options, it will just issue warnings
4160 # or remarks (even with -Werror). So we grep stderr for any message
4161 # that says an option was ignored or not supported.
4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
4163 # icc: Command line warning: ignoring option '-M'; no argument required
4164 # The diagnosis changed in icc 8.0:
4165 # icc: Command line remark: option '-MP' not supported
4166 if (grep 'ignoring option' conftest.err ||
4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4168 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4169 break
4170 fi
4171 fi
4172 done
4173
4174 cd ..
4175 rm -rf conftest.dir
4176else
4177 am_cv_OBJCXX_dependencies_compiler_type=none
4178fi
4179
4180fi
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4182$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4183OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4184
4185 if
4186 test "x$enable_dependency_tracking" != xno \
4187 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4188 am__fastdepOBJCXX_TRUE=
4189 am__fastdepOBJCXX_FALSE='#'
4190else
4191 am__fastdepOBJCXX_TRUE='#'
4192 am__fastdepOBJCXX_FALSE=
4193fi
4194
4195
4196
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206$as_echo_n "checking for $ac_word... " >&6; }
4207if ${ac_cv_prog_CC+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209else
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225 done
4226IFS=$as_save_IFS
4227
4228fi
4229fi
4230CC=$ac_cv_prog_CC
4231if test -n "$CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233$as_echo "$CC" >&6; }
4234else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236$as_echo "no" >&6; }
4237fi
4238
4239
4240fi
4241if test -z "$ac_cv_prog_CC"; then
4242 ac_ct_CC=$CC
4243 # Extract the first word of "gcc", so it can be a program name with args.
4244set dummy gcc; ac_word=$2
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246$as_echo_n "checking for $ac_word... " >&6; }
4247if ${ac_cv_prog_ac_ct_CC+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249else
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_CC="gcc"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264done
4265 done
4266IFS=$as_save_IFS
4267
4268fi
4269fi
4270ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273$as_echo "$ac_ct_CC" >&6; }
4274else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276$as_echo "no" >&6; }
4277fi
4278
4279 if test "x$ac_ct_CC" = x; then
4280 CC=""
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283yes:)
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286ac_tool_warned=yes ;;
4287esac
4288 CC=$ac_ct_CC
4289 fi
4290else
4291 CC="$ac_cv_prog_CC"
4292fi
4293
4294if test -z "$CC"; then
4295 if test -n "$ac_tool_prefix"; then
4296 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4297set dummy ${ac_tool_prefix}cc; ac_word=$2
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299$as_echo_n "checking for $ac_word... " >&6; }
4300if ${ac_cv_prog_CC+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302else
4303 if test -n "$CC"; then
4304 ac_cv_prog_CC="$CC" # Let the user override the test.
4305else
4306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307for as_dir in $PATH
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_CC="${ac_tool_prefix}cc"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317done
4318 done
4319IFS=$as_save_IFS
4320
4321fi
4322fi
4323CC=$ac_cv_prog_CC
4324if test -n "$CC"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4326$as_echo "$CC" >&6; }
4327else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329$as_echo "no" >&6; }
4330fi
4331
4332
4333 fi
4334fi
4335if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337set dummy cc; ac_word=$2
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339$as_echo_n "checking for $ac_word... " >&6; }
4340if ${ac_cv_prog_CC+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342else
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4345else
4346 ac_prog_rejected=no
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355 ac_prog_rejected=yes
4356 continue
4357 fi
4358 ac_cv_prog_CC="cc"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362done
4363 done
4364IFS=$as_save_IFS
4365
4366if test $ac_prog_rejected = yes; then
4367 # We found a bogon in the path, so make sure we never use it.
4368 set dummy $ac_cv_prog_CC
4369 shift
4370 if test $# != 0; then
4371 # We chose a different compiler from the bogus one.
4372 # However, it has the same basename, so the bogon will be chosen
4373 # first if we set CC to just the basename; use the full file name.
4374 shift
4375 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4376 fi
4377fi
4378fi
4379fi
4380CC=$ac_cv_prog_CC
4381if test -n "$CC"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4383$as_echo "$CC" >&6; }
4384else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387fi
4388
4389
4390fi
4391if test -z "$CC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in cl.exe
4394 do
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398$as_echo_n "checking for $ac_word... " >&6; }
4399if ${ac_cv_prog_CC+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401else
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416done
4417 done
4418IFS=$as_save_IFS
4419
4420fi
4421fi
4422CC=$ac_cv_prog_CC
4423if test -n "$CC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4425$as_echo "$CC" >&6; }
4426else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428$as_echo "no" >&6; }
4429fi
4430
4431
4432 test -n "$CC" && break
4433 done
4434fi
4435if test -z "$CC"; then
4436 ac_ct_CC=$CC
4437 for ac_prog in cl.exe
4438do
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440set dummy $ac_prog; ac_word=$2
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442$as_echo_n "checking for $ac_word... " >&6; }
4443if ${ac_cv_prog_ac_ct_CC+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445else
4446 if test -n "$ac_ct_CC"; then
4447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_prog_ac_ct_CC="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
4461 done
4462IFS=$as_save_IFS
4463
4464fi
4465fi
4466ac_ct_CC=$ac_cv_prog_ac_ct_CC
4467if test -n "$ac_ct_CC"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4469$as_echo "$ac_ct_CC" >&6; }
4470else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
4473fi
4474
4475
4476 test -n "$ac_ct_CC" && break
4477done
4478
4479 if test "x$ac_ct_CC" = x; then
4480 CC=""
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483yes:)
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486ac_tool_warned=yes ;;
4487esac
4488 CC=$ac_ct_CC
4489 fi
4490fi
4491
4492fi
4493
4494
4495test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497as_fn_error $? "no acceptable C compiler found in \$PATH
4498See \`config.log' for more details" "$LINENO" 5; }
4499
4500# Provide some information about the compiler.
4501$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4502set X $ac_compile
4503ac_compiler=$2
4504for ac_option in --version -v -V -qversion; do
4505 { { ac_try="$ac_compiler $ac_option >&5"
4506case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509esac
4510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511$as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4513 ac_status=$?
4514 if test -s conftest.err; then
4515 sed '10a\
4516... rest of stderr output deleted ...
4517 10q' conftest.err >conftest.er1
4518 cat conftest.er1 >&5
4519 fi
4520 rm -f conftest.er1 conftest.err
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }
4523done
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4526$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4527if ${ac_cv_c_compiler_gnu+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h. */
4532
4533int
4534main ()
4535{
4536#ifndef __GNUC__
4537 choke me
4538#endif
4539
4540 ;
4541 return 0;
4542}
4543_ACEOF
4544if ac_fn_c_try_compile "$LINENO"; then :
4545 ac_compiler_gnu=yes
4546else
4547 ac_compiler_gnu=no
4548fi
4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550ac_cv_c_compiler_gnu=$ac_compiler_gnu
4551
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4554$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4555if test $ac_compiler_gnu = yes; then
4556 GCC=yes
4557else
4558 GCC=
4559fi
4560ac_test_CFLAGS=${CFLAGS+set}
4561ac_save_CFLAGS=$CFLAGS
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4563$as_echo_n "checking whether $CC accepts -g... " >&6; }
4564if ${ac_cv_prog_cc_g+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566else
4567 ac_save_c_werror_flag=$ac_c_werror_flag
4568 ac_c_werror_flag=yes
4569 ac_cv_prog_cc_g=no
4570 CFLAGS="-g"
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h. */
4573
4574int
4575main ()
4576{
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_prog_cc_g=yes
4584else
4585 CFLAGS=""
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h. */
4588
4589int
4590main ()
4591{
4592
4593 ;
4594 return 0;
4595}
4596_ACEOF
4597if ac_fn_c_try_compile "$LINENO"; then :
4598
4599else
4600 ac_c_werror_flag=$ac_save_c_werror_flag
4601 CFLAGS="-g"
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h. */
4604
4605int
4606main ()
4607{
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_prog_cc_g=yes
4615fi
4616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617fi
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619fi
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_c_werror_flag=$ac_save_c_werror_flag
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4624$as_echo "$ac_cv_prog_cc_g" >&6; }
4625if test "$ac_test_CFLAGS" = set; then
4626 CFLAGS=$ac_save_CFLAGS
4627elif test $ac_cv_prog_cc_g = yes; then
4628 if test "$GCC" = yes; then
4629 CFLAGS="-g -O2"
4630 else
4631 CFLAGS="-g"
4632 fi
4633else
4634 if test "$GCC" = yes; then
4635 CFLAGS="-O2"
4636 else
4637 CFLAGS=
4638 fi
4639fi
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4641$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4642if ${ac_cv_prog_cc_c89+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644else
4645 ac_cv_prog_cc_c89=no
4646ac_save_CC=$CC
4647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h. */
4649#include <stdarg.h>
4650#include <stdio.h>
4651struct stat;
4652/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4653struct buf { int x; };
4654FILE * (*rcsopen) (struct buf *, struct stat *, int);
4655static char *e (p, i)
4656 char **p;
4657 int i;
4658{
4659 return p[i];
4660}
4661static char *f (char * (*g) (char **, int), char **p, ...)
4662{
4663 char *s;
4664 va_list v;
4665 va_start (v,p);
4666 s = g (p, va_arg (v,int));
4667 va_end (v);
4668 return s;
4669}
4670
4671/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4672 function prototypes and stuff, but not '\xHH' hex character constants.
4673 These don't provoke an error unfortunately, instead are silently treated
4674 as 'x'. The following induces an error, until -std is added to get
4675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4676 array size at least. It's necessary to write '\x00'==0 to get something
4677 that's true only with -std. */
4678int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4679
4680/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4681 inside strings and character constants. */
4682#define FOO(x) 'x'
4683int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4684
4685int test (int i, double x);
4686struct s1 {int (*f) (int a);};
4687struct s2 {int (*f) (double a);};
4688int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4689int argc;
4690char **argv;
4691int
4692main ()
4693{
4694return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4695 ;
4696 return 0;
4697}
4698_ACEOF
4699for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4701do
4702 CC="$ac_save_CC $ac_arg"
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704 ac_cv_prog_cc_c89=$ac_arg
4705fi
4706rm -f core conftest.err conftest.$ac_objext
4707 test "x$ac_cv_prog_cc_c89" != "xno" && break
4708done
4709rm -f conftest.$ac_ext
4710CC=$ac_save_CC
4711
4712fi
4713# AC_CACHE_VAL
4714case "x$ac_cv_prog_cc_c89" in
4715 x)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4717$as_echo "none needed" >&6; } ;;
4718 xno)
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4720$as_echo "unsupported" >&6; } ;;
4721 *)
4722 CC="$CC $ac_cv_prog_cc_c89"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4724$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4725esac
4726if test "x$ac_cv_prog_cc_c89" != xno; then :
4727
4728fi
4729
4730ac_ext=c
4731ac_cpp='$CPP $CPPFLAGS'
4732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
4736depcc="$CC" am_compiler_list=
4737
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4739$as_echo_n "checking dependency style of $depcc... " >&6; }
4740if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742else
4743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4744 # We make a subdir and do the tests there. Otherwise we can end up
4745 # making bogus files that we don't know about and never remove. For
4746 # instance it was reported that on HP-UX the gcc test will end up
4747 # making a dummy file named 'D' -- because '-MD' means "put the output
4748 # in D".
4749 rm -rf conftest.dir
4750 mkdir conftest.dir
4751 # Copy depcomp to subdir because otherwise we won't find it if we're
4752 # using a relative directory.
4753 cp "$am_depcomp" conftest.dir
4754 cd conftest.dir
4755 # We will build objects and dependencies in a subdirectory because
4756 # it helps to detect inapplicable dependency modes. For instance
4757 # both Tru64's cc and ICC support -MD to output dependencies as a
4758 # side effect of compilation, but ICC will put the dependencies in
4759 # the current directory while Tru64 will put them in the object
4760 # directory.
4761 mkdir sub
4762
4763 am_cv_CC_dependencies_compiler_type=none
4764 if test "$am_compiler_list" = ""; then
4765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4766 fi
4767 am__universal=false
4768 case " $depcc " in #(
4769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4770 esac
4771
4772 for depmode in $am_compiler_list; do
4773 # Setup a source with many dependencies, because some compilers
4774 # like to wrap large dependency lists on column 80 (with \), and
4775 # we should not choose a depcomp mode which is confused by this.
4776 #
4777 # We need to recreate these files for each test, as the compiler may
4778 # overwrite some of them when testing with obscure command lines.
4779 # This happens at least with the AIX C compiler.
4780 : > sub/conftest.c
4781 for i in 1 2 3 4 5 6; do
4782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4783 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4784 # Solaris 10 /bin/sh.
4785 echo '/* dummy */' > sub/conftst$i.h
4786 done
4787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4788
4789 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4790 # mode. It turns out that the SunPro C++ compiler does not properly
4791 # handle '-M -o', and we need to detect this. Also, some Intel
4792 # versions had trouble with output in subdirs.
4793 am__obj=sub/conftest.${OBJEXT-o}
4794 am__minus_obj="-o $am__obj"
4795 case $depmode in
4796 gcc)
4797 # This depmode causes a compiler race in universal mode.
4798 test "$am__universal" = false || continue
4799 ;;
4800 nosideeffect)
4801 # After this tag, mechanisms are not by side-effect, so they'll
4802 # only be used when explicitly requested.
4803 if test "x$enable_dependency_tracking" = xyes; then
4804 continue
4805 else
4806 break
4807 fi
4808 ;;
4809 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4810 # This compiler won't grok '-c -o', but also, the minuso test has
4811 # not run yet. These depmodes are late enough in the game, and
4812 # so weak that their functioning should not be impacted.
4813 am__obj=conftest.${OBJEXT-o}
4814 am__minus_obj=
4815 ;;
4816 none) break ;;
4817 esac
4818 if depmode=$depmode \
4819 source=sub/conftest.c object=$am__obj \
4820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4822 >/dev/null 2>conftest.err &&
4823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4827 # icc doesn't choke on unknown options, it will just issue warnings
4828 # or remarks (even with -Werror). So we grep stderr for any message
4829 # that says an option was ignored or not supported.
4830 # When given -MP, icc 7.0 and 7.1 complain thusly:
4831 # icc: Command line warning: ignoring option '-M'; no argument required
4832 # The diagnosis changed in icc 8.0:
4833 # icc: Command line remark: option '-MP' not supported
4834 if (grep 'ignoring option' conftest.err ||
4835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4836 am_cv_CC_dependencies_compiler_type=$depmode
4837 break
4838 fi
4839 fi
4840 done
4841
4842 cd ..
4843 rm -rf conftest.dir
4844else
4845 am_cv_CC_dependencies_compiler_type=none
4846fi
4847
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4852
4853 if
4854 test "x$enable_dependency_tracking" != xno \
4855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4856 am__fastdepCC_TRUE=
4857 am__fastdepCC_FALSE='#'
4858else
4859 am__fastdepCC_TRUE='#'
4860 am__fastdepCC_FALSE=
4861fi
4862
4863
4864
4865if test -n "$ac_tool_prefix"; then
4866 for ac_prog in ar lib "link -lib"
4867 do
4868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871$as_echo_n "checking for $ac_word... " >&6; }
4872if ${ac_cv_prog_AR+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874else
4875 if test -n "$AR"; then
4876 ac_cv_prog_AR="$AR" # Let the user override the test.
4877else
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889done
4890 done
4891IFS=$as_save_IFS
4892
4893fi
4894fi
4895AR=$ac_cv_prog_AR
4896if test -n "$AR"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4898$as_echo "$AR" >&6; }
4899else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901$as_echo "no" >&6; }
4902fi
4903
4904
4905 test -n "$AR" && break
4906 done
4907fi
4908if test -z "$AR"; then
4909 ac_ct_AR=$AR
4910 for ac_prog in ar lib "link -lib"
4911do
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913set dummy $ac_prog; ac_word=$2
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915$as_echo_n "checking for $ac_word... " >&6; }
4916if ${ac_cv_prog_ac_ct_AR+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918else
4919 if test -n "$ac_ct_AR"; then
4920 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_ac_ct_AR="$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933done
4934 done
4935IFS=$as_save_IFS
4936
4937fi
4938fi
4939ac_ct_AR=$ac_cv_prog_ac_ct_AR
4940if test -n "$ac_ct_AR"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4942$as_echo "$ac_ct_AR" >&6; }
4943else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945$as_echo "no" >&6; }
4946fi
4947
4948
4949 test -n "$ac_ct_AR" && break
4950done
4951
4952 if test "x$ac_ct_AR" = x; then
4953 AR="false"
4954 else
4955 case $cross_compiling:$ac_tool_warned in
4956yes:)
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959ac_tool_warned=yes ;;
4960esac
4961 AR=$ac_ct_AR
4962 fi
4963fi
4964
4965: ${AR=ar}
4966
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4968$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4969if ${am_cv_ar_interface+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971else
4972 am_cv_ar_interface=ar
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h. */
4975int some_variable = 0;
4976_ACEOF
4977if ac_fn_c_try_compile "$LINENO"; then :
4978 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4980 (eval $am_ar_try) 2>&5
4981 ac_status=$?
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }
4984 if test "$ac_status" -eq 0; then
4985 am_cv_ar_interface=ar
4986 else
4987 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4989 (eval $am_ar_try) 2>&5
4990 ac_status=$?
4991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }
4993 if test "$ac_status" -eq 0; then
4994 am_cv_ar_interface=lib
4995 else
4996 am_cv_ar_interface=unknown
4997 fi
4998 fi
4999 rm -f conftest.lib libconftest.a
5000
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003
5004fi
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5006$as_echo "$am_cv_ar_interface" >&6; }
5007
5008case $am_cv_ar_interface in
5009ar)
5010 ;;
5011lib)
5012 # Microsoft lib, so override with the ar-lib wrapper script.
5013 # FIXME: It is wrong to rewrite AR.
5014 # But if we don't then we get into trouble of one sort or another.
5015 # A longer-term fix would be to have automake use am__AR in this case,
5016 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5017 # similar.
5018 AR="$am_aux_dir/ar-lib $AR"
5019 ;;
5020unknown)
5021 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5022 ;;
5023esac
5024
5025
5026
5027case `pwd` in
5028 *\ * | *\ *)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5030$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5031esac
5032
5033
5034
5035macro_version='2.4.2'
5036macro_revision='1.3337'
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050ltmain="$ac_aux_dir/ltmain.sh"
5051
5052# Make sure we can run config.sub.
5053$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5054 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5055
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5057$as_echo_n "checking build system type... " >&6; }
5058if ${ac_cv_build+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 ac_build_alias=$build_alias
5062test "x$ac_build_alias" = x &&
5063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5064test "x$ac_build_alias" = x &&
5065 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5066ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5068
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5071$as_echo "$ac_cv_build" >&6; }
5072case $ac_cv_build in
5073*-*-*) ;;
5074*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5075esac
5076build=$ac_cv_build
5077ac_save_IFS=$IFS; IFS='-'
5078set x $ac_cv_build
5079shift
5080build_cpu=$1
5081build_vendor=$2
5082shift; shift
5083# Remember, the first character of IFS is used to create $*,
5084# except with old shells:
5085build_os=$*
5086IFS=$ac_save_IFS
5087case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5088
5089
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5091$as_echo_n "checking host system type... " >&6; }
5092if ${ac_cv_host+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094else
5095 if test "x$host_alias" = x; then
5096 ac_cv_host=$ac_cv_build
5097else
5098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5100fi
5101
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5104$as_echo "$ac_cv_host" >&6; }
5105case $ac_cv_host in
5106*-*-*) ;;
5107*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5108esac
5109host=$ac_cv_host
5110ac_save_IFS=$IFS; IFS='-'
5111set x $ac_cv_host
5112shift
5113host_cpu=$1
5114host_vendor=$2
5115shift; shift
5116# Remember, the first character of IFS is used to create $*,
5117# except with old shells:
5118host_os=$*
5119IFS=$ac_save_IFS
5120case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5121
5122
5123# Backslashify metacharacters that are still active within
5124# double-quoted strings.
5125sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5126
5127# Same as above, but do not quote variable references.
5128double_quote_subst='s/\(["`\\]\)/\\\1/g'
5129
5130# Sed substitution to delay expansion of an escaped shell variable in a
5131# double_quote_subst'ed string.
5132delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5133
5134# Sed substitution to delay expansion of an escaped single quote.
5135delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5136
5137# Sed substitution to avoid accidental globbing in evaled expressions
5138no_glob_subst='s/\*/\\\*/g'
5139
5140ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5141ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5142ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5143
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5145$as_echo_n "checking how to print strings... " >&6; }
5146# Test print first, because it will be a builtin if present.
5147if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5148 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5149 ECHO='print -r --'
5150elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5151 ECHO='printf %s\n'
5152else
5153 # Use this function as a fallback that always works.
5154 func_fallback_echo ()
5155 {
5156 eval 'cat <<_LTECHO_EOF
5157$1
5158_LTECHO_EOF'
5159 }
5160 ECHO='func_fallback_echo'
5161fi
5162
5163# func_echo_all arg...
5164# Invoke $ECHO with all args, space-separated.
5165func_echo_all ()
5166{
5167 $ECHO ""
5168}
5169
5170case "$ECHO" in
5171 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5172$as_echo "printf" >&6; } ;;
5173 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5174$as_echo "print -r" >&6; } ;;
5175 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5176$as_echo "cat" >&6; } ;;
5177esac
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5193$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5194if ${ac_cv_path_SED+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196else
5197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5198 for ac_i in 1 2 3 4 5 6 7; do
5199 ac_script="$ac_script$as_nl$ac_script"
5200 done
5201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5202 { ac_script=; unset ac_script;}
5203 if test -z "$SED"; then
5204 ac_path_SED_found=false
5205 # Loop through the user's path and test for each of PROGNAME-LIST
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_prog in sed gsed; do
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5214 as_fn_executable_p "$ac_path_SED" || continue
5215# Check for GNU ac_path_SED and select it if it is found.
5216 # Check for GNU $ac_path_SED
5217case `"$ac_path_SED" --version 2>&1` in
5218*GNU*)
5219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5220*)
5221 ac_count=0
5222 $as_echo_n 0123456789 >"conftest.in"
5223 while :
5224 do
5225 cat "conftest.in" "conftest.in" >"conftest.tmp"
5226 mv "conftest.tmp" "conftest.in"
5227 cp "conftest.in" "conftest.nl"
5228 $as_echo '' >> "conftest.nl"
5229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231 as_fn_arith $ac_count + 1 && ac_count=$as_val
5232 if test $ac_count -gt ${ac_path_SED_max-0}; then
5233 # Best one so far, save it but keep looking for a better one
5234 ac_cv_path_SED="$ac_path_SED"
5235 ac_path_SED_max=$ac_count
5236 fi
5237 # 10*(2^10) chars as input seems more than enough
5238 test $ac_count -gt 10 && break
5239 done
5240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241esac
5242
5243 $ac_path_SED_found && break 3
5244 done
5245 done
5246 done
5247IFS=$as_save_IFS
5248 if test -z "$ac_cv_path_SED"; then
5249 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5250 fi
5251else
5252 ac_cv_path_SED=$SED
5253fi
5254
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5257$as_echo "$ac_cv_path_SED" >&6; }
5258 SED="$ac_cv_path_SED"
5259 rm -f conftest.sed
5260
5261test -z "$SED" && SED=sed
5262Xsed="$SED -e 1s/^X//"
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5275$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5276if ${ac_cv_path_GREP+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278else
5279 if test -z "$GREP"; then
5280 ac_path_GREP_found=false
5281 # Loop through the user's path and test for each of PROGNAME-LIST
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_prog in grep ggrep; do
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5290 as_fn_executable_p "$ac_path_GREP" || continue
5291# Check for GNU ac_path_GREP and select it if it is found.
5292 # Check for GNU $ac_path_GREP
5293case `"$ac_path_GREP" --version 2>&1` in
5294*GNU*)
5295 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5296*)
5297 ac_count=0
5298 $as_echo_n 0123456789 >"conftest.in"
5299 while :
5300 do
5301 cat "conftest.in" "conftest.in" >"conftest.tmp"
5302 mv "conftest.tmp" "conftest.in"
5303 cp "conftest.in" "conftest.nl"
5304 $as_echo 'GREP' >> "conftest.nl"
5305 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5307 as_fn_arith $ac_count + 1 && ac_count=$as_val
5308 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5309 # Best one so far, save it but keep looking for a better one
5310 ac_cv_path_GREP="$ac_path_GREP"
5311 ac_path_GREP_max=$ac_count
5312 fi
5313 # 10*(2^10) chars as input seems more than enough
5314 test $ac_count -gt 10 && break
5315 done
5316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317esac
5318
5319 $ac_path_GREP_found && break 3
5320 done
5321 done
5322 done
5323IFS=$as_save_IFS
5324 if test -z "$ac_cv_path_GREP"; then
5325 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 fi
5327else
5328 ac_cv_path_GREP=$GREP
5329fi
5330
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5333$as_echo "$ac_cv_path_GREP" >&6; }
5334 GREP="$ac_cv_path_GREP"
5335
5336
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5338$as_echo_n "checking for egrep... " >&6; }
5339if ${ac_cv_path_EGREP+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341else
5342 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5343 then ac_cv_path_EGREP="$GREP -E"
5344 else
5345 if test -z "$EGREP"; then
5346 ac_path_EGREP_found=false
5347 # Loop through the user's path and test for each of PROGNAME-LIST
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_prog in egrep; do
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5356 as_fn_executable_p "$ac_path_EGREP" || continue
5357# Check for GNU ac_path_EGREP and select it if it is found.
5358 # Check for GNU $ac_path_EGREP
5359case `"$ac_path_EGREP" --version 2>&1` in
5360*GNU*)
5361 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5362*)
5363 ac_count=0
5364 $as_echo_n 0123456789 >"conftest.in"
5365 while :
5366 do
5367 cat "conftest.in" "conftest.in" >"conftest.tmp"
5368 mv "conftest.tmp" "conftest.in"
5369 cp "conftest.in" "conftest.nl"
5370 $as_echo 'EGREP' >> "conftest.nl"
5371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5373 as_fn_arith $ac_count + 1 && ac_count=$as_val
5374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5375 # Best one so far, save it but keep looking for a better one
5376 ac_cv_path_EGREP="$ac_path_EGREP"
5377 ac_path_EGREP_max=$ac_count
5378 fi
5379 # 10*(2^10) chars as input seems more than enough
5380 test $ac_count -gt 10 && break
5381 done
5382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5383esac
5384
5385 $ac_path_EGREP_found && break 3
5386 done
5387 done
5388 done
5389IFS=$as_save_IFS
5390 if test -z "$ac_cv_path_EGREP"; then
5391 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5392 fi
5393else
5394 ac_cv_path_EGREP=$EGREP
5395fi
5396
5397 fi
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5400$as_echo "$ac_cv_path_EGREP" >&6; }
5401 EGREP="$ac_cv_path_EGREP"
5402
5403
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5405$as_echo_n "checking for fgrep... " >&6; }
5406if ${ac_cv_path_FGREP+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5410 then ac_cv_path_FGREP="$GREP -F"
5411 else
5412 if test -z "$FGREP"; then
5413 ac_path_FGREP_found=false
5414 # Loop through the user's path and test for each of PROGNAME-LIST
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_prog in fgrep; do
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5423 as_fn_executable_p "$ac_path_FGREP" || continue
5424# Check for GNU ac_path_FGREP and select it if it is found.
5425 # Check for GNU $ac_path_FGREP
5426case `"$ac_path_FGREP" --version 2>&1` in
5427*GNU*)
5428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5429*)
5430 ac_count=0
5431 $as_echo_n 0123456789 >"conftest.in"
5432 while :
5433 do
5434 cat "conftest.in" "conftest.in" >"conftest.tmp"
5435 mv "conftest.tmp" "conftest.in"
5436 cp "conftest.in" "conftest.nl"
5437 $as_echo 'FGREP' >> "conftest.nl"
5438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5440 as_fn_arith $ac_count + 1 && ac_count=$as_val
5441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5442 # Best one so far, save it but keep looking for a better one
5443 ac_cv_path_FGREP="$ac_path_FGREP"
5444 ac_path_FGREP_max=$ac_count
5445 fi
5446 # 10*(2^10) chars as input seems more than enough
5447 test $ac_count -gt 10 && break
5448 done
5449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5450esac
5451
5452 $ac_path_FGREP_found && break 3
5453 done
5454 done
5455 done
5456IFS=$as_save_IFS
5457 if test -z "$ac_cv_path_FGREP"; then
5458 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5459 fi
5460else
5461 ac_cv_path_FGREP=$FGREP
5462fi
5463
5464 fi
5465fi
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5467$as_echo "$ac_cv_path_FGREP" >&6; }
5468 FGREP="$ac_cv_path_FGREP"
5469
5470
5471test -z "$GREP" && GREP=grep
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491# Check whether --with-gnu-ld was given.
5492if test "${with_gnu_ld+set}" = set; then :
5493 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5494else
5495 with_gnu_ld=no
5496fi
5497
5498ac_prog=ld
5499if test "$GCC" = yes; then
5500 # Check if gcc -print-prog-name=ld gives a path.
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5502$as_echo_n "checking for ld used by $CC... " >&6; }
5503 case $host in
5504 *-*-mingw*)
5505 # gcc leaves a trailing carriage return which upsets mingw
5506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5507 *)
5508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5509 esac
5510 case $ac_prog in
5511 # Accept absolute paths.
5512 [\\/]* | ?:[\\/]*)
5513 re_direlt='/[^/][^/]*/\.\./'
5514 # Canonicalize the pathname of ld
5515 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5518 done
5519 test -z "$LD" && LD="$ac_prog"
5520 ;;
5521 "")
5522 # If it fails, then pretend we aren't using GCC.
5523 ac_prog=ld
5524 ;;
5525 *)
5526 # If it is relative, then search for the first ld in PATH.
5527 with_gnu_ld=unknown
5528 ;;
5529 esac
5530elif test "$with_gnu_ld" = yes; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5532$as_echo_n "checking for GNU ld... " >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5535$as_echo_n "checking for non-GNU ld... " >&6; }
5536fi
5537if ${lt_cv_path_LD+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539else
5540 if test -z "$LD"; then
5541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5542 for ac_dir in $PATH; do
5543 IFS="$lt_save_ifs"
5544 test -z "$ac_dir" && ac_dir=.
5545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5546 lt_cv_path_LD="$ac_dir/$ac_prog"
5547 # Check to see if the program is GNU ld. I'd rather use --version,
5548 # but apparently some variants of GNU ld only accept -v.
5549 # Break only if it was the GNU/non-GNU ld that we prefer.
5550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5551 *GNU* | *'with BFD'*)
5552 test "$with_gnu_ld" != no && break
5553 ;;
5554 *)
5555 test "$with_gnu_ld" != yes && break
5556 ;;
5557 esac
5558 fi
5559 done
5560 IFS="$lt_save_ifs"
5561else
5562 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5563fi
5564fi
5565
5566LD="$lt_cv_path_LD"
5567if test -n "$LD"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5569$as_echo "$LD" >&6; }
5570else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573fi
5574test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5576$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5577if ${lt_cv_prog_gnu_ld+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579else
5580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5581case `$LD -v 2>&1 </dev/null` in
5582*GNU* | *'with BFD'*)
5583 lt_cv_prog_gnu_ld=yes
5584 ;;
5585*)
5586 lt_cv_prog_gnu_ld=no
5587 ;;
5588esac
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5591$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5592with_gnu_ld=$lt_cv_prog_gnu_ld
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5603$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5604if ${lt_cv_path_NM+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 if test -n "$NM"; then
5608 # Let the user override the test.
5609 lt_cv_path_NM="$NM"
5610else
5611 lt_nm_to_check="${ac_tool_prefix}nm"
5612 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5613 lt_nm_to_check="$lt_nm_to_check nm"
5614 fi
5615 for lt_tmp_nm in $lt_nm_to_check; do
5616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5617 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5618 IFS="$lt_save_ifs"
5619 test -z "$ac_dir" && ac_dir=.
5620 tmp_nm="$ac_dir/$lt_tmp_nm"
5621 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5622 # Check to see if the nm accepts a BSD-compat flag.
5623 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5624 # nm: unknown option "B" ignored
5625 # Tru64's nm complains that /dev/null is an invalid object file
5626 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5627 */dev/null* | *'Invalid file or object type'*)
5628 lt_cv_path_NM="$tmp_nm -B"
5629 break
5630 ;;
5631 *)
5632 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5633 */dev/null*)
5634 lt_cv_path_NM="$tmp_nm -p"
5635 break
5636 ;;
5637 *)
5638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5639 continue # so that we can try to find one that supports BSD flags
5640 ;;
5641 esac
5642 ;;
5643 esac
5644 fi
5645 done
5646 IFS="$lt_save_ifs"
5647 done
5648 : ${lt_cv_path_NM=no}
5649fi
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5652$as_echo "$lt_cv_path_NM" >&6; }
5653if test "$lt_cv_path_NM" != "no"; then
5654 NM="$lt_cv_path_NM"
5655else
5656 # Didn't find any BSD compatible name lister, look for dumpbin.
5657 if test -n "$DUMPBIN"; then :
5658 # Let the user override the test.
5659 else
5660 if test -n "$ac_tool_prefix"; then
5661 for ac_prog in dumpbin "link -dump"
5662 do
5663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5664set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if ${ac_cv_prog_DUMPBIN+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 if test -n "$DUMPBIN"; then
5671 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685 done
5686IFS=$as_save_IFS
5687
5688fi
5689fi
5690DUMPBIN=$ac_cv_prog_DUMPBIN
5691if test -n "$DUMPBIN"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5693$as_echo "$DUMPBIN" >&6; }
5694else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698
5699
5700 test -n "$DUMPBIN" && break
5701 done
5702fi
5703if test -z "$DUMPBIN"; then
5704 ac_ct_DUMPBIN=$DUMPBIN
5705 for ac_prog in dumpbin "link -dump"
5706do
5707 # Extract the first word of "$ac_prog", so it can be a program name with args.
5708set dummy $ac_prog; ac_word=$2
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713else
5714 if test -n "$ac_ct_DUMPBIN"; then
5715 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729 done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5735if test -n "$ac_ct_DUMPBIN"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5737$as_echo "$ac_ct_DUMPBIN" >&6; }
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743
5744 test -n "$ac_ct_DUMPBIN" && break
5745done
5746
5747 if test "x$ac_ct_DUMPBIN" = x; then
5748 DUMPBIN=":"
5749 else
5750 case $cross_compiling:$ac_tool_warned in
5751yes:)
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754ac_tool_warned=yes ;;
5755esac
5756 DUMPBIN=$ac_ct_DUMPBIN
5757 fi
5758fi
5759
5760 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5761 *COFF*)
5762 DUMPBIN="$DUMPBIN -symbols"
5763 ;;
5764 *)
5765 DUMPBIN=:
5766 ;;
5767 esac
5768 fi
5769
5770 if test "$DUMPBIN" != ":"; then
5771 NM="$DUMPBIN"
5772 fi
5773fi
5774test -z "$NM" && NM=nm
5775
5776
5777
5778
5779
5780
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5782$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5783if ${lt_cv_nm_interface+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785else
5786 lt_cv_nm_interface="BSD nm"
5787 echo "int some_variable = 0;" > conftest.$ac_ext
5788 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5789 (eval "$ac_compile" 2>conftest.err)
5790 cat conftest.err >&5
5791 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5793 cat conftest.err >&5
5794 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5795 cat conftest.out >&5
5796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5797 lt_cv_nm_interface="MS dumpbin"
5798 fi
5799 rm -rf conftest*
5800fi
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5802$as_echo "$lt_cv_nm_interface" >&6; }
5803
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5805$as_echo_n "checking whether ln -s works... " >&6; }
5806LN_S=$as_ln_s
5807if test "$LN_S" = "ln -s"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5809$as_echo "yes" >&6; }
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5812$as_echo "no, using $LN_S" >&6; }
5813fi
5814
5815# find the maximum length of command line arguments
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5817$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5818if ${lt_cv_sys_max_cmd_len+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820else
5821 i=0
5822 teststring="ABCD"
5823
5824 case $build_os in
5825 msdosdjgpp*)
5826 # On DJGPP, this test can blow up pretty badly due to problems in libc
5827 # (any single argument exceeding 2000 bytes causes a buffer overrun
5828 # during glob expansion). Even if it were fixed, the result of this
5829 # check would be larger than it should be.
5830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5831 ;;
5832
5833 gnu*)
5834 # Under GNU Hurd, this test is not required because there is
5835 # no limit to the length of command line arguments.
5836 # Libtool will interpret -1 as no limit whatsoever
5837 lt_cv_sys_max_cmd_len=-1;
5838 ;;
5839
5840 cygwin* | mingw* | cegcc*)
5841 # On Win9x/ME, this test blows up -- it succeeds, but takes
5842 # about 5 minutes as the teststring grows exponentially.
5843 # Worse, since 9x/ME are not pre-emptively multitasking,
5844 # you end up with a "frozen" computer, even though with patience
5845 # the test eventually succeeds (with a max line length of 256k).
5846 # Instead, let's just punt: use the minimum linelength reported by
5847 # all of the supported platforms: 8192 (on NT/2K/XP).
5848 lt_cv_sys_max_cmd_len=8192;
5849 ;;
5850
5851 mint*)
5852 # On MiNT this can take a long time and run out of memory.
5853 lt_cv_sys_max_cmd_len=8192;
5854 ;;
5855
5856 amigaos*)
5857 # On AmigaOS with pdksh, this test takes hours, literally.
5858 # So we just punt and use a minimum line length of 8192.
5859 lt_cv_sys_max_cmd_len=8192;
5860 ;;
5861
5862 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5863 # This has been around since 386BSD, at least. Likely further.
5864 if test -x /sbin/sysctl; then
5865 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5866 elif test -x /usr/sbin/sysctl; then
5867 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5868 else
5869 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5870 fi
5871 # And add a safety zone
5872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5874 ;;
5875
5876 interix*)
5877 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5878 lt_cv_sys_max_cmd_len=196608
5879 ;;
5880
5881 os2*)
5882 # The test takes a long time on OS/2.
5883 lt_cv_sys_max_cmd_len=8192
5884 ;;
5885
5886 osf*)
5887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5889 # nice to cause kernel panics so lets avoid the loop below.
5890 # First set a reasonable default.
5891 lt_cv_sys_max_cmd_len=16384
5892 #
5893 if test -x /sbin/sysconfig; then
5894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5895 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5896 esac
5897 fi
5898 ;;
5899 sco3.2v5*)
5900 lt_cv_sys_max_cmd_len=102400
5901 ;;
5902 sysv5* | sco5v6* | sysv4.2uw2*)
5903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5904 if test -n "$kargmax"; then
5905 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5906 else
5907 lt_cv_sys_max_cmd_len=32768
5908 fi
5909 ;;
5910 *)
5911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5912 if test -n "$lt_cv_sys_max_cmd_len"; then
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5915 else
5916 # Make teststring a little bigger before we do anything with it.
5917 # a 1K string should be a reasonable start.
5918 for i in 1 2 3 4 5 6 7 8 ; do
5919 teststring=$teststring$teststring
5920 done
5921 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5922 # If test is not a shell built-in, we'll probably end up computing a
5923 # maximum length that is only half of the actual maximum length, but
5924 # we can't tell.
5925 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5926 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5927 test $i != 17 # 1/2 MB should be enough
5928 do
5929 i=`expr $i + 1`
5930 teststring=$teststring$teststring
5931 done
5932 # Only check the string length outside the loop.
5933 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5934 teststring=
5935 # Add a significant safety factor because C++ compilers can tack on
5936 # massive amounts of additional arguments before passing them to the
5937 # linker. It appears as though 1/2 is a usable value.
5938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5939 fi
5940 ;;
5941 esac
5942
5943fi
5944
5945if test -n $lt_cv_sys_max_cmd_len ; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5947$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5948else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5950$as_echo "none" >&6; }
5951fi
5952max_cmd_len=$lt_cv_sys_max_cmd_len
5953
5954
5955
5956
5957
5958
5959: ${CP="cp -f"}
5960: ${MV="mv -f"}
5961: ${RM="rm -f"}
5962
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5964$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5965# Try some XSI features
5966xsi_shell=no
5967( _lt_dummy="a/b/c"
5968 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5969 = c,a/b,b/c, \
5970 && eval 'test $(( 1 + 1 )) -eq 2 \
5971 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5972 && xsi_shell=yes
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5974$as_echo "$xsi_shell" >&6; }
5975
5976
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5978$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5979lt_shell_append=no
5980( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5981 >/dev/null 2>&1 \
5982 && lt_shell_append=yes
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5984$as_echo "$lt_shell_append" >&6; }
5985
5986
5987if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5988 lt_unset=unset
5989else
5990 lt_unset=false
5991fi
5992
5993
5994
5995
5996
5997# test EBCDIC or ASCII
5998case `echo X|tr X '\101'` in
5999 A) # ASCII based system
6000 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6001 lt_SP2NL='tr \040 \012'
6002 lt_NL2SP='tr \015\012 \040\040'
6003 ;;
6004 *) # EBCDIC based system
6005 lt_SP2NL='tr \100 \n'
6006 lt_NL2SP='tr \r\n \100\100'
6007 ;;
6008esac
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6019$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6020if ${lt_cv_to_host_file_cmd+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022else
6023 case $host in
6024 *-*-mingw* )
6025 case $build in
6026 *-*-mingw* ) # actually msys
6027 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6028 ;;
6029 *-*-cygwin* )
6030 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6031 ;;
6032 * ) # otherwise, assume *nix
6033 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6034 ;;
6035 esac
6036 ;;
6037 *-*-cygwin* )
6038 case $build in
6039 *-*-mingw* ) # actually msys
6040 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6041 ;;
6042 *-*-cygwin* )
6043 lt_cv_to_host_file_cmd=func_convert_file_noop
6044 ;;
6045 * ) # otherwise, assume *nix
6046 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6047 ;;
6048 esac
6049 ;;
6050 * ) # unhandled hosts (and "normal" native builds)
6051 lt_cv_to_host_file_cmd=func_convert_file_noop
6052 ;;
6053esac
6054
6055fi
6056
6057to_host_file_cmd=$lt_cv_to_host_file_cmd
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6059$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6060
6061
6062
6063
6064
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6066$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6067if ${lt_cv_to_tool_file_cmd+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069else
6070 #assume ordinary cross tools, or native build.
6071lt_cv_to_tool_file_cmd=func_convert_file_noop
6072case $host in
6073 *-*-mingw* )
6074 case $build in
6075 *-*-mingw* ) # actually msys
6076 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6077 ;;
6078 esac
6079 ;;
6080esac
6081
6082fi
6083
6084to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6086$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6087
6088
6089
6090
6091
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6093$as_echo_n "checking for $LD option to reload object files... " >&6; }
6094if ${lt_cv_ld_reload_flag+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096else
6097 lt_cv_ld_reload_flag='-r'
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6100$as_echo "$lt_cv_ld_reload_flag" >&6; }
6101reload_flag=$lt_cv_ld_reload_flag
6102case $reload_flag in
6103"" | " "*) ;;
6104*) reload_flag=" $reload_flag" ;;
6105esac
6106reload_cmds='$LD$reload_flag -o $output$reload_objs'
6107case $host_os in
6108 cygwin* | mingw* | pw32* | cegcc*)
6109 if test "$GCC" != yes; then
6110 reload_cmds=false
6111 fi
6112 ;;
6113 darwin*)
6114 if test "$GCC" = yes; then
6115 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6116 else
6117 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6118 fi
6119 ;;
6120esac
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130if test -n "$ac_tool_prefix"; then
6131 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6132set dummy ${ac_tool_prefix}objdump; ac_word=$2
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134$as_echo_n "checking for $ac_word... " >&6; }
6135if ${ac_cv_prog_OBJDUMP+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137else
6138 if test -n "$OBJDUMP"; then
6139 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152done
6153 done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158OBJDUMP=$ac_cv_prog_OBJDUMP
6159if test -n "$OBJDUMP"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6161$as_echo "$OBJDUMP" >&6; }
6162else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164$as_echo "no" >&6; }
6165fi
6166
6167
6168fi
6169if test -z "$ac_cv_prog_OBJDUMP"; then
6170 ac_ct_OBJDUMP=$OBJDUMP
6171 # Extract the first word of "objdump", so it can be a program name with args.
6172set dummy objdump; ac_word=$2
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174$as_echo_n "checking for $ac_word... " >&6; }
6175if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178 if test -n "$ac_ct_OBJDUMP"; then
6179 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193 done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6199if test -n "$ac_ct_OBJDUMP"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6201$as_echo "$ac_ct_OBJDUMP" >&6; }
6202else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204$as_echo "no" >&6; }
6205fi
6206
6207 if test "x$ac_ct_OBJDUMP" = x; then
6208 OBJDUMP="false"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211yes:)
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214ac_tool_warned=yes ;;
6215esac
6216 OBJDUMP=$ac_ct_OBJDUMP
6217 fi
6218else
6219 OBJDUMP="$ac_cv_prog_OBJDUMP"
6220fi
6221
6222test -z "$OBJDUMP" && OBJDUMP=objdump
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6233$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6234if ${lt_cv_deplibs_check_method+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236else
6237 lt_cv_file_magic_cmd='$MAGIC_CMD'
6238lt_cv_file_magic_test_file=
6239lt_cv_deplibs_check_method='unknown'
6240# Need to set the preceding variable on all platforms that support
6241# interlibrary dependencies.
6242# 'none' -- dependencies not supported.
6243# `unknown' -- same as none, but documents that we really don't know.
6244# 'pass_all' -- all dependencies passed with no checks.
6245# 'test_compile' -- check by making test program.
6246# 'file_magic [[regex]]' -- check by looking for files in library path
6247# which responds to the $file_magic_cmd with a given extended regex.
6248# If you have `file' or equivalent on your system and you're not sure
6249# whether `pass_all' will *always* work, you probably want this one.
6250
6251case $host_os in
6252aix[4-9]*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256beos*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259
6260bsdi[45]*)
6261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6262 lt_cv_file_magic_cmd='/usr/bin/file -L'
6263 lt_cv_file_magic_test_file=/shlib/libc.so
6264 ;;
6265
6266cygwin*)
6267 # func_win32_libid is a shell function defined in ltmain.sh
6268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6269 lt_cv_file_magic_cmd='func_win32_libid'
6270 ;;
6271
6272mingw* | pw32*)
6273 # Base MSYS/MinGW do not provide the 'file' command needed by
6274 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6275 # unless we find 'file', for example because we are cross-compiling.
6276 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6277 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6278 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6279 lt_cv_file_magic_cmd='func_win32_libid'
6280 else
6281 # Keep this pattern in sync with the one in func_win32_libid.
6282 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6283 lt_cv_file_magic_cmd='$OBJDUMP -f'
6284 fi
6285 ;;
6286
6287cegcc*)
6288 # use the weaker test based on 'objdump'. See mingw*.
6289 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6290 lt_cv_file_magic_cmd='$OBJDUMP -f'
6291 ;;
6292
6293darwin* | rhapsody*)
6294 lt_cv_deplibs_check_method=pass_all
6295 ;;
6296
6297freebsd* | dragonfly*)
6298 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6299 case $host_cpu in
6300 i*86 )
6301 # Not sure whether the presence of OpenBSD here was a mistake.
6302 # Let's accept both of them until this is cleared up.
6303 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6304 lt_cv_file_magic_cmd=/usr/bin/file
6305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6306 ;;
6307 esac
6308 else
6309 lt_cv_deplibs_check_method=pass_all
6310 fi
6311 ;;
6312
6313gnu*)
6314 lt_cv_deplibs_check_method=pass_all
6315 ;;
6316
6317haiku*)
6318 lt_cv_deplibs_check_method=pass_all
6319 ;;
6320
6321hpux10.20* | hpux11*)
6322 lt_cv_file_magic_cmd=/usr/bin/file
6323 case $host_cpu in
6324 ia64*)
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6327 ;;
6328 hppa*64*)
6329 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]'
6330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6331 ;;
6332 *)
6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6335 ;;
6336 esac
6337 ;;
6338
6339interix[3-9]*)
6340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6342 ;;
6343
6344irix5* | irix6* | nonstopux*)
6345 case $LD in
6346 *-32|*"-32 ") libmagic=32-bit;;
6347 *-n32|*"-n32 ") libmagic=N32;;
6348 *-64|*"-64 ") libmagic=64-bit;;
6349 *) libmagic=never-match;;
6350 esac
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353
6354# This must be glibc/ELF.
6355linux* | k*bsd*-gnu | kopensolaris*-gnu)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359netbsd*)
6360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6362 else
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6364 fi
6365 ;;
6366
6367newos6*)
6368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6369 lt_cv_file_magic_cmd=/usr/bin/file
6370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6371 ;;
6372
6373*nto* | *qnx*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377openbsd*)
6378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6380 else
6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6382 fi
6383 ;;
6384
6385osf3* | osf4* | osf5*)
6386 lt_cv_deplibs_check_method=pass_all
6387 ;;
6388
6389rdos*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393solaris*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401sysv4 | sysv4.3*)
6402 case $host_vendor in
6403 motorola)
6404 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]'
6405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6406 ;;
6407 ncr)
6408 lt_cv_deplibs_check_method=pass_all
6409 ;;
6410 sequent)
6411 lt_cv_file_magic_cmd='/bin/file'
6412 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6413 ;;
6414 sni)
6415 lt_cv_file_magic_cmd='/bin/file'
6416 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6417 lt_cv_file_magic_test_file=/lib/libc.so
6418 ;;
6419 siemens)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422 pc)
6423 lt_cv_deplibs_check_method=pass_all
6424 ;;
6425 esac
6426 ;;
6427
6428tpf*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431esac
6432
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6435$as_echo "$lt_cv_deplibs_check_method" >&6; }
6436
6437file_magic_glob=
6438want_nocaseglob=no
6439if test "$build" = "$host"; then
6440 case $host_os in
6441 mingw* | pw32*)
6442 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6443 want_nocaseglob=yes
6444 else
6445 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6446 fi
6447 ;;
6448 esac
6449fi
6450
6451file_magic_cmd=$lt_cv_file_magic_cmd
6452deplibs_check_method=$lt_cv_deplibs_check_method
6453test -z "$deplibs_check_method" && deplibs_check_method=unknown
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6478set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480$as_echo_n "checking for $ac_word... " >&6; }
6481if ${ac_cv_prog_DLLTOOL+:} false; then :
6482 $as_echo_n "(cached) " >&6
6483else
6484 if test -n "$DLLTOOL"; then
6485 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498done
6499 done
6500IFS=$as_save_IFS
6501
6502fi
6503fi
6504DLLTOOL=$ac_cv_prog_DLLTOOL
6505if test -n "$DLLTOOL"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6507$as_echo "$DLLTOOL" >&6; }
6508else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511fi
6512
6513
6514fi
6515if test -z "$ac_cv_prog_DLLTOOL"; then
6516 ac_ct_DLLTOOL=$DLLTOOL
6517 # Extract the first word of "dlltool", so it can be a program name with args.
6518set dummy dlltool; ac_word=$2
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520$as_echo_n "checking for $ac_word... " >&6; }
6521if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523else
6524 if test -n "$ac_ct_DLLTOOL"; then
6525 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539 done
6540IFS=$as_save_IFS
6541
6542fi
6543fi
6544ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6545if test -n "$ac_ct_DLLTOOL"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6547$as_echo "$ac_ct_DLLTOOL" >&6; }
6548else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550$as_echo "no" >&6; }
6551fi
6552
6553 if test "x$ac_ct_DLLTOOL" = x; then
6554 DLLTOOL="false"
6555 else
6556 case $cross_compiling:$ac_tool_warned in
6557yes:)
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560ac_tool_warned=yes ;;
6561esac
6562 DLLTOOL=$ac_ct_DLLTOOL
6563 fi
6564else
6565 DLLTOOL="$ac_cv_prog_DLLTOOL"
6566fi
6567
6568test -z "$DLLTOOL" && DLLTOOL=dlltool
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6580$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6581if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583else
6584 lt_cv_sharedlib_from_linklib_cmd='unknown'
6585
6586case $host_os in
6587cygwin* | mingw* | pw32* | cegcc*)
6588 # two different shell functions defined in ltmain.sh
6589 # decide which to use based on capabilities of $DLLTOOL
6590 case `$DLLTOOL --help 2>&1` in
6591 *--identify-strict*)
6592 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6593 ;;
6594 *)
6595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6596 ;;
6597 esac
6598 ;;
6599*)
6600 # fallback: assume linklib IS sharedlib
6601 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6602 ;;
6603esac
6604
6605fi
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6607$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6608sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6609test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6610
6611
6612
6613
6614
6615
6616
6617if test -n "$ac_tool_prefix"; then
6618 for ac_prog in ar
6619 do
6620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if ${ac_cv_prog_AR+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626else
6627 if test -n "$AR"; then
6628 ac_cv_prog_AR="$AR" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642 done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647AR=$ac_cv_prog_AR
6648if test -n "$AR"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6650$as_echo "$AR" >&6; }
6651else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656
6657 test -n "$AR" && break
6658 done
6659fi
6660if test -z "$AR"; then
6661 ac_ct_AR=$AR
6662 for ac_prog in ar
6663do
6664 # Extract the first word of "$ac_prog", so it can be a program name with args.
6665set dummy $ac_prog; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if ${ac_cv_prog_ac_ct_AR+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670else
6671 if test -n "$ac_ct_AR"; then
6672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_ac_ct_AR="$ac_prog"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686 done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691ac_ct_AR=$ac_cv_prog_ac_ct_AR
6692if test -n "$ac_ct_AR"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6694$as_echo "$ac_ct_AR" >&6; }
6695else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700
6701 test -n "$ac_ct_AR" && break
6702done
6703
6704 if test "x$ac_ct_AR" = x; then
6705 AR="false"
6706 else
6707 case $cross_compiling:$ac_tool_warned in
6708yes:)
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711ac_tool_warned=yes ;;
6712esac
6713 AR=$ac_ct_AR
6714 fi
6715fi
6716
6717: ${AR=ar}
6718: ${AR_FLAGS=cru}
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6731$as_echo_n "checking for archiver @FILE support... " >&6; }
6732if ${lt_cv_ar_at_file+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734else
6735 lt_cv_ar_at_file=no
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h. */
6738
6739int
6740main ()
6741{
6742
6743 ;
6744 return 0;
6745}
6746_ACEOF
6747if ac_fn_c_try_compile "$LINENO"; then :
6748 echo conftest.$ac_objext > conftest.lst
6749 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6751 (eval $lt_ar_try) 2>&5
6752 ac_status=$?
6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; }
6755 if test "$ac_status" -eq 0; then
6756 # Ensure the archiver fails upon bogus file names.
6757 rm -f conftest.$ac_objext libconftest.a
6758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6759 (eval $lt_ar_try) 2>&5
6760 ac_status=$?
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762 test $ac_status = 0; }
6763 if test "$ac_status" -ne 0; then
6764 lt_cv_ar_at_file=@
6765 fi
6766 fi
6767 rm -f conftest.* libconftest.a
6768
6769fi
6770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771
6772fi
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6774$as_echo "$lt_cv_ar_at_file" >&6; }
6775
6776if test "x$lt_cv_ar_at_file" = xno; then
6777 archiver_list_spec=
6778else
6779 archiver_list_spec=$lt_cv_ar_at_file
6780fi
6781
6782
6783
6784
6785
6786
6787
6788if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6790set dummy ${ac_tool_prefix}strip; ac_word=$2
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792$as_echo_n "checking for $ac_word... " >&6; }
6793if ${ac_cv_prog_STRIP+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795else
6796 if test -n "$STRIP"; then
6797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810done
6811 done
6812IFS=$as_save_IFS
6813
6814fi
6815fi
6816STRIP=$ac_cv_prog_STRIP
6817if test -n "$STRIP"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6819$as_echo "$STRIP" >&6; }
6820else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824
6825
6826fi
6827if test -z "$ac_cv_prog_STRIP"; then
6828 ac_ct_STRIP=$STRIP
6829 # Extract the first word of "strip", so it can be a program name with args.
6830set dummy strip; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835else
6836 if test -n "$ac_ct_STRIP"; then
6837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_ac_ct_STRIP="strip"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850done
6851 done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6857if test -n "$ac_ct_STRIP"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6859$as_echo "$ac_ct_STRIP" >&6; }
6860else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865 if test "x$ac_ct_STRIP" = x; then
6866 STRIP=":"
6867 else
6868 case $cross_compiling:$ac_tool_warned in
6869yes:)
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874 STRIP=$ac_ct_STRIP
6875 fi
6876else
6877 STRIP="$ac_cv_prog_STRIP"
6878fi
6879
6880test -z "$STRIP" && STRIP=:
6881
6882
6883
6884
6885
6886
6887if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if ${ac_cv_prog_RANLIB+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894else
6895 if test -n "$RANLIB"; then
6896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910 done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
6915RANLIB=$ac_cv_prog_RANLIB
6916if test -n "$RANLIB"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6918$as_echo "$RANLIB" >&6; }
6919else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_RANLIB"; then
6927 ac_ct_RANLIB=$RANLIB
6928 # Extract the first word of "ranlib", so it can be a program name with args.
6929set dummy ranlib; ac_word=$2
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934else
6935 if test -n "$ac_ct_RANLIB"; then
6936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_RANLIB="ranlib"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950 done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956if test -n "$ac_ct_RANLIB"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6958$as_echo "$ac_ct_RANLIB" >&6; }
6959else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
6964 if test "x$ac_ct_RANLIB" = x; then
6965 RANLIB=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973 RANLIB=$ac_ct_RANLIB
6974 fi
6975else
6976 RANLIB="$ac_cv_prog_RANLIB"
6977fi
6978
6979test -z "$RANLIB" && RANLIB=:
6980
6981
6982
6983
6984
6985
6986# Determine commands to create old-style static archives.
6987old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6988old_postinstall_cmds='chmod 644 $oldlib'
6989old_postuninstall_cmds=
6990
6991if test -n "$RANLIB"; then
6992 case $host_os in
6993 openbsd*)
6994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6995 ;;
6996 *)
6997 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6998 ;;
6999 esac
7000 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7001fi
7002
7003case $host_os in
7004 darwin*)
7005 lock_old_archive_extraction=yes ;;
7006 *)
7007 lock_old_archive_extraction=no ;;
7008esac
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048# If no C compiler was specified, use CC.
7049LTCC=${LTCC-"$CC"}
7050
7051# If no C compiler flags were specified, use CFLAGS.
7052LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7053
7054# Allow CC to be a program name with arguments.
7055compiler=$CC
7056
7057
7058# Check for command to grab the raw symbol name followed by C symbol from nm.
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7060$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7061if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063else
7064
7065# These are sane defaults that work on at least a few old systems.
7066# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7067
7068# Character class describing NM global symbol codes.
7069symcode='[BCDEGRST]'
7070
7071# Regexp to match symbols that can be accessed directly from C.
7072sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7073
7074# Define system-specific variables.
7075case $host_os in
7076aix*)
7077 symcode='[BCDT]'
7078 ;;
7079cygwin* | mingw* | pw32* | cegcc*)
7080 symcode='[ABCDGISTW]'
7081 ;;
7082hpux*)
7083 if test "$host_cpu" = ia64; then
7084 symcode='[ABCDEGRST]'
7085 fi
7086 ;;
7087irix* | nonstopux*)
7088 symcode='[BCDEGRST]'
7089 ;;
7090osf*)
7091 symcode='[BCDEGQRST]'
7092 ;;
7093solaris*)
7094 symcode='[BDRT]'
7095 ;;
7096sco3.2v5*)
7097 symcode='[DT]'
7098 ;;
7099sysv4.2uw2*)
7100 symcode='[DT]'
7101 ;;
7102sysv5* | sco5v6* | unixware* | OpenUNIX*)
7103 symcode='[ABDT]'
7104 ;;
7105sysv4)
7106 symcode='[DFNSTU]'
7107 ;;
7108esac
7109
7110# If we're using GNU nm, then use its standard symbol codes.
7111case `$NM -V 2>&1` in
7112*GNU* | *'with BFD'*)
7113 symcode='[ABCDGIRSTW]' ;;
7114esac
7115
7116# Transform an extracted symbol line into a proper C declaration.
7117# Some systems (esp. on ia64) link data and code symbols differently,
7118# so use this general approach.
7119lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7120
7121# Transform an extracted symbol line into symbol name and symbol address
7122lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7123lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7124
7125# Handle CRLF in mingw tool chain
7126opt_cr=
7127case $build_os in
7128mingw*)
7129 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7130 ;;
7131esac
7132
7133# Try without a prefix underscore, then with it.
7134for ac_symprfx in "" "_"; do
7135
7136 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7137 symxfrm="\\1 $ac_symprfx\\2 \\2"
7138
7139 # Write the raw and C identifiers.
7140 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7141 # Fake it for dumpbin and say T for any non-static function
7142 # and D for any global variable.
7143 # Also find C++ and __fastcall symbols from MSVC++,
7144 # which start with @ or ?.
7145 lt_cv_sys_global_symbol_pipe="$AWK '"\
7146" {last_section=section; section=\$ 3};"\
7147" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7148" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7149" \$ 0!~/External *\|/{next};"\
7150" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7151" {if(hide[section]) next};"\
7152" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7153" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7154" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7155" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7156" ' prfx=^$ac_symprfx"
7157 else
7158 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7159 fi
7160 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7161
7162 # Check to see that the pipe works correctly.
7163 pipe_works=no
7164
7165 rm -rf conftest*
7166 cat > conftest.$ac_ext <<_LT_EOF
7167#ifdef __cplusplus
7168extern "C" {
7169#endif
7170char nm_test_var;
7171void nm_test_func(void);
7172void nm_test_func(void){}
7173#ifdef __cplusplus
7174}
7175#endif
7176int main(){nm_test_var='a';nm_test_func();return(0);}
7177_LT_EOF
7178
7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7180 (eval $ac_compile) 2>&5
7181 ac_status=$?
7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183 test $ac_status = 0; }; then
7184 # Now try to grab the symbols.
7185 nlist=conftest.nm
7186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7187 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7188 ac_status=$?
7189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190 test $ac_status = 0; } && test -s "$nlist"; then
7191 # Try sorting and uniquifying the output.
7192 if sort "$nlist" | uniq > "$nlist"T; then
7193 mv -f "$nlist"T "$nlist"
7194 else
7195 rm -f "$nlist"T
7196 fi
7197
7198 # Make sure that we snagged all the symbols we need.
7199 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7200 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7201 cat <<_LT_EOF > conftest.$ac_ext
7202/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7203#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7204/* DATA imports from DLLs on WIN32 con't be const, because runtime
7205 relocations are performed -- see ld's documentation on pseudo-relocs. */
7206# define LT_DLSYM_CONST
7207#elif defined(__osf__)
7208/* This system does not cope well with relocations in const data. */
7209# define LT_DLSYM_CONST
7210#else
7211# define LT_DLSYM_CONST const
7212#endif
7213
7214#ifdef __cplusplus
7215extern "C" {
7216#endif
7217
7218_LT_EOF
7219 # Now generate the symbol file.
7220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7221
7222 cat <<_LT_EOF >> conftest.$ac_ext
7223
7224/* The mapping between symbol names and symbols. */
7225LT_DLSYM_CONST struct {
7226 const char *name;
7227 void *address;
7228}
7229lt__PROGRAM__LTX_preloaded_symbols[] =
7230{
7231 { "@PROGRAM@", (void *) 0 },
7232_LT_EOF
7233 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7234 cat <<\_LT_EOF >> conftest.$ac_ext
7235 {0, (void *) 0}
7236};
7237
7238/* This works around a problem in FreeBSD linker */
7239#ifdef FREEBSD_WORKAROUND
7240static const void *lt_preloaded_setup() {
7241 return lt__PROGRAM__LTX_preloaded_symbols;
7242}
7243#endif
7244
7245#ifdef __cplusplus
7246}
7247#endif
7248_LT_EOF
7249 # Now try linking the two files.
7250 mv conftest.$ac_objext conftstm.$ac_objext
7251 lt_globsym_save_LIBS=$LIBS
7252 lt_globsym_save_CFLAGS=$CFLAGS
7253 LIBS="conftstm.$ac_objext"
7254 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7256 (eval $ac_link) 2>&5
7257 ac_status=$?
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7260 pipe_works=yes
7261 fi
7262 LIBS=$lt_globsym_save_LIBS
7263 CFLAGS=$lt_globsym_save_CFLAGS
7264 else
7265 echo "cannot find nm_test_func in $nlist" >&5
7266 fi
7267 else
7268 echo "cannot find nm_test_var in $nlist" >&5
7269 fi
7270 else
7271 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7272 fi
7273 else
7274 echo "$progname: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 fi
7277 rm -rf conftest* conftst*
7278
7279 # Do not use the global_symbol_pipe unless it works.
7280 if test "$pipe_works" = yes; then
7281 break
7282 else
7283 lt_cv_sys_global_symbol_pipe=
7284 fi
7285done
7286
7287fi
7288
7289if test -z "$lt_cv_sys_global_symbol_pipe"; then
7290 lt_cv_sys_global_symbol_to_cdecl=
7291fi
7292if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7294$as_echo "failed" >&6; }
7295else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7297$as_echo "ok" >&6; }
7298fi
7299
7300# Response file support.
7301if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7302 nm_file_list_spec='@'
7303elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7304 nm_file_list_spec='@'
7305fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7334$as_echo_n "checking for sysroot... " >&6; }
7335
7336# Check whether --with-sysroot was given.
7337if test "${with_sysroot+set}" = set; then :
7338 withval=$with_sysroot;
7339else
7340 with_sysroot=no
7341fi
7342
7343
7344lt_sysroot=
7345case ${with_sysroot} in #(
7346 yes)
7347 if test "$GCC" = yes; then
7348 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7349 fi
7350 ;; #(
7351 /*)
7352 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7353 ;; #(
7354 no|'')
7355 ;; #(
7356 *)
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7358$as_echo "${with_sysroot}" >&6; }
7359 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7360 ;;
7361esac
7362
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7364$as_echo "${lt_sysroot:-no}" >&6; }
7365
7366
7367
7368
7369
7370# Check whether --enable-libtool-lock was given.
7371if test "${enable_libtool_lock+set}" = set; then :
7372 enableval=$enable_libtool_lock;
7373fi
7374
7375test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7376
7377# Some flags need to be propagated to the compiler or linker for good
7378# libtool support.
7379case $host in
7380ia64-*-hpux*)
7381 # Find out which ABI we are using.
7382 echo 'int i;' > conftest.$ac_ext
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 case `/usr/bin/file conftest.$ac_objext` in
7389 *ELF-32*)
7390 HPUX_IA64_MODE="32"
7391 ;;
7392 *ELF-64*)
7393 HPUX_IA64_MODE="64"
7394 ;;
7395 esac
7396 fi
7397 rm -rf conftest*
7398 ;;
7399*-*-irix6*)
7400 # Find out which ABI we are using.
7401 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7403 (eval $ac_compile) 2>&5
7404 ac_status=$?
7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; }; then
7407 if test "$lt_cv_prog_gnu_ld" = yes; then
7408 case `/usr/bin/file conftest.$ac_objext` in
7409 *32-bit*)
7410 LD="${LD-ld} -melf32bsmip"
7411 ;;
7412 *N32*)
7413 LD="${LD-ld} -melf32bmipn32"
7414 ;;
7415 *64-bit*)
7416 LD="${LD-ld} -melf64bmip"
7417 ;;
7418 esac
7419 else
7420 case `/usr/bin/file conftest.$ac_objext` in
7421 *32-bit*)
7422 LD="${LD-ld} -32"
7423 ;;
7424 *N32*)
7425 LD="${LD-ld} -n32"
7426 ;;
7427 *64-bit*)
7428 LD="${LD-ld} -64"
7429 ;;
7430 esac
7431 fi
7432 fi
7433 rm -rf conftest*
7434 ;;
7435
7436x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7437s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7438 # Find out which ABI we are using.
7439 echo 'int i;' > conftest.$ac_ext
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7441 (eval $ac_compile) 2>&5
7442 ac_status=$?
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; }; then
7445 case `/usr/bin/file conftest.o` in
7446 *32-bit*)
7447 case $host in
7448 x86_64-*kfreebsd*-gnu)
7449 LD="${LD-ld} -m elf_i386_fbsd"
7450 ;;
7451 x86_64-*linux*)
7452 LD="${LD-ld} -m elf_i386"
7453 ;;
7454 ppc64-*linux*|powerpc64-*linux*)
7455 LD="${LD-ld} -m elf32ppclinux"
7456 ;;
7457 s390x-*linux*)
7458 LD="${LD-ld} -m elf_s390"
7459 ;;
7460 sparc64-*linux*)
7461 LD="${LD-ld} -m elf32_sparc"
7462 ;;
7463 esac
7464 ;;
7465 *64-bit*)
7466 case $host in
7467 x86_64-*kfreebsd*-gnu)
7468 LD="${LD-ld} -m elf_x86_64_fbsd"
7469 ;;
7470 x86_64-*linux*)
7471 LD="${LD-ld} -m elf_x86_64"
7472 ;;
7473 ppc*-*linux*|powerpc*-*linux*)
7474 LD="${LD-ld} -m elf64ppc"
7475 ;;
7476 s390*-*linux*|s390*-*tpf*)
7477 LD="${LD-ld} -m elf64_s390"
7478 ;;
7479 sparc*-*linux*)
7480 LD="${LD-ld} -m elf64_sparc"
7481 ;;
7482 esac
7483 ;;
7484 esac
7485 fi
7486 rm -rf conftest*
7487 ;;
7488
7489*-*-sco3.2v5*)
7490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7491 SAVE_CFLAGS="$CFLAGS"
7492 CFLAGS="$CFLAGS -belf"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7494$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7495if ${lt_cv_cc_needs_belf+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497else
7498 ac_ext=c
7499ac_cpp='$CPP $CPPFLAGS'
7500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */
7506
7507int
7508main ()
7509{
7510
7511 ;
7512 return 0;
7513}
7514_ACEOF
7515if ac_fn_c_try_link "$LINENO"; then :
7516 lt_cv_cc_needs_belf=yes
7517else
7518 lt_cv_cc_needs_belf=no
7519fi
7520rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
7528fi
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7530$as_echo "$lt_cv_cc_needs_belf" >&6; }
7531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7533 CFLAGS="$SAVE_CFLAGS"
7534 fi
7535 ;;
7536*-*solaris*)
7537 # Find out which ABI we are using.
7538 echo 'int i;' > conftest.$ac_ext
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 case `/usr/bin/file conftest.o` in
7545 *64-bit*)
7546 case $lt_cv_prog_gnu_ld in
7547 yes*)
7548 case $host in
7549 i?86-*-solaris*)
7550 LD="${LD-ld} -m elf_x86_64"
7551 ;;
7552 sparc*-*-solaris*)
7553 LD="${LD-ld} -m elf64_sparc"
7554 ;;
7555 esac
7556 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7557 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7558 LD="${LD-ld}_sol2"
7559 fi
7560 ;;
7561 *)
7562 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7563 LD="${LD-ld} -64"
7564 fi
7565 ;;
7566 esac
7567 ;;
7568 esac
7569 fi
7570 rm -rf conftest*
7571 ;;
7572esac
7573
7574need_locks="$enable_libtool_lock"
7575
7576if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7578set dummy ${ac_tool_prefix}mt; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583else
7584 if test -n "$MANIFEST_TOOL"; then
7585 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599 done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7605if test -n "$MANIFEST_TOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7607$as_echo "$MANIFEST_TOOL" >&6; }
7608else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614fi
7615if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7616 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7617 # Extract the first word of "mt", so it can be a program name with args.
7618set dummy mt; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 if test -n "$ac_ct_MANIFEST_TOOL"; then
7625 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639 done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7645if test -n "$ac_ct_MANIFEST_TOOL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7647$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7654 MANIFEST_TOOL=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657yes:)
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660ac_tool_warned=yes ;;
7661esac
7662 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7663 fi
7664else
7665 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7666fi
7667
7668test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7670$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7671if ${lt_cv_path_mainfest_tool+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673else
7674 lt_cv_path_mainfest_tool=no
7675 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7676 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7677 cat conftest.err >&5
7678 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7679 lt_cv_path_mainfest_tool=yes
7680 fi
7681 rm -rf conftest*
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7684$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7685if test "x$lt_cv_path_mainfest_tool" != xyes; then
7686 MANIFEST_TOOL=:
7687fi
7688
7689
7690
7691
7692
7693
7694 case $host_os in
7695 rhapsody* | darwin*)
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7698set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703else
7704 if test -n "$DSYMUTIL"; then
7705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719 done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724DSYMUTIL=$ac_cv_prog_DSYMUTIL
7725if test -n "$DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7727$as_echo "$DSYMUTIL" >&6; }
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_prog_DSYMUTIL"; then
7736 ac_ct_DSYMUTIL=$DSYMUTIL
7737 # Extract the first word of "dsymutil", so it can be a program name with args.
7738set dummy dsymutil; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743else
7744 if test -n "$ac_ct_DSYMUTIL"; then
7745 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759 done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7765if test -n "$ac_ct_DSYMUTIL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7767$as_echo "$ac_ct_DSYMUTIL" >&6; }
7768else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773 if test "x$ac_ct_DSYMUTIL" = x; then
7774 DSYMUTIL=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777yes:)
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780ac_tool_warned=yes ;;
7781esac
7782 DSYMUTIL=$ac_ct_DSYMUTIL
7783 fi
7784else
7785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7786fi
7787
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7790set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_NMEDIT+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795else
7796 if test -n "$NMEDIT"; then
7797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811 done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816NMEDIT=$ac_cv_prog_NMEDIT
7817if test -n "$NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7819$as_echo "$NMEDIT" >&6; }
7820else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825
7826fi
7827if test -z "$ac_cv_prog_NMEDIT"; then
7828 ac_ct_NMEDIT=$NMEDIT
7829 # Extract the first word of "nmedit", so it can be a program name with args.
7830set dummy nmedit; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 if test -n "$ac_ct_NMEDIT"; then
7837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851 done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7857if test -n "$ac_ct_NMEDIT"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7859$as_echo "$ac_ct_NMEDIT" >&6; }
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865 if test "x$ac_ct_NMEDIT" = x; then
7866 NMEDIT=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869yes:)
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872ac_tool_warned=yes ;;
7873esac
7874 NMEDIT=$ac_ct_NMEDIT
7875 fi
7876else
7877 NMEDIT="$ac_cv_prog_NMEDIT"
7878fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}lipo; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_LIPO+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887else
7888 if test -n "$LIPO"; then
7889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902done
7903 done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908LIPO=$ac_cv_prog_LIPO
7909if test -n "$LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7911$as_echo "$LIPO" >&6; }
7912else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917
7918fi
7919if test -z "$ac_cv_prog_LIPO"; then
7920 ac_ct_LIPO=$LIPO
7921 # Extract the first word of "lipo", so it can be a program name with args.
7922set dummy lipo; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927else
7928 if test -n "$ac_ct_LIPO"; then
7929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_LIPO="lipo"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942done
7943 done
7944IFS=$as_save_IFS
7945
7946fi
7947fi
7948ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7949if test -n "$ac_ct_LIPO"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7951$as_echo "$ac_ct_LIPO" >&6; }
7952else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957 if test "x$ac_ct_LIPO" = x; then
7958 LIPO=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966 LIPO=$ac_ct_LIPO
7967 fi
7968else
7969 LIPO="$ac_cv_prog_LIPO"
7970fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}otool; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_OTOOL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 if test -n "$OTOOL"; then
7981 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994done
7995 done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000OTOOL=$ac_cv_prog_OTOOL
8001if test -n "$OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8003$as_echo "$OTOOL" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_prog_OTOOL"; then
8012 ac_ct_OTOOL=$OTOOL
8013 # Extract the first word of "otool", so it can be a program name with args.
8014set dummy otool; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 if test -n "$ac_ct_OTOOL"; then
8021 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL="otool"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035 done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8041if test -n "$ac_ct_OTOOL"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8043$as_echo "$ac_ct_OTOOL" >&6; }
8044else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049 if test "x$ac_ct_OTOOL" = x; then
8050 OTOOL=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053yes:)
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056ac_tool_warned=yes ;;
8057esac
8058 OTOOL=$ac_ct_OTOOL
8059 fi
8060else
8061 OTOOL="$ac_cv_prog_OTOOL"
8062fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8066set dummy ${ac_tool_prefix}otool64; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if ${ac_cv_prog_OTOOL64+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 if test -n "$OTOOL64"; then
8073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086done
8087 done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092OTOOL64=$ac_cv_prog_OTOOL64
8093if test -n "$OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8095$as_echo "$OTOOL64" >&6; }
8096else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101
8102fi
8103if test -z "$ac_cv_prog_OTOOL64"; then
8104 ac_ct_OTOOL64=$OTOOL64
8105 # Extract the first word of "otool64", so it can be a program name with args.
8106set dummy otool64; ac_word=$2
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111else
8112 if test -n "$ac_ct_OTOOL64"; then
8113 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_OTOOL64="otool64"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127 done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8133if test -n "$ac_ct_OTOOL64"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8135$as_echo "$ac_ct_OTOOL64" >&6; }
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139fi
8140
8141 if test "x$ac_ct_OTOOL64" = x; then
8142 OTOOL64=":"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150 OTOOL64=$ac_ct_OTOOL64
8151 fi
8152else
8153 OTOOL64="$ac_cv_prog_OTOOL64"
8154fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8183$as_echo_n "checking for -single_module linker flag... " >&6; }
8184if ${lt_cv_apple_cc_single_mod+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186else
8187 lt_cv_apple_cc_single_mod=no
8188 if test -z "${LT_MULTI_MODULE}"; then
8189 # By default we will add the -single_module flag. You can override
8190 # by either setting the environment variable LT_MULTI_MODULE
8191 # non-empty at configure time, or by adding -multi_module to the
8192 # link flags.
8193 rm -rf libconftest.dylib*
8194 echo "int foo(void){return 1;}" > conftest.c
8195 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8196-dynamiclib -Wl,-single_module conftest.c" >&5
8197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8199 _lt_result=$?
8200 # If there is a non-empty error log, and "single_module"
8201 # appears in it, assume the flag caused a linker warning
8202 if test -s conftest.err && $GREP single_module conftest.err; then
8203 cat conftest.err >&5
8204 # Otherwise, if the output was created with a 0 exit code from
8205 # the compiler, it worked.
8206 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8207 lt_cv_apple_cc_single_mod=yes
8208 else
8209 cat conftest.err >&5
8210 fi
8211 rm -rf libconftest.dylib*
8212 rm -f conftest.*
8213 fi
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8216$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8219$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8220if ${lt_cv_ld_exported_symbols_list+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222else
8223 lt_cv_ld_exported_symbols_list=no
8224 save_LDFLAGS=$LDFLAGS
8225 echo "_main" > conftest.sym
8226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h. */
8229
8230int
8231main ()
8232{
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_ld_exported_symbols_list=yes
8240else
8241 lt_cv_ld_exported_symbols_list=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LDFLAGS="$save_LDFLAGS"
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8249$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8252$as_echo_n "checking for -force_load linker flag... " >&6; }
8253if ${lt_cv_ld_force_load+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255else
8256 lt_cv_ld_force_load=no
8257 cat > conftest.c << _LT_EOF
8258int forced_loaded() { return 2;}
8259_LT_EOF
8260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8262 echo "$AR cru libconftest.a conftest.o" >&5
8263 $AR cru libconftest.a conftest.o 2>&5
8264 echo "$RANLIB libconftest.a" >&5
8265 $RANLIB libconftest.a 2>&5
8266 cat > conftest.c << _LT_EOF
8267int main() { return 0;}
8268_LT_EOF
8269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8271 _lt_result=$?
8272 if test -s conftest.err && $GREP force_load conftest.err; then
8273 cat conftest.err >&5
8274 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8275 lt_cv_ld_force_load=yes
8276 else
8277 cat conftest.err >&5
8278 fi
8279 rm -f conftest.err libconftest.a conftest conftest.c
8280 rm -rf conftest.dSYM
8281
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8284$as_echo "$lt_cv_ld_force_load" >&6; }
8285 case $host_os in
8286 rhapsody* | darwin1.[012])
8287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8288 darwin1.*)
8289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8290 darwin*) # darwin 5.x on
8291 # if running on 10.5 or later, the deployment target defaults
8292 # to the OS version, if on x86, and 10.4, the deployment
8293 # target defaults to 10.4. Don't you love it?
8294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8297 10.[012]*)
8298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8299 10.*)
8300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8301 esac
8302 ;;
8303 esac
8304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8305 _lt_dar_single_mod='$single_module'
8306 fi
8307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8309 else
8310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8311 fi
8312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8313 _lt_dsymutil='~$DSYMUTIL $lib || :'
8314 else
8315 _lt_dsymutil=
8316 fi
8317 ;;
8318 esac
8319
8320ac_ext=c
8321ac_cpp='$CPP $CPPFLAGS'
8322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8324ac_compiler_gnu=$ac_cv_c_compiler_gnu
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8326$as_echo_n "checking how to run the C preprocessor... " >&6; }
8327# On Suns, sometimes $CPP names a directory.
8328if test -n "$CPP" && test -d "$CPP"; then
8329 CPP=
8330fi
8331if test -z "$CPP"; then
8332 if ${ac_cv_prog_CPP+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334else
8335 # Double quotes because CPP needs to be expanded
8336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8337 do
8338 ac_preproc_ok=false
8339for ac_c_preproc_warn_flag in '' yes
8340do
8341 # Use a header file that comes with gcc, so configuring glibc
8342 # with a fresh cross-compiler works.
8343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344 # <limits.h> exists even on freestanding compilers.
8345 # On the NeXT, cc -E runs the code through the compiler's parser,
8346 # not just through cpp. "Syntax error" is here to catch this case.
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h. */
8349#ifdef __STDC__
8350# include <limits.h>
8351#else
8352# include <assert.h>
8353#endif
8354 Syntax error
8355_ACEOF
8356if ac_fn_c_try_cpp "$LINENO"; then :
8357
8358else
8359 # Broken: fails on valid input.
8360continue
8361fi
8362rm -f conftest.err conftest.i conftest.$ac_ext
8363
8364 # OK, works on sane cases. Now check whether nonexistent headers
8365 # can be detected and how.
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h. */
8368#include <ac_nonexistent.h>
8369_ACEOF
8370if ac_fn_c_try_cpp "$LINENO"; then :
8371 # Broken: success on invalid input.
8372continue
8373else
8374 # Passes both tests.
8375ac_preproc_ok=:
8376break
8377fi
8378rm -f conftest.err conftest.i conftest.$ac_ext
8379
8380done
8381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8382rm -f conftest.i conftest.err conftest.$ac_ext
8383if $ac_preproc_ok; then :
8384 break
8385fi
8386
8387 done
8388 ac_cv_prog_CPP=$CPP
8389
8390fi
8391 CPP=$ac_cv_prog_CPP
8392else
8393 ac_cv_prog_CPP=$CPP
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8396$as_echo "$CPP" >&6; }
8397ac_preproc_ok=false
8398for ac_c_preproc_warn_flag in '' yes
8399do
8400 # Use a header file that comes with gcc, so configuring glibc
8401 # with a fresh cross-compiler works.
8402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8403 # <limits.h> exists even on freestanding compilers.
8404 # On the NeXT, cc -E runs the code through the compiler's parser,
8405 # not just through cpp. "Syntax error" is here to catch this case.
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407/* end confdefs.h. */
8408#ifdef __STDC__
8409# include <limits.h>
8410#else
8411# include <assert.h>
8412#endif
8413 Syntax error
8414_ACEOF
8415if ac_fn_c_try_cpp "$LINENO"; then :
8416
8417else
8418 # Broken: fails on valid input.
8419continue
8420fi
8421rm -f conftest.err conftest.i conftest.$ac_ext
8422
8423 # OK, works on sane cases. Now check whether nonexistent headers
8424 # can be detected and how.
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h. */
8427#include <ac_nonexistent.h>
8428_ACEOF
8429if ac_fn_c_try_cpp "$LINENO"; then :
8430 # Broken: success on invalid input.
8431continue
8432else
8433 # Passes both tests.
8434ac_preproc_ok=:
8435break
8436fi
8437rm -f conftest.err conftest.i conftest.$ac_ext
8438
8439done
8440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8441rm -f conftest.i conftest.err conftest.$ac_ext
8442if $ac_preproc_ok; then :
8443
8444else
8445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8447as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8448See \`config.log' for more details" "$LINENO" 5; }
8449fi
8450
8451ac_ext=c
8452ac_cpp='$CPP $CPPFLAGS'
8453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8455ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456
8457
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8459$as_echo_n "checking for ANSI C header files... " >&6; }
8460if ${ac_cv_header_stdc+:} false; then :
8461 $as_echo_n "(cached) " >&6
8462else
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h. */
8465#include <stdlib.h>
8466#include <stdarg.h>
8467#include <string.h>
8468#include <float.h>
8469
8470int
8471main ()
8472{
8473
8474 ;
8475 return 0;
8476}
8477_ACEOF
8478if ac_fn_c_try_compile "$LINENO"; then :
8479 ac_cv_header_stdc=yes
8480else
8481 ac_cv_header_stdc=no
8482fi
8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484
8485if test $ac_cv_header_stdc = yes; then
8486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488/* end confdefs.h. */
8489#include <string.h>
8490
8491_ACEOF
8492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8493 $EGREP "memchr" >/dev/null 2>&1; then :
8494
8495else
8496 ac_cv_header_stdc=no
8497fi
8498rm -f conftest*
8499
8500fi
8501
8502if test $ac_cv_header_stdc = yes; then
8503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h. */
8506#include <stdlib.h>
8507
8508_ACEOF
8509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8510 $EGREP "free" >/dev/null 2>&1; then :
8511
8512else
8513 ac_cv_header_stdc=no
8514fi
8515rm -f conftest*
8516
8517fi
8518
8519if test $ac_cv_header_stdc = yes; then
8520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8521 if test "$cross_compiling" = yes; then :
8522 :
8523else
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525/* end confdefs.h. */
8526#include <ctype.h>
8527#include <stdlib.h>
8528#if ((' ' & 0x0FF) == 0x020)
8529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8531#else
8532# define ISLOWER(c) \
8533 (('a' <= (c) && (c) <= 'i') \
8534 || ('j' <= (c) && (c) <= 'r') \
8535 || ('s' <= (c) && (c) <= 'z'))
8536# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8537#endif
8538
8539#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8540int
8541main ()
8542{
8543 int i;
8544 for (i = 0; i < 256; i++)
8545 if (XOR (islower (i), ISLOWER (i))
8546 || toupper (i) != TOUPPER (i))
8547 return 2;
8548 return 0;
8549}
8550_ACEOF
8551if ac_fn_c_try_run "$LINENO"; then :
8552
8553else
8554 ac_cv_header_stdc=no
8555fi
8556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8557 conftest.$ac_objext conftest.beam conftest.$ac_ext
8558fi
8559
8560fi
8561fi
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8563$as_echo "$ac_cv_header_stdc" >&6; }
8564if test $ac_cv_header_stdc = yes; then
8565
8566$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8567
8568fi
8569
8570# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8571for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8572 inttypes.h stdint.h unistd.h
8573do :
8574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8575ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8576"
8577if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8578 cat >>confdefs.h <<_ACEOF
8579#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8580_ACEOF
8581
8582fi
8583
8584done
8585
8586
8587for ac_header in dlfcn.h
8588do :
8589 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8590"
8591if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8592 cat >>confdefs.h <<_ACEOF
8593#define HAVE_DLFCN_H 1
8594_ACEOF
8595
8596fi
8597
8598done
8599
8600
8601
8602
8603func_stripname_cnf ()
8604{
8605 case ${2} in
8606 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8607 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8608 esac
8609} # func_stripname_cnf
8610
8611
8612
8613
8614
8615# Set options
8616# Check whether --enable-static was given.
8617if test "${enable_static+set}" = set; then :
8618 enableval=$enable_static; p=${PACKAGE-default}
8619 case $enableval in
8620 yes) enable_static=yes ;;
8621 no) enable_static=no ;;
8622 *)
8623 enable_static=no
8624 # Look at the argument we got. We use all the common list separators.
8625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626 for pkg in $enableval; do
8627 IFS="$lt_save_ifs"
8628 if test "X$pkg" = "X$p"; then
8629 enable_static=yes
8630 fi
8631 done
8632 IFS="$lt_save_ifs"
8633 ;;
8634 esac
8635else
8636 enable_static=no
8637fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648 enable_dlopen=no
8649
8650
8651 enable_win32_dll=no
8652
8653
8654 # Check whether --enable-shared was given.
8655if test "${enable_shared+set}" = set; then :
8656 enableval=$enable_shared; p=${PACKAGE-default}
8657 case $enableval in
8658 yes) enable_shared=yes ;;
8659 no) enable_shared=no ;;
8660 *)
8661 enable_shared=no
8662 # Look at the argument we got. We use all the common list separators.
8663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8664 for pkg in $enableval; do
8665 IFS="$lt_save_ifs"
8666 if test "X$pkg" = "X$p"; then
8667 enable_shared=yes
8668 fi
8669 done
8670 IFS="$lt_save_ifs"
8671 ;;
8672 esac
8673else
8674 enable_shared=yes
8675fi
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687# Check whether --with-pic was given.
8688if test "${with_pic+set}" = set; then :
8689 withval=$with_pic; lt_p=${PACKAGE-default}
8690 case $withval in
8691 yes|no) pic_mode=$withval ;;
8692 *)
8693 pic_mode=default
8694 # Look at the argument we got. We use all the common list separators.
8695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8696 for lt_pkg in $withval; do
8697 IFS="$lt_save_ifs"
8698 if test "X$lt_pkg" = "X$lt_p"; then
8699 pic_mode=yes
8700 fi
8701 done
8702 IFS="$lt_save_ifs"
8703 ;;
8704 esac
8705else
8706 pic_mode=default
8707fi
8708
8709
8710test -z "$pic_mode" && pic_mode=default
8711
8712
8713
8714
8715
8716
8717
8718 # Check whether --enable-fast-install was given.
8719if test "${enable_fast_install+set}" = set; then :
8720 enableval=$enable_fast_install; p=${PACKAGE-default}
8721 case $enableval in
8722 yes) enable_fast_install=yes ;;
8723 no) enable_fast_install=no ;;
8724 *)
8725 enable_fast_install=no
8726 # Look at the argument we got. We use all the common list separators.
8727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8728 for pkg in $enableval; do
8729 IFS="$lt_save_ifs"
8730 if test "X$pkg" = "X$p"; then
8731 enable_fast_install=yes
8732 fi
8733 done
8734 IFS="$lt_save_ifs"
8735 ;;
8736 esac
8737else
8738 enable_fast_install=yes
8739fi
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751# This can be used to rebuild libtool when needed
8752LIBTOOL_DEPS="$ltmain"
8753
8754# Always use our own libtool.
8755LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786test -z "$LN_S" && LN_S="ln -s"
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801if test -n "${ZSH_VERSION+set}" ; then
8802 setopt NO_GLOB_SUBST
8803fi
8804
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8806$as_echo_n "checking for objdir... " >&6; }
8807if ${lt_cv_objdir+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809else
8810 rm -f .libs 2>/dev/null
8811mkdir .libs 2>/dev/null
8812if test -d .libs; then
8813 lt_cv_objdir=.libs
8814else
8815 # MS-DOS does not allow filenames that begin with a dot.
8816 lt_cv_objdir=_libs
8817fi
8818rmdir .libs 2>/dev/null
8819fi
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8821$as_echo "$lt_cv_objdir" >&6; }
8822objdir=$lt_cv_objdir
8823
8824
8825
8826
8827
8828cat >>confdefs.h <<_ACEOF
8829#define LT_OBJDIR "$lt_cv_objdir/"
8830_ACEOF
8831
8832
8833
8834
8835case $host_os in
8836aix3*)
8837 # AIX sometimes has problems with the GCC collect2 program. For some
8838 # reason, if we set the COLLECT_NAMES environment variable, the problems
8839 # vanish in a puff of smoke.
8840 if test "X${COLLECT_NAMES+set}" != Xset; then
8841 COLLECT_NAMES=
8842 export COLLECT_NAMES
8843 fi
8844 ;;
8845esac
8846
8847# Global variables:
8848ofile=libtool
8849can_build_shared=yes
8850
8851# All known linkers require a `.a' archive for static linking (except MSVC,
8852# which needs '.lib').
8853libext=a
8854
8855with_gnu_ld="$lt_cv_prog_gnu_ld"
8856
8857old_CC="$CC"
8858old_CFLAGS="$CFLAGS"
8859
8860# Set sane defaults for various variables
8861test -z "$CC" && CC=cc
8862test -z "$LTCC" && LTCC=$CC
8863test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8864test -z "$LD" && LD=ld
8865test -z "$ac_objext" && ac_objext=o
8866
8867for cc_temp in $compiler""; do
8868 case $cc_temp in
8869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8871 \-*) ;;
8872 *) break;;
8873 esac
8874done
8875cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8876
8877
8878# Only perform the check for file, if the check method requires it
8879test -z "$MAGIC_CMD" && MAGIC_CMD=file
8880case $deplibs_check_method in
8881file_magic*)
8882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8884$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8885if ${lt_cv_path_MAGIC_CMD+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887else
8888 case $MAGIC_CMD in
8889[\\/*] | ?:[\\/]*)
8890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8891 ;;
8892*)
8893 lt_save_MAGIC_CMD="$MAGIC_CMD"
8894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8896 for ac_dir in $ac_dummy; do
8897 IFS="$lt_save_ifs"
8898 test -z "$ac_dir" && ac_dir=.
8899 if test -f $ac_dir/${ac_tool_prefix}file; then
8900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8901 if test -n "$file_magic_test_file"; then
8902 case $deplibs_check_method in
8903 "file_magic "*)
8904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8907 $EGREP "$file_magic_regex" > /dev/null; then
8908 :
8909 else
8910 cat <<_LT_EOF 1>&2
8911
8912*** Warning: the command libtool uses to detect shared libraries,
8913*** $file_magic_cmd, produces output that libtool cannot recognize.
8914*** The result is that libtool may fail to recognize shared libraries
8915*** as such. This will affect the creation of libtool libraries that
8916*** depend on shared libraries, but programs linked with such libtool
8917*** libraries will work regardless of this problem. Nevertheless, you
8918*** may want to report the problem to your system manager and/or to
8919*** bug-libtool@gnu.org
8920
8921_LT_EOF
8922 fi ;;
8923 esac
8924 fi
8925 break
8926 fi
8927 done
8928 IFS="$lt_save_ifs"
8929 MAGIC_CMD="$lt_save_MAGIC_CMD"
8930 ;;
8931esac
8932fi
8933
8934MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8935if test -n "$MAGIC_CMD"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8937$as_echo "$MAGIC_CMD" >&6; }
8938else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
8941fi
8942
8943
8944
8945
8946
8947if test -z "$lt_cv_path_MAGIC_CMD"; then
8948 if test -n "$ac_tool_prefix"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8950$as_echo_n "checking for file... " >&6; }
8951if ${lt_cv_path_MAGIC_CMD+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953else
8954 case $MAGIC_CMD in
8955[\\/*] | ?:[\\/]*)
8956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8957 ;;
8958*)
8959 lt_save_MAGIC_CMD="$MAGIC_CMD"
8960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8962 for ac_dir in $ac_dummy; do
8963 IFS="$lt_save_ifs"
8964 test -z "$ac_dir" && ac_dir=.
8965 if test -f $ac_dir/file; then
8966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8967 if test -n "$file_magic_test_file"; then
8968 case $deplibs_check_method in
8969 "file_magic "*)
8970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8973 $EGREP "$file_magic_regex" > /dev/null; then
8974 :
8975 else
8976 cat <<_LT_EOF 1>&2
8977
8978*** Warning: the command libtool uses to detect shared libraries,
8979*** $file_magic_cmd, produces output that libtool cannot recognize.
8980*** The result is that libtool may fail to recognize shared libraries
8981*** as such. This will affect the creation of libtool libraries that
8982*** depend on shared libraries, but programs linked with such libtool
8983*** libraries will work regardless of this problem. Nevertheless, you
8984*** may want to report the problem to your system manager and/or to
8985*** bug-libtool@gnu.org
8986
8987_LT_EOF
8988 fi ;;
8989 esac
8990 fi
8991 break
8992 fi
8993 done
8994 IFS="$lt_save_ifs"
8995 MAGIC_CMD="$lt_save_MAGIC_CMD"
8996 ;;
8997esac
8998fi
8999
9000MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9001if test -n "$MAGIC_CMD"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9003$as_echo "$MAGIC_CMD" >&6; }
9004else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006$as_echo "no" >&6; }
9007fi
9008
9009
9010 else
9011 MAGIC_CMD=:
9012 fi
9013fi
9014
9015 fi
9016 ;;
9017esac
9018
9019# Use C for the default configuration in the libtool script
9020
9021lt_save_CC="$CC"
9022ac_ext=c
9023ac_cpp='$CPP $CPPFLAGS'
9024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026ac_compiler_gnu=$ac_cv_c_compiler_gnu
9027
9028
9029# Source file extension for C test sources.
9030ac_ext=c
9031
9032# Object file extension for compiled C test sources.
9033objext=o
9034objext=$objext
9035
9036# Code to be used in simple compile tests
9037lt_simple_compile_test_code="int some_variable = 0;"
9038
9039# Code to be used in simple link tests
9040lt_simple_link_test_code='int main(){return(0);}'
9041
9042
9043
9044
9045
9046
9047
9048# If no C compiler was specified, use CC.
9049LTCC=${LTCC-"$CC"}
9050
9051# If no C compiler flags were specified, use CFLAGS.
9052LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9053
9054# Allow CC to be a program name with arguments.
9055compiler=$CC
9056
9057# Save the default compiler, since it gets overwritten when the other
9058# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9059compiler_DEFAULT=$CC
9060
9061# save warnings/boilerplate of simple test code
9062ac_outfile=conftest.$ac_objext
9063echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9065_lt_compiler_boilerplate=`cat conftest.err`
9066$RM -r conftest*
9067
9068ac_outfile=conftest.$ac_objext
9069echo "$lt_simple_link_test_code" >conftest.$ac_ext
9070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9071_lt_linker_boilerplate=`cat conftest.err`
9072$RM -r conftest*
9073
9074
9075## CAVEAT EMPTOR:
9076## There is no encapsulation within the following macros, do not change
9077## the running order or otherwise move them around unless you know exactly
9078## what you are doing...
9079if test -n "$compiler"; then
9080
9081lt_prog_compiler_no_builtin_flag=
9082
9083if test "$GCC" = yes; then
9084 case $cc_basename in
9085 nvcc*)
9086 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9087 *)
9088 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9089 esac
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9092$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9093if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095else
9096 lt_cv_prog_compiler_rtti_exceptions=no
9097 ac_outfile=conftest.$ac_objext
9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099 lt_compiler_flag="-fno-rtti -fno-exceptions"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 # The option is referenced via a variable to avoid confusing sed.
9105 lt_compile=`echo "$ac_compile" | $SED \
9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108 -e 's:$: $lt_compiler_flag:'`
9109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9110 (eval "$lt_compile" 2>conftest.err)
9111 ac_status=$?
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 if (exit $ac_status) && test -s "$ac_outfile"; then
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings other than the usual output.
9117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_rtti_exceptions=yes
9121 fi
9122 fi
9123 $RM -r conftest*
9124
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9127$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9128
9129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9131else
9132 :
9133fi
9134
9135fi
9136
9137
9138
9139
9140
9141
9142 lt_prog_compiler_wl=
9143lt_prog_compiler_pic=
9144lt_prog_compiler_static=
9145
9146
9147 if test "$GCC" = yes; then
9148 lt_prog_compiler_wl='-Wl,'
9149 lt_prog_compiler_static='-static'
9150
9151 case $host_os in
9152 aix*)
9153 # All AIX code is PIC.
9154 if test "$host_cpu" = ia64; then
9155 # AIX 5 now supports IA64 processor
9156 lt_prog_compiler_static='-Bstatic'
9157 fi
9158 ;;
9159
9160 amigaos*)
9161 case $host_cpu in
9162 powerpc)
9163 # see comment about AmigaOS4 .so support
9164 lt_prog_compiler_pic='-fPIC'
9165 ;;
9166 m68k)
9167 # FIXME: we need at least 68020 code to build shared libraries, but
9168 # adding the `-m68020' flag to GCC prevents building anything better,
9169 # like `-m68040'.
9170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9171 ;;
9172 esac
9173 ;;
9174
9175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9176 # PIC is the default for these OSes.
9177 ;;
9178
9179 mingw* | cygwin* | pw32* | os2* | cegcc*)
9180 # This hack is so that the source file can tell whether it is being
9181 # built for inclusion in a dll (and should export symbols for example).
9182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9183 # (--disable-auto-import) libraries
9184 lt_prog_compiler_pic='-DDLL_EXPORT'
9185 ;;
9186
9187 darwin* | rhapsody*)
9188 # PIC is the default on this platform
9189 # Common symbols not allowed in MH_DYLIB files
9190 lt_prog_compiler_pic='-fno-common'
9191 ;;
9192
9193 haiku*)
9194 # PIC is the default for Haiku.
9195 # The "-static" flag exists, but is broken.
9196 lt_prog_compiler_static=
9197 ;;
9198
9199 hpux*)
9200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9202 # sets the default TLS model and affects inlining.
9203 case $host_cpu in
9204 hppa*64*)
9205 # +Z the default
9206 ;;
9207 *)
9208 lt_prog_compiler_pic='-fPIC'
9209 ;;
9210 esac
9211 ;;
9212
9213 interix[3-9]*)
9214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9215 # Instead, we relocate shared libraries at runtime.
9216 ;;
9217
9218 msdosdjgpp*)
9219 # Just because we use GCC doesn't mean we suddenly get shared libraries
9220 # on systems that don't support them.
9221 lt_prog_compiler_can_build_shared=no
9222 enable_shared=no
9223 ;;
9224
9225 *nto* | *qnx*)
9226 # QNX uses GNU C++, but need to define -shared option too, otherwise
9227 # it will coredump.
9228 lt_prog_compiler_pic='-fPIC -shared'
9229 ;;
9230
9231 sysv4*MP*)
9232 if test -d /usr/nec; then
9233 lt_prog_compiler_pic=-Kconform_pic
9234 fi
9235 ;;
9236
9237 *)
9238 lt_prog_compiler_pic='-fPIC'
9239 ;;
9240 esac
9241
9242 case $cc_basename in
9243 nvcc*) # Cuda Compiler Driver 2.2
9244 lt_prog_compiler_wl='-Xlinker '
9245 if test -n "$lt_prog_compiler_pic"; then
9246 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9247 fi
9248 ;;
9249 esac
9250 else
9251 # PORTME Check for flag to pass linker flags through the system compiler.
9252 case $host_os in
9253 aix*)
9254 lt_prog_compiler_wl='-Wl,'
9255 if test "$host_cpu" = ia64; then
9256 # AIX 5 now supports IA64 processor
9257 lt_prog_compiler_static='-Bstatic'
9258 else
9259 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9260 fi
9261 ;;
9262
9263 mingw* | cygwin* | pw32* | os2* | cegcc*)
9264 # This hack is so that the source file can tell whether it is being
9265 # built for inclusion in a dll (and should export symbols for example).
9266 lt_prog_compiler_pic='-DDLL_EXPORT'
9267 ;;
9268
9269 hpux9* | hpux10* | hpux11*)
9270 lt_prog_compiler_wl='-Wl,'
9271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9272 # not for PA HP-UX.
9273 case $host_cpu in
9274 hppa*64*|ia64*)
9275 # +Z the default
9276 ;;
9277 *)
9278 lt_prog_compiler_pic='+Z'
9279 ;;
9280 esac
9281 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9282 lt_prog_compiler_static='${wl}-a ${wl}archive'
9283 ;;
9284
9285 irix5* | irix6* | nonstopux*)
9286 lt_prog_compiler_wl='-Wl,'
9287 # PIC (with -KPIC) is the default.
9288 lt_prog_compiler_static='-non_shared'
9289 ;;
9290
9291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9292 case $cc_basename in
9293 # old Intel for x86_64 which still supported -KPIC.
9294 ecc*)
9295 lt_prog_compiler_wl='-Wl,'
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-static'
9298 ;;
9299 # icc used to be incompatible with GCC.
9300 # ICC 10 doesn't accept -KPIC any more.
9301 icc* | ifort*)
9302 lt_prog_compiler_wl='-Wl,'
9303 lt_prog_compiler_pic='-fPIC'
9304 lt_prog_compiler_static='-static'
9305 ;;
9306 # Lahey Fortran 8.1.
9307 lf95*)
9308 lt_prog_compiler_wl='-Wl,'
9309 lt_prog_compiler_pic='--shared'
9310 lt_prog_compiler_static='--static'
9311 ;;
9312 nagfor*)
9313 # NAG Fortran compiler
9314 lt_prog_compiler_wl='-Wl,-Wl,,'
9315 lt_prog_compiler_pic='-PIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 ;;
9318 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9319 # Portland Group compilers (*not* the Pentium gcc compiler,
9320 # which looks to be a dead project)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_pic='-fpic'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325 ccc*)
9326 lt_prog_compiler_wl='-Wl,'
9327 # All Alpha code is PIC.
9328 lt_prog_compiler_static='-non_shared'
9329 ;;
9330 xl* | bgxl* | bgf* | mpixl*)
9331 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9332 lt_prog_compiler_wl='-Wl,'
9333 lt_prog_compiler_pic='-qpic'
9334 lt_prog_compiler_static='-qstaticlink'
9335 ;;
9336 *)
9337 case `$CC -V 2>&1 | sed 5q` in
9338 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9339 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9340 lt_prog_compiler_pic='-KPIC'
9341 lt_prog_compiler_static='-Bstatic'
9342 lt_prog_compiler_wl=''
9343 ;;
9344 *Sun\ F* | *Sun*Fortran*)
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-Bstatic'
9347 lt_prog_compiler_wl='-Qoption ld '
9348 ;;
9349 *Sun\ C*)
9350 # Sun C 5.9
9351 lt_prog_compiler_pic='-KPIC'
9352 lt_prog_compiler_static='-Bstatic'
9353 lt_prog_compiler_wl='-Wl,'
9354 ;;
9355 *Intel*\ [CF]*Compiler*)
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_pic='-fPIC'
9358 lt_prog_compiler_static='-static'
9359 ;;
9360 *Portland\ Group*)
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-fpic'
9363 lt_prog_compiler_static='-Bstatic'
9364 ;;
9365 esac
9366 ;;
9367 esac
9368 ;;
9369
9370 newsos6)
9371 lt_prog_compiler_pic='-KPIC'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9374
9375 *nto* | *qnx*)
9376 # QNX uses GNU C++, but need to define -shared option too, otherwise
9377 # it will coredump.
9378 lt_prog_compiler_pic='-fPIC -shared'
9379 ;;
9380
9381 osf3* | osf4* | osf5*)
9382 lt_prog_compiler_wl='-Wl,'
9383 # All OSF/1 code is PIC.
9384 lt_prog_compiler_static='-non_shared'
9385 ;;
9386
9387 rdos*)
9388 lt_prog_compiler_static='-non_shared'
9389 ;;
9390
9391 solaris*)
9392 lt_prog_compiler_pic='-KPIC'
9393 lt_prog_compiler_static='-Bstatic'
9394 case $cc_basename in
9395 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9396 lt_prog_compiler_wl='-Qoption ld ';;
9397 *)
9398 lt_prog_compiler_wl='-Wl,';;
9399 esac
9400 ;;
9401
9402 sunos4*)
9403 lt_prog_compiler_wl='-Qoption ld '
9404 lt_prog_compiler_pic='-PIC'
9405 lt_prog_compiler_static='-Bstatic'
9406 ;;
9407
9408 sysv4 | sysv4.2uw2* | sysv4.3*)
9409 lt_prog_compiler_wl='-Wl,'
9410 lt_prog_compiler_pic='-KPIC'
9411 lt_prog_compiler_static='-Bstatic'
9412 ;;
9413
9414 sysv4*MP*)
9415 if test -d /usr/nec ;then
9416 lt_prog_compiler_pic='-Kconform_pic'
9417 lt_prog_compiler_static='-Bstatic'
9418 fi
9419 ;;
9420
9421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9422 lt_prog_compiler_wl='-Wl,'
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 ;;
9426
9427 unicos*)
9428 lt_prog_compiler_wl='-Wl,'
9429 lt_prog_compiler_can_build_shared=no
9430 ;;
9431
9432 uts4*)
9433 lt_prog_compiler_pic='-pic'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436
9437 *)
9438 lt_prog_compiler_can_build_shared=no
9439 ;;
9440 esac
9441 fi
9442
9443case $host_os in
9444 # For platforms which do not support PIC, -DPIC is meaningless:
9445 *djgpp*)
9446 lt_prog_compiler_pic=
9447 ;;
9448 *)
9449 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9450 ;;
9451esac
9452
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9454$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9455if ${lt_cv_prog_compiler_pic+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457else
9458 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9461$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9462lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9463
9464#
9465# Check to make sure the PIC flag actually works.
9466#
9467if test -n "$lt_prog_compiler_pic"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9469$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9470if ${lt_cv_prog_compiler_pic_works+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472else
9473 lt_cv_prog_compiler_pic_works=no
9474 ac_outfile=conftest.$ac_objext
9475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9477 # Insert the option either (1) after the last *FLAGS variable, or
9478 # (2) before a word containing "conftest.", or (3) at the end.
9479 # Note that $ac_compile itself does not contain backslashes and begins
9480 # with a dollar sign (not a hyphen), so the echo should work correctly.
9481 # The option is referenced via a variable to avoid confusing sed.
9482 lt_compile=`echo "$ac_compile" | $SED \
9483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485 -e 's:$: $lt_compiler_flag:'`
9486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9487 (eval "$lt_compile" 2>conftest.err)
9488 ac_status=$?
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 if (exit $ac_status) && test -s "$ac_outfile"; then
9492 # The compiler can only warn and ignore the option if not recognized
9493 # So say no if there are warnings other than the usual output.
9494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9497 lt_cv_prog_compiler_pic_works=yes
9498 fi
9499 fi
9500 $RM -r conftest*
9501
9502fi
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9504$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9505
9506if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9507 case $lt_prog_compiler_pic in
9508 "" | " "*) ;;
9509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9510 esac
9511else
9512 lt_prog_compiler_pic=
9513 lt_prog_compiler_can_build_shared=no
9514fi
9515
9516fi
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528#
9529# Check to make sure the static flag actually works.
9530#
9531wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9533$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9534if ${lt_cv_prog_compiler_static_works+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536else
9537 lt_cv_prog_compiler_static_works=no
9538 save_LDFLAGS="$LDFLAGS"
9539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9542 # The linker can only warn and ignore the option if not recognized
9543 # So say no if there are warnings
9544 if test -s conftest.err; then
9545 # Append any errors to the config.log.
9546 cat conftest.err 1>&5
9547 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9549 if diff conftest.exp conftest.er2 >/dev/null; then
9550 lt_cv_prog_compiler_static_works=yes
9551 fi
9552 else
9553 lt_cv_prog_compiler_static_works=yes
9554 fi
9555 fi
9556 $RM -r conftest*
9557 LDFLAGS="$save_LDFLAGS"
9558
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9561$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9562
9563if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9564 :
9565else
9566 lt_prog_compiler_static=
9567fi
9568
9569
9570
9571
9572
9573
9574
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9577if ${lt_cv_prog_compiler_c_o+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579else
9580 lt_cv_prog_compiler_c_o=no
9581 $RM -r conftest 2>/dev/null
9582 mkdir conftest
9583 cd conftest
9584 mkdir out
9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9586
9587 lt_compiler_flag="-o out/conftest2.$ac_objext"
9588 # Insert the option either (1) after the last *FLAGS variable, or
9589 # (2) before a word containing "conftest.", or (3) at the end.
9590 # Note that $ac_compile itself does not contain backslashes and begins
9591 # with a dollar sign (not a hyphen), so the echo should work correctly.
9592 lt_compile=`echo "$ac_compile" | $SED \
9593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9595 -e 's:$: $lt_compiler_flag:'`
9596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9597 (eval "$lt_compile" 2>out/conftest.err)
9598 ac_status=$?
9599 cat out/conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9602 then
9603 # The compiler can only warn and ignore the option if not recognized
9604 # So say no if there are warnings
9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler_c_o=yes
9609 fi
9610 fi
9611 chmod u+w . 2>&5
9612 $RM -r conftest*
9613 # SGI C++ compiler will create directory out/ii_files/ for
9614 # template instantiation
9615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9616 $RM out/* && rmdir out
9617 cd ..
9618 $RM -r conftest
9619 $RM -r conftest*
9620
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9623$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9624
9625
9626
9627
9628
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9631$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9632if ${lt_cv_prog_compiler_c_o+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634else
9635 lt_cv_prog_compiler_c_o=no
9636 $RM -r conftest 2>/dev/null
9637 mkdir conftest
9638 cd conftest
9639 mkdir out
9640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9641
9642 lt_compiler_flag="-o out/conftest2.$ac_objext"
9643 # Insert the option either (1) after the last *FLAGS variable, or
9644 # (2) before a word containing "conftest.", or (3) at the end.
9645 # Note that $ac_compile itself does not contain backslashes and begins
9646 # with a dollar sign (not a hyphen), so the echo should work correctly.
9647 lt_compile=`echo "$ac_compile" | $SED \
9648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9650 -e 's:$: $lt_compiler_flag:'`
9651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9652 (eval "$lt_compile" 2>out/conftest.err)
9653 ac_status=$?
9654 cat out/conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9657 then
9658 # The compiler can only warn and ignore the option if not recognized
9659 # So say no if there are warnings
9660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_c_o=yes
9664 fi
9665 fi
9666 chmod u+w . 2>&5
9667 $RM -r conftest*
9668 # SGI C++ compiler will create directory out/ii_files/ for
9669 # template instantiation
9670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9671 $RM out/* && rmdir out
9672 cd ..
9673 $RM -r conftest
9674 $RM -r conftest*
9675
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9678$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9679
9680
9681
9682
9683hard_links="nottested"
9684if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9685 # do not overwrite the value of need_locks provided by the user
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9687$as_echo_n "checking if we can lock with hard links... " >&6; }
9688 hard_links=yes
9689 $RM -r conftest*
9690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9691 touch conftest.a
9692 ln conftest.a conftest.b 2>&5 || hard_links=no
9693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9695$as_echo "$hard_links" >&6; }
9696 if test "$hard_links" = no; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9698$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9699 need_locks=warn
9700 fi
9701else
9702 need_locks=no
9703fi
9704
9705
9706
9707
9708
9709
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9711$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9712
9713 runpath_var=
9714 allow_undefined_flag=
9715 always_export_symbols=no
9716 archive_cmds=
9717 archive_expsym_cmds=
9718 compiler_needs_object=no
9719 enable_shared_with_static_runtimes=no
9720 export_dynamic_flag_spec=
9721 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9722 hardcode_automatic=no
9723 hardcode_direct=no
9724 hardcode_direct_absolute=no
9725 hardcode_libdir_flag_spec=
9726 hardcode_libdir_separator=
9727 hardcode_minus_L=no
9728 hardcode_shlibpath_var=unsupported
9729 inherit_rpath=no
9730 link_all_deplibs=unknown
9731 module_cmds=
9732 module_expsym_cmds=
9733 old_archive_from_new_cmds=
9734 old_archive_from_expsyms_cmds=
9735 thread_safe_flag_spec=
9736 whole_archive_flag_spec=
9737 # include_expsyms should be a list of space-separated symbols to be *always*
9738 # included in the symbol list
9739 include_expsyms=
9740 # exclude_expsyms can be an extended regexp of symbols to exclude
9741 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9742 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9743 # as well as any symbol that contains `d'.
9744 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9746 # platforms (ab)use it in PIC code, but their linkers get confused if
9747 # the symbol is explicitly referenced. Since portable code cannot
9748 # rely on this symbol name, it's probably fine to never include it in
9749 # preloaded symbol tables.
9750 # Exclude shared library initialization/finalization symbols.
9751 extract_expsyms_cmds=
9752
9753 case $host_os in
9754 cygwin* | mingw* | pw32* | cegcc*)
9755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9756 # When not using gcc, we currently assume that we are using
9757 # Microsoft Visual C++.
9758 if test "$GCC" != yes; then
9759 with_gnu_ld=no
9760 fi
9761 ;;
9762 interix*)
9763 # we just hope/assume this is gcc and not c89 (= MSVC++)
9764 with_gnu_ld=yes
9765 ;;
9766 openbsd*)
9767 with_gnu_ld=no
9768 ;;
9769 esac
9770
9771 ld_shlibs=yes
9772
9773 # On some targets, GNU ld is compatible enough with the native linker
9774 # that we're better off using the native interface for both.
9775 lt_use_gnu_ld_interface=no
9776 if test "$with_gnu_ld" = yes; then
9777 case $host_os in
9778 aix*)
9779 # The AIX port of GNU ld has always aspired to compatibility
9780 # with the native linker. However, as the warning in the GNU ld
9781 # block says, versions before 2.19.5* couldn't really create working
9782 # shared libraries, regardless of the interface used.
9783 case `$LD -v 2>&1` in
9784 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9785 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9786 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9787 *)
9788 lt_use_gnu_ld_interface=yes
9789 ;;
9790 esac
9791 ;;
9792 *)
9793 lt_use_gnu_ld_interface=yes
9794 ;;
9795 esac
9796 fi
9797
9798 if test "$lt_use_gnu_ld_interface" = yes; then
9799 # If archive_cmds runs LD, not CC, wlarc should be empty
9800 wlarc='${wl}'
9801
9802 # Set some defaults for GNU ld with shared library support. These
9803 # are reset later if shared libraries are not supported. Putting them
9804 # here allows them to be overridden if necessary.
9805 runpath_var=LD_RUN_PATH
9806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9807 export_dynamic_flag_spec='${wl}--export-dynamic'
9808 # ancient GNU ld didn't support --whole-archive et. al.
9809 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9811 else
9812 whole_archive_flag_spec=
9813 fi
9814 supports_anon_versioning=no
9815 case `$LD -v 2>&1` in
9816 *GNU\ gold*) supports_anon_versioning=yes ;;
9817 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9818 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9819 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9820 *\ 2.11.*) ;; # other 2.11 versions
9821 *) supports_anon_versioning=yes ;;
9822 esac
9823
9824 # See if GNU ld supports shared libraries.
9825 case $host_os in
9826 aix[3-9]*)
9827 # On AIX/PPC, the GNU linker is very broken
9828 if test "$host_cpu" != ia64; then
9829 ld_shlibs=no
9830 cat <<_LT_EOF 1>&2
9831
9832*** Warning: the GNU linker, at least up to release 2.19, is reported
9833*** to be unable to reliably create shared libraries on AIX.
9834*** Therefore, libtool is disabling shared libraries support. If you
9835*** really care for shared libraries, you may want to install binutils
9836*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9837*** You will then need to restart the configuration process.
9838
9839_LT_EOF
9840 fi
9841 ;;
9842
9843 amigaos*)
9844 case $host_cpu in
9845 powerpc)
9846 # see comment about AmigaOS4 .so support
9847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9848 archive_expsym_cmds=''
9849 ;;
9850 m68k)
9851 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)'
9852 hardcode_libdir_flag_spec='-L$libdir'
9853 hardcode_minus_L=yes
9854 ;;
9855 esac
9856 ;;
9857
9858 beos*)
9859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9860 allow_undefined_flag=unsupported
9861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9862 # support --undefined. This deserves some investigation. FIXME
9863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864 else
9865 ld_shlibs=no
9866 fi
9867 ;;
9868
9869 cygwin* | mingw* | pw32* | cegcc*)
9870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9871 # as there is no search path for DLLs.
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 export_dynamic_flag_spec='${wl}--export-all-symbols'
9874 allow_undefined_flag=unsupported
9875 always_export_symbols=no
9876 enable_shared_with_static_runtimes=yes
9877 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'
9878 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9879
9880 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9882 # If the export-symbols file already is a .def file (1st line
9883 # is EXPORTS), use it as is; otherwise, prepend...
9884 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9885 cp $export_symbols $output_objdir/$soname.def;
9886 else
9887 echo EXPORTS > $output_objdir/$soname.def;
9888 cat $export_symbols >> $output_objdir/$soname.def;
9889 fi~
9890 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9891 else
9892 ld_shlibs=no
9893 fi
9894 ;;
9895
9896 haiku*)
9897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9898 link_all_deplibs=yes
9899 ;;
9900
9901 interix[3-9]*)
9902 hardcode_direct=no
9903 hardcode_shlibpath_var=no
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9905 export_dynamic_flag_spec='${wl}-E'
9906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9907 # Instead, shared libraries are loaded at an image base (0x10000000 by
9908 # default) and relocated if they conflict, which is a slow very memory
9909 # consuming and fragmenting process. To avoid this, we pick a random,
9910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9913 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'
9914 ;;
9915
9916 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9917 tmp_diet=no
9918 if test "$host_os" = linux-dietlibc; then
9919 case $cc_basename in
9920 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9921 esac
9922 fi
9923 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9924 && test "$tmp_diet" = no
9925 then
9926 tmp_addflag=' $pic_flag'
9927 tmp_sharedflag='-shared'
9928 case $cc_basename,$host_cpu in
9929 pgcc*) # Portland Group C compiler
9930 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'
9931 tmp_addflag=' $pic_flag'
9932 ;;
9933 pgf77* | pgf90* | pgf95* | pgfortran*)
9934 # Portland Group f77 and f90 compilers
9935 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'
9936 tmp_addflag=' $pic_flag -Mnomain' ;;
9937 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9938 tmp_addflag=' -i_dynamic' ;;
9939 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9940 tmp_addflag=' -i_dynamic -nofor_main' ;;
9941 ifc* | ifort*) # Intel Fortran compiler
9942 tmp_addflag=' -nofor_main' ;;
9943 lf95*) # Lahey Fortran 8.1
9944 whole_archive_flag_spec=
9945 tmp_sharedflag='--shared' ;;
9946 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9947 tmp_sharedflag='-qmkshrobj'
9948 tmp_addflag= ;;
9949 nvcc*) # Cuda Compiler Driver 2.2
9950 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'
9951 compiler_needs_object=yes
9952 ;;
9953 esac
9954 case `$CC -V 2>&1 | sed 5q` in
9955 *Sun\ C*) # Sun C 5.9
9956 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'
9957 compiler_needs_object=yes
9958 tmp_sharedflag='-G' ;;
9959 *Sun\ F*) # Sun Fortran 8.3
9960 tmp_sharedflag='-G' ;;
9961 esac
9962 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963
9964 if test "x$supports_anon_versioning" = xyes; then
9965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9967 echo "local: *; };" >> $output_objdir/$libname.ver~
9968 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9969 fi
9970
9971 case $cc_basename in
9972 xlf* | bgf* | bgxlf* | mpixlf*)
9973 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9974 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9977 if test "x$supports_anon_versioning" = xyes; then
9978 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9980 echo "local: *; };" >> $output_objdir/$libname.ver~
9981 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9982 fi
9983 ;;
9984 esac
9985 else
9986 ld_shlibs=no
9987 fi
9988 ;;
9989
9990 netbsd*)
9991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9992 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9993 wlarc=
9994 else
9995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9996 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9997 fi
9998 ;;
9999
10000 solaris*)
10001 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10002 ld_shlibs=no
10003 cat <<_LT_EOF 1>&2
10004
10005*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10006*** create shared libraries on Solaris systems. Therefore, libtool
10007*** is disabling shared libraries support. We urge you to upgrade GNU
10008*** binutils to release 2.9.1 or newer. Another option is to modify
10009*** your PATH or compiler configuration so that the native linker is
10010*** used, and then restart.
10011
10012_LT_EOF
10013 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10015 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10016 else
10017 ld_shlibs=no
10018 fi
10019 ;;
10020
10021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10022 case `$LD -v 2>&1` in
10023 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10024 ld_shlibs=no
10025 cat <<_LT_EOF 1>&2
10026
10027*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10028*** reliably create shared libraries on SCO systems. Therefore, libtool
10029*** is disabling shared libraries support. We urge you to upgrade GNU
10030*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10031*** your PATH or compiler configuration so that the native linker is
10032*** used, and then restart.
10033
10034_LT_EOF
10035 ;;
10036 *)
10037 # For security reasons, it is highly recommended that you always
10038 # use absolute paths for naming shared libraries, and exclude the
10039 # DT_RUNPATH tag from executables and libraries. But doing so
10040 # requires that you compile everything twice, which is a pain.
10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10045 else
10046 ld_shlibs=no
10047 fi
10048 ;;
10049 esac
10050 ;;
10051
10052 sunos4*)
10053 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10054 wlarc=
10055 hardcode_direct=yes
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 *)
10060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10062 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10063 else
10064 ld_shlibs=no
10065 fi
10066 ;;
10067 esac
10068
10069 if test "$ld_shlibs" = no; then
10070 runpath_var=
10071 hardcode_libdir_flag_spec=
10072 export_dynamic_flag_spec=
10073 whole_archive_flag_spec=
10074 fi
10075 else
10076 # PORTME fill in a description of your system's linker (not GNU ld)
10077 case $host_os in
10078 aix3*)
10079 allow_undefined_flag=unsupported
10080 always_export_symbols=yes
10081 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'
10082 # Note: this linker hardcodes the directories in LIBPATH if there
10083 # are no directories specified by -L.
10084 hardcode_minus_L=yes
10085 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10086 # Neither direct hardcoding nor static linking is supported with a
10087 # broken collect2.
10088 hardcode_direct=unsupported
10089 fi
10090 ;;
10091
10092 aix[4-9]*)
10093 if test "$host_cpu" = ia64; then
10094 # On IA64, the linker does run time linking by default, so we don't
10095 # have to do anything special.
10096 aix_use_runtimelinking=no
10097 exp_sym_flag='-Bexport'
10098 no_entry_flag=""
10099 else
10100 # If we're using GNU nm, then we don't want the "-C" option.
10101 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10102 # Also, AIX nm treats weak defined symbols like other global
10103 # defined symbols, whereas GNU nm marks them as "W".
10104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10105 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10106 else
10107 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10108 fi
10109 aix_use_runtimelinking=no
10110
10111 # Test if we are trying to use run time linking or normal
10112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10113 # need to do runtime linking.
10114 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10115 for ld_flag in $LDFLAGS; do
10116 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10117 aix_use_runtimelinking=yes
10118 break
10119 fi
10120 done
10121 ;;
10122 esac
10123
10124 exp_sym_flag='-bexport'
10125 no_entry_flag='-bnoentry'
10126 fi
10127
10128 # When large executables or shared objects are built, AIX ld can
10129 # have problems creating the table of contents. If linking a library
10130 # or program results in "error TOC overflow" add -mminimal-toc to
10131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10133
10134 archive_cmds=''
10135 hardcode_direct=yes
10136 hardcode_direct_absolute=yes
10137 hardcode_libdir_separator=':'
10138 link_all_deplibs=yes
10139 file_list_spec='${wl}-f,'
10140
10141 if test "$GCC" = yes; then
10142 case $host_os in aix4.[012]|aix4.[012].*)
10143 # We only want to do this on AIX 4.2 and lower, the check
10144 # below for broken collect2 doesn't work under 4.3+
10145 collect2name=`${CC} -print-prog-name=collect2`
10146 if test -f "$collect2name" &&
10147 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10148 then
10149 # We have reworked collect2
10150 :
10151 else
10152 # We have old collect2
10153 hardcode_direct=unsupported
10154 # It fails to find uninstalled libraries when the uninstalled
10155 # path is not listed in the libpath. Setting hardcode_minus_L
10156 # to unsupported forces relinking
10157 hardcode_minus_L=yes
10158 hardcode_libdir_flag_spec='-L$libdir'
10159 hardcode_libdir_separator=
10160 fi
10161 ;;
10162 esac
10163 shared_flag='-shared'
10164 if test "$aix_use_runtimelinking" = yes; then
10165 shared_flag="$shared_flag "'${wl}-G'
10166 fi
10167 else
10168 # not using gcc
10169 if test "$host_cpu" = ia64; then
10170 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10171 # chokes on -Wl,-G. The following line is correct:
10172 shared_flag='-G'
10173 else
10174 if test "$aix_use_runtimelinking" = yes; then
10175 shared_flag='${wl}-G'
10176 else
10177 shared_flag='${wl}-bM:SRE'
10178 fi
10179 fi
10180 fi
10181
10182 export_dynamic_flag_spec='${wl}-bexpall'
10183 # It seems that -bexpall does not export symbols beginning with
10184 # underscore (_), so it is better to generate a list of symbols to export.
10185 always_export_symbols=yes
10186 if test "$aix_use_runtimelinking" = yes; then
10187 # Warning - without using the other runtime loading flags (-brtl),
10188 # -berok will link without error, but may produce a broken library.
10189 allow_undefined_flag='-berok'
10190 # Determine the default libpath from the value encoded in an
10191 # empty executable.
10192 if test "${lt_cv_aix_libpath+set}" = set; then
10193 aix_libpath=$lt_cv_aix_libpath
10194else
10195 if ${lt_cv_aix_libpath_+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197else
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h. */
10200
10201int
10202main ()
10203{
10204
10205 ;
10206 return 0;
10207}
10208_ACEOF
10209if ac_fn_c_try_link "$LINENO"; then :
10210
10211 lt_aix_libpath_sed='
10212 /Import File Strings/,/^$/ {
10213 /^0/ {
10214 s/^0 *\([^ ]*\) *$/\1/
10215 p
10216 }
10217 }'
10218 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219 # Check for a 64-bit object if we didn't find anything.
10220 if test -z "$lt_cv_aix_libpath_"; then
10221 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222 fi
10223fi
10224rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$lt_cv_aix_libpath_"; then
10227 lt_cv_aix_libpath_="/usr/lib:/lib"
10228 fi
10229
10230fi
10231
10232 aix_libpath=$lt_cv_aix_libpath_
10233fi
10234
10235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10236 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10237 else
10238 if test "$host_cpu" = ia64; then
10239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10240 allow_undefined_flag="-z nodefs"
10241 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"
10242 else
10243 # Determine the default libpath from the value encoded in an
10244 # empty executable.
10245 if test "${lt_cv_aix_libpath+set}" = set; then
10246 aix_libpath=$lt_cv_aix_libpath
10247else
10248 if ${lt_cv_aix_libpath_+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250else
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252/* end confdefs.h. */
10253
10254int
10255main ()
10256{
10257
10258 ;
10259 return 0;
10260}
10261_ACEOF
10262if ac_fn_c_try_link "$LINENO"; then :
10263
10264 lt_aix_libpath_sed='
10265 /Import File Strings/,/^$/ {
10266 /^0/ {
10267 s/^0 *\([^ ]*\) *$/\1/
10268 p
10269 }
10270 }'
10271 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10272 # Check for a 64-bit object if we didn't find anything.
10273 if test -z "$lt_cv_aix_libpath_"; then
10274 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10275 fi
10276fi
10277rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 if test -z "$lt_cv_aix_libpath_"; then
10280 lt_cv_aix_libpath_="/usr/lib:/lib"
10281 fi
10282
10283fi
10284
10285 aix_libpath=$lt_cv_aix_libpath_
10286fi
10287
10288 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10289 # Warning - without using the other run time loading flags,
10290 # -berok will link without error, but may produce a broken library.
10291 no_undefined_flag=' ${wl}-bernotok'
10292 allow_undefined_flag=' ${wl}-berok'
10293 if test "$with_gnu_ld" = yes; then
10294 # We only use this code for GNU lds that support --whole-archive.
10295 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10296 else
10297 # Exported symbols can be pulled into shared objects from archives
10298 whole_archive_flag_spec='$convenience'
10299 fi
10300 archive_cmds_need_lc=yes
10301 # This is similar to how AIX traditionally builds its shared libraries.
10302 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10303 fi
10304 fi
10305 ;;
10306
10307 amigaos*)
10308 case $host_cpu in
10309 powerpc)
10310 # see comment about AmigaOS4 .so support
10311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10312 archive_expsym_cmds=''
10313 ;;
10314 m68k)
10315 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)'
10316 hardcode_libdir_flag_spec='-L$libdir'
10317 hardcode_minus_L=yes
10318 ;;
10319 esac
10320 ;;
10321
10322 bsdi[45]*)
10323 export_dynamic_flag_spec=-rdynamic
10324 ;;
10325
10326 cygwin* | mingw* | pw32* | cegcc*)
10327 # When not using gcc, we currently assume that we are using
10328 # Microsoft Visual C++.
10329 # hardcode_libdir_flag_spec is actually meaningless, as there is
10330 # no search path for DLLs.
10331 case $cc_basename in
10332 cl*)
10333 # Native MSVC
10334 hardcode_libdir_flag_spec=' '
10335 allow_undefined_flag=unsupported
10336 always_export_symbols=yes
10337 file_list_spec='@'
10338 # Tell ltmain to make .lib files, not .a files.
10339 libext=lib
10340 # Tell ltmain to make .dll files, not .so files.
10341 shrext_cmds=".dll"
10342 # FIXME: Setting linknames here is a bad hack.
10343 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10345 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10346 else
10347 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10348 fi~
10349 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10350 linknames='
10351 # The linker will not automatically build a static lib if we build a DLL.
10352 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10353 enable_shared_with_static_runtimes=yes
10354 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10356 # Don't use ranlib
10357 old_postinstall_cmds='chmod 644 $oldlib'
10358 postlink_cmds='lt_outputfile="@OUTPUT@"~
10359 lt_tool_outputfile="@TOOL_OUTPUT@"~
10360 case $lt_outputfile in
10361 *.exe|*.EXE) ;;
10362 *)
10363 lt_outputfile="$lt_outputfile.exe"
10364 lt_tool_outputfile="$lt_tool_outputfile.exe"
10365 ;;
10366 esac~
10367 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10368 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10369 $RM "$lt_outputfile.manifest";
10370 fi'
10371 ;;
10372 *)
10373 # Assume MSVC wrapper
10374 hardcode_libdir_flag_spec=' '
10375 allow_undefined_flag=unsupported
10376 # Tell ltmain to make .lib files, not .a files.
10377 libext=lib
10378 # Tell ltmain to make .dll files, not .so files.
10379 shrext_cmds=".dll"
10380 # FIXME: Setting linknames here is a bad hack.
10381 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10382 # The linker will automatically build a .lib file if we build a DLL.
10383 old_archive_from_new_cmds='true'
10384 # FIXME: Should let the user specify the lib program.
10385 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10386 enable_shared_with_static_runtimes=yes
10387 ;;
10388 esac
10389 ;;
10390
10391 darwin* | rhapsody*)
10392
10393
10394 archive_cmds_need_lc=no
10395 hardcode_direct=no
10396 hardcode_automatic=yes
10397 hardcode_shlibpath_var=unsupported
10398 if test "$lt_cv_ld_force_load" = "yes"; then
10399 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\"`'
10400
10401 else
10402 whole_archive_flag_spec=''
10403 fi
10404 link_all_deplibs=yes
10405 allow_undefined_flag="$_lt_dar_allow_undefined"
10406 case $cc_basename in
10407 ifort*) _lt_dar_can_shared=yes ;;
10408 *) _lt_dar_can_shared=$GCC ;;
10409 esac
10410 if test "$_lt_dar_can_shared" = "yes"; then
10411 output_verbose_link_cmd=func_echo_all
10412 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10413 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10414 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}"
10415 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}"
10416
10417 else
10418 ld_shlibs=no
10419 fi
10420
10421 ;;
10422
10423 dgux*)
10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_shlibpath_var=no
10427 ;;
10428
10429 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10430 # support. Future versions do this automatically, but an explicit c++rt0.o
10431 # does not break anything, and helps significantly (at the cost of a little
10432 # extra space).
10433 freebsd2.2*)
10434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10435 hardcode_libdir_flag_spec='-R$libdir'
10436 hardcode_direct=yes
10437 hardcode_shlibpath_var=no
10438 ;;
10439
10440 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10441 freebsd2.*)
10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10443 hardcode_direct=yes
10444 hardcode_minus_L=yes
10445 hardcode_shlibpath_var=no
10446 ;;
10447
10448 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10449 freebsd* | dragonfly*)
10450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10451 hardcode_libdir_flag_spec='-R$libdir'
10452 hardcode_direct=yes
10453 hardcode_shlibpath_var=no
10454 ;;
10455
10456 hpux9*)
10457 if test "$GCC" = yes; then
10458 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10459 else
10460 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10461 fi
10462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10463 hardcode_libdir_separator=:
10464 hardcode_direct=yes
10465
10466 # hardcode_minus_L: Not really in the search PATH,
10467 # but as the default location of the library.
10468 hardcode_minus_L=yes
10469 export_dynamic_flag_spec='${wl}-E'
10470 ;;
10471
10472 hpux10*)
10473 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10474 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10475 else
10476 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10477 fi
10478 if test "$with_gnu_ld" = no; then
10479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10480 hardcode_libdir_separator=:
10481 hardcode_direct=yes
10482 hardcode_direct_absolute=yes
10483 export_dynamic_flag_spec='${wl}-E'
10484 # hardcode_minus_L: Not really in the search PATH,
10485 # but as the default location of the library.
10486 hardcode_minus_L=yes
10487 fi
10488 ;;
10489
10490 hpux11*)
10491 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10492 case $host_cpu in
10493 hppa*64*)
10494 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10495 ;;
10496 ia64*)
10497 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10498 ;;
10499 *)
10500 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10501 ;;
10502 esac
10503 else
10504 case $host_cpu in
10505 hppa*64*)
10506 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 ;;
10508 ia64*)
10509 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10510 ;;
10511 *)
10512
10513 # Older versions of the 11.00 compiler do not understand -b yet
10514 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10516$as_echo_n "checking if $CC understands -b... " >&6; }
10517if ${lt_cv_prog_compiler__b+:} false; then :
10518 $as_echo_n "(cached) " >&6
10519else
10520 lt_cv_prog_compiler__b=no
10521 save_LDFLAGS="$LDFLAGS"
10522 LDFLAGS="$LDFLAGS -b"
10523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10525 # The linker can only warn and ignore the option if not recognized
10526 # So say no if there are warnings
10527 if test -s conftest.err; then
10528 # Append any errors to the config.log.
10529 cat conftest.err 1>&5
10530 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10532 if diff conftest.exp conftest.er2 >/dev/null; then
10533 lt_cv_prog_compiler__b=yes
10534 fi
10535 else
10536 lt_cv_prog_compiler__b=yes
10537 fi
10538 fi
10539 $RM -r conftest*
10540 LDFLAGS="$save_LDFLAGS"
10541
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10544$as_echo "$lt_cv_prog_compiler__b" >&6; }
10545
10546if test x"$lt_cv_prog_compiler__b" = xyes; then
10547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10548else
10549 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10550fi
10551
10552 ;;
10553 esac
10554 fi
10555 if test "$with_gnu_ld" = no; then
10556 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10557 hardcode_libdir_separator=:
10558
10559 case $host_cpu in
10560 hppa*64*|ia64*)
10561 hardcode_direct=no
10562 hardcode_shlibpath_var=no
10563 ;;
10564 *)
10565 hardcode_direct=yes
10566 hardcode_direct_absolute=yes
10567 export_dynamic_flag_spec='${wl}-E'
10568
10569 # hardcode_minus_L: Not really in the search PATH,
10570 # but as the default location of the library.
10571 hardcode_minus_L=yes
10572 ;;
10573 esac
10574 fi
10575 ;;
10576
10577 irix5* | irix6* | nonstopux*)
10578 if test "$GCC" = yes; then
10579 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'
10580 # Try to use the -exported_symbol ld option, if it does not
10581 # work, assume that -exports_file does not work either and
10582 # implicitly export all symbols.
10583 # This should be the same for all languages, so no per-tag cache variable.
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10585$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10586if ${lt_cv_irix_exported_symbol+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588else
10589 save_LDFLAGS="$LDFLAGS"
10590 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592/* end confdefs.h. */
10593int foo (void) { return 0; }
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596 lt_cv_irix_exported_symbol=yes
10597else
10598 lt_cv_irix_exported_symbol=no
10599fi
10600rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LDFLAGS="$save_LDFLAGS"
10603fi
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10605$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10606 if test "$lt_cv_irix_exported_symbol" = yes; then
10607 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'
10608 fi
10609 else
10610 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'
10611 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'
10612 fi
10613 archive_cmds_need_lc='no'
10614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615 hardcode_libdir_separator=:
10616 inherit_rpath=yes
10617 link_all_deplibs=yes
10618 ;;
10619
10620 netbsd*)
10621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10623 else
10624 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10625 fi
10626 hardcode_libdir_flag_spec='-R$libdir'
10627 hardcode_direct=yes
10628 hardcode_shlibpath_var=no
10629 ;;
10630
10631 newsos6)
10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_direct=yes
10634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10635 hardcode_libdir_separator=:
10636 hardcode_shlibpath_var=no
10637 ;;
10638
10639 *nto* | *qnx*)
10640 ;;
10641
10642 openbsd*)
10643 if test -f /usr/libexec/ld.so; then
10644 hardcode_direct=yes
10645 hardcode_shlibpath_var=no
10646 hardcode_direct_absolute=yes
10647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10650 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10651 export_dynamic_flag_spec='${wl}-E'
10652 else
10653 case $host_os in
10654 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_libdir_flag_spec='-R$libdir'
10657 ;;
10658 *)
10659 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10661 ;;
10662 esac
10663 fi
10664 else
10665 ld_shlibs=no
10666 fi
10667 ;;
10668
10669 os2*)
10670 hardcode_libdir_flag_spec='-L$libdir'
10671 hardcode_minus_L=yes
10672 allow_undefined_flag=unsupported
10673 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10674 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10675 ;;
10676
10677 osf3*)
10678 if test "$GCC" = yes; then
10679 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10680 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'
10681 else
10682 allow_undefined_flag=' -expect_unresolved \*'
10683 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'
10684 fi
10685 archive_cmds_need_lc='no'
10686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10687 hardcode_libdir_separator=:
10688 ;;
10689
10690 osf4* | osf5*) # as osf3* with the addition of -msym flag
10691 if test "$GCC" = yes; then
10692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10693 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'
10694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10695 else
10696 allow_undefined_flag=' -expect_unresolved \*'
10697 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'
10698 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~
10699 $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'
10700
10701 # Both c and cxx compiler support -rpath directly
10702 hardcode_libdir_flag_spec='-rpath $libdir'
10703 fi
10704 archive_cmds_need_lc='no'
10705 hardcode_libdir_separator=:
10706 ;;
10707
10708 solaris*)
10709 no_undefined_flag=' -z defs'
10710 if test "$GCC" = yes; then
10711 wlarc='${wl}'
10712 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10714 $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'
10715 else
10716 case `$CC -V 2>&1` in
10717 *"Compilers 5.0"*)
10718 wlarc=''
10719 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10721 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10722 ;;
10723 *)
10724 wlarc='${wl}'
10725 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10727 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10728 ;;
10729 esac
10730 fi
10731 hardcode_libdir_flag_spec='-R$libdir'
10732 hardcode_shlibpath_var=no
10733 case $host_os in
10734 solaris2.[0-5] | solaris2.[0-5].*) ;;
10735 *)
10736 # The compiler driver will combine and reorder linker options,
10737 # but understands `-z linker_flag'. GCC discards it without `$wl',
10738 # but is careful enough not to reorder.
10739 # Supported since Solaris 2.6 (maybe 2.5.1?)
10740 if test "$GCC" = yes; then
10741 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10742 else
10743 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10744 fi
10745 ;;
10746 esac
10747 link_all_deplibs=yes
10748 ;;
10749
10750 sunos4*)
10751 if test "x$host_vendor" = xsequent; then
10752 # Use $CC to link under sequent, because it throws in some extra .o
10753 # files that make .init and .fini sections work.
10754 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10755 else
10756 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10757 fi
10758 hardcode_libdir_flag_spec='-L$libdir'
10759 hardcode_direct=yes
10760 hardcode_minus_L=yes
10761 hardcode_shlibpath_var=no
10762 ;;
10763
10764 sysv4)
10765 case $host_vendor in
10766 sni)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes # is this really true???
10769 ;;
10770 siemens)
10771 ## LD is ld it makes a PLAMLIB
10772 ## CC just makes a GrossModule.
10773 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10774 reload_cmds='$CC -r -o $output$reload_objs'
10775 hardcode_direct=no
10776 ;;
10777 motorola)
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10780 ;;
10781 esac
10782 runpath_var='LD_RUN_PATH'
10783 hardcode_shlibpath_var=no
10784 ;;
10785
10786 sysv4.3*)
10787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10788 hardcode_shlibpath_var=no
10789 export_dynamic_flag_spec='-Bexport'
10790 ;;
10791
10792 sysv4*MP*)
10793 if test -d /usr/nec; then
10794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795 hardcode_shlibpath_var=no
10796 runpath_var=LD_RUN_PATH
10797 hardcode_runpath_var=yes
10798 ld_shlibs=yes
10799 fi
10800 ;;
10801
10802 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10803 no_undefined_flag='${wl}-z,text'
10804 archive_cmds_need_lc=no
10805 hardcode_shlibpath_var=no
10806 runpath_var='LD_RUN_PATH'
10807
10808 if test "$GCC" = yes; then
10809 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 else
10812 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 fi
10815 ;;
10816
10817 sysv5* | sco3.2v5* | sco5v6*)
10818 # Note: We can NOT use -z defs as we might desire, because we do not
10819 # link with -lc, and that would cause any symbols used from libc to
10820 # always be unresolved, which means just about no library would
10821 # ever link correctly. If we're not using GNU ld we use -z text
10822 # though, which does catch some bad symbols but isn't as heavy-handed
10823 # as -z defs.
10824 no_undefined_flag='${wl}-z,text'
10825 allow_undefined_flag='${wl}-z,nodefs'
10826 archive_cmds_need_lc=no
10827 hardcode_shlibpath_var=no
10828 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10829 hardcode_libdir_separator=':'
10830 link_all_deplibs=yes
10831 export_dynamic_flag_spec='${wl}-Bexport'
10832 runpath_var='LD_RUN_PATH'
10833
10834 if test "$GCC" = yes; then
10835 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10837 else
10838 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 fi
10841 ;;
10842
10843 uts4*)
10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10845 hardcode_libdir_flag_spec='-L$libdir'
10846 hardcode_shlibpath_var=no
10847 ;;
10848
10849 *)
10850 ld_shlibs=no
10851 ;;
10852 esac
10853
10854 if test x$host_vendor = xsni; then
10855 case $host in
10856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10857 export_dynamic_flag_spec='${wl}-Blargedynsym'
10858 ;;
10859 esac
10860 fi
10861 fi
10862
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10864$as_echo "$ld_shlibs" >&6; }
10865test "$ld_shlibs" = no && can_build_shared=no
10866
10867with_gnu_ld=$with_gnu_ld
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883#
10884# Do we need to explicitly link libc?
10885#
10886case "x$archive_cmds_need_lc" in
10887x|xyes)
10888 # Assume -lc should be added
10889 archive_cmds_need_lc=yes
10890
10891 if test "$enable_shared" = yes && test "$GCC" = yes; then
10892 case $archive_cmds in
10893 *'~'*)
10894 # FIXME: we may have to deal with multi-command sequences.
10895 ;;
10896 '$CC '*)
10897 # Test whether the compiler implicitly links with -lc since on some
10898 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10899 # to ld, don't add -lc before -lgcc.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10901$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10902if ${lt_cv_archive_cmds_need_lc+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904else
10905 $RM -r conftest*
10906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10907
10908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10909 (eval $ac_compile) 2>&5
10910 ac_status=$?
10911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10912 test $ac_status = 0; } 2>conftest.err; then
10913 soname=conftest
10914 lib=conftest
10915 libobjs=conftest.$ac_objext
10916 deplibs=
10917 wl=$lt_prog_compiler_wl
10918 pic_flag=$lt_prog_compiler_pic
10919 compiler_flags=-v
10920 linker_flags=-v
10921 verstring=
10922 output_objdir=.
10923 libname=conftest
10924 lt_save_allow_undefined_flag=$allow_undefined_flag
10925 allow_undefined_flag=
10926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10927 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10928 ac_status=$?
10929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10930 test $ac_status = 0; }
10931 then
10932 lt_cv_archive_cmds_need_lc=no
10933 else
10934 lt_cv_archive_cmds_need_lc=yes
10935 fi
10936 allow_undefined_flag=$lt_save_allow_undefined_flag
10937 else
10938 cat conftest.err 1>&5
10939 fi
10940 $RM -r conftest*
10941
10942fi
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10944$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10945 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10946 ;;
10947 esac
10948 fi
10949 ;;
10950esac
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11104$as_echo_n "checking dynamic linker characteristics... " >&6; }
11105
11106if test "$GCC" = yes; then
11107 case $host_os in
11108 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11109 *) lt_awk_arg="/^libraries:/" ;;
11110 esac
11111 case $host_os in
11112 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11113 *) lt_sed_strip_eq="s,=/,/,g" ;;
11114 esac
11115 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11116 case $lt_search_path_spec in
11117 *\;*)
11118 # if the path contains ";" then we assume it to be the separator
11119 # otherwise default to the standard path separator (i.e. ":") - it is
11120 # assumed that no part of a normal pathname contains ";" but that should
11121 # okay in the real world where ";" in dirpaths is itself problematic.
11122 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11123 ;;
11124 *)
11125 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11126 ;;
11127 esac
11128 # Ok, now we have the path, separated by spaces, we can step through it
11129 # and add multilib dir if necessary.
11130 lt_tmp_lt_search_path_spec=
11131 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11132 for lt_sys_path in $lt_search_path_spec; do
11133 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11134 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11135 else
11136 test -d "$lt_sys_path" && \
11137 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11138 fi
11139 done
11140 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11141BEGIN {RS=" "; FS="/|\n";} {
11142 lt_foo="";
11143 lt_count=0;
11144 for (lt_i = NF; lt_i > 0; lt_i--) {
11145 if ($lt_i != "" && $lt_i != ".") {
11146 if ($lt_i == "..") {
11147 lt_count++;
11148 } else {
11149 if (lt_count == 0) {
11150 lt_foo="/" $lt_i lt_foo;
11151 } else {
11152 lt_count--;
11153 }
11154 }
11155 }
11156 }
11157 if (lt_foo != "") { lt_freq[lt_foo]++; }
11158 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11159}'`
11160 # AWK program above erroneously prepends '/' to C:/dos/paths
11161 # for these hosts.
11162 case $host_os in
11163 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11164 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11165 esac
11166 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11167else
11168 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11169fi
11170library_names_spec=
11171libname_spec='lib$name'
11172soname_spec=
11173shrext_cmds=".so"
11174postinstall_cmds=
11175postuninstall_cmds=
11176finish_cmds=
11177finish_eval=
11178shlibpath_var=
11179shlibpath_overrides_runpath=unknown
11180version_type=none
11181dynamic_linker="$host_os ld.so"
11182sys_lib_dlsearch_path_spec="/lib /usr/lib"
11183need_lib_prefix=unknown
11184hardcode_into_libs=no
11185
11186# when you set need_version to no, make sure it does not cause -set_version
11187# flags to be left without arguments
11188need_version=unknown
11189
11190case $host_os in
11191aix3*)
11192 version_type=linux # correct to gnu/linux during the next big refactor
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11194 shlibpath_var=LIBPATH
11195
11196 # AIX 3 has no versioning support, so we append a major version to the name.
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 ;;
11199
11200aix[4-9]*)
11201 version_type=linux # correct to gnu/linux during the next big refactor
11202 need_lib_prefix=no
11203 need_version=no
11204 hardcode_into_libs=yes
11205 if test "$host_cpu" = ia64; then
11206 # AIX 5 supports IA64
11207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 else
11210 # With GCC up to 2.95.x, collect2 would create an import file
11211 # for dependence libraries. The import file would start with
11212 # the line `#! .'. This would cause the generated library to
11213 # depend on `.', always an invalid library. This was fixed in
11214 # development snapshots of GCC prior to 3.0.
11215 case $host_os in
11216 aix4 | aix4.[01] | aix4.[01].*)
11217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11218 echo ' yes '
11219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11220 :
11221 else
11222 can_build_shared=no
11223 fi
11224 ;;
11225 esac
11226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11227 # soname into executable. Probably we can add versioning support to
11228 # collect2, so additional links can be useful in future.
11229 if test "$aix_use_runtimelinking" = yes; then
11230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11231 # instead of lib<name>.a to let people know that these are not
11232 # typical AIX shared libraries.
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 else
11235 # We preserve .a as extension for shared libraries through AIX4.2
11236 # and later when we are not doing run time linking.
11237 library_names_spec='${libname}${release}.a $libname.a'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 fi
11240 shlibpath_var=LIBPATH
11241 fi
11242 ;;
11243
11244amigaos*)
11245 case $host_cpu in
11246 powerpc)
11247 # Since July 2007 AmigaOS4 officially supports .so libraries.
11248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250 ;;
11251 m68k)
11252 library_names_spec='$libname.ixlibrary $libname.a'
11253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11254 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11255 ;;
11256 esac
11257 ;;
11258
11259beos*)
11260 library_names_spec='${libname}${shared_ext}'
11261 dynamic_linker="$host_os ld.so"
11262 shlibpath_var=LIBRARY_PATH
11263 ;;
11264
11265bsdi[45]*)
11266 version_type=linux # correct to gnu/linux during the next big refactor
11267 need_version=no
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11274 # the default ld.so.conf also contains /usr/contrib/lib and
11275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11276 # libtool to hard-code these into programs
11277 ;;
11278
11279cygwin* | mingw* | pw32* | cegcc*)
11280 version_type=windows
11281 shrext_cmds=".dll"
11282 need_version=no
11283 need_lib_prefix=no
11284
11285 case $GCC,$cc_basename in
11286 yes,*)
11287 # gcc
11288 library_names_spec='$libname.dll.a'
11289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11290 postinstall_cmds='base_file=`basename \${file}`~
11291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11292 dldir=$destdir/`dirname \$dlpath`~
11293 test -d \$dldir || mkdir -p \$dldir~
11294 $install_prog $dir/$dlname \$dldir/$dlname~
11295 chmod a+x \$dldir/$dlname~
11296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11298 fi'
11299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11300 dlpath=$dir/\$dldll~
11301 $RM \$dlpath'
11302 shlibpath_overrides_runpath=yes
11303
11304 case $host_os in
11305 cygwin*)
11306 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11308
11309 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11310 ;;
11311 mingw* | cegcc*)
11312 # MinGW DLLs use traditional 'lib' prefix
11313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314 ;;
11315 pw32*)
11316 # pw32 DLLs use 'pw' prefix rather than 'lib'
11317 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11318 ;;
11319 esac
11320 dynamic_linker='Win32 ld.exe'
11321 ;;
11322
11323 *,cl*)
11324 # Native MSVC
11325 libname_spec='$name'
11326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11327 library_names_spec='${libname}.dll.lib'
11328
11329 case $build_os in
11330 mingw*)
11331 sys_lib_search_path_spec=
11332 lt_save_ifs=$IFS
11333 IFS=';'
11334 for lt_path in $LIB
11335 do
11336 IFS=$lt_save_ifs
11337 # Let DOS variable expansion print the short 8.3 style file name.
11338 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11339 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11340 done
11341 IFS=$lt_save_ifs
11342 # Convert to MSYS style.
11343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11344 ;;
11345 cygwin*)
11346 # Convert to unix form, then to dos form, then back to unix form
11347 # but this time dos style (no spaces!) so that the unix form looks
11348 # like /cygdrive/c/PROGRA~1:/cygdr...
11349 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11350 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11351 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11352 ;;
11353 *)
11354 sys_lib_search_path_spec="$LIB"
11355 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11356 # It is most probably a Windows format PATH.
11357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11358 else
11359 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11360 fi
11361 # FIXME: find the short name or the path components, as spaces are
11362 # common. (e.g. "Program Files" -> "PROGRA~1")
11363 ;;
11364 esac
11365
11366 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11367 postinstall_cmds='base_file=`basename \${file}`~
11368 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11369 dldir=$destdir/`dirname \$dlpath`~
11370 test -d \$dldir || mkdir -p \$dldir~
11371 $install_prog $dir/$dlname \$dldir/$dlname'
11372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11373 dlpath=$dir/\$dldll~
11374 $RM \$dlpath'
11375 shlibpath_overrides_runpath=yes
11376 dynamic_linker='Win32 link.exe'
11377 ;;
11378
11379 *)
11380 # Assume MSVC wrapper
11381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11382 dynamic_linker='Win32 ld.exe'
11383 ;;
11384 esac
11385 # FIXME: first we should search . and the directory the executable is in
11386 shlibpath_var=PATH
11387 ;;
11388
11389darwin* | rhapsody*)
11390 dynamic_linker="$host_os dyld"
11391 version_type=darwin
11392 need_lib_prefix=no
11393 need_version=no
11394 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11395 soname_spec='${libname}${release}${major}$shared_ext'
11396 shlibpath_overrides_runpath=yes
11397 shlibpath_var=DYLD_LIBRARY_PATH
11398 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11399
11400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11401 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11402 ;;
11403
11404dgux*)
11405 version_type=linux # correct to gnu/linux during the next big refactor
11406 need_lib_prefix=no
11407 need_version=no
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 ;;
11412
11413freebsd* | dragonfly*)
11414 # DragonFly does not have aout. When/if they implement a new
11415 # versioning mechanism, adjust this.
11416 if test -x /usr/bin/objformat; then
11417 objformat=`/usr/bin/objformat`
11418 else
11419 case $host_os in
11420 freebsd[23].*) objformat=aout ;;
11421 *) objformat=elf ;;
11422 esac
11423 fi
11424 version_type=freebsd-$objformat
11425 case $version_type in
11426 freebsd-elf*)
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11428 need_version=no
11429 need_lib_prefix=no
11430 ;;
11431 freebsd-*)
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11433 need_version=yes
11434 ;;
11435 esac
11436 shlibpath_var=LD_LIBRARY_PATH
11437 case $host_os in
11438 freebsd2.*)
11439 shlibpath_overrides_runpath=yes
11440 ;;
11441 freebsd3.[01]* | freebsdelf3.[01]*)
11442 shlibpath_overrides_runpath=yes
11443 hardcode_into_libs=yes
11444 ;;
11445 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11446 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11447 shlibpath_overrides_runpath=no
11448 hardcode_into_libs=yes
11449 ;;
11450 *) # from 4.6 on, and DragonFly
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11453 ;;
11454 esac
11455 ;;
11456
11457gnu*)
11458 version_type=linux # correct to gnu/linux during the next big refactor
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 ;;
11467
11468haiku*)
11469 version_type=linux # correct to gnu/linux during the next big refactor
11470 need_lib_prefix=no
11471 need_version=no
11472 dynamic_linker="$host_os runtime_loader"
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 shlibpath_var=LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11478 hardcode_into_libs=yes
11479 ;;
11480
11481hpux9* | hpux10* | hpux11*)
11482 # Give a soname corresponding to the major version so that dld.sl refuses to
11483 # link against other versions.
11484 version_type=sunos
11485 need_lib_prefix=no
11486 need_version=no
11487 case $host_cpu in
11488 ia64*)
11489 shrext_cmds='.so'
11490 hardcode_into_libs=yes
11491 dynamic_linker="$host_os dld.so"
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 if test "X$HPUX_IA64_MODE" = X32; then
11497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11498 else
11499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11500 fi
11501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11502 ;;
11503 hppa*64*)
11504 shrext_cmds='.sl'
11505 hardcode_into_libs=yes
11506 dynamic_linker="$host_os dld.sl"
11507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11513 ;;
11514 *)
11515 shrext_cmds='.sl'
11516 dynamic_linker="$host_os dld.sl"
11517 shlibpath_var=SHLIB_PATH
11518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 ;;
11522 esac
11523 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11524 postinstall_cmds='chmod 555 $lib'
11525 # or fails outright, so override atomically:
11526 install_override_mode=555
11527 ;;
11528
11529interix[3-9]*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11539 ;;
11540
11541irix5* | irix6* | nonstopux*)
11542 case $host_os in
11543 nonstopux*) version_type=nonstopux ;;
11544 *)
11545 if test "$lt_cv_prog_gnu_ld" = yes; then
11546 version_type=linux # correct to gnu/linux during the next big refactor
11547 else
11548 version_type=irix
11549 fi ;;
11550 esac
11551 need_lib_prefix=no
11552 need_version=no
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11555 case $host_os in
11556 irix5* | nonstopux*)
11557 libsuff= shlibsuff=
11558 ;;
11559 *)
11560 case $LD in # libtool.m4 will add one of these switches to LD
11561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11562 libsuff= shlibsuff= libmagic=32-bit;;
11563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11564 libsuff=32 shlibsuff=N32 libmagic=N32;;
11565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11566 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11567 *) libsuff= shlibsuff= libmagic=never-match;;
11568 esac
11569 ;;
11570 esac
11571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11572 shlibpath_overrides_runpath=no
11573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11575 hardcode_into_libs=yes
11576 ;;
11577
11578# No shared lib support for Linux oldld, aout, or coff.
11579linux*oldld* | linux*aout* | linux*coff*)
11580 dynamic_linker=no
11581 ;;
11582
11583# This must be glibc/ELF.
11584linux* | k*bsd*-gnu | kopensolaris*-gnu)
11585 version_type=linux # correct to gnu/linux during the next big refactor
11586 need_lib_prefix=no
11587 need_version=no
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11591 shlibpath_var=LD_LIBRARY_PATH
11592 shlibpath_overrides_runpath=no
11593
11594 # Some binutils ld are patched to set DT_RUNPATH
11595 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 lt_cv_shlibpath_overrides_runpath=no
11599 save_LDFLAGS=$LDFLAGS
11600 save_libdir=$libdir
11601 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11602 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604/* end confdefs.h. */
11605
11606int
11607main ()
11608{
11609
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11616 lt_cv_shlibpath_overrides_runpath=yes
11617fi
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LDFLAGS=$save_LDFLAGS
11622 libdir=$save_libdir
11623
11624fi
11625
11626 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11627
11628 # This implies no fast_install, which is unacceptable.
11629 # Some rework will be needed to allow for fast_install
11630 # before this can be enabled.
11631 hardcode_into_libs=yes
11632
11633 # Append ld.so.conf contents to the search path
11634 if test -f /etc/ld.so.conf; then
11635 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' ' '`
11636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11637 fi
11638
11639 # We used to test for /lib/ld.so.1 and disable shared libraries on
11640 # powerpc, because MkLinux only supported shared libraries with the
11641 # GNU dynamic linker. Since this was broken with cross compilers,
11642 # most powerpc-linux boxes support dynamic linking these days and
11643 # people can always --disable-shared, the test was removed, and we
11644 # assume the GNU/Linux dynamic linker is in use.
11645 dynamic_linker='GNU/Linux ld.so'
11646 ;;
11647
11648netbsd*)
11649 version_type=sunos
11650 need_lib_prefix=no
11651 need_version=no
11652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11655 dynamic_linker='NetBSD (a.out) ld.so'
11656 else
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 dynamic_linker='NetBSD ld.elf_so'
11660 fi
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11664 ;;
11665
11666newsos6)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672
11673*nto* | *qnx*)
11674 version_type=qnx
11675 need_lib_prefix=no
11676 need_version=no
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678 soname_spec='${libname}${release}${shared_ext}$major'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=no
11681 hardcode_into_libs=yes
11682 dynamic_linker='ldqnx.so'
11683 ;;
11684
11685openbsd*)
11686 version_type=sunos
11687 sys_lib_dlsearch_path_spec="/usr/lib"
11688 need_lib_prefix=no
11689 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11690 case $host_os in
11691 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11692 *) need_version=no ;;
11693 esac
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11698 case $host_os in
11699 openbsd2.[89] | openbsd2.[89].*)
11700 shlibpath_overrides_runpath=no
11701 ;;
11702 *)
11703 shlibpath_overrides_runpath=yes
11704 ;;
11705 esac
11706 else
11707 shlibpath_overrides_runpath=yes
11708 fi
11709 ;;
11710
11711os2*)
11712 libname_spec='$name'
11713 shrext_cmds=".dll"
11714 need_lib_prefix=no
11715 library_names_spec='$libname${shared_ext} $libname.a'
11716 dynamic_linker='OS/2 ld.exe'
11717 shlibpath_var=LIBPATH
11718 ;;
11719
11720osf3* | osf4* | osf5*)
11721 version_type=osf
11722 need_lib_prefix=no
11723 need_version=no
11724 soname_spec='${libname}${release}${shared_ext}$major'
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11729 ;;
11730
11731rdos*)
11732 dynamic_linker=no
11733 ;;
11734
11735solaris*)
11736 version_type=linux # correct to gnu/linux during the next big refactor
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11744 # ldd complains unless libraries are executable
11745 postinstall_cmds='chmod +x $lib'
11746 ;;
11747
11748sunos4*)
11749 version_type=sunos
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 if test "$with_gnu_ld" = yes; then
11755 need_lib_prefix=no
11756 fi
11757 need_version=yes
11758 ;;
11759
11760sysv4 | sysv4.3*)
11761 version_type=linux # correct to gnu/linux during the next big refactor
11762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763 soname_spec='${libname}${release}${shared_ext}$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11765 case $host_vendor in
11766 sni)
11767 shlibpath_overrides_runpath=no
11768 need_lib_prefix=no
11769 runpath_var=LD_RUN_PATH
11770 ;;
11771 siemens)
11772 need_lib_prefix=no
11773 ;;
11774 motorola)
11775 need_lib_prefix=no
11776 need_version=no
11777 shlibpath_overrides_runpath=no
11778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11779 ;;
11780 esac
11781 ;;
11782
11783sysv4*MP*)
11784 if test -d /usr/nec ;then
11785 version_type=linux # correct to gnu/linux during the next big refactor
11786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11787 soname_spec='$libname${shared_ext}.$major'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 fi
11790 ;;
11791
11792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11793 version_type=freebsd-elf
11794 need_lib_prefix=no
11795 need_version=no
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11797 soname_spec='${libname}${release}${shared_ext}$major'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 hardcode_into_libs=yes
11801 if test "$with_gnu_ld" = yes; then
11802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11803 else
11804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11805 case $host_os in
11806 sco3.2v5*)
11807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11808 ;;
11809 esac
11810 fi
11811 sys_lib_dlsearch_path_spec='/usr/lib'
11812 ;;
11813
11814tpf*)
11815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11816 version_type=linux # correct to gnu/linux during the next big refactor
11817 need_lib_prefix=no
11818 need_version=no
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 ;;
11824
11825uts4*)
11826 version_type=linux # correct to gnu/linux during the next big refactor
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828 soname_spec='${libname}${release}${shared_ext}$major'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 ;;
11831
11832*)
11833 dynamic_linker=no
11834 ;;
11835esac
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11837$as_echo "$dynamic_linker" >&6; }
11838test "$dynamic_linker" = no && can_build_shared=no
11839
11840variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11841if test "$GCC" = yes; then
11842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11843fi
11844
11845if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11846 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11847fi
11848if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11849 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11850fi
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11944$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11945hardcode_action=
11946if test -n "$hardcode_libdir_flag_spec" ||
11947 test -n "$runpath_var" ||
11948 test "X$hardcode_automatic" = "Xyes" ; then
11949
11950 # We can hardcode non-existent directories.
11951 if test "$hardcode_direct" != no &&
11952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11953 # have to relink, otherwise we might link with an installed library
11954 # when we should be linking with a yet-to-be-installed one
11955 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11956 test "$hardcode_minus_L" != no; then
11957 # Linking always hardcodes the temporary library directory.
11958 hardcode_action=relink
11959 else
11960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11961 hardcode_action=immediate
11962 fi
11963else
11964 # We cannot hardcode anything, or else we can only hardcode existing
11965 # directories.
11966 hardcode_action=unsupported
11967fi
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11969$as_echo "$hardcode_action" >&6; }
11970
11971if test "$hardcode_action" = relink ||
11972 test "$inherit_rpath" = yes; then
11973 # Fast installation is not supported
11974 enable_fast_install=no
11975elif test "$shlibpath_overrides_runpath" = yes ||
11976 test "$enable_shared" = no; then
11977 # Fast installation is not necessary
11978 enable_fast_install=needless
11979fi
11980
11981
11982
11983
11984
11985
11986 if test "x$enable_dlopen" != xyes; then
11987 enable_dlopen=unknown
11988 enable_dlopen_self=unknown
11989 enable_dlopen_self_static=unknown
11990else
11991 lt_cv_dlopen=no
11992 lt_cv_dlopen_libs=
11993
11994 case $host_os in
11995 beos*)
11996 lt_cv_dlopen="load_add_on"
11997 lt_cv_dlopen_libs=
11998 lt_cv_dlopen_self=yes
11999 ;;
12000
12001 mingw* | pw32* | cegcc*)
12002 lt_cv_dlopen="LoadLibrary"
12003 lt_cv_dlopen_libs=
12004 ;;
12005
12006 cygwin*)
12007 lt_cv_dlopen="dlopen"
12008 lt_cv_dlopen_libs=
12009 ;;
12010
12011 darwin*)
12012 # if libdl is installed we need to link against it
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12014$as_echo_n "checking for dlopen in -ldl... " >&6; }
12015if ${ac_cv_lib_dl_dlopen+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017else
12018 ac_check_lib_save_LIBS=$LIBS
12019LIBS="-ldl $LIBS"
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022
12023/* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026#ifdef __cplusplus
12027extern "C"
12028#endif
12029char dlopen ();
12030int
12031main ()
12032{
12033return dlopen ();
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_lib_dl_dlopen=yes
12040else
12041 ac_cv_lib_dl_dlopen=no
12042fi
12043rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045LIBS=$ac_check_lib_save_LIBS
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12048$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12049if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12051else
12052
12053 lt_cv_dlopen="dyld"
12054 lt_cv_dlopen_libs=
12055 lt_cv_dlopen_self=yes
12056
12057fi
12058
12059 ;;
12060
12061 *)
12062 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12063if test "x$ac_cv_func_shl_load" = xyes; then :
12064 lt_cv_dlopen="shl_load"
12065else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12067$as_echo_n "checking for shl_load in -ldld... " >&6; }
12068if ${ac_cv_lib_dld_shl_load+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070else
12071 ac_check_lib_save_LIBS=$LIBS
12072LIBS="-ldld $LIBS"
12073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h. */
12075
12076/* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079#ifdef __cplusplus
12080extern "C"
12081#endif
12082char shl_load ();
12083int
12084main ()
12085{
12086return shl_load ();
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091if ac_fn_c_try_link "$LINENO"; then :
12092 ac_cv_lib_dld_shl_load=yes
12093else
12094 ac_cv_lib_dld_shl_load=no
12095fi
12096rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098LIBS=$ac_check_lib_save_LIBS
12099fi
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12101$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12102if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12103 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12104else
12105 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12106if test "x$ac_cv_func_dlopen" = xyes; then :
12107 lt_cv_dlopen="dlopen"
12108else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12110$as_echo_n "checking for dlopen in -ldl... " >&6; }
12111if ${ac_cv_lib_dl_dlopen+:} false; then :
12112 $as_echo_n "(cached) " >&6
12113else
12114 ac_check_lib_save_LIBS=$LIBS
12115LIBS="-ldl $LIBS"
12116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117/* end confdefs.h. */
12118
12119/* Override any GCC internal prototype to avoid an error.
12120 Use char because int might match the return type of a GCC
12121 builtin and then its argument prototype would still apply. */
12122#ifdef __cplusplus
12123extern "C"
12124#endif
12125char dlopen ();
12126int
12127main ()
12128{
12129return dlopen ();
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134if ac_fn_c_try_link "$LINENO"; then :
12135 ac_cv_lib_dl_dlopen=yes
12136else
12137 ac_cv_lib_dl_dlopen=no
12138fi
12139rm -f core conftest.err conftest.$ac_objext \
12140 conftest$ac_exeext conftest.$ac_ext
12141LIBS=$ac_check_lib_save_LIBS
12142fi
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12144$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12145if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12146 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12147else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12149$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12150if ${ac_cv_lib_svld_dlopen+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152else
12153 ac_check_lib_save_LIBS=$LIBS
12154LIBS="-lsvld $LIBS"
12155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156/* end confdefs.h. */
12157
12158/* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12161#ifdef __cplusplus
12162extern "C"
12163#endif
12164char dlopen ();
12165int
12166main ()
12167{
12168return dlopen ();
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173if ac_fn_c_try_link "$LINENO"; then :
12174 ac_cv_lib_svld_dlopen=yes
12175else
12176 ac_cv_lib_svld_dlopen=no
12177fi
12178rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180LIBS=$ac_check_lib_save_LIBS
12181fi
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12183$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12184if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12186else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12188$as_echo_n "checking for dld_link in -ldld... " >&6; }
12189if ${ac_cv_lib_dld_dld_link+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-ldld $LIBS"
12194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195/* end confdefs.h. */
12196
12197/* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200#ifdef __cplusplus
12201extern "C"
12202#endif
12203char dld_link ();
12204int
12205main ()
12206{
12207return dld_link ();
12208 ;
12209 return 0;
12210}
12211_ACEOF
12212if ac_fn_c_try_link "$LINENO"; then :
12213 ac_cv_lib_dld_dld_link=yes
12214else
12215 ac_cv_lib_dld_dld_link=no
12216fi
12217rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219LIBS=$ac_check_lib_save_LIBS
12220fi
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12222$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12223if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12225fi
12226
12227
12228fi
12229
12230
12231fi
12232
12233
12234fi
12235
12236
12237fi
12238
12239
12240fi
12241
12242 ;;
12243 esac
12244
12245 if test "x$lt_cv_dlopen" != xno; then
12246 enable_dlopen=yes
12247 else
12248 enable_dlopen=no
12249 fi
12250
12251 case $lt_cv_dlopen in
12252 dlopen)
12253 save_CPPFLAGS="$CPPFLAGS"
12254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12255
12256 save_LDFLAGS="$LDFLAGS"
12257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12258
12259 save_LIBS="$LIBS"
12260 LIBS="$lt_cv_dlopen_libs $LIBS"
12261
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12263$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12264if ${lt_cv_dlopen_self+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266else
12267 if test "$cross_compiling" = yes; then :
12268 lt_cv_dlopen_self=cross
12269else
12270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12271 lt_status=$lt_dlunknown
12272 cat > conftest.$ac_ext <<_LT_EOF
12273#line $LINENO "configure"
12274#include "confdefs.h"
12275
12276#if HAVE_DLFCN_H
12277#include <dlfcn.h>
12278#endif
12279
12280#include <stdio.h>
12281
12282#ifdef RTLD_GLOBAL
12283# define LT_DLGLOBAL RTLD_GLOBAL
12284#else
12285# ifdef DL_GLOBAL
12286# define LT_DLGLOBAL DL_GLOBAL
12287# else
12288# define LT_DLGLOBAL 0
12289# endif
12290#endif
12291
12292/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12293 find out it does not work in some platform. */
12294#ifndef LT_DLLAZY_OR_NOW
12295# ifdef RTLD_LAZY
12296# define LT_DLLAZY_OR_NOW RTLD_LAZY
12297# else
12298# ifdef DL_LAZY
12299# define LT_DLLAZY_OR_NOW DL_LAZY
12300# else
12301# ifdef RTLD_NOW
12302# define LT_DLLAZY_OR_NOW RTLD_NOW
12303# else
12304# ifdef DL_NOW
12305# define LT_DLLAZY_OR_NOW DL_NOW
12306# else
12307# define LT_DLLAZY_OR_NOW 0
12308# endif
12309# endif
12310# endif
12311# endif
12312#endif
12313
12314/* When -fvisbility=hidden is used, assume the code has been annotated
12315 correspondingly for the symbols needed. */
12316#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12317int fnord () __attribute__((visibility("default")));
12318#endif
12319
12320int fnord () { return 42; }
12321int main ()
12322{
12323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12324 int status = $lt_dlunknown;
12325
12326 if (self)
12327 {
12328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12329 else
12330 {
12331 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12332 else puts (dlerror ());
12333 }
12334 /* dlclose (self); */
12335 }
12336 else
12337 puts (dlerror ());
12338
12339 return status;
12340}
12341_LT_EOF
12342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12343 (eval $ac_link) 2>&5
12344 ac_status=$?
12345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12346 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12347 (./conftest; exit; ) >&5 2>/dev/null
12348 lt_status=$?
12349 case x$lt_status in
12350 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12351 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12352 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12353 esac
12354 else :
12355 # compilation failed
12356 lt_cv_dlopen_self=no
12357 fi
12358fi
12359rm -fr conftest*
12360
12361
12362fi
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12364$as_echo "$lt_cv_dlopen_self" >&6; }
12365
12366 if test "x$lt_cv_dlopen_self" = xyes; then
12367 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12369$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12370if ${lt_cv_dlopen_self_static+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372else
12373 if test "$cross_compiling" = yes; then :
12374 lt_cv_dlopen_self_static=cross
12375else
12376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12377 lt_status=$lt_dlunknown
12378 cat > conftest.$ac_ext <<_LT_EOF
12379#line $LINENO "configure"
12380#include "confdefs.h"
12381
12382#if HAVE_DLFCN_H
12383#include <dlfcn.h>
12384#endif
12385
12386#include <stdio.h>
12387
12388#ifdef RTLD_GLOBAL
12389# define LT_DLGLOBAL RTLD_GLOBAL
12390#else
12391# ifdef DL_GLOBAL
12392# define LT_DLGLOBAL DL_GLOBAL
12393# else
12394# define LT_DLGLOBAL 0
12395# endif
12396#endif
12397
12398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12399 find out it does not work in some platform. */
12400#ifndef LT_DLLAZY_OR_NOW
12401# ifdef RTLD_LAZY
12402# define LT_DLLAZY_OR_NOW RTLD_LAZY
12403# else
12404# ifdef DL_LAZY
12405# define LT_DLLAZY_OR_NOW DL_LAZY
12406# else
12407# ifdef RTLD_NOW
12408# define LT_DLLAZY_OR_NOW RTLD_NOW
12409# else
12410# ifdef DL_NOW
12411# define LT_DLLAZY_OR_NOW DL_NOW
12412# else
12413# define LT_DLLAZY_OR_NOW 0
12414# endif
12415# endif
12416# endif
12417# endif
12418#endif
12419
12420/* When -fvisbility=hidden is used, assume the code has been annotated
12421 correspondingly for the symbols needed. */
12422#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12423int fnord () __attribute__((visibility("default")));
12424#endif
12425
12426int fnord () { return 42; }
12427int main ()
12428{
12429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12430 int status = $lt_dlunknown;
12431
12432 if (self)
12433 {
12434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12435 else
12436 {
12437 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12438 else puts (dlerror ());
12439 }
12440 /* dlclose (self); */
12441 }
12442 else
12443 puts (dlerror ());
12444
12445 return status;
12446}
12447_LT_EOF
12448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12449 (eval $ac_link) 2>&5
12450 ac_status=$?
12451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12453 (./conftest; exit; ) >&5 2>/dev/null
12454 lt_status=$?
12455 case x$lt_status in
12456 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12457 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12458 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12459 esac
12460 else :
12461 # compilation failed
12462 lt_cv_dlopen_self_static=no
12463 fi
12464fi
12465rm -fr conftest*
12466
12467
12468fi
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12470$as_echo "$lt_cv_dlopen_self_static" >&6; }
12471 fi
12472
12473 CPPFLAGS="$save_CPPFLAGS"
12474 LDFLAGS="$save_LDFLAGS"
12475 LIBS="$save_LIBS"
12476 ;;
12477 esac
12478
12479 case $lt_cv_dlopen_self in
12480 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12481 *) enable_dlopen_self=unknown ;;
12482 esac
12483
12484 case $lt_cv_dlopen_self_static in
12485 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12486 *) enable_dlopen_self_static=unknown ;;
12487 esac
12488fi
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506striplib=
12507old_striplib=
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12509$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12510if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12511 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12512 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12514$as_echo "yes" >&6; }
12515else
12516# FIXME - insert some real tests, host_os isn't really good enough
12517 case $host_os in
12518 darwin*)
12519 if test -n "$STRIP" ; then
12520 striplib="$STRIP -x"
12521 old_striplib="$STRIP -S"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12523$as_echo "yes" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
12527 fi
12528 ;;
12529 *)
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532 ;;
12533 esac
12534fi
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547 # Report which library types will actually be built
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12549$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12551$as_echo "$can_build_shared" >&6; }
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12554$as_echo_n "checking whether to build shared libraries... " >&6; }
12555 test "$can_build_shared" = "no" && enable_shared=no
12556
12557 # On AIX, shared libraries and static libraries use the same namespace, and
12558 # are all built from PIC.
12559 case $host_os in
12560 aix3*)
12561 test "$enable_shared" = yes && enable_static=no
12562 if test -n "$RANLIB"; then
12563 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12564 postinstall_cmds='$RANLIB $lib'
12565 fi
12566 ;;
12567
12568 aix[4-9]*)
12569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12570 test "$enable_shared" = yes && enable_static=no
12571 fi
12572 ;;
12573 esac
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12575$as_echo "$enable_shared" >&6; }
12576
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12578$as_echo_n "checking whether to build static libraries... " >&6; }
12579 # Make sure either enable_shared or enable_static is yes.
12580 test "$enable_shared" = yes || enable_static=yes
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12582$as_echo "$enable_static" >&6; }
12583
12584
12585
12586
12587fi
12588ac_ext=c
12589ac_cpp='$CPP $CPPFLAGS'
12590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
12594CC="$lt_save_CC"
12595
12596 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12597 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12598 (test "X$CXX" != "Xg++"))) ; then
12599 ac_ext=cpp
12600ac_cpp='$CXXCPP $CPPFLAGS'
12601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12605$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12606if test -z "$CXXCPP"; then
12607 if ${ac_cv_prog_CXXCPP+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609else
12610 # Double quotes because CXXCPP needs to be expanded
12611 for CXXCPP in "$CXX -E" "/lib/cpp"
12612 do
12613 ac_preproc_ok=false
12614for ac_cxx_preproc_warn_flag in '' yes
12615do
12616 # Use a header file that comes with gcc, so configuring glibc
12617 # with a fresh cross-compiler works.
12618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12619 # <limits.h> exists even on freestanding compilers.
12620 # On the NeXT, cc -E runs the code through the compiler's parser,
12621 # not just through cpp. "Syntax error" is here to catch this case.
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623/* end confdefs.h. */
12624#ifdef __STDC__
12625# include <limits.h>
12626#else
12627# include <assert.h>
12628#endif
12629 Syntax error
12630_ACEOF
12631if ac_fn_cxx_try_cpp "$LINENO"; then :
12632
12633else
12634 # Broken: fails on valid input.
12635continue
12636fi
12637rm -f conftest.err conftest.i conftest.$ac_ext
12638
12639 # OK, works on sane cases. Now check whether nonexistent headers
12640 # can be detected and how.
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642/* end confdefs.h. */
12643#include <ac_nonexistent.h>
12644_ACEOF
12645if ac_fn_cxx_try_cpp "$LINENO"; then :
12646 # Broken: success on invalid input.
12647continue
12648else
12649 # Passes both tests.
12650ac_preproc_ok=:
12651break
12652fi
12653rm -f conftest.err conftest.i conftest.$ac_ext
12654
12655done
12656# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12657rm -f conftest.i conftest.err conftest.$ac_ext
12658if $ac_preproc_ok; then :
12659 break
12660fi
12661
12662 done
12663 ac_cv_prog_CXXCPP=$CXXCPP
12664
12665fi
12666 CXXCPP=$ac_cv_prog_CXXCPP
12667else
12668 ac_cv_prog_CXXCPP=$CXXCPP
12669fi
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12671$as_echo "$CXXCPP" >&6; }
12672ac_preproc_ok=false
12673for ac_cxx_preproc_warn_flag in '' yes
12674do
12675 # Use a header file that comes with gcc, so configuring glibc
12676 # with a fresh cross-compiler works.
12677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 # <limits.h> exists even on freestanding compilers.
12679 # On the NeXT, cc -E runs the code through the compiler's parser,
12680 # not just through cpp. "Syntax error" is here to catch this case.
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682/* end confdefs.h. */
12683#ifdef __STDC__
12684# include <limits.h>
12685#else
12686# include <assert.h>
12687#endif
12688 Syntax error
12689_ACEOF
12690if ac_fn_cxx_try_cpp "$LINENO"; then :
12691
12692else
12693 # Broken: fails on valid input.
12694continue
12695fi
12696rm -f conftest.err conftest.i conftest.$ac_ext
12697
12698 # OK, works on sane cases. Now check whether nonexistent headers
12699 # can be detected and how.
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701/* end confdefs.h. */
12702#include <ac_nonexistent.h>
12703_ACEOF
12704if ac_fn_cxx_try_cpp "$LINENO"; then :
12705 # Broken: success on invalid input.
12706continue
12707else
12708 # Passes both tests.
12709ac_preproc_ok=:
12710break
12711fi
12712rm -f conftest.err conftest.i conftest.$ac_ext
12713
12714done
12715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12716rm -f conftest.i conftest.err conftest.$ac_ext
12717if $ac_preproc_ok; then :
12718
12719else
12720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12722as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12723See \`config.log' for more details" "$LINENO" 5; }
12724fi
12725
12726ac_ext=c
12727ac_cpp='$CPP $CPPFLAGS'
12728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732else
12733 _lt_caught_CXX_error=yes
12734fi
12735
12736ac_ext=cpp
12737ac_cpp='$CXXCPP $CPPFLAGS'
12738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12741
12742archive_cmds_need_lc_CXX=no
12743allow_undefined_flag_CXX=
12744always_export_symbols_CXX=no
12745archive_expsym_cmds_CXX=
12746compiler_needs_object_CXX=no
12747export_dynamic_flag_spec_CXX=
12748hardcode_direct_CXX=no
12749hardcode_direct_absolute_CXX=no
12750hardcode_libdir_flag_spec_CXX=
12751hardcode_libdir_separator_CXX=
12752hardcode_minus_L_CXX=no
12753hardcode_shlibpath_var_CXX=unsupported
12754hardcode_automatic_CXX=no
12755inherit_rpath_CXX=no
12756module_cmds_CXX=
12757module_expsym_cmds_CXX=
12758link_all_deplibs_CXX=unknown
12759old_archive_cmds_CXX=$old_archive_cmds
12760reload_flag_CXX=$reload_flag
12761reload_cmds_CXX=$reload_cmds
12762no_undefined_flag_CXX=
12763whole_archive_flag_spec_CXX=
12764enable_shared_with_static_runtimes_CXX=no
12765
12766# Source file extension for C++ test sources.
12767ac_ext=cpp
12768
12769# Object file extension for compiled C++ test sources.
12770objext=o
12771objext_CXX=$objext
12772
12773# No sense in running all these tests if we already determined that
12774# the CXX compiler isn't working. Some variables (like enable_shared)
12775# are currently assumed to apply to all compilers on this platform,
12776# and will be corrupted by setting them based on a non-working compiler.
12777if test "$_lt_caught_CXX_error" != yes; then
12778 # Code to be used in simple compile tests
12779 lt_simple_compile_test_code="int some_variable = 0;"
12780
12781 # Code to be used in simple link tests
12782 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12783
12784 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12785
12786
12787
12788
12789
12790
12791# If no C compiler was specified, use CC.
12792LTCC=${LTCC-"$CC"}
12793
12794# If no C compiler flags were specified, use CFLAGS.
12795LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12796
12797# Allow CC to be a program name with arguments.
12798compiler=$CC
12799
12800
12801 # save warnings/boilerplate of simple test code
12802 ac_outfile=conftest.$ac_objext
12803echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12804eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12805_lt_compiler_boilerplate=`cat conftest.err`
12806$RM -r conftest*
12807
12808 ac_outfile=conftest.$ac_objext
12809echo "$lt_simple_link_test_code" >conftest.$ac_ext
12810eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12811_lt_linker_boilerplate=`cat conftest.err`
12812$RM -r conftest*
12813
12814
12815 # Allow CC to be a program name with arguments.
12816 lt_save_CC=$CC
12817 lt_save_CFLAGS=$CFLAGS
12818 lt_save_LD=$LD
12819 lt_save_GCC=$GCC
12820 GCC=$GXX
12821 lt_save_with_gnu_ld=$with_gnu_ld
12822 lt_save_path_LD=$lt_cv_path_LD
12823 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12824 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12825 else
12826 $as_unset lt_cv_prog_gnu_ld
12827 fi
12828 if test -n "${lt_cv_path_LDCXX+set}"; then
12829 lt_cv_path_LD=$lt_cv_path_LDCXX
12830 else
12831 $as_unset lt_cv_path_LD
12832 fi
12833 test -z "${LDCXX+set}" || LD=$LDCXX
12834 CC=${CXX-"c++"}
12835 CFLAGS=$CXXFLAGS
12836 compiler=$CC
12837 compiler_CXX=$CC
12838 for cc_temp in $compiler""; do
12839 case $cc_temp in
12840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12842 \-*) ;;
12843 *) break;;
12844 esac
12845done
12846cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12847
12848
12849 if test -n "$compiler"; then
12850 # We don't want -fno-exception when compiling C++ code, so set the
12851 # no_builtin_flag separately
12852 if test "$GXX" = yes; then
12853 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12854 else
12855 lt_prog_compiler_no_builtin_flag_CXX=
12856 fi
12857
12858 if test "$GXX" = yes; then
12859 # Set up default GNU C++ configuration
12860
12861
12862
12863# Check whether --with-gnu-ld was given.
12864if test "${with_gnu_ld+set}" = set; then :
12865 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12866else
12867 with_gnu_ld=no
12868fi
12869
12870ac_prog=ld
12871if test "$GCC" = yes; then
12872 # Check if gcc -print-prog-name=ld gives a path.
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12874$as_echo_n "checking for ld used by $CC... " >&6; }
12875 case $host in
12876 *-*-mingw*)
12877 # gcc leaves a trailing carriage return which upsets mingw
12878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12879 *)
12880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12881 esac
12882 case $ac_prog in
12883 # Accept absolute paths.
12884 [\\/]* | ?:[\\/]*)
12885 re_direlt='/[^/][^/]*/\.\./'
12886 # Canonicalize the pathname of ld
12887 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12888 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12889 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12890 done
12891 test -z "$LD" && LD="$ac_prog"
12892 ;;
12893 "")
12894 # If it fails, then pretend we aren't using GCC.
12895 ac_prog=ld
12896 ;;
12897 *)
12898 # If it is relative, then search for the first ld in PATH.
12899 with_gnu_ld=unknown
12900 ;;
12901 esac
12902elif test "$with_gnu_ld" = yes; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12904$as_echo_n "checking for GNU ld... " >&6; }
12905else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12907$as_echo_n "checking for non-GNU ld... " >&6; }
12908fi
12909if ${lt_cv_path_LD+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911else
12912 if test -z "$LD"; then
12913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12914 for ac_dir in $PATH; do
12915 IFS="$lt_save_ifs"
12916 test -z "$ac_dir" && ac_dir=.
12917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12918 lt_cv_path_LD="$ac_dir/$ac_prog"
12919 # Check to see if the program is GNU ld. I'd rather use --version,
12920 # but apparently some variants of GNU ld only accept -v.
12921 # Break only if it was the GNU/non-GNU ld that we prefer.
12922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12923 *GNU* | *'with BFD'*)
12924 test "$with_gnu_ld" != no && break
12925 ;;
12926 *)
12927 test "$with_gnu_ld" != yes && break
12928 ;;
12929 esac
12930 fi
12931 done
12932 IFS="$lt_save_ifs"
12933else
12934 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12935fi
12936fi
12937
12938LD="$lt_cv_path_LD"
12939if test -n "$LD"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12941$as_echo "$LD" >&6; }
12942else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945fi
12946test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12948$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12949if ${lt_cv_prog_gnu_ld+:} false; then :
12950 $as_echo_n "(cached) " >&6
12951else
12952 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12953case `$LD -v 2>&1 </dev/null` in
12954*GNU* | *'with BFD'*)
12955 lt_cv_prog_gnu_ld=yes
12956 ;;
12957*)
12958 lt_cv_prog_gnu_ld=no
12959 ;;
12960esac
12961fi
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12963$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12964with_gnu_ld=$lt_cv_prog_gnu_ld
12965
12966
12967
12968
12969
12970
12971
12972 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12973 # archiving commands below assume that GNU ld is being used.
12974 if test "$with_gnu_ld" = yes; then
12975 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 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'
12977
12978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12980
12981 # If archive_cmds runs LD, not CC, wlarc should be empty
12982 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12983 # investigate it a little bit more. (MM)
12984 wlarc='${wl}'
12985
12986 # ancient GNU ld didn't support --whole-archive et. al.
12987 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12988 $GREP 'no-whole-archive' > /dev/null; then
12989 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12990 else
12991 whole_archive_flag_spec_CXX=
12992 fi
12993 else
12994 with_gnu_ld=no
12995 wlarc=
12996
12997 # A generic and very simple default shared library creation
12998 # command for GNU C++ for the case where it uses the native
12999 # linker, instead of GNU ld. If possible, this setting should
13000 # overridden to take advantage of the native linker features on
13001 # the platform it is being used on.
13002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13003 fi
13004
13005 # Commands to make compiler produce verbose output that lists
13006 # what "hidden" libraries, object files and flags are used when
13007 # linking a shared library.
13008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13009
13010 else
13011 GXX=no
13012 with_gnu_ld=no
13013 wlarc=
13014 fi
13015
13016 # PORTME: fill in a description of your system's C++ link characteristics
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13018$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13019 ld_shlibs_CXX=yes
13020 case $host_os in
13021 aix3*)
13022 # FIXME: insert proper C++ library support
13023 ld_shlibs_CXX=no
13024 ;;
13025 aix[4-9]*)
13026 if test "$host_cpu" = ia64; then
13027 # On IA64, the linker does run time linking by default, so we don't
13028 # have to do anything special.
13029 aix_use_runtimelinking=no
13030 exp_sym_flag='-Bexport'
13031 no_entry_flag=""
13032 else
13033 aix_use_runtimelinking=no
13034
13035 # Test if we are trying to use run time linking or normal
13036 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13037 # need to do runtime linking.
13038 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13039 for ld_flag in $LDFLAGS; do
13040 case $ld_flag in
13041 *-brtl*)
13042 aix_use_runtimelinking=yes
13043 break
13044 ;;
13045 esac
13046 done
13047 ;;
13048 esac
13049
13050 exp_sym_flag='-bexport'
13051 no_entry_flag='-bnoentry'
13052 fi
13053
13054 # When large executables or shared objects are built, AIX ld can
13055 # have problems creating the table of contents. If linking a library
13056 # or program results in "error TOC overflow" add -mminimal-toc to
13057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13059
13060 archive_cmds_CXX=''
13061 hardcode_direct_CXX=yes
13062 hardcode_direct_absolute_CXX=yes
13063 hardcode_libdir_separator_CXX=':'
13064 link_all_deplibs_CXX=yes
13065 file_list_spec_CXX='${wl}-f,'
13066
13067 if test "$GXX" = yes; then
13068 case $host_os in aix4.[012]|aix4.[012].*)
13069 # We only want to do this on AIX 4.2 and lower, the check
13070 # below for broken collect2 doesn't work under 4.3+
13071 collect2name=`${CC} -print-prog-name=collect2`
13072 if test -f "$collect2name" &&
13073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13074 then
13075 # We have reworked collect2
13076 :
13077 else
13078 # We have old collect2
13079 hardcode_direct_CXX=unsupported
13080 # It fails to find uninstalled libraries when the uninstalled
13081 # path is not listed in the libpath. Setting hardcode_minus_L
13082 # to unsupported forces relinking
13083 hardcode_minus_L_CXX=yes
13084 hardcode_libdir_flag_spec_CXX='-L$libdir'
13085 hardcode_libdir_separator_CXX=
13086 fi
13087 esac
13088 shared_flag='-shared'
13089 if test "$aix_use_runtimelinking" = yes; then
13090 shared_flag="$shared_flag "'${wl}-G'
13091 fi
13092 else
13093 # not using gcc
13094 if test "$host_cpu" = ia64; then
13095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13096 # chokes on -Wl,-G. The following line is correct:
13097 shared_flag='-G'
13098 else
13099 if test "$aix_use_runtimelinking" = yes; then
13100 shared_flag='${wl}-G'
13101 else
13102 shared_flag='${wl}-bM:SRE'
13103 fi
13104 fi
13105 fi
13106
13107 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13108 # It seems that -bexpall does not export symbols beginning with
13109 # underscore (_), so it is better to generate a list of symbols to
13110 # export.
13111 always_export_symbols_CXX=yes
13112 if test "$aix_use_runtimelinking" = yes; then
13113 # Warning - without using the other runtime loading flags (-brtl),
13114 # -berok will link without error, but may produce a broken library.
13115 allow_undefined_flag_CXX='-berok'
13116 # Determine the default libpath from the value encoded in an empty
13117 # executable.
13118 if test "${lt_cv_aix_libpath+set}" = set; then
13119 aix_libpath=$lt_cv_aix_libpath
13120else
13121 if ${lt_cv_aix_libpath__CXX+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123else
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125/* end confdefs.h. */
13126
13127int
13128main ()
13129{
13130
13131 ;
13132 return 0;
13133}
13134_ACEOF
13135if ac_fn_cxx_try_link "$LINENO"; then :
13136
13137 lt_aix_libpath_sed='
13138 /Import File Strings/,/^$/ {
13139 /^0/ {
13140 s/^0 *\([^ ]*\) *$/\1/
13141 p
13142 }
13143 }'
13144 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13145 # Check for a 64-bit object if we didn't find anything.
13146 if test -z "$lt_cv_aix_libpath__CXX"; then
13147 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13148 fi
13149fi
13150rm -f core conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 if test -z "$lt_cv_aix_libpath__CXX"; then
13153 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13154 fi
13155
13156fi
13157
13158 aix_libpath=$lt_cv_aix_libpath__CXX
13159fi
13160
13161 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13162
13163 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13164 else
13165 if test "$host_cpu" = ia64; then
13166 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13167 allow_undefined_flag_CXX="-z nodefs"
13168 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"
13169 else
13170 # Determine the default libpath from the value encoded in an
13171 # empty executable.
13172 if test "${lt_cv_aix_libpath+set}" = set; then
13173 aix_libpath=$lt_cv_aix_libpath
13174else
13175 if ${lt_cv_aix_libpath__CXX+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177else
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h. */
13180
13181int
13182main ()
13183{
13184
13185 ;
13186 return 0;
13187}
13188_ACEOF
13189if ac_fn_cxx_try_link "$LINENO"; then :
13190
13191 lt_aix_libpath_sed='
13192 /Import File Strings/,/^$/ {
13193 /^0/ {
13194 s/^0 *\([^ ]*\) *$/\1/
13195 p
13196 }
13197 }'
13198 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13199 # Check for a 64-bit object if we didn't find anything.
13200 if test -z "$lt_cv_aix_libpath__CXX"; then
13201 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13202 fi
13203fi
13204rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 if test -z "$lt_cv_aix_libpath__CXX"; then
13207 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13208 fi
13209
13210fi
13211
13212 aix_libpath=$lt_cv_aix_libpath__CXX
13213fi
13214
13215 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13216 # Warning - without using the other run time loading flags,
13217 # -berok will link without error, but may produce a broken library.
13218 no_undefined_flag_CXX=' ${wl}-bernotok'
13219 allow_undefined_flag_CXX=' ${wl}-berok'
13220 if test "$with_gnu_ld" = yes; then
13221 # We only use this code for GNU lds that support --whole-archive.
13222 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13223 else
13224 # Exported symbols can be pulled into shared objects from archives
13225 whole_archive_flag_spec_CXX='$convenience'
13226 fi
13227 archive_cmds_need_lc_CXX=yes
13228 # This is similar to how AIX traditionally builds its shared
13229 # libraries.
13230 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13231 fi
13232 fi
13233 ;;
13234
13235 beos*)
13236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13237 allow_undefined_flag_CXX=unsupported
13238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13239 # support --undefined. This deserves some investigation. FIXME
13240 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241 else
13242 ld_shlibs_CXX=no
13243 fi
13244 ;;
13245
13246 chorus*)
13247 case $cc_basename in
13248 *)
13249 # FIXME: insert proper C++ library support
13250 ld_shlibs_CXX=no
13251 ;;
13252 esac
13253 ;;
13254
13255 cygwin* | mingw* | pw32* | cegcc*)
13256 case $GXX,$cc_basename in
13257 ,cl* | no,cl*)
13258 # Native MSVC
13259 # hardcode_libdir_flag_spec is actually meaningless, as there is
13260 # no search path for DLLs.
13261 hardcode_libdir_flag_spec_CXX=' '
13262 allow_undefined_flag_CXX=unsupported
13263 always_export_symbols_CXX=yes
13264 file_list_spec_CXX='@'
13265 # Tell ltmain to make .lib files, not .a files.
13266 libext=lib
13267 # Tell ltmain to make .dll files, not .so files.
13268 shrext_cmds=".dll"
13269 # FIXME: Setting linknames here is a bad hack.
13270 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13271 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13272 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13273 else
13274 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13275 fi~
13276 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13277 linknames='
13278 # The linker will not automatically build a static lib if we build a DLL.
13279 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13280 enable_shared_with_static_runtimes_CXX=yes
13281 # Don't use ranlib
13282 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13283 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13284 lt_tool_outputfile="@TOOL_OUTPUT@"~
13285 case $lt_outputfile in
13286 *.exe|*.EXE) ;;
13287 *)
13288 lt_outputfile="$lt_outputfile.exe"
13289 lt_tool_outputfile="$lt_tool_outputfile.exe"
13290 ;;
13291 esac~
13292 func_to_tool_file "$lt_outputfile"~
13293 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13294 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13295 $RM "$lt_outputfile.manifest";
13296 fi'
13297 ;;
13298 *)
13299 # g++
13300 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13301 # as there is no search path for DLLs.
13302 hardcode_libdir_flag_spec_CXX='-L$libdir'
13303 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13304 allow_undefined_flag_CXX=unsupported
13305 always_export_symbols_CXX=no
13306 enable_shared_with_static_runtimes_CXX=yes
13307
13308 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13309 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'
13310 # If the export-symbols file already is a .def file (1st line
13311 # is EXPORTS), use it as is; otherwise, prepend...
13312 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13313 cp $export_symbols $output_objdir/$soname.def;
13314 else
13315 echo EXPORTS > $output_objdir/$soname.def;
13316 cat $export_symbols >> $output_objdir/$soname.def;
13317 fi~
13318 $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'
13319 else
13320 ld_shlibs_CXX=no
13321 fi
13322 ;;
13323 esac
13324 ;;
13325 darwin* | rhapsody*)
13326
13327
13328 archive_cmds_need_lc_CXX=no
13329 hardcode_direct_CXX=no
13330 hardcode_automatic_CXX=yes
13331 hardcode_shlibpath_var_CXX=unsupported
13332 if test "$lt_cv_ld_force_load" = "yes"; then
13333 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\"`'
13334
13335 else
13336 whole_archive_flag_spec_CXX=''
13337 fi
13338 link_all_deplibs_CXX=yes
13339 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13340 case $cc_basename in
13341 ifort*) _lt_dar_can_shared=yes ;;
13342 *) _lt_dar_can_shared=$GCC ;;
13343 esac
13344 if test "$_lt_dar_can_shared" = "yes"; then
13345 output_verbose_link_cmd=func_echo_all
13346 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}"
13347 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13348 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}"
13349 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}"
13350 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13351 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}"
13352 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}"
13353 fi
13354
13355 else
13356 ld_shlibs_CXX=no
13357 fi
13358
13359 ;;
13360
13361 dgux*)
13362 case $cc_basename in
13363 ec++*)
13364 # FIXME: insert proper C++ library support
13365 ld_shlibs_CXX=no
13366 ;;
13367 ghcx*)
13368 # Green Hills C++ Compiler
13369 # FIXME: insert proper C++ library support
13370 ld_shlibs_CXX=no
13371 ;;
13372 *)
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13375 ;;
13376 esac
13377 ;;
13378
13379 freebsd2.*)
13380 # C++ shared libraries reported to be fairly broken before
13381 # switch to ELF
13382 ld_shlibs_CXX=no
13383 ;;
13384
13385 freebsd-elf*)
13386 archive_cmds_need_lc_CXX=no
13387 ;;
13388
13389 freebsd* | dragonfly*)
13390 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13391 # conventions
13392 ld_shlibs_CXX=yes
13393 ;;
13394
13395 gnu*)
13396 ;;
13397
13398 haiku*)
13399 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13400 link_all_deplibs_CXX=yes
13401 ;;
13402
13403 hpux9*)
13404 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13405 hardcode_libdir_separator_CXX=:
13406 export_dynamic_flag_spec_CXX='${wl}-E'
13407 hardcode_direct_CXX=yes
13408 hardcode_minus_L_CXX=yes # Not in the search PATH,
13409 # but as the default
13410 # location of the library.
13411
13412 case $cc_basename in
13413 CC*)
13414 # FIXME: insert proper C++ library support
13415 ld_shlibs_CXX=no
13416 ;;
13417 aCC*)
13418 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13419 # Commands to make compiler produce verbose output that lists
13420 # what "hidden" libraries, object files and flags are used when
13421 # linking a shared library.
13422 #
13423 # There doesn't appear to be a way to prevent this compiler from
13424 # explicitly linking system object files so we need to strip them
13425 # from the output so that they don't get included in the library
13426 # dependencies.
13427 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"'
13428 ;;
13429 *)
13430 if test "$GXX" = yes; then
13431 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13432 else
13433 # FIXME: insert proper C++ library support
13434 ld_shlibs_CXX=no
13435 fi
13436 ;;
13437 esac
13438 ;;
13439
13440 hpux10*|hpux11*)
13441 if test $with_gnu_ld = no; then
13442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13443 hardcode_libdir_separator_CXX=:
13444
13445 case $host_cpu in
13446 hppa*64*|ia64*)
13447 ;;
13448 *)
13449 export_dynamic_flag_spec_CXX='${wl}-E'
13450 ;;
13451 esac
13452 fi
13453 case $host_cpu in
13454 hppa*64*|ia64*)
13455 hardcode_direct_CXX=no
13456 hardcode_shlibpath_var_CXX=no
13457 ;;
13458 *)
13459 hardcode_direct_CXX=yes
13460 hardcode_direct_absolute_CXX=yes
13461 hardcode_minus_L_CXX=yes # Not in the search PATH,
13462 # but as the default
13463 # location of the library.
13464 ;;
13465 esac
13466
13467 case $cc_basename in
13468 CC*)
13469 # FIXME: insert proper C++ library support
13470 ld_shlibs_CXX=no
13471 ;;
13472 aCC*)
13473 case $host_cpu in
13474 hppa*64*)
13475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13476 ;;
13477 ia64*)
13478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13479 ;;
13480 *)
13481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13482 ;;
13483 esac
13484 # Commands to make compiler produce verbose output that lists
13485 # what "hidden" libraries, object files and flags are used when
13486 # linking a shared library.
13487 #
13488 # There doesn't appear to be a way to prevent this compiler from
13489 # explicitly linking system object files so we need to strip them
13490 # from the output so that they don't get included in the library
13491 # dependencies.
13492 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"'
13493 ;;
13494 *)
13495 if test "$GXX" = yes; then
13496 if test $with_gnu_ld = no; then
13497 case $host_cpu in
13498 hppa*64*)
13499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13500 ;;
13501 ia64*)
13502 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13503 ;;
13504 *)
13505 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'
13506 ;;
13507 esac
13508 fi
13509 else
13510 # FIXME: insert proper C++ library support
13511 ld_shlibs_CXX=no
13512 fi
13513 ;;
13514 esac
13515 ;;
13516
13517 interix[3-9]*)
13518 hardcode_direct_CXX=no
13519 hardcode_shlibpath_var_CXX=no
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13521 export_dynamic_flag_spec_CXX='${wl}-E'
13522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13523 # Instead, shared libraries are loaded at an image base (0x10000000 by
13524 # default) and relocated if they conflict, which is a slow very memory
13525 # consuming and fragmenting process. To avoid this, we pick a random,
13526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13528 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'
13529 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'
13530 ;;
13531 irix5* | irix6*)
13532 case $cc_basename in
13533 CC*)
13534 # SGI C++
13535 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'
13536
13537 # Archives containing C++ object files must be created using
13538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13539 # necessary to make sure instantiated templates are included
13540 # in the archive.
13541 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13542 ;;
13543 *)
13544 if test "$GXX" = yes; then
13545 if test "$with_gnu_ld" = no; then
13546 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'
13547 else
13548 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'
13549 fi
13550 fi
13551 link_all_deplibs_CXX=yes
13552 ;;
13553 esac
13554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13555 hardcode_libdir_separator_CXX=:
13556 inherit_rpath_CXX=yes
13557 ;;
13558
13559 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13560 case $cc_basename in
13561 KCC*)
13562 # Kuck and Associates, Inc. (KAI) C++ Compiler
13563
13564 # KCC will only create a shared library if the output file
13565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13566 # to its proper name (with version) after linking.
13567 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'
13568 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'
13569 # Commands to make compiler produce verbose output that lists
13570 # what "hidden" libraries, object files and flags are used when
13571 # linking a shared library.
13572 #
13573 # There doesn't appear to be a way to prevent this compiler from
13574 # explicitly linking system object files so we need to strip them
13575 # from the output so that they don't get included in the library
13576 # dependencies.
13577 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"'
13578
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13581
13582 # Archives containing C++ object files must be created using
13583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13585 ;;
13586 icpc* | ecpc* )
13587 # Intel C++
13588 with_gnu_ld=yes
13589 # version 8.0 and above of icpc choke on multiply defined symbols
13590 # if we add $predep_objects and $postdep_objects, however 7.1 and
13591 # earlier do not add the objects themselves.
13592 case `$CC -V 2>&1` in
13593 *"Version 7."*)
13594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13595 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'
13596 ;;
13597 *) # Version 8.0 or newer
13598 tmp_idyn=
13599 case $host_cpu in
13600 ia64*) tmp_idyn=' -i_dynamic';;
13601 esac
13602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603 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'
13604 ;;
13605 esac
13606 archive_cmds_need_lc_CXX=no
13607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13609 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13610 ;;
13611 pgCC* | pgcpp*)
13612 # Portland Group C++ compiler
13613 case `$CC -V` in
13614 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13615 prelink_cmds_CXX='tpldir=Template.dir~
13616 rm -rf $tpldir~
13617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13618 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13619 old_archive_cmds_CXX='tpldir=Template.dir~
13620 rm -rf $tpldir~
13621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13623 $RANLIB $oldlib'
13624 archive_cmds_CXX='tpldir=Template.dir~
13625 rm -rf $tpldir~
13626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13628 archive_expsym_cmds_CXX='tpldir=Template.dir~
13629 rm -rf $tpldir~
13630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13631 $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'
13632 ;;
13633 *) # Version 6 and above use weak symbols
13634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13635 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'
13636 ;;
13637 esac
13638
13639 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13641 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'
13642 ;;
13643 cxx*)
13644 # Compaq C++
13645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13646 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'
13647
13648 runpath_var=LD_RUN_PATH
13649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13650 hardcode_libdir_separator_CXX=:
13651
13652 # Commands to make compiler produce verbose output that lists
13653 # what "hidden" libraries, object files and flags are used when
13654 # linking a shared library.
13655 #
13656 # There doesn't appear to be a way to prevent this compiler from
13657 # explicitly linking system object files so we need to strip them
13658 # from the output so that they don't get included in the library
13659 # dependencies.
13660 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'
13661 ;;
13662 xl* | mpixl* | bgxl*)
13663 # IBM XL 8.0 on PPC, with GNU ld
13664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13666 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13667 if test "x$supports_anon_versioning" = xyes; then
13668 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13670 echo "local: *; };" >> $output_objdir/$libname.ver~
13671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13672 fi
13673 ;;
13674 *)
13675 case `$CC -V 2>&1 | sed 5q` in
13676 *Sun\ C*)
13677 # Sun C++ 5.9
13678 no_undefined_flag_CXX=' -zdefs'
13679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13680 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'
13681 hardcode_libdir_flag_spec_CXX='-R$libdir'
13682 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'
13683 compiler_needs_object_CXX=yes
13684
13685 # Not sure whether something based on
13686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13687 # would be better.
13688 output_verbose_link_cmd='func_echo_all'
13689
13690 # Archives containing C++ object files must be created using
13691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13692 # necessary to make sure instantiated templates are included
13693 # in the archive.
13694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13695 ;;
13696 esac
13697 ;;
13698 esac
13699 ;;
13700
13701 lynxos*)
13702 # FIXME: insert proper C++ library support
13703 ld_shlibs_CXX=no
13704 ;;
13705
13706 m88k*)
13707 # FIXME: insert proper C++ library support
13708 ld_shlibs_CXX=no
13709 ;;
13710
13711 mvs*)
13712 case $cc_basename in
13713 cxx*)
13714 # FIXME: insert proper C++ library support
13715 ld_shlibs_CXX=no
13716 ;;
13717 *)
13718 # FIXME: insert proper C++ library support
13719 ld_shlibs_CXX=no
13720 ;;
13721 esac
13722 ;;
13723
13724 netbsd*)
13725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13727 wlarc=
13728 hardcode_libdir_flag_spec_CXX='-R$libdir'
13729 hardcode_direct_CXX=yes
13730 hardcode_shlibpath_var_CXX=no
13731 fi
13732 # Workaround some broken pre-1.5 toolchains
13733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13734 ;;
13735
13736 *nto* | *qnx*)
13737 ld_shlibs_CXX=yes
13738 ;;
13739
13740 openbsd2*)
13741 # C++ shared libraries are fairly broken
13742 ld_shlibs_CXX=no
13743 ;;
13744
13745 openbsd*)
13746 if test -f /usr/libexec/ld.so; then
13747 hardcode_direct_CXX=yes
13748 hardcode_shlibpath_var_CXX=no
13749 hardcode_direct_absolute_CXX=yes
13750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13754 export_dynamic_flag_spec_CXX='${wl}-E'
13755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13756 fi
13757 output_verbose_link_cmd=func_echo_all
13758 else
13759 ld_shlibs_CXX=no
13760 fi
13761 ;;
13762
13763 osf3* | osf4* | osf5*)
13764 case $cc_basename in
13765 KCC*)
13766 # Kuck and Associates, Inc. (KAI) C++ Compiler
13767
13768 # KCC will only create a shared library if the output file
13769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13770 # to its proper name (with version) after linking.
13771 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'
13772
13773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13774 hardcode_libdir_separator_CXX=:
13775
13776 # Archives containing C++ object files must be created using
13777 # the KAI C++ compiler.
13778 case $host in
13779 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13780 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13781 esac
13782 ;;
13783 RCC*)
13784 # Rational C++ 2.4.1
13785 # FIXME: insert proper C++ library support
13786 ld_shlibs_CXX=no
13787 ;;
13788 cxx*)
13789 case $host in
13790 osf3*)
13791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13792 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'
13793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13794 ;;
13795 *)
13796 allow_undefined_flag_CXX=' -expect_unresolved \*'
13797 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'
13798 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13799 echo "-hidden">> $lib.exp~
13800 $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~
13801 $RM $lib.exp'
13802 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13803 ;;
13804 esac
13805
13806 hardcode_libdir_separator_CXX=:
13807
13808 # Commands to make compiler produce verbose output that lists
13809 # what "hidden" libraries, object files and flags are used when
13810 # linking a shared library.
13811 #
13812 # There doesn't appear to be a way to prevent this compiler from
13813 # explicitly linking system object files so we need to strip them
13814 # from the output so that they don't get included in the library
13815 # dependencies.
13816 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"'
13817 ;;
13818 *)
13819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13821 case $host in
13822 osf3*)
13823 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'
13824 ;;
13825 *)
13826 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'
13827 ;;
13828 esac
13829
13830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13831 hardcode_libdir_separator_CXX=:
13832
13833 # Commands to make compiler produce verbose output that lists
13834 # what "hidden" libraries, object files and flags are used when
13835 # linking a shared library.
13836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13837
13838 else
13839 # FIXME: insert proper C++ library support
13840 ld_shlibs_CXX=no
13841 fi
13842 ;;
13843 esac
13844 ;;
13845
13846 psos*)
13847 # FIXME: insert proper C++ library support
13848 ld_shlibs_CXX=no
13849 ;;
13850
13851 sunos4*)
13852 case $cc_basename in
13853 CC*)
13854 # Sun C++ 4.x
13855 # FIXME: insert proper C++ library support
13856 ld_shlibs_CXX=no
13857 ;;
13858 lcc*)
13859 # Lucid
13860 # FIXME: insert proper C++ library support
13861 ld_shlibs_CXX=no
13862 ;;
13863 *)
13864 # FIXME: insert proper C++ library support
13865 ld_shlibs_CXX=no
13866 ;;
13867 esac
13868 ;;
13869
13870 solaris*)
13871 case $cc_basename in
13872 CC* | sunCC*)
13873 # Sun C++ 4.2, 5.x and Centerline C++
13874 archive_cmds_need_lc_CXX=yes
13875 no_undefined_flag_CXX=' -zdefs'
13876 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13878 $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'
13879
13880 hardcode_libdir_flag_spec_CXX='-R$libdir'
13881 hardcode_shlibpath_var_CXX=no
13882 case $host_os in
13883 solaris2.[0-5] | solaris2.[0-5].*) ;;
13884 *)
13885 # The compiler driver will combine and reorder linker options,
13886 # but understands `-z linker_flag'.
13887 # Supported since Solaris 2.6 (maybe 2.5.1?)
13888 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13889 ;;
13890 esac
13891 link_all_deplibs_CXX=yes
13892
13893 output_verbose_link_cmd='func_echo_all'
13894
13895 # Archives containing C++ object files must be created using
13896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13897 # necessary to make sure instantiated templates are included
13898 # in the archive.
13899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13900 ;;
13901 gcx*)
13902 # Green Hills C++ Compiler
13903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13904
13905 # The C++ compiler must be used to create the archive.
13906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13907 ;;
13908 *)
13909 # GNU C++ compiler with Solaris linker
13910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13912 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13913 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13914 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13915 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13916
13917 # Commands to make compiler produce verbose output that lists
13918 # what "hidden" libraries, object files and flags are used when
13919 # linking a shared library.
13920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13921 else
13922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13923 # platform.
13924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13927
13928 # Commands to make compiler produce verbose output that lists
13929 # what "hidden" libraries, object files and flags are used when
13930 # linking a shared library.
13931 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13932 fi
13933
13934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13935 case $host_os in
13936 solaris2.[0-5] | solaris2.[0-5].*) ;;
13937 *)
13938 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13939 ;;
13940 esac
13941 fi
13942 ;;
13943 esac
13944 ;;
13945
13946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13947 no_undefined_flag_CXX='${wl}-z,text'
13948 archive_cmds_need_lc_CXX=no
13949 hardcode_shlibpath_var_CXX=no
13950 runpath_var='LD_RUN_PATH'
13951
13952 case $cc_basename in
13953 CC*)
13954 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 ;;
13957 *)
13958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 ;;
13961 esac
13962 ;;
13963
13964 sysv5* | sco3.2v5* | sco5v6*)
13965 # Note: We can NOT use -z defs as we might desire, because we do not
13966 # link with -lc, and that would cause any symbols used from libc to
13967 # always be unresolved, which means just about no library would
13968 # ever link correctly. If we're not using GNU ld we use -z text
13969 # though, which does catch some bad symbols but isn't as heavy-handed
13970 # as -z defs.
13971 no_undefined_flag_CXX='${wl}-z,text'
13972 allow_undefined_flag_CXX='${wl}-z,nodefs'
13973 archive_cmds_need_lc_CXX=no
13974 hardcode_shlibpath_var_CXX=no
13975 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13976 hardcode_libdir_separator_CXX=':'
13977 link_all_deplibs_CXX=yes
13978 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13979 runpath_var='LD_RUN_PATH'
13980
13981 case $cc_basename in
13982 CC*)
13983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13985 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13986 '"$old_archive_cmds_CXX"
13987 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13988 '"$reload_cmds_CXX"
13989 ;;
13990 *)
13991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13993 ;;
13994 esac
13995 ;;
13996
13997 tandem*)
13998 case $cc_basename in
13999 NCC*)
14000 # NonStop-UX NCC 3.20
14001 # FIXME: insert proper C++ library support
14002 ld_shlibs_CXX=no
14003 ;;
14004 *)
14005 # FIXME: insert proper C++ library support
14006 ld_shlibs_CXX=no
14007 ;;
14008 esac
14009 ;;
14010
14011 vxworks*)
14012 # FIXME: insert proper C++ library support
14013 ld_shlibs_CXX=no
14014 ;;
14015
14016 *)
14017 # FIXME: insert proper C++ library support
14018 ld_shlibs_CXX=no
14019 ;;
14020 esac
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14023$as_echo "$ld_shlibs_CXX" >&6; }
14024 test "$ld_shlibs_CXX" = no && can_build_shared=no
14025
14026 GCC_CXX="$GXX"
14027 LD_CXX="$LD"
14028
14029 ## CAVEAT EMPTOR:
14030 ## There is no encapsulation within the following macros, do not change
14031 ## the running order or otherwise move them around unless you know exactly
14032 ## what you are doing...
14033 # Dependencies to place before and after the object being linked:
14034predep_objects_CXX=
14035postdep_objects_CXX=
14036predeps_CXX=
14037postdeps_CXX=
14038compiler_lib_search_path_CXX=
14039
14040cat > conftest.$ac_ext <<_LT_EOF
14041class Foo
14042{
14043public:
14044 Foo (void) { a = 0; }
14045private:
14046 int a;
14047};
14048_LT_EOF
14049
14050
14051_lt_libdeps_save_CFLAGS=$CFLAGS
14052case "$CC $CFLAGS " in #(
14053*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14054*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14055*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14056esac
14057
14058if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14059 (eval $ac_compile) 2>&5
14060 ac_status=$?
14061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14062 test $ac_status = 0; }; then
14063 # Parse the compiler output and extract the necessary
14064 # objects, libraries and library flags.
14065
14066 # Sentinel used to keep track of whether or not we are before
14067 # the conftest object file.
14068 pre_test_object_deps_done=no
14069
14070 for p in `eval "$output_verbose_link_cmd"`; do
14071 case ${prev}${p} in
14072
14073 -L* | -R* | -l*)
14074 # Some compilers place space between "-{L,R}" and the path.
14075 # Remove the space.
14076 if test $p = "-L" ||
14077 test $p = "-R"; then
14078 prev=$p
14079 continue
14080 fi
14081
14082 # Expand the sysroot to ease extracting the directories later.
14083 if test -z "$prev"; then
14084 case $p in
14085 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14086 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14087 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14088 esac
14089 fi
14090 case $p in
14091 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14092 esac
14093 if test "$pre_test_object_deps_done" = no; then
14094 case ${prev} in
14095 -L | -R)
14096 # Internal compiler library paths should come after those
14097 # provided the user. The postdeps already come after the
14098 # user supplied libs so there is no need to process them.
14099 if test -z "$compiler_lib_search_path_CXX"; then
14100 compiler_lib_search_path_CXX="${prev}${p}"
14101 else
14102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14103 fi
14104 ;;
14105 # The "-l" case would never come before the object being
14106 # linked, so don't bother handling this case.
14107 esac
14108 else
14109 if test -z "$postdeps_CXX"; then
14110 postdeps_CXX="${prev}${p}"
14111 else
14112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14113 fi
14114 fi
14115 prev=
14116 ;;
14117
14118 *.lto.$objext) ;; # Ignore GCC LTO objects
14119 *.$objext)
14120 # This assumes that the test object file only shows up
14121 # once in the compiler output.
14122 if test "$p" = "conftest.$objext"; then
14123 pre_test_object_deps_done=yes
14124 continue
14125 fi
14126
14127 if test "$pre_test_object_deps_done" = no; then
14128 if test -z "$predep_objects_CXX"; then
14129 predep_objects_CXX="$p"
14130 else
14131 predep_objects_CXX="$predep_objects_CXX $p"
14132 fi
14133 else
14134 if test -z "$postdep_objects_CXX"; then
14135 postdep_objects_CXX="$p"
14136 else
14137 postdep_objects_CXX="$postdep_objects_CXX $p"
14138 fi
14139 fi
14140 ;;
14141
14142 *) ;; # Ignore the rest.
14143
14144 esac
14145 done
14146
14147 # Clean up.
14148 rm -f a.out a.exe
14149else
14150 echo "libtool.m4: error: problem compiling CXX test program"
14151fi
14152
14153$RM -f confest.$objext
14154CFLAGS=$_lt_libdeps_save_CFLAGS
14155
14156# PORTME: override above test on systems where it is broken
14157case $host_os in
14158interix[3-9]*)
14159 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14160 # hack all around it, let's just trust "g++" to DTRT.
14161 predep_objects_CXX=
14162 postdep_objects_CXX=
14163 postdeps_CXX=
14164 ;;
14165
14166linux*)
14167 case `$CC -V 2>&1 | sed 5q` in
14168 *Sun\ C*)
14169 # Sun C++ 5.9
14170
14171 # The more standards-conforming stlport4 library is
14172 # incompatible with the Cstd library. Avoid specifying
14173 # it if it's in CXXFLAGS. Ignore libCrun as
14174 # -library=stlport4 depends on it.
14175 case " $CXX $CXXFLAGS " in
14176 *" -library=stlport4 "*)
14177 solaris_use_stlport4=yes
14178 ;;
14179 esac
14180
14181 if test "$solaris_use_stlport4" != yes; then
14182 postdeps_CXX='-library=Cstd -library=Crun'
14183 fi
14184 ;;
14185 esac
14186 ;;
14187
14188solaris*)
14189 case $cc_basename in
14190 CC* | sunCC*)
14191 # The more standards-conforming stlport4 library is
14192 # incompatible with the Cstd library. Avoid specifying
14193 # it if it's in CXXFLAGS. Ignore libCrun as
14194 # -library=stlport4 depends on it.
14195 case " $CXX $CXXFLAGS " in
14196 *" -library=stlport4 "*)
14197 solaris_use_stlport4=yes
14198 ;;
14199 esac
14200
14201 # Adding this requires a known-good setup of shared libraries for
14202 # Sun compiler versions before 5.6, else PIC objects from an old
14203 # archive will be linked into the output, leading to subtle bugs.
14204 if test "$solaris_use_stlport4" != yes; then
14205 postdeps_CXX='-library=Cstd -library=Crun'
14206 fi
14207 ;;
14208 esac
14209 ;;
14210esac
14211
14212
14213case " $postdeps_CXX " in
14214*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14215esac
14216 compiler_lib_search_dirs_CXX=
14217if test -n "${compiler_lib_search_path_CXX}"; then
14218 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14219fi
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251 lt_prog_compiler_wl_CXX=
14252lt_prog_compiler_pic_CXX=
14253lt_prog_compiler_static_CXX=
14254
14255
14256 # C++ specific cases for pic, static, wl, etc.
14257 if test "$GXX" = yes; then
14258 lt_prog_compiler_wl_CXX='-Wl,'
14259 lt_prog_compiler_static_CXX='-static'
14260
14261 case $host_os in
14262 aix*)
14263 # All AIX code is PIC.
14264 if test "$host_cpu" = ia64; then
14265 # AIX 5 now supports IA64 processor
14266 lt_prog_compiler_static_CXX='-Bstatic'
14267 fi
14268 ;;
14269
14270 amigaos*)
14271 case $host_cpu in
14272 powerpc)
14273 # see comment about AmigaOS4 .so support
14274 lt_prog_compiler_pic_CXX='-fPIC'
14275 ;;
14276 m68k)
14277 # FIXME: we need at least 68020 code to build shared libraries, but
14278 # adding the `-m68020' flag to GCC prevents building anything better,
14279 # like `-m68040'.
14280 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14281 ;;
14282 esac
14283 ;;
14284
14285 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14286 # PIC is the default for these OSes.
14287 ;;
14288 mingw* | cygwin* | os2* | pw32* | cegcc*)
14289 # This hack is so that the source file can tell whether it is being
14290 # built for inclusion in a dll (and should export symbols for example).
14291 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14292 # (--disable-auto-import) libraries
14293 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14294 ;;
14295 darwin* | rhapsody*)
14296 # PIC is the default on this platform
14297 # Common symbols not allowed in MH_DYLIB files
14298 lt_prog_compiler_pic_CXX='-fno-common'
14299 ;;
14300 *djgpp*)
14301 # DJGPP does not support shared libraries at all
14302 lt_prog_compiler_pic_CXX=
14303 ;;
14304 haiku*)
14305 # PIC is the default for Haiku.
14306 # The "-static" flag exists, but is broken.
14307 lt_prog_compiler_static_CXX=
14308 ;;
14309 interix[3-9]*)
14310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14311 # Instead, we relocate shared libraries at runtime.
14312 ;;
14313 sysv4*MP*)
14314 if test -d /usr/nec; then
14315 lt_prog_compiler_pic_CXX=-Kconform_pic
14316 fi
14317 ;;
14318 hpux*)
14319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14321 # sets the default TLS model and affects inlining.
14322 case $host_cpu in
14323 hppa*64*)
14324 ;;
14325 *)
14326 lt_prog_compiler_pic_CXX='-fPIC'
14327 ;;
14328 esac
14329 ;;
14330 *qnx* | *nto*)
14331 # QNX uses GNU C++, but need to define -shared option too, otherwise
14332 # it will coredump.
14333 lt_prog_compiler_pic_CXX='-fPIC -shared'
14334 ;;
14335 *)
14336 lt_prog_compiler_pic_CXX='-fPIC'
14337 ;;
14338 esac
14339 else
14340 case $host_os in
14341 aix[4-9]*)
14342 # All AIX code is PIC.
14343 if test "$host_cpu" = ia64; then
14344 # AIX 5 now supports IA64 processor
14345 lt_prog_compiler_static_CXX='-Bstatic'
14346 else
14347 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14348 fi
14349 ;;
14350 chorus*)
14351 case $cc_basename in
14352 cxch68*)
14353 # Green Hills C++ Compiler
14354 # _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"
14355 ;;
14356 esac
14357 ;;
14358 mingw* | cygwin* | os2* | pw32* | cegcc*)
14359 # This hack is so that the source file can tell whether it is being
14360 # built for inclusion in a dll (and should export symbols for example).
14361 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14362 ;;
14363 dgux*)
14364 case $cc_basename in
14365 ec++*)
14366 lt_prog_compiler_pic_CXX='-KPIC'
14367 ;;
14368 ghcx*)
14369 # Green Hills C++ Compiler
14370 lt_prog_compiler_pic_CXX='-pic'
14371 ;;
14372 *)
14373 ;;
14374 esac
14375 ;;
14376 freebsd* | dragonfly*)
14377 # FreeBSD uses GNU C++
14378 ;;
14379 hpux9* | hpux10* | hpux11*)
14380 case $cc_basename in
14381 CC*)
14382 lt_prog_compiler_wl_CXX='-Wl,'
14383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14384 if test "$host_cpu" != ia64; then
14385 lt_prog_compiler_pic_CXX='+Z'
14386 fi
14387 ;;
14388 aCC*)
14389 lt_prog_compiler_wl_CXX='-Wl,'
14390 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14391 case $host_cpu in
14392 hppa*64*|ia64*)
14393 # +Z the default
14394 ;;
14395 *)
14396 lt_prog_compiler_pic_CXX='+Z'
14397 ;;
14398 esac
14399 ;;
14400 *)
14401 ;;
14402 esac
14403 ;;
14404 interix*)
14405 # This is c89, which is MS Visual C++ (no shared libs)
14406 # Anyone wants to do a port?
14407 ;;
14408 irix5* | irix6* | nonstopux*)
14409 case $cc_basename in
14410 CC*)
14411 lt_prog_compiler_wl_CXX='-Wl,'
14412 lt_prog_compiler_static_CXX='-non_shared'
14413 # CC pic flag -KPIC is the default.
14414 ;;
14415 *)
14416 ;;
14417 esac
14418 ;;
14419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14420 case $cc_basename in
14421 KCC*)
14422 # KAI C++ Compiler
14423 lt_prog_compiler_wl_CXX='--backend -Wl,'
14424 lt_prog_compiler_pic_CXX='-fPIC'
14425 ;;
14426 ecpc* )
14427 # old Intel C++ for x86_64 which still supported -KPIC.
14428 lt_prog_compiler_wl_CXX='-Wl,'
14429 lt_prog_compiler_pic_CXX='-KPIC'
14430 lt_prog_compiler_static_CXX='-static'
14431 ;;
14432 icpc* )
14433 # Intel C++, used to be incompatible with GCC.
14434 # ICC 10 doesn't accept -KPIC any more.
14435 lt_prog_compiler_wl_CXX='-Wl,'
14436 lt_prog_compiler_pic_CXX='-fPIC'
14437 lt_prog_compiler_static_CXX='-static'
14438 ;;
14439 pgCC* | pgcpp*)
14440 # Portland Group C++ compiler
14441 lt_prog_compiler_wl_CXX='-Wl,'
14442 lt_prog_compiler_pic_CXX='-fpic'
14443 lt_prog_compiler_static_CXX='-Bstatic'
14444 ;;
14445 cxx*)
14446 # Compaq C++
14447 # Make sure the PIC flag is empty. It appears that all Alpha
14448 # Linux and Compaq Tru64 Unix objects are PIC.
14449 lt_prog_compiler_pic_CXX=
14450 lt_prog_compiler_static_CXX='-non_shared'
14451 ;;
14452 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14453 # IBM XL 8.0, 9.0 on PPC and BlueGene
14454 lt_prog_compiler_wl_CXX='-Wl,'
14455 lt_prog_compiler_pic_CXX='-qpic'
14456 lt_prog_compiler_static_CXX='-qstaticlink'
14457 ;;
14458 *)
14459 case `$CC -V 2>&1 | sed 5q` in
14460 *Sun\ C*)
14461 # Sun C++ 5.9
14462 lt_prog_compiler_pic_CXX='-KPIC'
14463 lt_prog_compiler_static_CXX='-Bstatic'
14464 lt_prog_compiler_wl_CXX='-Qoption ld '
14465 ;;
14466 esac
14467 ;;
14468 esac
14469 ;;
14470 lynxos*)
14471 ;;
14472 m88k*)
14473 ;;
14474 mvs*)
14475 case $cc_basename in
14476 cxx*)
14477 lt_prog_compiler_pic_CXX='-W c,exportall'
14478 ;;
14479 *)
14480 ;;
14481 esac
14482 ;;
14483 netbsd*)
14484 ;;
14485 *qnx* | *nto*)
14486 # QNX uses GNU C++, but need to define -shared option too, otherwise
14487 # it will coredump.
14488 lt_prog_compiler_pic_CXX='-fPIC -shared'
14489 ;;
14490 osf3* | osf4* | osf5*)
14491 case $cc_basename in
14492 KCC*)
14493 lt_prog_compiler_wl_CXX='--backend -Wl,'
14494 ;;
14495 RCC*)
14496 # Rational C++ 2.4.1
14497 lt_prog_compiler_pic_CXX='-pic'
14498 ;;
14499 cxx*)
14500 # Digital/Compaq C++
14501 lt_prog_compiler_wl_CXX='-Wl,'
14502 # Make sure the PIC flag is empty. It appears that all Alpha
14503 # Linux and Compaq Tru64 Unix objects are PIC.
14504 lt_prog_compiler_pic_CXX=
14505 lt_prog_compiler_static_CXX='-non_shared'
14506 ;;
14507 *)
14508 ;;
14509 esac
14510 ;;
14511 psos*)
14512 ;;
14513 solaris*)
14514 case $cc_basename in
14515 CC* | sunCC*)
14516 # Sun C++ 4.2, 5.x and Centerline C++
14517 lt_prog_compiler_pic_CXX='-KPIC'
14518 lt_prog_compiler_static_CXX='-Bstatic'
14519 lt_prog_compiler_wl_CXX='-Qoption ld '
14520 ;;
14521 gcx*)
14522 # Green Hills C++ Compiler
14523 lt_prog_compiler_pic_CXX='-PIC'
14524 ;;
14525 *)
14526 ;;
14527 esac
14528 ;;
14529 sunos4*)
14530 case $cc_basename in
14531 CC*)
14532 # Sun C++ 4.x
14533 lt_prog_compiler_pic_CXX='-pic'
14534 lt_prog_compiler_static_CXX='-Bstatic'
14535 ;;
14536 lcc*)
14537 # Lucid
14538 lt_prog_compiler_pic_CXX='-pic'
14539 ;;
14540 *)
14541 ;;
14542 esac
14543 ;;
14544 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14545 case $cc_basename in
14546 CC*)
14547 lt_prog_compiler_wl_CXX='-Wl,'
14548 lt_prog_compiler_pic_CXX='-KPIC'
14549 lt_prog_compiler_static_CXX='-Bstatic'
14550 ;;
14551 esac
14552 ;;
14553 tandem*)
14554 case $cc_basename in
14555 NCC*)
14556 # NonStop-UX NCC 3.20
14557 lt_prog_compiler_pic_CXX='-KPIC'
14558 ;;
14559 *)
14560 ;;
14561 esac
14562 ;;
14563 vxworks*)
14564 ;;
14565 *)
14566 lt_prog_compiler_can_build_shared_CXX=no
14567 ;;
14568 esac
14569 fi
14570
14571case $host_os in
14572 # For platforms which do not support PIC, -DPIC is meaningless:
14573 *djgpp*)
14574 lt_prog_compiler_pic_CXX=
14575 ;;
14576 *)
14577 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14578 ;;
14579esac
14580
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14582$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14583if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585else
14586 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14589$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14590lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14591
14592#
14593# Check to make sure the PIC flag actually works.
14594#
14595if test -n "$lt_prog_compiler_pic_CXX"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14597$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14598if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600else
14601 lt_cv_prog_compiler_pic_works_CXX=no
14602 ac_outfile=conftest.$ac_objext
14603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14604 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14605 # Insert the option either (1) after the last *FLAGS variable, or
14606 # (2) before a word containing "conftest.", or (3) at the end.
14607 # Note that $ac_compile itself does not contain backslashes and begins
14608 # with a dollar sign (not a hyphen), so the echo should work correctly.
14609 # The option is referenced via a variable to avoid confusing sed.
14610 lt_compile=`echo "$ac_compile" | $SED \
14611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613 -e 's:$: $lt_compiler_flag:'`
14614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14615 (eval "$lt_compile" 2>conftest.err)
14616 ac_status=$?
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 if (exit $ac_status) && test -s "$ac_outfile"; then
14620 # The compiler can only warn and ignore the option if not recognized
14621 # So say no if there are warnings other than the usual output.
14622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14625 lt_cv_prog_compiler_pic_works_CXX=yes
14626 fi
14627 fi
14628 $RM -r conftest*
14629
14630fi
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14632$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14633
14634if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14635 case $lt_prog_compiler_pic_CXX in
14636 "" | " "*) ;;
14637 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14638 esac
14639else
14640 lt_prog_compiler_pic_CXX=
14641 lt_prog_compiler_can_build_shared_CXX=no
14642fi
14643
14644fi
14645
14646
14647
14648
14649
14650#
14651# Check to make sure the static flag actually works.
14652#
14653wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14655$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14656if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658else
14659 lt_cv_prog_compiler_static_works_CXX=no
14660 save_LDFLAGS="$LDFLAGS"
14661 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14664 # The linker can only warn and ignore the option if not recognized
14665 # So say no if there are warnings
14666 if test -s conftest.err; then
14667 # Append any errors to the config.log.
14668 cat conftest.err 1>&5
14669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14671 if diff conftest.exp conftest.er2 >/dev/null; then
14672 lt_cv_prog_compiler_static_works_CXX=yes
14673 fi
14674 else
14675 lt_cv_prog_compiler_static_works_CXX=yes
14676 fi
14677 fi
14678 $RM -r conftest*
14679 LDFLAGS="$save_LDFLAGS"
14680
14681fi
14682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14683$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14684
14685if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14686 :
14687else
14688 lt_prog_compiler_static_CXX=
14689fi
14690
14691
14692
14693
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14696if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698else
14699 lt_cv_prog_compiler_c_o_CXX=no
14700 $RM -r conftest 2>/dev/null
14701 mkdir conftest
14702 cd conftest
14703 mkdir out
14704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14705
14706 lt_compiler_flag="-o out/conftest2.$ac_objext"
14707 # Insert the option either (1) after the last *FLAGS variable, or
14708 # (2) before a word containing "conftest.", or (3) at the end.
14709 # Note that $ac_compile itself does not contain backslashes and begins
14710 # with a dollar sign (not a hyphen), so the echo should work correctly.
14711 lt_compile=`echo "$ac_compile" | $SED \
14712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14714 -e 's:$: $lt_compiler_flag:'`
14715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14716 (eval "$lt_compile" 2>out/conftest.err)
14717 ac_status=$?
14718 cat out/conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14721 then
14722 # The compiler can only warn and ignore the option if not recognized
14723 # So say no if there are warnings
14724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14727 lt_cv_prog_compiler_c_o_CXX=yes
14728 fi
14729 fi
14730 chmod u+w . 2>&5
14731 $RM -r conftest*
14732 # SGI C++ compiler will create directory out/ii_files/ for
14733 # template instantiation
14734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14735 $RM out/* && rmdir out
14736 cd ..
14737 $RM -r conftest
14738 $RM -r conftest*
14739
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14742$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14743
14744
14745
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14747$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14748if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750else
14751 lt_cv_prog_compiler_c_o_CXX=no
14752 $RM -r conftest 2>/dev/null
14753 mkdir conftest
14754 cd conftest
14755 mkdir out
14756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14757
14758 lt_compiler_flag="-o out/conftest2.$ac_objext"
14759 # Insert the option either (1) after the last *FLAGS variable, or
14760 # (2) before a word containing "conftest.", or (3) at the end.
14761 # Note that $ac_compile itself does not contain backslashes and begins
14762 # with a dollar sign (not a hyphen), so the echo should work correctly.
14763 lt_compile=`echo "$ac_compile" | $SED \
14764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14766 -e 's:$: $lt_compiler_flag:'`
14767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14768 (eval "$lt_compile" 2>out/conftest.err)
14769 ac_status=$?
14770 cat out/conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14773 then
14774 # The compiler can only warn and ignore the option if not recognized
14775 # So say no if there are warnings
14776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14779 lt_cv_prog_compiler_c_o_CXX=yes
14780 fi
14781 fi
14782 chmod u+w . 2>&5
14783 $RM -r conftest*
14784 # SGI C++ compiler will create directory out/ii_files/ for
14785 # template instantiation
14786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14787 $RM out/* && rmdir out
14788 cd ..
14789 $RM -r conftest
14790 $RM -r conftest*
14791
14792fi
14793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14794$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14795
14796
14797
14798
14799hard_links="nottested"
14800if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14801 # do not overwrite the value of need_locks provided by the user
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14803$as_echo_n "checking if we can lock with hard links... " >&6; }
14804 hard_links=yes
14805 $RM -r conftest*
14806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14807 touch conftest.a
14808 ln conftest.a conftest.b 2>&5 || hard_links=no
14809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14811$as_echo "$hard_links" >&6; }
14812 if test "$hard_links" = no; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14814$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14815 need_locks=warn
14816 fi
14817else
14818 need_locks=no
14819fi
14820
14821
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14824$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14825
14826 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14827 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14828 case $host_os in
14829 aix[4-9]*)
14830 # If we're using GNU nm, then we don't want the "-C" option.
14831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14832 # Also, AIX nm treats weak defined symbols like other global defined
14833 # symbols, whereas GNU nm marks them as "W".
14834 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14835 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14836 else
14837 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14838 fi
14839 ;;
14840 pw32*)
14841 export_symbols_cmds_CXX="$ltdll_cmds"
14842 ;;
14843 cygwin* | mingw* | cegcc*)
14844 case $cc_basename in
14845 cl*)
14846 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14847 ;;
14848 *)
14849 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'
14850 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14851 ;;
14852 esac
14853 ;;
14854 *)
14855 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14856 ;;
14857 esac
14858
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14860$as_echo "$ld_shlibs_CXX" >&6; }
14861test "$ld_shlibs_CXX" = no && can_build_shared=no
14862
14863with_gnu_ld_CXX=$with_gnu_ld
14864
14865
14866
14867
14868
14869
14870#
14871# Do we need to explicitly link libc?
14872#
14873case "x$archive_cmds_need_lc_CXX" in
14874x|xyes)
14875 # Assume -lc should be added
14876 archive_cmds_need_lc_CXX=yes
14877
14878 if test "$enable_shared" = yes && test "$GCC" = yes; then
14879 case $archive_cmds_CXX in
14880 *'~'*)
14881 # FIXME: we may have to deal with multi-command sequences.
14882 ;;
14883 '$CC '*)
14884 # Test whether the compiler implicitly links with -lc since on some
14885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14886 # to ld, don't add -lc before -lgcc.
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14888$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14889if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14890 $as_echo_n "(cached) " >&6
14891else
14892 $RM -r conftest*
14893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14894
14895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14896 (eval $ac_compile) 2>&5
14897 ac_status=$?
14898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14899 test $ac_status = 0; } 2>conftest.err; then
14900 soname=conftest
14901 lib=conftest
14902 libobjs=conftest.$ac_objext
14903 deplibs=
14904 wl=$lt_prog_compiler_wl_CXX
14905 pic_flag=$lt_prog_compiler_pic_CXX
14906 compiler_flags=-v
14907 linker_flags=-v
14908 verstring=
14909 output_objdir=.
14910 libname=conftest
14911 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14912 allow_undefined_flag_CXX=
14913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14914 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14915 ac_status=$?
14916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14917 test $ac_status = 0; }
14918 then
14919 lt_cv_archive_cmds_need_lc_CXX=no
14920 else
14921 lt_cv_archive_cmds_need_lc_CXX=yes
14922 fi
14923 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14924 else
14925 cat conftest.err 1>&5
14926 fi
14927 $RM -r conftest*
14928
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14931$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14932 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14933 ;;
14934 esac
14935 fi
14936 ;;
14937esac
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15001$as_echo_n "checking dynamic linker characteristics... " >&6; }
15002
15003library_names_spec=
15004libname_spec='lib$name'
15005soname_spec=
15006shrext_cmds=".so"
15007postinstall_cmds=
15008postuninstall_cmds=
15009finish_cmds=
15010finish_eval=
15011shlibpath_var=
15012shlibpath_overrides_runpath=unknown
15013version_type=none
15014dynamic_linker="$host_os ld.so"
15015sys_lib_dlsearch_path_spec="/lib /usr/lib"
15016need_lib_prefix=unknown
15017hardcode_into_libs=no
15018
15019# when you set need_version to no, make sure it does not cause -set_version
15020# flags to be left without arguments
15021need_version=unknown
15022
15023case $host_os in
15024aix3*)
15025 version_type=linux # correct to gnu/linux during the next big refactor
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15027 shlibpath_var=LIBPATH
15028
15029 # AIX 3 has no versioning support, so we append a major version to the name.
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 ;;
15032
15033aix[4-9]*)
15034 version_type=linux # correct to gnu/linux during the next big refactor
15035 need_lib_prefix=no
15036 need_version=no
15037 hardcode_into_libs=yes
15038 if test "$host_cpu" = ia64; then
15039 # AIX 5 supports IA64
15040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15041 shlibpath_var=LD_LIBRARY_PATH
15042 else
15043 # With GCC up to 2.95.x, collect2 would create an import file
15044 # for dependence libraries. The import file would start with
15045 # the line `#! .'. This would cause the generated library to
15046 # depend on `.', always an invalid library. This was fixed in
15047 # development snapshots of GCC prior to 3.0.
15048 case $host_os in
15049 aix4 | aix4.[01] | aix4.[01].*)
15050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15051 echo ' yes '
15052 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15053 :
15054 else
15055 can_build_shared=no
15056 fi
15057 ;;
15058 esac
15059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15060 # soname into executable. Probably we can add versioning support to
15061 # collect2, so additional links can be useful in future.
15062 if test "$aix_use_runtimelinking" = yes; then
15063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15064 # instead of lib<name>.a to let people know that these are not
15065 # typical AIX shared libraries.
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15067 else
15068 # We preserve .a as extension for shared libraries through AIX4.2
15069 # and later when we are not doing run time linking.
15070 library_names_spec='${libname}${release}.a $libname.a'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 fi
15073 shlibpath_var=LIBPATH
15074 fi
15075 ;;
15076
15077amigaos*)
15078 case $host_cpu in
15079 powerpc)
15080 # Since July 2007 AmigaOS4 officially supports .so libraries.
15081 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 ;;
15084 m68k)
15085 library_names_spec='$libname.ixlibrary $libname.a'
15086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15087 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15088 ;;
15089 esac
15090 ;;
15091
15092beos*)
15093 library_names_spec='${libname}${shared_ext}'
15094 dynamic_linker="$host_os ld.so"
15095 shlibpath_var=LIBRARY_PATH
15096 ;;
15097
15098bsdi[45]*)
15099 version_type=linux # correct to gnu/linux during the next big refactor
15100 need_version=no
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15107 # the default ld.so.conf also contains /usr/contrib/lib and
15108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15109 # libtool to hard-code these into programs
15110 ;;
15111
15112cygwin* | mingw* | pw32* | cegcc*)
15113 version_type=windows
15114 shrext_cmds=".dll"
15115 need_version=no
15116 need_lib_prefix=no
15117
15118 case $GCC,$cc_basename in
15119 yes,*)
15120 # gcc
15121 library_names_spec='$libname.dll.a'
15122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15123 postinstall_cmds='base_file=`basename \${file}`~
15124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15125 dldir=$destdir/`dirname \$dlpath`~
15126 test -d \$dldir || mkdir -p \$dldir~
15127 $install_prog $dir/$dlname \$dldir/$dlname~
15128 chmod a+x \$dldir/$dlname~
15129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15131 fi'
15132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15133 dlpath=$dir/\$dldll~
15134 $RM \$dlpath'
15135 shlibpath_overrides_runpath=yes
15136
15137 case $host_os in
15138 cygwin*)
15139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15140 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15141
15142 ;;
15143 mingw* | cegcc*)
15144 # MinGW DLLs use traditional 'lib' prefix
15145 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15146 ;;
15147 pw32*)
15148 # pw32 DLLs use 'pw' prefix rather than 'lib'
15149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15150 ;;
15151 esac
15152 dynamic_linker='Win32 ld.exe'
15153 ;;
15154
15155 *,cl*)
15156 # Native MSVC
15157 libname_spec='$name'
15158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15159 library_names_spec='${libname}.dll.lib'
15160
15161 case $build_os in
15162 mingw*)
15163 sys_lib_search_path_spec=
15164 lt_save_ifs=$IFS
15165 IFS=';'
15166 for lt_path in $LIB
15167 do
15168 IFS=$lt_save_ifs
15169 # Let DOS variable expansion print the short 8.3 style file name.
15170 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15171 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15172 done
15173 IFS=$lt_save_ifs
15174 # Convert to MSYS style.
15175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15176 ;;
15177 cygwin*)
15178 # Convert to unix form, then to dos form, then back to unix form
15179 # but this time dos style (no spaces!) so that the unix form looks
15180 # like /cygdrive/c/PROGRA~1:/cygdr...
15181 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15182 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15183 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15184 ;;
15185 *)
15186 sys_lib_search_path_spec="$LIB"
15187 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15188 # It is most probably a Windows format PATH.
15189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15190 else
15191 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15192 fi
15193 # FIXME: find the short name or the path components, as spaces are
15194 # common. (e.g. "Program Files" -> "PROGRA~1")
15195 ;;
15196 esac
15197
15198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15199 postinstall_cmds='base_file=`basename \${file}`~
15200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15201 dldir=$destdir/`dirname \$dlpath`~
15202 test -d \$dldir || mkdir -p \$dldir~
15203 $install_prog $dir/$dlname \$dldir/$dlname'
15204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15205 dlpath=$dir/\$dldll~
15206 $RM \$dlpath'
15207 shlibpath_overrides_runpath=yes
15208 dynamic_linker='Win32 link.exe'
15209 ;;
15210
15211 *)
15212 # Assume MSVC wrapper
15213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15214 dynamic_linker='Win32 ld.exe'
15215 ;;
15216 esac
15217 # FIXME: first we should search . and the directory the executable is in
15218 shlibpath_var=PATH
15219 ;;
15220
15221darwin* | rhapsody*)
15222 dynamic_linker="$host_os dyld"
15223 version_type=darwin
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15227 soname_spec='${libname}${release}${major}$shared_ext'
15228 shlibpath_overrides_runpath=yes
15229 shlibpath_var=DYLD_LIBRARY_PATH
15230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15231
15232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15233 ;;
15234
15235dgux*)
15236 version_type=linux # correct to gnu/linux during the next big refactor
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 ;;
15243
15244freebsd* | dragonfly*)
15245 # DragonFly does not have aout. When/if they implement a new
15246 # versioning mechanism, adjust this.
15247 if test -x /usr/bin/objformat; then
15248 objformat=`/usr/bin/objformat`
15249 else
15250 case $host_os in
15251 freebsd[23].*) objformat=aout ;;
15252 *) objformat=elf ;;
15253 esac
15254 fi
15255 version_type=freebsd-$objformat
15256 case $version_type in
15257 freebsd-elf*)
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15259 need_version=no
15260 need_lib_prefix=no
15261 ;;
15262 freebsd-*)
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15264 need_version=yes
15265 ;;
15266 esac
15267 shlibpath_var=LD_LIBRARY_PATH
15268 case $host_os in
15269 freebsd2.*)
15270 shlibpath_overrides_runpath=yes
15271 ;;
15272 freebsd3.[01]* | freebsdelf3.[01]*)
15273 shlibpath_overrides_runpath=yes
15274 hardcode_into_libs=yes
15275 ;;
15276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15278 shlibpath_overrides_runpath=no
15279 hardcode_into_libs=yes
15280 ;;
15281 *) # from 4.6 on, and DragonFly
15282 shlibpath_overrides_runpath=yes
15283 hardcode_into_libs=yes
15284 ;;
15285 esac
15286 ;;
15287
15288gnu*)
15289 version_type=linux # correct to gnu/linux during the next big refactor
15290 need_lib_prefix=no
15291 need_version=no
15292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15293 soname_spec='${libname}${release}${shared_ext}$major'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 shlibpath_overrides_runpath=no
15296 hardcode_into_libs=yes
15297 ;;
15298
15299haiku*)
15300 version_type=linux # correct to gnu/linux during the next big refactor
15301 need_lib_prefix=no
15302 need_version=no
15303 dynamic_linker="$host_os runtime_loader"
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LIBRARY_PATH
15307 shlibpath_overrides_runpath=yes
15308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15309 hardcode_into_libs=yes
15310 ;;
15311
15312hpux9* | hpux10* | hpux11*)
15313 # Give a soname corresponding to the major version so that dld.sl refuses to
15314 # link against other versions.
15315 version_type=sunos
15316 need_lib_prefix=no
15317 need_version=no
15318 case $host_cpu in
15319 ia64*)
15320 shrext_cmds='.so'
15321 hardcode_into_libs=yes
15322 dynamic_linker="$host_os dld.so"
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 if test "X$HPUX_IA64_MODE" = X32; then
15328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15329 else
15330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15331 fi
15332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15333 ;;
15334 hppa*64*)
15335 shrext_cmds='.sl'
15336 hardcode_into_libs=yes
15337 dynamic_linker="$host_os dld.sl"
15338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15344 ;;
15345 *)
15346 shrext_cmds='.sl'
15347 dynamic_linker="$host_os dld.sl"
15348 shlibpath_var=SHLIB_PATH
15349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 ;;
15353 esac
15354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15355 postinstall_cmds='chmod 555 $lib'
15356 # or fails outright, so override atomically:
15357 install_override_mode=555
15358 ;;
15359
15360interix[3-9]*)
15361 version_type=linux # correct to gnu/linux during the next big refactor
15362 need_lib_prefix=no
15363 need_version=no
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 shlibpath_overrides_runpath=no
15369 hardcode_into_libs=yes
15370 ;;
15371
15372irix5* | irix6* | nonstopux*)
15373 case $host_os in
15374 nonstopux*) version_type=nonstopux ;;
15375 *)
15376 if test "$lt_cv_prog_gnu_ld" = yes; then
15377 version_type=linux # correct to gnu/linux during the next big refactor
15378 else
15379 version_type=irix
15380 fi ;;
15381 esac
15382 need_lib_prefix=no
15383 need_version=no
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15386 case $host_os in
15387 irix5* | nonstopux*)
15388 libsuff= shlibsuff=
15389 ;;
15390 *)
15391 case $LD in # libtool.m4 will add one of these switches to LD
15392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15393 libsuff= shlibsuff= libmagic=32-bit;;
15394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15395 libsuff=32 shlibsuff=N32 libmagic=N32;;
15396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15398 *) libsuff= shlibsuff= libmagic=never-match;;
15399 esac
15400 ;;
15401 esac
15402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15403 shlibpath_overrides_runpath=no
15404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15406 hardcode_into_libs=yes
15407 ;;
15408
15409# No shared lib support for Linux oldld, aout, or coff.
15410linux*oldld* | linux*aout* | linux*coff*)
15411 dynamic_linker=no
15412 ;;
15413
15414# This must be glibc/ELF.
15415linux* | k*bsd*-gnu | kopensolaris*-gnu)
15416 version_type=linux # correct to gnu/linux during the next big refactor
15417 need_lib_prefix=no
15418 need_version=no
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 shlibpath_overrides_runpath=no
15424
15425 # Some binutils ld are patched to set DT_RUNPATH
15426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15427 $as_echo_n "(cached) " >&6
15428else
15429 lt_cv_shlibpath_overrides_runpath=no
15430 save_LDFLAGS=$LDFLAGS
15431 save_libdir=$libdir
15432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435/* end confdefs.h. */
15436
15437int
15438main ()
15439{
15440
15441 ;
15442 return 0;
15443}
15444_ACEOF
15445if ac_fn_cxx_try_link "$LINENO"; then :
15446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15447 lt_cv_shlibpath_overrides_runpath=yes
15448fi
15449fi
15450rm -f core conftest.err conftest.$ac_objext \
15451 conftest$ac_exeext conftest.$ac_ext
15452 LDFLAGS=$save_LDFLAGS
15453 libdir=$save_libdir
15454
15455fi
15456
15457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15458
15459 # This implies no fast_install, which is unacceptable.
15460 # Some rework will be needed to allow for fast_install
15461 # before this can be enabled.
15462 hardcode_into_libs=yes
15463
15464 # Append ld.so.conf contents to the search path
15465 if test -f /etc/ld.so.conf; then
15466 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' ' '`
15467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15468 fi
15469
15470 # We used to test for /lib/ld.so.1 and disable shared libraries on
15471 # powerpc, because MkLinux only supported shared libraries with the
15472 # GNU dynamic linker. Since this was broken with cross compilers,
15473 # most powerpc-linux boxes support dynamic linking these days and
15474 # people can always --disable-shared, the test was removed, and we
15475 # assume the GNU/Linux dynamic linker is in use.
15476 dynamic_linker='GNU/Linux ld.so'
15477 ;;
15478
15479netbsd*)
15480 version_type=sunos
15481 need_lib_prefix=no
15482 need_version=no
15483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15486 dynamic_linker='NetBSD (a.out) ld.so'
15487 else
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 dynamic_linker='NetBSD ld.elf_so'
15491 fi
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=yes
15494 hardcode_into_libs=yes
15495 ;;
15496
15497newsos6)
15498 version_type=linux # correct to gnu/linux during the next big refactor
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=yes
15502 ;;
15503
15504*nto* | *qnx*)
15505 version_type=qnx
15506 need_lib_prefix=no
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 shlibpath_overrides_runpath=no
15512 hardcode_into_libs=yes
15513 dynamic_linker='ldqnx.so'
15514 ;;
15515
15516openbsd*)
15517 version_type=sunos
15518 sys_lib_dlsearch_path_spec="/usr/lib"
15519 need_lib_prefix=no
15520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15521 case $host_os in
15522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15523 *) need_version=no ;;
15524 esac
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15529 case $host_os in
15530 openbsd2.[89] | openbsd2.[89].*)
15531 shlibpath_overrides_runpath=no
15532 ;;
15533 *)
15534 shlibpath_overrides_runpath=yes
15535 ;;
15536 esac
15537 else
15538 shlibpath_overrides_runpath=yes
15539 fi
15540 ;;
15541
15542os2*)
15543 libname_spec='$name'
15544 shrext_cmds=".dll"
15545 need_lib_prefix=no
15546 library_names_spec='$libname${shared_ext} $libname.a'
15547 dynamic_linker='OS/2 ld.exe'
15548 shlibpath_var=LIBPATH
15549 ;;
15550
15551osf3* | osf4* | osf5*)
15552 version_type=osf
15553 need_lib_prefix=no
15554 need_version=no
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15560 ;;
15561
15562rdos*)
15563 dynamic_linker=no
15564 ;;
15565
15566solaris*)
15567 version_type=linux # correct to gnu/linux during the next big refactor
15568 need_lib_prefix=no
15569 need_version=no
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 hardcode_into_libs=yes
15575 # ldd complains unless libraries are executable
15576 postinstall_cmds='chmod +x $lib'
15577 ;;
15578
15579sunos4*)
15580 version_type=sunos
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15585 if test "$with_gnu_ld" = yes; then
15586 need_lib_prefix=no
15587 fi
15588 need_version=yes
15589 ;;
15590
15591sysv4 | sysv4.3*)
15592 version_type=linux # correct to gnu/linux during the next big refactor
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 soname_spec='${libname}${release}${shared_ext}$major'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 case $host_vendor in
15597 sni)
15598 shlibpath_overrides_runpath=no
15599 need_lib_prefix=no
15600 runpath_var=LD_RUN_PATH
15601 ;;
15602 siemens)
15603 need_lib_prefix=no
15604 ;;
15605 motorola)
15606 need_lib_prefix=no
15607 need_version=no
15608 shlibpath_overrides_runpath=no
15609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15610 ;;
15611 esac
15612 ;;
15613
15614sysv4*MP*)
15615 if test -d /usr/nec ;then
15616 version_type=linux # correct to gnu/linux during the next big refactor
15617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15618 soname_spec='$libname${shared_ext}.$major'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 fi
15621 ;;
15622
15623sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15624 version_type=freebsd-elf
15625 need_lib_prefix=no
15626 need_version=no
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 hardcode_into_libs=yes
15632 if test "$with_gnu_ld" = yes; then
15633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15634 else
15635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15636 case $host_os in
15637 sco3.2v5*)
15638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15639 ;;
15640 esac
15641 fi
15642 sys_lib_dlsearch_path_spec='/usr/lib'
15643 ;;
15644
15645tpf*)
15646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15647 version_type=linux # correct to gnu/linux during the next big refactor
15648 need_lib_prefix=no
15649 need_version=no
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 shlibpath_overrides_runpath=no
15653 hardcode_into_libs=yes
15654 ;;
15655
15656uts4*)
15657 version_type=linux # correct to gnu/linux during the next big refactor
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 ;;
15662
15663*)
15664 dynamic_linker=no
15665 ;;
15666esac
15667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15668$as_echo "$dynamic_linker" >&6; }
15669test "$dynamic_linker" = no && can_build_shared=no
15670
15671variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15672if test "$GCC" = yes; then
15673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15674fi
15675
15676if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15678fi
15679if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15681fi
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15721$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15722hardcode_action_CXX=
15723if test -n "$hardcode_libdir_flag_spec_CXX" ||
15724 test -n "$runpath_var_CXX" ||
15725 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15726
15727 # We can hardcode non-existent directories.
15728 if test "$hardcode_direct_CXX" != no &&
15729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15730 # have to relink, otherwise we might link with an installed library
15731 # when we should be linking with a yet-to-be-installed one
15732 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15733 test "$hardcode_minus_L_CXX" != no; then
15734 # Linking always hardcodes the temporary library directory.
15735 hardcode_action_CXX=relink
15736 else
15737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15738 hardcode_action_CXX=immediate
15739 fi
15740else
15741 # We cannot hardcode anything, or else we can only hardcode existing
15742 # directories.
15743 hardcode_action_CXX=unsupported
15744fi
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15746$as_echo "$hardcode_action_CXX" >&6; }
15747
15748if test "$hardcode_action_CXX" = relink ||
15749 test "$inherit_rpath_CXX" = yes; then
15750 # Fast installation is not supported
15751 enable_fast_install=no
15752elif test "$shlibpath_overrides_runpath" = yes ||
15753 test "$enable_shared" = no; then
15754 # Fast installation is not necessary
15755 enable_fast_install=needless
15756fi
15757
15758
15759
15760
15761
15762
15763
15764 fi # test -n "$compiler"
15765
15766 CC=$lt_save_CC
15767 CFLAGS=$lt_save_CFLAGS
15768 LDCXX=$LD
15769 LD=$lt_save_LD
15770 GCC=$lt_save_GCC
15771 with_gnu_ld=$lt_save_with_gnu_ld
15772 lt_cv_path_LDCXX=$lt_cv_path_LD
15773 lt_cv_path_LD=$lt_save_path_LD
15774 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15775 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15776fi # test "$_lt_caught_CXX_error" != yes
15777
15778ac_ext=c
15779ac_cpp='$CPP $CPPFLAGS'
15780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15782ac_compiler_gnu=$ac_cv_c_compiler_gnu
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798 ac_config_commands="$ac_config_commands libtool"
15799
15800
15801
15802
15803# Only expand once:
15804
15805
15806
15807ac_ext=cpp
15808ac_cpp='$CXXCPP $CPPFLAGS'
15809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15812
15813
15814
15815
15816
15817
15818
15819
15820if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15821 if test -n "$ac_tool_prefix"; then
15822 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15823set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15825$as_echo_n "checking for $ac_word... " >&6; }
15826if ${ac_cv_path_PKG_CONFIG+:} false; then :
15827 $as_echo_n "(cached) " >&6
15828else
15829 case $PKG_CONFIG in
15830 [\\/]* | ?:[\\/]*)
15831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15832 ;;
15833 *)
15834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15835for as_dir in $PATH
15836do
15837 IFS=$as_save_IFS
15838 test -z "$as_dir" && as_dir=.
15839 for ac_exec_ext in '' $ac_executable_extensions; do
15840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15843 break 2
15844 fi
15845done
15846 done
15847IFS=$as_save_IFS
15848
15849 ;;
15850esac
15851fi
15852PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15853if test -n "$PKG_CONFIG"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15855$as_echo "$PKG_CONFIG" >&6; }
15856else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858$as_echo "no" >&6; }
15859fi
15860
15861
15862fi
15863if test -z "$ac_cv_path_PKG_CONFIG"; then
15864 ac_pt_PKG_CONFIG=$PKG_CONFIG
15865 # Extract the first word of "pkg-config", so it can be a program name with args.
15866set dummy pkg-config; ac_word=$2
15867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15868$as_echo_n "checking for $ac_word... " >&6; }
15869if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15870 $as_echo_n "(cached) " >&6
15871else
15872 case $ac_pt_PKG_CONFIG in
15873 [\\/]* | ?:[\\/]*)
15874 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15875 ;;
15876 *)
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878for as_dir in $PATH
15879do
15880 IFS=$as_save_IFS
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
15883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15886 break 2
15887 fi
15888done
15889 done
15890IFS=$as_save_IFS
15891
15892 ;;
15893esac
15894fi
15895ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15896if test -n "$ac_pt_PKG_CONFIG"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15898$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15899else
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901$as_echo "no" >&6; }
15902fi
15903
15904 if test "x$ac_pt_PKG_CONFIG" = x; then
15905 PKG_CONFIG=""
15906 else
15907 case $cross_compiling:$ac_tool_warned in
15908yes:)
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15911ac_tool_warned=yes ;;
15912esac
15913 PKG_CONFIG=$ac_pt_PKG_CONFIG
15914 fi
15915else
15916 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15917fi
15918
15919fi
15920if test -n "$PKG_CONFIG"; then
15921 _pkg_min_version=0.22
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15923$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15924 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15926$as_echo "yes" >&6; }
15927 else
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929$as_echo "no" >&6; }
15930 PKG_CONFIG=""
15931 fi
15932fi
15933
15934# Extract the first word of "git", so it can be a program name with args.
15935set dummy git; ac_word=$2
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937$as_echo_n "checking for $ac_word... " >&6; }
15938if ${ac_cv_path_GIT+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940else
15941 case $GIT in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947for as_dir in $PATH
15948do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957done
15958 done
15959IFS=$as_save_IFS
15960
15961 ;;
15962esac
15963fi
15964GIT=$ac_cv_path_GIT
15965if test -n "$GIT"; then
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
15967$as_echo "$GIT" >&6; }
15968else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970$as_echo "no" >&6; }
15971fi
15972
15973
15974# Extract the first word of "time", so it can be a program name with args.
15975set dummy time; ac_word=$2
15976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15977$as_echo_n "checking for $ac_word... " >&6; }
15978if ${ac_cv_path_TIME+:} false; then :
15979 $as_echo_n "(cached) " >&6
15980else
15981 case $TIME in
15982 [\\/]* | ?:[\\/]*)
15983 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
15984 ;;
15985 *)
15986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15987for as_dir in $PATH
15988do
15989 IFS=$as_save_IFS
15990 test -z "$as_dir" && as_dir=.
15991 for ac_exec_ext in '' $ac_executable_extensions; do
15992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15993 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
15994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15995 break 2
15996 fi
15997done
15998 done
15999IFS=$as_save_IFS
16000
16001 ;;
16002esac
16003fi
16004TIME=$ac_cv_path_TIME
16005if test -n "$TIME"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16007$as_echo "$TIME" >&6; }
16008else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010$as_echo "no" >&6; }
16011fi
16012
16013
16014
16015
16016
16017
16018
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16020$as_echo_n "checking for bison >= 2.3... " >&6; }
16021 if test -z "$BISON"; then
16022 ac_path_BISON_found=false
16023 # Loop through the user's path and test for each of PROGNAME-LIST
16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027 IFS=$as_save_IFS
16028 test -z "$as_dir" && as_dir=.
16029 for ac_prog in bison; do
16030 for ac_exec_ext in '' $ac_executable_extensions; do
16031 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16032 as_fn_executable_p "$ac_path_BISON" || continue
16033version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16034 if ${version:+false} :; then :
16035
16036else
16037 as_awk_strverscmp='
16038 # Use only awk features that work with 7th edition Unix awk (1978).
16039 # My, what an old awk you have, Mr. Solaris!
16040 END {
16041 while (length(v1) && length(v2)) {
16042 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16043 # Normally this is a single character, but if v1 and v2 contain digits,
16044 # compare them as integers and fractions as strverscmp does.
16045 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16046 # Split v1 and v2 into their leading digit string components d1 and d2,
16047 # and advance v1 and v2 past the leading digit strings.
16048 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16049 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16050 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16051 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16052 if (d1 ~ /^0/) {
16053 if (d2 ~ /^0/) {
16054 # Compare two fractions.
16055 while (d1 ~ /^0/ && d2 ~ /^0/) {
16056 d1 = substr(d1, 2); len1--
16057 d2 = substr(d2, 2); len2--
16058 }
16059 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16060 # The two components differ in length, and the common prefix
16061 # contains only leading zeros. Consider the longer to be less.
16062 d1 = -len1
16063 d2 = -len2
16064 } else {
16065 # Otherwise, compare as strings.
16066 d1 = "x" d1
16067 d2 = "x" d2
16068 }
16069 } else {
16070 # A fraction is less than an integer.
16071 exit 1
16072 }
16073 } else {
16074 if (d2 ~ /^0/) {
16075 # An integer is greater than a fraction.
16076 exit 2
16077 } else {
16078 # Compare two integers.
16079 d1 += 0
16080 d2 += 0
16081 }
16082 }
16083 } else {
16084 # The normal case, without worrying about digits.
16085 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16086 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16087 }
16088 if (d1 < d2) exit 1
16089 if (d1 > d2) exit 2
16090 }
16091 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16092 # which mishandles some comparisons of empty strings to integers.
16093 if (length(v2)) exit 1
16094 if (length(v1)) exit 2
16095 }
16096'
16097as_arg_v1=$version
16098as_arg_v2=2.3
16099awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16100case $? in #(
16101 1) :
16102 ;; #(
16103 0) :
16104 ac_cv_path_BISON=$ac_path_BISON ;; #(
16105 2) :
16106 ac_cv_path_BISON=$ac_path_BISON ;; #(
16107 *) :
16108 ;;
16109esac
16110fi
16111
16112 $ac_path_BISON_found && break 3
16113 done
16114 done
16115 done
16116IFS=$as_save_IFS
16117 if test -z "$ac_cv_path_BISON"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16119$as_echo "no" >&6; }
16120 fi
16121else
16122 ac_cv_path_BISON=$BISON
16123fi
16124
16125
16126 if true; then :
16127
16128 BISON=$ac_cv_path_BISON
16129
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16131$as_echo "$BISON" >&6; }
16132
16133else
16134 if true; then :
16135
16136 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16137
16138else
16139
16140 BISON=:
16141
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143$as_echo "no" >&6; }
16144
16145fi
16146fi
16147
16148
16149
16150
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16152$as_echo_n "checking for flex >= 2.5.33... " >&6; }
16153 if test -z "$FLEX"; then
16154 ac_path_FLEX_found=false
16155 # Loop through the user's path and test for each of PROGNAME-LIST
16156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16157for as_dir in $PATH
16158do
16159 IFS=$as_save_IFS
16160 test -z "$as_dir" && as_dir=.
16161 for ac_prog in flex; do
16162 for ac_exec_ext in '' $ac_executable_extensions; do
16163 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16164 as_fn_executable_p "$ac_path_FLEX" || continue
16165version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16166 if ${version:+false} :; then :
16167
16168else
16169 as_arg_v1=$version
16170as_arg_v2=2.5.33
16171awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16172case $? in #(
16173 1) :
16174 ;; #(
16175 0) :
16176 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16177 2) :
16178 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16179 *) :
16180 ;;
16181esac
16182fi
16183
16184 $ac_path_FLEX_found && break 3
16185 done
16186 done
16187 done
16188IFS=$as_save_IFS
16189 if test -z "$ac_cv_path_FLEX"; then
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191$as_echo "no" >&6; }
16192 fi
16193else
16194 ac_cv_path_FLEX=$FLEX
16195fi
16196
16197
16198 if true; then :
16199
16200 FLEX=$ac_cv_path_FLEX
16201
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16203$as_echo "$FLEX" >&6; }
16204
16205else
16206 if true; then :
16207
16208 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16209
16210else
16211
16212 FLEX=:
16213
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16215$as_echo "no" >&6; }
16216
16217fi
16218fi
16219
16220
16221
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16224$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16225 if test -z "$GPERF"; then
16226 ac_path_GPERF_found=false
16227 # Loop through the user's path and test for each of PROGNAME-LIST
16228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16229for as_dir in $PATH
16230do
16231 IFS=$as_save_IFS
16232 test -z "$as_dir" && as_dir=.
16233 for ac_prog in gperf; do
16234 for ac_exec_ext in '' $ac_executable_extensions; do
16235 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16236 as_fn_executable_p "$ac_path_GPERF" || continue
16237version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16238 if ${version:+false} :; then :
16239
16240else
16241 as_arg_v1=$version
16242as_arg_v2=3.0.3
16243awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16244case $? in #(
16245 1) :
16246 ;; #(
16247 0) :
16248 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16249 2) :
16250 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16251 *) :
16252 ;;
16253esac
16254fi
16255
16256 $ac_path_GPERF_found && break 3
16257 done
16258 done
16259 done
16260IFS=$as_save_IFS
16261 if test -z "$ac_cv_path_GPERF"; then
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263$as_echo "no" >&6; }
16264 fi
16265else
16266 ac_cv_path_GPERF=$GPERF
16267fi
16268
16269
16270 if true; then :
16271
16272 GPERF=$ac_cv_path_GPERF
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16275$as_echo "$GPERF" >&6; }
16276
16277else
16278 if true; then :
16279
16280 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16281
16282else
16283
16284 GPERF=:
16285
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16287$as_echo "no" >&6; }
16288
16289fi
16290fi
16291
16292
16293
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16296$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16297 if test -z "$GNUTAR"; then
16298 ac_path_GNUTAR_found=false
16299 # Loop through the user's path and test for each of PROGNAME-LIST
16300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301for as_dir in $PATH
16302do
16303 IFS=$as_save_IFS
16304 test -z "$as_dir" && as_dir=.
16305 for ac_prog in tar gtar gnutar; do
16306 for ac_exec_ext in '' $ac_executable_extensions; do
16307 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16308 as_fn_executable_p "$ac_path_GNUTAR" || continue
16309version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16310 if ${version:+false} :; then :
16311
16312else
16313 as_arg_v1=$version
16314as_arg_v2=1.19
16315awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16316case $? in #(
16317 1) :
16318 ;; #(
16319 0) :
16320 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16321 2) :
16322 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16323 *) :
16324 ;;
16325esac
16326fi
16327
16328 $ac_path_GNUTAR_found && break 3
16329 done
16330 done
16331 done
16332IFS=$as_save_IFS
16333 if test -z "$ac_cv_path_GNUTAR"; then
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16335$as_echo "no" >&6; }
16336 fi
16337else
16338 ac_cv_path_GNUTAR=$GNUTAR
16339fi
16340
16341
16342 if true; then :
16343
16344 GNUTAR=$ac_cv_path_GNUTAR
16345
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16347$as_echo "$GNUTAR" >&6; }
16348
16349else
16350 if true; then :
16351
16352 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16353
16354else
16355
16356 GNUTAR=:
16357
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359$as_echo "no" >&6; }
16360
16361fi
16362fi
16363
16364
16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16366$as_echo_n "checking bison for %code{}... " >&6; }
16367echo '%code{}%%_:' >conftest.y
16368if $BISON conftest.y -o/dev/null 2>/dev/null; then
16369
16370 for element in Bison24; do
16371 haveit=
16372 for x in $CY_FILTERS; do
16373
16374 acl_save_prefix="$prefix"
16375 prefix="$acl_final_prefix"
16376 acl_save_exec_prefix="$exec_prefix"
16377 exec_prefix="$acl_final_exec_prefix"
16378 eval x=\"$x\"
16379 exec_prefix="$acl_save_exec_prefix"
16380 prefix="$acl_save_prefix"
16381
16382 if test "X$x" = "X$element"; then
16383 haveit=yes
16384 break
16385 fi
16386 done
16387 if test -z "$haveit"; then
16388 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16389 fi
16390 done
16391
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16393$as_echo "yes" >&6; }
16394else
16395
16396 for element in Bison23; do
16397 haveit=
16398 for x in $CY_FILTERS; do
16399
16400 acl_save_prefix="$prefix"
16401 prefix="$acl_final_prefix"
16402 acl_save_exec_prefix="$exec_prefix"
16403 exec_prefix="$acl_final_exec_prefix"
16404 eval x=\"$x\"
16405 exec_prefix="$acl_save_exec_prefix"
16406 prefix="$acl_save_prefix"
16407
16408 if test "X$x" = "X$element"; then
16409 haveit=yes
16410 break
16411 fi
16412 done
16413 if test -z "$haveit"; then
16414 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16415 fi
16416 done
16417
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419$as_echo "no" >&6; }
16420fi
16421
16422rm -f conftest.y
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433if ${CFLAGS+:} false; then :
16434 case " $CFLAGS " in
16435 *" "*)
16436 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16437 (: CFLAGS already contains ) 2>&5
16438 ac_status=$?
16439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16440 test $ac_status = 0; }
16441 ;;
16442 *)
16443 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16444 (: CFLAGS="$CFLAGS ") 2>&5
16445 ac_status=$?
16446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16447 test $ac_status = 0; }
16448 CFLAGS="$CFLAGS "
16449 ;;
16450 esac
16451else
16452 CFLAGS=""
16453fi
16454
16455ac_ext=c
16456ac_cpp='$CPP $CPPFLAGS'
16457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16459ac_compiler_gnu=$ac_cv_c_compiler_gnu
16460
16461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16462$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16463if ${ac_cv_cflags_warn_all+:} false; then :
16464 $as_echo_n "(cached) " >&6
16465else
16466 ac_cv_cflags_warn_all="no, unknown"
16467ac_save_CFLAGS="$CFLAGS"
16468for 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" #
16469do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h. */
16472
16473int
16474main ()
16475{
16476
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481if ac_fn_c_try_compile "$LINENO"; then :
16482 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16483fi
16484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485done
16486CFLAGS="$ac_save_CFLAGS"
16487
16488fi
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16490$as_echo "$ac_cv_cflags_warn_all" >&6; }
16491
16492case ".$ac_cv_cflags_warn_all" in
16493 .ok|.ok,*) ;;
16494 .|.no|.no,*) ;;
16495 *) if ${CFLAGS+:} false; then :
16496 case " $CFLAGS " in
16497 *" $ac_cv_cflags_warn_all "*)
16498 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16499 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16500 ac_status=$?
16501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16502 test $ac_status = 0; }
16503 ;;
16504 *)
16505 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16506 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16507 ac_status=$?
16508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16509 test $ac_status = 0; }
16510 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16511 ;;
16512 esac
16513else
16514 CFLAGS="$ac_cv_cflags_warn_all"
16515fi
16516 ;;
16517esac
16518
16519ac_ext=cpp
16520ac_cpp='$CXXCPP $CPPFLAGS'
16521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16524
16525
16526ac_ext=cpp
16527ac_cpp='$CXXCPP $CPPFLAGS'
16528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16531
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16533$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16534if ${ac_cv_cxxflags_warn_all+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536else
16537 ac_cv_cxxflags_warn_all="no, unknown"
16538ac_save_CXXFLAGS="$CXXFLAGS"
16539for 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" #
16540do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542/* end confdefs.h. */
16543
16544int
16545main ()
16546{
16547
16548 ;
16549 return 0;
16550}
16551_ACEOF
16552if ac_fn_cxx_try_compile "$LINENO"; then :
16553 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16554fi
16555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16556done
16557CXXFLAGS="$ac_save_CXXFLAGS"
16558
16559fi
16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16561$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16562
16563case ".$ac_cv_cxxflags_warn_all" in
16564 .ok|.ok,*) ;;
16565 .|.no|.no,*) ;;
16566 *) if ${CXXFLAGS+:} false; then :
16567 case " $CXXFLAGS " in
16568 *" $ac_cv_cxxflags_warn_all "*)
16569 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16570 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16571 ac_status=$?
16572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16573 test $ac_status = 0; }
16574 ;;
16575 *)
16576 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16577 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16578 ac_status=$?
16579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580 test $ac_status = 0; }
16581 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16582 ;;
16583 esac
16584else
16585 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16586fi
16587 ;;
16588esac
16589
16590ac_ext=cpp
16591ac_cpp='$CXXCPP $CPPFLAGS'
16592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16595
16596
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16598$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16599if ${ac_cv_cxxflags_warn_all+:} false; then :
16600 $as_echo_n "(cached) " >&6
16601else
16602 ac_cv_cxxflags_warn_all="no, unknown"
16603ac_save_CXXFLAGS="$CXXFLAGS"
16604for 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" #
16605do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h. */
16608
16609int
16610main ()
16611{
16612
16613 ;
16614 return 0;
16615}
16616_ACEOF
16617if ac_fn_cxx_try_compile "$LINENO"; then :
16618 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16619fi
16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621done
16622CXXFLAGS="$ac_save_CXXFLAGS"
16623
16624fi
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16626$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16627
16628case ".$ac_cv_cxxflags_warn_all" in
16629 .ok|.ok,*) ;;
16630 .|.no|.no,*) ;;
16631 *) if ${CXXFLAGS+:} false; then :
16632 case " $CXXFLAGS " in
16633 *" $ac_cv_cxxflags_warn_all "*)
16634 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16635 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16636 ac_status=$?
16637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16638 test $ac_status = 0; }
16639 ;;
16640 *)
16641 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16642 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16643 ac_status=$?
16644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645 test $ac_status = 0; }
16646 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16647 ;;
16648 esac
16649else
16650 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16651fi
16652 ;;
16653esac
16654
16655
16656
16657
16658
16659 ac_ext=c
16660ac_cpp='$CPP $CPPFLAGS'
16661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16663ac_compiler_gnu=$ac_cv_c_compiler_gnu
16664
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16666$as_echo_n "checking for cc -Werror... " >&6; }
16667
16668 cy_save=$CFLAGS
16669
16670 for element in -Werror; do
16671 haveit=
16672 for x in $CFLAGS; do
16673
16674 acl_save_prefix="$prefix"
16675 prefix="$acl_final_prefix"
16676 acl_save_exec_prefix="$exec_prefix"
16677 exec_prefix="$acl_final_exec_prefix"
16678 eval x=\"$x\"
16679 exec_prefix="$acl_save_exec_prefix"
16680 prefix="$acl_save_prefix"
16681
16682 if test "X$x" = "X$element"; then
16683 haveit=yes
16684 break
16685 fi
16686 done
16687 if test -z "$haveit"; then
16688 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16689 fi
16690 done
16691
16692
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h. */
16695
16696_ACEOF
16697if ac_fn_c_try_compile "$LINENO"; then :
16698 cy_good=1
16699else
16700 cy_good=0
16701fi
16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703
16704 CFLAGS=$cy_save
16705 if test "x$cy_good" = x1; then :
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16707$as_echo "yes" >&6; }
16708
16709 for element in -Werror; do
16710 haveit=
16711 for x in $CFLAGS; do
16712
16713 acl_save_prefix="$prefix"
16714 prefix="$acl_final_prefix"
16715 acl_save_exec_prefix="$exec_prefix"
16716 exec_prefix="$acl_final_exec_prefix"
16717 eval x=\"$x\"
16718 exec_prefix="$acl_save_exec_prefix"
16719 prefix="$acl_save_prefix"
16720
16721 if test "X$x" = "X$element"; then
16722 haveit=yes
16723 break
16724 fi
16725 done
16726 if test -z "$haveit"; then
16727 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16728 fi
16729 done
16730
16731
16732else
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734$as_echo "no" >&6; }
16735fi
16736
16737 ac_ext=cpp
16738ac_cpp='$CXXCPP $CPPFLAGS'
16739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16742
16743
16744
16745 ac_ext=cpp
16746ac_cpp='$CXXCPP $CPPFLAGS'
16747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16750
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16752$as_echo_n "checking for c++ -Werror... " >&6; }
16753
16754 cy_save=$CXXFLAGS
16755
16756 for element in -Werror; do
16757 haveit=
16758 for x in $CXXFLAGS; do
16759
16760 acl_save_prefix="$prefix"
16761 prefix="$acl_final_prefix"
16762 acl_save_exec_prefix="$exec_prefix"
16763 exec_prefix="$acl_final_exec_prefix"
16764 eval x=\"$x\"
16765 exec_prefix="$acl_save_exec_prefix"
16766 prefix="$acl_save_prefix"
16767
16768 if test "X$x" = "X$element"; then
16769 haveit=yes
16770 break
16771 fi
16772 done
16773 if test -z "$haveit"; then
16774 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16775 fi
16776 done
16777
16778
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780/* end confdefs.h. */
16781
16782_ACEOF
16783if ac_fn_cxx_try_compile "$LINENO"; then :
16784 cy_good=1
16785else
16786 cy_good=0
16787fi
16788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789
16790 CXXFLAGS=$cy_save
16791 if test "x$cy_good" = x1; then :
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16793$as_echo "yes" >&6; }
16794
16795 for element in -Werror; do
16796 haveit=
16797 for x in $CXXFLAGS; do
16798
16799 acl_save_prefix="$prefix"
16800 prefix="$acl_final_prefix"
16801 acl_save_exec_prefix="$exec_prefix"
16802 exec_prefix="$acl_final_exec_prefix"
16803 eval x=\"$x\"
16804 exec_prefix="$acl_save_exec_prefix"
16805 prefix="$acl_save_prefix"
16806
16807 if test "X$x" = "X$element"; then
16808 haveit=yes
16809 break
16810 fi
16811 done
16812 if test -z "$haveit"; then
16813 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16814 fi
16815 done
16816
16817
16818else
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16820$as_echo "no" >&6; }
16821fi
16822
16823 ac_ext=cpp
16824ac_cpp='$CXXCPP $CPPFLAGS'
16825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16828
16829
16830
16831 ac_ext=mm
16832ac_cpp='$OBJCXXCPP $CPPFLAGS'
16833ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16834ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16835ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
16836
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
16838$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
16839
16840 cy_save=$OBJCXXFLAGS
16841
16842 for element in -Werror; do
16843 haveit=
16844 for x in $OBJCXXFLAGS; do
16845
16846 acl_save_prefix="$prefix"
16847 prefix="$acl_final_prefix"
16848 acl_save_exec_prefix="$exec_prefix"
16849 exec_prefix="$acl_final_exec_prefix"
16850 eval x=\"$x\"
16851 exec_prefix="$acl_save_exec_prefix"
16852 prefix="$acl_save_prefix"
16853
16854 if test "X$x" = "X$element"; then
16855 haveit=yes
16856 break
16857 fi
16858 done
16859 if test -z "$haveit"; then
16860 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16861 fi
16862 done
16863
16864
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h. */
16867
16868_ACEOF
16869if ac_fn_objcxx_try_compile "$LINENO"; then :
16870 cy_good=1
16871else
16872 cy_good=0
16873fi
16874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875
16876 OBJCXXFLAGS=$cy_save
16877 if test "x$cy_good" = x1; then :
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16879$as_echo "yes" >&6; }
16880
16881 for element in -Werror; do
16882 haveit=
16883 for x in $OBJCXXFLAGS; do
16884
16885 acl_save_prefix="$prefix"
16886 prefix="$acl_final_prefix"
16887 acl_save_exec_prefix="$exec_prefix"
16888 exec_prefix="$acl_final_exec_prefix"
16889 eval x=\"$x\"
16890 exec_prefix="$acl_save_exec_prefix"
16891 prefix="$acl_save_prefix"
16892
16893 if test "X$x" = "X$element"; then
16894 haveit=yes
16895 break
16896 fi
16897 done
16898 if test -z "$haveit"; then
16899 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
16900 fi
16901 done
16902
16903
16904else
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16906$as_echo "no" >&6; }
16907fi
16908
16909 ac_ext=cpp
16910ac_cpp='$CXXCPP $CPPFLAGS'
16911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16914
16915
16916
16917
16918
16919
16920 ac_ext=c
16921ac_cpp='$CPP $CPPFLAGS'
16922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924ac_compiler_gnu=$ac_cv_c_compiler_gnu
16925
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
16927$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
16928
16929 cy_save=$CFLAGS
16930
16931 for element in -Wno-deprecated-declarations; do
16932 haveit=
16933 for x in $CFLAGS; do
16934
16935 acl_save_prefix="$prefix"
16936 prefix="$acl_final_prefix"
16937 acl_save_exec_prefix="$exec_prefix"
16938 exec_prefix="$acl_final_exec_prefix"
16939 eval x=\"$x\"
16940 exec_prefix="$acl_save_exec_prefix"
16941 prefix="$acl_save_prefix"
16942
16943 if test "X$x" = "X$element"; then
16944 haveit=yes
16945 break
16946 fi
16947 done
16948 if test -z "$haveit"; then
16949 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16950 fi
16951 done
16952
16953
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955/* end confdefs.h. */
16956
16957_ACEOF
16958if ac_fn_c_try_compile "$LINENO"; then :
16959 cy_good=1
16960else
16961 cy_good=0
16962fi
16963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964
16965 CFLAGS=$cy_save
16966 if test "x$cy_good" = x1; then :
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968$as_echo "yes" >&6; }
16969
16970 for element in -Wno-deprecated-declarations; do
16971 haveit=
16972 for x in $CFLAGS; do
16973
16974 acl_save_prefix="$prefix"
16975 prefix="$acl_final_prefix"
16976 acl_save_exec_prefix="$exec_prefix"
16977 exec_prefix="$acl_final_exec_prefix"
16978 eval x=\"$x\"
16979 exec_prefix="$acl_save_exec_prefix"
16980 prefix="$acl_save_prefix"
16981
16982 if test "X$x" = "X$element"; then
16983 haveit=yes
16984 break
16985 fi
16986 done
16987 if test -z "$haveit"; then
16988 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16989 fi
16990 done
16991
16992
16993else
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995$as_echo "no" >&6; }
16996fi
16997
16998 ac_ext=cpp
16999ac_cpp='$CXXCPP $CPPFLAGS'
17000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17003
17004
17005
17006 ac_ext=cpp
17007ac_cpp='$CXXCPP $CPPFLAGS'
17008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17013$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17014
17015 cy_save=$CXXFLAGS
17016
17017 for element in -Wno-deprecated-declarations; do
17018 haveit=
17019 for x in $CXXFLAGS; do
17020
17021 acl_save_prefix="$prefix"
17022 prefix="$acl_final_prefix"
17023 acl_save_exec_prefix="$exec_prefix"
17024 exec_prefix="$acl_final_exec_prefix"
17025 eval x=\"$x\"
17026 exec_prefix="$acl_save_exec_prefix"
17027 prefix="$acl_save_prefix"
17028
17029 if test "X$x" = "X$element"; then
17030 haveit=yes
17031 break
17032 fi
17033 done
17034 if test -z "$haveit"; then
17035 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17036 fi
17037 done
17038
17039
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041/* end confdefs.h. */
17042
17043_ACEOF
17044if ac_fn_cxx_try_compile "$LINENO"; then :
17045 cy_good=1
17046else
17047 cy_good=0
17048fi
17049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050
17051 CXXFLAGS=$cy_save
17052 if test "x$cy_good" = x1; then :
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054$as_echo "yes" >&6; }
17055
17056 for element in -Wno-deprecated-declarations; do
17057 haveit=
17058 for x in $CXXFLAGS; do
17059
17060 acl_save_prefix="$prefix"
17061 prefix="$acl_final_prefix"
17062 acl_save_exec_prefix="$exec_prefix"
17063 exec_prefix="$acl_final_exec_prefix"
17064 eval x=\"$x\"
17065 exec_prefix="$acl_save_exec_prefix"
17066 prefix="$acl_save_prefix"
17067
17068 if test "X$x" = "X$element"; then
17069 haveit=yes
17070 break
17071 fi
17072 done
17073 if test -z "$haveit"; then
17074 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17075 fi
17076 done
17077
17078
17079else
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081$as_echo "no" >&6; }
17082fi
17083
17084 ac_ext=cpp
17085ac_cpp='$CXXCPP $CPPFLAGS'
17086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17089
17090
17091
17092 ac_ext=mm
17093ac_cpp='$OBJCXXCPP $CPPFLAGS'
17094ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17095ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17096ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17097
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17099$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17100
17101 cy_save=$OBJCXXFLAGS
17102
17103 for element in -Wno-deprecated-declarations; do
17104 haveit=
17105 for x in $OBJCXXFLAGS; do
17106
17107 acl_save_prefix="$prefix"
17108 prefix="$acl_final_prefix"
17109 acl_save_exec_prefix="$exec_prefix"
17110 exec_prefix="$acl_final_exec_prefix"
17111 eval x=\"$x\"
17112 exec_prefix="$acl_save_exec_prefix"
17113 prefix="$acl_save_prefix"
17114
17115 if test "X$x" = "X$element"; then
17116 haveit=yes
17117 break
17118 fi
17119 done
17120 if test -z "$haveit"; then
17121 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17122 fi
17123 done
17124
17125
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h. */
17128
17129_ACEOF
17130if ac_fn_objcxx_try_compile "$LINENO"; then :
17131 cy_good=1
17132else
17133 cy_good=0
17134fi
17135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136
17137 OBJCXXFLAGS=$cy_save
17138 if test "x$cy_good" = x1; then :
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17140$as_echo "yes" >&6; }
17141
17142 for element in -Wno-deprecated-declarations; do
17143 haveit=
17144 for x in $OBJCXXFLAGS; do
17145
17146 acl_save_prefix="$prefix"
17147 prefix="$acl_final_prefix"
17148 acl_save_exec_prefix="$exec_prefix"
17149 exec_prefix="$acl_final_exec_prefix"
17150 eval x=\"$x\"
17151 exec_prefix="$acl_save_exec_prefix"
17152 prefix="$acl_save_prefix"
17153
17154 if test "X$x" = "X$element"; then
17155 haveit=yes
17156 break
17157 fi
17158 done
17159 if test -z "$haveit"; then
17160 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17161 fi
17162 done
17163
17164
17165else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167$as_echo "no" >&6; }
17168fi
17169
17170 ac_ext=cpp
17171ac_cpp='$CXXCPP $CPPFLAGS'
17172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17175
17176
17177
17178
17179
17180
17181 ac_ext=c
17182ac_cpp='$CPP $CPPFLAGS'
17183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17185ac_compiler_gnu=$ac_cv_c_compiler_gnu
17186
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17188$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17189
17190 cy_save=$CFLAGS
17191
17192 for element in -Wno-dangling-else; do
17193 haveit=
17194 for x in $CFLAGS; do
17195
17196 acl_save_prefix="$prefix"
17197 prefix="$acl_final_prefix"
17198 acl_save_exec_prefix="$exec_prefix"
17199 exec_prefix="$acl_final_exec_prefix"
17200 eval x=\"$x\"
17201 exec_prefix="$acl_save_exec_prefix"
17202 prefix="$acl_save_prefix"
17203
17204 if test "X$x" = "X$element"; then
17205 haveit=yes
17206 break
17207 fi
17208 done
17209 if test -z "$haveit"; then
17210 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17211 fi
17212 done
17213
17214
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216/* end confdefs.h. */
17217
17218_ACEOF
17219if ac_fn_c_try_compile "$LINENO"; then :
17220 cy_good=1
17221else
17222 cy_good=0
17223fi
17224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17225
17226 CFLAGS=$cy_save
17227 if test "x$cy_good" = x1; then :
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17229$as_echo "yes" >&6; }
17230
17231 for element in -Wno-dangling-else; do
17232 haveit=
17233 for x in $CFLAGS; do
17234
17235 acl_save_prefix="$prefix"
17236 prefix="$acl_final_prefix"
17237 acl_save_exec_prefix="$exec_prefix"
17238 exec_prefix="$acl_final_exec_prefix"
17239 eval x=\"$x\"
17240 exec_prefix="$acl_save_exec_prefix"
17241 prefix="$acl_save_prefix"
17242
17243 if test "X$x" = "X$element"; then
17244 haveit=yes
17245 break
17246 fi
17247 done
17248 if test -z "$haveit"; then
17249 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17250 fi
17251 done
17252
17253
17254else
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17256$as_echo "no" >&6; }
17257fi
17258
17259 ac_ext=cpp
17260ac_cpp='$CXXCPP $CPPFLAGS'
17261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17264
17265
17266
17267 ac_ext=cpp
17268ac_cpp='$CXXCPP $CPPFLAGS'
17269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17272
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17274$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
17275
17276 cy_save=$CXXFLAGS
17277
17278 for element in -Wno-dangling-else; do
17279 haveit=
17280 for x in $CXXFLAGS; do
17281
17282 acl_save_prefix="$prefix"
17283 prefix="$acl_final_prefix"
17284 acl_save_exec_prefix="$exec_prefix"
17285 exec_prefix="$acl_final_exec_prefix"
17286 eval x=\"$x\"
17287 exec_prefix="$acl_save_exec_prefix"
17288 prefix="$acl_save_prefix"
17289
17290 if test "X$x" = "X$element"; then
17291 haveit=yes
17292 break
17293 fi
17294 done
17295 if test -z "$haveit"; then
17296 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17297 fi
17298 done
17299
17300
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h. */
17303
17304_ACEOF
17305if ac_fn_cxx_try_compile "$LINENO"; then :
17306 cy_good=1
17307else
17308 cy_good=0
17309fi
17310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17311
17312 CXXFLAGS=$cy_save
17313 if test "x$cy_good" = x1; then :
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17315$as_echo "yes" >&6; }
17316
17317 for element in -Wno-dangling-else; do
17318 haveit=
17319 for x in $CXXFLAGS; do
17320
17321 acl_save_prefix="$prefix"
17322 prefix="$acl_final_prefix"
17323 acl_save_exec_prefix="$exec_prefix"
17324 exec_prefix="$acl_final_exec_prefix"
17325 eval x=\"$x\"
17326 exec_prefix="$acl_save_exec_prefix"
17327 prefix="$acl_save_prefix"
17328
17329 if test "X$x" = "X$element"; then
17330 haveit=yes
17331 break
17332 fi
17333 done
17334 if test -z "$haveit"; then
17335 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17336 fi
17337 done
17338
17339
17340else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342$as_echo "no" >&6; }
17343fi
17344
17345 ac_ext=cpp
17346ac_cpp='$CXXCPP $CPPFLAGS'
17347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17350
17351
17352
17353 ac_ext=mm
17354ac_cpp='$OBJCXXCPP $CPPFLAGS'
17355ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17356ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17357ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17358
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17360$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17361
17362 cy_save=$OBJCXXFLAGS
17363
17364 for element in -Wno-dangling-else; do
17365 haveit=
17366 for x in $OBJCXXFLAGS; do
17367
17368 acl_save_prefix="$prefix"
17369 prefix="$acl_final_prefix"
17370 acl_save_exec_prefix="$exec_prefix"
17371 exec_prefix="$acl_final_exec_prefix"
17372 eval x=\"$x\"
17373 exec_prefix="$acl_save_exec_prefix"
17374 prefix="$acl_save_prefix"
17375
17376 if test "X$x" = "X$element"; then
17377 haveit=yes
17378 break
17379 fi
17380 done
17381 if test -z "$haveit"; then
17382 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17383 fi
17384 done
17385
17386
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h. */
17389
17390_ACEOF
17391if ac_fn_objcxx_try_compile "$LINENO"; then :
17392 cy_good=1
17393else
17394 cy_good=0
17395fi
17396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397
17398 OBJCXXFLAGS=$cy_save
17399 if test "x$cy_good" = x1; then :
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17401$as_echo "yes" >&6; }
17402
17403 for element in -Wno-dangling-else; do
17404 haveit=
17405 for x in $OBJCXXFLAGS; do
17406
17407 acl_save_prefix="$prefix"
17408 prefix="$acl_final_prefix"
17409 acl_save_exec_prefix="$exec_prefix"
17410 exec_prefix="$acl_final_exec_prefix"
17411 eval x=\"$x\"
17412 exec_prefix="$acl_save_exec_prefix"
17413 prefix="$acl_save_prefix"
17414
17415 if test "X$x" = "X$element"; then
17416 haveit=yes
17417 break
17418 fi
17419 done
17420 if test -z "$haveit"; then
17421 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17422 fi
17423 done
17424
17425
17426else
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17428$as_echo "no" >&6; }
17429fi
17430
17431 ac_ext=cpp
17432ac_cpp='$CXXCPP $CPPFLAGS'
17433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17436
17437
17438
17439
17440
17441 ac_ext=c
17442ac_cpp='$CPP $CPPFLAGS'
17443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17445ac_compiler_gnu=$ac_cv_c_compiler_gnu
17446
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17448$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17449
17450 cy_save=$CFLAGS
17451
17452 for element in -Wno-overloaded-virtual; do
17453 haveit=
17454 for x in $CFLAGS; do
17455
17456 acl_save_prefix="$prefix"
17457 prefix="$acl_final_prefix"
17458 acl_save_exec_prefix="$exec_prefix"
17459 exec_prefix="$acl_final_exec_prefix"
17460 eval x=\"$x\"
17461 exec_prefix="$acl_save_exec_prefix"
17462 prefix="$acl_save_prefix"
17463
17464 if test "X$x" = "X$element"; then
17465 haveit=yes
17466 break
17467 fi
17468 done
17469 if test -z "$haveit"; then
17470 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17471 fi
17472 done
17473
17474
17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476/* end confdefs.h. */
17477
17478_ACEOF
17479if ac_fn_c_try_compile "$LINENO"; then :
17480 cy_good=1
17481else
17482 cy_good=0
17483fi
17484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485
17486 CFLAGS=$cy_save
17487 if test "x$cy_good" = x1; then :
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17489$as_echo "yes" >&6; }
17490
17491 for element in -Wno-overloaded-virtual; do
17492 haveit=
17493 for x in $CFLAGS; do
17494
17495 acl_save_prefix="$prefix"
17496 prefix="$acl_final_prefix"
17497 acl_save_exec_prefix="$exec_prefix"
17498 exec_prefix="$acl_final_exec_prefix"
17499 eval x=\"$x\"
17500 exec_prefix="$acl_save_exec_prefix"
17501 prefix="$acl_save_prefix"
17502
17503 if test "X$x" = "X$element"; then
17504 haveit=yes
17505 break
17506 fi
17507 done
17508 if test -z "$haveit"; then
17509 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17510 fi
17511 done
17512
17513
17514else
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516$as_echo "no" >&6; }
17517fi
17518
17519 ac_ext=cpp
17520ac_cpp='$CXXCPP $CPPFLAGS'
17521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17524
17525
17526
17527 ac_ext=cpp
17528ac_cpp='$CXXCPP $CPPFLAGS'
17529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17532
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17534$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17535
17536 cy_save=$CXXFLAGS
17537
17538 for element in -Wno-overloaded-virtual; do
17539 haveit=
17540 for x in $CXXFLAGS; do
17541
17542 acl_save_prefix="$prefix"
17543 prefix="$acl_final_prefix"
17544 acl_save_exec_prefix="$exec_prefix"
17545 exec_prefix="$acl_final_exec_prefix"
17546 eval x=\"$x\"
17547 exec_prefix="$acl_save_exec_prefix"
17548 prefix="$acl_save_prefix"
17549
17550 if test "X$x" = "X$element"; then
17551 haveit=yes
17552 break
17553 fi
17554 done
17555 if test -z "$haveit"; then
17556 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17557 fi
17558 done
17559
17560
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562/* end confdefs.h. */
17563
17564_ACEOF
17565if ac_fn_cxx_try_compile "$LINENO"; then :
17566 cy_good=1
17567else
17568 cy_good=0
17569fi
17570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571
17572 CXXFLAGS=$cy_save
17573 if test "x$cy_good" = x1; then :
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575$as_echo "yes" >&6; }
17576
17577 for element in -Wno-overloaded-virtual; do
17578 haveit=
17579 for x in $CXXFLAGS; do
17580
17581 acl_save_prefix="$prefix"
17582 prefix="$acl_final_prefix"
17583 acl_save_exec_prefix="$exec_prefix"
17584 exec_prefix="$acl_final_exec_prefix"
17585 eval x=\"$x\"
17586 exec_prefix="$acl_save_exec_prefix"
17587 prefix="$acl_save_prefix"
17588
17589 if test "X$x" = "X$element"; then
17590 haveit=yes
17591 break
17592 fi
17593 done
17594 if test -z "$haveit"; then
17595 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17596 fi
17597 done
17598
17599
17600else
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602$as_echo "no" >&6; }
17603fi
17604
17605 ac_ext=cpp
17606ac_cpp='$CXXCPP $CPPFLAGS'
17607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17610
17611
17612
17613 ac_ext=mm
17614ac_cpp='$OBJCXXCPP $CPPFLAGS'
17615ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17616ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17617ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17618
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17620$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17621
17622 cy_save=$OBJCXXFLAGS
17623
17624 for element in -Wno-overloaded-virtual; do
17625 haveit=
17626 for x in $OBJCXXFLAGS; do
17627
17628 acl_save_prefix="$prefix"
17629 prefix="$acl_final_prefix"
17630 acl_save_exec_prefix="$exec_prefix"
17631 exec_prefix="$acl_final_exec_prefix"
17632 eval x=\"$x\"
17633 exec_prefix="$acl_save_exec_prefix"
17634 prefix="$acl_save_prefix"
17635
17636 if test "X$x" = "X$element"; then
17637 haveit=yes
17638 break
17639 fi
17640 done
17641 if test -z "$haveit"; then
17642 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17643 fi
17644 done
17645
17646
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648/* end confdefs.h. */
17649
17650_ACEOF
17651if ac_fn_objcxx_try_compile "$LINENO"; then :
17652 cy_good=1
17653else
17654 cy_good=0
17655fi
17656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657
17658 OBJCXXFLAGS=$cy_save
17659 if test "x$cy_good" = x1; then :
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17661$as_echo "yes" >&6; }
17662
17663 for element in -Wno-overloaded-virtual; do
17664 haveit=
17665 for x in $OBJCXXFLAGS; do
17666
17667 acl_save_prefix="$prefix"
17668 prefix="$acl_final_prefix"
17669 acl_save_exec_prefix="$exec_prefix"
17670 exec_prefix="$acl_final_exec_prefix"
17671 eval x=\"$x\"
17672 exec_prefix="$acl_save_exec_prefix"
17673 prefix="$acl_save_prefix"
17674
17675 if test "X$x" = "X$element"; then
17676 haveit=yes
17677 break
17678 fi
17679 done
17680 if test -z "$haveit"; then
17681 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17682 fi
17683 done
17684
17685
17686else
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688$as_echo "no" >&6; }
17689fi
17690
17691 ac_ext=cpp
17692ac_cpp='$CXXCPP $CPPFLAGS'
17693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17696
17697
17698
17699
17700
17701 ac_ext=c
17702ac_cpp='$CPP $CPPFLAGS'
17703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17708$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17709
17710 cy_save=$CFLAGS
17711
17712 for element in -Wno-parentheses; do
17713 haveit=
17714 for x in $CFLAGS; do
17715
17716 acl_save_prefix="$prefix"
17717 prefix="$acl_final_prefix"
17718 acl_save_exec_prefix="$exec_prefix"
17719 exec_prefix="$acl_final_exec_prefix"
17720 eval x=\"$x\"
17721 exec_prefix="$acl_save_exec_prefix"
17722 prefix="$acl_save_prefix"
17723
17724 if test "X$x" = "X$element"; then
17725 haveit=yes
17726 break
17727 fi
17728 done
17729 if test -z "$haveit"; then
17730 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17731 fi
17732 done
17733
17734
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h. */
17737
17738_ACEOF
17739if ac_fn_c_try_compile "$LINENO"; then :
17740 cy_good=1
17741else
17742 cy_good=0
17743fi
17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745
17746 CFLAGS=$cy_save
17747 if test "x$cy_good" = x1; then :
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17749$as_echo "yes" >&6; }
17750
17751 for element in -Wno-parentheses; do
17752 haveit=
17753 for x in $CFLAGS; do
17754
17755 acl_save_prefix="$prefix"
17756 prefix="$acl_final_prefix"
17757 acl_save_exec_prefix="$exec_prefix"
17758 exec_prefix="$acl_final_exec_prefix"
17759 eval x=\"$x\"
17760 exec_prefix="$acl_save_exec_prefix"
17761 prefix="$acl_save_prefix"
17762
17763 if test "X$x" = "X$element"; then
17764 haveit=yes
17765 break
17766 fi
17767 done
17768 if test -z "$haveit"; then
17769 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17770 fi
17771 done
17772
17773
17774else
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776$as_echo "no" >&6; }
17777fi
17778
17779 ac_ext=cpp
17780ac_cpp='$CXXCPP $CPPFLAGS'
17781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17784
17785
17786
17787 ac_ext=cpp
17788ac_cpp='$CXXCPP $CPPFLAGS'
17789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17792
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
17794$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
17795
17796 cy_save=$CXXFLAGS
17797
17798 for element in -Wno-parentheses; do
17799 haveit=
17800 for x in $CXXFLAGS; do
17801
17802 acl_save_prefix="$prefix"
17803 prefix="$acl_final_prefix"
17804 acl_save_exec_prefix="$exec_prefix"
17805 exec_prefix="$acl_final_exec_prefix"
17806 eval x=\"$x\"
17807 exec_prefix="$acl_save_exec_prefix"
17808 prefix="$acl_save_prefix"
17809
17810 if test "X$x" = "X$element"; then
17811 haveit=yes
17812 break
17813 fi
17814 done
17815 if test -z "$haveit"; then
17816 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17817 fi
17818 done
17819
17820
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822/* end confdefs.h. */
17823
17824_ACEOF
17825if ac_fn_cxx_try_compile "$LINENO"; then :
17826 cy_good=1
17827else
17828 cy_good=0
17829fi
17830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17831
17832 CXXFLAGS=$cy_save
17833 if test "x$cy_good" = x1; then :
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17835$as_echo "yes" >&6; }
17836
17837 for element in -Wno-parentheses; do
17838 haveit=
17839 for x in $CXXFLAGS; do
17840
17841 acl_save_prefix="$prefix"
17842 prefix="$acl_final_prefix"
17843 acl_save_exec_prefix="$exec_prefix"
17844 exec_prefix="$acl_final_exec_prefix"
17845 eval x=\"$x\"
17846 exec_prefix="$acl_save_exec_prefix"
17847 prefix="$acl_save_prefix"
17848
17849 if test "X$x" = "X$element"; then
17850 haveit=yes
17851 break
17852 fi
17853 done
17854 if test -z "$haveit"; then
17855 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17856 fi
17857 done
17858
17859
17860else
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863fi
17864
17865 ac_ext=cpp
17866ac_cpp='$CXXCPP $CPPFLAGS'
17867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17870
17871
17872
17873 ac_ext=mm
17874ac_cpp='$OBJCXXCPP $CPPFLAGS'
17875ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17878
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
17880$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
17881
17882 cy_save=$OBJCXXFLAGS
17883
17884 for element in -Wno-parentheses; do
17885 haveit=
17886 for x in $OBJCXXFLAGS; do
17887
17888 acl_save_prefix="$prefix"
17889 prefix="$acl_final_prefix"
17890 acl_save_exec_prefix="$exec_prefix"
17891 exec_prefix="$acl_final_exec_prefix"
17892 eval x=\"$x\"
17893 exec_prefix="$acl_save_exec_prefix"
17894 prefix="$acl_save_prefix"
17895
17896 if test "X$x" = "X$element"; then
17897 haveit=yes
17898 break
17899 fi
17900 done
17901 if test -z "$haveit"; then
17902 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17903 fi
17904 done
17905
17906
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908/* end confdefs.h. */
17909
17910_ACEOF
17911if ac_fn_objcxx_try_compile "$LINENO"; then :
17912 cy_good=1
17913else
17914 cy_good=0
17915fi
17916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917
17918 OBJCXXFLAGS=$cy_save
17919 if test "x$cy_good" = x1; then :
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17921$as_echo "yes" >&6; }
17922
17923 for element in -Wno-parentheses; do
17924 haveit=
17925 for x in $OBJCXXFLAGS; do
17926
17927 acl_save_prefix="$prefix"
17928 prefix="$acl_final_prefix"
17929 acl_save_exec_prefix="$exec_prefix"
17930 exec_prefix="$acl_final_exec_prefix"
17931 eval x=\"$x\"
17932 exec_prefix="$acl_save_exec_prefix"
17933 prefix="$acl_save_prefix"
17934
17935 if test "X$x" = "X$element"; then
17936 haveit=yes
17937 break
17938 fi
17939 done
17940 if test -z "$haveit"; then
17941 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17942 fi
17943 done
17944
17945
17946else
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948$as_echo "no" >&6; }
17949fi
17950
17951 ac_ext=cpp
17952ac_cpp='$CXXCPP $CPPFLAGS'
17953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17956
17957
17958
17959
17960
17961 ac_ext=c
17962ac_cpp='$CPP $CPPFLAGS'
17963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965ac_compiler_gnu=$ac_cv_c_compiler_gnu
17966
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
17968$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
17969
17970 cy_save=$CFLAGS
17971
17972 for element in -Wno-unneeded-internal-declaration; do
17973 haveit=
17974 for x in $CFLAGS; do
17975
17976 acl_save_prefix="$prefix"
17977 prefix="$acl_final_prefix"
17978 acl_save_exec_prefix="$exec_prefix"
17979 exec_prefix="$acl_final_exec_prefix"
17980 eval x=\"$x\"
17981 exec_prefix="$acl_save_exec_prefix"
17982 prefix="$acl_save_prefix"
17983
17984 if test "X$x" = "X$element"; then
17985 haveit=yes
17986 break
17987 fi
17988 done
17989 if test -z "$haveit"; then
17990 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17991 fi
17992 done
17993
17994
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996/* end confdefs.h. */
17997
17998_ACEOF
17999if ac_fn_c_try_compile "$LINENO"; then :
18000 cy_good=1
18001else
18002 cy_good=0
18003fi
18004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18005
18006 CFLAGS=$cy_save
18007 if test "x$cy_good" = x1; then :
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18009$as_echo "yes" >&6; }
18010
18011 for element in -Wno-unneeded-internal-declaration; do
18012 haveit=
18013 for x in $CFLAGS; do
18014
18015 acl_save_prefix="$prefix"
18016 prefix="$acl_final_prefix"
18017 acl_save_exec_prefix="$exec_prefix"
18018 exec_prefix="$acl_final_exec_prefix"
18019 eval x=\"$x\"
18020 exec_prefix="$acl_save_exec_prefix"
18021 prefix="$acl_save_prefix"
18022
18023 if test "X$x" = "X$element"; then
18024 haveit=yes
18025 break
18026 fi
18027 done
18028 if test -z "$haveit"; then
18029 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18030 fi
18031 done
18032
18033
18034else
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18036$as_echo "no" >&6; }
18037fi
18038
18039 ac_ext=cpp
18040ac_cpp='$CXXCPP $CPPFLAGS'
18041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18044
18045
18046
18047 ac_ext=cpp
18048ac_cpp='$CXXCPP $CPPFLAGS'
18049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18052
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18054$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18055
18056 cy_save=$CXXFLAGS
18057
18058 for element in -Wno-unneeded-internal-declaration; do
18059 haveit=
18060 for x in $CXXFLAGS; do
18061
18062 acl_save_prefix="$prefix"
18063 prefix="$acl_final_prefix"
18064 acl_save_exec_prefix="$exec_prefix"
18065 exec_prefix="$acl_final_exec_prefix"
18066 eval x=\"$x\"
18067 exec_prefix="$acl_save_exec_prefix"
18068 prefix="$acl_save_prefix"
18069
18070 if test "X$x" = "X$element"; then
18071 haveit=yes
18072 break
18073 fi
18074 done
18075 if test -z "$haveit"; then
18076 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18077 fi
18078 done
18079
18080
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082/* end confdefs.h. */
18083
18084_ACEOF
18085if ac_fn_cxx_try_compile "$LINENO"; then :
18086 cy_good=1
18087else
18088 cy_good=0
18089fi
18090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091
18092 CXXFLAGS=$cy_save
18093 if test "x$cy_good" = x1; then :
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18095$as_echo "yes" >&6; }
18096
18097 for element in -Wno-unneeded-internal-declaration; do
18098 haveit=
18099 for x in $CXXFLAGS; do
18100
18101 acl_save_prefix="$prefix"
18102 prefix="$acl_final_prefix"
18103 acl_save_exec_prefix="$exec_prefix"
18104 exec_prefix="$acl_final_exec_prefix"
18105 eval x=\"$x\"
18106 exec_prefix="$acl_save_exec_prefix"
18107 prefix="$acl_save_prefix"
18108
18109 if test "X$x" = "X$element"; then
18110 haveit=yes
18111 break
18112 fi
18113 done
18114 if test -z "$haveit"; then
18115 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18116 fi
18117 done
18118
18119
18120else
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18122$as_echo "no" >&6; }
18123fi
18124
18125 ac_ext=cpp
18126ac_cpp='$CXXCPP $CPPFLAGS'
18127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18130
18131
18132
18133 ac_ext=mm
18134ac_cpp='$OBJCXXCPP $CPPFLAGS'
18135ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18136ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18137ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18138
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18140$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18141
18142 cy_save=$OBJCXXFLAGS
18143
18144 for element in -Wno-unneeded-internal-declaration; do
18145 haveit=
18146 for x in $OBJCXXFLAGS; do
18147
18148 acl_save_prefix="$prefix"
18149 prefix="$acl_final_prefix"
18150 acl_save_exec_prefix="$exec_prefix"
18151 exec_prefix="$acl_final_exec_prefix"
18152 eval x=\"$x\"
18153 exec_prefix="$acl_save_exec_prefix"
18154 prefix="$acl_save_prefix"
18155
18156 if test "X$x" = "X$element"; then
18157 haveit=yes
18158 break
18159 fi
18160 done
18161 if test -z "$haveit"; then
18162 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18163 fi
18164 done
18165
18166
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168/* end confdefs.h. */
18169
18170_ACEOF
18171if ac_fn_objcxx_try_compile "$LINENO"; then :
18172 cy_good=1
18173else
18174 cy_good=0
18175fi
18176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177
18178 OBJCXXFLAGS=$cy_save
18179 if test "x$cy_good" = x1; then :
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18181$as_echo "yes" >&6; }
18182
18183 for element in -Wno-unneeded-internal-declaration; do
18184 haveit=
18185 for x in $OBJCXXFLAGS; do
18186
18187 acl_save_prefix="$prefix"
18188 prefix="$acl_final_prefix"
18189 acl_save_exec_prefix="$exec_prefix"
18190 exec_prefix="$acl_final_exec_prefix"
18191 eval x=\"$x\"
18192 exec_prefix="$acl_save_exec_prefix"
18193 prefix="$acl_save_prefix"
18194
18195 if test "X$x" = "X$element"; then
18196 haveit=yes
18197 break
18198 fi
18199 done
18200 if test -z "$haveit"; then
18201 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18202 fi
18203 done
18204
18205
18206else
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208$as_echo "no" >&6; }
18209fi
18210
18211 ac_ext=cpp
18212ac_cpp='$CXXCPP $CPPFLAGS'
18213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18216
18217
18218
18219
18220for cy_arch in ppc ppc64 i386 x86_64 armv6; do
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18222$as_echo_n "checking for -arch $cy_arch... " >&6; }
18223
18224 cy_save=$CXXFLAGS
18225
18226 for element in "-arch $cy_arch"; do
18227 haveit=
18228 for x in $CXXFLAGS; do
18229
18230 acl_save_prefix="$prefix"
18231 prefix="$acl_final_prefix"
18232 acl_save_exec_prefix="$exec_prefix"
18233 exec_prefix="$acl_final_exec_prefix"
18234 eval x=\"$x\"
18235 exec_prefix="$acl_save_exec_prefix"
18236 prefix="$acl_save_prefix"
18237
18238 if test "X$x" = "X$element"; then
18239 haveit=yes
18240 break
18241 fi
18242 done
18243 if test -z "$haveit"; then
18244 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18245 fi
18246 done
18247
18248
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250/* end confdefs.h. */
18251
18252int
18253main ()
18254{
18255
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260if ac_fn_cxx_try_link "$LINENO"; then :
18261 cy_good=1
18262else
18263 cy_good=0
18264fi
18265rm -f core conftest.err conftest.$ac_objext \
18266 conftest$ac_exeext conftest.$ac_ext
18267
18268 CXXFLAGS=$cy_save
18269 if test "x$cy_good" = x1; then :
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18271$as_echo "yes" >&6; }
18272
18273 for element in "-arch $cy_arch"; do
18274 haveit=
18275 for x in $CY_ARCH; do
18276
18277 acl_save_prefix="$prefix"
18278 prefix="$acl_final_prefix"
18279 acl_save_exec_prefix="$exec_prefix"
18280 exec_prefix="$acl_final_exec_prefix"
18281 eval x=\"$x\"
18282 exec_prefix="$acl_save_exec_prefix"
18283 prefix="$acl_save_prefix"
18284
18285 if test "X$x" = "X$element"; then
18286 haveit=yes
18287 break
18288 fi
18289 done
18290 if test -z "$haveit"; then
18291 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18292 fi
18293 done
18294
18295
18296else
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298$as_echo "no" >&6; }
18299fi
18300
18301done
18302
18303# Extract the first word of "xcodebuild", so it can be a program name with args.
18304set dummy xcodebuild; ac_word=$2
18305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18306$as_echo_n "checking for $ac_word... " >&6; }
18307if ${ac_cv_path_XCODEBUILD+:} false; then :
18308 $as_echo_n "(cached) " >&6
18309else
18310 case $XCODEBUILD in
18311 [\\/]* | ?:[\\/]*)
18312 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
18313 ;;
18314 *)
18315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18316for as_dir in $PATH
18317do
18318 IFS=$as_save_IFS
18319 test -z "$as_dir" && as_dir=.
18320 for ac_exec_ext in '' $ac_executable_extensions; do
18321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18322 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
18323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18324 break 2
18325 fi
18326done
18327 done
18328IFS=$as_save_IFS
18329
18330 ;;
18331esac
18332fi
18333XCODEBUILD=$ac_cv_path_XCODEBUILD
18334if test -n "$XCODEBUILD"; then
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
18336$as_echo "$XCODEBUILD" >&6; }
18337else
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18339$as_echo "no" >&6; }
18340fi
18341
18342
18343
18344if test "x$XCODEBUILD" != x; then :
18345
18346 CY_XCODE_MACOSXSDK=`xcodebuild -sdk macosx -version Path`
18347
18348 CY_XCODE_IOSSIMSDK=`xcodebuild -sdk iphonesimulator -version Path`
18349
18350
18351fi
18352
18353 if test "x$CY_XCODE_IOSSIMSDK" != x; then
18354 CY_IOS_SIMULATOR_TRUE=
18355 CY_IOS_SIMULATOR_FALSE='#'
18356else
18357 CY_IOS_SIMULATOR_TRUE='#'
18358 CY_IOS_SIMULATOR_FALSE=
18359fi
18360
18361
18362
18363
18364
18365
18366
18367
18368# Check whether --enable-javascript was given.
18369if test "${enable_javascript+set}" = set; then :
18370 enableval=$enable_javascript;
18371 case $enableval in #(
18372 yes) :
18373
18374
18375
18376
18377 cy_save=$LIBS
18378 LIBS=
18379
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18381$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18382if ${ac_cv_framework_JavaScriptCore+:} false; then :
18383 $as_echo_n "(cached) " >&6
18384else
18385
18386 ac_check_framework_save_LIBS=$LIBS
18387 LIBS="-framework JavaScriptCore $LIBS"
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389/* end confdefs.h. */
18390
18391 #include <JavaScriptCore/JSBase.h>
18392
18393int
18394main ()
18395{
18396
18397 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18398
18399 ;
18400 return 0;
18401}
18402_ACEOF
18403if ac_fn_cxx_try_link "$LINENO"; then :
18404
18405 ac_cv_framework_JavaScriptCore=yes
18406
18407else
18408 ac_cv_framework_JavaScriptCore=no
18409fi
18410rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412 LIBS=$ac_check_framework_save_LIBS
18413
18414fi
18415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18416$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18417 if test $ac_cv_framework_JavaScriptCore = yes; then :
18418
18419
18420 for element in "-framework JavaScriptCore"; do
18421 haveit=
18422 for x in $LIBS; do
18423
18424 acl_save_prefix="$prefix"
18425 prefix="$acl_final_prefix"
18426 acl_save_exec_prefix="$exec_prefix"
18427 exec_prefix="$acl_final_exec_prefix"
18428 eval x=\"$x\"
18429 exec_prefix="$acl_save_exec_prefix"
18430 prefix="$acl_save_prefix"
18431
18432 if test "X$x" = "X$element"; then
18433 haveit=yes
18434 break
18435 fi
18436 done
18437 if test -z "$haveit"; then
18438 LIBS="${LIBS}${LIBS:+ }$element"
18439 fi
18440 done
18441
18442
18443 CY_EXECUTE=1
18444
18445
18446
18447else
18448
18449 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18450
18451pkg_failed=no
18452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18453$as_echo_n "checking for WEBKIT... " >&6; }
18454
18455if test -n "$WEBKIT_CFLAGS"; then
18456 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18457 elif test -n "$PKG_CONFIG"; then
18458 if test -n "$PKG_CONFIG" && \
18459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18460 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18461 ac_status=$?
18462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18463 test $ac_status = 0; }; then
18464 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18465else
18466 pkg_failed=yes
18467fi
18468 else
18469 pkg_failed=untried
18470fi
18471if test -n "$WEBKIT_LIBS"; then
18472 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18473 elif test -n "$PKG_CONFIG"; then
18474 if test -n "$PKG_CONFIG" && \
18475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18476 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18477 ac_status=$?
18478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18479 test $ac_status = 0; }; then
18480 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18481else
18482 pkg_failed=yes
18483fi
18484 else
18485 pkg_failed=untried
18486fi
18487
18488
18489
18490if test $pkg_failed = yes; then
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492$as_echo "no" >&6; }
18493
18494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18495 _pkg_short_errors_supported=yes
18496else
18497 _pkg_short_errors_supported=no
18498fi
18499 if test $_pkg_short_errors_supported = yes; then
18500 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18501 else
18502 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18503 fi
18504 # Put the nasty error message in config.log where it belongs
18505 echo "$WEBKIT_PKG_ERRORS" >&5
18506
18507 :
18508elif test $pkg_failed = untried; then
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18510$as_echo "no" >&6; }
18511 :
18512else
18513 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18514 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18516$as_echo "yes" >&6; }
18517
18518 CY_EXECUTE=1
18519
18520
18521 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18522 haveit=
18523 for x in $CPPFLAGS; do
18524
18525 acl_save_prefix="$prefix"
18526 prefix="$acl_final_prefix"
18527 acl_save_exec_prefix="$exec_prefix"
18528 exec_prefix="$acl_final_exec_prefix"
18529 eval x=\"$x\"
18530 exec_prefix="$acl_save_exec_prefix"
18531 prefix="$acl_save_prefix"
18532
18533 if test "X$x" = "X$element"; then
18534 haveit=yes
18535 break
18536 fi
18537 done
18538 if test -z "$haveit"; then
18539 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18540 fi
18541 done
18542
18543
18544 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18545 haveit=
18546 for x in $LIBS; do
18547
18548 acl_save_prefix="$prefix"
18549 prefix="$acl_final_prefix"
18550 acl_save_exec_prefix="$exec_prefix"
18551 exec_prefix="$acl_final_exec_prefix"
18552 eval x=\"$x\"
18553 exec_prefix="$acl_save_exec_prefix"
18554 prefix="$acl_save_prefix"
18555
18556 if test "X$x" = "X$element"; then
18557 haveit=yes
18558 break
18559 fi
18560 done
18561 if test -z "$haveit"; then
18562 LIBS="${LIBS}${LIBS:+ }$element"
18563 fi
18564 done
18565
18566
18567fi; if test "x$CY_EXECUTE" = x1; then break; fi
18568 done
18569
18570fi
18571 LTJAVASCRIPTCORE=$LIBS
18572 LIBS=$cy_save
18573
18574
18575 ;; #(
18576 no) :
18577
18578 CY_EXECUTE=0
18579 ;; #(
18580 JavaScriptCore) :
18581
18582
18583
18584 cy_save=$LIBS
18585 LIBS=
18586
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18588$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18589if ${ac_cv_framework_JavaScriptCore+:} false; then :
18590 $as_echo_n "(cached) " >&6
18591else
18592
18593 ac_check_framework_save_LIBS=$LIBS
18594 LIBS="-framework JavaScriptCore $LIBS"
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596/* end confdefs.h. */
18597
18598 #include <JavaScriptCore/JSBase.h>
18599
18600int
18601main ()
18602{
18603
18604 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18605
18606 ;
18607 return 0;
18608}
18609_ACEOF
18610if ac_fn_cxx_try_link "$LINENO"; then :
18611
18612 ac_cv_framework_JavaScriptCore=yes
18613
18614else
18615 ac_cv_framework_JavaScriptCore=no
18616fi
18617rm -f core conftest.err conftest.$ac_objext \
18618 conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_framework_save_LIBS
18620
18621fi
18622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18623$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18624 if test $ac_cv_framework_JavaScriptCore = yes; then :
18625
18626
18627 for element in "-framework JavaScriptCore"; do
18628 haveit=
18629 for x in $LIBS; do
18630
18631 acl_save_prefix="$prefix"
18632 prefix="$acl_final_prefix"
18633 acl_save_exec_prefix="$exec_prefix"
18634 exec_prefix="$acl_final_exec_prefix"
18635 eval x=\"$x\"
18636 exec_prefix="$acl_save_exec_prefix"
18637 prefix="$acl_save_prefix"
18638
18639 if test "X$x" = "X$element"; then
18640 haveit=yes
18641 break
18642 fi
18643 done
18644 if test -z "$haveit"; then
18645 LIBS="${LIBS}${LIBS:+ }$element"
18646 fi
18647 done
18648
18649
18650 CY_EXECUTE=1
18651
18652
18653
18654else
18655
18656 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18657
18658pkg_failed=no
18659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18660$as_echo_n "checking for WEBKIT... " >&6; }
18661
18662if test -n "$WEBKIT_CFLAGS"; then
18663 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18664 elif test -n "$PKG_CONFIG"; then
18665 if test -n "$PKG_CONFIG" && \
18666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18667 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18668 ac_status=$?
18669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18670 test $ac_status = 0; }; then
18671 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18672else
18673 pkg_failed=yes
18674fi
18675 else
18676 pkg_failed=untried
18677fi
18678if test -n "$WEBKIT_LIBS"; then
18679 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18680 elif test -n "$PKG_CONFIG"; then
18681 if test -n "$PKG_CONFIG" && \
18682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18683 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18684 ac_status=$?
18685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18686 test $ac_status = 0; }; then
18687 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18688else
18689 pkg_failed=yes
18690fi
18691 else
18692 pkg_failed=untried
18693fi
18694
18695
18696
18697if test $pkg_failed = yes; then
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18699$as_echo "no" >&6; }
18700
18701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18702 _pkg_short_errors_supported=yes
18703else
18704 _pkg_short_errors_supported=no
18705fi
18706 if test $_pkg_short_errors_supported = yes; then
18707 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18708 else
18709 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18710 fi
18711 # Put the nasty error message in config.log where it belongs
18712 echo "$WEBKIT_PKG_ERRORS" >&5
18713
18714 :
18715elif test $pkg_failed = untried; then
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717$as_echo "no" >&6; }
18718 :
18719else
18720 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18721 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723$as_echo "yes" >&6; }
18724
18725 CY_EXECUTE=1
18726
18727
18728 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18729 haveit=
18730 for x in $CPPFLAGS; do
18731
18732 acl_save_prefix="$prefix"
18733 prefix="$acl_final_prefix"
18734 acl_save_exec_prefix="$exec_prefix"
18735 exec_prefix="$acl_final_exec_prefix"
18736 eval x=\"$x\"
18737 exec_prefix="$acl_save_exec_prefix"
18738 prefix="$acl_save_prefix"
18739
18740 if test "X$x" = "X$element"; then
18741 haveit=yes
18742 break
18743 fi
18744 done
18745 if test -z "$haveit"; then
18746 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18747 fi
18748 done
18749
18750
18751 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18752 haveit=
18753 for x in $LIBS; do
18754
18755 acl_save_prefix="$prefix"
18756 prefix="$acl_final_prefix"
18757 acl_save_exec_prefix="$exec_prefix"
18758 exec_prefix="$acl_final_exec_prefix"
18759 eval x=\"$x\"
18760 exec_prefix="$acl_save_exec_prefix"
18761 prefix="$acl_save_prefix"
18762
18763 if test "X$x" = "X$element"; then
18764 haveit=yes
18765 break
18766 fi
18767 done
18768 if test -z "$haveit"; then
18769 LIBS="${LIBS}${LIBS:+ }$element"
18770 fi
18771 done
18772
18773
18774fi; if test "x$CY_EXECUTE" = x1; then break; fi
18775 done
18776
18777fi
18778 LTJAVASCRIPTCORE=$LIBS
18779 LIBS=$cy_save
18780
18781
18782 ;; #(
18783 *) :
18784 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18785esac
18786
18787else
18788
18789
18790
18791 cy_save=$LIBS
18792 LIBS=
18793
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18795$as_echo_n "checking for framework JavaScriptCore... " >&6; }
18796if ${ac_cv_framework_JavaScriptCore+:} false; then :
18797 $as_echo_n "(cached) " >&6
18798else
18799
18800 ac_check_framework_save_LIBS=$LIBS
18801 LIBS="-framework JavaScriptCore $LIBS"
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803/* end confdefs.h. */
18804
18805 #include <JavaScriptCore/JSBase.h>
18806
18807int
18808main ()
18809{
18810
18811 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18812
18813 ;
18814 return 0;
18815}
18816_ACEOF
18817if ac_fn_cxx_try_link "$LINENO"; then :
18818
18819 ac_cv_framework_JavaScriptCore=yes
18820
18821else
18822 ac_cv_framework_JavaScriptCore=no
18823fi
18824rm -f core conftest.err conftest.$ac_objext \
18825 conftest$ac_exeext conftest.$ac_ext
18826 LIBS=$ac_check_framework_save_LIBS
18827
18828fi
18829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18830$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18831 if test $ac_cv_framework_JavaScriptCore = yes; then :
18832
18833
18834 for element in "-framework JavaScriptCore"; do
18835 haveit=
18836 for x in $LIBS; do
18837
18838 acl_save_prefix="$prefix"
18839 prefix="$acl_final_prefix"
18840 acl_save_exec_prefix="$exec_prefix"
18841 exec_prefix="$acl_final_exec_prefix"
18842 eval x=\"$x\"
18843 exec_prefix="$acl_save_exec_prefix"
18844 prefix="$acl_save_prefix"
18845
18846 if test "X$x" = "X$element"; then
18847 haveit=yes
18848 break
18849 fi
18850 done
18851 if test -z "$haveit"; then
18852 LIBS="${LIBS}${LIBS:+ }$element"
18853 fi
18854 done
18855
18856
18857 CY_EXECUTE=1
18858
18859
18860
18861else
18862
18863 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18864
18865pkg_failed=no
18866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18867$as_echo_n "checking for WEBKIT... " >&6; }
18868
18869if test -n "$WEBKIT_CFLAGS"; then
18870 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18871 elif test -n "$PKG_CONFIG"; then
18872 if test -n "$PKG_CONFIG" && \
18873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18874 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18875 ac_status=$?
18876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18877 test $ac_status = 0; }; then
18878 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18879else
18880 pkg_failed=yes
18881fi
18882 else
18883 pkg_failed=untried
18884fi
18885if test -n "$WEBKIT_LIBS"; then
18886 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18887 elif test -n "$PKG_CONFIG"; then
18888 if test -n "$PKG_CONFIG" && \
18889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18890 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18891 ac_status=$?
18892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18893 test $ac_status = 0; }; then
18894 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18895else
18896 pkg_failed=yes
18897fi
18898 else
18899 pkg_failed=untried
18900fi
18901
18902
18903
18904if test $pkg_failed = yes; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18906$as_echo "no" >&6; }
18907
18908if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18909 _pkg_short_errors_supported=yes
18910else
18911 _pkg_short_errors_supported=no
18912fi
18913 if test $_pkg_short_errors_supported = yes; then
18914 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$cy_webkit_pkg" 2>&1`
18915 else
18916 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "$cy_webkit_pkg" 2>&1`
18917 fi
18918 # Put the nasty error message in config.log where it belongs
18919 echo "$WEBKIT_PKG_ERRORS" >&5
18920
18921 :
18922elif test $pkg_failed = untried; then
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18924$as_echo "no" >&6; }
18925 :
18926else
18927 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18928 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18930$as_echo "yes" >&6; }
18931
18932 CY_EXECUTE=1
18933
18934
18935 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18936 haveit=
18937 for x in $CPPFLAGS; do
18938
18939 acl_save_prefix="$prefix"
18940 prefix="$acl_final_prefix"
18941 acl_save_exec_prefix="$exec_prefix"
18942 exec_prefix="$acl_final_exec_prefix"
18943 eval x=\"$x\"
18944 exec_prefix="$acl_save_exec_prefix"
18945 prefix="$acl_save_prefix"
18946
18947 if test "X$x" = "X$element"; then
18948 haveit=yes
18949 break
18950 fi
18951 done
18952 if test -z "$haveit"; then
18953 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18954 fi
18955 done
18956
18957
18958 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18959 haveit=
18960 for x in $LIBS; do
18961
18962 acl_save_prefix="$prefix"
18963 prefix="$acl_final_prefix"
18964 acl_save_exec_prefix="$exec_prefix"
18965 exec_prefix="$acl_final_exec_prefix"
18966 eval x=\"$x\"
18967 exec_prefix="$acl_save_exec_prefix"
18968 prefix="$acl_save_prefix"
18969
18970 if test "X$x" = "X$element"; then
18971 haveit=yes
18972 break
18973 fi
18974 done
18975 if test -z "$haveit"; then
18976 LIBS="${LIBS}${LIBS:+ }$element"
18977 fi
18978 done
18979
18980
18981fi; if test "x$CY_EXECUTE" = x1; then break; fi
18982 done
18983
18984fi
18985 LTJAVASCRIPTCORE=$LIBS
18986 LIBS=$cy_save
18987
18988
18989
18990fi
18991
18992
18993
18994 apr_found="no"
18995
18996 if test "$target_os" = "os2-emx"; then
18997 # Scripts don't pass test -x on OS/2
18998 TEST_X="test -f"
18999 else
19000 TEST_X="test -x"
19001 fi
19002
19003 acceptable_majors="1"
19004
19005 apr_temp_acceptable_apr_config=""
19006 for apr_temp_major in $acceptable_majors
19007 do
19008 case $apr_temp_major in
19009 0)
19010 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19011 ;;
19012 *)
19013 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19014 ;;
19015 esac
19016 done
19017
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19019$as_echo_n "checking for APR... " >&6; }
19020
19021# Check whether --with-apr was given.
19022if test "${with_apr+set}" = set; then :
19023 withval=$with_apr;
19024 if test "$withval" = "no" || test "$withval" = "yes"; then
19025 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19026 fi
19027
19028 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19029 do
19030 for lookdir in "$withval/bin" "$withval"
19031 do
19032 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19033 apr_config="$lookdir/$apr_temp_apr_config_file"
19034
19035 apr_found="yes"
19036 break 2
19037 fi
19038 done
19039 done
19040
19041 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19042 apr_config="$withval"
19043 apr_found="yes"
19044 fi
19045
19046 if test "$apr_found" != "yes"; then
19047 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
19048 fi
19049
19050else
19051
19052 if test -n "1" && test "1" = "1"; then
19053 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19054 do
19055 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19056 apr_config="$apr_temp_apr_config_file"
19057
19058 apr_found="yes"
19059 break
19060 else
19061 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19062 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19063 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19064
19065 apr_found="yes"
19066 break 2
19067 fi
19068 done
19069 fi
19070 done
19071 fi
19072 if test "$apr_found" = "no" && test -d ""; then
19073 apr_temp_abs_srcdir="`cd && pwd`"
19074 apr_found="reconfig"
19075 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19076 case $apr_bundled_major in
19077 "")
19078 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19079 ;;
19080 0)
19081 apr_temp_apr_config_file="apr-config"
19082 ;;
19083 *)
19084 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19085 ;;
19086 esac
19087 if test -n ""; then
19088 apr_config="/$apr_temp_apr_config_file"
19089 else
19090 apr_config="/$apr_temp_apr_config_file"
19091 fi
19092 fi
19093
19094fi
19095
19096
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19098$as_echo "$apr_found" >&6; }
19099
19100case $apr_found in #(
19101 yes) :
19102
19103
19104 for element in `$apr_config --includes`; do
19105 haveit=
19106 for x in $CPPFLAGS; do
19107
19108 acl_save_prefix="$prefix"
19109 prefix="$acl_final_prefix"
19110 acl_save_exec_prefix="$exec_prefix"
19111 exec_prefix="$acl_final_exec_prefix"
19112 eval x=\"$x\"
19113 exec_prefix="$acl_save_exec_prefix"
19114 prefix="$acl_save_prefix"
19115
19116 if test "X$x" = "X$element"; then
19117 haveit=yes
19118 break
19119 fi
19120 done
19121 if test -z "$haveit"; then
19122 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19123 fi
19124 done
19125
19126
19127 for element in `$apr_config --link-libtool`; do
19128 haveit=
19129 for x in $LTLIBAPR; do
19130
19131 acl_save_prefix="$prefix"
19132 prefix="$acl_final_prefix"
19133 acl_save_exec_prefix="$exec_prefix"
19134 exec_prefix="$acl_final_exec_prefix"
19135 eval x=\"$x\"
19136 exec_prefix="$acl_save_exec_prefix"
19137 prefix="$acl_save_prefix"
19138
19139 if test "X$x" = "X$element"; then
19140 haveit=yes
19141 break
19142 fi
19143 done
19144 if test -z "$haveit"; then
19145 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
19146 fi
19147 done
19148
19149
19150 ;; #(
19151 *) :
19152 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19153esac
19154
19155
19156
19157 if test "x$CY_EXECUTE" = x1; then
19158 CY_EXECUTE_TRUE=
19159 CY_EXECUTE_FALSE='#'
19160else
19161 CY_EXECUTE_TRUE='#'
19162 CY_EXECUTE_FALSE=
19163fi
19164
19165
19166
19167case $CY_EXECUTE in #(
19168 1) :
19169
19170 for ac_header in ffi.h ffi/ffi.h
19171do :
19172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19173ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19174if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19175 cat >>confdefs.h <<_ACEOF
19176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19177_ACEOF
19178 break
19179fi
19180
19181done
19182
19183
19184
19185 cy_save=$LIBS
19186 LIBS=
19187 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19188
19189
19190 LIBFFI_CFLAGS
19191 C compiler flags for LIBFFI, overriding pkg-config
19192 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
19193
19194pkg_failed=no
19195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19196$as_echo_n "checking for LIBFFI... " >&6; }
19197
19198if test -n "$LIBFFI_CFLAGS"; then
19199 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19200 elif test -n "$PKG_CONFIG"; then
19201 if test -n "$PKG_CONFIG" && \
19202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19203 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19204 ac_status=$?
19205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19206 test $ac_status = 0; }; then
19207 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19208else
19209 pkg_failed=yes
19210fi
19211 else
19212 pkg_failed=untried
19213fi
19214if test -n "$LIBFFI_LIBS"; then
19215 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19216 elif test -n "$PKG_CONFIG"; then
19217 if test -n "$PKG_CONFIG" && \
19218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19219 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19220 ac_status=$?
19221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19222 test $ac_status = 0; }; then
19223 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19224else
19225 pkg_failed=yes
19226fi
19227 else
19228 pkg_failed=untried
19229fi
19230
19231
19232
19233if test $pkg_failed = yes; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235$as_echo "no" >&6; }
19236
19237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19238 _pkg_short_errors_supported=yes
19239else
19240 _pkg_short_errors_supported=no
19241fi
19242 if test $_pkg_short_errors_supported = yes; then
19243 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19244 else
19245 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19246 fi
19247 # Put the nasty error message in config.log where it belongs
19248 echo "$LIBFFI_PKG_ERRORS" >&5
19249
19250 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19251elif test $pkg_failed = untried; then
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253$as_echo "no" >&6; }
19254 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19255else
19256 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19257 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19259$as_echo "yes" >&6; }
19260
19261
19262 for element in `$PKG_CONFIG --cflags libffi`; do
19263 haveit=
19264 for x in $CPPFLAGS; do
19265
19266 acl_save_prefix="$prefix"
19267 prefix="$acl_final_prefix"
19268 acl_save_exec_prefix="$exec_prefix"
19269 exec_prefix="$acl_final_exec_prefix"
19270 eval x=\"$x\"
19271 exec_prefix="$acl_save_exec_prefix"
19272 prefix="$acl_save_prefix"
19273
19274 if test "X$x" = "X$element"; then
19275 haveit=yes
19276 break
19277 fi
19278 done
19279 if test -z "$haveit"; then
19280 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19281 fi
19282 done
19283
19284
19285 for element in `$PKG_CONFIG --libs libffi`; do
19286 haveit=
19287 for x in $LIBS; do
19288
19289 acl_save_prefix="$prefix"
19290 prefix="$acl_final_prefix"
19291 acl_save_exec_prefix="$exec_prefix"
19292 exec_prefix="$acl_final_exec_prefix"
19293 eval x=\"$x\"
19294 exec_prefix="$acl_save_exec_prefix"
19295 prefix="$acl_save_prefix"
19296
19297 if test "X$x" = "X$element"; then
19298 haveit=yes
19299 break
19300 fi
19301 done
19302 if test -z "$haveit"; then
19303 LIBS="${LIBS}${LIBS:+ }$element"
19304 fi
19305 done
19306
19307
19308fi
19309
19310else
19311
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19313$as_echo_n "checking for library containing ffi_call... " >&6; }
19314if ${ac_cv_search_ffi_call+:} false; then :
19315 $as_echo_n "(cached) " >&6
19316else
19317 ac_func_search_save_LIBS=$LIBS
19318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319/* end confdefs.h. */
19320
19321/* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324#ifdef __cplusplus
19325extern "C"
19326#endif
19327char ffi_call ();
19328int
19329main ()
19330{
19331return ffi_call ();
19332 ;
19333 return 0;
19334}
19335_ACEOF
19336for ac_lib in '' ffi; do
19337 if test -z "$ac_lib"; then
19338 ac_res="none required"
19339 else
19340 ac_res=-l$ac_lib
19341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19342 fi
19343 if ac_fn_cxx_try_link "$LINENO"; then :
19344 ac_cv_search_ffi_call=$ac_res
19345fi
19346rm -f core conftest.err conftest.$ac_objext \
19347 conftest$ac_exeext
19348 if ${ac_cv_search_ffi_call+:} false; then :
19349 break
19350fi
19351done
19352if ${ac_cv_search_ffi_call+:} false; then :
19353
19354else
19355 ac_cv_search_ffi_call=no
19356fi
19357rm conftest.$ac_ext
19358LIBS=$ac_func_search_save_LIBS
19359fi
19360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19361$as_echo "$ac_cv_search_ffi_call" >&6; }
19362ac_res=$ac_cv_search_ffi_call
19363if test "$ac_res" != no; then :
19364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19365
19366fi
19367
19368 case $ac_cv_search_ffi_call in #(
19369 no) :
19370
19371
19372pkg_failed=no
19373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19374$as_echo_n "checking for LIBFFI... " >&6; }
19375
19376if test -n "$LIBFFI_CFLAGS"; then
19377 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19378 elif test -n "$PKG_CONFIG"; then
19379 if test -n "$PKG_CONFIG" && \
19380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19381 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19382 ac_status=$?
19383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384 test $ac_status = 0; }; then
19385 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19386else
19387 pkg_failed=yes
19388fi
19389 else
19390 pkg_failed=untried
19391fi
19392if test -n "$LIBFFI_LIBS"; then
19393 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19394 elif test -n "$PKG_CONFIG"; then
19395 if test -n "$PKG_CONFIG" && \
19396 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19397 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19398 ac_status=$?
19399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19400 test $ac_status = 0; }; then
19401 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19402else
19403 pkg_failed=yes
19404fi
19405 else
19406 pkg_failed=untried
19407fi
19408
19409
19410
19411if test $pkg_failed = yes; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19413$as_echo "no" >&6; }
19414
19415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19416 _pkg_short_errors_supported=yes
19417else
19418 _pkg_short_errors_supported=no
19419fi
19420 if test $_pkg_short_errors_supported = yes; then
19421 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19422 else
19423 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19424 fi
19425 # Put the nasty error message in config.log where it belongs
19426 echo "$LIBFFI_PKG_ERRORS" >&5
19427
19428 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19429elif test $pkg_failed = untried; then
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19431$as_echo "no" >&6; }
19432 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19433else
19434 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19435 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19437$as_echo "yes" >&6; }
19438
19439
19440 for element in `$PKG_CONFIG --cflags libffi`; do
19441 haveit=
19442 for x in $CPPFLAGS; do
19443
19444 acl_save_prefix="$prefix"
19445 prefix="$acl_final_prefix"
19446 acl_save_exec_prefix="$exec_prefix"
19447 exec_prefix="$acl_final_exec_prefix"
19448 eval x=\"$x\"
19449 exec_prefix="$acl_save_exec_prefix"
19450 prefix="$acl_save_prefix"
19451
19452 if test "X$x" = "X$element"; then
19453 haveit=yes
19454 break
19455 fi
19456 done
19457 if test -z "$haveit"; then
19458 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19459 fi
19460 done
19461
19462
19463 for element in `$PKG_CONFIG --libs libffi`; do
19464 haveit=
19465 for x in $LIBS; do
19466
19467 acl_save_prefix="$prefix"
19468 prefix="$acl_final_prefix"
19469 acl_save_exec_prefix="$exec_prefix"
19470 exec_prefix="$acl_final_exec_prefix"
19471 eval x=\"$x\"
19472 exec_prefix="$acl_save_exec_prefix"
19473 prefix="$acl_save_prefix"
19474
19475 if test "X$x" = "X$element"; then
19476 haveit=yes
19477 break
19478 fi
19479 done
19480 if test -z "$haveit"; then
19481 LIBS="${LIBS}${LIBS:+ }$element"
19482 fi
19483 done
19484
19485
19486fi ;; #(
19487 *) :
19488 ;;
19489esac
19490
19491fi
19492 LTLIBFFI=$LIBS
19493 LIBS=$cy_save
19494
19495
19496
19497 ac_ext=mm
19498ac_cpp='$OBJCXXCPP $CPPFLAGS'
19499ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19500ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19501ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19502
19503
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19505$as_echo_n "checking if we really have Objective C++... " >&6; }
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507/* end confdefs.h. */
19508
19509_ACEOF
19510if ac_fn_objcxx_try_compile "$LINENO"; then :
19511
19512 CY_OBJECTIVEC=1
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514$as_echo "yes" >&6; }
19515
19516else
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19518$as_echo "no" >&6; }
19519fi
19520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521
19522 if test "x$CY_OBJECTIVEC" = x1; then :
19523
19524
19525 cy_save=$LIBS
19526 LIBS=
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19529$as_echo_n "checking for framework CoreFoundation... " >&6; }
19530if ${ac_cv_framework_CoreFoundation+:} false; then :
19531 $as_echo_n "(cached) " >&6
19532else
19533
19534 ac_check_framework_save_LIBS=$LIBS
19535 LIBS="-framework CoreFoundation $LIBS"
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537/* end confdefs.h. */
19538
19539 #include <CoreFoundation/CFBase.h>
19540
19541int
19542main ()
19543{
19544CFAllocatorGetDefault();
19545 ;
19546 return 0;
19547}
19548_ACEOF
19549if ac_fn_objcxx_try_link "$LINENO"; then :
19550
19551 ac_cv_framework_CoreFoundation=yes
19552
19553else
19554 ac_cv_framework_CoreFoundation=no
19555fi
19556rm -f core conftest.err conftest.$ac_objext \
19557 conftest$ac_exeext conftest.$ac_ext
19558 LIBS=$ac_check_framework_save_LIBS
19559
19560fi
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19562$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19563 if test $ac_cv_framework_CoreFoundation = yes; then :
19564
19565
19566 for element in "-framework CoreFoundation"; do
19567 haveit=
19568 for x in $LIBS; do
19569
19570 acl_save_prefix="$prefix"
19571 prefix="$acl_final_prefix"
19572 acl_save_exec_prefix="$exec_prefix"
19573 exec_prefix="$acl_final_exec_prefix"
19574 eval x=\"$x\"
19575 exec_prefix="$acl_save_exec_prefix"
19576 prefix="$acl_save_prefix"
19577
19578 if test "X$x" = "X$element"; then
19579 haveit=yes
19580 break
19581 fi
19582 done
19583 if test -z "$haveit"; then
19584 LIBS="${LIBS}${LIBS:+ }$element"
19585 fi
19586 done
19587
19588
19589
19590
19591
19592
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19594$as_echo_n "checking for framework Foundation... " >&6; }
19595if ${ac_cv_framework_Foundation+:} false; then :
19596 $as_echo_n "(cached) " >&6
19597else
19598
19599 ac_check_framework_save_LIBS=$LIBS
19600 LIBS="-framework Foundation $LIBS"
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602/* end confdefs.h. */
19603
19604 #include <Foundation/NSObject.h>
19605
19606int
19607main ()
19608{
19609[[NSObject alloc] init];
19610 ;
19611 return 0;
19612}
19613_ACEOF
19614if ac_fn_objcxx_try_link "$LINENO"; then :
19615
19616 ac_cv_framework_Foundation=yes
19617
19618else
19619 ac_cv_framework_Foundation=no
19620fi
19621rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_framework_save_LIBS
19624
19625fi
19626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19627$as_echo "$ac_cv_framework_Foundation" >&6; }
19628 if test $ac_cv_framework_Foundation = yes; then :
19629
19630
19631 for element in "-framework Foundation"; do
19632 haveit=
19633 for x in $LIBS; do
19634
19635 acl_save_prefix="$prefix"
19636 prefix="$acl_final_prefix"
19637 acl_save_exec_prefix="$exec_prefix"
19638 exec_prefix="$acl_final_exec_prefix"
19639 eval x=\"$x\"
19640 exec_prefix="$acl_save_exec_prefix"
19641 prefix="$acl_save_prefix"
19642
19643 if test "X$x" = "X$element"; then
19644 haveit=yes
19645 break
19646 fi
19647 done
19648 if test -z "$haveit"; then
19649 LIBS="${LIBS}${LIBS:+ }$element"
19650 fi
19651 done
19652
19653 cat >>confdefs.h <<_ACEOF
19654#define HAVE_FRAMEWORK_FOUNDATION 1
19655_ACEOF
19656
19657
19658fi
19659
19660
19661else
19662
19663
19664 for ac_prog in gnustep-config
19665do
19666 # Extract the first word of "$ac_prog", so it can be a program name with args.
19667set dummy $ac_prog; ac_word=$2
19668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19669$as_echo_n "checking for $ac_word... " >&6; }
19670if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19671 $as_echo_n "(cached) " >&6
19672else
19673 if test -n "$GNUSTEP_CONFIG"; then
19674 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19675else
19676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19677for as_dir in $PATH
19678do
19679 IFS=$as_save_IFS
19680 test -z "$as_dir" && as_dir=.
19681 for ac_exec_ext in '' $ac_executable_extensions; do
19682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19683 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19685 break 2
19686 fi
19687done
19688 done
19689IFS=$as_save_IFS
19690
19691fi
19692fi
19693GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19694if test -n "$GNUSTEP_CONFIG"; then
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19696$as_echo "$GNUSTEP_CONFIG" >&6; }
19697else
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19699$as_echo "no" >&6; }
19700fi
19701
19702
19703 test -n "$GNUSTEP_CONFIG" && break
19704done
19705
19706
19707 if test "x$GNUSTEP_CONFIG" != x; then :
19708
19709
19710
19711 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19712 haveit=
19713 for x in $OBJCXXFLAGS; do
19714
19715 acl_save_prefix="$prefix"
19716 prefix="$acl_final_prefix"
19717 acl_save_exec_prefix="$exec_prefix"
19718 exec_prefix="$acl_final_exec_prefix"
19719 eval x=\"$x\"
19720 exec_prefix="$acl_save_exec_prefix"
19721 prefix="$acl_save_prefix"
19722
19723 if test "X$x" = "X$element"; then
19724 haveit=yes
19725 break
19726 fi
19727 done
19728 if test -z "$haveit"; then
19729 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19730 fi
19731 done
19732
19733
19734 for element in `$GNUSTEP_CONFIG --base-libs`; do
19735 haveit=
19736 for x in $LIBS; do
19737
19738 acl_save_prefix="$prefix"
19739 prefix="$acl_final_prefix"
19740 acl_save_exec_prefix="$exec_prefix"
19741 exec_prefix="$acl_final_exec_prefix"
19742 eval x=\"$x\"
19743 exec_prefix="$acl_save_exec_prefix"
19744 prefix="$acl_save_prefix"
19745
19746 if test "X$x" = "X$element"; then
19747 haveit=yes
19748 break
19749 fi
19750 done
19751 if test -z "$haveit"; then
19752 LIBS="${LIBS}${LIBS:+ }$element"
19753 fi
19754 done
19755
19756
19757else
19758 CY_OBJECTIVEC=0
19759
19760fi
19761
19762fi
19763 LTOBJECTIVEC=$LIBS
19764 LIBS=$cy_save
19765
19766
19767
19768fi
19769
19770 ac_ext=cpp
19771ac_cpp='$CXXCPP $CPPFLAGS'
19772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19775
19776 ;; #(
19777 *) :
19778 ;;
19779esac
19780
19781 if test "x$CY_OBJECTIVEC" = x1; then
19782 CY_OBJECTIVEC_TRUE=
19783 CY_OBJECTIVEC_FALSE='#'
19784else
19785 CY_OBJECTIVEC_TRUE='#'
19786 CY_OBJECTIVEC_FALSE=
19787fi
19788
19789
19790
19791 cy_save=$LIBS
19792 LIBS=
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19795$as_echo_n "checking for a readline compatible library... " >&6; }
19796if ${ax_cv_lib_readline+:} false; then :
19797 $as_echo_n "(cached) " >&6
19798else
19799
19800 ORIG_LIBS="$LIBS"
19801 for readline_lib in readline edit editline; do
19802 for termcap_lib in "" termcap curses ncurses; do
19803 if test -z "$termcap_lib"; then
19804 TRY_LIB="-l$readline_lib"
19805 else
19806 TRY_LIB="-l$readline_lib -l$termcap_lib"
19807 fi
19808 LIBS="$ORIG_LIBS $TRY_LIB"
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810/* end confdefs.h. */
19811
19812/* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815#ifdef __cplusplus
19816extern "C"
19817#endif
19818char readline ();
19819int
19820main ()
19821{
19822return readline ();
19823 ;
19824 return 0;
19825}
19826_ACEOF
19827if ac_fn_cxx_try_link "$LINENO"; then :
19828 ax_cv_lib_readline="$TRY_LIB"
19829fi
19830rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 if test -n "$ax_cv_lib_readline"; then
19833 break
19834 fi
19835 done
19836 if test -n "$ax_cv_lib_readline"; then
19837 break
19838 fi
19839 done
19840 if test -z "$ax_cv_lib_readline"; then
19841 ax_cv_lib_readline="no"
19842 fi
19843 LIBS="$ORIG_LIBS"
19844
19845fi
19846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19847$as_echo "$ax_cv_lib_readline" >&6; }
19848
19849 if test "$ax_cv_lib_readline" != "no"; then
19850 LIBS="$LIBS $ax_cv_lib_readline"
19851
19852$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19853
19854 for ac_header in readline.h readline/readline.h
19855do :
19856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19858if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19859 cat >>confdefs.h <<_ACEOF
19860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19861_ACEOF
19862
19863fi
19864
19865done
19866
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19868$as_echo_n "checking whether readline supports history... " >&6; }
19869if ${ax_cv_lib_readline_history+:} false; then :
19870 $as_echo_n "(cached) " >&6
19871else
19872
19873 ax_cv_lib_readline_history="no"
19874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875/* end confdefs.h. */
19876
19877/* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19880#ifdef __cplusplus
19881extern "C"
19882#endif
19883char add_history ();
19884int
19885main ()
19886{
19887return add_history ();
19888 ;
19889 return 0;
19890}
19891_ACEOF
19892if ac_fn_cxx_try_link "$LINENO"; then :
19893 ax_cv_lib_readline_history="yes"
19894fi
19895rm -f core conftest.err conftest.$ac_objext \
19896 conftest$ac_exeext conftest.$ac_ext
19897
19898fi
19899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
19900$as_echo "$ax_cv_lib_readline_history" >&6; }
19901 if test "$ax_cv_lib_readline_history" = "yes"; then
19902
19903$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
19904
19905 for ac_header in history.h readline/history.h
19906do :
19907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19908ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19909if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19910 cat >>confdefs.h <<_ACEOF
19911#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19912_ACEOF
19913
19914fi
19915
19916done
19917
19918 fi
19919 fi
19920
19921 LTLIBREADLINE=$LIBS
19922 LIBS=$cy_save
19923
19924
19925case $ax_cv_lib_readline in #(
19926 no) :
19927 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
19928 *) :
19929 ;;
19930esac
19931
19932
19933 cy_save=$LIBS
19934 LIBS=
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
19936$as_echo_n "checking for library containing cur_term... " >&6; }
19937if ${ac_cv_search_cur_term+:} false; then :
19938 $as_echo_n "(cached) " >&6
19939else
19940 ac_func_search_save_LIBS=$LIBS
19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942/* end confdefs.h. */
19943
19944/* Override any GCC internal prototype to avoid an error.
19945 Use char because int might match the return type of a GCC
19946 builtin and then its argument prototype would still apply. */
19947#ifdef __cplusplus
19948extern "C"
19949#endif
19950char cur_term ();
19951int
19952main ()
19953{
19954return cur_term ();
19955 ;
19956 return 0;
19957}
19958_ACEOF
19959for ac_lib in '' termcap; do
19960 if test -z "$ac_lib"; then
19961 ac_res="none required"
19962 else
19963 ac_res=-l$ac_lib
19964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19965 fi
19966 if ac_fn_cxx_try_link "$LINENO"; then :
19967 ac_cv_search_cur_term=$ac_res
19968fi
19969rm -f core conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext
19971 if ${ac_cv_search_cur_term+:} false; then :
19972 break
19973fi
19974done
19975if ${ac_cv_search_cur_term+:} false; then :
19976
19977else
19978 ac_cv_search_cur_term=no
19979fi
19980rm conftest.$ac_ext
19981LIBS=$ac_func_search_save_LIBS
19982fi
19983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
19984$as_echo "$ac_cv_search_cur_term" >&6; }
19985ac_res=$ac_cv_search_cur_term
19986if test "$ac_res" != no; then :
19987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19988
19989fi
19990
19991 LTLIBTERMCAP=$LIBS
19992 LIBS=$cy_save
19993
19994
19995
19996
19997SO=$acl_shlibext
19998
19999
20000if test "x$CY_EXECUTE" = x1; then :
20001
20002 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20003if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20004
20005 if test -n "$ac_tool_prefix"; then
20006 for ac_prog in lipo
20007 do
20008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20011$as_echo_n "checking for $ac_word... " >&6; }
20012if ${ac_cv_prog__LIPO+:} false; then :
20013 $as_echo_n "(cached) " >&6
20014else
20015 if test -n "$_LIPO"; then
20016 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20017else
20018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20019for as_dir in $PATH
20020do
20021 IFS=$as_save_IFS
20022 test -z "$as_dir" && as_dir=.
20023 for ac_exec_ext in '' $ac_executable_extensions; do
20024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20025 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20027 break 2
20028 fi
20029done
20030 done
20031IFS=$as_save_IFS
20032
20033fi
20034fi
20035_LIPO=$ac_cv_prog__LIPO
20036if test -n "$_LIPO"; then
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20038$as_echo "$_LIPO" >&6; }
20039else
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041$as_echo "no" >&6; }
20042fi
20043
20044
20045 test -n "$_LIPO" && break
20046 done
20047fi
20048if test -z "$_LIPO"; then
20049 ac_ct__LIPO=$_LIPO
20050 for ac_prog in lipo
20051do
20052 # Extract the first word of "$ac_prog", so it can be a program name with args.
20053set dummy $ac_prog; ac_word=$2
20054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20055$as_echo_n "checking for $ac_word... " >&6; }
20056if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20057 $as_echo_n "(cached) " >&6
20058else
20059 if test -n "$ac_ct__LIPO"; then
20060 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20061else
20062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20063for as_dir in $PATH
20064do
20065 IFS=$as_save_IFS
20066 test -z "$as_dir" && as_dir=.
20067 for ac_exec_ext in '' $ac_executable_extensions; do
20068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20069 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20071 break 2
20072 fi
20073done
20074 done
20075IFS=$as_save_IFS
20076
20077fi
20078fi
20079ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20080if test -n "$ac_ct__LIPO"; then
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20082$as_echo "$ac_ct__LIPO" >&6; }
20083else
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085$as_echo "no" >&6; }
20086fi
20087
20088
20089 test -n "$ac_ct__LIPO" && break
20090done
20091
20092 if test "x$ac_ct__LIPO" = x; then
20093 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
20094 else
20095 case $cross_compiling:$ac_tool_warned in
20096yes:)
20097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20099ac_tool_warned=yes ;;
20100esac
20101 _LIPO=$ac_ct__LIPO
20102 fi
20103fi
20104
20105 if test -n "$ac_tool_prefix"; then
20106 for ac_prog in nm
20107 do
20108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20111$as_echo_n "checking for $ac_word... " >&6; }
20112if ${ac_cv_prog__NM+:} false; then :
20113 $as_echo_n "(cached) " >&6
20114else
20115 if test -n "$_NM"; then
20116 ac_cv_prog__NM="$_NM" # Let the user override the test.
20117else
20118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20119for as_dir in $PATH
20120do
20121 IFS=$as_save_IFS
20122 test -z "$as_dir" && as_dir=.
20123 for ac_exec_ext in '' $ac_executable_extensions; do
20124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20125 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20127 break 2
20128 fi
20129done
20130 done
20131IFS=$as_save_IFS
20132
20133fi
20134fi
20135_NM=$ac_cv_prog__NM
20136if test -n "$_NM"; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20138$as_echo "$_NM" >&6; }
20139else
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20141$as_echo "no" >&6; }
20142fi
20143
20144
20145 test -n "$_NM" && break
20146 done
20147fi
20148if test -z "$_NM"; then
20149 ac_ct__NM=$_NM
20150 for ac_prog in nm
20151do
20152 # Extract the first word of "$ac_prog", so it can be a program name with args.
20153set dummy $ac_prog; ac_word=$2
20154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20155$as_echo_n "checking for $ac_word... " >&6; }
20156if ${ac_cv_prog_ac_ct__NM+:} false; then :
20157 $as_echo_n "(cached) " >&6
20158else
20159 if test -n "$ac_ct__NM"; then
20160 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20161else
20162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20163for as_dir in $PATH
20164do
20165 IFS=$as_save_IFS
20166 test -z "$as_dir" && as_dir=.
20167 for ac_exec_ext in '' $ac_executable_extensions; do
20168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20169 ac_cv_prog_ac_ct__NM="$ac_prog"
20170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20171 break 2
20172 fi
20173done
20174 done
20175IFS=$as_save_IFS
20176
20177fi
20178fi
20179ac_ct__NM=$ac_cv_prog_ac_ct__NM
20180if test -n "$ac_ct__NM"; then
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20182$as_echo "$ac_ct__NM" >&6; }
20183else
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20185$as_echo "no" >&6; }
20186fi
20187
20188
20189 test -n "$ac_ct__NM" && break
20190done
20191
20192 if test "x$ac_ct__NM" = x; then
20193 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
20194 else
20195 case $cross_compiling:$ac_tool_warned in
20196yes:)
20197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20199ac_tool_warned=yes ;;
20200esac
20201 _NM=$ac_ct__NM
20202 fi
20203fi
20204
20205 if test -n "$ac_tool_prefix"; then
20206 for ac_prog in otool
20207 do
20208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211$as_echo_n "checking for $ac_word... " >&6; }
20212if ${ac_cv_prog__OTOOL+:} false; then :
20213 $as_echo_n "(cached) " >&6
20214else
20215 if test -n "$_OTOOL"; then
20216 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20217else
20218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20219for as_dir in $PATH
20220do
20221 IFS=$as_save_IFS
20222 test -z "$as_dir" && as_dir=.
20223 for ac_exec_ext in '' $ac_executable_extensions; do
20224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20225 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20227 break 2
20228 fi
20229done
20230 done
20231IFS=$as_save_IFS
20232
20233fi
20234fi
20235_OTOOL=$ac_cv_prog__OTOOL
20236if test -n "$_OTOOL"; then
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20238$as_echo "$_OTOOL" >&6; }
20239else
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20241$as_echo "no" >&6; }
20242fi
20243
20244
20245 test -n "$_OTOOL" && break
20246 done
20247fi
20248if test -z "$_OTOOL"; then
20249 ac_ct__OTOOL=$_OTOOL
20250 for ac_prog in otool
20251do
20252 # Extract the first word of "$ac_prog", so it can be a program name with args.
20253set dummy $ac_prog; ac_word=$2
20254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20255$as_echo_n "checking for $ac_word... " >&6; }
20256if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20257 $as_echo_n "(cached) " >&6
20258else
20259 if test -n "$ac_ct__OTOOL"; then
20260 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20261else
20262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20263for as_dir in $PATH
20264do
20265 IFS=$as_save_IFS
20266 test -z "$as_dir" && as_dir=.
20267 for ac_exec_ext in '' $ac_executable_extensions; do
20268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20269 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20271 break 2
20272 fi
20273done
20274 done
20275IFS=$as_save_IFS
20276
20277fi
20278fi
20279ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20280if test -n "$ac_ct__OTOOL"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20282$as_echo "$ac_ct__OTOOL" >&6; }
20283else
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285$as_echo "no" >&6; }
20286fi
20287
20288
20289 test -n "$ac_ct__OTOOL" && break
20290done
20291
20292 if test "x$ac_ct__OTOOL" = x; then
20293 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
20294 else
20295 case $cross_compiling:$ac_tool_warned in
20296yes:)
20297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20299ac_tool_warned=yes ;;
20300esac
20301 _OTOOL=$ac_ct__OTOOL
20302 fi
20303fi
20304
20305 CY_ATTACH_GROUP=procmod
20306
20307 CY_MACH=1
20308
20309fi
20310
20311
20312fi
20313 if test "x$CY_MACH" = x1; then
20314 CY_MACH_TRUE=
20315 CY_MACH_FALSE='#'
20316else
20317 CY_MACH_TRUE='#'
20318 CY_MACH_FALSE=
20319fi
20320
20321
20322ac_config_files="$ac_config_files Makefile"
20323
20324cat >confcache <<\_ACEOF
20325# This file is a shell script that caches the results of configure
20326# tests run on this system so they can be shared between configure
20327# scripts and configure runs, see configure's option --config-cache.
20328# It is not useful on other systems. If it contains results you don't
20329# want to keep, you may remove or edit it.
20330#
20331# config.status only pays attention to the cache file if you give it
20332# the --recheck option to rerun configure.
20333#
20334# `ac_cv_env_foo' variables (set or unset) will be overridden when
20335# loading this file, other *unset* `ac_cv_foo' will be assigned the
20336# following values.
20337
20338_ACEOF
20339
20340# The following way of writing the cache mishandles newlines in values,
20341# but we know of no workaround that is simple, portable, and efficient.
20342# So, we kill variables containing newlines.
20343# Ultrix sh set writes to stderr and can't be redirected directly,
20344# and sets the high bit in the cache file unless we assign to the vars.
20345(
20346 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20347 eval ac_val=\$$ac_var
20348 case $ac_val in #(
20349 *${as_nl}*)
20350 case $ac_var in #(
20351 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20352$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20353 esac
20354 case $ac_var in #(
20355 _ | IFS | as_nl) ;; #(
20356 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20357 *) { eval $ac_var=; unset $ac_var;} ;;
20358 esac ;;
20359 esac
20360 done
20361
20362 (set) 2>&1 |
20363 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20364 *${as_nl}ac_space=\ *)
20365 # `set' does not quote correctly, so add quotes: double-quote
20366 # substitution turns \\\\ into \\, and sed turns \\ into \.
20367 sed -n \
20368 "s/'/'\\\\''/g;
20369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20370 ;; #(
20371 *)
20372 # `set' quotes correctly as required by POSIX, so do not add quotes.
20373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20374 ;;
20375 esac |
20376 sort
20377) |
20378 sed '
20379 /^ac_cv_env_/b end
20380 t clear
20381 :clear
20382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20383 t end
20384 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20385 :end' >>confcache
20386if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20387 if test -w "$cache_file"; then
20388 if test "x$cache_file" != "x/dev/null"; then
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20390$as_echo "$as_me: updating cache $cache_file" >&6;}
20391 if test ! -f "$cache_file" || test -h "$cache_file"; then
20392 cat confcache >"$cache_file"
20393 else
20394 case $cache_file in #(
20395 */* | ?:*)
20396 mv -f confcache "$cache_file"$$ &&
20397 mv -f "$cache_file"$$ "$cache_file" ;; #(
20398 *)
20399 mv -f confcache "$cache_file" ;;
20400 esac
20401 fi
20402 fi
20403 else
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20405$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20406 fi
20407fi
20408rm -f confcache
20409
20410test "x$prefix" = xNONE && prefix=$ac_default_prefix
20411# Let make expand exec_prefix.
20412test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20413
20414DEFS=-DHAVE_CONFIG_H
20415
20416ac_libobjs=
20417ac_ltlibobjs=
20418U=
20419for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20420 # 1. Remove the extension, and $U if already installed.
20421 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20422 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20423 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20424 # will be set to the directory where LIBOBJS objects are built.
20425 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20426 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20427done
20428LIBOBJS=$ac_libobjs
20429
20430LTLIBOBJS=$ac_ltlibobjs
20431
20432
20433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20434$as_echo_n "checking that generated files are newer than configure... " >&6; }
20435 if test -n "$am_sleep_pid"; then
20436 # Hide warnings about reused PIDs.
20437 wait $am_sleep_pid 2>/dev/null
20438 fi
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20440$as_echo "done" >&6; }
20441 if test -n "$EXEEXT"; then
20442 am__EXEEXT_TRUE=
20443 am__EXEEXT_FALSE='#'
20444else
20445 am__EXEEXT_TRUE='#'
20446 am__EXEEXT_FALSE=
20447fi
20448
20449if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20450 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20451Usually this means the macro was only invoked conditionally." "$LINENO" 5
20452fi
20453if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20454 as_fn_error $? "conditional \"AMDEP\" was never defined.
20455Usually this means the macro was only invoked conditionally." "$LINENO" 5
20456fi
20457if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20458 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20459Usually this means the macro was only invoked conditionally." "$LINENO" 5
20460fi
20461if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20462 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20463Usually this means the macro was only invoked conditionally." "$LINENO" 5
20464fi
20465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20466 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20467Usually this means the macro was only invoked conditionally." "$LINENO" 5
20468fi
20469if test -z "${CY_IOS_SIMULATOR_TRUE}" && test -z "${CY_IOS_SIMULATOR_FALSE}"; then
20470 as_fn_error $? "conditional \"CY_IOS_SIMULATOR\" was never defined.
20471Usually this means the macro was only invoked conditionally." "$LINENO" 5
20472fi
20473if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20474 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20475Usually this means the macro was only invoked conditionally." "$LINENO" 5
20476fi
20477if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20478 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20479Usually this means the macro was only invoked conditionally." "$LINENO" 5
20480fi
20481if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20482 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20483Usually this means the macro was only invoked conditionally." "$LINENO" 5
20484fi
20485
20486: "${CONFIG_STATUS=./config.status}"
20487ac_write_fail=0
20488ac_clean_files_save=$ac_clean_files
20489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20490{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20491$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20492as_write_fail=0
20493cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20494#! $SHELL
20495# Generated by $as_me.
20496# Run this file to recreate the current configuration.
20497# Compiler output produced by configure, useful for debugging
20498# configure, is in config.log if it exists.
20499
20500debug=false
20501ac_cs_recheck=false
20502ac_cs_silent=false
20503
20504SHELL=\${CONFIG_SHELL-$SHELL}
20505export SHELL
20506_ASEOF
20507cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20508## -------------------- ##
20509## M4sh Initialization. ##
20510## -------------------- ##
20511
20512# Be more Bourne compatible
20513DUALCASE=1; export DUALCASE # for MKS sh
20514if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20515 emulate sh
20516 NULLCMD=:
20517 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20518 # is contrary to our usage. Disable this feature.
20519 alias -g '${1+"$@"}'='"$@"'
20520 setopt NO_GLOB_SUBST
20521else
20522 case `(set -o) 2>/dev/null` in #(
20523 *posix*) :
20524 set -o posix ;; #(
20525 *) :
20526 ;;
20527esac
20528fi
20529
20530
20531as_nl='
20532'
20533export as_nl
20534# Printing a long string crashes Solaris 7 /usr/bin/printf.
20535as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20536as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20537as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20538# Prefer a ksh shell builtin over an external printf program on Solaris,
20539# but without wasting forks for bash or zsh.
20540if test -z "$BASH_VERSION$ZSH_VERSION" \
20541 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20542 as_echo='print -r --'
20543 as_echo_n='print -rn --'
20544elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20545 as_echo='printf %s\n'
20546 as_echo_n='printf %s'
20547else
20548 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20549 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20550 as_echo_n='/usr/ucb/echo -n'
20551 else
20552 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20553 as_echo_n_body='eval
20554 arg=$1;
20555 case $arg in #(
20556 *"$as_nl"*)
20557 expr "X$arg" : "X\\(.*\\)$as_nl";
20558 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20559 esac;
20560 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20561 '
20562 export as_echo_n_body
20563 as_echo_n='sh -c $as_echo_n_body as_echo'
20564 fi
20565 export as_echo_body
20566 as_echo='sh -c $as_echo_body as_echo'
20567fi
20568
20569# The user is always right.
20570if test "${PATH_SEPARATOR+set}" != set; then
20571 PATH_SEPARATOR=:
20572 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20573 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20574 PATH_SEPARATOR=';'
20575 }
20576fi
20577
20578
20579# IFS
20580# We need space, tab and new line, in precisely that order. Quoting is
20581# there to prevent editors from complaining about space-tab.
20582# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20583# splitting by setting IFS to empty value.)
20584IFS=" "" $as_nl"
20585
20586# Find who we are. Look in the path if we contain no directory separator.
20587as_myself=
20588case $0 in #((
20589 *[\\/]* ) as_myself=$0 ;;
20590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591for as_dir in $PATH
20592do
20593 IFS=$as_save_IFS
20594 test -z "$as_dir" && as_dir=.
20595 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20596 done
20597IFS=$as_save_IFS
20598
20599 ;;
20600esac
20601# We did not find ourselves, most probably we were run as `sh COMMAND'
20602# in which case we are not to be found in the path.
20603if test "x$as_myself" = x; then
20604 as_myself=$0
20605fi
20606if test ! -f "$as_myself"; then
20607 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20608 exit 1
20609fi
20610
20611# Unset variables that we do not need and which cause bugs (e.g. in
20612# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20613# suppresses any "Segmentation fault" message there. '((' could
20614# trigger a bug in pdksh 5.2.14.
20615for as_var in BASH_ENV ENV MAIL MAILPATH
20616do eval test x\${$as_var+set} = xset \
20617 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20618done
20619PS1='$ '
20620PS2='> '
20621PS4='+ '
20622
20623# NLS nuisances.
20624LC_ALL=C
20625export LC_ALL
20626LANGUAGE=C
20627export LANGUAGE
20628
20629# CDPATH.
20630(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20631
20632
20633# as_fn_error STATUS ERROR [LINENO LOG_FD]
20634# ----------------------------------------
20635# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20636# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20637# script with STATUS, using 1 if that was 0.
20638as_fn_error ()
20639{
20640 as_status=$1; test $as_status -eq 0 && as_status=1
20641 if test "$4"; then
20642 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20643 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20644 fi
20645 $as_echo "$as_me: error: $2" >&2
20646 as_fn_exit $as_status
20647} # as_fn_error
20648
20649
20650# as_fn_set_status STATUS
20651# -----------------------
20652# Set $? to STATUS, without forking.
20653as_fn_set_status ()
20654{
20655 return $1
20656} # as_fn_set_status
20657
20658# as_fn_exit STATUS
20659# -----------------
20660# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20661as_fn_exit ()
20662{
20663 set +e
20664 as_fn_set_status $1
20665 exit $1
20666} # as_fn_exit
20667
20668# as_fn_unset VAR
20669# ---------------
20670# Portably unset VAR.
20671as_fn_unset ()
20672{
20673 { eval $1=; unset $1;}
20674}
20675as_unset=as_fn_unset
20676# as_fn_append VAR VALUE
20677# ----------------------
20678# Append the text in VALUE to the end of the definition contained in VAR. Take
20679# advantage of any shell optimizations that allow amortized linear growth over
20680# repeated appends, instead of the typical quadratic growth present in naive
20681# implementations.
20682if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20683 eval 'as_fn_append ()
20684 {
20685 eval $1+=\$2
20686 }'
20687else
20688 as_fn_append ()
20689 {
20690 eval $1=\$$1\$2
20691 }
20692fi # as_fn_append
20693
20694# as_fn_arith ARG...
20695# ------------------
20696# Perform arithmetic evaluation on the ARGs, and store the result in the
20697# global $as_val. Take advantage of shells that can avoid forks. The arguments
20698# must be portable across $(()) and expr.
20699if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20700 eval 'as_fn_arith ()
20701 {
20702 as_val=$(( $* ))
20703 }'
20704else
20705 as_fn_arith ()
20706 {
20707 as_val=`expr "$@" || test $? -eq 1`
20708 }
20709fi # as_fn_arith
20710
20711
20712if expr a : '\(a\)' >/dev/null 2>&1 &&
20713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20714 as_expr=expr
20715else
20716 as_expr=false
20717fi
20718
20719if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20720 as_basename=basename
20721else
20722 as_basename=false
20723fi
20724
20725if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20726 as_dirname=dirname
20727else
20728 as_dirname=false
20729fi
20730
20731as_me=`$as_basename -- "$0" ||
20732$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20733 X"$0" : 'X\(//\)$' \| \
20734 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20735$as_echo X/"$0" |
20736 sed '/^.*\/\([^/][^/]*\)\/*$/{
20737 s//\1/
20738 q
20739 }
20740 /^X\/\(\/\/\)$/{
20741 s//\1/
20742 q
20743 }
20744 /^X\/\(\/\).*/{
20745 s//\1/
20746 q
20747 }
20748 s/.*/./; q'`
20749
20750# Avoid depending upon Character Ranges.
20751as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20752as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20753as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20754as_cr_digits='0123456789'
20755as_cr_alnum=$as_cr_Letters$as_cr_digits
20756
20757ECHO_C= ECHO_N= ECHO_T=
20758case `echo -n x` in #(((((
20759-n*)
20760 case `echo 'xy\c'` in
20761 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20762 xy) ECHO_C='\c';;
20763 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20764 ECHO_T=' ';;
20765 esac;;
20766*)
20767 ECHO_N='-n';;
20768esac
20769
20770rm -f conf$$ conf$$.exe conf$$.file
20771if test -d conf$$.dir; then
20772 rm -f conf$$.dir/conf$$.file
20773else
20774 rm -f conf$$.dir
20775 mkdir conf$$.dir 2>/dev/null
20776fi
20777if (echo >conf$$.file) 2>/dev/null; then
20778 if ln -s conf$$.file conf$$ 2>/dev/null; then
20779 as_ln_s='ln -s'
20780 # ... but there are two gotchas:
20781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20783 # In both cases, we have to default to `cp -pR'.
20784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20785 as_ln_s='cp -pR'
20786 elif ln conf$$.file conf$$ 2>/dev/null; then
20787 as_ln_s=ln
20788 else
20789 as_ln_s='cp -pR'
20790 fi
20791else
20792 as_ln_s='cp -pR'
20793fi
20794rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20795rmdir conf$$.dir 2>/dev/null
20796
20797
20798# as_fn_mkdir_p
20799# -------------
20800# Create "$as_dir" as a directory, including parents if necessary.
20801as_fn_mkdir_p ()
20802{
20803
20804 case $as_dir in #(
20805 -*) as_dir=./$as_dir;;
20806 esac
20807 test -d "$as_dir" || eval $as_mkdir_p || {
20808 as_dirs=
20809 while :; do
20810 case $as_dir in #(
20811 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20812 *) as_qdir=$as_dir;;
20813 esac
20814 as_dirs="'$as_qdir' $as_dirs"
20815 as_dir=`$as_dirname -- "$as_dir" ||
20816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20817 X"$as_dir" : 'X\(//\)[^/]' \| \
20818 X"$as_dir" : 'X\(//\)$' \| \
20819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20820$as_echo X"$as_dir" |
20821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20822 s//\1/
20823 q
20824 }
20825 /^X\(\/\/\)[^/].*/{
20826 s//\1/
20827 q
20828 }
20829 /^X\(\/\/\)$/{
20830 s//\1/
20831 q
20832 }
20833 /^X\(\/\).*/{
20834 s//\1/
20835 q
20836 }
20837 s/.*/./; q'`
20838 test -d "$as_dir" && break
20839 done
20840 test -z "$as_dirs" || eval "mkdir $as_dirs"
20841 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20842
20843
20844} # as_fn_mkdir_p
20845if mkdir -p . 2>/dev/null; then
20846 as_mkdir_p='mkdir -p "$as_dir"'
20847else
20848 test -d ./-p && rmdir ./-p
20849 as_mkdir_p=false
20850fi
20851
20852
20853# as_fn_executable_p FILE
20854# -----------------------
20855# Test if FILE is an executable regular file.
20856as_fn_executable_p ()
20857{
20858 test -f "$1" && test -x "$1"
20859} # as_fn_executable_p
20860as_test_x='test -x'
20861as_executable_p=as_fn_executable_p
20862
20863# Sed expression to map a string onto a valid CPP name.
20864as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20865
20866# Sed expression to map a string onto a valid variable name.
20867as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20868
20869
20870exec 6>&1
20871## ----------------------------------- ##
20872## Main body of $CONFIG_STATUS script. ##
20873## ----------------------------------- ##
20874_ASEOF
20875test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20876
20877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20878# Save the log message, to keep $0 and so on meaningful, and to
20879# report actual input values of CONFIG_FILES etc. instead of their
20880# values after options handling.
20881ac_log="
20882This file was extended by Cycript $as_me 0.9, which was
20883generated by GNU Autoconf 2.69. Invocation command line was
20884
20885 CONFIG_FILES = $CONFIG_FILES
20886 CONFIG_HEADERS = $CONFIG_HEADERS
20887 CONFIG_LINKS = $CONFIG_LINKS
20888 CONFIG_COMMANDS = $CONFIG_COMMANDS
20889 $ $0 $@
20890
20891on `(hostname || uname -n) 2>/dev/null | sed 1q`
20892"
20893
20894_ACEOF
20895
20896case $ac_config_files in *"
20897"*) set x $ac_config_files; shift; ac_config_files=$*;;
20898esac
20899
20900case $ac_config_headers in *"
20901"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20902esac
20903
20904
20905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20906# Files that config.status was made for.
20907config_files="$ac_config_files"
20908config_headers="$ac_config_headers"
20909config_commands="$ac_config_commands"
20910
20911_ACEOF
20912
20913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20914ac_cs_usage="\
20915\`$as_me' instantiates files and other configuration actions
20916from templates according to the current configuration. Unless the files
20917and actions are specified as TAGs, all are instantiated by default.
20918
20919Usage: $0 [OPTION]... [TAG]...
20920
20921 -h, --help print this help, then exit
20922 -V, --version print version number and configuration settings, then exit
20923 --config print configuration, then exit
20924 -q, --quiet, --silent
20925 do not print progress messages
20926 -d, --debug don't remove temporary files
20927 --recheck update $as_me by reconfiguring in the same conditions
20928 --file=FILE[:TEMPLATE]
20929 instantiate the configuration file FILE
20930 --header=FILE[:TEMPLATE]
20931 instantiate the configuration header FILE
20932
20933Configuration files:
20934$config_files
20935
20936Configuration headers:
20937$config_headers
20938
20939Configuration commands:
20940$config_commands
20941
20942Report bugs to <saurik@saurik.com>.
20943Cycript home page: <http://www.cycript.org/>."
20944
20945_ACEOF
20946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20947ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20948ac_cs_version="\\
20949Cycript config.status 0.9
20950configured by $0, generated by GNU Autoconf 2.69,
20951 with options \\"\$ac_cs_config\\"
20952
20953Copyright (C) 2012 Free Software Foundation, Inc.
20954This config.status script is free software; the Free Software Foundation
20955gives unlimited permission to copy, distribute and modify it."
20956
20957ac_pwd='$ac_pwd'
20958srcdir='$srcdir'
20959INSTALL='$INSTALL'
20960MKDIR_P='$MKDIR_P'
20961AWK='$AWK'
20962test -n "\$AWK" || AWK=awk
20963_ACEOF
20964
20965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966# The default lists apply if the user does not specify any file.
20967ac_need_defaults=:
20968while test $# != 0
20969do
20970 case $1 in
20971 --*=?*)
20972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20974 ac_shift=:
20975 ;;
20976 --*=)
20977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20978 ac_optarg=
20979 ac_shift=:
20980 ;;
20981 *)
20982 ac_option=$1
20983 ac_optarg=$2
20984 ac_shift=shift
20985 ;;
20986 esac
20987
20988 case $ac_option in
20989 # Handling of the options.
20990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20991 ac_cs_recheck=: ;;
20992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20993 $as_echo "$ac_cs_version"; exit ;;
20994 --config | --confi | --conf | --con | --co | --c )
20995 $as_echo "$ac_cs_config"; exit ;;
20996 --debug | --debu | --deb | --de | --d | -d )
20997 debug=: ;;
20998 --file | --fil | --fi | --f )
20999 $ac_shift
21000 case $ac_optarg in
21001 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21002 '') as_fn_error $? "missing file argument" ;;
21003 esac
21004 as_fn_append CONFIG_FILES " '$ac_optarg'"
21005 ac_need_defaults=false;;
21006 --header | --heade | --head | --hea )
21007 $ac_shift
21008 case $ac_optarg in
21009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21010 esac
21011 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21012 ac_need_defaults=false;;
21013 --he | --h)
21014 # Conflict between --help and --header
21015 as_fn_error $? "ambiguous option: \`$1'
21016Try \`$0 --help' for more information.";;
21017 --help | --hel | -h )
21018 $as_echo "$ac_cs_usage"; exit ;;
21019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21020 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21021 ac_cs_silent=: ;;
21022
21023 # This is an error.
21024 -*) as_fn_error $? "unrecognized option: \`$1'
21025Try \`$0 --help' for more information." ;;
21026
21027 *) as_fn_append ac_config_targets " $1"
21028 ac_need_defaults=false ;;
21029
21030 esac
21031 shift
21032done
21033
21034ac_configure_extra_args=
21035
21036if $ac_cs_silent; then
21037 exec 6>/dev/null
21038 ac_configure_extra_args="$ac_configure_extra_args --silent"
21039fi
21040
21041_ACEOF
21042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21043if \$ac_cs_recheck; then
21044 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21045 shift
21046 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21047 CONFIG_SHELL='$SHELL'
21048 export CONFIG_SHELL
21049 exec "\$@"
21050fi
21051
21052_ACEOF
21053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21054exec 5>>config.log
21055{
21056 echo
21057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21058## Running $as_me. ##
21059_ASBOX
21060 $as_echo "$ac_log"
21061} >&5
21062
21063_ACEOF
21064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21065#
21066# INIT-COMMANDS
21067#
21068AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21069
21070
21071# The HP-UX ksh and POSIX shell print the target directory to stdout
21072# if CDPATH is set.
21073(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21074
21075sed_quote_subst='$sed_quote_subst'
21076double_quote_subst='$double_quote_subst'
21077delay_variable_subst='$delay_variable_subst'
21078macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21079macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21080enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21081enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21082pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21083enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21084SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21085ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21086PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21087host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21088host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21089host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21090build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21091build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21092build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21093SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21094Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21095GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21096EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21097FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21098LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21099NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21100LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21101max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21102ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21103exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21104lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21105lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21106lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21107lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21108lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21109reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21110reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21111OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21112deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21113file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21114file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21115want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21116DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21117sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21118AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21119AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21120archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21121STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21122RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21123old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21124old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21125old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21126lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21127CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21128CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21129compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21130GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21131lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21132lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21133lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21134lt_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"`'
21135nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21136lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21137objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21138MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21139lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21140lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21141lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21142lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21143lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21144need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21145MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21146DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21147NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21148LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21149OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21150OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21151libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21152shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21153extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21154archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21155enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21156export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21157whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21158compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21159old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21160old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21161archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21162archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21163module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21164module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21165with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21166allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21167no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21168hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21169hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21170hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21171hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21172hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21173hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21174hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21175inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21176link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21177always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21178export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21179exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21180include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21181prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21182postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21183file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21184variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21185need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21186need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21187version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21188runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21189shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21190shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21191libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21192library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21193soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21194install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21195postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21196postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21197finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21198finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21199hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21200sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21201sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21202hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21203enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21204enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21205enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21206old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21207striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21208compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21209predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21210postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21211predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21212postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21213compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21214LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21215reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21216reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21217old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21218compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21219GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21220lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21221lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21222lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21223lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21224lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21225archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21226enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21227export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21228whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21229compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21230old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21231old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21232archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21233archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21234module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21235module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21236with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21237allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21238no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21239hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21240hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21241hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21242hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21243hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21244hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21245hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21246inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21247link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21248always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21249export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21250exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21251include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21252prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21253postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21254file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21255hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21256compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21257predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21258postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21259predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21260postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21261compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21262
21263LTCC='$LTCC'
21264LTCFLAGS='$LTCFLAGS'
21265compiler='$compiler_DEFAULT'
21266
21267# A function that is used when there is no print builtin or printf.
21268func_fallback_echo ()
21269{
21270 eval 'cat <<_LTECHO_EOF
21271\$1
21272_LTECHO_EOF'
21273}
21274
21275# Quote evaled strings.
21276for var in SHELL \
21277ECHO \
21278PATH_SEPARATOR \
21279SED \
21280GREP \
21281EGREP \
21282FGREP \
21283LD \
21284NM \
21285LN_S \
21286lt_SP2NL \
21287lt_NL2SP \
21288reload_flag \
21289OBJDUMP \
21290deplibs_check_method \
21291file_magic_cmd \
21292file_magic_glob \
21293want_nocaseglob \
21294DLLTOOL \
21295sharedlib_from_linklib_cmd \
21296AR \
21297AR_FLAGS \
21298archiver_list_spec \
21299STRIP \
21300RANLIB \
21301CC \
21302CFLAGS \
21303compiler \
21304lt_cv_sys_global_symbol_pipe \
21305lt_cv_sys_global_symbol_to_cdecl \
21306lt_cv_sys_global_symbol_to_c_name_address \
21307lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21308nm_file_list_spec \
21309lt_prog_compiler_no_builtin_flag \
21310lt_prog_compiler_pic \
21311lt_prog_compiler_wl \
21312lt_prog_compiler_static \
21313lt_cv_prog_compiler_c_o \
21314need_locks \
21315MANIFEST_TOOL \
21316DSYMUTIL \
21317NMEDIT \
21318LIPO \
21319OTOOL \
21320OTOOL64 \
21321shrext_cmds \
21322export_dynamic_flag_spec \
21323whole_archive_flag_spec \
21324compiler_needs_object \
21325with_gnu_ld \
21326allow_undefined_flag \
21327no_undefined_flag \
21328hardcode_libdir_flag_spec \
21329hardcode_libdir_separator \
21330exclude_expsyms \
21331include_expsyms \
21332file_list_spec \
21333variables_saved_for_relink \
21334libname_spec \
21335library_names_spec \
21336soname_spec \
21337install_override_mode \
21338finish_eval \
21339old_striplib \
21340striplib \
21341compiler_lib_search_dirs \
21342predep_objects \
21343postdep_objects \
21344predeps \
21345postdeps \
21346compiler_lib_search_path \
21347LD_CXX \
21348reload_flag_CXX \
21349compiler_CXX \
21350lt_prog_compiler_no_builtin_flag_CXX \
21351lt_prog_compiler_pic_CXX \
21352lt_prog_compiler_wl_CXX \
21353lt_prog_compiler_static_CXX \
21354lt_cv_prog_compiler_c_o_CXX \
21355export_dynamic_flag_spec_CXX \
21356whole_archive_flag_spec_CXX \
21357compiler_needs_object_CXX \
21358with_gnu_ld_CXX \
21359allow_undefined_flag_CXX \
21360no_undefined_flag_CXX \
21361hardcode_libdir_flag_spec_CXX \
21362hardcode_libdir_separator_CXX \
21363exclude_expsyms_CXX \
21364include_expsyms_CXX \
21365file_list_spec_CXX \
21366compiler_lib_search_dirs_CXX \
21367predep_objects_CXX \
21368postdep_objects_CXX \
21369predeps_CXX \
21370postdeps_CXX \
21371compiler_lib_search_path_CXX; do
21372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21373 *[\\\\\\\`\\"\\\$]*)
21374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21375 ;;
21376 *)
21377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21378 ;;
21379 esac
21380done
21381
21382# Double-quote double-evaled strings.
21383for var in reload_cmds \
21384old_postinstall_cmds \
21385old_postuninstall_cmds \
21386old_archive_cmds \
21387extract_expsyms_cmds \
21388old_archive_from_new_cmds \
21389old_archive_from_expsyms_cmds \
21390archive_cmds \
21391archive_expsym_cmds \
21392module_cmds \
21393module_expsym_cmds \
21394export_symbols_cmds \
21395prelink_cmds \
21396postlink_cmds \
21397postinstall_cmds \
21398postuninstall_cmds \
21399finish_cmds \
21400sys_lib_search_path_spec \
21401sys_lib_dlsearch_path_spec \
21402reload_cmds_CXX \
21403old_archive_cmds_CXX \
21404old_archive_from_new_cmds_CXX \
21405old_archive_from_expsyms_cmds_CXX \
21406archive_cmds_CXX \
21407archive_expsym_cmds_CXX \
21408module_cmds_CXX \
21409module_expsym_cmds_CXX \
21410export_symbols_cmds_CXX \
21411prelink_cmds_CXX \
21412postlink_cmds_CXX; do
21413 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21414 *[\\\\\\\`\\"\\\$]*)
21415 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21416 ;;
21417 *)
21418 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21419 ;;
21420 esac
21421done
21422
21423ac_aux_dir='$ac_aux_dir'
21424xsi_shell='$xsi_shell'
21425lt_shell_append='$lt_shell_append'
21426
21427# See if we are running on zsh, and set the options which allow our
21428# commands through without removal of \ escapes INIT.
21429if test -n "\${ZSH_VERSION+set}" ; then
21430 setopt NO_GLOB_SUBST
21431fi
21432
21433
21434 PACKAGE='$PACKAGE'
21435 VERSION='$VERSION'
21436 TIMESTAMP='$TIMESTAMP'
21437 RM='$RM'
21438 ofile='$ofile'
21439
21440
21441
21442
21443
21444
21445_ACEOF
21446
21447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21448
21449# Handling of arguments.
21450for ac_config_target in $ac_config_targets
21451do
21452 case $ac_config_target in
21453 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21454 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21455 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21457
21458 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21459 esac
21460done
21461
21462
21463# If the user did not use the arguments to specify the items to instantiate,
21464# then the envvar interface is used. Set only those that are not.
21465# We use the long form for the default assignment because of an extremely
21466# bizarre bug on SunOS 4.1.3.
21467if $ac_need_defaults; then
21468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21471fi
21472
21473# Have a temporary directory for convenience. Make it in the build tree
21474# simply because there is no reason against having it here, and in addition,
21475# creating and moving files from /tmp can sometimes cause problems.
21476# Hook for its removal unless debugging.
21477# Note that there is a small window in which the directory will not be cleaned:
21478# after its creation but before its name has been assigned to `$tmp'.
21479$debug ||
21480{
21481 tmp= ac_tmp=
21482 trap 'exit_status=$?
21483 : "${ac_tmp:=$tmp}"
21484 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21485' 0
21486 trap 'as_fn_exit 1' 1 2 13 15
21487}
21488# Create a (secure) tmp directory for tmp files.
21489
21490{
21491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21492 test -d "$tmp"
21493} ||
21494{
21495 tmp=./conf$$-$RANDOM
21496 (umask 077 && mkdir "$tmp")
21497} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21498ac_tmp=$tmp
21499
21500# Set up the scripts for CONFIG_FILES section.
21501# No need to generate them if there are no CONFIG_FILES.
21502# This happens for instance with `./config.status config.h'.
21503if test -n "$CONFIG_FILES"; then
21504
21505
21506ac_cr=`echo X | tr X '\015'`
21507# On cygwin, bash can eat \r inside `` if the user requested igncr.
21508# But we know of no other shell where ac_cr would be empty at this
21509# point, so we can use a bashism as a fallback.
21510if test "x$ac_cr" = x; then
21511 eval ac_cr=\$\'\\r\'
21512fi
21513ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21514if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21515 ac_cs_awk_cr='\\r'
21516else
21517 ac_cs_awk_cr=$ac_cr
21518fi
21519
21520echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21521_ACEOF
21522
21523
21524{
21525 echo "cat >conf$$subs.awk <<_ACEOF" &&
21526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21527 echo "_ACEOF"
21528} >conf$$subs.sh ||
21529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21530ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21531ac_delim='%!_!# '
21532for ac_last_try in false false false false false :; do
21533 . ./conf$$subs.sh ||
21534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21535
21536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21537 if test $ac_delim_n = $ac_delim_num; then
21538 break
21539 elif $ac_last_try; then
21540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21541 else
21542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21543 fi
21544done
21545rm -f conf$$subs.sh
21546
21547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21548cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21549_ACEOF
21550sed -n '
21551h
21552s/^/S["/; s/!.*/"]=/
21553p
21554g
21555s/^[^!]*!//
21556:repl
21557t repl
21558s/'"$ac_delim"'$//
21559t delim
21560:nl
21561h
21562s/\(.\{148\}\)..*/\1/
21563t more1
21564s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21565p
21566n
21567b repl
21568:more1
21569s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21570p
21571g
21572s/.\{148\}//
21573t nl
21574:delim
21575h
21576s/\(.\{148\}\)..*/\1/
21577t more2
21578s/["\\]/\\&/g; s/^/"/; s/$/"/
21579p
21580b
21581:more2
21582s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21583p
21584g
21585s/.\{148\}//
21586t delim
21587' <conf$$subs.awk | sed '
21588/^[^""]/{
21589 N
21590 s/\n//
21591}
21592' >>$CONFIG_STATUS || ac_write_fail=1
21593rm -f conf$$subs.awk
21594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21595_ACAWK
21596cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21597 for (key in S) S_is_set[key] = 1
21598 FS = "\a"
21599
21600}
21601{
21602 line = $ 0
21603 nfields = split(line, field, "@")
21604 substed = 0
21605 len = length(field[1])
21606 for (i = 2; i < nfields; i++) {
21607 key = field[i]
21608 keylen = length(key)
21609 if (S_is_set[key]) {
21610 value = S[key]
21611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21612 len += length(value) + length(field[++i])
21613 substed = 1
21614 } else
21615 len += 1 + keylen
21616 }
21617
21618 print line
21619}
21620
21621_ACAWK
21622_ACEOF
21623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21624if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21626else
21627 cat
21628fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21629 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21630_ACEOF
21631
21632# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21633# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21634# trailing colons and then remove the whole line if VPATH becomes empty
21635# (actually we leave an empty line to preserve line numbers).
21636if test "x$srcdir" = x.; then
21637 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21638h
21639s///
21640s/^/:/
21641s/[ ]*$/:/
21642s/:\$(srcdir):/:/g
21643s/:\${srcdir}:/:/g
21644s/:@srcdir@:/:/g
21645s/^:*//
21646s/:*$//
21647x
21648s/\(=[ ]*\).*/\1/
21649G
21650s/\n//
21651s/^[^=]*=[ ]*$//
21652}'
21653fi
21654
21655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21656fi # test -n "$CONFIG_FILES"
21657
21658# Set up the scripts for CONFIG_HEADERS section.
21659# No need to generate them if there are no CONFIG_HEADERS.
21660# This happens for instance with `./config.status Makefile'.
21661if test -n "$CONFIG_HEADERS"; then
21662cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21663BEGIN {
21664_ACEOF
21665
21666# Transform confdefs.h into an awk script `defines.awk', embedded as
21667# here-document in config.status, that substitutes the proper values into
21668# config.h.in to produce config.h.
21669
21670# Create a delimiter string that does not exist in confdefs.h, to ease
21671# handling of long lines.
21672ac_delim='%!_!# '
21673for ac_last_try in false false :; do
21674 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21675 if test -z "$ac_tt"; then
21676 break
21677 elif $ac_last_try; then
21678 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21679 else
21680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21681 fi
21682done
21683
21684# For the awk script, D is an array of macro values keyed by name,
21685# likewise P contains macro parameters if any. Preserve backslash
21686# newline sequences.
21687
21688ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21689sed -n '
21690s/.\{148\}/&'"$ac_delim"'/g
21691t rset
21692:rset
21693s/^[ ]*#[ ]*define[ ][ ]*/ /
21694t def
21695d
21696:def
21697s/\\$//
21698t bsnl
21699s/["\\]/\\&/g
21700s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21701D["\1"]=" \3"/p
21702s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21703d
21704:bsnl
21705s/["\\]/\\&/g
21706s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21707D["\1"]=" \3\\\\\\n"\\/p
21708t cont
21709s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21710t cont
21711d
21712:cont
21713n
21714s/.\{148\}/&'"$ac_delim"'/g
21715t clear
21716:clear
21717s/\\$//
21718t bsnlc
21719s/["\\]/\\&/g; s/^/"/; s/$/"/p
21720d
21721:bsnlc
21722s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21723b cont
21724' <confdefs.h | sed '
21725s/'"$ac_delim"'/"\\\
21726"/g' >>$CONFIG_STATUS || ac_write_fail=1
21727
21728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21729 for (key in D) D_is_set[key] = 1
21730 FS = "\a"
21731}
21732/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21733 line = \$ 0
21734 split(line, arg, " ")
21735 if (arg[1] == "#") {
21736 defundef = arg[2]
21737 mac1 = arg[3]
21738 } else {
21739 defundef = substr(arg[1], 2)
21740 mac1 = arg[2]
21741 }
21742 split(mac1, mac2, "(") #)
21743 macro = mac2[1]
21744 prefix = substr(line, 1, index(line, defundef) - 1)
21745 if (D_is_set[macro]) {
21746 # Preserve the white space surrounding the "#".
21747 print prefix "define", macro P[macro] D[macro]
21748 next
21749 } else {
21750 # Replace #undef with comments. This is necessary, for example,
21751 # in the case of _POSIX_SOURCE, which is predefined and required
21752 # on some systems where configure will not decide to define it.
21753 if (defundef == "undef") {
21754 print "/*", prefix defundef, macro, "*/"
21755 next
21756 }
21757 }
21758}
21759{ print }
21760_ACAWK
21761_ACEOF
21762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21763 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21764fi # test -n "$CONFIG_HEADERS"
21765
21766
21767eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21768shift
21769for ac_tag
21770do
21771 case $ac_tag in
21772 :[FHLC]) ac_mode=$ac_tag; continue;;
21773 esac
21774 case $ac_mode$ac_tag in
21775 :[FHL]*:*);;
21776 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21777 :[FH]-) ac_tag=-:-;;
21778 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21779 esac
21780 ac_save_IFS=$IFS
21781 IFS=:
21782 set x $ac_tag
21783 IFS=$ac_save_IFS
21784 shift
21785 ac_file=$1
21786 shift
21787
21788 case $ac_mode in
21789 :L) ac_source=$1;;
21790 :[FH])
21791 ac_file_inputs=
21792 for ac_f
21793 do
21794 case $ac_f in
21795 -) ac_f="$ac_tmp/stdin";;
21796 *) # Look for the file first in the build tree, then in the source tree
21797 # (if the path is not absolute). The absolute path cannot be DOS-style,
21798 # because $ac_f cannot contain `:'.
21799 test -f "$ac_f" ||
21800 case $ac_f in
21801 [\\/$]*) false;;
21802 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21803 esac ||
21804 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21805 esac
21806 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21807 as_fn_append ac_file_inputs " '$ac_f'"
21808 done
21809
21810 # Let's still pretend it is `configure' which instantiates (i.e., don't
21811 # use $as_me), people would be surprised to read:
21812 # /* config.h. Generated by config.status. */
21813 configure_input='Generated from '`
21814 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21815 `' by configure.'
21816 if test x"$ac_file" != x-; then
21817 configure_input="$ac_file. $configure_input"
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21819$as_echo "$as_me: creating $ac_file" >&6;}
21820 fi
21821 # Neutralize special characters interpreted by sed in replacement strings.
21822 case $configure_input in #(
21823 *\&* | *\|* | *\\* )
21824 ac_sed_conf_input=`$as_echo "$configure_input" |
21825 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21826 *) ac_sed_conf_input=$configure_input;;
21827 esac
21828
21829 case $ac_tag in
21830 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21832 esac
21833 ;;
21834 esac
21835
21836 ac_dir=`$as_dirname -- "$ac_file" ||
21837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21838 X"$ac_file" : 'X\(//\)[^/]' \| \
21839 X"$ac_file" : 'X\(//\)$' \| \
21840 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21841$as_echo X"$ac_file" |
21842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21843 s//\1/
21844 q
21845 }
21846 /^X\(\/\/\)[^/].*/{
21847 s//\1/
21848 q
21849 }
21850 /^X\(\/\/\)$/{
21851 s//\1/
21852 q
21853 }
21854 /^X\(\/\).*/{
21855 s//\1/
21856 q
21857 }
21858 s/.*/./; q'`
21859 as_dir="$ac_dir"; as_fn_mkdir_p
21860 ac_builddir=.
21861
21862case "$ac_dir" in
21863.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21864*)
21865 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21866 # A ".." for each directory in $ac_dir_suffix.
21867 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21868 case $ac_top_builddir_sub in
21869 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21870 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21871 esac ;;
21872esac
21873ac_abs_top_builddir=$ac_pwd
21874ac_abs_builddir=$ac_pwd$ac_dir_suffix
21875# for backward compatibility:
21876ac_top_builddir=$ac_top_build_prefix
21877
21878case $srcdir in
21879 .) # We are building in place.
21880 ac_srcdir=.
21881 ac_top_srcdir=$ac_top_builddir_sub
21882 ac_abs_top_srcdir=$ac_pwd ;;
21883 [\\/]* | ?:[\\/]* ) # Absolute name.
21884 ac_srcdir=$srcdir$ac_dir_suffix;
21885 ac_top_srcdir=$srcdir
21886 ac_abs_top_srcdir=$srcdir ;;
21887 *) # Relative name.
21888 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21889 ac_top_srcdir=$ac_top_build_prefix$srcdir
21890 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21891esac
21892ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21893
21894
21895 case $ac_mode in
21896 :F)
21897 #
21898 # CONFIG_FILE
21899 #
21900
21901 case $INSTALL in
21902 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21903 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21904 esac
21905 ac_MKDIR_P=$MKDIR_P
21906 case $MKDIR_P in
21907 [\\/$]* | ?:[\\/]* ) ;;
21908 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21909 esac
21910_ACEOF
21911
21912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21913# If the template does not know about datarootdir, expand it.
21914# FIXME: This hack should be removed a few years after 2.60.
21915ac_datarootdir_hack=; ac_datarootdir_seen=
21916ac_sed_dataroot='
21917/datarootdir/ {
21918 p
21919 q
21920}
21921/@datadir@/p
21922/@docdir@/p
21923/@infodir@/p
21924/@localedir@/p
21925/@mandir@/p'
21926case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21927*datarootdir*) ac_datarootdir_seen=yes;;
21928*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21930$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21931_ACEOF
21932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21933 ac_datarootdir_hack='
21934 s&@datadir@&$datadir&g
21935 s&@docdir@&$docdir&g
21936 s&@infodir@&$infodir&g
21937 s&@localedir@&$localedir&g
21938 s&@mandir@&$mandir&g
21939 s&\\\${datarootdir}&$datarootdir&g' ;;
21940esac
21941_ACEOF
21942
21943# Neutralize VPATH when `$srcdir' = `.'.
21944# Shell code in configure.ac might set extrasub.
21945# FIXME: do we really want to maintain this feature?
21946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21947ac_sed_extra="$ac_vpsub
21948$extrasub
21949_ACEOF
21950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21951:t
21952/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21953s|@configure_input@|$ac_sed_conf_input|;t t
21954s&@top_builddir@&$ac_top_builddir_sub&;t t
21955s&@top_build_prefix@&$ac_top_build_prefix&;t t
21956s&@srcdir@&$ac_srcdir&;t t
21957s&@abs_srcdir@&$ac_abs_srcdir&;t t
21958s&@top_srcdir@&$ac_top_srcdir&;t t
21959s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21960s&@builddir@&$ac_builddir&;t t
21961s&@abs_builddir@&$ac_abs_builddir&;t t
21962s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21963s&@INSTALL@&$ac_INSTALL&;t t
21964s&@MKDIR_P@&$ac_MKDIR_P&;t t
21965$ac_datarootdir_hack
21966"
21967eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21968 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21969
21970test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21971 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21973 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21975which seems to be undefined. Please make sure it is defined" >&5
21976$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21977which seems to be undefined. Please make sure it is defined" >&2;}
21978
21979 rm -f "$ac_tmp/stdin"
21980 case $ac_file in
21981 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21982 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21983 esac \
21984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21985 ;;
21986 :H)
21987 #
21988 # CONFIG_HEADER
21989 #
21990 if test x"$ac_file" != x-; then
21991 {
21992 $as_echo "/* $configure_input */" \
21993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21994 } >"$ac_tmp/config.h" \
21995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21996 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21998$as_echo "$as_me: $ac_file is unchanged" >&6;}
21999 else
22000 rm -f "$ac_file"
22001 mv "$ac_tmp/config.h" "$ac_file" \
22002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22003 fi
22004 else
22005 $as_echo "/* $configure_input */" \
22006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22007 || as_fn_error $? "could not create -" "$LINENO" 5
22008 fi
22009# Compute "$ac_file"'s index in $config_headers.
22010_am_arg="$ac_file"
22011_am_stamp_count=1
22012for _am_header in $config_headers :; do
22013 case $_am_header in
22014 $_am_arg | $_am_arg:* )
22015 break ;;
22016 * )
22017 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22018 esac
22019done
22020echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22021$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22022 X"$_am_arg" : 'X\(//\)[^/]' \| \
22023 X"$_am_arg" : 'X\(//\)$' \| \
22024 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22025$as_echo X"$_am_arg" |
22026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22027 s//\1/
22028 q
22029 }
22030 /^X\(\/\/\)[^/].*/{
22031 s//\1/
22032 q
22033 }
22034 /^X\(\/\/\)$/{
22035 s//\1/
22036 q
22037 }
22038 /^X\(\/\).*/{
22039 s//\1/
22040 q
22041 }
22042 s/.*/./; q'`/stamp-h$_am_stamp_count
22043 ;;
22044
22045 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22046$as_echo "$as_me: executing $ac_file commands" >&6;}
22047 ;;
22048 esac
22049
22050
22051 case $ac_file$ac_mode in
22052 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22053 # Older Autoconf quotes --file arguments for eval, but not when files
22054 # are listed without --file. Let's play safe and only enable the eval
22055 # if we detect the quoting.
22056 case $CONFIG_FILES in
22057 *\'*) eval set x "$CONFIG_FILES" ;;
22058 *) set x $CONFIG_FILES ;;
22059 esac
22060 shift
22061 for mf
22062 do
22063 # Strip MF so we end up with the name of the file.
22064 mf=`echo "$mf" | sed -e 's/:.*$//'`
22065 # Check whether this is an Automake generated Makefile or not.
22066 # We used to match only the files named 'Makefile.in', but
22067 # some people rename them; so instead we look at the file content.
22068 # Grep'ing the first line is not enough: some people post-process
22069 # each Makefile.in and add a new line on top of each file to say so.
22070 # Grep'ing the whole file is not good either: AIX grep has a line
22071 # limit of 2048, but all sed's we know have understand at least 4000.
22072 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22073 dirpart=`$as_dirname -- "$mf" ||
22074$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22075 X"$mf" : 'X\(//\)[^/]' \| \
22076 X"$mf" : 'X\(//\)$' \| \
22077 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22078$as_echo X"$mf" |
22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22080 s//\1/
22081 q
22082 }
22083 /^X\(\/\/\)[^/].*/{
22084 s//\1/
22085 q
22086 }
22087 /^X\(\/\/\)$/{
22088 s//\1/
22089 q
22090 }
22091 /^X\(\/\).*/{
22092 s//\1/
22093 q
22094 }
22095 s/.*/./; q'`
22096 else
22097 continue
22098 fi
22099 # Extract the definition of DEPDIR, am__include, and am__quote
22100 # from the Makefile without running 'make'.
22101 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22102 test -z "$DEPDIR" && continue
22103 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22104 test -z "am__include" && continue
22105 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22106 # Find all dependency output files, they are included files with
22107 # $(DEPDIR) in their names. We invoke sed twice because it is the
22108 # simplest approach to changing $(DEPDIR) to its actual value in the
22109 # expansion.
22110 for file in `sed -n "
22111 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22112 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22113 # Make sure the directory exists.
22114 test -f "$dirpart/$file" && continue
22115 fdir=`$as_dirname -- "$file" ||
22116$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22117 X"$file" : 'X\(//\)[^/]' \| \
22118 X"$file" : 'X\(//\)$' \| \
22119 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22120$as_echo X"$file" |
22121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\/\)[^/].*/{
22126 s//\1/
22127 q
22128 }
22129 /^X\(\/\/\)$/{
22130 s//\1/
22131 q
22132 }
22133 /^X\(\/\).*/{
22134 s//\1/
22135 q
22136 }
22137 s/.*/./; q'`
22138 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22139 # echo "creating $dirpart/$file"
22140 echo '# dummy' > "$dirpart/$file"
22141 done
22142 done
22143}
22144 ;;
22145 "libtool":C)
22146
22147 # See if we are running on zsh, and set the options which allow our
22148 # commands through without removal of \ escapes.
22149 if test -n "${ZSH_VERSION+set}" ; then
22150 setopt NO_GLOB_SUBST
22151 fi
22152
22153 cfgfile="${ofile}T"
22154 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22155 $RM "$cfgfile"
22156
22157 cat <<_LT_EOF >> "$cfgfile"
22158#! $SHELL
22159
22160# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22161# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22162# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22163# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22164#
22165# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22166# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22167# Foundation, Inc.
22168# Written by Gordon Matzigkeit, 1996
22169#
22170# This file is part of GNU Libtool.
22171#
22172# GNU Libtool is free software; you can redistribute it and/or
22173# modify it under the terms of the GNU General Public License as
22174# published by the Free Software Foundation; either version 2 of
22175# the License, or (at your option) any later version.
22176#
22177# As a special exception to the GNU General Public License,
22178# if you distribute this file as part of a program or library that
22179# is built using GNU Libtool, you may include this file under the
22180# same distribution terms that you use for the rest of that program.
22181#
22182# GNU Libtool is distributed in the hope that it will be useful,
22183# but WITHOUT ANY WARRANTY; without even the implied warranty of
22184# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22185# GNU General Public License for more details.
22186#
22187# You should have received a copy of the GNU General Public License
22188# along with GNU Libtool; see the file COPYING. If not, a copy
22189# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22190# obtained by writing to the Free Software Foundation, Inc.,
22191# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22192
22193
22194# The names of the tagged configurations supported by this script.
22195available_tags="CXX "
22196
22197# ### BEGIN LIBTOOL CONFIG
22198
22199# Which release of libtool.m4 was used?
22200macro_version=$macro_version
22201macro_revision=$macro_revision
22202
22203# Whether or not to build static libraries.
22204build_old_libs=$enable_static
22205
22206# Whether or not to build shared libraries.
22207build_libtool_libs=$enable_shared
22208
22209# What type of objects to build.
22210pic_mode=$pic_mode
22211
22212# Whether or not to optimize for fast installation.
22213fast_install=$enable_fast_install
22214
22215# Shell to use when invoking shell scripts.
22216SHELL=$lt_SHELL
22217
22218# An echo program that protects backslashes.
22219ECHO=$lt_ECHO
22220
22221# The PATH separator for the build system.
22222PATH_SEPARATOR=$lt_PATH_SEPARATOR
22223
22224# The host system.
22225host_alias=$host_alias
22226host=$host
22227host_os=$host_os
22228
22229# The build system.
22230build_alias=$build_alias
22231build=$build
22232build_os=$build_os
22233
22234# A sed program that does not truncate output.
22235SED=$lt_SED
22236
22237# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22238Xsed="\$SED -e 1s/^X//"
22239
22240# A grep program that handles long lines.
22241GREP=$lt_GREP
22242
22243# An ERE matcher.
22244EGREP=$lt_EGREP
22245
22246# A literal string matcher.
22247FGREP=$lt_FGREP
22248
22249# A BSD- or MS-compatible name lister.
22250NM=$lt_NM
22251
22252# Whether we need soft or hard links.
22253LN_S=$lt_LN_S
22254
22255# What is the maximum length of a command?
22256max_cmd_len=$max_cmd_len
22257
22258# Object file suffix (normally "o").
22259objext=$ac_objext
22260
22261# Executable file suffix (normally "").
22262exeext=$exeext
22263
22264# whether the shell understands "unset".
22265lt_unset=$lt_unset
22266
22267# turn spaces into newlines.
22268SP2NL=$lt_lt_SP2NL
22269
22270# turn newlines into spaces.
22271NL2SP=$lt_lt_NL2SP
22272
22273# convert \$build file names to \$host format.
22274to_host_file_cmd=$lt_cv_to_host_file_cmd
22275
22276# convert \$build files to toolchain format.
22277to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22278
22279# An object symbol dumper.
22280OBJDUMP=$lt_OBJDUMP
22281
22282# Method to check whether dependent libraries are shared objects.
22283deplibs_check_method=$lt_deplibs_check_method
22284
22285# Command to use when deplibs_check_method = "file_magic".
22286file_magic_cmd=$lt_file_magic_cmd
22287
22288# How to find potential files when deplibs_check_method = "file_magic".
22289file_magic_glob=$lt_file_magic_glob
22290
22291# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22292want_nocaseglob=$lt_want_nocaseglob
22293
22294# DLL creation program.
22295DLLTOOL=$lt_DLLTOOL
22296
22297# Command to associate shared and link libraries.
22298sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22299
22300# The archiver.
22301AR=$lt_AR
22302
22303# Flags to create an archive.
22304AR_FLAGS=$lt_AR_FLAGS
22305
22306# How to feed a file listing to the archiver.
22307archiver_list_spec=$lt_archiver_list_spec
22308
22309# A symbol stripping program.
22310STRIP=$lt_STRIP
22311
22312# Commands used to install an old-style archive.
22313RANLIB=$lt_RANLIB
22314old_postinstall_cmds=$lt_old_postinstall_cmds
22315old_postuninstall_cmds=$lt_old_postuninstall_cmds
22316
22317# Whether to use a lock for old archive extraction.
22318lock_old_archive_extraction=$lock_old_archive_extraction
22319
22320# A C compiler.
22321LTCC=$lt_CC
22322
22323# LTCC compiler flags.
22324LTCFLAGS=$lt_CFLAGS
22325
22326# Take the output of nm and produce a listing of raw symbols and C names.
22327global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22328
22329# Transform the output of nm in a proper C declaration.
22330global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22331
22332# Transform the output of nm in a C name address pair.
22333global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22334
22335# Transform the output of nm in a C name address pair when lib prefix is needed.
22336global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22337
22338# Specify filename containing input files for \$NM.
22339nm_file_list_spec=$lt_nm_file_list_spec
22340
22341# The root where to search for dependent libraries,and in which our libraries should be installed.
22342lt_sysroot=$lt_sysroot
22343
22344# The name of the directory that contains temporary libtool files.
22345objdir=$objdir
22346
22347# Used to examine libraries when file_magic_cmd begins with "file".
22348MAGIC_CMD=$MAGIC_CMD
22349
22350# Must we lock files when doing compilation?
22351need_locks=$lt_need_locks
22352
22353# Manifest tool.
22354MANIFEST_TOOL=$lt_MANIFEST_TOOL
22355
22356# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22357DSYMUTIL=$lt_DSYMUTIL
22358
22359# Tool to change global to local symbols on Mac OS X.
22360NMEDIT=$lt_NMEDIT
22361
22362# Tool to manipulate fat objects and archives on Mac OS X.
22363LIPO=$lt_LIPO
22364
22365# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22366OTOOL=$lt_OTOOL
22367
22368# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22369OTOOL64=$lt_OTOOL64
22370
22371# Old archive suffix (normally "a").
22372libext=$libext
22373
22374# Shared library suffix (normally ".so").
22375shrext_cmds=$lt_shrext_cmds
22376
22377# The commands to extract the exported symbol list from a shared archive.
22378extract_expsyms_cmds=$lt_extract_expsyms_cmds
22379
22380# Variables whose values should be saved in libtool wrapper scripts and
22381# restored at link time.
22382variables_saved_for_relink=$lt_variables_saved_for_relink
22383
22384# Do we need the "lib" prefix for modules?
22385need_lib_prefix=$need_lib_prefix
22386
22387# Do we need a version for libraries?
22388need_version=$need_version
22389
22390# Library versioning type.
22391version_type=$version_type
22392
22393# Shared library runtime path variable.
22394runpath_var=$runpath_var
22395
22396# Shared library path variable.
22397shlibpath_var=$shlibpath_var
22398
22399# Is shlibpath searched before the hard-coded library search path?
22400shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22401
22402# Format of library name prefix.
22403libname_spec=$lt_libname_spec
22404
22405# List of archive names. First name is the real one, the rest are links.
22406# The last name is the one that the linker finds with -lNAME
22407library_names_spec=$lt_library_names_spec
22408
22409# The coded name of the library, if different from the real name.
22410soname_spec=$lt_soname_spec
22411
22412# Permission mode override for installation of shared libraries.
22413install_override_mode=$lt_install_override_mode
22414
22415# Command to use after installation of a shared archive.
22416postinstall_cmds=$lt_postinstall_cmds
22417
22418# Command to use after uninstallation of a shared archive.
22419postuninstall_cmds=$lt_postuninstall_cmds
22420
22421# Commands used to finish a libtool library installation in a directory.
22422finish_cmds=$lt_finish_cmds
22423
22424# As "finish_cmds", except a single script fragment to be evaled but
22425# not shown.
22426finish_eval=$lt_finish_eval
22427
22428# Whether we should hardcode library paths into libraries.
22429hardcode_into_libs=$hardcode_into_libs
22430
22431# Compile-time system search path for libraries.
22432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22433
22434# Run-time system search path for libraries.
22435sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22436
22437# Whether dlopen is supported.
22438dlopen_support=$enable_dlopen
22439
22440# Whether dlopen of programs is supported.
22441dlopen_self=$enable_dlopen_self
22442
22443# Whether dlopen of statically linked programs is supported.
22444dlopen_self_static=$enable_dlopen_self_static
22445
22446# Commands to strip libraries.
22447old_striplib=$lt_old_striplib
22448striplib=$lt_striplib
22449
22450
22451# The linker used to build libraries.
22452LD=$lt_LD
22453
22454# How to create reloadable object files.
22455reload_flag=$lt_reload_flag
22456reload_cmds=$lt_reload_cmds
22457
22458# Commands used to build an old-style archive.
22459old_archive_cmds=$lt_old_archive_cmds
22460
22461# A language specific compiler.
22462CC=$lt_compiler
22463
22464# Is the compiler the GNU compiler?
22465with_gcc=$GCC
22466
22467# Compiler flag to turn off builtin functions.
22468no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22469
22470# Additional compiler flags for building library objects.
22471pic_flag=$lt_lt_prog_compiler_pic
22472
22473# How to pass a linker flag through the compiler.
22474wl=$lt_lt_prog_compiler_wl
22475
22476# Compiler flag to prevent dynamic linking.
22477link_static_flag=$lt_lt_prog_compiler_static
22478
22479# Does compiler simultaneously support -c and -o options?
22480compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22481
22482# Whether or not to add -lc for building shared libraries.
22483build_libtool_need_lc=$archive_cmds_need_lc
22484
22485# Whether or not to disallow shared libs when runtime libs are static.
22486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22487
22488# Compiler flag to allow reflexive dlopens.
22489export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22490
22491# Compiler flag to generate shared objects directly from archives.
22492whole_archive_flag_spec=$lt_whole_archive_flag_spec
22493
22494# Whether the compiler copes with passing no objects directly.
22495compiler_needs_object=$lt_compiler_needs_object
22496
22497# Create an old-style archive from a shared archive.
22498old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22499
22500# Create a temporary old-style archive to link instead of a shared archive.
22501old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22502
22503# Commands used to build a shared archive.
22504archive_cmds=$lt_archive_cmds
22505archive_expsym_cmds=$lt_archive_expsym_cmds
22506
22507# Commands used to build a loadable module if different from building
22508# a shared archive.
22509module_cmds=$lt_module_cmds
22510module_expsym_cmds=$lt_module_expsym_cmds
22511
22512# Whether we are building with GNU ld or not.
22513with_gnu_ld=$lt_with_gnu_ld
22514
22515# Flag that allows shared libraries with undefined symbols to be built.
22516allow_undefined_flag=$lt_allow_undefined_flag
22517
22518# Flag that enforces no undefined symbols.
22519no_undefined_flag=$lt_no_undefined_flag
22520
22521# Flag to hardcode \$libdir into a binary during linking.
22522# This must work even if \$libdir does not exist
22523hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22524
22525# Whether we need a single "-rpath" flag with a separated argument.
22526hardcode_libdir_separator=$lt_hardcode_libdir_separator
22527
22528# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22529# DIR into the resulting binary.
22530hardcode_direct=$hardcode_direct
22531
22532# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22533# DIR into the resulting binary and the resulting library dependency is
22534# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22535# library is relocated.
22536hardcode_direct_absolute=$hardcode_direct_absolute
22537
22538# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22539# into the resulting binary.
22540hardcode_minus_L=$hardcode_minus_L
22541
22542# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22543# into the resulting binary.
22544hardcode_shlibpath_var=$hardcode_shlibpath_var
22545
22546# Set to "yes" if building a shared library automatically hardcodes DIR
22547# into the library and all subsequent libraries and executables linked
22548# against it.
22549hardcode_automatic=$hardcode_automatic
22550
22551# Set to yes if linker adds runtime paths of dependent libraries
22552# to runtime path list.
22553inherit_rpath=$inherit_rpath
22554
22555# Whether libtool must link a program against all its dependency libraries.
22556link_all_deplibs=$link_all_deplibs
22557
22558# Set to "yes" if exported symbols are required.
22559always_export_symbols=$always_export_symbols
22560
22561# The commands to list exported symbols.
22562export_symbols_cmds=$lt_export_symbols_cmds
22563
22564# Symbols that should not be listed in the preloaded symbols.
22565exclude_expsyms=$lt_exclude_expsyms
22566
22567# Symbols that must always be exported.
22568include_expsyms=$lt_include_expsyms
22569
22570# Commands necessary for linking programs (against libraries) with templates.
22571prelink_cmds=$lt_prelink_cmds
22572
22573# Commands necessary for finishing linking programs.
22574postlink_cmds=$lt_postlink_cmds
22575
22576# Specify filename containing input files.
22577file_list_spec=$lt_file_list_spec
22578
22579# How to hardcode a shared library path into an executable.
22580hardcode_action=$hardcode_action
22581
22582# The directories searched by this compiler when creating a shared library.
22583compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22584
22585# Dependencies to place before and after the objects being linked to
22586# create a shared library.
22587predep_objects=$lt_predep_objects
22588postdep_objects=$lt_postdep_objects
22589predeps=$lt_predeps
22590postdeps=$lt_postdeps
22591
22592# The library search path used internally by the compiler when linking
22593# a shared library.
22594compiler_lib_search_path=$lt_compiler_lib_search_path
22595
22596# ### END LIBTOOL CONFIG
22597
22598_LT_EOF
22599
22600 case $host_os in
22601 aix3*)
22602 cat <<\_LT_EOF >> "$cfgfile"
22603# AIX sometimes has problems with the GCC collect2 program. For some
22604# reason, if we set the COLLECT_NAMES environment variable, the problems
22605# vanish in a puff of smoke.
22606if test "X${COLLECT_NAMES+set}" != Xset; then
22607 COLLECT_NAMES=
22608 export COLLECT_NAMES
22609fi
22610_LT_EOF
22611 ;;
22612 esac
22613
22614
22615ltmain="$ac_aux_dir/ltmain.sh"
22616
22617
22618 # We use sed instead of cat because bash on DJGPP gets confused if
22619 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22620 # text mode, it properly converts lines to CR/LF. This bash problem
22621 # is reportedly fixed, but why not run on old versions too?
22622 sed '$q' "$ltmain" >> "$cfgfile" \
22623 || (rm -f "$cfgfile"; exit 1)
22624
22625 if test x"$xsi_shell" = xyes; then
22626 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22627func_dirname ()\
22628{\
22629\ case ${1} in\
22630\ */*) func_dirname_result="${1%/*}${2}" ;;\
22631\ * ) func_dirname_result="${3}" ;;\
22632\ esac\
22633} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22634 && mv -f "$cfgfile.tmp" "$cfgfile" \
22635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22636test 0 -eq $? || _lt_function_replace_fail=:
22637
22638
22639 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22640func_basename ()\
22641{\
22642\ func_basename_result="${1##*/}"\
22643} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22644 && mv -f "$cfgfile.tmp" "$cfgfile" \
22645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22646test 0 -eq $? || _lt_function_replace_fail=:
22647
22648
22649 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22650func_dirname_and_basename ()\
22651{\
22652\ case ${1} in\
22653\ */*) func_dirname_result="${1%/*}${2}" ;;\
22654\ * ) func_dirname_result="${3}" ;;\
22655\ esac\
22656\ func_basename_result="${1##*/}"\
22657} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22658 && mv -f "$cfgfile.tmp" "$cfgfile" \
22659 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22660test 0 -eq $? || _lt_function_replace_fail=:
22661
22662
22663 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22664func_stripname ()\
22665{\
22666\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22667\ # positional parameters, so assign one to ordinary parameter first.\
22668\ func_stripname_result=${3}\
22669\ func_stripname_result=${func_stripname_result#"${1}"}\
22670\ func_stripname_result=${func_stripname_result%"${2}"}\
22671} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22672 && mv -f "$cfgfile.tmp" "$cfgfile" \
22673 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22674test 0 -eq $? || _lt_function_replace_fail=:
22675
22676
22677 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22678func_split_long_opt ()\
22679{\
22680\ func_split_long_opt_name=${1%%=*}\
22681\ func_split_long_opt_arg=${1#*=}\
22682} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22683 && mv -f "$cfgfile.tmp" "$cfgfile" \
22684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22685test 0 -eq $? || _lt_function_replace_fail=:
22686
22687
22688 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22689func_split_short_opt ()\
22690{\
22691\ func_split_short_opt_arg=${1#??}\
22692\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22693} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22694 && mv -f "$cfgfile.tmp" "$cfgfile" \
22695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22696test 0 -eq $? || _lt_function_replace_fail=:
22697
22698
22699 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22700func_lo2o ()\
22701{\
22702\ case ${1} in\
22703\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22704\ *) func_lo2o_result=${1} ;;\
22705\ esac\
22706} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22707 && mv -f "$cfgfile.tmp" "$cfgfile" \
22708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22709test 0 -eq $? || _lt_function_replace_fail=:
22710
22711
22712 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22713func_xform ()\
22714{\
22715 func_xform_result=${1%.*}.lo\
22716} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22717 && mv -f "$cfgfile.tmp" "$cfgfile" \
22718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22719test 0 -eq $? || _lt_function_replace_fail=:
22720
22721
22722 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22723func_arith ()\
22724{\
22725 func_arith_result=$(( $* ))\
22726} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22727 && mv -f "$cfgfile.tmp" "$cfgfile" \
22728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22729test 0 -eq $? || _lt_function_replace_fail=:
22730
22731
22732 sed -e '/^func_len ()$/,/^} # func_len /c\
22733func_len ()\
22734{\
22735 func_len_result=${#1}\
22736} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22737 && mv -f "$cfgfile.tmp" "$cfgfile" \
22738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22739test 0 -eq $? || _lt_function_replace_fail=:
22740
22741fi
22742
22743if test x"$lt_shell_append" = xyes; then
22744 sed -e '/^func_append ()$/,/^} # func_append /c\
22745func_append ()\
22746{\
22747 eval "${1}+=\\${2}"\
22748} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22749 && mv -f "$cfgfile.tmp" "$cfgfile" \
22750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22751test 0 -eq $? || _lt_function_replace_fail=:
22752
22753
22754 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22755func_append_quoted ()\
22756{\
22757\ func_quote_for_eval "${2}"\
22758\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22759} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22760 && mv -f "$cfgfile.tmp" "$cfgfile" \
22761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22762test 0 -eq $? || _lt_function_replace_fail=:
22763
22764
22765 # Save a `func_append' function call where possible by direct use of '+='
22766 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22767 && mv -f "$cfgfile.tmp" "$cfgfile" \
22768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22769 test 0 -eq $? || _lt_function_replace_fail=:
22770else
22771 # Save a `func_append' function call even when '+=' is not available
22772 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22773 && mv -f "$cfgfile.tmp" "$cfgfile" \
22774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22775 test 0 -eq $? || _lt_function_replace_fail=:
22776fi
22777
22778if test x"$_lt_function_replace_fail" = x":"; then
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22780$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22781fi
22782
22783
22784 mv -f "$cfgfile" "$ofile" ||
22785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22786 chmod +x "$ofile"
22787
22788
22789 cat <<_LT_EOF >> "$ofile"
22790
22791# ### BEGIN LIBTOOL TAG CONFIG: CXX
22792
22793# The linker used to build libraries.
22794LD=$lt_LD_CXX
22795
22796# How to create reloadable object files.
22797reload_flag=$lt_reload_flag_CXX
22798reload_cmds=$lt_reload_cmds_CXX
22799
22800# Commands used to build an old-style archive.
22801old_archive_cmds=$lt_old_archive_cmds_CXX
22802
22803# A language specific compiler.
22804CC=$lt_compiler_CXX
22805
22806# Is the compiler the GNU compiler?
22807with_gcc=$GCC_CXX
22808
22809# Compiler flag to turn off builtin functions.
22810no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22811
22812# Additional compiler flags for building library objects.
22813pic_flag=$lt_lt_prog_compiler_pic_CXX
22814
22815# How to pass a linker flag through the compiler.
22816wl=$lt_lt_prog_compiler_wl_CXX
22817
22818# Compiler flag to prevent dynamic linking.
22819link_static_flag=$lt_lt_prog_compiler_static_CXX
22820
22821# Does compiler simultaneously support -c and -o options?
22822compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22823
22824# Whether or not to add -lc for building shared libraries.
22825build_libtool_need_lc=$archive_cmds_need_lc_CXX
22826
22827# Whether or not to disallow shared libs when runtime libs are static.
22828allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22829
22830# Compiler flag to allow reflexive dlopens.
22831export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22832
22833# Compiler flag to generate shared objects directly from archives.
22834whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22835
22836# Whether the compiler copes with passing no objects directly.
22837compiler_needs_object=$lt_compiler_needs_object_CXX
22838
22839# Create an old-style archive from a shared archive.
22840old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22841
22842# Create a temporary old-style archive to link instead of a shared archive.
22843old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22844
22845# Commands used to build a shared archive.
22846archive_cmds=$lt_archive_cmds_CXX
22847archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22848
22849# Commands used to build a loadable module if different from building
22850# a shared archive.
22851module_cmds=$lt_module_cmds_CXX
22852module_expsym_cmds=$lt_module_expsym_cmds_CXX
22853
22854# Whether we are building with GNU ld or not.
22855with_gnu_ld=$lt_with_gnu_ld_CXX
22856
22857# Flag that allows shared libraries with undefined symbols to be built.
22858allow_undefined_flag=$lt_allow_undefined_flag_CXX
22859
22860# Flag that enforces no undefined symbols.
22861no_undefined_flag=$lt_no_undefined_flag_CXX
22862
22863# Flag to hardcode \$libdir into a binary during linking.
22864# This must work even if \$libdir does not exist
22865hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22866
22867# Whether we need a single "-rpath" flag with a separated argument.
22868hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22869
22870# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22871# DIR into the resulting binary.
22872hardcode_direct=$hardcode_direct_CXX
22873
22874# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22875# DIR into the resulting binary and the resulting library dependency is
22876# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22877# library is relocated.
22878hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22879
22880# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22881# into the resulting binary.
22882hardcode_minus_L=$hardcode_minus_L_CXX
22883
22884# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22885# into the resulting binary.
22886hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22887
22888# Set to "yes" if building a shared library automatically hardcodes DIR
22889# into the library and all subsequent libraries and executables linked
22890# against it.
22891hardcode_automatic=$hardcode_automatic_CXX
22892
22893# Set to yes if linker adds runtime paths of dependent libraries
22894# to runtime path list.
22895inherit_rpath=$inherit_rpath_CXX
22896
22897# Whether libtool must link a program against all its dependency libraries.
22898link_all_deplibs=$link_all_deplibs_CXX
22899
22900# Set to "yes" if exported symbols are required.
22901always_export_symbols=$always_export_symbols_CXX
22902
22903# The commands to list exported symbols.
22904export_symbols_cmds=$lt_export_symbols_cmds_CXX
22905
22906# Symbols that should not be listed in the preloaded symbols.
22907exclude_expsyms=$lt_exclude_expsyms_CXX
22908
22909# Symbols that must always be exported.
22910include_expsyms=$lt_include_expsyms_CXX
22911
22912# Commands necessary for linking programs (against libraries) with templates.
22913prelink_cmds=$lt_prelink_cmds_CXX
22914
22915# Commands necessary for finishing linking programs.
22916postlink_cmds=$lt_postlink_cmds_CXX
22917
22918# Specify filename containing input files.
22919file_list_spec=$lt_file_list_spec_CXX
22920
22921# How to hardcode a shared library path into an executable.
22922hardcode_action=$hardcode_action_CXX
22923
22924# The directories searched by this compiler when creating a shared library.
22925compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22926
22927# Dependencies to place before and after the objects being linked to
22928# create a shared library.
22929predep_objects=$lt_predep_objects_CXX
22930postdep_objects=$lt_postdep_objects_CXX
22931predeps=$lt_predeps_CXX
22932postdeps=$lt_postdeps_CXX
22933
22934# The library search path used internally by the compiler when linking
22935# a shared library.
22936compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22937
22938# ### END LIBTOOL TAG CONFIG: CXX
22939_LT_EOF
22940
22941 ;;
22942
22943 esac
22944done # for ac_tag
22945
22946
22947as_fn_exit 0
22948_ACEOF
22949ac_clean_files=$ac_clean_files_save
22950
22951test $ac_write_fail = 0 ||
22952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22953
22954
22955# configure is writing to config.log, and then calls config.status.
22956# config.status does its own redirection, appending to config.log.
22957# Unfortunately, on DOS this fails, as config.log is still kept open
22958# by configure, so config.status won't be able to write to it; its
22959# output is simply discarded. So we exec the FD to /dev/null,
22960# effectively closing config.log, so it can be properly (re)opened and
22961# appended to by config.status. When coming back to configure, we
22962# need to make the FD available again.
22963if test "$no_create" != yes; then
22964 ac_cs_success=:
22965 ac_config_status_args=
22966 test "$silent" = yes &&
22967 ac_config_status_args="$ac_config_status_args --quiet"
22968 exec 5>/dev/null
22969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22970 exec 5>>config.log
22971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22972 # would make configure fail if this is the last instruction.
22973 $ac_cs_success || as_fn_exit 1
22974fi
22975if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22977$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22978fi
22979