· 11 years ago · Jul 16, 2015, 06:55 PM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="configure.ac"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636TAGLIB_CONFIG
637CURL_CONFIG
638fftw3_LIBS
639fftw3_CFLAGS
640CURSES_CONFIG
641libmpdclient_LIBS
642libmpdclient_CFLAGS
643PKG_CONFIG_LIBDIR
644PKG_CONFIG_PATH
645PKG_CONFIG
646BOOST_LIB_SUFFIX
647CXXCPP
648CPP
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672ac_ct_CC
673CFLAGS
674CC
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683LIBTOOL
684am__fastdepCXX_FALSE
685am__fastdepCXX_TRUE
686CXXDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CXX
697CPPFLAGS
698LDFLAGS
699CXXFLAGS
700CXX
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_outputs
774enable_visualizer
775enable_clock
776enable_unicode
777with_curl
778with_fftw
779with_pdcurses
780with_taglib
781'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CXX
786CXXFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CCC
791CC
792CFLAGS
793CPP
794CXXCPP
795BOOST_LIB_SUFFIX
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799libmpdclient_CFLAGS
800libmpdclient_LIBS
801fftw3_CFLAGS
802fftw3_LIBS'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917"enable_$ac_useropt"
918"*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"with_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211done
1212
1213if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308else
1309 ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343\`configure' configures this package to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396_ACEOF
1397
1398 cat <<\_ACEOF
1399
1400Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412
1413 cat <<\_ACEOF
1414
1415Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-outputs Enable outputs screen [default=no]
1427 --enable-visualizer Enable music visualizer screen [default=no]
1428 --enable-clock Enable clock screen [default=no]
1429 --enable-unicode Enable utf8 support [default=yes]
1430
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-sysroot=DIR Search for dependent libraries within DIR
1438 (or the compiler's sysroot if not specified).
1439 --with-curl Enable fetching lyrics from the Internet
1440 [default=auto]
1441 --with-fftw Enable fftw support (required for frequency spectrum
1442 vizualization) [default=auto]
1443 --with-pdcurses=LIBNAME Link against pdcurses instead of ncurses
1444 [default=XCurses]
1445 --with-taglib Enable tag editor [default=auto]
1446
1447Some influential environment variables:
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 CPP C preprocessor
1458 CXXCPP C++ preprocessor
1459 BOOST_LIB_SUFFIX
1460 Boost library name suffix [default=-mt]
1461 PKG_CONFIG path to pkg-config utility
1462 PKG_CONFIG_PATH
1463 directories to add to pkg-config's search path
1464 PKG_CONFIG_LIBDIR
1465 path overriding pkg-config's built-in search path
1466 libmpdclient_CFLAGS
1467 C compiler flags for libmpdclient, overriding pkg-config
1468 libmpdclient_LIBS
1469 linker flags for libmpdclient, overriding pkg-config
1470 fftw3_CFLAGS
1471 C compiler flags for fftw3, overriding pkg-config
1472 fftw3_LIBS linker flags for fftw3, overriding pkg-config
1473
1474Use these variables to override the choices made by `configure' or to help
1475it to find libraries and programs with nonstandard names/locations.
1476
1477Report bugs to the package provider.
1478_ACEOF
1479ac_status=$?
1480fi
1481
1482if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
1505
1506case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519esac
1520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535fi
1536
1537test -n "$ac_init_help" && exit $ac_status
1538if $ac_init_version; then
1539 cat <<\_ACEOF
1540configure
1541generated by GNU Autoconf 2.69
1542
1543Copyright (C) 2012 Free Software Foundation, Inc.
1544This configure script is free software; the Free Software Foundation
1545gives unlimited permission to copy, distribute and modify it.
1546_ACEOF
1547 exit
1548fi
1549
1550## ------------------------ ##
1551## Autoconf initialization. ##
1552## ------------------------ ##
1553
1554# ac_fn_cxx_try_compile LINENO
1555# ----------------------------
1556# Try to compile conftest.$ac_ext, and return whether this succeeded.
1557ac_fn_cxx_try_compile ()
1558{
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_cxx_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590} # ac_fn_cxx_try_compile
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628} # ac_fn_c_try_compile
1629
1630# ac_fn_c_try_link LINENO
1631# -----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_link ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1658 }; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665fi
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_link
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695else
1696 eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=$ac_status
1779fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_run
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840else
1841 eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_cxx_try_cpp LINENO
1854# ------------------------
1855# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_cxx_try_cpp ()
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_cpp conftest.$ac_ext"
1860case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863esac
1864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865$as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1872 fi
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } > conftest.i && {
1875 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 }; then :
1878 ac_retval=0
1879else
1880 $as_echo "$as_me: failed program was:" >&5
1881sed 's/^/| /' conftest.$ac_ext >&5
1882
1883 ac_retval=1
1884fi
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 as_fn_set_status $ac_retval
1887
1888} # ac_fn_cxx_try_cpp
1889
1890# ac_fn_cxx_try_link LINENO
1891# -------------------------
1892# Try to link conftest.$ac_ext, and return whether this succeeded.
1893ac_fn_cxx_try_link ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext conftest$ac_exeext
1897 if { { ac_try="$ac_link"
1898case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901esac
1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903$as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1910 fi
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_cxx_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest$ac_exeext && {
1916 test "$cross_compiling" = yes ||
1917 test -x conftest$ac_exeext
1918 }; then :
1919 ac_retval=0
1920else
1921 $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925fi
1926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928 # interfere with the next link command; also delete a directory that is
1929 # left behind by Apple's compiler. We do this before executing the actions.
1930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_link
1935
1936# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1937# ---------------------------------------------------------
1938# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1939# the include files in INCLUDES and setting the cache variable VAR
1940# accordingly.
1941ac_fn_cxx_check_header_mongrel ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if eval \${$3+:} false; then :
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949fi
1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953else
1954 # Is the header compilable?
1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1956$as_echo_n "checking $2 usability... " >&6; }
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960#include <$2>
1961_ACEOF
1962if ac_fn_cxx_try_compile "$LINENO"; then :
1963 ac_header_compiler=yes
1964else
1965 ac_header_compiler=no
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1969$as_echo "$ac_header_compiler" >&6; }
1970
1971# Is the header present?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1973$as_echo_n "checking $2 presence... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976#include <$2>
1977_ACEOF
1978if ac_fn_cxx_try_cpp "$LINENO"; then :
1979 ac_header_preproc=yes
1980else
1981 ac_header_preproc=no
1982fi
1983rm -f conftest.err conftest.i conftest.$ac_ext
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1985$as_echo "$ac_header_preproc" >&6; }
1986
1987# So? What about this header?
1988case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1989 yes:no: )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1991$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995 no:yes:* )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1997$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1999$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2001$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2003$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2005$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 ;;
2007esac
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009$as_echo_n "checking for $2... " >&6; }
2010if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012else
2013 eval "$3=\$ac_header_compiler"
2014fi
2015eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018fi
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021} # ac_fn_cxx_check_header_mongrel
2022cat >config.log <<_ACEOF
2023This file contains any messages produced by compilers while
2024running configure, to aid debugging if configure makes a mistake.
2025
2026It was created by $as_me, which was
2027generated by GNU Autoconf 2.69. Invocation command line was
2028
2029 $ $0 $@
2030
2031_ACEOF
2032exec 5>>config.log
2033{
2034cat <<_ASUNAME
2035## --------- ##
2036## Platform. ##
2037## --------- ##
2038
2039hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043uname -v = `(uname -v) 2>/dev/null || echo unknown`
2044
2045/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2047
2048/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2055
2056_ASUNAME
2057
2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 $as_echo "PATH: $as_dir"
2064 done
2065IFS=$as_save_IFS
2066
2067} >&5
2068
2069cat >&5 <<_ACEOF
2070
2071
2072## ----------- ##
2073## Core tests. ##
2074## ----------- ##
2075
2076_ACEOF
2077
2078
2079# Keep a trace of the command line.
2080# Strip out --no-create and --no-recursion so they do not pile up.
2081# Strip out --silent because we don't want to record it for future runs.
2082# Also quote any args containing shell meta-characters.
2083# Make two passes to allow for proper duplicate-argument suppression.
2084ac_configure_args=
2085ac_configure_args0=
2086ac_configure_args1=
2087ac_must_keep_next=false
2088for ac_pass in 1 2
2089do
2090 for ac_arg
2091 do
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102 2)
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2115 ;;
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2118 fi
2119 as_fn_append ac_configure_args " '$ac_arg'"
2120 ;;
2121 esac
2122 done
2123done
2124{ ac_configure_args0=; unset ac_configure_args0;}
2125{ ac_configure_args1=; unset ac_configure_args1;}
2126
2127# When interrupted or exit'd, cleanup temporary files, and complete
2128# config.log. We remove comments because anyway the quotes in there
2129# would cause problems or look ugly.
2130# WARNING: Use '\'' to represent an apostrophe within the trap.
2131# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132trap 'exit_status=$?
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
2137 $as_echo "## ---------------- ##
2138## Cache variables. ##
2139## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142(
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170)
2171 echo
2172
2173 $as_echo "## ----------------- ##
2174## Output variables. ##
2175## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 $as_echo "## ------------------- ##
2189## File substitutions. ##
2190## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
2204 $as_echo "## ----------- ##
2205## confdefs.h. ##
2206## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218' 0
2219for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221done
2222ac_signal=0
2223
2224# confdefs.h avoids OS command line length limits that DEFS can exceed.
2225rm -f -r conftest* confdefs.h
2226
2227$as_echo "/* confdefs.h */" > confdefs.h
2228
2229# Predefined preprocessor variables.
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_NAME "$PACKAGE_NAME"
2233_ACEOF
2234
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237_ACEOF
2238
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_VERSION "$PACKAGE_VERSION"
2241_ACEOF
2242
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_STRING "$PACKAGE_STRING"
2245_ACEOF
2246
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249_ACEOF
2250
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_URL "$PACKAGE_URL"
2253_ACEOF
2254
2255
2256# Let the site file select an alternate cache file if it wants to.
2257# Prefer an explicitly selected file to automatically selected ones.
2258ac_site_file1=NONE
2259ac_site_file2=NONE
2260if test -n "$CONFIG_SITE"; then
2261 # We do not want a PATH search for config.site.
2262 case $CONFIG_SITE in #((
2263 -*) ac_site_file1=./$CONFIG_SITE;;
2264 */*) ac_site_file1=$CONFIG_SITE;;
2265 *) ac_site_file1=./$CONFIG_SITE;;
2266 esac
2267elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2270else
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2273fi
2274for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275do
2276 test "x$ac_site_file" = xNONE && continue
2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
2281 . "$ac_site_file" \
2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284as_fn_error $? "failed to load site script $ac_site_file
2285See \`config.log' for more details" "$LINENO" 5; }
2286 fi
2287done
2288
2289if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special files
2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294$as_echo "$as_me: loading cache $cache_file" >&6;}
2295 case $cache_file in
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2298 esac
2299 fi
2300else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302$as_echo "$as_me: creating cache $cache_file" >&6;}
2303 >$cache_file
2304fi
2305
2306# Check that the precious variables saved in the cache have kept the same
2307# value.
2308ac_cache_corrupted=false
2309for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2315 set,)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2319 ,set)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,);;
2324 *)
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 fi;;
2343 esac
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2346 case $ac_new_val in
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2349 esac
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 esac
2354 fi
2355done
2356if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2362fi
2363## -------------------- ##
2364## Main body of script. ##
2365## -------------------- ##
2366
2367ac_ext=c
2368ac_cpp='$CPP $CPPFLAGS'
2369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374
2375ac_config_headers="$ac_config_headers config.h"
2376
2377am__api_version='1.11'
2378
2379ac_aux_dir=
2380for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2381 if test -f "$ac_dir/install-sh"; then
2382 ac_aux_dir=$ac_dir
2383 ac_install_sh="$ac_aux_dir/install-sh -c"
2384 break
2385 elif test -f "$ac_dir/install.sh"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/install.sh -c"
2388 break
2389 elif test -f "$ac_dir/shtool"; then
2390 ac_aux_dir=$ac_dir
2391 ac_install_sh="$ac_aux_dir/shtool install -c"
2392 break
2393 fi
2394done
2395if test -z "$ac_aux_dir"; then
2396 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2397fi
2398
2399# These three variables are undocumented and unsupported,
2400# and are intended to be withdrawn in a future Autoconf release.
2401# They can cause serious problems if a builder's source tree is in a directory
2402# whose full name contains unusual characters.
2403ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2404ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2405ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2406
2407
2408# Find a good install program. We prefer a C program (faster),
2409# so one script is as good as another. But avoid the broken or
2410# incompatible versions:
2411# SysV /etc/install, /usr/sbin/install
2412# SunOS /usr/etc/install
2413# IRIX /sbin/install
2414# AIX /bin/install
2415# AmigaOS /C/install, which installs bootblocks on floppy discs
2416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2419# OS/2's system install, which has a completely different semantic
2420# ./install, which can be erroneously created by make from ./install.sh.
2421# Reject install programs that cannot install multiple files.
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2423$as_echo_n "checking for a BSD-compatible install... " >&6; }
2424if test -z "$INSTALL"; then
2425if ${ac_cv_path_install+:} false; then :
2426 $as_echo_n "(cached) " >&6
2427else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 # Account for people who put trailing slashes in PATH elements.
2434case $as_dir/ in #((
2435 ./ | .// | /[cC]/* | \
2436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2438 /usr/ucb/* ) ;;
2439 *)
2440 # OSF1 and SCO ODT 3.0 have their own names for install.
2441 # Don't use installbsd from OSF since it installs stuff as root
2442 # by default.
2443 for ac_prog in ginstall scoinst install; do
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2446 if test $ac_prog = install &&
2447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # AIX install. It has an incompatible calling convention.
2449 :
2450 elif test $ac_prog = install &&
2451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # program-specific install script used by HP pwplus--don't use.
2453 :
2454 else
2455 rm -rf conftest.one conftest.two conftest.dir
2456 echo one > conftest.one
2457 echo two > conftest.two
2458 mkdir conftest.dir
2459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2460 test -s conftest.one && test -s conftest.two &&
2461 test -s conftest.dir/conftest.one &&
2462 test -s conftest.dir/conftest.two
2463 then
2464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465 break 3
2466 fi
2467 fi
2468 fi
2469 done
2470 done
2471 ;;
2472esac
2473
2474 done
2475IFS=$as_save_IFS
2476
2477rm -rf conftest.one conftest.two conftest.dir
2478
2479fi
2480 if test "${ac_cv_path_install+set}" = set; then
2481 INSTALL=$ac_cv_path_install
2482 else
2483 # As a last resort, use the slow shell script. Don't cache a
2484 # value for INSTALL within a source directory, because that will
2485 # break other packages using the cache if that directory is
2486 # removed, or if the value is a relative name.
2487 INSTALL=$ac_install_sh
2488 fi
2489fi
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2491$as_echo "$INSTALL" >&6; }
2492
2493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2494# It thinks the first close brace ends the variable substitution.
2495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2496
2497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2498
2499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2500
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2502$as_echo_n "checking whether build environment is sane... " >&6; }
2503# Just in case
2504sleep 1
2505echo timestamp > conftest.file
2506# Reject unsafe characters in $srcdir or the absolute working directory
2507# name. Accept space and tab only in the latter.
2508am_lf='
2509'
2510case `pwd` in
2511 *[\\\"\#\$\&\'\`$am_lf]*)
2512 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2513esac
2514case $srcdir in
2515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2516 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2517esac
2518
2519# Do `set' in a subshell so we don't clobber the current shell's
2520# arguments. Must try -L first in case configure is actually a
2521# symlink; some systems play weird games with the mod time of symlinks
2522# (eg FreeBSD returns the mod time of the symlink's containing
2523# directory).
2524if (
2525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2526 if test "$*" = "X"; then
2527 # -L didn't work.
2528 set X `ls -t "$srcdir/configure" conftest.file`
2529 fi
2530 rm -f conftest.file
2531 if test "$*" != "X $srcdir/configure conftest.file" \
2532 && test "$*" != "X conftest.file $srcdir/configure"; then
2533
2534 # If neither matched, then we have a broken ls. This can happen
2535 # if, for instance, CONFIG_SHELL is bash and it inherits a
2536 # broken ls alias from the environment. This has actually
2537 # happened. Such a system could not be considered "sane".
2538 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2539alias in your environment" "$LINENO" 5
2540 fi
2541
2542 test "$2" = conftest.file
2543 )
2544then
2545 # Ok.
2546 :
2547else
2548 as_fn_error $? "newly created file is older than distributed files!
2549Check your system clock" "$LINENO" 5
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2552$as_echo "yes" >&6; }
2553test "$program_prefix" != NONE &&
2554 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2555# Use a double $ so make ignores it.
2556test "$program_suffix" != NONE &&
2557 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2558# Double any \ or $.
2559# By default was `s,x,x', remove it if useless.
2560ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2561program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2562
2563# expand $ac_aux_dir to an absolute path
2564am_aux_dir=`cd $ac_aux_dir && pwd`
2565
2566if test x"${MISSING+set}" != xset; then
2567 case $am_aux_dir in
2568 *\ * | *\ *)
2569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2570 *)
2571 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2572 esac
2573fi
2574# Use eval to expand $SHELL
2575if eval "$MISSING --run true"; then
2576 am_missing_run="$MISSING --run "
2577else
2578 am_missing_run=
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2580$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2581fi
2582
2583if test x"${install_sh}" != xset; then
2584 case $am_aux_dir in
2585 *\ * | *\ *)
2586 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2587 *)
2588 install_sh="\${SHELL} $am_aux_dir/install-sh"
2589 esac
2590fi
2591
2592# Installed binaries are usually stripped using `strip' when the user
2593# run `make install-strip'. However `strip' might not be the right
2594# tool to use in cross-compilation environments, therefore Automake
2595# will honor the `STRIP' environment variable to overrule this program.
2596if test "$cross_compiling" != no; then
2597 if test -n "$ac_tool_prefix"; then
2598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2599set dummy ${ac_tool_prefix}strip; ac_word=$2
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601$as_echo_n "checking for $ac_word... " >&6; }
2602if ${ac_cv_prog_STRIP+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604else
2605 if test -n "$STRIP"; then
2606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2607else
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619done
2620 done
2621IFS=$as_save_IFS
2622
2623fi
2624fi
2625STRIP=$ac_cv_prog_STRIP
2626if test -n "$STRIP"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2628$as_echo "$STRIP" >&6; }
2629else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631$as_echo "no" >&6; }
2632fi
2633
2634
2635fi
2636if test -z "$ac_cv_prog_STRIP"; then
2637 ac_ct_STRIP=$STRIP
2638 # Extract the first word of "strip", so it can be a program name with args.
2639set dummy strip; ac_word=$2
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test -n "$ac_ct_STRIP"; then
2646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_ac_ct_STRIP="strip"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660 done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2666if test -n "$ac_ct_STRIP"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2668$as_echo "$ac_ct_STRIP" >&6; }
2669else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674 if test "x$ac_ct_STRIP" = x; then
2675 STRIP=":"
2676 else
2677 case $cross_compiling:$ac_tool_warned in
2678yes:)
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681ac_tool_warned=yes ;;
2682esac
2683 STRIP=$ac_ct_STRIP
2684 fi
2685else
2686 STRIP="$ac_cv_prog_STRIP"
2687fi
2688
2689fi
2690INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2691
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2693$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2694if test -z "$MKDIR_P"; then
2695 if ${ac_cv_path_mkdir+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_prog in mkdir gmkdir; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2706 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2707 'mkdir (GNU coreutils) '* | \
2708 'mkdir (coreutils) '* | \
2709 'mkdir (fileutils) '4.1*)
2710 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2711 break 3;;
2712 esac
2713 done
2714 done
2715 done
2716IFS=$as_save_IFS
2717
2718fi
2719
2720 test -d ./--version && rmdir ./--version
2721 if test "${ac_cv_path_mkdir+set}" = set; then
2722 MKDIR_P="$ac_cv_path_mkdir -p"
2723 else
2724 # As a last resort, use the slow shell script. Don't cache a
2725 # value for MKDIR_P within a source directory, because that will
2726 # break other packages using the cache if that directory is
2727 # removed, or if the value is a relative name.
2728 MKDIR_P="$ac_install_sh -d"
2729 fi
2730fi
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2732$as_echo "$MKDIR_P" >&6; }
2733
2734mkdir_p="$MKDIR_P"
2735case $mkdir_p in
2736 [\\/$]* | ?:[\\/]*) ;;
2737 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2738esac
2739
2740for ac_prog in gawk mawk nawk awk
2741do
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745$as_echo_n "checking for $ac_word... " >&6; }
2746if ${ac_cv_prog_AWK+:} false; then :
2747 $as_echo_n "(cached) " >&6
2748else
2749 if test -n "$AWK"; then
2750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2759 ac_cv_prog_AWK="$ac_prog"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763done
2764 done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769AWK=$ac_cv_prog_AWK
2770if test -n "$AWK"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2772$as_echo "$AWK" >&6; }
2773else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775$as_echo "no" >&6; }
2776fi
2777
2778
2779 test -n "$AWK" && break
2780done
2781
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2783$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2784set x ${MAKE-make}
2785ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2786if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788else
2789 cat >conftest.make <<\_ACEOF
2790SHELL = /bin/sh
2791all:
2792 @echo '@@@%%%=$(MAKE)=@@@%%%'
2793_ACEOF
2794# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2795case `${MAKE-make} -f conftest.make 2>/dev/null` in
2796 *@@@%%%=?*=@@@%%%*)
2797 eval ac_cv_prog_make_${ac_make}_set=yes;;
2798 *)
2799 eval ac_cv_prog_make_${ac_make}_set=no;;
2800esac
2801rm -f conftest.make
2802fi
2803if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2805$as_echo "yes" >&6; }
2806 SET_MAKE=
2807else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810 SET_MAKE="MAKE=${MAKE-make}"
2811fi
2812
2813rm -rf .tst 2>/dev/null
2814mkdir .tst 2>/dev/null
2815if test -d .tst; then
2816 am__leading_dot=.
2817else
2818 am__leading_dot=_
2819fi
2820rmdir .tst 2>/dev/null
2821
2822if test "`cd $srcdir && pwd`" != "`pwd`"; then
2823 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2824 # is not polluted with repeated "-I."
2825 am__isrc=' -I$(srcdir)'
2826 # test to see if srcdir already configured
2827 if test -f $srcdir/config.status; then
2828 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2829 fi
2830fi
2831
2832# test whether we have cygpath
2833if test -z "$CYGPATH_W"; then
2834 if (cygpath --version) >/dev/null 2>/dev/null; then
2835 CYGPATH_W='cygpath -w'
2836 else
2837 CYGPATH_W=echo
2838 fi
2839fi
2840
2841
2842# Define the identity of the package.
2843 PACKAGE=ncmpcpp
2844 VERSION=0.6.5
2845
2846
2847cat >>confdefs.h <<_ACEOF
2848#define PACKAGE "$PACKAGE"
2849_ACEOF
2850
2851
2852cat >>confdefs.h <<_ACEOF
2853#define VERSION "$VERSION"
2854_ACEOF
2855
2856# Some tools Automake needs.
2857
2858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2859
2860
2861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2862
2863
2864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2865
2866
2867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2868
2869
2870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2871
2872# We need awk for the "check" target. The system "awk" is bad on
2873# some platforms.
2874# Always define AMTAR for backward compatibility. Yes, it's still used
2875# in the wild :-( We should find a proper way to deprecate it ...
2876AMTAR='$${TAR-tar}'
2877
2878am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2879
2880
2881
2882
2883
2884
2885
2886
2887ac_ext=cpp
2888ac_cpp='$CXXCPP $CPPFLAGS'
2889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2892
2893ac_ext=cpp
2894ac_cpp='$CXXCPP $CPPFLAGS'
2895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2898if test -z "$CXX"; then
2899 if test -n "$CCC"; then
2900 CXX=$CCC
2901 else
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2904 do
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if ${ac_cv_prog_CXX+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911else
2912 if test -n "$CXX"; then
2913 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927 done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932CXX=$ac_cv_prog_CXX
2933if test -n "$CXX"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2935$as_echo "$CXX" >&6; }
2936else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942 test -n "$CXX" && break
2943 done
2944fi
2945if test -z "$CXX"; then
2946 ac_ct_CXX=$CXX
2947 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2948do
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950set dummy $ac_prog; ac_word=$2
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952$as_echo_n "checking for $ac_word... " >&6; }
2953if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955else
2956 if test -n "$ac_ct_CXX"; then
2957 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CXX="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970done
2971 done
2972IFS=$as_save_IFS
2973
2974fi
2975fi
2976ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2977if test -n "$ac_ct_CXX"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2979$as_echo "$ac_ct_CXX" >&6; }
2980else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986 test -n "$ac_ct_CXX" && break
2987done
2988
2989 if test "x$ac_ct_CXX" = x; then
2990 CXX="g++"
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993yes:)
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996ac_tool_warned=yes ;;
2997esac
2998 CXX=$ac_ct_CXX
2999 fi
3000fi
3001
3002 fi
3003fi
3004# Provide some information about the compiler.
3005$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3006set X $ac_compile
3007ac_compiler=$2
3008for ac_option in --version -v -V -qversion; do
3009 { { ac_try="$ac_compiler $ac_option >&5"
3010case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013esac
3014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015$as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3017 ac_status=$?
3018 if test -s conftest.err; then
3019 sed '10a\
3020... rest of stderr output deleted ...
3021 10q' conftest.err >conftest.er1
3022 cat conftest.er1 >&5
3023 fi
3024 rm -f conftest.er1 conftest.err
3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }
3027done
3028
3029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030/* end confdefs.h. */
3031
3032int
3033main ()
3034{
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040ac_clean_files_save=$ac_clean_files
3041ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3042# Try to create an executable without -o first, disregard a.out.
3043# It will help us diagnose broken compilers, and finding out an intuition
3044# of exeext.
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3046$as_echo_n "checking whether the C++ compiler works... " >&6; }
3047ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3048
3049# The possible output files:
3050ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3051
3052ac_rmfiles=
3053for ac_file in $ac_files
3054do
3055 case $ac_file in
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3057 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3058 esac
3059done
3060rm -f $ac_rmfiles
3061
3062if { { ac_try="$ac_link_default"
3063case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068$as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_link_default") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; then :
3073 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3074# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3075# in a Makefile. We should not override ac_cv_exeext if it was cached,
3076# so that the user can short-circuit this test for compilers unknown to
3077# Autoconf.
3078for ac_file in $ac_files ''
3079do
3080 test -f "$ac_file" || continue
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3083 ;;
3084 [ab].out )
3085 # We found the default executable, but exeext='' is most
3086 # certainly right.
3087 break;;
3088 *.* )
3089 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3090 then :; else
3091 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3092 fi
3093 # We set ac_cv_exeext here because the later test for it is not
3094 # safe: cross compilers may not add the suffix if given an `-o'
3095 # argument, so we may need to know it at that point already.
3096 # Even if this section looks crufty: it has the advantage of
3097 # actually working.
3098 break;;
3099 * )
3100 break;;
3101 esac
3102done
3103test "$ac_cv_exeext" = no && ac_cv_exeext=
3104
3105else
3106 ac_file=''
3107fi
3108if test -z "$ac_file"; then :
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110$as_echo "no" >&6; }
3111$as_echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116as_fn_error 77 "C++ compiler cannot create executables
3117See \`config.log' for more details" "$LINENO" 5; }
3118else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120$as_echo "yes" >&6; }
3121fi
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3123$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3125$as_echo "$ac_file" >&6; }
3126ac_exeext=$ac_cv_exeext
3127
3128rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3129ac_clean_files=$ac_clean_files_save
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3131$as_echo_n "checking for suffix of executables... " >&6; }
3132if { { ac_try="$ac_link"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138$as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_link") 2>&5
3140 ac_status=$?
3141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142 test $ac_status = 0; }; then :
3143 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3144# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3145# work properly (i.e., refer to `conftest.exe'), while it won't with
3146# `rm'.
3147for ac_file in conftest.exe conftest conftest.*; do
3148 test -f "$ac_file" || continue
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 break;;
3153 * ) break;;
3154 esac
3155done
3156else
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3160See \`config.log' for more details" "$LINENO" 5; }
3161fi
3162rm -f conftest conftest$ac_cv_exeext
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3164$as_echo "$ac_cv_exeext" >&6; }
3165
3166rm -f conftest.$ac_ext
3167EXEEXT=$ac_cv_exeext
3168ac_exeext=$EXEEXT
3169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
3171#include <stdio.h>
3172int
3173main ()
3174{
3175FILE *f = fopen ("conftest.out", "w");
3176 return ferror (f) || fclose (f) != 0;
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182ac_clean_files="$ac_clean_files conftest.out"
3183# Check that the compiler produces executables we can run. If not, either
3184# the compiler is broken, or we cross compile.
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3186$as_echo_n "checking whether we are cross compiling... " >&6; }
3187if test "$cross_compiling" != yes; then
3188 { { ac_try="$ac_link"
3189case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194$as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }
3199 if { ac_try='./conftest$ac_cv_exeext'
3200 { { case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205$as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }; }; then
3210 cross_compiling=no
3211 else
3212 if test "$cross_compiling" = maybe; then
3213 cross_compiling=yes
3214 else
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217as_fn_error $? "cannot run C++ compiled programs.
3218If you meant to cross compile, use \`--host'.
3219See \`config.log' for more details" "$LINENO" 5; }
3220 fi
3221 fi
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3224$as_echo "$cross_compiling" >&6; }
3225
3226rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3227ac_clean_files=$ac_clean_files_save
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3229$as_echo_n "checking for suffix of object files... " >&6; }
3230if ${ac_cv_objext+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232else
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h. */
3235
3236int
3237main ()
3238{
3239
3240 ;
3241 return 0;
3242}
3243_ACEOF
3244rm -f conftest.o conftest.obj
3245if { { ac_try="$ac_compile"
3246case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_compile") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
3256 for ac_file in conftest.o conftest.obj conftest.*; do
3257 test -f "$ac_file" || continue;
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3260 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 break;;
3262 esac
3263done
3264else
3265 $as_echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270as_fn_error $? "cannot compute suffix of object files: cannot compile
3271See \`config.log' for more details" "$LINENO" 5; }
3272fi
3273rm -f conftest.$ac_cv_objext conftest.$ac_ext
3274fi
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3276$as_echo "$ac_cv_objext" >&6; }
3277OBJEXT=$ac_cv_objext
3278ac_objext=$OBJEXT
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3280$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3281if ${ac_cv_cxx_compiler_gnu+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285/* end confdefs.h. */
3286
3287int
3288main ()
3289{
3290#ifndef __GNUC__
3291 choke me
3292#endif
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
3298if ac_fn_cxx_try_compile "$LINENO"; then :
3299 ac_compiler_gnu=yes
3300else
3301 ac_compiler_gnu=no
3302fi
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3305
3306fi
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3308$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3309if test $ac_compiler_gnu = yes; then
3310 GXX=yes
3311else
3312 GXX=
3313fi
3314ac_test_CXXFLAGS=${CXXFLAGS+set}
3315ac_save_CXXFLAGS=$CXXFLAGS
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3317$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3318if ${ac_cv_prog_cxx_g+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320else
3321 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3322 ac_cxx_werror_flag=yes
3323 ac_cv_prog_cxx_g=no
3324 CXXFLAGS="-g"
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336if ac_fn_cxx_try_compile "$LINENO"; then :
3337 ac_cv_prog_cxx_g=yes
3338else
3339 CXXFLAGS=""
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342
3343int
3344main ()
3345{
3346
3347 ;
3348 return 0;
3349}
3350_ACEOF
3351if ac_fn_cxx_try_compile "$LINENO"; then :
3352
3353else
3354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3355 CXXFLAGS="-g"
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h. */
3358
3359int
3360main ()
3361{
3362
3363 ;
3364 return 0;
3365}
3366_ACEOF
3367if ac_fn_cxx_try_compile "$LINENO"; then :
3368 ac_cv_prog_cxx_g=yes
3369fi
3370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371fi
3372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373fi
3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3376fi
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3378$as_echo "$ac_cv_prog_cxx_g" >&6; }
3379if test "$ac_test_CXXFLAGS" = set; then
3380 CXXFLAGS=$ac_save_CXXFLAGS
3381elif test $ac_cv_prog_cxx_g = yes; then
3382 if test "$GXX" = yes; then
3383 CXXFLAGS="-g -O2"
3384 else
3385 CXXFLAGS="-g"
3386 fi
3387else
3388 if test "$GXX" = yes; then
3389 CXXFLAGS="-O2"
3390 else
3391 CXXFLAGS=
3392 fi
3393fi
3394ac_ext=cpp
3395ac_cpp='$CXXCPP $CPPFLAGS'
3396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3399DEPDIR="${am__leading_dot}deps"
3400
3401ac_config_commands="$ac_config_commands depfiles"
3402
3403
3404am_make=${MAKE-make}
3405cat > confinc << 'END'
3406am__doit:
3407 @echo this is the am__doit target
3408.PHONY: am__doit
3409END
3410# If we don't find an include directive, just comment out the code.
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3412$as_echo_n "checking for style of include used by $am_make... " >&6; }
3413am__include="#"
3414am__quote=
3415_am_result=none
3416# First try GNU make style include.
3417echo "include confinc" > confmf
3418# Ignore all kinds of additional output from `make'.
3419case `$am_make -s -f confmf 2> /dev/null` in #(
3420*the\ am__doit\ target*)
3421 am__include=include
3422 am__quote=
3423 _am_result=GNU
3424 ;;
3425esac
3426# Now try BSD make style include.
3427if test "$am__include" = "#"; then
3428 echo '.include "confinc"' > confmf
3429 case `$am_make -s -f confmf 2> /dev/null` in #(
3430 *the\ am__doit\ target*)
3431 am__include=.include
3432 am__quote="\""
3433 _am_result=BSD
3434 ;;
3435 esac
3436fi
3437
3438
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3440$as_echo "$_am_result" >&6; }
3441rm -f confinc confmf
3442
3443# Check whether --enable-dependency-tracking was given.
3444if test "${enable_dependency_tracking+set}" = set; then :
3445 enableval=$enable_dependency_tracking;
3446fi
3447
3448if test "x$enable_dependency_tracking" != xno; then
3449 am_depcomp="$ac_aux_dir/depcomp"
3450 AMDEPBACKSLASH='\'
3451 am__nodep='_no'
3452fi
3453 if test "x$enable_dependency_tracking" != xno; then
3454 AMDEP_TRUE=
3455 AMDEP_FALSE='#'
3456else
3457 AMDEP_TRUE='#'
3458 AMDEP_FALSE=
3459fi
3460
3461
3462
3463depcc="$CXX" am_compiler_list=
3464
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3466$as_echo_n "checking dependency style of $depcc... " >&6; }
3467if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469else
3470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3471 # We make a subdir and do the tests there. Otherwise we can end up
3472 # making bogus files that we don't know about and never remove. For
3473 # instance it was reported that on HP-UX the gcc test will end up
3474 # making a dummy file named `D' -- because `-MD' means `put the output
3475 # in D'.
3476 rm -rf conftest.dir
3477 mkdir conftest.dir
3478 # Copy depcomp to subdir because otherwise we won't find it if we're
3479 # using a relative directory.
3480 cp "$am_depcomp" conftest.dir
3481 cd conftest.dir
3482 # We will build objects and dependencies in a subdirectory because
3483 # it helps to detect inapplicable dependency modes. For instance
3484 # both Tru64's cc and ICC support -MD to output dependencies as a
3485 # side effect of compilation, but ICC will put the dependencies in
3486 # the current directory while Tru64 will put them in the object
3487 # directory.
3488 mkdir sub
3489
3490 am_cv_CXX_dependencies_compiler_type=none
3491 if test "$am_compiler_list" = ""; then
3492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3493 fi
3494 am__universal=false
3495 case " $depcc " in #(
3496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3497 esac
3498
3499 for depmode in $am_compiler_list; do
3500 # Setup a source with many dependencies, because some compilers
3501 # like to wrap large dependency lists on column 80 (with \), and
3502 # we should not choose a depcomp mode which is confused by this.
3503 #
3504 # We need to recreate these files for each test, as the compiler may
3505 # overwrite some of them when testing with obscure command lines.
3506 # This happens at least with the AIX C compiler.
3507 : > sub/conftest.c
3508 for i in 1 2 3 4 5 6; do
3509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3511 # Solaris 8's {/usr,}/bin/sh.
3512 touch sub/conftst$i.h
3513 done
3514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3515
3516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3517 # mode. It turns out that the SunPro C++ compiler does not properly
3518 # handle `-M -o', and we need to detect this. Also, some Intel
3519 # versions had trouble with output in subdirs
3520 am__obj=sub/conftest.${OBJEXT-o}
3521 am__minus_obj="-o $am__obj"
3522 case $depmode in
3523 gcc)
3524 # This depmode causes a compiler race in universal mode.
3525 test "$am__universal" = false || continue
3526 ;;
3527 nosideeffect)
3528 # after this tag, mechanisms are not by side-effect, so they'll
3529 # only be used when explicitly requested
3530 if test "x$enable_dependency_tracking" = xyes; then
3531 continue
3532 else
3533 break
3534 fi
3535 ;;
3536 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3537 # This compiler won't grok `-c -o', but also, the minuso test has
3538 # not run yet. These depmodes are late enough in the game, and
3539 # so weak that their functioning should not be impacted.
3540 am__obj=conftest.${OBJEXT-o}
3541 am__minus_obj=
3542 ;;
3543 none) break ;;
3544 esac
3545 if depmode=$depmode \
3546 source=sub/conftest.c object=$am__obj \
3547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3549 >/dev/null 2>conftest.err &&
3550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3554 # icc doesn't choke on unknown options, it will just issue warnings
3555 # or remarks (even with -Werror). So we grep stderr for any message
3556 # that says an option was ignored or not supported.
3557 # When given -MP, icc 7.0 and 7.1 complain thusly:
3558 # icc: Command line warning: ignoring option '-M'; no argument required
3559 # The diagnosis changed in icc 8.0:
3560 # icc: Command line remark: option '-MP' not supported
3561 if (grep 'ignoring option' conftest.err ||
3562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3563 am_cv_CXX_dependencies_compiler_type=$depmode
3564 break
3565 fi
3566 fi
3567 done
3568
3569 cd ..
3570 rm -rf conftest.dir
3571else
3572 am_cv_CXX_dependencies_compiler_type=none
3573fi
3574
3575fi
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3577$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3578CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3579
3580 if
3581 test "x$enable_dependency_tracking" != xno \
3582 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3583 am__fastdepCXX_TRUE=
3584 am__fastdepCXX_FALSE='#'
3585else
3586 am__fastdepCXX_TRUE='#'
3587 am__fastdepCXX_FALSE=
3588fi
3589
3590
3591case `pwd` in
3592 *\ * | *\ *)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3594$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3595esac
3596
3597
3598
3599macro_version='2.4.2'
3600macro_revision='1.3337'
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614ltmain="$ac_aux_dir/ltmain.sh"
3615
3616# Make sure we can run config.sub.
3617$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3618 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3621$as_echo_n "checking build system type... " >&6; }
3622if ${ac_cv_build+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624else
3625 ac_build_alias=$build_alias
3626test "x$ac_build_alias" = x &&
3627 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3628test "x$ac_build_alias" = x &&
3629 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3630ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3632
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3635$as_echo "$ac_cv_build" >&6; }
3636case $ac_cv_build in
3637*-*-*) ;;
3638*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3639esac
3640build=$ac_cv_build
3641ac_save_IFS=$IFS; IFS='-'
3642set x $ac_cv_build
3643shift
3644build_cpu=$1
3645build_vendor=$2
3646shift; shift
3647# Remember, the first character of IFS is used to create $*,
3648# except with old shells:
3649build_os=$*
3650IFS=$ac_save_IFS
3651case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3655$as_echo_n "checking host system type... " >&6; }
3656if ${ac_cv_host+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658else
3659 if test "x$host_alias" = x; then
3660 ac_cv_host=$ac_cv_build
3661else
3662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3664fi
3665
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3668$as_echo "$ac_cv_host" >&6; }
3669case $ac_cv_host in
3670*-*-*) ;;
3671*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3672esac
3673host=$ac_cv_host
3674ac_save_IFS=$IFS; IFS='-'
3675set x $ac_cv_host
3676shift
3677host_cpu=$1
3678host_vendor=$2
3679shift; shift
3680# Remember, the first character of IFS is used to create $*,
3681# except with old shells:
3682host_os=$*
3683IFS=$ac_save_IFS
3684case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3685
3686
3687# Backslashify metacharacters that are still active within
3688# double-quoted strings.
3689sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3690
3691# Same as above, but do not quote variable references.
3692double_quote_subst='s/\(["`\\]\)/\\\1/g'
3693
3694# Sed substitution to delay expansion of an escaped shell variable in a
3695# double_quote_subst'ed string.
3696delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3697
3698# Sed substitution to delay expansion of an escaped single quote.
3699delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3700
3701# Sed substitution to avoid accidental globbing in evaled expressions
3702no_glob_subst='s/\*/\\\*/g'
3703
3704ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3705ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3706ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3707
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3709$as_echo_n "checking how to print strings... " >&6; }
3710# Test print first, because it will be a builtin if present.
3711if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3712 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3713 ECHO='print -r --'
3714elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3715 ECHO='printf %s\n'
3716else
3717 # Use this function as a fallback that always works.
3718 func_fallback_echo ()
3719 {
3720 eval 'cat <<_LTECHO_EOF
3721$1
3722_LTECHO_EOF'
3723 }
3724 ECHO='func_fallback_echo'
3725fi
3726
3727# func_echo_all arg...
3728# Invoke $ECHO with all args, space-separated.
3729func_echo_all ()
3730{
3731 $ECHO ""
3732}
3733
3734case "$ECHO" in
3735 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3736$as_echo "printf" >&6; } ;;
3737 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3738$as_echo "print -r" >&6; } ;;
3739 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3740$as_echo "cat" >&6; } ;;
3741esac
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756ac_ext=c
3757ac_cpp='$CPP $CPPFLAGS'
3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3763set dummy ${ac_tool_prefix}gcc; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if ${ac_cv_prog_CC+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768else
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC="$CC" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784 done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789CC=$ac_cv_prog_CC
3790if test -n "$CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792$as_echo "$CC" >&6; }
3793else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798
3799fi
3800if test -z "$ac_cv_prog_CC"; then
3801 ac_ct_CC=$CC
3802 # Extract the first word of "gcc", so it can be a program name with args.
3803set dummy gcc; ac_word=$2
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805$as_echo_n "checking for $ac_word... " >&6; }
3806if ${ac_cv_prog_ac_ct_CC+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808else
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_ac_ct_CC="gcc"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824 done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829ac_ct_CC=$ac_cv_prog_ac_ct_CC
3830if test -n "$ac_ct_CC"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832$as_echo "$ac_ct_CC" >&6; }
3833else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836fi
3837
3838 if test "x$ac_ct_CC" = x; then
3839 CC=""
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842yes:)
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845ac_tool_warned=yes ;;
3846esac
3847 CC=$ac_ct_CC
3848 fi
3849else
3850 CC="$ac_cv_prog_CC"
3851fi
3852
3853if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3856set dummy ${ac_tool_prefix}cc; ac_word=$2
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
3859if ${ac_cv_prog_CC+:} false; then :
3860 $as_echo_n "(cached) " >&6
3861else
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864else
3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH
3867do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_CC="${ac_tool_prefix}cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876done
3877 done
3878IFS=$as_save_IFS
3879
3880fi
3881fi
3882CC=$ac_cv_prog_CC
3883if test -n "$CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885$as_echo "$CC" >&6; }
3886else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888$as_echo "no" >&6; }
3889fi
3890
3891
3892 fi
3893fi
3894if test -z "$CC"; then
3895 # Extract the first word of "cc", so it can be a program name with args.
3896set dummy cc; ac_word=$2
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898$as_echo_n "checking for $ac_word... " >&6; }
3899if ${ac_cv_prog_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904else
3905 ac_prog_rejected=no
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3914 ac_prog_rejected=yes
3915 continue
3916 fi
3917 ac_cv_prog_CC="cc"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921done
3922 done
3923IFS=$as_save_IFS
3924
3925if test $ac_prog_rejected = yes; then
3926 # We found a bogon in the path, so make sure we never use it.
3927 set dummy $ac_cv_prog_CC
3928 shift
3929 if test $# != 0; then
3930 # We chose a different compiler from the bogus one.
3931 # However, it has the same basename, so the bogon will be chosen
3932 # first if we set CC to just the basename; use the full file name.
3933 shift
3934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3935 fi
3936fi
3937fi
3938fi
3939CC=$ac_cv_prog_CC
3940if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942$as_echo "$CC" >&6; }
3943else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945$as_echo "no" >&6; }
3946fi
3947
3948
3949fi
3950if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog in cl.exe
3953 do
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_prog_CC+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC="$CC" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976 done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981CC=$ac_cv_prog_CC
3982if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984$as_echo "$CC" >&6; }
3985else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990
3991 test -n "$CC" && break
3992 done
3993fi
3994if test -z "$CC"; then
3995 ac_ct_CC=$CC
3996 for ac_prog in cl.exe
3997do
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999set dummy $ac_prog; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if ${ac_cv_prog_ac_ct_CC+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 if test -n "$ac_ct_CC"; then
4006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_ac_ct_CC="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019done
4020 done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025ac_ct_CC=$ac_cv_prog_ac_ct_CC
4026if test -n "$ac_ct_CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4028$as_echo "$ac_ct_CC" >&6; }
4029else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035 test -n "$ac_ct_CC" && break
4036done
4037
4038 if test "x$ac_ct_CC" = x; then
4039 CC=""
4040 else
4041 case $cross_compiling:$ac_tool_warned in
4042yes:)
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045ac_tool_warned=yes ;;
4046esac
4047 CC=$ac_ct_CC
4048 fi
4049fi
4050
4051fi
4052
4053
4054test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056as_fn_error $? "no acceptable C compiler found in \$PATH
4057See \`config.log' for more details" "$LINENO" 5; }
4058
4059# Provide some information about the compiler.
4060$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4061set X $ac_compile
4062ac_compiler=$2
4063for ac_option in --version -v -V -qversion; do
4064 { { ac_try="$ac_compiler $ac_option >&5"
4065case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070$as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4072 ac_status=$?
4073 if test -s conftest.err; then
4074 sed '10a\
4075... rest of stderr output deleted ...
4076 10q' conftest.err >conftest.er1
4077 cat conftest.er1 >&5
4078 fi
4079 rm -f conftest.er1 conftest.err
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4082done
4083
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086if ${ac_cv_c_compiler_gnu+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091
4092int
4093main ()
4094{
4095#ifndef __GNUC__
4096 choke me
4097#endif
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_compiler_gnu=yes
4105else
4106 ac_compiler_gnu=no
4107fi
4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114if test $ac_compiler_gnu = yes; then
4115 GCC=yes
4116else
4117 GCC=
4118fi
4119ac_test_CFLAGS=${CFLAGS+set}
4120ac_save_CFLAGS=$CFLAGS
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122$as_echo_n "checking whether $CC accepts -g... " >&6; }
4123if ${ac_cv_prog_cc_g+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125else
4126 ac_save_c_werror_flag=$ac_c_werror_flag
4127 ac_c_werror_flag=yes
4128 ac_cv_prog_cc_g=no
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h. */
4132
4133int
4134main ()
4135{
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4143else
4144 CFLAGS=""
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h. */
4147
4148int
4149main ()
4150{
4151
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"; then :
4157
4158else
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h. */
4163
4164int
4165main ()
4166{
4167
4168 ;
4169 return 0;
4170}
4171_ACEOF
4172if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183$as_echo "$ac_cv_prog_cc_g" >&6; }
4184if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4191 fi
4192else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4197 fi
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201if ${ac_cv_prog_cc_c89+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203else
4204 ac_cv_prog_cc_c89=no
4205ac_save_CC=$CC
4206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h. */
4208#include <stdarg.h>
4209#include <stdio.h>
4210struct stat;
4211/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4212struct buf { int x; };
4213FILE * (*rcsopen) (struct buf *, struct stat *, int);
4214static char *e (p, i)
4215 char **p;
4216 int i;
4217{
4218 return p[i];
4219}
4220static char *f (char * (*g) (char **, int), char **p, ...)
4221{
4222 char *s;
4223 va_list v;
4224 va_start (v,p);
4225 s = g (p, va_arg (v,int));
4226 va_end (v);
4227 return s;
4228}
4229
4230/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4231 function prototypes and stuff, but not '\xHH' hex character constants.
4232 These don't provoke an error unfortunately, instead are silently treated
4233 as 'x'. The following induces an error, until -std is added to get
4234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4235 array size at least. It's necessary to write '\x00'==0 to get something
4236 that's true only with -std. */
4237int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238
4239/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4240 inside strings and character constants. */
4241#define FOO(x) 'x'
4242int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243
4244int test (int i, double x);
4245struct s1 {int (*f) (int a);};
4246struct s2 {int (*f) (double a);};
4247int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248int argc;
4249char **argv;
4250int
4251main ()
4252{
4253return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4254 ;
4255 return 0;
4256}
4257_ACEOF
4258for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260do
4261 CC="$ac_save_CC $ac_arg"
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_c89=$ac_arg
4264fi
4265rm -f core conftest.err conftest.$ac_objext
4266 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267done
4268rm -f conftest.$ac_ext
4269CC=$ac_save_CC
4270
4271fi
4272# AC_CACHE_VAL
4273case "x$ac_cv_prog_cc_c89" in
4274 x)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4276$as_echo "none needed" >&6; } ;;
4277 xno)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279$as_echo "unsupported" >&6; } ;;
4280 *)
4281 CC="$CC $ac_cv_prog_cc_c89"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4283$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284esac
4285if test "x$ac_cv_prog_cc_c89" != xno; then :
4286
4287fi
4288
4289ac_ext=cpp
4290ac_cpp='$CXXCPP $CPPFLAGS'
4291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4294
4295depcc="$CC" am_compiler_list=
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4298$as_echo_n "checking dependency style of $depcc... " >&6; }
4299if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301else
4302 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4303 # We make a subdir and do the tests there. Otherwise we can end up
4304 # making bogus files that we don't know about and never remove. For
4305 # instance it was reported that on HP-UX the gcc test will end up
4306 # making a dummy file named `D' -- because `-MD' means `put the output
4307 # in D'.
4308 rm -rf conftest.dir
4309 mkdir conftest.dir
4310 # Copy depcomp to subdir because otherwise we won't find it if we're
4311 # using a relative directory.
4312 cp "$am_depcomp" conftest.dir
4313 cd conftest.dir
4314 # We will build objects and dependencies in a subdirectory because
4315 # it helps to detect inapplicable dependency modes. For instance
4316 # both Tru64's cc and ICC support -MD to output dependencies as a
4317 # side effect of compilation, but ICC will put the dependencies in
4318 # the current directory while Tru64 will put them in the object
4319 # directory.
4320 mkdir sub
4321
4322 am_cv_CC_dependencies_compiler_type=none
4323 if test "$am_compiler_list" = ""; then
4324 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4325 fi
4326 am__universal=false
4327 case " $depcc " in #(
4328 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4329 esac
4330
4331 for depmode in $am_compiler_list; do
4332 # Setup a source with many dependencies, because some compilers
4333 # like to wrap large dependency lists on column 80 (with \), and
4334 # we should not choose a depcomp mode which is confused by this.
4335 #
4336 # We need to recreate these files for each test, as the compiler may
4337 # overwrite some of them when testing with obscure command lines.
4338 # This happens at least with the AIX C compiler.
4339 : > sub/conftest.c
4340 for i in 1 2 3 4 5 6; do
4341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4343 # Solaris 8's {/usr,}/bin/sh.
4344 touch sub/conftst$i.h
4345 done
4346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4347
4348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4349 # mode. It turns out that the SunPro C++ compiler does not properly
4350 # handle `-M -o', and we need to detect this. Also, some Intel
4351 # versions had trouble with output in subdirs
4352 am__obj=sub/conftest.${OBJEXT-o}
4353 am__minus_obj="-o $am__obj"
4354 case $depmode in
4355 gcc)
4356 # This depmode causes a compiler race in universal mode.
4357 test "$am__universal" = false || continue
4358 ;;
4359 nosideeffect)
4360 # after this tag, mechanisms are not by side-effect, so they'll
4361 # only be used when explicitly requested
4362 if test "x$enable_dependency_tracking" = xyes; then
4363 continue
4364 else
4365 break
4366 fi
4367 ;;
4368 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4369 # This compiler won't grok `-c -o', but also, the minuso test has
4370 # not run yet. These depmodes are late enough in the game, and
4371 # so weak that their functioning should not be impacted.
4372 am__obj=conftest.${OBJEXT-o}
4373 am__minus_obj=
4374 ;;
4375 none) break ;;
4376 esac
4377 if depmode=$depmode \
4378 source=sub/conftest.c object=$am__obj \
4379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4380 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4381 >/dev/null 2>conftest.err &&
4382 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4386 # icc doesn't choke on unknown options, it will just issue warnings
4387 # or remarks (even with -Werror). So we grep stderr for any message
4388 # that says an option was ignored or not supported.
4389 # When given -MP, icc 7.0 and 7.1 complain thusly:
4390 # icc: Command line warning: ignoring option '-M'; no argument required
4391 # The diagnosis changed in icc 8.0:
4392 # icc: Command line remark: option '-MP' not supported
4393 if (grep 'ignoring option' conftest.err ||
4394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4395 am_cv_CC_dependencies_compiler_type=$depmode
4396 break
4397 fi
4398 fi
4399 done
4400
4401 cd ..
4402 rm -rf conftest.dir
4403else
4404 am_cv_CC_dependencies_compiler_type=none
4405fi
4406
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4409$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4410CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4411
4412 if
4413 test "x$enable_dependency_tracking" != xno \
4414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4415 am__fastdepCC_TRUE=
4416 am__fastdepCC_FALSE='#'
4417else
4418 am__fastdepCC_TRUE='#'
4419 am__fastdepCC_FALSE=
4420fi
4421
4422
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4424$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4425if ${ac_cv_path_SED+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427else
4428 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4429 for ac_i in 1 2 3 4 5 6 7; do
4430 ac_script="$ac_script$as_nl$ac_script"
4431 done
4432 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4433 { ac_script=; unset ac_script;}
4434 if test -z "$SED"; then
4435 ac_path_SED_found=false
4436 # Loop through the user's path and test for each of PROGNAME-LIST
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_prog in sed gsed; do
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4445 as_fn_executable_p "$ac_path_SED" || continue
4446# Check for GNU ac_path_SED and select it if it is found.
4447 # Check for GNU $ac_path_SED
4448case `"$ac_path_SED" --version 2>&1` in
4449*GNU*)
4450 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4451*)
4452 ac_count=0
4453 $as_echo_n 0123456789 >"conftest.in"
4454 while :
4455 do
4456 cat "conftest.in" "conftest.in" >"conftest.tmp"
4457 mv "conftest.tmp" "conftest.in"
4458 cp "conftest.in" "conftest.nl"
4459 $as_echo '' >> "conftest.nl"
4460 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4462 as_fn_arith $ac_count + 1 && ac_count=$as_val
4463 if test $ac_count -gt ${ac_path_SED_max-0}; then
4464 # Best one so far, save it but keep looking for a better one
4465 ac_cv_path_SED="$ac_path_SED"
4466 ac_path_SED_max=$ac_count
4467 fi
4468 # 10*(2^10) chars as input seems more than enough
4469 test $ac_count -gt 10 && break
4470 done
4471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4472esac
4473
4474 $ac_path_SED_found && break 3
4475 done
4476 done
4477 done
4478IFS=$as_save_IFS
4479 if test -z "$ac_cv_path_SED"; then
4480 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4481 fi
4482else
4483 ac_cv_path_SED=$SED
4484fi
4485
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4488$as_echo "$ac_cv_path_SED" >&6; }
4489 SED="$ac_cv_path_SED"
4490 rm -f conftest.sed
4491
4492test -z "$SED" && SED=sed
4493Xsed="$SED -e 1s/^X//"
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4506$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4507if ${ac_cv_path_GREP+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509else
4510 if test -z "$GREP"; then
4511 ac_path_GREP_found=false
4512 # Loop through the user's path and test for each of PROGNAME-LIST
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_prog in grep ggrep; do
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4521 as_fn_executable_p "$ac_path_GREP" || continue
4522# Check for GNU ac_path_GREP and select it if it is found.
4523 # Check for GNU $ac_path_GREP
4524case `"$ac_path_GREP" --version 2>&1` in
4525*GNU*)
4526 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4527*)
4528 ac_count=0
4529 $as_echo_n 0123456789 >"conftest.in"
4530 while :
4531 do
4532 cat "conftest.in" "conftest.in" >"conftest.tmp"
4533 mv "conftest.tmp" "conftest.in"
4534 cp "conftest.in" "conftest.nl"
4535 $as_echo 'GREP' >> "conftest.nl"
4536 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4538 as_fn_arith $ac_count + 1 && ac_count=$as_val
4539 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4540 # Best one so far, save it but keep looking for a better one
4541 ac_cv_path_GREP="$ac_path_GREP"
4542 ac_path_GREP_max=$ac_count
4543 fi
4544 # 10*(2^10) chars as input seems more than enough
4545 test $ac_count -gt 10 && break
4546 done
4547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4548esac
4549
4550 $ac_path_GREP_found && break 3
4551 done
4552 done
4553 done
4554IFS=$as_save_IFS
4555 if test -z "$ac_cv_path_GREP"; then
4556 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4557 fi
4558else
4559 ac_cv_path_GREP=$GREP
4560fi
4561
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4564$as_echo "$ac_cv_path_GREP" >&6; }
4565 GREP="$ac_cv_path_GREP"
4566
4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4569$as_echo_n "checking for egrep... " >&6; }
4570if ${ac_cv_path_EGREP+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4574 then ac_cv_path_EGREP="$GREP -E"
4575 else
4576 if test -z "$EGREP"; then
4577 ac_path_EGREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in egrep; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4587 as_fn_executable_p "$ac_path_EGREP" || continue
4588# Check for GNU ac_path_EGREP and select it if it is found.
4589 # Check for GNU $ac_path_EGREP
4590case `"$ac_path_EGREP" --version 2>&1` in
4591*GNU*)
4592 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4593*)
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4597 do
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'EGREP' >> "conftest.nl"
4602 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_EGREP="$ac_path_EGREP"
4608 ac_path_EGREP_max=$ac_count
4609 fi
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614esac
4615
4616 $ac_path_EGREP_found && break 3
4617 done
4618 done
4619 done
4620IFS=$as_save_IFS
4621 if test -z "$ac_cv_path_EGREP"; then
4622 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4623 fi
4624else
4625 ac_cv_path_EGREP=$EGREP
4626fi
4627
4628 fi
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4631$as_echo "$ac_cv_path_EGREP" >&6; }
4632 EGREP="$ac_cv_path_EGREP"
4633
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4636$as_echo_n "checking for fgrep... " >&6; }
4637if ${ac_cv_path_FGREP+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639else
4640 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4641 then ac_cv_path_FGREP="$GREP -F"
4642 else
4643 if test -z "$FGREP"; then
4644 ac_path_FGREP_found=false
4645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_prog in fgrep; do
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4654 as_fn_executable_p "$ac_path_FGREP" || continue
4655# Check for GNU ac_path_FGREP and select it if it is found.
4656 # Check for GNU $ac_path_FGREP
4657case `"$ac_path_FGREP" --version 2>&1` in
4658*GNU*)
4659 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4660*)
4661 ac_count=0
4662 $as_echo_n 0123456789 >"conftest.in"
4663 while :
4664 do
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
4668 $as_echo 'FGREP' >> "conftest.nl"
4669 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671 as_fn_arith $ac_count + 1 && ac_count=$as_val
4672 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_FGREP="$ac_path_FGREP"
4675 ac_path_FGREP_max=$ac_count
4676 fi
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4679 done
4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681esac
4682
4683 $ac_path_FGREP_found && break 3
4684 done
4685 done
4686 done
4687IFS=$as_save_IFS
4688 if test -z "$ac_cv_path_FGREP"; then
4689 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 fi
4691else
4692 ac_cv_path_FGREP=$FGREP
4693fi
4694
4695 fi
4696fi
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4698$as_echo "$ac_cv_path_FGREP" >&6; }
4699 FGREP="$ac_cv_path_FGREP"
4700
4701
4702test -z "$GREP" && GREP=grep
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722# Check whether --with-gnu-ld was given.
4723if test "${with_gnu_ld+set}" = set; then :
4724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4725else
4726 with_gnu_ld=no
4727fi
4728
4729ac_prog=ld
4730if test "$GCC" = yes; then
4731 # Check if gcc -print-prog-name=ld gives a path.
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4733$as_echo_n "checking for ld used by $CC... " >&6; }
4734 case $host in
4735 *-*-mingw*)
4736 # gcc leaves a trailing carriage return which upsets mingw
4737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4738 *)
4739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4740 esac
4741 case $ac_prog in
4742 # Accept absolute paths.
4743 [\\/]* | ?:[\\/]*)
4744 re_direlt='/[^/][^/]*/\.\./'
4745 # Canonicalize the pathname of ld
4746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4749 done
4750 test -z "$LD" && LD="$ac_prog"
4751 ;;
4752 "")
4753 # If it fails, then pretend we aren't using GCC.
4754 ac_prog=ld
4755 ;;
4756 *)
4757 # If it is relative, then search for the first ld in PATH.
4758 with_gnu_ld=unknown
4759 ;;
4760 esac
4761elif test "$with_gnu_ld" = yes; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4763$as_echo_n "checking for GNU ld... " >&6; }
4764else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4766$as_echo_n "checking for non-GNU ld... " >&6; }
4767fi
4768if ${lt_cv_path_LD+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 if test -z "$LD"; then
4772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4773 for ac_dir in $PATH; do
4774 IFS="$lt_save_ifs"
4775 test -z "$ac_dir" && ac_dir=.
4776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4777 lt_cv_path_LD="$ac_dir/$ac_prog"
4778 # Check to see if the program is GNU ld. I'd rather use --version,
4779 # but apparently some variants of GNU ld only accept -v.
4780 # Break only if it was the GNU/non-GNU ld that we prefer.
4781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4782 *GNU* | *'with BFD'*)
4783 test "$with_gnu_ld" != no && break
4784 ;;
4785 *)
4786 test "$with_gnu_ld" != yes && break
4787 ;;
4788 esac
4789 fi
4790 done
4791 IFS="$lt_save_ifs"
4792else
4793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4794fi
4795fi
4796
4797LD="$lt_cv_path_LD"
4798if test -n "$LD"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4800$as_echo "$LD" >&6; }
4801else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4807$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4808if ${lt_cv_prog_gnu_ld+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4812case `$LD -v 2>&1 </dev/null` in
4813*GNU* | *'with BFD'*)
4814 lt_cv_prog_gnu_ld=yes
4815 ;;
4816*)
4817 lt_cv_prog_gnu_ld=no
4818 ;;
4819esac
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4822$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4823with_gnu_ld=$lt_cv_prog_gnu_ld
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4834$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4835if ${lt_cv_path_NM+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837else
4838 if test -n "$NM"; then
4839 # Let the user override the test.
4840 lt_cv_path_NM="$NM"
4841else
4842 lt_nm_to_check="${ac_tool_prefix}nm"
4843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4844 lt_nm_to_check="$lt_nm_to_check nm"
4845 fi
4846 for lt_tmp_nm in $lt_nm_to_check; do
4847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4848 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4849 IFS="$lt_save_ifs"
4850 test -z "$ac_dir" && ac_dir=.
4851 tmp_nm="$ac_dir/$lt_tmp_nm"
4852 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4853 # Check to see if the nm accepts a BSD-compat flag.
4854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4855 # nm: unknown option "B" ignored
4856 # Tru64's nm complains that /dev/null is an invalid object file
4857 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4858 */dev/null* | *'Invalid file or object type'*)
4859 lt_cv_path_NM="$tmp_nm -B"
4860 break
4861 ;;
4862 *)
4863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4864 */dev/null*)
4865 lt_cv_path_NM="$tmp_nm -p"
4866 break
4867 ;;
4868 *)
4869 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4870 continue # so that we can try to find one that supports BSD flags
4871 ;;
4872 esac
4873 ;;
4874 esac
4875 fi
4876 done
4877 IFS="$lt_save_ifs"
4878 done
4879 : ${lt_cv_path_NM=no}
4880fi
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4883$as_echo "$lt_cv_path_NM" >&6; }
4884if test "$lt_cv_path_NM" != "no"; then
4885 NM="$lt_cv_path_NM"
4886else
4887 # Didn't find any BSD compatible name lister, look for dumpbin.
4888 if test -n "$DUMPBIN"; then :
4889 # Let the user override the test.
4890 else
4891 if test -n "$ac_tool_prefix"; then
4892 for ac_prog in dumpbin "link -dump"
4893 do
4894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
4898if ${ac_cv_prog_DUMPBIN+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900else
4901 if test -n "$DUMPBIN"; then
4902 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915done
4916 done
4917IFS=$as_save_IFS
4918
4919fi
4920fi
4921DUMPBIN=$ac_cv_prog_DUMPBIN
4922if test -n "$DUMPBIN"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4924$as_echo "$DUMPBIN" >&6; }
4925else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927$as_echo "no" >&6; }
4928fi
4929
4930
4931 test -n "$DUMPBIN" && break
4932 done
4933fi
4934if test -z "$DUMPBIN"; then
4935 ac_ct_DUMPBIN=$DUMPBIN
4936 for ac_prog in dumpbin "link -dump"
4937do
4938 # Extract the first word of "$ac_prog", so it can be a program name with args.
4939set dummy $ac_prog; ac_word=$2
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941$as_echo_n "checking for $ac_word... " >&6; }
4942if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944else
4945 if test -n "$ac_ct_DUMPBIN"; then
4946 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960 done
4961IFS=$as_save_IFS
4962
4963fi
4964fi
4965ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4966if test -n "$ac_ct_DUMPBIN"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4968$as_echo "$ac_ct_DUMPBIN" >&6; }
4969else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4971$as_echo "no" >&6; }
4972fi
4973
4974
4975 test -n "$ac_ct_DUMPBIN" && break
4976done
4977
4978 if test "x$ac_ct_DUMPBIN" = x; then
4979 DUMPBIN=":"
4980 else
4981 case $cross_compiling:$ac_tool_warned in
4982yes:)
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4985ac_tool_warned=yes ;;
4986esac
4987 DUMPBIN=$ac_ct_DUMPBIN
4988 fi
4989fi
4990
4991 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4992 *COFF*)
4993 DUMPBIN="$DUMPBIN -symbols"
4994 ;;
4995 *)
4996 DUMPBIN=:
4997 ;;
4998 esac
4999 fi
5000
5001 if test "$DUMPBIN" != ":"; then
5002 NM="$DUMPBIN"
5003 fi
5004fi
5005test -z "$NM" && NM=nm
5006
5007
5008
5009
5010
5011
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5013$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5014if ${lt_cv_nm_interface+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016else
5017 lt_cv_nm_interface="BSD nm"
5018 echo "int some_variable = 0;" > conftest.$ac_ext
5019 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5020 (eval "$ac_compile" 2>conftest.err)
5021 cat conftest.err >&5
5022 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5024 cat conftest.err >&5
5025 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5026 cat conftest.out >&5
5027 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5028 lt_cv_nm_interface="MS dumpbin"
5029 fi
5030 rm -f conftest*
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5033$as_echo "$lt_cv_nm_interface" >&6; }
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5036$as_echo_n "checking whether ln -s works... " >&6; }
5037LN_S=$as_ln_s
5038if test "$LN_S" = "ln -s"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5040$as_echo "yes" >&6; }
5041else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5043$as_echo "no, using $LN_S" >&6; }
5044fi
5045
5046# find the maximum length of command line arguments
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5048$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5049if ${lt_cv_sys_max_cmd_len+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051else
5052 i=0
5053 teststring="ABCD"
5054
5055 case $build_os in
5056 msdosdjgpp*)
5057 # On DJGPP, this test can blow up pretty badly due to problems in libc
5058 # (any single argument exceeding 2000 bytes causes a buffer overrun
5059 # during glob expansion). Even if it were fixed, the result of this
5060 # check would be larger than it should be.
5061 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5062 ;;
5063
5064 gnu*)
5065 # Under GNU Hurd, this test is not required because there is
5066 # no limit to the length of command line arguments.
5067 # Libtool will interpret -1 as no limit whatsoever
5068 lt_cv_sys_max_cmd_len=-1;
5069 ;;
5070
5071 cygwin* | mingw* | cegcc*)
5072 # On Win9x/ME, this test blows up -- it succeeds, but takes
5073 # about 5 minutes as the teststring grows exponentially.
5074 # Worse, since 9x/ME are not pre-emptively multitasking,
5075 # you end up with a "frozen" computer, even though with patience
5076 # the test eventually succeeds (with a max line length of 256k).
5077 # Instead, let's just punt: use the minimum linelength reported by
5078 # all of the supported platforms: 8192 (on NT/2K/XP).
5079 lt_cv_sys_max_cmd_len=8192;
5080 ;;
5081
5082 mint*)
5083 # On MiNT this can take a long time and run out of memory.
5084 lt_cv_sys_max_cmd_len=8192;
5085 ;;
5086
5087 amigaos*)
5088 # On AmigaOS with pdksh, this test takes hours, literally.
5089 # So we just punt and use a minimum line length of 8192.
5090 lt_cv_sys_max_cmd_len=8192;
5091 ;;
5092
5093 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5094 # This has been around since 386BSD, at least. Likely further.
5095 if test -x /sbin/sysctl; then
5096 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5097 elif test -x /usr/sbin/sysctl; then
5098 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5099 else
5100 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5101 fi
5102 # And add a safety zone
5103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5105 ;;
5106
5107 interix*)
5108 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5109 lt_cv_sys_max_cmd_len=196608
5110 ;;
5111
5112 os2*)
5113 # The test takes a long time on OS/2.
5114 lt_cv_sys_max_cmd_len=8192
5115 ;;
5116
5117 osf*)
5118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5120 # nice to cause kernel panics so lets avoid the loop below.
5121 # First set a reasonable default.
5122 lt_cv_sys_max_cmd_len=16384
5123 #
5124 if test -x /sbin/sysconfig; then
5125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5127 esac
5128 fi
5129 ;;
5130 sco3.2v5*)
5131 lt_cv_sys_max_cmd_len=102400
5132 ;;
5133 sysv5* | sco5v6* | sysv4.2uw2*)
5134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5135 if test -n "$kargmax"; then
5136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5137 else
5138 lt_cv_sys_max_cmd_len=32768
5139 fi
5140 ;;
5141 *)
5142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5143 if test -n "$lt_cv_sys_max_cmd_len"; then
5144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5146 else
5147 # Make teststring a little bigger before we do anything with it.
5148 # a 1K string should be a reasonable start.
5149 for i in 1 2 3 4 5 6 7 8 ; do
5150 teststring=$teststring$teststring
5151 done
5152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5153 # If test is not a shell built-in, we'll probably end up computing a
5154 # maximum length that is only half of the actual maximum length, but
5155 # we can't tell.
5156 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5158 test $i != 17 # 1/2 MB should be enough
5159 do
5160 i=`expr $i + 1`
5161 teststring=$teststring$teststring
5162 done
5163 # Only check the string length outside the loop.
5164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5165 teststring=
5166 # Add a significant safety factor because C++ compilers can tack on
5167 # massive amounts of additional arguments before passing them to the
5168 # linker. It appears as though 1/2 is a usable value.
5169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5170 fi
5171 ;;
5172 esac
5173
5174fi
5175
5176if test -n $lt_cv_sys_max_cmd_len ; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5178$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5179else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5181$as_echo "none" >&6; }
5182fi
5183max_cmd_len=$lt_cv_sys_max_cmd_len
5184
5185
5186
5187
5188
5189
5190: ${CP="cp -f"}
5191: ${MV="mv -f"}
5192: ${RM="rm -f"}
5193
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5195$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5196# Try some XSI features
5197xsi_shell=no
5198( _lt_dummy="a/b/c"
5199 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5200 = c,a/b,b/c, \
5201 && eval 'test $(( 1 + 1 )) -eq 2 \
5202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5203 && xsi_shell=yes
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5205$as_echo "$xsi_shell" >&6; }
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5209$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5210lt_shell_append=no
5211( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5212 >/dev/null 2>&1 \
5213 && lt_shell_append=yes
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5215$as_echo "$lt_shell_append" >&6; }
5216
5217
5218if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5219 lt_unset=unset
5220else
5221 lt_unset=false
5222fi
5223
5224
5225
5226
5227
5228# test EBCDIC or ASCII
5229case `echo X|tr X '\101'` in
5230 A) # ASCII based system
5231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5232 lt_SP2NL='tr \040 \012'
5233 lt_NL2SP='tr \015\012 \040\040'
5234 ;;
5235 *) # EBCDIC based system
5236 lt_SP2NL='tr \100 \n'
5237 lt_NL2SP='tr \r\n \100\100'
5238 ;;
5239esac
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5250$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5251if ${lt_cv_to_host_file_cmd+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253else
5254 case $host in
5255 *-*-mingw* )
5256 case $build in
5257 *-*-mingw* ) # actually msys
5258 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5259 ;;
5260 *-*-cygwin* )
5261 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5262 ;;
5263 * ) # otherwise, assume *nix
5264 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5265 ;;
5266 esac
5267 ;;
5268 *-*-cygwin* )
5269 case $build in
5270 *-*-mingw* ) # actually msys
5271 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5272 ;;
5273 *-*-cygwin* )
5274 lt_cv_to_host_file_cmd=func_convert_file_noop
5275 ;;
5276 * ) # otherwise, assume *nix
5277 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5278 ;;
5279 esac
5280 ;;
5281 * ) # unhandled hosts (and "normal" native builds)
5282 lt_cv_to_host_file_cmd=func_convert_file_noop
5283 ;;
5284esac
5285
5286fi
5287
5288to_host_file_cmd=$lt_cv_to_host_file_cmd
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5290$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5291
5292
5293
5294
5295
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5297$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5298if ${lt_cv_to_tool_file_cmd+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300else
5301 #assume ordinary cross tools, or native build.
5302lt_cv_to_tool_file_cmd=func_convert_file_noop
5303case $host in
5304 *-*-mingw* )
5305 case $build in
5306 *-*-mingw* ) # actually msys
5307 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5308 ;;
5309 esac
5310 ;;
5311esac
5312
5313fi
5314
5315to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5317$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5318
5319
5320
5321
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5324$as_echo_n "checking for $LD option to reload object files... " >&6; }
5325if ${lt_cv_ld_reload_flag+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327else
5328 lt_cv_ld_reload_flag='-r'
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5331$as_echo "$lt_cv_ld_reload_flag" >&6; }
5332reload_flag=$lt_cv_ld_reload_flag
5333case $reload_flag in
5334"" | " "*) ;;
5335*) reload_flag=" $reload_flag" ;;
5336esac
5337reload_cmds='$LD$reload_flag -o $output$reload_objs'
5338case $host_os in
5339 cygwin* | mingw* | pw32* | cegcc*)
5340 if test "$GCC" != yes; then
5341 reload_cmds=false
5342 fi
5343 ;;
5344 darwin*)
5345 if test "$GCC" = yes; then
5346 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5347 else
5348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5349 fi
5350 ;;
5351esac
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5363set dummy ${ac_tool_prefix}objdump; ac_word=$2
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if ${ac_cv_prog_OBJDUMP+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368else
5369 if test -n "$OBJDUMP"; then
5370 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384 done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389OBJDUMP=$ac_cv_prog_OBJDUMP
5390if test -n "$OBJDUMP"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5392$as_echo "$OBJDUMP" >&6; }
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398
5399fi
5400if test -z "$ac_cv_prog_OBJDUMP"; then
5401 ac_ct_OBJDUMP=$OBJDUMP
5402 # Extract the first word of "objdump", so it can be a program name with args.
5403set dummy objdump; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 if test -n "$ac_ct_OBJDUMP"; then
5410 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423done
5424 done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5430if test -n "$ac_ct_OBJDUMP"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5432$as_echo "$ac_ct_OBJDUMP" >&6; }
5433else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438 if test "x$ac_ct_OBJDUMP" = x; then
5439 OBJDUMP="false"
5440 else
5441 case $cross_compiling:$ac_tool_warned in
5442yes:)
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445ac_tool_warned=yes ;;
5446esac
5447 OBJDUMP=$ac_ct_OBJDUMP
5448 fi
5449else
5450 OBJDUMP="$ac_cv_prog_OBJDUMP"
5451fi
5452
5453test -z "$OBJDUMP" && OBJDUMP=objdump
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5464$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5465if ${lt_cv_deplibs_check_method+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467else
5468 lt_cv_file_magic_cmd='$MAGIC_CMD'
5469lt_cv_file_magic_test_file=
5470lt_cv_deplibs_check_method='unknown'
5471# Need to set the preceding variable on all platforms that support
5472# interlibrary dependencies.
5473# 'none' -- dependencies not supported.
5474# `unknown' -- same as none, but documents that we really don't know.
5475# 'pass_all' -- all dependencies passed with no checks.
5476# 'test_compile' -- check by making test program.
5477# 'file_magic [[regex]]' -- check by looking for files in library path
5478# which responds to the $file_magic_cmd with a given extended regex.
5479# If you have `file' or equivalent on your system and you're not sure
5480# whether `pass_all' will *always* work, you probably want this one.
5481
5482case $host_os in
5483aix[4-9]*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487beos*)
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
5490
5491bsdi[45]*)
5492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5493 lt_cv_file_magic_cmd='/usr/bin/file -L'
5494 lt_cv_file_magic_test_file=/shlib/libc.so
5495 ;;
5496
5497cygwin*)
5498 # func_win32_libid is a shell function defined in ltmain.sh
5499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5500 lt_cv_file_magic_cmd='func_win32_libid'
5501 ;;
5502
5503mingw* | pw32*)
5504 # Base MSYS/MinGW do not provide the 'file' command needed by
5505 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5506 # unless we find 'file', for example because we are cross-compiling.
5507 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5508 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5510 lt_cv_file_magic_cmd='func_win32_libid'
5511 else
5512 # Keep this pattern in sync with the one in func_win32_libid.
5513 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5514 lt_cv_file_magic_cmd='$OBJDUMP -f'
5515 fi
5516 ;;
5517
5518cegcc*)
5519 # use the weaker test based on 'objdump'. See mingw*.
5520 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5521 lt_cv_file_magic_cmd='$OBJDUMP -f'
5522 ;;
5523
5524darwin* | rhapsody*)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527
5528freebsd* | dragonfly*)
5529 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5530 case $host_cpu in
5531 i*86 )
5532 # Not sure whether the presence of OpenBSD here was a mistake.
5533 # Let's accept both of them until this is cleared up.
5534 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5537 ;;
5538 esac
5539 else
5540 lt_cv_deplibs_check_method=pass_all
5541 fi
5542 ;;
5543
5544gnu*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548haiku*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552hpux10.20* | hpux11*)
5553 lt_cv_file_magic_cmd=/usr/bin/file
5554 case $host_cpu in
5555 ia64*)
5556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5557 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5558 ;;
5559 hppa*64*)
5560 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]'
5561 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5562 ;;
5563 *)
5564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5565 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5566 ;;
5567 esac
5568 ;;
5569
5570interix[3-9]*)
5571 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5573 ;;
5574
5575irix5* | irix6* | nonstopux*)
5576 case $LD in
5577 *-32|*"-32 ") libmagic=32-bit;;
5578 *-n32|*"-n32 ") libmagic=N32;;
5579 *-64|*"-64 ") libmagic=64-bit;;
5580 *) libmagic=never-match;;
5581 esac
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5584
5585# This must be glibc/ELF.
5586linux* | k*bsd*-gnu | kopensolaris*-gnu)
5587 lt_cv_deplibs_check_method=pass_all
5588 ;;
5589
5590netbsd*)
5591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5593 else
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5595 fi
5596 ;;
5597
5598newos6*)
5599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5600 lt_cv_file_magic_cmd=/usr/bin/file
5601 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5602 ;;
5603
5604*nto* | *qnx*)
5605 lt_cv_deplibs_check_method=pass_all
5606 ;;
5607
5608openbsd*)
5609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5611 else
5612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5613 fi
5614 ;;
5615
5616osf3* | osf4* | osf5*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620rdos*)
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
5623
5624solaris*)
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632sysv4 | sysv4.3*)
5633 case $host_vendor in
5634 motorola)
5635 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]'
5636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5637 ;;
5638 ncr)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641 sequent)
5642 lt_cv_file_magic_cmd='/bin/file'
5643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5644 ;;
5645 sni)
5646 lt_cv_file_magic_cmd='/bin/file'
5647 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5648 lt_cv_file_magic_test_file=/lib/libc.so
5649 ;;
5650 siemens)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653 pc)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656 esac
5657 ;;
5658
5659tpf*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662esac
5663
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5666$as_echo "$lt_cv_deplibs_check_method" >&6; }
5667
5668file_magic_glob=
5669want_nocaseglob=no
5670if test "$build" = "$host"; then
5671 case $host_os in
5672 mingw* | pw32*)
5673 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5674 want_nocaseglob=yes
5675 else
5676 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5677 fi
5678 ;;
5679 esac
5680fi
5681
5682file_magic_cmd=$lt_cv_file_magic_cmd
5683deplibs_check_method=$lt_cv_deplibs_check_method
5684test -z "$deplibs_check_method" && deplibs_check_method=unknown
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5709set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711$as_echo_n "checking for $ac_word... " >&6; }
5712if ${ac_cv_prog_DLLTOOL+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 if test -n "$DLLTOOL"; then
5716 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5717else
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729done
5730 done
5731IFS=$as_save_IFS
5732
5733fi
5734fi
5735DLLTOOL=$ac_cv_prog_DLLTOOL
5736if test -n "$DLLTOOL"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5738$as_echo "$DLLTOOL" >&6; }
5739else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741$as_echo "no" >&6; }
5742fi
5743
5744
5745fi
5746if test -z "$ac_cv_prog_DLLTOOL"; then
5747 ac_ct_DLLTOOL=$DLLTOOL
5748 # Extract the first word of "dlltool", so it can be a program name with args.
5749set dummy dlltool; ac_word=$2
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751$as_echo_n "checking for $ac_word... " >&6; }
5752if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754else
5755 if test -n "$ac_ct_DLLTOOL"; then
5756 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770 done
5771IFS=$as_save_IFS
5772
5773fi
5774fi
5775ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5776if test -n "$ac_ct_DLLTOOL"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5778$as_echo "$ac_ct_DLLTOOL" >&6; }
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782fi
5783
5784 if test "x$ac_ct_DLLTOOL" = x; then
5785 DLLTOOL="false"
5786 else
5787 case $cross_compiling:$ac_tool_warned in
5788yes:)
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791ac_tool_warned=yes ;;
5792esac
5793 DLLTOOL=$ac_ct_DLLTOOL
5794 fi
5795else
5796 DLLTOOL="$ac_cv_prog_DLLTOOL"
5797fi
5798
5799test -z "$DLLTOOL" && DLLTOOL=dlltool
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5811$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5812if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815 lt_cv_sharedlib_from_linklib_cmd='unknown'
5816
5817case $host_os in
5818cygwin* | mingw* | pw32* | cegcc*)
5819 # two different shell functions defined in ltmain.sh
5820 # decide which to use based on capabilities of $DLLTOOL
5821 case `$DLLTOOL --help 2>&1` in
5822 *--identify-strict*)
5823 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5824 ;;
5825 *)
5826 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5827 ;;
5828 esac
5829 ;;
5830*)
5831 # fallback: assume linklib IS sharedlib
5832 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5833 ;;
5834esac
5835
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5838$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5839sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5840test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5841
5842
5843
5844
5845
5846
5847
5848
5849if test -n "$ac_tool_prefix"; then
5850 for ac_prog in ar
5851 do
5852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855$as_echo_n "checking for $ac_word... " >&6; }
5856if ${ac_cv_prog_AR+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858else
5859 if test -n "$AR"; then
5860 ac_cv_prog_AR="$AR" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874 done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879AR=$ac_cv_prog_AR
5880if test -n "$AR"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5882$as_echo "$AR" >&6; }
5883else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886fi
5887
5888
5889 test -n "$AR" && break
5890 done
5891fi
5892if test -z "$AR"; then
5893 ac_ct_AR=$AR
5894 for ac_prog in ar
5895do
5896 # Extract the first word of "$ac_prog", so it can be a program name with args.
5897set dummy $ac_prog; ac_word=$2
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899$as_echo_n "checking for $ac_word... " >&6; }
5900if ${ac_cv_prog_ac_ct_AR+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902else
5903 if test -n "$ac_ct_AR"; then
5904 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_ac_ct_AR="$ac_prog"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917done
5918 done
5919IFS=$as_save_IFS
5920
5921fi
5922fi
5923ac_ct_AR=$ac_cv_prog_ac_ct_AR
5924if test -n "$ac_ct_AR"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5926$as_echo "$ac_ct_AR" >&6; }
5927else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930fi
5931
5932
5933 test -n "$ac_ct_AR" && break
5934done
5935
5936 if test "x$ac_ct_AR" = x; then
5937 AR="false"
5938 else
5939 case $cross_compiling:$ac_tool_warned in
5940yes:)
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943ac_tool_warned=yes ;;
5944esac
5945 AR=$ac_ct_AR
5946 fi
5947fi
5948
5949: ${AR=ar}
5950: ${AR_FLAGS=cru}
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5963$as_echo_n "checking for archiver @FILE support... " >&6; }
5964if ${lt_cv_ar_at_file+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966else
5967 lt_cv_ar_at_file=no
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h. */
5970
5971int
5972main ()
5973{
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979if ac_fn_cxx_try_compile "$LINENO"; then :
5980 echo conftest.$ac_objext > conftest.lst
5981 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5983 (eval $lt_ar_try) 2>&5
5984 ac_status=$?
5985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5986 test $ac_status = 0; }
5987 if test "$ac_status" -eq 0; then
5988 # Ensure the archiver fails upon bogus file names.
5989 rm -f conftest.$ac_objext libconftest.a
5990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5991 (eval $lt_ar_try) 2>&5
5992 ac_status=$?
5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; }
5995 if test "$ac_status" -ne 0; then
5996 lt_cv_ar_at_file=@
5997 fi
5998 fi
5999 rm -f conftest.* libconftest.a
6000
6001fi
6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6006$as_echo "$lt_cv_ar_at_file" >&6; }
6007
6008if test "x$lt_cv_ar_at_file" = xno; then
6009 archiver_list_spec=
6010else
6011 archiver_list_spec=$lt_cv_ar_at_file
6012fi
6013
6014
6015
6016
6017
6018
6019
6020if test -n "$ac_tool_prefix"; then
6021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6022set dummy ${ac_tool_prefix}strip; ac_word=$2
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024$as_echo_n "checking for $ac_word... " >&6; }
6025if ${ac_cv_prog_STRIP+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027else
6028 if test -n "$STRIP"; then
6029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6030else
6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042done
6043 done
6044IFS=$as_save_IFS
6045
6046fi
6047fi
6048STRIP=$ac_cv_prog_STRIP
6049if test -n "$STRIP"; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6051$as_echo "$STRIP" >&6; }
6052else
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054$as_echo "no" >&6; }
6055fi
6056
6057
6058fi
6059if test -z "$ac_cv_prog_STRIP"; then
6060 ac_ct_STRIP=$STRIP
6061 # Extract the first word of "strip", so it can be a program name with args.
6062set dummy strip; ac_word=$2
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064$as_echo_n "checking for $ac_word... " >&6; }
6065if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6066 $as_echo_n "(cached) " >&6
6067else
6068 if test -n "$ac_ct_STRIP"; then
6069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6070else
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_prog_ac_ct_STRIP="strip"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083 done
6084IFS=$as_save_IFS
6085
6086fi
6087fi
6088ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6089if test -n "$ac_ct_STRIP"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6091$as_echo "$ac_ct_STRIP" >&6; }
6092else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094$as_echo "no" >&6; }
6095fi
6096
6097 if test "x$ac_ct_STRIP" = x; then
6098 STRIP=":"
6099 else
6100 case $cross_compiling:$ac_tool_warned in
6101yes:)
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6104ac_tool_warned=yes ;;
6105esac
6106 STRIP=$ac_ct_STRIP
6107 fi
6108else
6109 STRIP="$ac_cv_prog_STRIP"
6110fi
6111
6112test -z "$STRIP" && STRIP=:
6113
6114
6115
6116
6117
6118
6119if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6121set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123$as_echo_n "checking for $ac_word... " >&6; }
6124if ${ac_cv_prog_RANLIB+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126else
6127 if test -n "$RANLIB"; then
6128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6129else
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH
6132do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141done
6142 done
6143IFS=$as_save_IFS
6144
6145fi
6146fi
6147RANLIB=$ac_cv_prog_RANLIB
6148if test -n "$RANLIB"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6150$as_echo "$RANLIB" >&6; }
6151else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153$as_echo "no" >&6; }
6154fi
6155
6156
6157fi
6158if test -z "$ac_cv_prog_RANLIB"; then
6159 ac_ct_RANLIB=$RANLIB
6160 # Extract the first word of "ranlib", so it can be a program name with args.
6161set dummy ranlib; ac_word=$2
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163$as_echo_n "checking for $ac_word... " >&6; }
6164if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166else
6167 if test -n "$ac_ct_RANLIB"; then
6168 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6169else
6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH
6172do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_ac_ct_RANLIB="ranlib"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181done
6182 done
6183IFS=$as_save_IFS
6184
6185fi
6186fi
6187ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6188if test -n "$ac_ct_RANLIB"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6190$as_echo "$ac_ct_RANLIB" >&6; }
6191else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193$as_echo "no" >&6; }
6194fi
6195
6196 if test "x$ac_ct_RANLIB" = x; then
6197 RANLIB=":"
6198 else
6199 case $cross_compiling:$ac_tool_warned in
6200yes:)
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203ac_tool_warned=yes ;;
6204esac
6205 RANLIB=$ac_ct_RANLIB
6206 fi
6207else
6208 RANLIB="$ac_cv_prog_RANLIB"
6209fi
6210
6211test -z "$RANLIB" && RANLIB=:
6212
6213
6214
6215
6216
6217
6218# Determine commands to create old-style static archives.
6219old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6220old_postinstall_cmds='chmod 644 $oldlib'
6221old_postuninstall_cmds=
6222
6223if test -n "$RANLIB"; then
6224 case $host_os in
6225 openbsd*)
6226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6227 ;;
6228 *)
6229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6230 ;;
6231 esac
6232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6233fi
6234
6235case $host_os in
6236 darwin*)
6237 lock_old_archive_extraction=yes ;;
6238 *)
6239 lock_old_archive_extraction=no ;;
6240esac
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280# If no C compiler was specified, use CC.
6281LTCC=${LTCC-"$CC"}
6282
6283# If no C compiler flags were specified, use CFLAGS.
6284LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6285
6286# Allow CC to be a program name with arguments.
6287compiler=$CC
6288
6289
6290# Check for command to grab the raw symbol name followed by C symbol from nm.
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6292$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6293if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295else
6296
6297# These are sane defaults that work on at least a few old systems.
6298# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6299
6300# Character class describing NM global symbol codes.
6301symcode='[BCDEGRST]'
6302
6303# Regexp to match symbols that can be accessed directly from C.
6304sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6305
6306# Define system-specific variables.
6307case $host_os in
6308aix*)
6309 symcode='[BCDT]'
6310 ;;
6311cygwin* | mingw* | pw32* | cegcc*)
6312 symcode='[ABCDGISTW]'
6313 ;;
6314hpux*)
6315 if test "$host_cpu" = ia64; then
6316 symcode='[ABCDEGRST]'
6317 fi
6318 ;;
6319irix* | nonstopux*)
6320 symcode='[BCDEGRST]'
6321 ;;
6322osf*)
6323 symcode='[BCDEGQRST]'
6324 ;;
6325solaris*)
6326 symcode='[BDRT]'
6327 ;;
6328sco3.2v5*)
6329 symcode='[DT]'
6330 ;;
6331sysv4.2uw2*)
6332 symcode='[DT]'
6333 ;;
6334sysv5* | sco5v6* | unixware* | OpenUNIX*)
6335 symcode='[ABDT]'
6336 ;;
6337sysv4)
6338 symcode='[DFNSTU]'
6339 ;;
6340esac
6341
6342# If we're using GNU nm, then use its standard symbol codes.
6343case `$NM -V 2>&1` in
6344*GNU* | *'with BFD'*)
6345 symcode='[ABCDGIRSTW]' ;;
6346esac
6347
6348# Transform an extracted symbol line into a proper C declaration.
6349# Some systems (esp. on ia64) link data and code symbols differently,
6350# so use this general approach.
6351lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6352
6353# Transform an extracted symbol line into symbol name and symbol address
6354lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6355lt_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'"
6356
6357# Handle CRLF in mingw tool chain
6358opt_cr=
6359case $build_os in
6360mingw*)
6361 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6362 ;;
6363esac
6364
6365# Try without a prefix underscore, then with it.
6366for ac_symprfx in "" "_"; do
6367
6368 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6369 symxfrm="\\1 $ac_symprfx\\2 \\2"
6370
6371 # Write the raw and C identifiers.
6372 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6373 # Fake it for dumpbin and say T for any non-static function
6374 # and D for any global variable.
6375 # Also find C++ and __fastcall symbols from MSVC++,
6376 # which start with @ or ?.
6377 lt_cv_sys_global_symbol_pipe="$AWK '"\
6378" {last_section=section; section=\$ 3};"\
6379" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6380" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6381" \$ 0!~/External *\|/{next};"\
6382" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6383" {if(hide[section]) next};"\
6384" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6385" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6386" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6387" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6388" ' prfx=^$ac_symprfx"
6389 else
6390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6391 fi
6392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6393
6394 # Check to see that the pipe works correctly.
6395 pipe_works=no
6396
6397 rm -f conftest*
6398 cat > conftest.$ac_ext <<_LT_EOF
6399#ifdef __cplusplus
6400extern "C" {
6401#endif
6402char nm_test_var;
6403void nm_test_func(void);
6404void nm_test_func(void){}
6405#ifdef __cplusplus
6406}
6407#endif
6408int main(){nm_test_var='a';nm_test_func();return(0);}
6409_LT_EOF
6410
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 # Now try to grab the symbols.
6417 nlist=conftest.nm
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; } && test -s "$nlist"; then
6423 # Try sorting and uniquifying the output.
6424 if sort "$nlist" | uniq > "$nlist"T; then
6425 mv -f "$nlist"T "$nlist"
6426 else
6427 rm -f "$nlist"T
6428 fi
6429
6430 # Make sure that we snagged all the symbols we need.
6431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6433 cat <<_LT_EOF > conftest.$ac_ext
6434/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6435#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6436/* DATA imports from DLLs on WIN32 con't be const, because runtime
6437 relocations are performed -- see ld's documentation on pseudo-relocs. */
6438# define LT_DLSYM_CONST
6439#elif defined(__osf__)
6440/* This system does not cope well with relocations in const data. */
6441# define LT_DLSYM_CONST
6442#else
6443# define LT_DLSYM_CONST const
6444#endif
6445
6446#ifdef __cplusplus
6447extern "C" {
6448#endif
6449
6450_LT_EOF
6451 # Now generate the symbol file.
6452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6453
6454 cat <<_LT_EOF >> conftest.$ac_ext
6455
6456/* The mapping between symbol names and symbols. */
6457LT_DLSYM_CONST struct {
6458 const char *name;
6459 void *address;
6460}
6461lt__PROGRAM__LTX_preloaded_symbols[] =
6462{
6463 { "@PROGRAM@", (void *) 0 },
6464_LT_EOF
6465 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6466 cat <<\_LT_EOF >> conftest.$ac_ext
6467 {0, (void *) 0}
6468};
6469
6470/* This works around a problem in FreeBSD linker */
6471#ifdef FREEBSD_WORKAROUND
6472static const void *lt_preloaded_setup() {
6473 return lt__PROGRAM__LTX_preloaded_symbols;
6474}
6475#endif
6476
6477#ifdef __cplusplus
6478}
6479#endif
6480_LT_EOF
6481 # Now try linking the two files.
6482 mv conftest.$ac_objext conftstm.$ac_objext
6483 lt_globsym_save_LIBS=$LIBS
6484 lt_globsym_save_CFLAGS=$CFLAGS
6485 LIBS="conftstm.$ac_objext"
6486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6488 (eval $ac_link) 2>&5
6489 ac_status=$?
6490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6491 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6492 pipe_works=yes
6493 fi
6494 LIBS=$lt_globsym_save_LIBS
6495 CFLAGS=$lt_globsym_save_CFLAGS
6496 else
6497 echo "cannot find nm_test_func in $nlist" >&5
6498 fi
6499 else
6500 echo "cannot find nm_test_var in $nlist" >&5
6501 fi
6502 else
6503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6504 fi
6505 else
6506 echo "$progname: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 fi
6509 rm -rf conftest* conftst*
6510
6511 # Do not use the global_symbol_pipe unless it works.
6512 if test "$pipe_works" = yes; then
6513 break
6514 else
6515 lt_cv_sys_global_symbol_pipe=
6516 fi
6517done
6518
6519fi
6520
6521if test -z "$lt_cv_sys_global_symbol_pipe"; then
6522 lt_cv_sys_global_symbol_to_cdecl=
6523fi
6524if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6526$as_echo "failed" >&6; }
6527else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6529$as_echo "ok" >&6; }
6530fi
6531
6532# Response file support.
6533if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6534 nm_file_list_spec='@'
6535elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6536 nm_file_list_spec='@'
6537fi
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6566$as_echo_n "checking for sysroot... " >&6; }
6567
6568# Check whether --with-sysroot was given.
6569if test "${with_sysroot+set}" = set; then :
6570 withval=$with_sysroot;
6571else
6572 with_sysroot=no
6573fi
6574
6575
6576lt_sysroot=
6577case ${with_sysroot} in #(
6578 yes)
6579 if test "$GCC" = yes; then
6580 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6581 fi
6582 ;; #(
6583 /*)
6584 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6585 ;; #(
6586 no|'')
6587 ;; #(
6588 *)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6590$as_echo "${with_sysroot}" >&6; }
6591 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6592 ;;
6593esac
6594
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6596$as_echo "${lt_sysroot:-no}" >&6; }
6597
6598
6599
6600
6601
6602
6603# Check whether --enable-libtool-lock was given.
6604if test "${enable_libtool_lock+set}" = set; then :
6605 enableval=$enable_libtool_lock;
6606fi
6607
6608test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6609
6610# Some flags need to be propagated to the compiler or linker for good
6611# libtool support.
6612case $host in
6613ia64-*-hpux*)
6614 # Find out which ABI we are using.
6615 echo 'int i;' > conftest.$ac_ext
6616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6617 (eval $ac_compile) 2>&5
6618 ac_status=$?
6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6620 test $ac_status = 0; }; then
6621 case `/usr/bin/file conftest.$ac_objext` in
6622 *ELF-32*)
6623 HPUX_IA64_MODE="32"
6624 ;;
6625 *ELF-64*)
6626 HPUX_IA64_MODE="64"
6627 ;;
6628 esac
6629 fi
6630 rm -rf conftest*
6631 ;;
6632*-*-irix6*)
6633 # Find out which ABI we are using.
6634 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636 (eval $ac_compile) 2>&5
6637 ac_status=$?
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; }; then
6640 if test "$lt_cv_prog_gnu_ld" = yes; then
6641 case `/usr/bin/file conftest.$ac_objext` in
6642 *32-bit*)
6643 LD="${LD-ld} -melf32bsmip"
6644 ;;
6645 *N32*)
6646 LD="${LD-ld} -melf32bmipn32"
6647 ;;
6648 *64-bit*)
6649 LD="${LD-ld} -melf64bmip"
6650 ;;
6651 esac
6652 else
6653 case `/usr/bin/file conftest.$ac_objext` in
6654 *32-bit*)
6655 LD="${LD-ld} -32"
6656 ;;
6657 *N32*)
6658 LD="${LD-ld} -n32"
6659 ;;
6660 *64-bit*)
6661 LD="${LD-ld} -64"
6662 ;;
6663 esac
6664 fi
6665 fi
6666 rm -rf conftest*
6667 ;;
6668
6669x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6670s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6671 # Find out which ABI we are using.
6672 echo 'int i;' > conftest.$ac_ext
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674 (eval $ac_compile) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }; then
6678 case `/usr/bin/file conftest.o` in
6679 *32-bit*)
6680 case $host in
6681 x86_64-*kfreebsd*-gnu)
6682 LD="${LD-ld} -m elf_i386_fbsd"
6683 ;;
6684 x86_64-*linux*)
6685 LD="${LD-ld} -m elf_i386"
6686 ;;
6687 ppc64-*linux*|powerpc64-*linux*)
6688 LD="${LD-ld} -m elf32ppclinux"
6689 ;;
6690 s390x-*linux*)
6691 LD="${LD-ld} -m elf_s390"
6692 ;;
6693 sparc64-*linux*)
6694 LD="${LD-ld} -m elf32_sparc"
6695 ;;
6696 esac
6697 ;;
6698 *64-bit*)
6699 case $host in
6700 x86_64-*kfreebsd*-gnu)
6701 LD="${LD-ld} -m elf_x86_64_fbsd"
6702 ;;
6703 x86_64-*linux*)
6704 LD="${LD-ld} -m elf_x86_64"
6705 ;;
6706 ppc*-*linux*|powerpc*-*linux*)
6707 LD="${LD-ld} -m elf64ppc"
6708 ;;
6709 s390*-*linux*|s390*-*tpf*)
6710 LD="${LD-ld} -m elf64_s390"
6711 ;;
6712 sparc*-*linux*)
6713 LD="${LD-ld} -m elf64_sparc"
6714 ;;
6715 esac
6716 ;;
6717 esac
6718 fi
6719 rm -rf conftest*
6720 ;;
6721
6722*-*-sco3.2v5*)
6723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6724 SAVE_CFLAGS="$CFLAGS"
6725 CFLAGS="$CFLAGS -belf"
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6727$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6728if ${lt_cv_cc_needs_belf+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730else
6731 ac_ext=c
6732ac_cpp='$CPP $CPPFLAGS'
6733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h. */
6739
6740int
6741main ()
6742{
6743
6744 ;
6745 return 0;
6746}
6747_ACEOF
6748if ac_fn_c_try_link "$LINENO"; then :
6749 lt_cv_cc_needs_belf=yes
6750else
6751 lt_cv_cc_needs_belf=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext \
6754 conftest$ac_exeext conftest.$ac_ext
6755 ac_ext=c
6756ac_cpp='$CPP $CPPFLAGS'
6757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760
6761fi
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6763$as_echo "$lt_cv_cc_needs_belf" >&6; }
6764 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6765 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6766 CFLAGS="$SAVE_CFLAGS"
6767 fi
6768 ;;
6769*-*solaris*)
6770 # Find out which ABI we are using.
6771 echo 'int i;' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 case `/usr/bin/file conftest.o` in
6778 *64-bit*)
6779 case $lt_cv_prog_gnu_ld in
6780 yes*)
6781 case $host in
6782 i?86-*-solaris*)
6783 LD="${LD-ld} -m elf_x86_64"
6784 ;;
6785 sparc*-*-solaris*)
6786 LD="${LD-ld} -m elf64_sparc"
6787 ;;
6788 esac
6789 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6790 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6791 LD="${LD-ld}_sol2"
6792 fi
6793 ;;
6794 *)
6795 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6796 LD="${LD-ld} -64"
6797 fi
6798 ;;
6799 esac
6800 ;;
6801 esac
6802 fi
6803 rm -rf conftest*
6804 ;;
6805esac
6806
6807need_locks="$enable_libtool_lock"
6808
6809if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6811set dummy ${ac_tool_prefix}mt; ac_word=$2
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813$as_echo_n "checking for $ac_word... " >&6; }
6814if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816else
6817 if test -n "$MANIFEST_TOOL"; then
6818 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831done
6832 done
6833IFS=$as_save_IFS
6834
6835fi
6836fi
6837MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6838if test -n "$MANIFEST_TOOL"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6840$as_echo "$MANIFEST_TOOL" >&6; }
6841else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843$as_echo "no" >&6; }
6844fi
6845
6846
6847fi
6848if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6849 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6850 # Extract the first word of "mt", so it can be a program name with args.
6851set dummy mt; ac_word=$2
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853$as_echo_n "checking for $ac_word... " >&6; }
6854if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856else
6857 if test -n "$ac_ct_MANIFEST_TOOL"; then
6858 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6859else
6860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861for as_dir in $PATH
6862do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871done
6872 done
6873IFS=$as_save_IFS
6874
6875fi
6876fi
6877ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6878if test -n "$ac_ct_MANIFEST_TOOL"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6880$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6881else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883$as_echo "no" >&6; }
6884fi
6885
6886 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6887 MANIFEST_TOOL=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890yes:)
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893ac_tool_warned=yes ;;
6894esac
6895 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6896 fi
6897else
6898 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6899fi
6900
6901test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6903$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6904if ${lt_cv_path_mainfest_tool+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906else
6907 lt_cv_path_mainfest_tool=no
6908 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6909 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6910 cat conftest.err >&5
6911 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6912 lt_cv_path_mainfest_tool=yes
6913 fi
6914 rm -f conftest*
6915fi
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6917$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6918if test "x$lt_cv_path_mainfest_tool" != xyes; then
6919 MANIFEST_TOOL=:
6920fi
6921
6922
6923
6924
6925
6926
6927 case $host_os in
6928 rhapsody* | darwin*)
6929 if test -n "$ac_tool_prefix"; then
6930 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6931set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933$as_echo_n "checking for $ac_word... " >&6; }
6934if ${ac_cv_prog_DSYMUTIL+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936else
6937 if test -n "$DSYMUTIL"; then
6938 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951done
6952 done
6953IFS=$as_save_IFS
6954
6955fi
6956fi
6957DSYMUTIL=$ac_cv_prog_DSYMUTIL
6958if test -n "$DSYMUTIL"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6960$as_echo "$DSYMUTIL" >&6; }
6961else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964fi
6965
6966
6967fi
6968if test -z "$ac_cv_prog_DSYMUTIL"; then
6969 ac_ct_DSYMUTIL=$DSYMUTIL
6970 # Extract the first word of "dsymutil", so it can be a program name with args.
6971set dummy dsymutil; ac_word=$2
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973$as_echo_n "checking for $ac_word... " >&6; }
6974if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976else
6977 if test -n "$ac_ct_DSYMUTIL"; then
6978 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6979else
6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983 IFS=$as_save_IFS
6984 test -z "$as_dir" && as_dir=.
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991done
6992 done
6993IFS=$as_save_IFS
6994
6995fi
6996fi
6997ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6998if test -n "$ac_ct_DSYMUTIL"; then
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7000$as_echo "$ac_ct_DSYMUTIL" >&6; }
7001else
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003$as_echo "no" >&6; }
7004fi
7005
7006 if test "x$ac_ct_DSYMUTIL" = x; then
7007 DSYMUTIL=":"
7008 else
7009 case $cross_compiling:$ac_tool_warned in
7010yes:)
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7013ac_tool_warned=yes ;;
7014esac
7015 DSYMUTIL=$ac_ct_DSYMUTIL
7016 fi
7017else
7018 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7019fi
7020
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7023set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025$as_echo_n "checking for $ac_word... " >&6; }
7026if ${ac_cv_prog_NMEDIT+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028else
7029 if test -n "$NMEDIT"; then
7030 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043done
7044 done
7045IFS=$as_save_IFS
7046
7047fi
7048fi
7049NMEDIT=$ac_cv_prog_NMEDIT
7050if test -n "$NMEDIT"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7052$as_echo "$NMEDIT" >&6; }
7053else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055$as_echo "no" >&6; }
7056fi
7057
7058
7059fi
7060if test -z "$ac_cv_prog_NMEDIT"; then
7061 ac_ct_NMEDIT=$NMEDIT
7062 # Extract the first word of "nmedit", so it can be a program name with args.
7063set dummy nmedit; ac_word=$2
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065$as_echo_n "checking for $ac_word... " >&6; }
7066if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068else
7069 if test -n "$ac_ct_NMEDIT"; then
7070 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083done
7084 done
7085IFS=$as_save_IFS
7086
7087fi
7088fi
7089ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7090if test -n "$ac_ct_NMEDIT"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7092$as_echo "$ac_ct_NMEDIT" >&6; }
7093else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095$as_echo "no" >&6; }
7096fi
7097
7098 if test "x$ac_ct_NMEDIT" = x; then
7099 NMEDIT=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102yes:)
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105ac_tool_warned=yes ;;
7106esac
7107 NMEDIT=$ac_ct_NMEDIT
7108 fi
7109else
7110 NMEDIT="$ac_cv_prog_NMEDIT"
7111fi
7112
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7115set dummy ${ac_tool_prefix}lipo; ac_word=$2
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117$as_echo_n "checking for $ac_word... " >&6; }
7118if ${ac_cv_prog_LIPO+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120else
7121 if test -n "$LIPO"; then
7122 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135done
7136 done
7137IFS=$as_save_IFS
7138
7139fi
7140fi
7141LIPO=$ac_cv_prog_LIPO
7142if test -n "$LIPO"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7144$as_echo "$LIPO" >&6; }
7145else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147$as_echo "no" >&6; }
7148fi
7149
7150
7151fi
7152if test -z "$ac_cv_prog_LIPO"; then
7153 ac_ct_LIPO=$LIPO
7154 # Extract the first word of "lipo", so it can be a program name with args.
7155set dummy lipo; ac_word=$2
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157$as_echo_n "checking for $ac_word... " >&6; }
7158if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160else
7161 if test -n "$ac_ct_LIPO"; then
7162 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_ac_ct_LIPO="lipo"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176 done
7177IFS=$as_save_IFS
7178
7179fi
7180fi
7181ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7182if test -n "$ac_ct_LIPO"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7184$as_echo "$ac_ct_LIPO" >&6; }
7185else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187$as_echo "no" >&6; }
7188fi
7189
7190 if test "x$ac_ct_LIPO" = x; then
7191 LIPO=":"
7192 else
7193 case $cross_compiling:$ac_tool_warned in
7194yes:)
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197ac_tool_warned=yes ;;
7198esac
7199 LIPO=$ac_ct_LIPO
7200 fi
7201else
7202 LIPO="$ac_cv_prog_LIPO"
7203fi
7204
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7207set dummy ${ac_tool_prefix}otool; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_OTOOL+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212else
7213 if test -n "$OTOOL"; then
7214 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228 done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233OTOOL=$ac_cv_prog_OTOOL
7234if test -n "$OTOOL"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7236$as_echo "$OTOOL" >&6; }
7237else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243fi
7244if test -z "$ac_cv_prog_OTOOL"; then
7245 ac_ct_OTOOL=$OTOOL
7246 # Extract the first word of "otool", so it can be a program name with args.
7247set dummy otool; ac_word=$2
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249$as_echo_n "checking for $ac_word... " >&6; }
7250if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252else
7253 if test -n "$ac_ct_OTOOL"; then
7254 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7255else
7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_ac_ct_OTOOL="otool"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267done
7268 done
7269IFS=$as_save_IFS
7270
7271fi
7272fi
7273ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7274if test -n "$ac_ct_OTOOL"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7276$as_echo "$ac_ct_OTOOL" >&6; }
7277else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279$as_echo "no" >&6; }
7280fi
7281
7282 if test "x$ac_ct_OTOOL" = x; then
7283 OTOOL=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286yes:)
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291 OTOOL=$ac_ct_OTOOL
7292 fi
7293else
7294 OTOOL="$ac_cv_prog_OTOOL"
7295fi
7296
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7299set dummy ${ac_tool_prefix}otool64; ac_word=$2
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if ${ac_cv_prog_OTOOL64+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304else
7305 if test -n "$OTOOL64"; then
7306 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320 done
7321IFS=$as_save_IFS
7322
7323fi
7324fi
7325OTOOL64=$ac_cv_prog_OTOOL64
7326if test -n "$OTOOL64"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7328$as_echo "$OTOOL64" >&6; }
7329else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
7332fi
7333
7334
7335fi
7336if test -z "$ac_cv_prog_OTOOL64"; then
7337 ac_ct_OTOOL64=$OTOOL64
7338 # Extract the first word of "otool64", so it can be a program name with args.
7339set dummy otool64; ac_word=$2
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341$as_echo_n "checking for $ac_word... " >&6; }
7342if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344else
7345 if test -n "$ac_ct_OTOOL64"; then
7346 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7347else
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_ac_ct_OTOOL64="otool64"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360 done
7361IFS=$as_save_IFS
7362
7363fi
7364fi
7365ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7366if test -n "$ac_ct_OTOOL64"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7368$as_echo "$ac_ct_OTOOL64" >&6; }
7369else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372fi
7373
7374 if test "x$ac_ct_OTOOL64" = x; then
7375 OTOOL64=":"
7376 else
7377 case $cross_compiling:$ac_tool_warned in
7378yes:)
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381ac_tool_warned=yes ;;
7382esac
7383 OTOOL64=$ac_ct_OTOOL64
7384 fi
7385else
7386 OTOOL64="$ac_cv_prog_OTOOL64"
7387fi
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7416$as_echo_n "checking for -single_module linker flag... " >&6; }
7417if ${lt_cv_apple_cc_single_mod+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419else
7420 lt_cv_apple_cc_single_mod=no
7421 if test -z "${LT_MULTI_MODULE}"; then
7422 # By default we will add the -single_module flag. You can override
7423 # by either setting the environment variable LT_MULTI_MODULE
7424 # non-empty at configure time, or by adding -multi_module to the
7425 # link flags.
7426 rm -rf libconftest.dylib*
7427 echo "int foo(void){return 1;}" > conftest.c
7428 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7429-dynamiclib -Wl,-single_module conftest.c" >&5
7430 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7431 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7432 _lt_result=$?
7433 # If there is a non-empty error log, and "single_module"
7434 # appears in it, assume the flag caused a linker warning
7435 if test -s conftest.err && $GREP single_module conftest.err; then
7436 cat conftest.err >&5
7437 # Otherwise, if the output was created with a 0 exit code from
7438 # the compiler, it worked.
7439 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7440 lt_cv_apple_cc_single_mod=yes
7441 else
7442 cat conftest.err >&5
7443 fi
7444 rm -rf libconftest.dylib*
7445 rm -f conftest.*
7446 fi
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7449$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7452$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7453if ${lt_cv_ld_exported_symbols_list+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455else
7456 lt_cv_ld_exported_symbols_list=no
7457 save_LDFLAGS=$LDFLAGS
7458 echo "_main" > conftest.sym
7459 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h. */
7462
7463int
7464main ()
7465{
7466
7467 ;
7468 return 0;
7469}
7470_ACEOF
7471if ac_fn_c_try_link "$LINENO"; then :
7472 lt_cv_ld_exported_symbols_list=yes
7473else
7474 lt_cv_ld_exported_symbols_list=no
7475fi
7476rm -f core conftest.err conftest.$ac_objext \
7477 conftest$ac_exeext conftest.$ac_ext
7478 LDFLAGS="$save_LDFLAGS"
7479
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7482$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7483
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7485$as_echo_n "checking for -force_load linker flag... " >&6; }
7486if ${lt_cv_ld_force_load+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488else
7489 lt_cv_ld_force_load=no
7490 cat > conftest.c << _LT_EOF
7491int forced_loaded() { return 2;}
7492_LT_EOF
7493 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7494 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7495 echo "$AR cru libconftest.a conftest.o" >&5
7496 $AR cru libconftest.a conftest.o 2>&5
7497 echo "$RANLIB libconftest.a" >&5
7498 $RANLIB libconftest.a 2>&5
7499 cat > conftest.c << _LT_EOF
7500int main() { return 0;}
7501_LT_EOF
7502 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7503 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7504 _lt_result=$?
7505 if test -s conftest.err && $GREP force_load conftest.err; then
7506 cat conftest.err >&5
7507 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7508 lt_cv_ld_force_load=yes
7509 else
7510 cat conftest.err >&5
7511 fi
7512 rm -f conftest.err libconftest.a conftest conftest.c
7513 rm -rf conftest.dSYM
7514
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7517$as_echo "$lt_cv_ld_force_load" >&6; }
7518 case $host_os in
7519 rhapsody* | darwin1.[012])
7520 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7521 darwin1.*)
7522 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7523 darwin*) # darwin 5.x on
7524 # if running on 10.5 or later, the deployment target defaults
7525 # to the OS version, if on x86, and 10.4, the deployment
7526 # target defaults to 10.4. Don't you love it?
7527 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7528 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7529 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7530 10.[012]*)
7531 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7532 10.*)
7533 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7534 esac
7535 ;;
7536 esac
7537 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7538 _lt_dar_single_mod='$single_module'
7539 fi
7540 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7541 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7542 else
7543 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7544 fi
7545 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7546 _lt_dsymutil='~$DSYMUTIL $lib || :'
7547 else
7548 _lt_dsymutil=
7549 fi
7550 ;;
7551 esac
7552
7553ac_ext=c
7554ac_cpp='$CPP $CPPFLAGS'
7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7559$as_echo_n "checking how to run the C preprocessor... " >&6; }
7560# On Suns, sometimes $CPP names a directory.
7561if test -n "$CPP" && test -d "$CPP"; then
7562 CPP=
7563fi
7564if test -z "$CPP"; then
7565 if ${ac_cv_prog_CPP+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567else
7568 # Double quotes because CPP needs to be expanded
7569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7570 do
7571 ac_preproc_ok=false
7572for ac_c_preproc_warn_flag in '' yes
7573do
7574 # Use a header file that comes with gcc, so configuring glibc
7575 # with a fresh cross-compiler works.
7576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7577 # <limits.h> exists even on freestanding compilers.
7578 # On the NeXT, cc -E runs the code through the compiler's parser,
7579 # not just through cpp. "Syntax error" is here to catch this case.
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h. */
7582#ifdef __STDC__
7583# include <limits.h>
7584#else
7585# include <assert.h>
7586#endif
7587 Syntax error
7588_ACEOF
7589if ac_fn_c_try_cpp "$LINENO"; then :
7590
7591else
7592 # Broken: fails on valid input.
7593continue
7594fi
7595rm -f conftest.err conftest.i conftest.$ac_ext
7596
7597 # OK, works on sane cases. Now check whether nonexistent headers
7598 # can be detected and how.
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h. */
7601#include <ac_nonexistent.h>
7602_ACEOF
7603if ac_fn_c_try_cpp "$LINENO"; then :
7604 # Broken: success on invalid input.
7605continue
7606else
7607 # Passes both tests.
7608ac_preproc_ok=:
7609break
7610fi
7611rm -f conftest.err conftest.i conftest.$ac_ext
7612
7613done
7614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7615rm -f conftest.i conftest.err conftest.$ac_ext
7616if $ac_preproc_ok; then :
7617 break
7618fi
7619
7620 done
7621 ac_cv_prog_CPP=$CPP
7622
7623fi
7624 CPP=$ac_cv_prog_CPP
7625else
7626 ac_cv_prog_CPP=$CPP
7627fi
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7629$as_echo "$CPP" >&6; }
7630ac_preproc_ok=false
7631for ac_c_preproc_warn_flag in '' yes
7632do
7633 # Use a header file that comes with gcc, so configuring glibc
7634 # with a fresh cross-compiler works.
7635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636 # <limits.h> exists even on freestanding compilers.
7637 # On the NeXT, cc -E runs the code through the compiler's parser,
7638 # not just through cpp. "Syntax error" is here to catch this case.
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h. */
7641#ifdef __STDC__
7642# include <limits.h>
7643#else
7644# include <assert.h>
7645#endif
7646 Syntax error
7647_ACEOF
7648if ac_fn_c_try_cpp "$LINENO"; then :
7649
7650else
7651 # Broken: fails on valid input.
7652continue
7653fi
7654rm -f conftest.err conftest.i conftest.$ac_ext
7655
7656 # OK, works on sane cases. Now check whether nonexistent headers
7657 # can be detected and how.
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h. */
7660#include <ac_nonexistent.h>
7661_ACEOF
7662if ac_fn_c_try_cpp "$LINENO"; then :
7663 # Broken: success on invalid input.
7664continue
7665else
7666 # Passes both tests.
7667ac_preproc_ok=:
7668break
7669fi
7670rm -f conftest.err conftest.i conftest.$ac_ext
7671
7672done
7673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7674rm -f conftest.i conftest.err conftest.$ac_ext
7675if $ac_preproc_ok; then :
7676
7677else
7678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7680as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7681See \`config.log' for more details" "$LINENO" 5; }
7682fi
7683
7684ac_ext=c
7685ac_cpp='$CPP $CPPFLAGS'
7686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688ac_compiler_gnu=$ac_cv_c_compiler_gnu
7689
7690
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7692$as_echo_n "checking for ANSI C header files... " >&6; }
7693if ${ac_cv_header_stdc+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695else
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h. */
7698#include <stdlib.h>
7699#include <stdarg.h>
7700#include <string.h>
7701#include <float.h>
7702
7703int
7704main ()
7705{
7706
7707 ;
7708 return 0;
7709}
7710_ACEOF
7711if ac_fn_c_try_compile "$LINENO"; then :
7712 ac_cv_header_stdc=yes
7713else
7714 ac_cv_header_stdc=no
7715fi
7716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717
7718if test $ac_cv_header_stdc = yes; then
7719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h. */
7722#include <string.h>
7723
7724_ACEOF
7725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7726 $EGREP "memchr" >/dev/null 2>&1; then :
7727
7728else
7729 ac_cv_header_stdc=no
7730fi
7731rm -f conftest*
7732
7733fi
7734
7735if test $ac_cv_header_stdc = yes; then
7736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h. */
7739#include <stdlib.h>
7740
7741_ACEOF
7742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7743 $EGREP "free" >/dev/null 2>&1; then :
7744
7745else
7746 ac_cv_header_stdc=no
7747fi
7748rm -f conftest*
7749
7750fi
7751
7752if test $ac_cv_header_stdc = yes; then
7753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7754 if test "$cross_compiling" = yes; then :
7755 :
7756else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h. */
7759#include <ctype.h>
7760#include <stdlib.h>
7761#if ((' ' & 0x0FF) == 0x020)
7762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7764#else
7765# define ISLOWER(c) \
7766 (('a' <= (c) && (c) <= 'i') \
7767 || ('j' <= (c) && (c) <= 'r') \
7768 || ('s' <= (c) && (c) <= 'z'))
7769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7770#endif
7771
7772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7773int
7774main ()
7775{
7776 int i;
7777 for (i = 0; i < 256; i++)
7778 if (XOR (islower (i), ISLOWER (i))
7779 || toupper (i) != TOUPPER (i))
7780 return 2;
7781 return 0;
7782}
7783_ACEOF
7784if ac_fn_c_try_run "$LINENO"; then :
7785
7786else
7787 ac_cv_header_stdc=no
7788fi
7789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7790 conftest.$ac_objext conftest.beam conftest.$ac_ext
7791fi
7792
7793fi
7794fi
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7796$as_echo "$ac_cv_header_stdc" >&6; }
7797if test $ac_cv_header_stdc = yes; then
7798
7799$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7800
7801fi
7802
7803# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7804for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7805 inttypes.h stdint.h unistd.h
7806do :
7807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7809"
7810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7811 cat >>confdefs.h <<_ACEOF
7812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7813_ACEOF
7814
7815fi
7816
7817done
7818
7819
7820for ac_header in dlfcn.h
7821do :
7822 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7823"
7824if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7825 cat >>confdefs.h <<_ACEOF
7826#define HAVE_DLFCN_H 1
7827_ACEOF
7828
7829fi
7830
7831done
7832
7833
7834
7835func_stripname_cnf ()
7836{
7837 case ${2} in
7838 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7839 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7840 esac
7841} # func_stripname_cnf
7842
7843
7844
7845
7846
7847# Set options
7848
7849
7850
7851 enable_dlopen=no
7852
7853
7854 enable_win32_dll=no
7855
7856
7857 # Check whether --enable-shared was given.
7858if test "${enable_shared+set}" = set; then :
7859 enableval=$enable_shared; p=${PACKAGE-default}
7860 case $enableval in
7861 yes) enable_shared=yes ;;
7862 no) enable_shared=no ;;
7863 *)
7864 enable_shared=no
7865 # Look at the argument we got. We use all the common list separators.
7866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7867 for pkg in $enableval; do
7868 IFS="$lt_save_ifs"
7869 if test "X$pkg" = "X$p"; then
7870 enable_shared=yes
7871 fi
7872 done
7873 IFS="$lt_save_ifs"
7874 ;;
7875 esac
7876else
7877 enable_shared=yes
7878fi
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888 # Check whether --enable-static was given.
7889if test "${enable_static+set}" = set; then :
7890 enableval=$enable_static; p=${PACKAGE-default}
7891 case $enableval in
7892 yes) enable_static=yes ;;
7893 no) enable_static=no ;;
7894 *)
7895 enable_static=no
7896 # Look at the argument we got. We use all the common list separators.
7897 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7898 for pkg in $enableval; do
7899 IFS="$lt_save_ifs"
7900 if test "X$pkg" = "X$p"; then
7901 enable_static=yes
7902 fi
7903 done
7904 IFS="$lt_save_ifs"
7905 ;;
7906 esac
7907else
7908 enable_static=yes
7909fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920# Check whether --with-pic was given.
7921if test "${with_pic+set}" = set; then :
7922 withval=$with_pic; lt_p=${PACKAGE-default}
7923 case $withval in
7924 yes|no) pic_mode=$withval ;;
7925 *)
7926 pic_mode=default
7927 # Look at the argument we got. We use all the common list separators.
7928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7929 for lt_pkg in $withval; do
7930 IFS="$lt_save_ifs"
7931 if test "X$lt_pkg" = "X$lt_p"; then
7932 pic_mode=yes
7933 fi
7934 done
7935 IFS="$lt_save_ifs"
7936 ;;
7937 esac
7938else
7939 pic_mode=default
7940fi
7941
7942
7943test -z "$pic_mode" && pic_mode=default
7944
7945
7946
7947
7948
7949
7950
7951 # Check whether --enable-fast-install was given.
7952if test "${enable_fast_install+set}" = set; then :
7953 enableval=$enable_fast_install; p=${PACKAGE-default}
7954 case $enableval in
7955 yes) enable_fast_install=yes ;;
7956 no) enable_fast_install=no ;;
7957 *)
7958 enable_fast_install=no
7959 # Look at the argument we got. We use all the common list separators.
7960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7961 for pkg in $enableval; do
7962 IFS="$lt_save_ifs"
7963 if test "X$pkg" = "X$p"; then
7964 enable_fast_install=yes
7965 fi
7966 done
7967 IFS="$lt_save_ifs"
7968 ;;
7969 esac
7970else
7971 enable_fast_install=yes
7972fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984# This can be used to rebuild libtool when needed
7985LIBTOOL_DEPS="$ltmain"
7986
7987# Always use our own libtool.
7988LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019test -z "$LN_S" && LN_S="ln -s"
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034if test -n "${ZSH_VERSION+set}" ; then
8035 setopt NO_GLOB_SUBST
8036fi
8037
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8039$as_echo_n "checking for objdir... " >&6; }
8040if ${lt_cv_objdir+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042else
8043 rm -f .libs 2>/dev/null
8044mkdir .libs 2>/dev/null
8045if test -d .libs; then
8046 lt_cv_objdir=.libs
8047else
8048 # MS-DOS does not allow filenames that begin with a dot.
8049 lt_cv_objdir=_libs
8050fi
8051rmdir .libs 2>/dev/null
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8054$as_echo "$lt_cv_objdir" >&6; }
8055objdir=$lt_cv_objdir
8056
8057
8058
8059
8060
8061cat >>confdefs.h <<_ACEOF
8062#define LT_OBJDIR "$lt_cv_objdir/"
8063_ACEOF
8064
8065
8066
8067
8068case $host_os in
8069aix3*)
8070 # AIX sometimes has problems with the GCC collect2 program. For some
8071 # reason, if we set the COLLECT_NAMES environment variable, the problems
8072 # vanish in a puff of smoke.
8073 if test "X${COLLECT_NAMES+set}" != Xset; then
8074 COLLECT_NAMES=
8075 export COLLECT_NAMES
8076 fi
8077 ;;
8078esac
8079
8080# Global variables:
8081ofile=libtool
8082can_build_shared=yes
8083
8084# All known linkers require a `.a' archive for static linking (except MSVC,
8085# which needs '.lib').
8086libext=a
8087
8088with_gnu_ld="$lt_cv_prog_gnu_ld"
8089
8090old_CC="$CC"
8091old_CFLAGS="$CFLAGS"
8092
8093# Set sane defaults for various variables
8094test -z "$CC" && CC=cc
8095test -z "$LTCC" && LTCC=$CC
8096test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8097test -z "$LD" && LD=ld
8098test -z "$ac_objext" && ac_objext=o
8099
8100for cc_temp in $compiler""; do
8101 case $cc_temp in
8102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8104 \-*) ;;
8105 *) break;;
8106 esac
8107done
8108cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8109
8110
8111# Only perform the check for file, if the check method requires it
8112test -z "$MAGIC_CMD" && MAGIC_CMD=file
8113case $deplibs_check_method in
8114file_magic*)
8115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8117$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8118if ${lt_cv_path_MAGIC_CMD+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120else
8121 case $MAGIC_CMD in
8122[\\/*] | ?:[\\/]*)
8123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8124 ;;
8125*)
8126 lt_save_MAGIC_CMD="$MAGIC_CMD"
8127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129 for ac_dir in $ac_dummy; do
8130 IFS="$lt_save_ifs"
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/${ac_tool_prefix}file; then
8133 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8134 if test -n "$file_magic_test_file"; then
8135 case $deplibs_check_method in
8136 "file_magic "*)
8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140 $EGREP "$file_magic_regex" > /dev/null; then
8141 :
8142 else
8143 cat <<_LT_EOF 1>&2
8144
8145*** Warning: the command libtool uses to detect shared libraries,
8146*** $file_magic_cmd, produces output that libtool cannot recognize.
8147*** The result is that libtool may fail to recognize shared libraries
8148*** as such. This will affect the creation of libtool libraries that
8149*** depend on shared libraries, but programs linked with such libtool
8150*** libraries will work regardless of this problem. Nevertheless, you
8151*** may want to report the problem to your system manager and/or to
8152*** bug-libtool@gnu.org
8153
8154_LT_EOF
8155 fi ;;
8156 esac
8157 fi
8158 break
8159 fi
8160 done
8161 IFS="$lt_save_ifs"
8162 MAGIC_CMD="$lt_save_MAGIC_CMD"
8163 ;;
8164esac
8165fi
8166
8167MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168if test -n "$MAGIC_CMD"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8170$as_echo "$MAGIC_CMD" >&6; }
8171else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
8174fi
8175
8176
8177
8178
8179
8180if test -z "$lt_cv_path_MAGIC_CMD"; then
8181 if test -n "$ac_tool_prefix"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8183$as_echo_n "checking for file... " >&6; }
8184if ${lt_cv_path_MAGIC_CMD+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186else
8187 case $MAGIC_CMD in
8188[\\/*] | ?:[\\/]*)
8189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8190 ;;
8191*)
8192 lt_save_MAGIC_CMD="$MAGIC_CMD"
8193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8195 for ac_dir in $ac_dummy; do
8196 IFS="$lt_save_ifs"
8197 test -z "$ac_dir" && ac_dir=.
8198 if test -f $ac_dir/file; then
8199 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8200 if test -n "$file_magic_test_file"; then
8201 case $deplibs_check_method in
8202 "file_magic "*)
8203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8206 $EGREP "$file_magic_regex" > /dev/null; then
8207 :
8208 else
8209 cat <<_LT_EOF 1>&2
8210
8211*** Warning: the command libtool uses to detect shared libraries,
8212*** $file_magic_cmd, produces output that libtool cannot recognize.
8213*** The result is that libtool may fail to recognize shared libraries
8214*** as such. This will affect the creation of libtool libraries that
8215*** depend on shared libraries, but programs linked with such libtool
8216*** libraries will work regardless of this problem. Nevertheless, you
8217*** may want to report the problem to your system manager and/or to
8218*** bug-libtool@gnu.org
8219
8220_LT_EOF
8221 fi ;;
8222 esac
8223 fi
8224 break
8225 fi
8226 done
8227 IFS="$lt_save_ifs"
8228 MAGIC_CMD="$lt_save_MAGIC_CMD"
8229 ;;
8230esac
8231fi
8232
8233MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8234if test -n "$MAGIC_CMD"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8236$as_echo "$MAGIC_CMD" >&6; }
8237else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242
8243 else
8244 MAGIC_CMD=:
8245 fi
8246fi
8247
8248 fi
8249 ;;
8250esac
8251
8252# Use C for the default configuration in the libtool script
8253
8254lt_save_CC="$CC"
8255ac_ext=c
8256ac_cpp='$CPP $CPPFLAGS'
8257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261
8262# Source file extension for C test sources.
8263ac_ext=c
8264
8265# Object file extension for compiled C test sources.
8266objext=o
8267objext=$objext
8268
8269# Code to be used in simple compile tests
8270lt_simple_compile_test_code="int some_variable = 0;"
8271
8272# Code to be used in simple link tests
8273lt_simple_link_test_code='int main(){return(0);}'
8274
8275
8276
8277
8278
8279
8280
8281# If no C compiler was specified, use CC.
8282LTCC=${LTCC-"$CC"}
8283
8284# If no C compiler flags were specified, use CFLAGS.
8285LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8286
8287# Allow CC to be a program name with arguments.
8288compiler=$CC
8289
8290# Save the default compiler, since it gets overwritten when the other
8291# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8292compiler_DEFAULT=$CC
8293
8294# save warnings/boilerplate of simple test code
8295ac_outfile=conftest.$ac_objext
8296echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8297eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298_lt_compiler_boilerplate=`cat conftest.err`
8299$RM conftest*
8300
8301ac_outfile=conftest.$ac_objext
8302echo "$lt_simple_link_test_code" >conftest.$ac_ext
8303eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8304_lt_linker_boilerplate=`cat conftest.err`
8305$RM -r conftest*
8306
8307
8308if test -n "$compiler"; then
8309
8310lt_prog_compiler_no_builtin_flag=
8311
8312if test "$GCC" = yes; then
8313 case $cc_basename in
8314 nvcc*)
8315 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8316 *)
8317 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8318 esac
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8321$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8322if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324else
8325 lt_cv_prog_compiler_rtti_exceptions=no
8326 ac_outfile=conftest.$ac_objext
8327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328 lt_compiler_flag="-fno-rtti -fno-exceptions"
8329 # Insert the option either (1) after the last *FLAGS variable, or
8330 # (2) before a word containing "conftest.", or (3) at the end.
8331 # Note that $ac_compile itself does not contain backslashes and begins
8332 # with a dollar sign (not a hyphen), so the echo should work correctly.
8333 # The option is referenced via a variable to avoid confusing sed.
8334 lt_compile=`echo "$ac_compile" | $SED \
8335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337 -e 's:$: $lt_compiler_flag:'`
8338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8339 (eval "$lt_compile" 2>conftest.err)
8340 ac_status=$?
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 if (exit $ac_status) && test -s "$ac_outfile"; then
8344 # The compiler can only warn and ignore the option if not recognized
8345 # So say no if there are warnings other than the usual output.
8346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8349 lt_cv_prog_compiler_rtti_exceptions=yes
8350 fi
8351 fi
8352 $RM conftest*
8353
8354fi
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8356$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8357
8358if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8359 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8360else
8361 :
8362fi
8363
8364fi
8365
8366
8367
8368
8369
8370
8371 lt_prog_compiler_wl=
8372lt_prog_compiler_pic=
8373lt_prog_compiler_static=
8374
8375
8376 if test "$GCC" = yes; then
8377 lt_prog_compiler_wl='-Wl,'
8378 lt_prog_compiler_static='-static'
8379
8380 case $host_os in
8381 aix*)
8382 # All AIX code is PIC.
8383 if test "$host_cpu" = ia64; then
8384 # AIX 5 now supports IA64 processor
8385 lt_prog_compiler_static='-Bstatic'
8386 fi
8387 ;;
8388
8389 amigaos*)
8390 case $host_cpu in
8391 powerpc)
8392 # see comment about AmigaOS4 .so support
8393 lt_prog_compiler_pic='-fPIC'
8394 ;;
8395 m68k)
8396 # FIXME: we need at least 68020 code to build shared libraries, but
8397 # adding the `-m68020' flag to GCC prevents building anything better,
8398 # like `-m68040'.
8399 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8400 ;;
8401 esac
8402 ;;
8403
8404 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8405 # PIC is the default for these OSes.
8406 ;;
8407
8408 mingw* | cygwin* | pw32* | os2* | cegcc*)
8409 # This hack is so that the source file can tell whether it is being
8410 # built for inclusion in a dll (and should export symbols for example).
8411 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8412 # (--disable-auto-import) libraries
8413 lt_prog_compiler_pic='-DDLL_EXPORT'
8414 ;;
8415
8416 darwin* | rhapsody*)
8417 # PIC is the default on this platform
8418 # Common symbols not allowed in MH_DYLIB files
8419 lt_prog_compiler_pic='-fno-common'
8420 ;;
8421
8422 haiku*)
8423 # PIC is the default for Haiku.
8424 # The "-static" flag exists, but is broken.
8425 lt_prog_compiler_static=
8426 ;;
8427
8428 hpux*)
8429 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8430 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8431 # sets the default TLS model and affects inlining.
8432 case $host_cpu in
8433 hppa*64*)
8434 # +Z the default
8435 ;;
8436 *)
8437 lt_prog_compiler_pic='-fPIC'
8438 ;;
8439 esac
8440 ;;
8441
8442 interix[3-9]*)
8443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8444 # Instead, we relocate shared libraries at runtime.
8445 ;;
8446
8447 msdosdjgpp*)
8448 # Just because we use GCC doesn't mean we suddenly get shared libraries
8449 # on systems that don't support them.
8450 lt_prog_compiler_can_build_shared=no
8451 enable_shared=no
8452 ;;
8453
8454 *nto* | *qnx*)
8455 # QNX uses GNU C++, but need to define -shared option too, otherwise
8456 # it will coredump.
8457 lt_prog_compiler_pic='-fPIC -shared'
8458 ;;
8459
8460 sysv4*MP*)
8461 if test -d /usr/nec; then
8462 lt_prog_compiler_pic=-Kconform_pic
8463 fi
8464 ;;
8465
8466 *)
8467 lt_prog_compiler_pic='-fPIC'
8468 ;;
8469 esac
8470
8471 case $cc_basename in
8472 nvcc*) # Cuda Compiler Driver 2.2
8473 lt_prog_compiler_wl='-Xlinker '
8474 if test -n "$lt_prog_compiler_pic"; then
8475 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8476 fi
8477 ;;
8478 esac
8479 else
8480 # PORTME Check for flag to pass linker flags through the system compiler.
8481 case $host_os in
8482 aix*)
8483 lt_prog_compiler_wl='-Wl,'
8484 if test "$host_cpu" = ia64; then
8485 # AIX 5 now supports IA64 processor
8486 lt_prog_compiler_static='-Bstatic'
8487 else
8488 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8489 fi
8490 ;;
8491
8492 mingw* | cygwin* | pw32* | os2* | cegcc*)
8493 # This hack is so that the source file can tell whether it is being
8494 # built for inclusion in a dll (and should export symbols for example).
8495 lt_prog_compiler_pic='-DDLL_EXPORT'
8496 ;;
8497
8498 hpux9* | hpux10* | hpux11*)
8499 lt_prog_compiler_wl='-Wl,'
8500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8501 # not for PA HP-UX.
8502 case $host_cpu in
8503 hppa*64*|ia64*)
8504 # +Z the default
8505 ;;
8506 *)
8507 lt_prog_compiler_pic='+Z'
8508 ;;
8509 esac
8510 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8511 lt_prog_compiler_static='${wl}-a ${wl}archive'
8512 ;;
8513
8514 irix5* | irix6* | nonstopux*)
8515 lt_prog_compiler_wl='-Wl,'
8516 # PIC (with -KPIC) is the default.
8517 lt_prog_compiler_static='-non_shared'
8518 ;;
8519
8520 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8521 case $cc_basename in
8522 # old Intel for x86_64 which still supported -KPIC.
8523 ecc*)
8524 lt_prog_compiler_wl='-Wl,'
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-static'
8527 ;;
8528 # icc used to be incompatible with GCC.
8529 # ICC 10 doesn't accept -KPIC any more.
8530 icc* | ifort*)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-fPIC'
8533 lt_prog_compiler_static='-static'
8534 ;;
8535 # Lahey Fortran 8.1.
8536 lf95*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='--shared'
8539 lt_prog_compiler_static='--static'
8540 ;;
8541 nagfor*)
8542 # NAG Fortran compiler
8543 lt_prog_compiler_wl='-Wl,-Wl,,'
8544 lt_prog_compiler_pic='-PIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 ;;
8547 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8548 # Portland Group compilers (*not* the Pentium gcc compiler,
8549 # which looks to be a dead project)
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_pic='-fpic'
8552 lt_prog_compiler_static='-Bstatic'
8553 ;;
8554 ccc*)
8555 lt_prog_compiler_wl='-Wl,'
8556 # All Alpha code is PIC.
8557 lt_prog_compiler_static='-non_shared'
8558 ;;
8559 xl* | bgxl* | bgf* | mpixl*)
8560 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8561 lt_prog_compiler_wl='-Wl,'
8562 lt_prog_compiler_pic='-qpic'
8563 lt_prog_compiler_static='-qstaticlink'
8564 ;;
8565 *)
8566 case `$CC -V 2>&1 | sed 5q` in
8567 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8568 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8569 lt_prog_compiler_pic='-KPIC'
8570 lt_prog_compiler_static='-Bstatic'
8571 lt_prog_compiler_wl=''
8572 ;;
8573 *Sun\ F* | *Sun*Fortran*)
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-Bstatic'
8576 lt_prog_compiler_wl='-Qoption ld '
8577 ;;
8578 *Sun\ C*)
8579 # Sun C 5.9
8580 lt_prog_compiler_pic='-KPIC'
8581 lt_prog_compiler_static='-Bstatic'
8582 lt_prog_compiler_wl='-Wl,'
8583 ;;
8584 *Intel*\ [CF]*Compiler*)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-fPIC'
8587 lt_prog_compiler_static='-static'
8588 ;;
8589 *Portland\ Group*)
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-fpic'
8592 lt_prog_compiler_static='-Bstatic'
8593 ;;
8594 esac
8595 ;;
8596 esac
8597 ;;
8598
8599 newsos6)
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603
8604 *nto* | *qnx*)
8605 # QNX uses GNU C++, but need to define -shared option too, otherwise
8606 # it will coredump.
8607 lt_prog_compiler_pic='-fPIC -shared'
8608 ;;
8609
8610 osf3* | osf4* | osf5*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All OSF/1 code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8614 ;;
8615
8616 rdos*)
8617 lt_prog_compiler_static='-non_shared'
8618 ;;
8619
8620 solaris*)
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 case $cc_basename in
8624 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8625 lt_prog_compiler_wl='-Qoption ld ';;
8626 *)
8627 lt_prog_compiler_wl='-Wl,';;
8628 esac
8629 ;;
8630
8631 sunos4*)
8632 lt_prog_compiler_wl='-Qoption ld '
8633 lt_prog_compiler_pic='-PIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 ;;
8636
8637 sysv4 | sysv4.2uw2* | sysv4.3*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 sysv4*MP*)
8644 if test -d /usr/nec ;then
8645 lt_prog_compiler_pic='-Kconform_pic'
8646 lt_prog_compiler_static='-Bstatic'
8647 fi
8648 ;;
8649
8650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-KPIC'
8653 lt_prog_compiler_static='-Bstatic'
8654 ;;
8655
8656 unicos*)
8657 lt_prog_compiler_wl='-Wl,'
8658 lt_prog_compiler_can_build_shared=no
8659 ;;
8660
8661 uts4*)
8662 lt_prog_compiler_pic='-pic'
8663 lt_prog_compiler_static='-Bstatic'
8664 ;;
8665
8666 *)
8667 lt_prog_compiler_can_build_shared=no
8668 ;;
8669 esac
8670 fi
8671
8672case $host_os in
8673 # For platforms which do not support PIC, -DPIC is meaningless:
8674 *djgpp*)
8675 lt_prog_compiler_pic=
8676 ;;
8677 *)
8678 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8679 ;;
8680esac
8681
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8683$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8684if ${lt_cv_prog_compiler_pic+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686else
8687 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8688fi
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8690$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8691lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8692
8693#
8694# Check to make sure the PIC flag actually works.
8695#
8696if test -n "$lt_prog_compiler_pic"; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8698$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8699if ${lt_cv_prog_compiler_pic_works+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701else
8702 lt_cv_prog_compiler_pic_works=no
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8706 # Insert the option either (1) after the last *FLAGS variable, or
8707 # (2) before a word containing "conftest.", or (3) at the end.
8708 # Note that $ac_compile itself does not contain backslashes and begins
8709 # with a dollar sign (not a hyphen), so the echo should work correctly.
8710 # The option is referenced via a variable to avoid confusing sed.
8711 lt_compile=`echo "$ac_compile" | $SED \
8712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8714 -e 's:$: $lt_compiler_flag:'`
8715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8716 (eval "$lt_compile" 2>conftest.err)
8717 ac_status=$?
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 if (exit $ac_status) && test -s "$ac_outfile"; then
8721 # The compiler can only warn and ignore the option if not recognized
8722 # So say no if there are warnings other than the usual output.
8723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8726 lt_cv_prog_compiler_pic_works=yes
8727 fi
8728 fi
8729 $RM conftest*
8730
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8733$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8734
8735if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8736 case $lt_prog_compiler_pic in
8737 "" | " "*) ;;
8738 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8739 esac
8740else
8741 lt_prog_compiler_pic=
8742 lt_prog_compiler_can_build_shared=no
8743fi
8744
8745fi
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757#
8758# Check to make sure the static flag actually works.
8759#
8760wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8762$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8763if ${lt_cv_prog_compiler_static_works+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765else
8766 lt_cv_prog_compiler_static_works=no
8767 save_LDFLAGS="$LDFLAGS"
8768 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8769 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8770 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8771 # The linker can only warn and ignore the option if not recognized
8772 # So say no if there are warnings
8773 if test -s conftest.err; then
8774 # Append any errors to the config.log.
8775 cat conftest.err 1>&5
8776 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8778 if diff conftest.exp conftest.er2 >/dev/null; then
8779 lt_cv_prog_compiler_static_works=yes
8780 fi
8781 else
8782 lt_cv_prog_compiler_static_works=yes
8783 fi
8784 fi
8785 $RM -r conftest*
8786 LDFLAGS="$save_LDFLAGS"
8787
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8790$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8791
8792if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8793 :
8794else
8795 lt_prog_compiler_static=
8796fi
8797
8798
8799
8800
8801
8802
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8805$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8806if ${lt_cv_prog_compiler_c_o+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808else
8809 lt_cv_prog_compiler_c_o=no
8810 $RM -r conftest 2>/dev/null
8811 mkdir conftest
8812 cd conftest
8813 mkdir out
8814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815
8816 lt_compiler_flag="-o out/conftest2.$ac_objext"
8817 # Insert the option either (1) after the last *FLAGS variable, or
8818 # (2) before a word containing "conftest.", or (3) at the end.
8819 # Note that $ac_compile itself does not contain backslashes and begins
8820 # with a dollar sign (not a hyphen), so the echo should work correctly.
8821 lt_compile=`echo "$ac_compile" | $SED \
8822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824 -e 's:$: $lt_compiler_flag:'`
8825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826 (eval "$lt_compile" 2>out/conftest.err)
8827 ac_status=$?
8828 cat out/conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8831 then
8832 # The compiler can only warn and ignore the option if not recognized
8833 # So say no if there are warnings
8834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8837 lt_cv_prog_compiler_c_o=yes
8838 fi
8839 fi
8840 chmod u+w . 2>&5
8841 $RM conftest*
8842 # SGI C++ compiler will create directory out/ii_files/ for
8843 # template instantiation
8844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8845 $RM out/* && rmdir out
8846 cd ..
8847 $RM -r conftest
8848 $RM conftest*
8849
8850fi
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8852$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8853
8854
8855
8856
8857
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8860$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8861if ${lt_cv_prog_compiler_c_o+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863else
8864 lt_cv_prog_compiler_c_o=no
8865 $RM -r conftest 2>/dev/null
8866 mkdir conftest
8867 cd conftest
8868 mkdir out
8869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8870
8871 lt_compiler_flag="-o out/conftest2.$ac_objext"
8872 # Insert the option either (1) after the last *FLAGS variable, or
8873 # (2) before a word containing "conftest.", or (3) at the end.
8874 # Note that $ac_compile itself does not contain backslashes and begins
8875 # with a dollar sign (not a hyphen), so the echo should work correctly.
8876 lt_compile=`echo "$ac_compile" | $SED \
8877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8879 -e 's:$: $lt_compiler_flag:'`
8880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8881 (eval "$lt_compile" 2>out/conftest.err)
8882 ac_status=$?
8883 cat out/conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8886 then
8887 # The compiler can only warn and ignore the option if not recognized
8888 # So say no if there are warnings
8889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8892 lt_cv_prog_compiler_c_o=yes
8893 fi
8894 fi
8895 chmod u+w . 2>&5
8896 $RM conftest*
8897 # SGI C++ compiler will create directory out/ii_files/ for
8898 # template instantiation
8899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8900 $RM out/* && rmdir out
8901 cd ..
8902 $RM -r conftest
8903 $RM conftest*
8904
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8907$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8908
8909
8910
8911
8912hard_links="nottested"
8913if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8914 # do not overwrite the value of need_locks provided by the user
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8916$as_echo_n "checking if we can lock with hard links... " >&6; }
8917 hard_links=yes
8918 $RM conftest*
8919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8920 touch conftest.a
8921 ln conftest.a conftest.b 2>&5 || hard_links=no
8922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8924$as_echo "$hard_links" >&6; }
8925 if test "$hard_links" = no; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8927$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8928 need_locks=warn
8929 fi
8930else
8931 need_locks=no
8932fi
8933
8934
8935
8936
8937
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8940$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8941
8942 runpath_var=
8943 allow_undefined_flag=
8944 always_export_symbols=no
8945 archive_cmds=
8946 archive_expsym_cmds=
8947 compiler_needs_object=no
8948 enable_shared_with_static_runtimes=no
8949 export_dynamic_flag_spec=
8950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8951 hardcode_automatic=no
8952 hardcode_direct=no
8953 hardcode_direct_absolute=no
8954 hardcode_libdir_flag_spec=
8955 hardcode_libdir_separator=
8956 hardcode_minus_L=no
8957 hardcode_shlibpath_var=unsupported
8958 inherit_rpath=no
8959 link_all_deplibs=unknown
8960 module_cmds=
8961 module_expsym_cmds=
8962 old_archive_from_new_cmds=
8963 old_archive_from_expsyms_cmds=
8964 thread_safe_flag_spec=
8965 whole_archive_flag_spec=
8966 # include_expsyms should be a list of space-separated symbols to be *always*
8967 # included in the symbol list
8968 include_expsyms=
8969 # exclude_expsyms can be an extended regexp of symbols to exclude
8970 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8971 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8972 # as well as any symbol that contains `d'.
8973 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8974 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8975 # platforms (ab)use it in PIC code, but their linkers get confused if
8976 # the symbol is explicitly referenced. Since portable code cannot
8977 # rely on this symbol name, it's probably fine to never include it in
8978 # preloaded symbol tables.
8979 # Exclude shared library initialization/finalization symbols.
8980 extract_expsyms_cmds=
8981
8982 case $host_os in
8983 cygwin* | mingw* | pw32* | cegcc*)
8984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8985 # When not using gcc, we currently assume that we are using
8986 # Microsoft Visual C++.
8987 if test "$GCC" != yes; then
8988 with_gnu_ld=no
8989 fi
8990 ;;
8991 interix*)
8992 # we just hope/assume this is gcc and not c89 (= MSVC++)
8993 with_gnu_ld=yes
8994 ;;
8995 openbsd*)
8996 with_gnu_ld=no
8997 ;;
8998 esac
8999
9000 ld_shlibs=yes
9001
9002 # On some targets, GNU ld is compatible enough with the native linker
9003 # that we're better off using the native interface for both.
9004 lt_use_gnu_ld_interface=no
9005 if test "$with_gnu_ld" = yes; then
9006 case $host_os in
9007 aix*)
9008 # The AIX port of GNU ld has always aspired to compatibility
9009 # with the native linker. However, as the warning in the GNU ld
9010 # block says, versions before 2.19.5* couldn't really create working
9011 # shared libraries, regardless of the interface used.
9012 case `$LD -v 2>&1` in
9013 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9014 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9015 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9016 *)
9017 lt_use_gnu_ld_interface=yes
9018 ;;
9019 esac
9020 ;;
9021 *)
9022 lt_use_gnu_ld_interface=yes
9023 ;;
9024 esac
9025 fi
9026
9027 if test "$lt_use_gnu_ld_interface" = yes; then
9028 # If archive_cmds runs LD, not CC, wlarc should be empty
9029 wlarc='${wl}'
9030
9031 # Set some defaults for GNU ld with shared library support. These
9032 # are reset later if shared libraries are not supported. Putting them
9033 # here allows them to be overridden if necessary.
9034 runpath_var=LD_RUN_PATH
9035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9036 export_dynamic_flag_spec='${wl}--export-dynamic'
9037 # ancient GNU ld didn't support --whole-archive et. al.
9038 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9039 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9040 else
9041 whole_archive_flag_spec=
9042 fi
9043 supports_anon_versioning=no
9044 case `$LD -v 2>&1` in
9045 *GNU\ gold*) supports_anon_versioning=yes ;;
9046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9049 *\ 2.11.*) ;; # other 2.11 versions
9050 *) supports_anon_versioning=yes ;;
9051 esac
9052
9053 # See if GNU ld supports shared libraries.
9054 case $host_os in
9055 aix[3-9]*)
9056 # On AIX/PPC, the GNU linker is very broken
9057 if test "$host_cpu" != ia64; then
9058 ld_shlibs=no
9059 cat <<_LT_EOF 1>&2
9060
9061*** Warning: the GNU linker, at least up to release 2.19, is reported
9062*** to be unable to reliably create shared libraries on AIX.
9063*** Therefore, libtool is disabling shared libraries support. If you
9064*** really care for shared libraries, you may want to install binutils
9065*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9066*** You will then need to restart the configuration process.
9067
9068_LT_EOF
9069 fi
9070 ;;
9071
9072 amigaos*)
9073 case $host_cpu in
9074 powerpc)
9075 # see comment about AmigaOS4 .so support
9076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9077 archive_expsym_cmds=''
9078 ;;
9079 m68k)
9080 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)'
9081 hardcode_libdir_flag_spec='-L$libdir'
9082 hardcode_minus_L=yes
9083 ;;
9084 esac
9085 ;;
9086
9087 beos*)
9088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9089 allow_undefined_flag=unsupported
9090 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9091 # support --undefined. This deserves some investigation. FIXME
9092 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093 else
9094 ld_shlibs=no
9095 fi
9096 ;;
9097
9098 cygwin* | mingw* | pw32* | cegcc*)
9099 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9100 # as there is no search path for DLLs.
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 export_dynamic_flag_spec='${wl}--export-all-symbols'
9103 allow_undefined_flag=unsupported
9104 always_export_symbols=no
9105 enable_shared_with_static_runtimes=yes
9106 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'
9107 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9108
9109 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9111 # If the export-symbols file already is a .def file (1st line
9112 # is EXPORTS), use it as is; otherwise, prepend...
9113 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9114 cp $export_symbols $output_objdir/$soname.def;
9115 else
9116 echo EXPORTS > $output_objdir/$soname.def;
9117 cat $export_symbols >> $output_objdir/$soname.def;
9118 fi~
9119 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9120 else
9121 ld_shlibs=no
9122 fi
9123 ;;
9124
9125 haiku*)
9126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9127 link_all_deplibs=yes
9128 ;;
9129
9130 interix[3-9]*)
9131 hardcode_direct=no
9132 hardcode_shlibpath_var=no
9133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9134 export_dynamic_flag_spec='${wl}-E'
9135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9136 # Instead, shared libraries are loaded at an image base (0x10000000 by
9137 # default) and relocated if they conflict, which is a slow very memory
9138 # consuming and fragmenting process. To avoid this, we pick a random,
9139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9142 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'
9143 ;;
9144
9145 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9146 tmp_diet=no
9147 if test "$host_os" = linux-dietlibc; then
9148 case $cc_basename in
9149 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9150 esac
9151 fi
9152 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9153 && test "$tmp_diet" = no
9154 then
9155 tmp_addflag=' $pic_flag'
9156 tmp_sharedflag='-shared'
9157 case $cc_basename,$host_cpu in
9158 pgcc*) # Portland Group C compiler
9159 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'
9160 tmp_addflag=' $pic_flag'
9161 ;;
9162 pgf77* | pgf90* | pgf95* | pgfortran*)
9163 # Portland Group f77 and f90 compilers
9164 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'
9165 tmp_addflag=' $pic_flag -Mnomain' ;;
9166 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9167 tmp_addflag=' -i_dynamic' ;;
9168 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9169 tmp_addflag=' -i_dynamic -nofor_main' ;;
9170 ifc* | ifort*) # Intel Fortran compiler
9171 tmp_addflag=' -nofor_main' ;;
9172 lf95*) # Lahey Fortran 8.1
9173 whole_archive_flag_spec=
9174 tmp_sharedflag='--shared' ;;
9175 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9176 tmp_sharedflag='-qmkshrobj'
9177 tmp_addflag= ;;
9178 nvcc*) # Cuda Compiler Driver 2.2
9179 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'
9180 compiler_needs_object=yes
9181 ;;
9182 esac
9183 case `$CC -V 2>&1 | sed 5q` in
9184 *Sun\ C*) # Sun C 5.9
9185 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'
9186 compiler_needs_object=yes
9187 tmp_sharedflag='-G' ;;
9188 *Sun\ F*) # Sun Fortran 8.3
9189 tmp_sharedflag='-G' ;;
9190 esac
9191 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192
9193 if test "x$supports_anon_versioning" = xyes; then
9194 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9196 echo "local: *; };" >> $output_objdir/$libname.ver~
9197 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9198 fi
9199
9200 case $cc_basename in
9201 xlf* | bgf* | bgxlf* | mpixlf*)
9202 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9203 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9205 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9206 if test "x$supports_anon_versioning" = xyes; then
9207 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9209 echo "local: *; };" >> $output_objdir/$libname.ver~
9210 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9211 fi
9212 ;;
9213 esac
9214 else
9215 ld_shlibs=no
9216 fi
9217 ;;
9218
9219 netbsd*)
9220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9221 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9222 wlarc=
9223 else
9224 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9226 fi
9227 ;;
9228
9229 solaris*)
9230 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9231 ld_shlibs=no
9232 cat <<_LT_EOF 1>&2
9233
9234*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9235*** create shared libraries on Solaris systems. Therefore, libtool
9236*** is disabling shared libraries support. We urge you to upgrade GNU
9237*** binutils to release 2.9.1 or newer. Another option is to modify
9238*** your PATH or compiler configuration so that the native linker is
9239*** used, and then restart.
9240
9241_LT_EOF
9242 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9245 else
9246 ld_shlibs=no
9247 fi
9248 ;;
9249
9250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9251 case `$LD -v 2>&1` in
9252 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9253 ld_shlibs=no
9254 cat <<_LT_EOF 1>&2
9255
9256*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9257*** reliably create shared libraries on SCO systems. Therefore, libtool
9258*** is disabling shared libraries support. We urge you to upgrade GNU
9259*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9260*** your PATH or compiler configuration so that the native linker is
9261*** used, and then restart.
9262
9263_LT_EOF
9264 ;;
9265 *)
9266 # For security reasons, it is highly recommended that you always
9267 # use absolute paths for naming shared libraries, and exclude the
9268 # DT_RUNPATH tag from executables and libraries. But doing so
9269 # requires that you compile everything twice, which is a pain.
9270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274 else
9275 ld_shlibs=no
9276 fi
9277 ;;
9278 esac
9279 ;;
9280
9281 sunos4*)
9282 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283 wlarc=
9284 hardcode_direct=yes
9285 hardcode_shlibpath_var=no
9286 ;;
9287
9288 *)
9289 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292 else
9293 ld_shlibs=no
9294 fi
9295 ;;
9296 esac
9297
9298 if test "$ld_shlibs" = no; then
9299 runpath_var=
9300 hardcode_libdir_flag_spec=
9301 export_dynamic_flag_spec=
9302 whole_archive_flag_spec=
9303 fi
9304 else
9305 # PORTME fill in a description of your system's linker (not GNU ld)
9306 case $host_os in
9307 aix3*)
9308 allow_undefined_flag=unsupported
9309 always_export_symbols=yes
9310 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'
9311 # Note: this linker hardcodes the directories in LIBPATH if there
9312 # are no directories specified by -L.
9313 hardcode_minus_L=yes
9314 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9315 # Neither direct hardcoding nor static linking is supported with a
9316 # broken collect2.
9317 hardcode_direct=unsupported
9318 fi
9319 ;;
9320
9321 aix[4-9]*)
9322 if test "$host_cpu" = ia64; then
9323 # On IA64, the linker does run time linking by default, so we don't
9324 # have to do anything special.
9325 aix_use_runtimelinking=no
9326 exp_sym_flag='-Bexport'
9327 no_entry_flag=""
9328 else
9329 # If we're using GNU nm, then we don't want the "-C" option.
9330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9331 # Also, AIX nm treats weak defined symbols like other global
9332 # defined symbols, whereas GNU nm marks them as "W".
9333 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9334 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'
9335 else
9336 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'
9337 fi
9338 aix_use_runtimelinking=no
9339
9340 # Test if we are trying to use run time linking or normal
9341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9342 # need to do runtime linking.
9343 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9344 for ld_flag in $LDFLAGS; do
9345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9346 aix_use_runtimelinking=yes
9347 break
9348 fi
9349 done
9350 ;;
9351 esac
9352
9353 exp_sym_flag='-bexport'
9354 no_entry_flag='-bnoentry'
9355 fi
9356
9357 # When large executables or shared objects are built, AIX ld can
9358 # have problems creating the table of contents. If linking a library
9359 # or program results in "error TOC overflow" add -mminimal-toc to
9360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9362
9363 archive_cmds=''
9364 hardcode_direct=yes
9365 hardcode_direct_absolute=yes
9366 hardcode_libdir_separator=':'
9367 link_all_deplibs=yes
9368 file_list_spec='${wl}-f,'
9369
9370 if test "$GCC" = yes; then
9371 case $host_os in aix4.[012]|aix4.[012].*)
9372 # We only want to do this on AIX 4.2 and lower, the check
9373 # below for broken collect2 doesn't work under 4.3+
9374 collect2name=`${CC} -print-prog-name=collect2`
9375 if test -f "$collect2name" &&
9376 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9377 then
9378 # We have reworked collect2
9379 :
9380 else
9381 # We have old collect2
9382 hardcode_direct=unsupported
9383 # It fails to find uninstalled libraries when the uninstalled
9384 # path is not listed in the libpath. Setting hardcode_minus_L
9385 # to unsupported forces relinking
9386 hardcode_minus_L=yes
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_libdir_separator=
9389 fi
9390 ;;
9391 esac
9392 shared_flag='-shared'
9393 if test "$aix_use_runtimelinking" = yes; then
9394 shared_flag="$shared_flag "'${wl}-G'
9395 fi
9396 else
9397 # not using gcc
9398 if test "$host_cpu" = ia64; then
9399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9400 # chokes on -Wl,-G. The following line is correct:
9401 shared_flag='-G'
9402 else
9403 if test "$aix_use_runtimelinking" = yes; then
9404 shared_flag='${wl}-G'
9405 else
9406 shared_flag='${wl}-bM:SRE'
9407 fi
9408 fi
9409 fi
9410
9411 export_dynamic_flag_spec='${wl}-bexpall'
9412 # It seems that -bexpall does not export symbols beginning with
9413 # underscore (_), so it is better to generate a list of symbols to export.
9414 always_export_symbols=yes
9415 if test "$aix_use_runtimelinking" = yes; then
9416 # Warning - without using the other runtime loading flags (-brtl),
9417 # -berok will link without error, but may produce a broken library.
9418 allow_undefined_flag='-berok'
9419 # Determine the default libpath from the value encoded in an
9420 # empty executable.
9421 if test "${lt_cv_aix_libpath+set}" = set; then
9422 aix_libpath=$lt_cv_aix_libpath
9423else
9424 if ${lt_cv_aix_libpath_+:} false; then :
9425 $as_echo_n "(cached) " >&6
9426else
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h. */
9429
9430int
9431main ()
9432{
9433
9434 ;
9435 return 0;
9436}
9437_ACEOF
9438if ac_fn_c_try_link "$LINENO"; then :
9439
9440 lt_aix_libpath_sed='
9441 /Import File Strings/,/^$/ {
9442 /^0/ {
9443 s/^0 *\([^ ]*\) *$/\1/
9444 p
9445 }
9446 }'
9447 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448 # Check for a 64-bit object if we didn't find anything.
9449 if test -z "$lt_cv_aix_libpath_"; then
9450 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9451 fi
9452fi
9453rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 if test -z "$lt_cv_aix_libpath_"; then
9456 lt_cv_aix_libpath_="/usr/lib:/lib"
9457 fi
9458
9459fi
9460
9461 aix_libpath=$lt_cv_aix_libpath_
9462fi
9463
9464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9465 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"
9466 else
9467 if test "$host_cpu" = ia64; then
9468 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9469 allow_undefined_flag="-z nodefs"
9470 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"
9471 else
9472 # Determine the default libpath from the value encoded in an
9473 # empty executable.
9474 if test "${lt_cv_aix_libpath+set}" = set; then
9475 aix_libpath=$lt_cv_aix_libpath
9476else
9477 if ${lt_cv_aix_libpath_+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482
9483int
9484main ()
9485{
9486
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491if ac_fn_c_try_link "$LINENO"; then :
9492
9493 lt_aix_libpath_sed='
9494 /Import File Strings/,/^$/ {
9495 /^0/ {
9496 s/^0 *\([^ ]*\) *$/\1/
9497 p
9498 }
9499 }'
9500 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 # Check for a 64-bit object if we didn't find anything.
9502 if test -z "$lt_cv_aix_libpath_"; then
9503 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 fi
9505fi
9506rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 if test -z "$lt_cv_aix_libpath_"; then
9509 lt_cv_aix_libpath_="/usr/lib:/lib"
9510 fi
9511
9512fi
9513
9514 aix_libpath=$lt_cv_aix_libpath_
9515fi
9516
9517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9518 # Warning - without using the other run time loading flags,
9519 # -berok will link without error, but may produce a broken library.
9520 no_undefined_flag=' ${wl}-bernotok'
9521 allow_undefined_flag=' ${wl}-berok'
9522 if test "$with_gnu_ld" = yes; then
9523 # We only use this code for GNU lds that support --whole-archive.
9524 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9525 else
9526 # Exported symbols can be pulled into shared objects from archives
9527 whole_archive_flag_spec='$convenience'
9528 fi
9529 archive_cmds_need_lc=yes
9530 # This is similar to how AIX traditionally builds its shared libraries.
9531 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'
9532 fi
9533 fi
9534 ;;
9535
9536 amigaos*)
9537 case $host_cpu in
9538 powerpc)
9539 # see comment about AmigaOS4 .so support
9540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541 archive_expsym_cmds=''
9542 ;;
9543 m68k)
9544 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)'
9545 hardcode_libdir_flag_spec='-L$libdir'
9546 hardcode_minus_L=yes
9547 ;;
9548 esac
9549 ;;
9550
9551 bsdi[45]*)
9552 export_dynamic_flag_spec=-rdynamic
9553 ;;
9554
9555 cygwin* | mingw* | pw32* | cegcc*)
9556 # When not using gcc, we currently assume that we are using
9557 # Microsoft Visual C++.
9558 # hardcode_libdir_flag_spec is actually meaningless, as there is
9559 # no search path for DLLs.
9560 case $cc_basename in
9561 cl*)
9562 # Native MSVC
9563 hardcode_libdir_flag_spec=' '
9564 allow_undefined_flag=unsupported
9565 always_export_symbols=yes
9566 file_list_spec='@'
9567 # Tell ltmain to make .lib files, not .a files.
9568 libext=lib
9569 # Tell ltmain to make .dll files, not .so files.
9570 shrext_cmds=".dll"
9571 # FIXME: Setting linknames here is a bad hack.
9572 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9574 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9575 else
9576 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9577 fi~
9578 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9579 linknames='
9580 # The linker will not automatically build a static lib if we build a DLL.
9581 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9582 enable_shared_with_static_runtimes=yes
9583 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9585 # Don't use ranlib
9586 old_postinstall_cmds='chmod 644 $oldlib'
9587 postlink_cmds='lt_outputfile="@OUTPUT@"~
9588 lt_tool_outputfile="@TOOL_OUTPUT@"~
9589 case $lt_outputfile in
9590 *.exe|*.EXE) ;;
9591 *)
9592 lt_outputfile="$lt_outputfile.exe"
9593 lt_tool_outputfile="$lt_tool_outputfile.exe"
9594 ;;
9595 esac~
9596 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9597 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9598 $RM "$lt_outputfile.manifest";
9599 fi'
9600 ;;
9601 *)
9602 # Assume MSVC wrapper
9603 hardcode_libdir_flag_spec=' '
9604 allow_undefined_flag=unsupported
9605 # Tell ltmain to make .lib files, not .a files.
9606 libext=lib
9607 # Tell ltmain to make .dll files, not .so files.
9608 shrext_cmds=".dll"
9609 # FIXME: Setting linknames here is a bad hack.
9610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9611 # The linker will automatically build a .lib file if we build a DLL.
9612 old_archive_from_new_cmds='true'
9613 # FIXME: Should let the user specify the lib program.
9614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9615 enable_shared_with_static_runtimes=yes
9616 ;;
9617 esac
9618 ;;
9619
9620 darwin* | rhapsody*)
9621
9622
9623 archive_cmds_need_lc=no
9624 hardcode_direct=no
9625 hardcode_automatic=yes
9626 hardcode_shlibpath_var=unsupported
9627 if test "$lt_cv_ld_force_load" = "yes"; then
9628 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\"`'
9629
9630 else
9631 whole_archive_flag_spec=''
9632 fi
9633 link_all_deplibs=yes
9634 allow_undefined_flag="$_lt_dar_allow_undefined"
9635 case $cc_basename in
9636 ifort*) _lt_dar_can_shared=yes ;;
9637 *) _lt_dar_can_shared=$GCC ;;
9638 esac
9639 if test "$_lt_dar_can_shared" = "yes"; then
9640 output_verbose_link_cmd=func_echo_all
9641 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9642 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9643 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}"
9644 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}"
9645
9646 else
9647 ld_shlibs=no
9648 fi
9649
9650 ;;
9651
9652 dgux*)
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9659 # support. Future versions do this automatically, but an explicit c++rt0.o
9660 # does not break anything, and helps significantly (at the cost of a little
9661 # extra space).
9662 freebsd2.2*)
9663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9664 hardcode_libdir_flag_spec='-R$libdir'
9665 hardcode_direct=yes
9666 hardcode_shlibpath_var=no
9667 ;;
9668
9669 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9670 freebsd2.*)
9671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_direct=yes
9673 hardcode_minus_L=yes
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9678 freebsd* | dragonfly*)
9679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9680 hardcode_libdir_flag_spec='-R$libdir'
9681 hardcode_direct=yes
9682 hardcode_shlibpath_var=no
9683 ;;
9684
9685 hpux9*)
9686 if test "$GCC" = yes; then
9687 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'
9688 else
9689 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'
9690 fi
9691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9692 hardcode_libdir_separator=:
9693 hardcode_direct=yes
9694
9695 # hardcode_minus_L: Not really in the search PATH,
9696 # but as the default location of the library.
9697 hardcode_minus_L=yes
9698 export_dynamic_flag_spec='${wl}-E'
9699 ;;
9700
9701 hpux10*)
9702 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9703 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9704 else
9705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9706 fi
9707 if test "$with_gnu_ld" = no; then
9708 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9709 hardcode_libdir_separator=:
9710 hardcode_direct=yes
9711 hardcode_direct_absolute=yes
9712 export_dynamic_flag_spec='${wl}-E'
9713 # hardcode_minus_L: Not really in the search PATH,
9714 # but as the default location of the library.
9715 hardcode_minus_L=yes
9716 fi
9717 ;;
9718
9719 hpux11*)
9720 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9721 case $host_cpu in
9722 hppa*64*)
9723 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 ;;
9725 ia64*)
9726 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9727 ;;
9728 *)
9729 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9730 ;;
9731 esac
9732 else
9733 case $host_cpu in
9734 hppa*64*)
9735 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 ;;
9737 ia64*)
9738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9739 ;;
9740 *)
9741
9742 # Older versions of the 11.00 compiler do not understand -b yet
9743 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9745$as_echo_n "checking if $CC understands -b... " >&6; }
9746if ${lt_cv_prog_compiler__b+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 lt_cv_prog_compiler__b=no
9750 save_LDFLAGS="$LDFLAGS"
9751 LDFLAGS="$LDFLAGS -b"
9752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9754 # The linker can only warn and ignore the option if not recognized
9755 # So say no if there are warnings
9756 if test -s conftest.err; then
9757 # Append any errors to the config.log.
9758 cat conftest.err 1>&5
9759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9761 if diff conftest.exp conftest.er2 >/dev/null; then
9762 lt_cv_prog_compiler__b=yes
9763 fi
9764 else
9765 lt_cv_prog_compiler__b=yes
9766 fi
9767 fi
9768 $RM -r conftest*
9769 LDFLAGS="$save_LDFLAGS"
9770
9771fi
9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9773$as_echo "$lt_cv_prog_compiler__b" >&6; }
9774
9775if test x"$lt_cv_prog_compiler__b" = xyes; then
9776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777else
9778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9779fi
9780
9781 ;;
9782 esac
9783 fi
9784 if test "$with_gnu_ld" = no; then
9785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9786 hardcode_libdir_separator=:
9787
9788 case $host_cpu in
9789 hppa*64*|ia64*)
9790 hardcode_direct=no
9791 hardcode_shlibpath_var=no
9792 ;;
9793 *)
9794 hardcode_direct=yes
9795 hardcode_direct_absolute=yes
9796 export_dynamic_flag_spec='${wl}-E'
9797
9798 # hardcode_minus_L: Not really in the search PATH,
9799 # but as the default location of the library.
9800 hardcode_minus_L=yes
9801 ;;
9802 esac
9803 fi
9804 ;;
9805
9806 irix5* | irix6* | nonstopux*)
9807 if test "$GCC" = yes; then
9808 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'
9809 # Try to use the -exported_symbol ld option, if it does not
9810 # work, assume that -exports_file does not work either and
9811 # implicitly export all symbols.
9812 # This should be the same for all languages, so no per-tag cache variable.
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9814$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9815if ${lt_cv_irix_exported_symbol+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817else
9818 save_LDFLAGS="$LDFLAGS"
9819 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h. */
9822int foo (void) { return 0; }
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825 lt_cv_irix_exported_symbol=yes
9826else
9827 lt_cv_irix_exported_symbol=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 LDFLAGS="$save_LDFLAGS"
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9834$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9835 if test "$lt_cv_irix_exported_symbol" = yes; then
9836 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'
9837 fi
9838 else
9839 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'
9840 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'
9841 fi
9842 archive_cmds_need_lc='no'
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 hardcode_libdir_separator=:
9845 inherit_rpath=yes
9846 link_all_deplibs=yes
9847 ;;
9848
9849 netbsd*)
9850 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9852 else
9853 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9854 fi
9855 hardcode_libdir_flag_spec='-R$libdir'
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9858 ;;
9859
9860 newsos6)
9861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862 hardcode_direct=yes
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 *nto* | *qnx*)
9869 ;;
9870
9871 openbsd*)
9872 if test -f /usr/libexec/ld.so; then
9873 hardcode_direct=yes
9874 hardcode_shlibpath_var=no
9875 hardcode_direct_absolute=yes
9876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9878 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9880 export_dynamic_flag_spec='${wl}-E'
9881 else
9882 case $host_os in
9883 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9885 hardcode_libdir_flag_spec='-R$libdir'
9886 ;;
9887 *)
9888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9890 ;;
9891 esac
9892 fi
9893 else
9894 ld_shlibs=no
9895 fi
9896 ;;
9897
9898 os2*)
9899 hardcode_libdir_flag_spec='-L$libdir'
9900 hardcode_minus_L=yes
9901 allow_undefined_flag=unsupported
9902 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'
9903 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9904 ;;
9905
9906 osf3*)
9907 if test "$GCC" = yes; then
9908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9909 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'
9910 else
9911 allow_undefined_flag=' -expect_unresolved \*'
9912 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'
9913 fi
9914 archive_cmds_need_lc='no'
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916 hardcode_libdir_separator=:
9917 ;;
9918
9919 osf4* | osf5*) # as osf3* with the addition of -msym flag
9920 if test "$GCC" = yes; then
9921 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9922 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'
9923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9924 else
9925 allow_undefined_flag=' -expect_unresolved \*'
9926 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'
9927 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~
9928 $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'
9929
9930 # Both c and cxx compiler support -rpath directly
9931 hardcode_libdir_flag_spec='-rpath $libdir'
9932 fi
9933 archive_cmds_need_lc='no'
9934 hardcode_libdir_separator=:
9935 ;;
9936
9937 solaris*)
9938 no_undefined_flag=' -z defs'
9939 if test "$GCC" = yes; then
9940 wlarc='${wl}'
9941 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9943 $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'
9944 else
9945 case `$CC -V 2>&1` in
9946 *"Compilers 5.0"*)
9947 wlarc=''
9948 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9950 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9951 ;;
9952 *)
9953 wlarc='${wl}'
9954 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9956 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9957 ;;
9958 esac
9959 fi
9960 hardcode_libdir_flag_spec='-R$libdir'
9961 hardcode_shlibpath_var=no
9962 case $host_os in
9963 solaris2.[0-5] | solaris2.[0-5].*) ;;
9964 *)
9965 # The compiler driver will combine and reorder linker options,
9966 # but understands `-z linker_flag'. GCC discards it without `$wl',
9967 # but is careful enough not to reorder.
9968 # Supported since Solaris 2.6 (maybe 2.5.1?)
9969 if test "$GCC" = yes; then
9970 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9971 else
9972 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9973 fi
9974 ;;
9975 esac
9976 link_all_deplibs=yes
9977 ;;
9978
9979 sunos4*)
9980 if test "x$host_vendor" = xsequent; then
9981 # Use $CC to link under sequent, because it throws in some extra .o
9982 # files that make .init and .fini sections work.
9983 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9986 fi
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 hardcode_direct=yes
9989 hardcode_minus_L=yes
9990 hardcode_shlibpath_var=no
9991 ;;
9992
9993 sysv4)
9994 case $host_vendor in
9995 sni)
9996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_direct=yes # is this really true???
9998 ;;
9999 siemens)
10000 ## LD is ld it makes a PLAMLIB
10001 ## CC just makes a GrossModule.
10002 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10003 reload_cmds='$CC -r -o $output$reload_objs'
10004 hardcode_direct=no
10005 ;;
10006 motorola)
10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10009 ;;
10010 esac
10011 runpath_var='LD_RUN_PATH'
10012 hardcode_shlibpath_var=no
10013 ;;
10014
10015 sysv4.3*)
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_shlibpath_var=no
10018 export_dynamic_flag_spec='-Bexport'
10019 ;;
10020
10021 sysv4*MP*)
10022 if test -d /usr/nec; then
10023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_shlibpath_var=no
10025 runpath_var=LD_RUN_PATH
10026 hardcode_runpath_var=yes
10027 ld_shlibs=yes
10028 fi
10029 ;;
10030
10031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10032 no_undefined_flag='${wl}-z,text'
10033 archive_cmds_need_lc=no
10034 hardcode_shlibpath_var=no
10035 runpath_var='LD_RUN_PATH'
10036
10037 if test "$GCC" = yes; then
10038 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 else
10041 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 fi
10044 ;;
10045
10046 sysv5* | sco3.2v5* | sco5v6*)
10047 # Note: We can NOT use -z defs as we might desire, because we do not
10048 # link with -lc, and that would cause any symbols used from libc to
10049 # always be unresolved, which means just about no library would
10050 # ever link correctly. If we're not using GNU ld we use -z text
10051 # though, which does catch some bad symbols but isn't as heavy-handed
10052 # as -z defs.
10053 no_undefined_flag='${wl}-z,text'
10054 allow_undefined_flag='${wl}-z,nodefs'
10055 archive_cmds_need_lc=no
10056 hardcode_shlibpath_var=no
10057 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10058 hardcode_libdir_separator=':'
10059 link_all_deplibs=yes
10060 export_dynamic_flag_spec='${wl}-Bexport'
10061 runpath_var='LD_RUN_PATH'
10062
10063 if test "$GCC" = yes; then
10064 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 fi
10070 ;;
10071
10072 uts4*)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_shlibpath_var=no
10076 ;;
10077
10078 *)
10079 ld_shlibs=no
10080 ;;
10081 esac
10082
10083 if test x$host_vendor = xsni; then
10084 case $host in
10085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10086 export_dynamic_flag_spec='${wl}-Blargedynsym'
10087 ;;
10088 esac
10089 fi
10090 fi
10091
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10093$as_echo "$ld_shlibs" >&6; }
10094test "$ld_shlibs" = no && can_build_shared=no
10095
10096with_gnu_ld=$with_gnu_ld
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112#
10113# Do we need to explicitly link libc?
10114#
10115case "x$archive_cmds_need_lc" in
10116x|xyes)
10117 # Assume -lc should be added
10118 archive_cmds_need_lc=yes
10119
10120 if test "$enable_shared" = yes && test "$GCC" = yes; then
10121 case $archive_cmds in
10122 *'~'*)
10123 # FIXME: we may have to deal with multi-command sequences.
10124 ;;
10125 '$CC '*)
10126 # Test whether the compiler implicitly links with -lc since on some
10127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10128 # to ld, don't add -lc before -lgcc.
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10130$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10131if ${lt_cv_archive_cmds_need_lc+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133else
10134 $RM conftest*
10135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10136
10137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10138 (eval $ac_compile) 2>&5
10139 ac_status=$?
10140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10141 test $ac_status = 0; } 2>conftest.err; then
10142 soname=conftest
10143 lib=conftest
10144 libobjs=conftest.$ac_objext
10145 deplibs=
10146 wl=$lt_prog_compiler_wl
10147 pic_flag=$lt_prog_compiler_pic
10148 compiler_flags=-v
10149 linker_flags=-v
10150 verstring=
10151 output_objdir=.
10152 libname=conftest
10153 lt_save_allow_undefined_flag=$allow_undefined_flag
10154 allow_undefined_flag=
10155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10157 ac_status=$?
10158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10159 test $ac_status = 0; }
10160 then
10161 lt_cv_archive_cmds_need_lc=no
10162 else
10163 lt_cv_archive_cmds_need_lc=yes
10164 fi
10165 allow_undefined_flag=$lt_save_allow_undefined_flag
10166 else
10167 cat conftest.err 1>&5
10168 fi
10169 $RM conftest*
10170
10171fi
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10173$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10174 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10175 ;;
10176 esac
10177 fi
10178 ;;
10179esac
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10333$as_echo_n "checking dynamic linker characteristics... " >&6; }
10334
10335if test "$GCC" = yes; then
10336 case $host_os in
10337 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10338 *) lt_awk_arg="/^libraries:/" ;;
10339 esac
10340 case $host_os in
10341 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10342 *) lt_sed_strip_eq="s,=/,/,g" ;;
10343 esac
10344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10345 case $lt_search_path_spec in
10346 *\;*)
10347 # if the path contains ";" then we assume it to be the separator
10348 # otherwise default to the standard path separator (i.e. ":") - it is
10349 # assumed that no part of a normal pathname contains ";" but that should
10350 # okay in the real world where ";" in dirpaths is itself problematic.
10351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10352 ;;
10353 *)
10354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10355 ;;
10356 esac
10357 # Ok, now we have the path, separated by spaces, we can step through it
10358 # and add multilib dir if necessary.
10359 lt_tmp_lt_search_path_spec=
10360 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10361 for lt_sys_path in $lt_search_path_spec; do
10362 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10364 else
10365 test -d "$lt_sys_path" && \
10366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10367 fi
10368 done
10369 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10370BEGIN {RS=" "; FS="/|\n";} {
10371 lt_foo="";
10372 lt_count=0;
10373 for (lt_i = NF; lt_i > 0; lt_i--) {
10374 if ($lt_i != "" && $lt_i != ".") {
10375 if ($lt_i == "..") {
10376 lt_count++;
10377 } else {
10378 if (lt_count == 0) {
10379 lt_foo="/" $lt_i lt_foo;
10380 } else {
10381 lt_count--;
10382 }
10383 }
10384 }
10385 }
10386 if (lt_foo != "") { lt_freq[lt_foo]++; }
10387 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10388}'`
10389 # AWK program above erroneously prepends '/' to C:/dos/paths
10390 # for these hosts.
10391 case $host_os in
10392 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10393 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10394 esac
10395 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10396else
10397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10398fi
10399library_names_spec=
10400libname_spec='lib$name'
10401soname_spec=
10402shrext_cmds=".so"
10403postinstall_cmds=
10404postuninstall_cmds=
10405finish_cmds=
10406finish_eval=
10407shlibpath_var=
10408shlibpath_overrides_runpath=unknown
10409version_type=none
10410dynamic_linker="$host_os ld.so"
10411sys_lib_dlsearch_path_spec="/lib /usr/lib"
10412need_lib_prefix=unknown
10413hardcode_into_libs=no
10414
10415# when you set need_version to no, make sure it does not cause -set_version
10416# flags to be left without arguments
10417need_version=unknown
10418
10419case $host_os in
10420aix3*)
10421 version_type=linux # correct to gnu/linux during the next big refactor
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10423 shlibpath_var=LIBPATH
10424
10425 # AIX 3 has no versioning support, so we append a major version to the name.
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 ;;
10428
10429aix[4-9]*)
10430 version_type=linux # correct to gnu/linux during the next big refactor
10431 need_lib_prefix=no
10432 need_version=no
10433 hardcode_into_libs=yes
10434 if test "$host_cpu" = ia64; then
10435 # AIX 5 supports IA64
10436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 else
10439 # With GCC up to 2.95.x, collect2 would create an import file
10440 # for dependence libraries. The import file would start with
10441 # the line `#! .'. This would cause the generated library to
10442 # depend on `.', always an invalid library. This was fixed in
10443 # development snapshots of GCC prior to 3.0.
10444 case $host_os in
10445 aix4 | aix4.[01] | aix4.[01].*)
10446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10447 echo ' yes '
10448 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10449 :
10450 else
10451 can_build_shared=no
10452 fi
10453 ;;
10454 esac
10455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10456 # soname into executable. Probably we can add versioning support to
10457 # collect2, so additional links can be useful in future.
10458 if test "$aix_use_runtimelinking" = yes; then
10459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10460 # instead of lib<name>.a to let people know that these are not
10461 # typical AIX shared libraries.
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 else
10464 # We preserve .a as extension for shared libraries through AIX4.2
10465 # and later when we are not doing run time linking.
10466 library_names_spec='${libname}${release}.a $libname.a'
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 fi
10469 shlibpath_var=LIBPATH
10470 fi
10471 ;;
10472
10473amigaos*)
10474 case $host_cpu in
10475 powerpc)
10476 # Since July 2007 AmigaOS4 officially supports .so libraries.
10477 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 ;;
10480 m68k)
10481 library_names_spec='$libname.ixlibrary $libname.a'
10482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10483 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'
10484 ;;
10485 esac
10486 ;;
10487
10488beos*)
10489 library_names_spec='${libname}${shared_ext}'
10490 dynamic_linker="$host_os ld.so"
10491 shlibpath_var=LIBRARY_PATH
10492 ;;
10493
10494bsdi[45]*)
10495 version_type=linux # correct to gnu/linux during the next big refactor
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10503 # the default ld.so.conf also contains /usr/contrib/lib and
10504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10505 # libtool to hard-code these into programs
10506 ;;
10507
10508cygwin* | mingw* | pw32* | cegcc*)
10509 version_type=windows
10510 shrext_cmds=".dll"
10511 need_version=no
10512 need_lib_prefix=no
10513
10514 case $GCC,$cc_basename in
10515 yes,*)
10516 # gcc
10517 library_names_spec='$libname.dll.a'
10518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10519 postinstall_cmds='base_file=`basename \${file}`~
10520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10521 dldir=$destdir/`dirname \$dlpath`~
10522 test -d \$dldir || mkdir -p \$dldir~
10523 $install_prog $dir/$dlname \$dldir/$dlname~
10524 chmod a+x \$dldir/$dlname~
10525 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10526 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10527 fi'
10528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10529 dlpath=$dir/\$dldll~
10530 $RM \$dlpath'
10531 shlibpath_overrides_runpath=yes
10532
10533 case $host_os in
10534 cygwin*)
10535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537
10538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10539 ;;
10540 mingw* | cegcc*)
10541 # MinGW DLLs use traditional 'lib' prefix
10542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10543 ;;
10544 pw32*)
10545 # pw32 DLLs use 'pw' prefix rather than 'lib'
10546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10547 ;;
10548 esac
10549 dynamic_linker='Win32 ld.exe'
10550 ;;
10551
10552 *,cl*)
10553 # Native MSVC
10554 libname_spec='$name'
10555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10556 library_names_spec='${libname}.dll.lib'
10557
10558 case $build_os in
10559 mingw*)
10560 sys_lib_search_path_spec=
10561 lt_save_ifs=$IFS
10562 IFS=';'
10563 for lt_path in $LIB
10564 do
10565 IFS=$lt_save_ifs
10566 # Let DOS variable expansion print the short 8.3 style file name.
10567 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10568 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10569 done
10570 IFS=$lt_save_ifs
10571 # Convert to MSYS style.
10572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10573 ;;
10574 cygwin*)
10575 # Convert to unix form, then to dos form, then back to unix form
10576 # but this time dos style (no spaces!) so that the unix form looks
10577 # like /cygdrive/c/PROGRA~1:/cygdr...
10578 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10579 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10580 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10581 ;;
10582 *)
10583 sys_lib_search_path_spec="$LIB"
10584 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10585 # It is most probably a Windows format PATH.
10586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10587 else
10588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10589 fi
10590 # FIXME: find the short name or the path components, as spaces are
10591 # common. (e.g. "Program Files" -> "PROGRA~1")
10592 ;;
10593 esac
10594
10595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10596 postinstall_cmds='base_file=`basename \${file}`~
10597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10598 dldir=$destdir/`dirname \$dlpath`~
10599 test -d \$dldir || mkdir -p \$dldir~
10600 $install_prog $dir/$dlname \$dldir/$dlname'
10601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10602 dlpath=$dir/\$dldll~
10603 $RM \$dlpath'
10604 shlibpath_overrides_runpath=yes
10605 dynamic_linker='Win32 link.exe'
10606 ;;
10607
10608 *)
10609 # Assume MSVC wrapper
10610 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10611 dynamic_linker='Win32 ld.exe'
10612 ;;
10613 esac
10614 # FIXME: first we should search . and the directory the executable is in
10615 shlibpath_var=PATH
10616 ;;
10617
10618darwin* | rhapsody*)
10619 dynamic_linker="$host_os dyld"
10620 version_type=darwin
10621 need_lib_prefix=no
10622 need_version=no
10623 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10624 soname_spec='${libname}${release}${major}$shared_ext'
10625 shlibpath_overrides_runpath=yes
10626 shlibpath_var=DYLD_LIBRARY_PATH
10627 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10628
10629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10630 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10631 ;;
10632
10633dgux*)
10634 version_type=linux # correct to gnu/linux during the next big refactor
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 ;;
10641
10642freebsd* | dragonfly*)
10643 # DragonFly does not have aout. When/if they implement a new
10644 # versioning mechanism, adjust this.
10645 if test -x /usr/bin/objformat; then
10646 objformat=`/usr/bin/objformat`
10647 else
10648 case $host_os in
10649 freebsd[23].*) objformat=aout ;;
10650 *) objformat=elf ;;
10651 esac
10652 fi
10653 version_type=freebsd-$objformat
10654 case $version_type in
10655 freebsd-elf*)
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10657 need_version=no
10658 need_lib_prefix=no
10659 ;;
10660 freebsd-*)
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10662 need_version=yes
10663 ;;
10664 esac
10665 shlibpath_var=LD_LIBRARY_PATH
10666 case $host_os in
10667 freebsd2.*)
10668 shlibpath_overrides_runpath=yes
10669 ;;
10670 freebsd3.[01]* | freebsdelf3.[01]*)
10671 shlibpath_overrides_runpath=yes
10672 hardcode_into_libs=yes
10673 ;;
10674 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10675 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10676 shlibpath_overrides_runpath=no
10677 hardcode_into_libs=yes
10678 ;;
10679 *) # from 4.6 on, and DragonFly
10680 shlibpath_overrides_runpath=yes
10681 hardcode_into_libs=yes
10682 ;;
10683 esac
10684 ;;
10685
10686gnu*)
10687 version_type=linux # correct to gnu/linux during the next big refactor
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=no
10694 hardcode_into_libs=yes
10695 ;;
10696
10697haiku*)
10698 version_type=linux # correct to gnu/linux during the next big refactor
10699 need_lib_prefix=no
10700 need_version=no
10701 dynamic_linker="$host_os runtime_loader"
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10706 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10707 hardcode_into_libs=yes
10708 ;;
10709
10710hpux9* | hpux10* | hpux11*)
10711 # Give a soname corresponding to the major version so that dld.sl refuses to
10712 # link against other versions.
10713 version_type=sunos
10714 need_lib_prefix=no
10715 need_version=no
10716 case $host_cpu in
10717 ia64*)
10718 shrext_cmds='.so'
10719 hardcode_into_libs=yes
10720 dynamic_linker="$host_os dld.so"
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 if test "X$HPUX_IA64_MODE" = X32; then
10726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10727 else
10728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10729 fi
10730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10731 ;;
10732 hppa*64*)
10733 shrext_cmds='.sl'
10734 hardcode_into_libs=yes
10735 dynamic_linker="$host_os dld.sl"
10736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10742 ;;
10743 *)
10744 shrext_cmds='.sl'
10745 dynamic_linker="$host_os dld.sl"
10746 shlibpath_var=SHLIB_PATH
10747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 ;;
10751 esac
10752 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10753 postinstall_cmds='chmod 555 $lib'
10754 # or fails outright, so override atomically:
10755 install_override_mode=555
10756 ;;
10757
10758interix[3-9]*)
10759 version_type=linux # correct to gnu/linux during the next big refactor
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10768 ;;
10769
10770irix5* | irix6* | nonstopux*)
10771 case $host_os in
10772 nonstopux*) version_type=nonstopux ;;
10773 *)
10774 if test "$lt_cv_prog_gnu_ld" = yes; then
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 else
10777 version_type=irix
10778 fi ;;
10779 esac
10780 need_lib_prefix=no
10781 need_version=no
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10784 case $host_os in
10785 irix5* | nonstopux*)
10786 libsuff= shlibsuff=
10787 ;;
10788 *)
10789 case $LD in # libtool.m4 will add one of these switches to LD
10790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10791 libsuff= shlibsuff= libmagic=32-bit;;
10792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10793 libsuff=32 shlibsuff=N32 libmagic=N32;;
10794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10796 *) libsuff= shlibsuff= libmagic=never-match;;
10797 esac
10798 ;;
10799 esac
10800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10801 shlibpath_overrides_runpath=no
10802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10804 hardcode_into_libs=yes
10805 ;;
10806
10807# No shared lib support for Linux oldld, aout, or coff.
10808linux*oldld* | linux*aout* | linux*coff*)
10809 dynamic_linker=no
10810 ;;
10811
10812# This must be glibc/ELF.
10813linux* | k*bsd*-gnu | kopensolaris*-gnu)
10814 version_type=linux # correct to gnu/linux during the next big refactor
10815 need_lib_prefix=no
10816 need_version=no
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10822
10823 # Some binutils ld are patched to set DT_RUNPATH
10824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826else
10827 lt_cv_shlibpath_overrides_runpath=no
10828 save_LDFLAGS=$LDFLAGS
10829 save_libdir=$libdir
10830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h. */
10834
10835int
10836main ()
10837{
10838
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843if ac_fn_c_try_link "$LINENO"; then :
10844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10845 lt_cv_shlibpath_overrides_runpath=yes
10846fi
10847fi
10848rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LDFLAGS=$save_LDFLAGS
10851 libdir=$save_libdir
10852
10853fi
10854
10855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10856
10857 # This implies no fast_install, which is unacceptable.
10858 # Some rework will be needed to allow for fast_install
10859 # before this can be enabled.
10860 hardcode_into_libs=yes
10861
10862 # Append ld.so.conf contents to the search path
10863 if test -f /etc/ld.so.conf; then
10864 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' ' '`
10865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10866 fi
10867
10868 # We used to test for /lib/ld.so.1 and disable shared libraries on
10869 # powerpc, because MkLinux only supported shared libraries with the
10870 # GNU dynamic linker. Since this was broken with cross compilers,
10871 # most powerpc-linux boxes support dynamic linking these days and
10872 # people can always --disable-shared, the test was removed, and we
10873 # assume the GNU/Linux dynamic linker is in use.
10874 dynamic_linker='GNU/Linux ld.so'
10875 ;;
10876
10877netbsd*)
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10884 dynamic_linker='NetBSD (a.out) ld.so'
10885 else
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 dynamic_linker='NetBSD ld.elf_so'
10889 fi
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes
10892 hardcode_into_libs=yes
10893 ;;
10894
10895newsos6)
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=yes
10900 ;;
10901
10902*nto* | *qnx*)
10903 version_type=qnx
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10911 dynamic_linker='ldqnx.so'
10912 ;;
10913
10914openbsd*)
10915 version_type=sunos
10916 sys_lib_dlsearch_path_spec="/usr/lib"
10917 need_lib_prefix=no
10918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10919 case $host_os in
10920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10921 *) need_version=no ;;
10922 esac
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10927 case $host_os in
10928 openbsd2.[89] | openbsd2.[89].*)
10929 shlibpath_overrides_runpath=no
10930 ;;
10931 *)
10932 shlibpath_overrides_runpath=yes
10933 ;;
10934 esac
10935 else
10936 shlibpath_overrides_runpath=yes
10937 fi
10938 ;;
10939
10940os2*)
10941 libname_spec='$name'
10942 shrext_cmds=".dll"
10943 need_lib_prefix=no
10944 library_names_spec='$libname${shared_ext} $libname.a'
10945 dynamic_linker='OS/2 ld.exe'
10946 shlibpath_var=LIBPATH
10947 ;;
10948
10949osf3* | osf4* | osf5*)
10950 version_type=osf
10951 need_lib_prefix=no
10952 need_version=no
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10958 ;;
10959
10960rdos*)
10961 dynamic_linker=no
10962 ;;
10963
10964solaris*)
10965 version_type=linux # correct to gnu/linux during the next big refactor
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 # ldd complains unless libraries are executable
10974 postinstall_cmds='chmod +x $lib'
10975 ;;
10976
10977sunos4*)
10978 version_type=sunos
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=yes
10983 if test "$with_gnu_ld" = yes; then
10984 need_lib_prefix=no
10985 fi
10986 need_version=yes
10987 ;;
10988
10989sysv4 | sysv4.3*)
10990 version_type=linux # correct to gnu/linux during the next big refactor
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 case $host_vendor in
10995 sni)
10996 shlibpath_overrides_runpath=no
10997 need_lib_prefix=no
10998 runpath_var=LD_RUN_PATH
10999 ;;
11000 siemens)
11001 need_lib_prefix=no
11002 ;;
11003 motorola)
11004 need_lib_prefix=no
11005 need_version=no
11006 shlibpath_overrides_runpath=no
11007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11008 ;;
11009 esac
11010 ;;
11011
11012sysv4*MP*)
11013 if test -d /usr/nec ;then
11014 version_type=linux # correct to gnu/linux during the next big refactor
11015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11016 soname_spec='$libname${shared_ext}.$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 fi
11019 ;;
11020
11021sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11022 version_type=freebsd-elf
11023 need_lib_prefix=no
11024 need_version=no
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 hardcode_into_libs=yes
11030 if test "$with_gnu_ld" = yes; then
11031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11032 else
11033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11034 case $host_os in
11035 sco3.2v5*)
11036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11037 ;;
11038 esac
11039 fi
11040 sys_lib_dlsearch_path_spec='/usr/lib'
11041 ;;
11042
11043tpf*)
11044 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 hardcode_into_libs=yes
11052 ;;
11053
11054uts4*)
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 ;;
11060
11061*)
11062 dynamic_linker=no
11063 ;;
11064esac
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11066$as_echo "$dynamic_linker" >&6; }
11067test "$dynamic_linker" = no && can_build_shared=no
11068
11069variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11070if test "$GCC" = yes; then
11071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11072fi
11073
11074if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11075 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11076fi
11077if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11078 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11079fi
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11173$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11174hardcode_action=
11175if test -n "$hardcode_libdir_flag_spec" ||
11176 test -n "$runpath_var" ||
11177 test "X$hardcode_automatic" = "Xyes" ; then
11178
11179 # We can hardcode non-existent directories.
11180 if test "$hardcode_direct" != no &&
11181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11182 # have to relink, otherwise we might link with an installed library
11183 # when we should be linking with a yet-to-be-installed one
11184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11185 test "$hardcode_minus_L" != no; then
11186 # Linking always hardcodes the temporary library directory.
11187 hardcode_action=relink
11188 else
11189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11190 hardcode_action=immediate
11191 fi
11192else
11193 # We cannot hardcode anything, or else we can only hardcode existing
11194 # directories.
11195 hardcode_action=unsupported
11196fi
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11198$as_echo "$hardcode_action" >&6; }
11199
11200if test "$hardcode_action" = relink ||
11201 test "$inherit_rpath" = yes; then
11202 # Fast installation is not supported
11203 enable_fast_install=no
11204elif test "$shlibpath_overrides_runpath" = yes ||
11205 test "$enable_shared" = no; then
11206 # Fast installation is not necessary
11207 enable_fast_install=needless
11208fi
11209
11210
11211
11212
11213
11214
11215 if test "x$enable_dlopen" != xyes; then
11216 enable_dlopen=unknown
11217 enable_dlopen_self=unknown
11218 enable_dlopen_self_static=unknown
11219else
11220 lt_cv_dlopen=no
11221 lt_cv_dlopen_libs=
11222
11223 case $host_os in
11224 beos*)
11225 lt_cv_dlopen="load_add_on"
11226 lt_cv_dlopen_libs=
11227 lt_cv_dlopen_self=yes
11228 ;;
11229
11230 mingw* | pw32* | cegcc*)
11231 lt_cv_dlopen="LoadLibrary"
11232 lt_cv_dlopen_libs=
11233 ;;
11234
11235 cygwin*)
11236 lt_cv_dlopen="dlopen"
11237 lt_cv_dlopen_libs=
11238 ;;
11239
11240 darwin*)
11241 # if libdl is installed we need to link against it
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11243$as_echo_n "checking for dlopen in -ldl... " >&6; }
11244if ${ac_cv_lib_dl_dlopen+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246else
11247 ac_check_lib_save_LIBS=$LIBS
11248LIBS="-ldl $LIBS"
11249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250/* end confdefs.h. */
11251
11252/* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255#ifdef __cplusplus
11256extern "C"
11257#endif
11258char dlopen ();
11259int
11260main ()
11261{
11262return dlopen ();
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_dl_dlopen=yes
11269else
11270 ac_cv_lib_dl_dlopen=no
11271fi
11272rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274LIBS=$ac_check_lib_save_LIBS
11275fi
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11277$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11278if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11280else
11281
11282 lt_cv_dlopen="dyld"
11283 lt_cv_dlopen_libs=
11284 lt_cv_dlopen_self=yes
11285
11286fi
11287
11288 ;;
11289
11290 *)
11291 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11292if test "x$ac_cv_func_shl_load" = xyes; then :
11293 lt_cv_dlopen="shl_load"
11294else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11296$as_echo_n "checking for shl_load in -ldld... " >&6; }
11297if ${ac_cv_lib_dld_shl_load+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299else
11300 ac_check_lib_save_LIBS=$LIBS
11301LIBS="-ldld $LIBS"
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304
11305/* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308#ifdef __cplusplus
11309extern "C"
11310#endif
11311char shl_load ();
11312int
11313main ()
11314{
11315return shl_load ();
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dld_shl_load=yes
11322else
11323 ac_cv_lib_dld_shl_load=no
11324fi
11325rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327LIBS=$ac_check_lib_save_LIBS
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11330$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11331if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11332 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11333else
11334 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11335if test "x$ac_cv_func_dlopen" = xyes; then :
11336 lt_cv_dlopen="dlopen"
11337else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339$as_echo_n "checking for dlopen in -ldl... " >&6; }
11340if ${ac_cv_lib_dl_dlopen+:} false; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 ac_check_lib_save_LIBS=$LIBS
11344LIBS="-ldl $LIBS"
11345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h. */
11347
11348/* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351#ifdef __cplusplus
11352extern "C"
11353#endif
11354char dlopen ();
11355int
11356main ()
11357{
11358return dlopen ();
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_dl_dlopen=yes
11365else
11366 ac_cv_lib_dl_dlopen=no
11367fi
11368rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370LIBS=$ac_check_lib_save_LIBS
11371fi
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11374if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11378$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11379if ${ac_cv_lib_svld_dlopen+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381else
11382 ac_check_lib_save_LIBS=$LIBS
11383LIBS="-lsvld $LIBS"
11384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h. */
11386
11387/* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390#ifdef __cplusplus
11391extern "C"
11392#endif
11393char dlopen ();
11394int
11395main ()
11396{
11397return dlopen ();
11398 ;
11399 return 0;
11400}
11401_ACEOF
11402if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_svld_dlopen=yes
11404else
11405 ac_cv_lib_svld_dlopen=no
11406fi
11407rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409LIBS=$ac_check_lib_save_LIBS
11410fi
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11412$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11413if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11415else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11417$as_echo_n "checking for dld_link in -ldld... " >&6; }
11418if ${ac_cv_lib_dld_dld_link+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420else
11421 ac_check_lib_save_LIBS=$LIBS
11422LIBS="-ldld $LIBS"
11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424/* end confdefs.h. */
11425
11426/* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429#ifdef __cplusplus
11430extern "C"
11431#endif
11432char dld_link ();
11433int
11434main ()
11435{
11436return dld_link ();
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_dld_dld_link=yes
11443else
11444 ac_cv_lib_dld_dld_link=no
11445fi
11446rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11451$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11452if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11453 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11454fi
11455
11456
11457fi
11458
11459
11460fi
11461
11462
11463fi
11464
11465
11466fi
11467
11468
11469fi
11470
11471 ;;
11472 esac
11473
11474 if test "x$lt_cv_dlopen" != xno; then
11475 enable_dlopen=yes
11476 else
11477 enable_dlopen=no
11478 fi
11479
11480 case $lt_cv_dlopen in
11481 dlopen)
11482 save_CPPFLAGS="$CPPFLAGS"
11483 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11484
11485 save_LDFLAGS="$LDFLAGS"
11486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11487
11488 save_LIBS="$LIBS"
11489 LIBS="$lt_cv_dlopen_libs $LIBS"
11490
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11492$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11493if ${lt_cv_dlopen_self+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495else
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self=cross
11498else
11499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11500 lt_status=$lt_dlunknown
11501 cat > conftest.$ac_ext <<_LT_EOF
11502#line $LINENO "configure"
11503#include "confdefs.h"
11504
11505#if HAVE_DLFCN_H
11506#include <dlfcn.h>
11507#endif
11508
11509#include <stdio.h>
11510
11511#ifdef RTLD_GLOBAL
11512# define LT_DLGLOBAL RTLD_GLOBAL
11513#else
11514# ifdef DL_GLOBAL
11515# define LT_DLGLOBAL DL_GLOBAL
11516# else
11517# define LT_DLGLOBAL 0
11518# endif
11519#endif
11520
11521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523#ifndef LT_DLLAZY_OR_NOW
11524# ifdef RTLD_LAZY
11525# define LT_DLLAZY_OR_NOW RTLD_LAZY
11526# else
11527# ifdef DL_LAZY
11528# define LT_DLLAZY_OR_NOW DL_LAZY
11529# else
11530# ifdef RTLD_NOW
11531# define LT_DLLAZY_OR_NOW RTLD_NOW
11532# else
11533# ifdef DL_NOW
11534# define LT_DLLAZY_OR_NOW DL_NOW
11535# else
11536# define LT_DLLAZY_OR_NOW 0
11537# endif
11538# endif
11539# endif
11540# endif
11541#endif
11542
11543/* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546int fnord () __attribute__((visibility("default")));
11547#endif
11548
11549int fnord () { return 42; }
11550int main ()
11551{
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11554
11555 if (self)
11556 {
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else
11559 {
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11562 }
11563 /* dlclose (self); */
11564 }
11565 else
11566 puts (dlerror ());
11567
11568 return status;
11569}
11570_LT_EOF
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11576 (./conftest; exit; ) >&5 2>/dev/null
11577 lt_status=$?
11578 case x$lt_status in
11579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11581 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11582 esac
11583 else :
11584 # compilation failed
11585 lt_cv_dlopen_self=no
11586 fi
11587fi
11588rm -fr conftest*
11589
11590
11591fi
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11593$as_echo "$lt_cv_dlopen_self" >&6; }
11594
11595 if test "x$lt_cv_dlopen_self" = xyes; then
11596 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11598$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11599if ${lt_cv_dlopen_self_static+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601else
11602 if test "$cross_compiling" = yes; then :
11603 lt_cv_dlopen_self_static=cross
11604else
11605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11606 lt_status=$lt_dlunknown
11607 cat > conftest.$ac_ext <<_LT_EOF
11608#line $LINENO "configure"
11609#include "confdefs.h"
11610
11611#if HAVE_DLFCN_H
11612#include <dlfcn.h>
11613#endif
11614
11615#include <stdio.h>
11616
11617#ifdef RTLD_GLOBAL
11618# define LT_DLGLOBAL RTLD_GLOBAL
11619#else
11620# ifdef DL_GLOBAL
11621# define LT_DLGLOBAL DL_GLOBAL
11622# else
11623# define LT_DLGLOBAL 0
11624# endif
11625#endif
11626
11627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628 find out it does not work in some platform. */
11629#ifndef LT_DLLAZY_OR_NOW
11630# ifdef RTLD_LAZY
11631# define LT_DLLAZY_OR_NOW RTLD_LAZY
11632# else
11633# ifdef DL_LAZY
11634# define LT_DLLAZY_OR_NOW DL_LAZY
11635# else
11636# ifdef RTLD_NOW
11637# define LT_DLLAZY_OR_NOW RTLD_NOW
11638# else
11639# ifdef DL_NOW
11640# define LT_DLLAZY_OR_NOW DL_NOW
11641# else
11642# define LT_DLLAZY_OR_NOW 0
11643# endif
11644# endif
11645# endif
11646# endif
11647#endif
11648
11649/* When -fvisbility=hidden is used, assume the code has been annotated
11650 correspondingly for the symbols needed. */
11651#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652int fnord () __attribute__((visibility("default")));
11653#endif
11654
11655int fnord () { return 42; }
11656int main ()
11657{
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11660
11661 if (self)
11662 {
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else
11665 {
11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 else puts (dlerror ());
11668 }
11669 /* dlclose (self); */
11670 }
11671 else
11672 puts (dlerror ());
11673
11674 return status;
11675}
11676_LT_EOF
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11682 (./conftest; exit; ) >&5 2>/dev/null
11683 lt_status=$?
11684 case x$lt_status in
11685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11687 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11688 esac
11689 else :
11690 # compilation failed
11691 lt_cv_dlopen_self_static=no
11692 fi
11693fi
11694rm -fr conftest*
11695
11696
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11699$as_echo "$lt_cv_dlopen_self_static" >&6; }
11700 fi
11701
11702 CPPFLAGS="$save_CPPFLAGS"
11703 LDFLAGS="$save_LDFLAGS"
11704 LIBS="$save_LIBS"
11705 ;;
11706 esac
11707
11708 case $lt_cv_dlopen_self in
11709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11710 *) enable_dlopen_self=unknown ;;
11711 esac
11712
11713 case $lt_cv_dlopen_self_static in
11714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11715 *) enable_dlopen_self_static=unknown ;;
11716 esac
11717fi
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735striplib=
11736old_striplib=
11737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11738$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11739if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743$as_echo "yes" >&6; }
11744else
11745# FIXME - insert some real tests, host_os isn't really good enough
11746 case $host_os in
11747 darwin*)
11748 if test -n "$STRIP" ; then
11749 striplib="$STRIP -x"
11750 old_striplib="$STRIP -S"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752$as_echo "yes" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
11756 fi
11757 ;;
11758 *)
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
11761 ;;
11762 esac
11763fi
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776 # Report which library types will actually be built
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11778$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11780$as_echo "$can_build_shared" >&6; }
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11783$as_echo_n "checking whether to build shared libraries... " >&6; }
11784 test "$can_build_shared" = "no" && enable_shared=no
11785
11786 # On AIX, shared libraries and static libraries use the same namespace, and
11787 # are all built from PIC.
11788 case $host_os in
11789 aix3*)
11790 test "$enable_shared" = yes && enable_static=no
11791 if test -n "$RANLIB"; then
11792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11793 postinstall_cmds='$RANLIB $lib'
11794 fi
11795 ;;
11796
11797 aix[4-9]*)
11798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11799 test "$enable_shared" = yes && enable_static=no
11800 fi
11801 ;;
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11804$as_echo "$enable_shared" >&6; }
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11807$as_echo_n "checking whether to build static libraries... " >&6; }
11808 # Make sure either enable_shared or enable_static is yes.
11809 test "$enable_shared" = yes || enable_static=yes
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11811$as_echo "$enable_static" >&6; }
11812
11813
11814
11815
11816fi
11817ac_ext=cpp
11818ac_cpp='$CXXCPP $CPPFLAGS'
11819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11822
11823CC="$lt_save_CC"
11824
11825 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11826 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11827 (test "X$CXX" != "Xg++"))) ; then
11828 ac_ext=cpp
11829ac_cpp='$CXXCPP $CPPFLAGS'
11830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11834$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11835if test -z "$CXXCPP"; then
11836 if ${ac_cv_prog_CXXCPP+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838else
11839 # Double quotes because CXXCPP needs to be expanded
11840 for CXXCPP in "$CXX -E" "/lib/cpp"
11841 do
11842 ac_preproc_ok=false
11843for ac_cxx_preproc_warn_flag in '' yes
11844do
11845 # Use a header file that comes with gcc, so configuring glibc
11846 # with a fresh cross-compiler works.
11847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 # <limits.h> exists even on freestanding compilers.
11849 # On the NeXT, cc -E runs the code through the compiler's parser,
11850 # not just through cpp. "Syntax error" is here to catch this case.
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h. */
11853#ifdef __STDC__
11854# include <limits.h>
11855#else
11856# include <assert.h>
11857#endif
11858 Syntax error
11859_ACEOF
11860if ac_fn_cxx_try_cpp "$LINENO"; then :
11861
11862else
11863 # Broken: fails on valid input.
11864continue
11865fi
11866rm -f conftest.err conftest.i conftest.$ac_ext
11867
11868 # OK, works on sane cases. Now check whether nonexistent headers
11869 # can be detected and how.
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871/* end confdefs.h. */
11872#include <ac_nonexistent.h>
11873_ACEOF
11874if ac_fn_cxx_try_cpp "$LINENO"; then :
11875 # Broken: success on invalid input.
11876continue
11877else
11878 # Passes both tests.
11879ac_preproc_ok=:
11880break
11881fi
11882rm -f conftest.err conftest.i conftest.$ac_ext
11883
11884done
11885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11886rm -f conftest.i conftest.err conftest.$ac_ext
11887if $ac_preproc_ok; then :
11888 break
11889fi
11890
11891 done
11892 ac_cv_prog_CXXCPP=$CXXCPP
11893
11894fi
11895 CXXCPP=$ac_cv_prog_CXXCPP
11896else
11897 ac_cv_prog_CXXCPP=$CXXCPP
11898fi
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11900$as_echo "$CXXCPP" >&6; }
11901ac_preproc_ok=false
11902for ac_cxx_preproc_warn_flag in '' yes
11903do
11904 # Use a header file that comes with gcc, so configuring glibc
11905 # with a fresh cross-compiler works.
11906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 # <limits.h> exists even on freestanding compilers.
11908 # On the NeXT, cc -E runs the code through the compiler's parser,
11909 # not just through cpp. "Syntax error" is here to catch this case.
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911/* end confdefs.h. */
11912#ifdef __STDC__
11913# include <limits.h>
11914#else
11915# include <assert.h>
11916#endif
11917 Syntax error
11918_ACEOF
11919if ac_fn_cxx_try_cpp "$LINENO"; then :
11920
11921else
11922 # Broken: fails on valid input.
11923continue
11924fi
11925rm -f conftest.err conftest.i conftest.$ac_ext
11926
11927 # OK, works on sane cases. Now check whether nonexistent headers
11928 # can be detected and how.
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930/* end confdefs.h. */
11931#include <ac_nonexistent.h>
11932_ACEOF
11933if ac_fn_cxx_try_cpp "$LINENO"; then :
11934 # Broken: success on invalid input.
11935continue
11936else
11937 # Passes both tests.
11938ac_preproc_ok=:
11939break
11940fi
11941rm -f conftest.err conftest.i conftest.$ac_ext
11942
11943done
11944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11945rm -f conftest.i conftest.err conftest.$ac_ext
11946if $ac_preproc_ok; then :
11947
11948else
11949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11951as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11952See \`config.log' for more details" "$LINENO" 5; }
11953fi
11954
11955ac_ext=cpp
11956ac_cpp='$CXXCPP $CPPFLAGS'
11957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11960
11961else
11962 _lt_caught_CXX_error=yes
11963fi
11964
11965ac_ext=cpp
11966ac_cpp='$CXXCPP $CPPFLAGS'
11967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11970
11971archive_cmds_need_lc_CXX=no
11972allow_undefined_flag_CXX=
11973always_export_symbols_CXX=no
11974archive_expsym_cmds_CXX=
11975compiler_needs_object_CXX=no
11976export_dynamic_flag_spec_CXX=
11977hardcode_direct_CXX=no
11978hardcode_direct_absolute_CXX=no
11979hardcode_libdir_flag_spec_CXX=
11980hardcode_libdir_separator_CXX=
11981hardcode_minus_L_CXX=no
11982hardcode_shlibpath_var_CXX=unsupported
11983hardcode_automatic_CXX=no
11984inherit_rpath_CXX=no
11985module_cmds_CXX=
11986module_expsym_cmds_CXX=
11987link_all_deplibs_CXX=unknown
11988old_archive_cmds_CXX=$old_archive_cmds
11989reload_flag_CXX=$reload_flag
11990reload_cmds_CXX=$reload_cmds
11991no_undefined_flag_CXX=
11992whole_archive_flag_spec_CXX=
11993enable_shared_with_static_runtimes_CXX=no
11994
11995# Source file extension for C++ test sources.
11996ac_ext=cpp
11997
11998# Object file extension for compiled C++ test sources.
11999objext=o
12000objext_CXX=$objext
12001
12002# No sense in running all these tests if we already determined that
12003# the CXX compiler isn't working. Some variables (like enable_shared)
12004# are currently assumed to apply to all compilers on this platform,
12005# and will be corrupted by setting them based on a non-working compiler.
12006if test "$_lt_caught_CXX_error" != yes; then
12007 # Code to be used in simple compile tests
12008 lt_simple_compile_test_code="int some_variable = 0;"
12009
12010 # Code to be used in simple link tests
12011 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12012
12013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12014
12015
12016
12017
12018
12019
12020# If no C compiler was specified, use CC.
12021LTCC=${LTCC-"$CC"}
12022
12023# If no C compiler flags were specified, use CFLAGS.
12024LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12025
12026# Allow CC to be a program name with arguments.
12027compiler=$CC
12028
12029
12030 # save warnings/boilerplate of simple test code
12031 ac_outfile=conftest.$ac_objext
12032echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12033eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12034_lt_compiler_boilerplate=`cat conftest.err`
12035$RM conftest*
12036
12037 ac_outfile=conftest.$ac_objext
12038echo "$lt_simple_link_test_code" >conftest.$ac_ext
12039eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12040_lt_linker_boilerplate=`cat conftest.err`
12041$RM -r conftest*
12042
12043
12044 # Allow CC to be a program name with arguments.
12045 lt_save_CC=$CC
12046 lt_save_CFLAGS=$CFLAGS
12047 lt_save_LD=$LD
12048 lt_save_GCC=$GCC
12049 GCC=$GXX
12050 lt_save_with_gnu_ld=$with_gnu_ld
12051 lt_save_path_LD=$lt_cv_path_LD
12052 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12053 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12054 else
12055 $as_unset lt_cv_prog_gnu_ld
12056 fi
12057 if test -n "${lt_cv_path_LDCXX+set}"; then
12058 lt_cv_path_LD=$lt_cv_path_LDCXX
12059 else
12060 $as_unset lt_cv_path_LD
12061 fi
12062 test -z "${LDCXX+set}" || LD=$LDCXX
12063 CC=${CXX-"c++"}
12064 CFLAGS=$CXXFLAGS
12065 compiler=$CC
12066 compiler_CXX=$CC
12067 for cc_temp in $compiler""; do
12068 case $cc_temp in
12069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12071 \-*) ;;
12072 *) break;;
12073 esac
12074done
12075cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12076
12077
12078 if test -n "$compiler"; then
12079 # We don't want -fno-exception when compiling C++ code, so set the
12080 # no_builtin_flag separately
12081 if test "$GXX" = yes; then
12082 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12083 else
12084 lt_prog_compiler_no_builtin_flag_CXX=
12085 fi
12086
12087 if test "$GXX" = yes; then
12088 # Set up default GNU C++ configuration
12089
12090
12091
12092# Check whether --with-gnu-ld was given.
12093if test "${with_gnu_ld+set}" = set; then :
12094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12095else
12096 with_gnu_ld=no
12097fi
12098
12099ac_prog=ld
12100if test "$GCC" = yes; then
12101 # Check if gcc -print-prog-name=ld gives a path.
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12103$as_echo_n "checking for ld used by $CC... " >&6; }
12104 case $host in
12105 *-*-mingw*)
12106 # gcc leaves a trailing carriage return which upsets mingw
12107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12108 *)
12109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12110 esac
12111 case $ac_prog in
12112 # Accept absolute paths.
12113 [\\/]* | ?:[\\/]*)
12114 re_direlt='/[^/][^/]*/\.\./'
12115 # Canonicalize the pathname of ld
12116 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12117 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12118 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12119 done
12120 test -z "$LD" && LD="$ac_prog"
12121 ;;
12122 "")
12123 # If it fails, then pretend we aren't using GCC.
12124 ac_prog=ld
12125 ;;
12126 *)
12127 # If it is relative, then search for the first ld in PATH.
12128 with_gnu_ld=unknown
12129 ;;
12130 esac
12131elif test "$with_gnu_ld" = yes; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12133$as_echo_n "checking for GNU ld... " >&6; }
12134else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12136$as_echo_n "checking for non-GNU ld... " >&6; }
12137fi
12138if ${lt_cv_path_LD+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140else
12141 if test -z "$LD"; then
12142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12143 for ac_dir in $PATH; do
12144 IFS="$lt_save_ifs"
12145 test -z "$ac_dir" && ac_dir=.
12146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12147 lt_cv_path_LD="$ac_dir/$ac_prog"
12148 # Check to see if the program is GNU ld. I'd rather use --version,
12149 # but apparently some variants of GNU ld only accept -v.
12150 # Break only if it was the GNU/non-GNU ld that we prefer.
12151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12152 *GNU* | *'with BFD'*)
12153 test "$with_gnu_ld" != no && break
12154 ;;
12155 *)
12156 test "$with_gnu_ld" != yes && break
12157 ;;
12158 esac
12159 fi
12160 done
12161 IFS="$lt_save_ifs"
12162else
12163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12164fi
12165fi
12166
12167LD="$lt_cv_path_LD"
12168if test -n "$LD"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12170$as_echo "$LD" >&6; }
12171else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
12174fi
12175test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12177$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12178if ${lt_cv_prog_gnu_ld+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180else
12181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12182case `$LD -v 2>&1 </dev/null` in
12183*GNU* | *'with BFD'*)
12184 lt_cv_prog_gnu_ld=yes
12185 ;;
12186*)
12187 lt_cv_prog_gnu_ld=no
12188 ;;
12189esac
12190fi
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12192$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12193with_gnu_ld=$lt_cv_prog_gnu_ld
12194
12195
12196
12197
12198
12199
12200
12201 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12202 # archiving commands below assume that GNU ld is being used.
12203 if test "$with_gnu_ld" = yes; then
12204 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205 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'
12206
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209
12210 # If archive_cmds runs LD, not CC, wlarc should be empty
12211 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12212 # investigate it a little bit more. (MM)
12213 wlarc='${wl}'
12214
12215 # ancient GNU ld didn't support --whole-archive et. al.
12216 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12217 $GREP 'no-whole-archive' > /dev/null; then
12218 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12219 else
12220 whole_archive_flag_spec_CXX=
12221 fi
12222 else
12223 with_gnu_ld=no
12224 wlarc=
12225
12226 # A generic and very simple default shared library creation
12227 # command for GNU C++ for the case where it uses the native
12228 # linker, instead of GNU ld. If possible, this setting should
12229 # overridden to take advantage of the native linker features on
12230 # the platform it is being used on.
12231 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12232 fi
12233
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12238
12239 else
12240 GXX=no
12241 with_gnu_ld=no
12242 wlarc=
12243 fi
12244
12245 # PORTME: fill in a description of your system's C++ link characteristics
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12247$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12248 ld_shlibs_CXX=yes
12249 case $host_os in
12250 aix3*)
12251 # FIXME: insert proper C++ library support
12252 ld_shlibs_CXX=no
12253 ;;
12254 aix[4-9]*)
12255 if test "$host_cpu" = ia64; then
12256 # On IA64, the linker does run time linking by default, so we don't
12257 # have to do anything special.
12258 aix_use_runtimelinking=no
12259 exp_sym_flag='-Bexport'
12260 no_entry_flag=""
12261 else
12262 aix_use_runtimelinking=no
12263
12264 # Test if we are trying to use run time linking or normal
12265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12266 # need to do runtime linking.
12267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12268 for ld_flag in $LDFLAGS; do
12269 case $ld_flag in
12270 *-brtl*)
12271 aix_use_runtimelinking=yes
12272 break
12273 ;;
12274 esac
12275 done
12276 ;;
12277 esac
12278
12279 exp_sym_flag='-bexport'
12280 no_entry_flag='-bnoentry'
12281 fi
12282
12283 # When large executables or shared objects are built, AIX ld can
12284 # have problems creating the table of contents. If linking a library
12285 # or program results in "error TOC overflow" add -mminimal-toc to
12286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12288
12289 archive_cmds_CXX=''
12290 hardcode_direct_CXX=yes
12291 hardcode_direct_absolute_CXX=yes
12292 hardcode_libdir_separator_CXX=':'
12293 link_all_deplibs_CXX=yes
12294 file_list_spec_CXX='${wl}-f,'
12295
12296 if test "$GXX" = yes; then
12297 case $host_os in aix4.[012]|aix4.[012].*)
12298 # We only want to do this on AIX 4.2 and lower, the check
12299 # below for broken collect2 doesn't work under 4.3+
12300 collect2name=`${CC} -print-prog-name=collect2`
12301 if test -f "$collect2name" &&
12302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12303 then
12304 # We have reworked collect2
12305 :
12306 else
12307 # We have old collect2
12308 hardcode_direct_CXX=unsupported
12309 # It fails to find uninstalled libraries when the uninstalled
12310 # path is not listed in the libpath. Setting hardcode_minus_L
12311 # to unsupported forces relinking
12312 hardcode_minus_L_CXX=yes
12313 hardcode_libdir_flag_spec_CXX='-L$libdir'
12314 hardcode_libdir_separator_CXX=
12315 fi
12316 esac
12317 shared_flag='-shared'
12318 if test "$aix_use_runtimelinking" = yes; then
12319 shared_flag="$shared_flag "'${wl}-G'
12320 fi
12321 else
12322 # not using gcc
12323 if test "$host_cpu" = ia64; then
12324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12325 # chokes on -Wl,-G. The following line is correct:
12326 shared_flag='-G'
12327 else
12328 if test "$aix_use_runtimelinking" = yes; then
12329 shared_flag='${wl}-G'
12330 else
12331 shared_flag='${wl}-bM:SRE'
12332 fi
12333 fi
12334 fi
12335
12336 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12337 # It seems that -bexpall does not export symbols beginning with
12338 # underscore (_), so it is better to generate a list of symbols to
12339 # export.
12340 always_export_symbols_CXX=yes
12341 if test "$aix_use_runtimelinking" = yes; then
12342 # Warning - without using the other runtime loading flags (-brtl),
12343 # -berok will link without error, but may produce a broken library.
12344 allow_undefined_flag_CXX='-berok'
12345 # Determine the default libpath from the value encoded in an empty
12346 # executable.
12347 if test "${lt_cv_aix_libpath+set}" = set; then
12348 aix_libpath=$lt_cv_aix_libpath
12349else
12350 if ${lt_cv_aix_libpath__CXX+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352else
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h. */
12355
12356int
12357main ()
12358{
12359
12360 ;
12361 return 0;
12362}
12363_ACEOF
12364if ac_fn_cxx_try_link "$LINENO"; then :
12365
12366 lt_aix_libpath_sed='
12367 /Import File Strings/,/^$/ {
12368 /^0/ {
12369 s/^0 *\([^ ]*\) *$/\1/
12370 p
12371 }
12372 }'
12373 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12374 # Check for a 64-bit object if we didn't find anything.
12375 if test -z "$lt_cv_aix_libpath__CXX"; then
12376 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12377 fi
12378fi
12379rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 if test -z "$lt_cv_aix_libpath__CXX"; then
12382 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12383 fi
12384
12385fi
12386
12387 aix_libpath=$lt_cv_aix_libpath__CXX
12388fi
12389
12390 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12391
12392 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"
12393 else
12394 if test "$host_cpu" = ia64; then
12395 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12396 allow_undefined_flag_CXX="-z nodefs"
12397 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"
12398 else
12399 # Determine the default libpath from the value encoded in an
12400 # empty executable.
12401 if test "${lt_cv_aix_libpath+set}" = set; then
12402 aix_libpath=$lt_cv_aix_libpath
12403else
12404 if ${lt_cv_aix_libpath__CXX+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406else
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408/* end confdefs.h. */
12409
12410int
12411main ()
12412{
12413
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418if ac_fn_cxx_try_link "$LINENO"; then :
12419
12420 lt_aix_libpath_sed='
12421 /Import File Strings/,/^$/ {
12422 /^0/ {
12423 s/^0 *\([^ ]*\) *$/\1/
12424 p
12425 }
12426 }'
12427 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12428 # Check for a 64-bit object if we didn't find anything.
12429 if test -z "$lt_cv_aix_libpath__CXX"; then
12430 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12431 fi
12432fi
12433rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12435 if test -z "$lt_cv_aix_libpath__CXX"; then
12436 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12437 fi
12438
12439fi
12440
12441 aix_libpath=$lt_cv_aix_libpath__CXX
12442fi
12443
12444 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12445 # Warning - without using the other run time loading flags,
12446 # -berok will link without error, but may produce a broken library.
12447 no_undefined_flag_CXX=' ${wl}-bernotok'
12448 allow_undefined_flag_CXX=' ${wl}-berok'
12449 if test "$with_gnu_ld" = yes; then
12450 # We only use this code for GNU lds that support --whole-archive.
12451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12452 else
12453 # Exported symbols can be pulled into shared objects from archives
12454 whole_archive_flag_spec_CXX='$convenience'
12455 fi
12456 archive_cmds_need_lc_CXX=yes
12457 # This is similar to how AIX traditionally builds its shared
12458 # libraries.
12459 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'
12460 fi
12461 fi
12462 ;;
12463
12464 beos*)
12465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12466 allow_undefined_flag_CXX=unsupported
12467 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12468 # support --undefined. This deserves some investigation. FIXME
12469 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12470 else
12471 ld_shlibs_CXX=no
12472 fi
12473 ;;
12474
12475 chorus*)
12476 case $cc_basename in
12477 *)
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12480 ;;
12481 esac
12482 ;;
12483
12484 cygwin* | mingw* | pw32* | cegcc*)
12485 case $GXX,$cc_basename in
12486 ,cl* | no,cl*)
12487 # Native MSVC
12488 # hardcode_libdir_flag_spec is actually meaningless, as there is
12489 # no search path for DLLs.
12490 hardcode_libdir_flag_spec_CXX=' '
12491 allow_undefined_flag_CXX=unsupported
12492 always_export_symbols_CXX=yes
12493 file_list_spec_CXX='@'
12494 # Tell ltmain to make .lib files, not .a files.
12495 libext=lib
12496 # Tell ltmain to make .dll files, not .so files.
12497 shrext_cmds=".dll"
12498 # FIXME: Setting linknames here is a bad hack.
12499 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12500 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12501 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12502 else
12503 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12504 fi~
12505 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12506 linknames='
12507 # The linker will not automatically build a static lib if we build a DLL.
12508 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12509 enable_shared_with_static_runtimes_CXX=yes
12510 # Don't use ranlib
12511 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12512 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12513 lt_tool_outputfile="@TOOL_OUTPUT@"~
12514 case $lt_outputfile in
12515 *.exe|*.EXE) ;;
12516 *)
12517 lt_outputfile="$lt_outputfile.exe"
12518 lt_tool_outputfile="$lt_tool_outputfile.exe"
12519 ;;
12520 esac~
12521 func_to_tool_file "$lt_outputfile"~
12522 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12523 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12524 $RM "$lt_outputfile.manifest";
12525 fi'
12526 ;;
12527 *)
12528 # g++
12529 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12530 # as there is no search path for DLLs.
12531 hardcode_libdir_flag_spec_CXX='-L$libdir'
12532 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12533 allow_undefined_flag_CXX=unsupported
12534 always_export_symbols_CXX=no
12535 enable_shared_with_static_runtimes_CXX=yes
12536
12537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12538 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'
12539 # If the export-symbols file already is a .def file (1st line
12540 # is EXPORTS), use it as is; otherwise, prepend...
12541 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12542 cp $export_symbols $output_objdir/$soname.def;
12543 else
12544 echo EXPORTS > $output_objdir/$soname.def;
12545 cat $export_symbols >> $output_objdir/$soname.def;
12546 fi~
12547 $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'
12548 else
12549 ld_shlibs_CXX=no
12550 fi
12551 ;;
12552 esac
12553 ;;
12554 darwin* | rhapsody*)
12555
12556
12557 archive_cmds_need_lc_CXX=no
12558 hardcode_direct_CXX=no
12559 hardcode_automatic_CXX=yes
12560 hardcode_shlibpath_var_CXX=unsupported
12561 if test "$lt_cv_ld_force_load" = "yes"; then
12562 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\"`'
12563
12564 else
12565 whole_archive_flag_spec_CXX=''
12566 fi
12567 link_all_deplibs_CXX=yes
12568 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12569 case $cc_basename in
12570 ifort*) _lt_dar_can_shared=yes ;;
12571 *) _lt_dar_can_shared=$GCC ;;
12572 esac
12573 if test "$_lt_dar_can_shared" = "yes"; then
12574 output_verbose_link_cmd=func_echo_all
12575 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}"
12576 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12577 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}"
12578 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}"
12579 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12580 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}"
12581 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}"
12582 fi
12583
12584 else
12585 ld_shlibs_CXX=no
12586 fi
12587
12588 ;;
12589
12590 dgux*)
12591 case $cc_basename in
12592 ec++*)
12593 # FIXME: insert proper C++ library support
12594 ld_shlibs_CXX=no
12595 ;;
12596 ghcx*)
12597 # Green Hills C++ Compiler
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12600 ;;
12601 *)
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12604 ;;
12605 esac
12606 ;;
12607
12608 freebsd2.*)
12609 # C++ shared libraries reported to be fairly broken before
12610 # switch to ELF
12611 ld_shlibs_CXX=no
12612 ;;
12613
12614 freebsd-elf*)
12615 archive_cmds_need_lc_CXX=no
12616 ;;
12617
12618 freebsd* | dragonfly*)
12619 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12620 # conventions
12621 ld_shlibs_CXX=yes
12622 ;;
12623
12624 gnu*)
12625 ;;
12626
12627 haiku*)
12628 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12629 link_all_deplibs_CXX=yes
12630 ;;
12631
12632 hpux9*)
12633 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12634 hardcode_libdir_separator_CXX=:
12635 export_dynamic_flag_spec_CXX='${wl}-E'
12636 hardcode_direct_CXX=yes
12637 hardcode_minus_L_CXX=yes # Not in the search PATH,
12638 # but as the default
12639 # location of the library.
12640
12641 case $cc_basename in
12642 CC*)
12643 # FIXME: insert proper C++ library support
12644 ld_shlibs_CXX=no
12645 ;;
12646 aCC*)
12647 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'
12648 # Commands to make compiler produce verbose output that lists
12649 # what "hidden" libraries, object files and flags are used when
12650 # linking a shared library.
12651 #
12652 # There doesn't appear to be a way to prevent this compiler from
12653 # explicitly linking system object files so we need to strip them
12654 # from the output so that they don't get included in the library
12655 # dependencies.
12656 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"'
12657 ;;
12658 *)
12659 if test "$GXX" = yes; then
12660 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'
12661 else
12662 # FIXME: insert proper C++ library support
12663 ld_shlibs_CXX=no
12664 fi
12665 ;;
12666 esac
12667 ;;
12668
12669 hpux10*|hpux11*)
12670 if test $with_gnu_ld = no; then
12671 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12672 hardcode_libdir_separator_CXX=:
12673
12674 case $host_cpu in
12675 hppa*64*|ia64*)
12676 ;;
12677 *)
12678 export_dynamic_flag_spec_CXX='${wl}-E'
12679 ;;
12680 esac
12681 fi
12682 case $host_cpu in
12683 hppa*64*|ia64*)
12684 hardcode_direct_CXX=no
12685 hardcode_shlibpath_var_CXX=no
12686 ;;
12687 *)
12688 hardcode_direct_CXX=yes
12689 hardcode_direct_absolute_CXX=yes
12690 hardcode_minus_L_CXX=yes # Not in the search PATH,
12691 # but as the default
12692 # location of the library.
12693 ;;
12694 esac
12695
12696 case $cc_basename in
12697 CC*)
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12700 ;;
12701 aCC*)
12702 case $host_cpu in
12703 hppa*64*)
12704 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12705 ;;
12706 ia64*)
12707 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12708 ;;
12709 *)
12710 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12711 ;;
12712 esac
12713 # Commands to make compiler produce verbose output that lists
12714 # what "hidden" libraries, object files and flags are used when
12715 # linking a shared library.
12716 #
12717 # There doesn't appear to be a way to prevent this compiler from
12718 # explicitly linking system object files so we need to strip them
12719 # from the output so that they don't get included in the library
12720 # dependencies.
12721 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"'
12722 ;;
12723 *)
12724 if test "$GXX" = yes; then
12725 if test $with_gnu_ld = no; then
12726 case $host_cpu in
12727 hppa*64*)
12728 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12729 ;;
12730 ia64*)
12731 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12732 ;;
12733 *)
12734 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'
12735 ;;
12736 esac
12737 fi
12738 else
12739 # FIXME: insert proper C++ library support
12740 ld_shlibs_CXX=no
12741 fi
12742 ;;
12743 esac
12744 ;;
12745
12746 interix[3-9]*)
12747 hardcode_direct_CXX=no
12748 hardcode_shlibpath_var_CXX=no
12749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12750 export_dynamic_flag_spec_CXX='${wl}-E'
12751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12752 # Instead, shared libraries are loaded at an image base (0x10000000 by
12753 # default) and relocated if they conflict, which is a slow very memory
12754 # consuming and fragmenting process. To avoid this, we pick a random,
12755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12757 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'
12758 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'
12759 ;;
12760 irix5* | irix6*)
12761 case $cc_basename in
12762 CC*)
12763 # SGI C++
12764 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'
12765
12766 # Archives containing C++ object files must be created using
12767 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12768 # necessary to make sure instantiated templates are included
12769 # in the archive.
12770 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12771 ;;
12772 *)
12773 if test "$GXX" = yes; then
12774 if test "$with_gnu_ld" = no; then
12775 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'
12776 else
12777 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'
12778 fi
12779 fi
12780 link_all_deplibs_CXX=yes
12781 ;;
12782 esac
12783 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12784 hardcode_libdir_separator_CXX=:
12785 inherit_rpath_CXX=yes
12786 ;;
12787
12788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12789 case $cc_basename in
12790 KCC*)
12791 # Kuck and Associates, Inc. (KAI) C++ Compiler
12792
12793 # KCC will only create a shared library if the output file
12794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12795 # to its proper name (with version) after linking.
12796 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'
12797 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'
12798 # Commands to make compiler produce verbose output that lists
12799 # what "hidden" libraries, object files and flags are used when
12800 # linking a shared library.
12801 #
12802 # There doesn't appear to be a way to prevent this compiler from
12803 # explicitly linking system object files so we need to strip them
12804 # from the output so that they don't get included in the library
12805 # dependencies.
12806 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"'
12807
12808 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12810
12811 # Archives containing C++ object files must be created using
12812 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12813 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12814 ;;
12815 icpc* | ecpc* )
12816 # Intel C++
12817 with_gnu_ld=yes
12818 # version 8.0 and above of icpc choke on multiply defined symbols
12819 # if we add $predep_objects and $postdep_objects, however 7.1 and
12820 # earlier do not add the objects themselves.
12821 case `$CC -V 2>&1` in
12822 *"Version 7."*)
12823 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12824 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'
12825 ;;
12826 *) # Version 8.0 or newer
12827 tmp_idyn=
12828 case $host_cpu in
12829 ia64*) tmp_idyn=' -i_dynamic';;
12830 esac
12831 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 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'
12833 ;;
12834 esac
12835 archive_cmds_need_lc_CXX=no
12836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12838 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12839 ;;
12840 pgCC* | pgcpp*)
12841 # Portland Group C++ compiler
12842 case `$CC -V` in
12843 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12844 prelink_cmds_CXX='tpldir=Template.dir~
12845 rm -rf $tpldir~
12846 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12847 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12848 old_archive_cmds_CXX='tpldir=Template.dir~
12849 rm -rf $tpldir~
12850 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12851 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12852 $RANLIB $oldlib'
12853 archive_cmds_CXX='tpldir=Template.dir~
12854 rm -rf $tpldir~
12855 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12856 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12857 archive_expsym_cmds_CXX='tpldir=Template.dir~
12858 rm -rf $tpldir~
12859 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12860 $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'
12861 ;;
12862 *) # Version 6 and above use weak symbols
12863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12864 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'
12865 ;;
12866 esac
12867
12868 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12869 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12870 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'
12871 ;;
12872 cxx*)
12873 # Compaq C++
12874 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 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'
12876
12877 runpath_var=LD_RUN_PATH
12878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12879 hardcode_libdir_separator_CXX=:
12880
12881 # Commands to make compiler produce verbose output that lists
12882 # what "hidden" libraries, object files and flags are used when
12883 # linking a shared library.
12884 #
12885 # There doesn't appear to be a way to prevent this compiler from
12886 # explicitly linking system object files so we need to strip them
12887 # from the output so that they don't get included in the library
12888 # dependencies.
12889 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'
12890 ;;
12891 xl* | mpixl* | bgxl*)
12892 # IBM XL 8.0 on PPC, with GNU ld
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12895 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 if test "x$supports_anon_versioning" = xyes; then
12897 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12899 echo "local: *; };" >> $output_objdir/$libname.ver~
12900 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12901 fi
12902 ;;
12903 *)
12904 case `$CC -V 2>&1 | sed 5q` in
12905 *Sun\ C*)
12906 # Sun C++ 5.9
12907 no_undefined_flag_CXX=' -zdefs'
12908 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12909 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'
12910 hardcode_libdir_flag_spec_CXX='-R$libdir'
12911 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'
12912 compiler_needs_object_CXX=yes
12913
12914 # Not sure whether something based on
12915 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12916 # would be better.
12917 output_verbose_link_cmd='func_echo_all'
12918
12919 # Archives containing C++ object files must be created using
12920 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12921 # necessary to make sure instantiated templates are included
12922 # in the archive.
12923 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12924 ;;
12925 esac
12926 ;;
12927 esac
12928 ;;
12929
12930 lynxos*)
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12933 ;;
12934
12935 m88k*)
12936 # FIXME: insert proper C++ library support
12937 ld_shlibs_CXX=no
12938 ;;
12939
12940 mvs*)
12941 case $cc_basename in
12942 cxx*)
12943 # FIXME: insert proper C++ library support
12944 ld_shlibs_CXX=no
12945 ;;
12946 *)
12947 # FIXME: insert proper C++ library support
12948 ld_shlibs_CXX=no
12949 ;;
12950 esac
12951 ;;
12952
12953 netbsd*)
12954 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12955 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12956 wlarc=
12957 hardcode_libdir_flag_spec_CXX='-R$libdir'
12958 hardcode_direct_CXX=yes
12959 hardcode_shlibpath_var_CXX=no
12960 fi
12961 # Workaround some broken pre-1.5 toolchains
12962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12963 ;;
12964
12965 *nto* | *qnx*)
12966 ld_shlibs_CXX=yes
12967 ;;
12968
12969 openbsd2*)
12970 # C++ shared libraries are fairly broken
12971 ld_shlibs_CXX=no
12972 ;;
12973
12974 openbsd*)
12975 if test -f /usr/libexec/ld.so; then
12976 hardcode_direct_CXX=yes
12977 hardcode_shlibpath_var_CXX=no
12978 hardcode_direct_absolute_CXX=yes
12979 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12982 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12983 export_dynamic_flag_spec_CXX='${wl}-E'
12984 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12985 fi
12986 output_verbose_link_cmd=func_echo_all
12987 else
12988 ld_shlibs_CXX=no
12989 fi
12990 ;;
12991
12992 osf3* | osf4* | osf5*)
12993 case $cc_basename in
12994 KCC*)
12995 # Kuck and Associates, Inc. (KAI) C++ Compiler
12996
12997 # KCC will only create a shared library if the output file
12998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12999 # to its proper name (with version) after linking.
13000 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'
13001
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003 hardcode_libdir_separator_CXX=:
13004
13005 # Archives containing C++ object files must be created using
13006 # the KAI C++ compiler.
13007 case $host in
13008 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13009 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13010 esac
13011 ;;
13012 RCC*)
13013 # Rational C++ 2.4.1
13014 # FIXME: insert proper C++ library support
13015 ld_shlibs_CXX=no
13016 ;;
13017 cxx*)
13018 case $host in
13019 osf3*)
13020 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13021 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'
13022 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13023 ;;
13024 *)
13025 allow_undefined_flag_CXX=' -expect_unresolved \*'
13026 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'
13027 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13028 echo "-hidden">> $lib.exp~
13029 $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~
13030 $RM $lib.exp'
13031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13032 ;;
13033 esac
13034
13035 hardcode_libdir_separator_CXX=:
13036
13037 # Commands to make compiler produce verbose output that lists
13038 # what "hidden" libraries, object files and flags are used when
13039 # linking a shared library.
13040 #
13041 # There doesn't appear to be a way to prevent this compiler from
13042 # explicitly linking system object files so we need to strip them
13043 # from the output so that they don't get included in the library
13044 # dependencies.
13045 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"'
13046 ;;
13047 *)
13048 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13049 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13050 case $host in
13051 osf3*)
13052 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'
13053 ;;
13054 *)
13055 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'
13056 ;;
13057 esac
13058
13059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13060 hardcode_libdir_separator_CXX=:
13061
13062 # Commands to make compiler produce verbose output that lists
13063 # what "hidden" libraries, object files and flags are used when
13064 # linking a shared library.
13065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13066
13067 else
13068 # FIXME: insert proper C++ library support
13069 ld_shlibs_CXX=no
13070 fi
13071 ;;
13072 esac
13073 ;;
13074
13075 psos*)
13076 # FIXME: insert proper C++ library support
13077 ld_shlibs_CXX=no
13078 ;;
13079
13080 sunos4*)
13081 case $cc_basename in
13082 CC*)
13083 # Sun C++ 4.x
13084 # FIXME: insert proper C++ library support
13085 ld_shlibs_CXX=no
13086 ;;
13087 lcc*)
13088 # Lucid
13089 # FIXME: insert proper C++ library support
13090 ld_shlibs_CXX=no
13091 ;;
13092 *)
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 esac
13097 ;;
13098
13099 solaris*)
13100 case $cc_basename in
13101 CC* | sunCC*)
13102 # Sun C++ 4.2, 5.x and Centerline C++
13103 archive_cmds_need_lc_CXX=yes
13104 no_undefined_flag_CXX=' -zdefs'
13105 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13106 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13107 $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'
13108
13109 hardcode_libdir_flag_spec_CXX='-R$libdir'
13110 hardcode_shlibpath_var_CXX=no
13111 case $host_os in
13112 solaris2.[0-5] | solaris2.[0-5].*) ;;
13113 *)
13114 # The compiler driver will combine and reorder linker options,
13115 # but understands `-z linker_flag'.
13116 # Supported since Solaris 2.6 (maybe 2.5.1?)
13117 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13118 ;;
13119 esac
13120 link_all_deplibs_CXX=yes
13121
13122 output_verbose_link_cmd='func_echo_all'
13123
13124 # Archives containing C++ object files must be created using
13125 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13126 # necessary to make sure instantiated templates are included
13127 # in the archive.
13128 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13129 ;;
13130 gcx*)
13131 # Green Hills C++ Compiler
13132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13133
13134 # The C++ compiler must be used to create the archive.
13135 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13136 ;;
13137 *)
13138 # GNU C++ compiler with Solaris linker
13139 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13140 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13141 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13142 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13143 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13144 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13145
13146 # Commands to make compiler produce verbose output that lists
13147 # what "hidden" libraries, object files and flags are used when
13148 # linking a shared library.
13149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13150 else
13151 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13152 # platform.
13153 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13154 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13155 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13156
13157 # Commands to make compiler produce verbose output that lists
13158 # what "hidden" libraries, object files and flags are used when
13159 # linking a shared library.
13160 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13161 fi
13162
13163 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13164 case $host_os in
13165 solaris2.[0-5] | solaris2.[0-5].*) ;;
13166 *)
13167 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13168 ;;
13169 esac
13170 fi
13171 ;;
13172 esac
13173 ;;
13174
13175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13176 no_undefined_flag_CXX='${wl}-z,text'
13177 archive_cmds_need_lc_CXX=no
13178 hardcode_shlibpath_var_CXX=no
13179 runpath_var='LD_RUN_PATH'
13180
13181 case $cc_basename in
13182 CC*)
13183 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13184 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13185 ;;
13186 *)
13187 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13188 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13189 ;;
13190 esac
13191 ;;
13192
13193 sysv5* | sco3.2v5* | sco5v6*)
13194 # Note: We can NOT use -z defs as we might desire, because we do not
13195 # link with -lc, and that would cause any symbols used from libc to
13196 # always be unresolved, which means just about no library would
13197 # ever link correctly. If we're not using GNU ld we use -z text
13198 # though, which does catch some bad symbols but isn't as heavy-handed
13199 # as -z defs.
13200 no_undefined_flag_CXX='${wl}-z,text'
13201 allow_undefined_flag_CXX='${wl}-z,nodefs'
13202 archive_cmds_need_lc_CXX=no
13203 hardcode_shlibpath_var_CXX=no
13204 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13205 hardcode_libdir_separator_CXX=':'
13206 link_all_deplibs_CXX=yes
13207 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13208 runpath_var='LD_RUN_PATH'
13209
13210 case $cc_basename in
13211 CC*)
13212 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13213 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13214 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13215 '"$old_archive_cmds_CXX"
13216 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13217 '"$reload_cmds_CXX"
13218 ;;
13219 *)
13220 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13221 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13222 ;;
13223 esac
13224 ;;
13225
13226 tandem*)
13227 case $cc_basename in
13228 NCC*)
13229 # NonStop-UX NCC 3.20
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13232 ;;
13233 *)
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 ;;
13237 esac
13238 ;;
13239
13240 vxworks*)
13241 # FIXME: insert proper C++ library support
13242 ld_shlibs_CXX=no
13243 ;;
13244
13245 *)
13246 # FIXME: insert proper C++ library support
13247 ld_shlibs_CXX=no
13248 ;;
13249 esac
13250
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13252$as_echo "$ld_shlibs_CXX" >&6; }
13253 test "$ld_shlibs_CXX" = no && can_build_shared=no
13254
13255 GCC_CXX="$GXX"
13256 LD_CXX="$LD"
13257
13258 ## CAVEAT EMPTOR:
13259 ## There is no encapsulation within the following macros, do not change
13260 ## the running order or otherwise move them around unless you know exactly
13261 ## what you are doing...
13262 # Dependencies to place before and after the object being linked:
13263predep_objects_CXX=
13264postdep_objects_CXX=
13265predeps_CXX=
13266postdeps_CXX=
13267compiler_lib_search_path_CXX=
13268
13269cat > conftest.$ac_ext <<_LT_EOF
13270class Foo
13271{
13272public:
13273 Foo (void) { a = 0; }
13274private:
13275 int a;
13276};
13277_LT_EOF
13278
13279
13280_lt_libdeps_save_CFLAGS=$CFLAGS
13281case "$CC $CFLAGS " in #(
13282*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13283*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13284*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13285esac
13286
13287if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13288 (eval $ac_compile) 2>&5
13289 ac_status=$?
13290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13291 test $ac_status = 0; }; then
13292 # Parse the compiler output and extract the necessary
13293 # objects, libraries and library flags.
13294
13295 # Sentinel used to keep track of whether or not we are before
13296 # the conftest object file.
13297 pre_test_object_deps_done=no
13298
13299 for p in `eval "$output_verbose_link_cmd"`; do
13300 case ${prev}${p} in
13301
13302 -L* | -R* | -l*)
13303 # Some compilers place space between "-{L,R}" and the path.
13304 # Remove the space.
13305 if test $p = "-L" ||
13306 test $p = "-R"; then
13307 prev=$p
13308 continue
13309 fi
13310
13311 # Expand the sysroot to ease extracting the directories later.
13312 if test -z "$prev"; then
13313 case $p in
13314 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13315 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13316 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13317 esac
13318 fi
13319 case $p in
13320 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13321 esac
13322 if test "$pre_test_object_deps_done" = no; then
13323 case ${prev} in
13324 -L | -R)
13325 # Internal compiler library paths should come after those
13326 # provided the user. The postdeps already come after the
13327 # user supplied libs so there is no need to process them.
13328 if test -z "$compiler_lib_search_path_CXX"; then
13329 compiler_lib_search_path_CXX="${prev}${p}"
13330 else
13331 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13332 fi
13333 ;;
13334 # The "-l" case would never come before the object being
13335 # linked, so don't bother handling this case.
13336 esac
13337 else
13338 if test -z "$postdeps_CXX"; then
13339 postdeps_CXX="${prev}${p}"
13340 else
13341 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13342 fi
13343 fi
13344 prev=
13345 ;;
13346
13347 *.lto.$objext) ;; # Ignore GCC LTO objects
13348 *.$objext)
13349 # This assumes that the test object file only shows up
13350 # once in the compiler output.
13351 if test "$p" = "conftest.$objext"; then
13352 pre_test_object_deps_done=yes
13353 continue
13354 fi
13355
13356 if test "$pre_test_object_deps_done" = no; then
13357 if test -z "$predep_objects_CXX"; then
13358 predep_objects_CXX="$p"
13359 else
13360 predep_objects_CXX="$predep_objects_CXX $p"
13361 fi
13362 else
13363 if test -z "$postdep_objects_CXX"; then
13364 postdep_objects_CXX="$p"
13365 else
13366 postdep_objects_CXX="$postdep_objects_CXX $p"
13367 fi
13368 fi
13369 ;;
13370
13371 *) ;; # Ignore the rest.
13372
13373 esac
13374 done
13375
13376 # Clean up.
13377 rm -f a.out a.exe
13378else
13379 echo "libtool.m4: error: problem compiling CXX test program"
13380fi
13381
13382$RM -f confest.$objext
13383CFLAGS=$_lt_libdeps_save_CFLAGS
13384
13385# PORTME: override above test on systems where it is broken
13386case $host_os in
13387interix[3-9]*)
13388 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13389 # hack all around it, let's just trust "g++" to DTRT.
13390 predep_objects_CXX=
13391 postdep_objects_CXX=
13392 postdeps_CXX=
13393 ;;
13394
13395linux*)
13396 case `$CC -V 2>&1 | sed 5q` in
13397 *Sun\ C*)
13398 # Sun C++ 5.9
13399
13400 # The more standards-conforming stlport4 library is
13401 # incompatible with the Cstd library. Avoid specifying
13402 # it if it's in CXXFLAGS. Ignore libCrun as
13403 # -library=stlport4 depends on it.
13404 case " $CXX $CXXFLAGS " in
13405 *" -library=stlport4 "*)
13406 solaris_use_stlport4=yes
13407 ;;
13408 esac
13409
13410 if test "$solaris_use_stlport4" != yes; then
13411 postdeps_CXX='-library=Cstd -library=Crun'
13412 fi
13413 ;;
13414 esac
13415 ;;
13416
13417solaris*)
13418 case $cc_basename in
13419 CC* | sunCC*)
13420 # The more standards-conforming stlport4 library is
13421 # incompatible with the Cstd library. Avoid specifying
13422 # it if it's in CXXFLAGS. Ignore libCrun as
13423 # -library=stlport4 depends on it.
13424 case " $CXX $CXXFLAGS " in
13425 *" -library=stlport4 "*)
13426 solaris_use_stlport4=yes
13427 ;;
13428 esac
13429
13430 # Adding this requires a known-good setup of shared libraries for
13431 # Sun compiler versions before 5.6, else PIC objects from an old
13432 # archive will be linked into the output, leading to subtle bugs.
13433 if test "$solaris_use_stlport4" != yes; then
13434 postdeps_CXX='-library=Cstd -library=Crun'
13435 fi
13436 ;;
13437 esac
13438 ;;
13439esac
13440
13441
13442case " $postdeps_CXX " in
13443*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13444esac
13445 compiler_lib_search_dirs_CXX=
13446if test -n "${compiler_lib_search_path_CXX}"; then
13447 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13448fi
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480 lt_prog_compiler_wl_CXX=
13481lt_prog_compiler_pic_CXX=
13482lt_prog_compiler_static_CXX=
13483
13484
13485 # C++ specific cases for pic, static, wl, etc.
13486 if test "$GXX" = yes; then
13487 lt_prog_compiler_wl_CXX='-Wl,'
13488 lt_prog_compiler_static_CXX='-static'
13489
13490 case $host_os in
13491 aix*)
13492 # All AIX code is PIC.
13493 if test "$host_cpu" = ia64; then
13494 # AIX 5 now supports IA64 processor
13495 lt_prog_compiler_static_CXX='-Bstatic'
13496 fi
13497 ;;
13498
13499 amigaos*)
13500 case $host_cpu in
13501 powerpc)
13502 # see comment about AmigaOS4 .so support
13503 lt_prog_compiler_pic_CXX='-fPIC'
13504 ;;
13505 m68k)
13506 # FIXME: we need at least 68020 code to build shared libraries, but
13507 # adding the `-m68020' flag to GCC prevents building anything better,
13508 # like `-m68040'.
13509 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13510 ;;
13511 esac
13512 ;;
13513
13514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13515 # PIC is the default for these OSes.
13516 ;;
13517 mingw* | cygwin* | os2* | pw32* | cegcc*)
13518 # This hack is so that the source file can tell whether it is being
13519 # built for inclusion in a dll (and should export symbols for example).
13520 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13521 # (--disable-auto-import) libraries
13522 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13523 ;;
13524 darwin* | rhapsody*)
13525 # PIC is the default on this platform
13526 # Common symbols not allowed in MH_DYLIB files
13527 lt_prog_compiler_pic_CXX='-fno-common'
13528 ;;
13529 *djgpp*)
13530 # DJGPP does not support shared libraries at all
13531 lt_prog_compiler_pic_CXX=
13532 ;;
13533 haiku*)
13534 # PIC is the default for Haiku.
13535 # The "-static" flag exists, but is broken.
13536 lt_prog_compiler_static_CXX=
13537 ;;
13538 interix[3-9]*)
13539 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13540 # Instead, we relocate shared libraries at runtime.
13541 ;;
13542 sysv4*MP*)
13543 if test -d /usr/nec; then
13544 lt_prog_compiler_pic_CXX=-Kconform_pic
13545 fi
13546 ;;
13547 hpux*)
13548 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13549 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13550 # sets the default TLS model and affects inlining.
13551 case $host_cpu in
13552 hppa*64*)
13553 ;;
13554 *)
13555 lt_prog_compiler_pic_CXX='-fPIC'
13556 ;;
13557 esac
13558 ;;
13559 *qnx* | *nto*)
13560 # QNX uses GNU C++, but need to define -shared option too, otherwise
13561 # it will coredump.
13562 lt_prog_compiler_pic_CXX='-fPIC -shared'
13563 ;;
13564 *)
13565 lt_prog_compiler_pic_CXX='-fPIC'
13566 ;;
13567 esac
13568 else
13569 case $host_os in
13570 aix[4-9]*)
13571 # All AIX code is PIC.
13572 if test "$host_cpu" = ia64; then
13573 # AIX 5 now supports IA64 processor
13574 lt_prog_compiler_static_CXX='-Bstatic'
13575 else
13576 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13577 fi
13578 ;;
13579 chorus*)
13580 case $cc_basename in
13581 cxch68*)
13582 # Green Hills C++ Compiler
13583 # _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"
13584 ;;
13585 esac
13586 ;;
13587 mingw* | cygwin* | os2* | pw32* | cegcc*)
13588 # This hack is so that the source file can tell whether it is being
13589 # built for inclusion in a dll (and should export symbols for example).
13590 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13591 ;;
13592 dgux*)
13593 case $cc_basename in
13594 ec++*)
13595 lt_prog_compiler_pic_CXX='-KPIC'
13596 ;;
13597 ghcx*)
13598 # Green Hills C++ Compiler
13599 lt_prog_compiler_pic_CXX='-pic'
13600 ;;
13601 *)
13602 ;;
13603 esac
13604 ;;
13605 freebsd* | dragonfly*)
13606 # FreeBSD uses GNU C++
13607 ;;
13608 hpux9* | hpux10* | hpux11*)
13609 case $cc_basename in
13610 CC*)
13611 lt_prog_compiler_wl_CXX='-Wl,'
13612 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13613 if test "$host_cpu" != ia64; then
13614 lt_prog_compiler_pic_CXX='+Z'
13615 fi
13616 ;;
13617 aCC*)
13618 lt_prog_compiler_wl_CXX='-Wl,'
13619 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13620 case $host_cpu in
13621 hppa*64*|ia64*)
13622 # +Z the default
13623 ;;
13624 *)
13625 lt_prog_compiler_pic_CXX='+Z'
13626 ;;
13627 esac
13628 ;;
13629 *)
13630 ;;
13631 esac
13632 ;;
13633 interix*)
13634 # This is c89, which is MS Visual C++ (no shared libs)
13635 # Anyone wants to do a port?
13636 ;;
13637 irix5* | irix6* | nonstopux*)
13638 case $cc_basename in
13639 CC*)
13640 lt_prog_compiler_wl_CXX='-Wl,'
13641 lt_prog_compiler_static_CXX='-non_shared'
13642 # CC pic flag -KPIC is the default.
13643 ;;
13644 *)
13645 ;;
13646 esac
13647 ;;
13648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13649 case $cc_basename in
13650 KCC*)
13651 # KAI C++ Compiler
13652 lt_prog_compiler_wl_CXX='--backend -Wl,'
13653 lt_prog_compiler_pic_CXX='-fPIC'
13654 ;;
13655 ecpc* )
13656 # old Intel C++ for x86_64 which still supported -KPIC.
13657 lt_prog_compiler_wl_CXX='-Wl,'
13658 lt_prog_compiler_pic_CXX='-KPIC'
13659 lt_prog_compiler_static_CXX='-static'
13660 ;;
13661 icpc* )
13662 # Intel C++, used to be incompatible with GCC.
13663 # ICC 10 doesn't accept -KPIC any more.
13664 lt_prog_compiler_wl_CXX='-Wl,'
13665 lt_prog_compiler_pic_CXX='-fPIC'
13666 lt_prog_compiler_static_CXX='-static'
13667 ;;
13668 pgCC* | pgcpp*)
13669 # Portland Group C++ compiler
13670 lt_prog_compiler_wl_CXX='-Wl,'
13671 lt_prog_compiler_pic_CXX='-fpic'
13672 lt_prog_compiler_static_CXX='-Bstatic'
13673 ;;
13674 cxx*)
13675 # Compaq C++
13676 # Make sure the PIC flag is empty. It appears that all Alpha
13677 # Linux and Compaq Tru64 Unix objects are PIC.
13678 lt_prog_compiler_pic_CXX=
13679 lt_prog_compiler_static_CXX='-non_shared'
13680 ;;
13681 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13682 # IBM XL 8.0, 9.0 on PPC and BlueGene
13683 lt_prog_compiler_wl_CXX='-Wl,'
13684 lt_prog_compiler_pic_CXX='-qpic'
13685 lt_prog_compiler_static_CXX='-qstaticlink'
13686 ;;
13687 *)
13688 case `$CC -V 2>&1 | sed 5q` in
13689 *Sun\ C*)
13690 # Sun C++ 5.9
13691 lt_prog_compiler_pic_CXX='-KPIC'
13692 lt_prog_compiler_static_CXX='-Bstatic'
13693 lt_prog_compiler_wl_CXX='-Qoption ld '
13694 ;;
13695 esac
13696 ;;
13697 esac
13698 ;;
13699 lynxos*)
13700 ;;
13701 m88k*)
13702 ;;
13703 mvs*)
13704 case $cc_basename in
13705 cxx*)
13706 lt_prog_compiler_pic_CXX='-W c,exportall'
13707 ;;
13708 *)
13709 ;;
13710 esac
13711 ;;
13712 netbsd*)
13713 ;;
13714 *qnx* | *nto*)
13715 # QNX uses GNU C++, but need to define -shared option too, otherwise
13716 # it will coredump.
13717 lt_prog_compiler_pic_CXX='-fPIC -shared'
13718 ;;
13719 osf3* | osf4* | osf5*)
13720 case $cc_basename in
13721 KCC*)
13722 lt_prog_compiler_wl_CXX='--backend -Wl,'
13723 ;;
13724 RCC*)
13725 # Rational C++ 2.4.1
13726 lt_prog_compiler_pic_CXX='-pic'
13727 ;;
13728 cxx*)
13729 # Digital/Compaq C++
13730 lt_prog_compiler_wl_CXX='-Wl,'
13731 # Make sure the PIC flag is empty. It appears that all Alpha
13732 # Linux and Compaq Tru64 Unix objects are PIC.
13733 lt_prog_compiler_pic_CXX=
13734 lt_prog_compiler_static_CXX='-non_shared'
13735 ;;
13736 *)
13737 ;;
13738 esac
13739 ;;
13740 psos*)
13741 ;;
13742 solaris*)
13743 case $cc_basename in
13744 CC* | sunCC*)
13745 # Sun C++ 4.2, 5.x and Centerline C++
13746 lt_prog_compiler_pic_CXX='-KPIC'
13747 lt_prog_compiler_static_CXX='-Bstatic'
13748 lt_prog_compiler_wl_CXX='-Qoption ld '
13749 ;;
13750 gcx*)
13751 # Green Hills C++ Compiler
13752 lt_prog_compiler_pic_CXX='-PIC'
13753 ;;
13754 *)
13755 ;;
13756 esac
13757 ;;
13758 sunos4*)
13759 case $cc_basename in
13760 CC*)
13761 # Sun C++ 4.x
13762 lt_prog_compiler_pic_CXX='-pic'
13763 lt_prog_compiler_static_CXX='-Bstatic'
13764 ;;
13765 lcc*)
13766 # Lucid
13767 lt_prog_compiler_pic_CXX='-pic'
13768 ;;
13769 *)
13770 ;;
13771 esac
13772 ;;
13773 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13774 case $cc_basename in
13775 CC*)
13776 lt_prog_compiler_wl_CXX='-Wl,'
13777 lt_prog_compiler_pic_CXX='-KPIC'
13778 lt_prog_compiler_static_CXX='-Bstatic'
13779 ;;
13780 esac
13781 ;;
13782 tandem*)
13783 case $cc_basename in
13784 NCC*)
13785 # NonStop-UX NCC 3.20
13786 lt_prog_compiler_pic_CXX='-KPIC'
13787 ;;
13788 *)
13789 ;;
13790 esac
13791 ;;
13792 vxworks*)
13793 ;;
13794 *)
13795 lt_prog_compiler_can_build_shared_CXX=no
13796 ;;
13797 esac
13798 fi
13799
13800case $host_os in
13801 # For platforms which do not support PIC, -DPIC is meaningless:
13802 *djgpp*)
13803 lt_prog_compiler_pic_CXX=
13804 ;;
13805 *)
13806 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13807 ;;
13808esac
13809
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13811$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13812if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814else
13815 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13816fi
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13818$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13819lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13820
13821#
13822# Check to make sure the PIC flag actually works.
13823#
13824if test -n "$lt_prog_compiler_pic_CXX"; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13826$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13827if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829else
13830 lt_cv_prog_compiler_pic_works_CXX=no
13831 ac_outfile=conftest.$ac_objext
13832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13833 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13834 # Insert the option either (1) after the last *FLAGS variable, or
13835 # (2) before a word containing "conftest.", or (3) at the end.
13836 # Note that $ac_compile itself does not contain backslashes and begins
13837 # with a dollar sign (not a hyphen), so the echo should work correctly.
13838 # The option is referenced via a variable to avoid confusing sed.
13839 lt_compile=`echo "$ac_compile" | $SED \
13840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842 -e 's:$: $lt_compiler_flag:'`
13843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13844 (eval "$lt_compile" 2>conftest.err)
13845 ac_status=$?
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 if (exit $ac_status) && test -s "$ac_outfile"; then
13849 # The compiler can only warn and ignore the option if not recognized
13850 # So say no if there are warnings other than the usual output.
13851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13854 lt_cv_prog_compiler_pic_works_CXX=yes
13855 fi
13856 fi
13857 $RM conftest*
13858
13859fi
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13861$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13862
13863if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13864 case $lt_prog_compiler_pic_CXX in
13865 "" | " "*) ;;
13866 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13867 esac
13868else
13869 lt_prog_compiler_pic_CXX=
13870 lt_prog_compiler_can_build_shared_CXX=no
13871fi
13872
13873fi
13874
13875
13876
13877
13878
13879#
13880# Check to make sure the static flag actually works.
13881#
13882wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13884$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13885if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887else
13888 lt_cv_prog_compiler_static_works_CXX=no
13889 save_LDFLAGS="$LDFLAGS"
13890 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13891 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13892 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13893 # The linker can only warn and ignore the option if not recognized
13894 # So say no if there are warnings
13895 if test -s conftest.err; then
13896 # Append any errors to the config.log.
13897 cat conftest.err 1>&5
13898 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13900 if diff conftest.exp conftest.er2 >/dev/null; then
13901 lt_cv_prog_compiler_static_works_CXX=yes
13902 fi
13903 else
13904 lt_cv_prog_compiler_static_works_CXX=yes
13905 fi
13906 fi
13907 $RM -r conftest*
13908 LDFLAGS="$save_LDFLAGS"
13909
13910fi
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13912$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13913
13914if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13915 :
13916else
13917 lt_prog_compiler_static_CXX=
13918fi
13919
13920
13921
13922
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13924$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13925if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927else
13928 lt_cv_prog_compiler_c_o_CXX=no
13929 $RM -r conftest 2>/dev/null
13930 mkdir conftest
13931 cd conftest
13932 mkdir out
13933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13934
13935 lt_compiler_flag="-o out/conftest2.$ac_objext"
13936 # Insert the option either (1) after the last *FLAGS variable, or
13937 # (2) before a word containing "conftest.", or (3) at the end.
13938 # Note that $ac_compile itself does not contain backslashes and begins
13939 # with a dollar sign (not a hyphen), so the echo should work correctly.
13940 lt_compile=`echo "$ac_compile" | $SED \
13941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13943 -e 's:$: $lt_compiler_flag:'`
13944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13945 (eval "$lt_compile" 2>out/conftest.err)
13946 ac_status=$?
13947 cat out/conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13950 then
13951 # The compiler can only warn and ignore the option if not recognized
13952 # So say no if there are warnings
13953 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13954 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13955 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13956 lt_cv_prog_compiler_c_o_CXX=yes
13957 fi
13958 fi
13959 chmod u+w . 2>&5
13960 $RM conftest*
13961 # SGI C++ compiler will create directory out/ii_files/ for
13962 # template instantiation
13963 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13964 $RM out/* && rmdir out
13965 cd ..
13966 $RM -r conftest
13967 $RM conftest*
13968
13969fi
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13971$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13972
13973
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13976$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13977if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979else
13980 lt_cv_prog_compiler_c_o_CXX=no
13981 $RM -r conftest 2>/dev/null
13982 mkdir conftest
13983 cd conftest
13984 mkdir out
13985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13986
13987 lt_compiler_flag="-o out/conftest2.$ac_objext"
13988 # Insert the option either (1) after the last *FLAGS variable, or
13989 # (2) before a word containing "conftest.", or (3) at the end.
13990 # Note that $ac_compile itself does not contain backslashes and begins
13991 # with a dollar sign (not a hyphen), so the echo should work correctly.
13992 lt_compile=`echo "$ac_compile" | $SED \
13993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13995 -e 's:$: $lt_compiler_flag:'`
13996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13997 (eval "$lt_compile" 2>out/conftest.err)
13998 ac_status=$?
13999 cat out/conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14002 then
14003 # The compiler can only warn and ignore the option if not recognized
14004 # So say no if there are warnings
14005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14008 lt_cv_prog_compiler_c_o_CXX=yes
14009 fi
14010 fi
14011 chmod u+w . 2>&5
14012 $RM conftest*
14013 # SGI C++ compiler will create directory out/ii_files/ for
14014 # template instantiation
14015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14016 $RM out/* && rmdir out
14017 cd ..
14018 $RM -r conftest
14019 $RM conftest*
14020
14021fi
14022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14023$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14024
14025
14026
14027
14028hard_links="nottested"
14029if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14030 # do not overwrite the value of need_locks provided by the user
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14032$as_echo_n "checking if we can lock with hard links... " >&6; }
14033 hard_links=yes
14034 $RM conftest*
14035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14036 touch conftest.a
14037 ln conftest.a conftest.b 2>&5 || hard_links=no
14038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14040$as_echo "$hard_links" >&6; }
14041 if test "$hard_links" = no; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14043$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14044 need_locks=warn
14045 fi
14046else
14047 need_locks=no
14048fi
14049
14050
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14053$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14054
14055 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14056 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14057 case $host_os in
14058 aix[4-9]*)
14059 # If we're using GNU nm, then we don't want the "-C" option.
14060 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14061 # Also, AIX nm treats weak defined symbols like other global defined
14062 # symbols, whereas GNU nm marks them as "W".
14063 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14064 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'
14065 else
14066 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'
14067 fi
14068 ;;
14069 pw32*)
14070 export_symbols_cmds_CXX="$ltdll_cmds"
14071 ;;
14072 cygwin* | mingw* | cegcc*)
14073 case $cc_basename in
14074 cl*)
14075 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14076 ;;
14077 *)
14078 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'
14079 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14080 ;;
14081 esac
14082 ;;
14083 *)
14084 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14085 ;;
14086 esac
14087
14088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14089$as_echo "$ld_shlibs_CXX" >&6; }
14090test "$ld_shlibs_CXX" = no && can_build_shared=no
14091
14092with_gnu_ld_CXX=$with_gnu_ld
14093
14094
14095
14096
14097
14098
14099#
14100# Do we need to explicitly link libc?
14101#
14102case "x$archive_cmds_need_lc_CXX" in
14103x|xyes)
14104 # Assume -lc should be added
14105 archive_cmds_need_lc_CXX=yes
14106
14107 if test "$enable_shared" = yes && test "$GCC" = yes; then
14108 case $archive_cmds_CXX in
14109 *'~'*)
14110 # FIXME: we may have to deal with multi-command sequences.
14111 ;;
14112 '$CC '*)
14113 # Test whether the compiler implicitly links with -lc since on some
14114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14115 # to ld, don't add -lc before -lgcc.
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14117$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14118if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120else
14121 $RM conftest*
14122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14123
14124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14125 (eval $ac_compile) 2>&5
14126 ac_status=$?
14127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128 test $ac_status = 0; } 2>conftest.err; then
14129 soname=conftest
14130 lib=conftest
14131 libobjs=conftest.$ac_objext
14132 deplibs=
14133 wl=$lt_prog_compiler_wl_CXX
14134 pic_flag=$lt_prog_compiler_pic_CXX
14135 compiler_flags=-v
14136 linker_flags=-v
14137 verstring=
14138 output_objdir=.
14139 libname=conftest
14140 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14141 allow_undefined_flag_CXX=
14142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14143 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14144 ac_status=$?
14145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14146 test $ac_status = 0; }
14147 then
14148 lt_cv_archive_cmds_need_lc_CXX=no
14149 else
14150 lt_cv_archive_cmds_need_lc_CXX=yes
14151 fi
14152 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14153 else
14154 cat conftest.err 1>&5
14155 fi
14156 $RM conftest*
14157
14158fi
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14160$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14161 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14162 ;;
14163 esac
14164 fi
14165 ;;
14166esac
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14230$as_echo_n "checking dynamic linker characteristics... " >&6; }
14231
14232library_names_spec=
14233libname_spec='lib$name'
14234soname_spec=
14235shrext_cmds=".so"
14236postinstall_cmds=
14237postuninstall_cmds=
14238finish_cmds=
14239finish_eval=
14240shlibpath_var=
14241shlibpath_overrides_runpath=unknown
14242version_type=none
14243dynamic_linker="$host_os ld.so"
14244sys_lib_dlsearch_path_spec="/lib /usr/lib"
14245need_lib_prefix=unknown
14246hardcode_into_libs=no
14247
14248# when you set need_version to no, make sure it does not cause -set_version
14249# flags to be left without arguments
14250need_version=unknown
14251
14252case $host_os in
14253aix3*)
14254 version_type=linux # correct to gnu/linux during the next big refactor
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14256 shlibpath_var=LIBPATH
14257
14258 # AIX 3 has no versioning support, so we append a major version to the name.
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 ;;
14261
14262aix[4-9]*)
14263 version_type=linux # correct to gnu/linux during the next big refactor
14264 need_lib_prefix=no
14265 need_version=no
14266 hardcode_into_libs=yes
14267 if test "$host_cpu" = ia64; then
14268 # AIX 5 supports IA64
14269 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 else
14272 # With GCC up to 2.95.x, collect2 would create an import file
14273 # for dependence libraries. The import file would start with
14274 # the line `#! .'. This would cause the generated library to
14275 # depend on `.', always an invalid library. This was fixed in
14276 # development snapshots of GCC prior to 3.0.
14277 case $host_os in
14278 aix4 | aix4.[01] | aix4.[01].*)
14279 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14280 echo ' yes '
14281 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14282 :
14283 else
14284 can_build_shared=no
14285 fi
14286 ;;
14287 esac
14288 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14289 # soname into executable. Probably we can add versioning support to
14290 # collect2, so additional links can be useful in future.
14291 if test "$aix_use_runtimelinking" = yes; then
14292 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14293 # instead of lib<name>.a to let people know that these are not
14294 # typical AIX shared libraries.
14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14296 else
14297 # We preserve .a as extension for shared libraries through AIX4.2
14298 # and later when we are not doing run time linking.
14299 library_names_spec='${libname}${release}.a $libname.a'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 fi
14302 shlibpath_var=LIBPATH
14303 fi
14304 ;;
14305
14306amigaos*)
14307 case $host_cpu in
14308 powerpc)
14309 # Since July 2007 AmigaOS4 officially supports .so libraries.
14310 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312 ;;
14313 m68k)
14314 library_names_spec='$libname.ixlibrary $libname.a'
14315 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14316 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'
14317 ;;
14318 esac
14319 ;;
14320
14321beos*)
14322 library_names_spec='${libname}${shared_ext}'
14323 dynamic_linker="$host_os ld.so"
14324 shlibpath_var=LIBRARY_PATH
14325 ;;
14326
14327bsdi[45]*)
14328 version_type=linux # correct to gnu/linux during the next big refactor
14329 need_version=no
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14333 shlibpath_var=LD_LIBRARY_PATH
14334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14336 # the default ld.so.conf also contains /usr/contrib/lib and
14337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14338 # libtool to hard-code these into programs
14339 ;;
14340
14341cygwin* | mingw* | pw32* | cegcc*)
14342 version_type=windows
14343 shrext_cmds=".dll"
14344 need_version=no
14345 need_lib_prefix=no
14346
14347 case $GCC,$cc_basename in
14348 yes,*)
14349 # gcc
14350 library_names_spec='$libname.dll.a'
14351 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14352 postinstall_cmds='base_file=`basename \${file}`~
14353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14354 dldir=$destdir/`dirname \$dlpath`~
14355 test -d \$dldir || mkdir -p \$dldir~
14356 $install_prog $dir/$dlname \$dldir/$dlname~
14357 chmod a+x \$dldir/$dlname~
14358 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14359 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14360 fi'
14361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14362 dlpath=$dir/\$dldll~
14363 $RM \$dlpath'
14364 shlibpath_overrides_runpath=yes
14365
14366 case $host_os in
14367 cygwin*)
14368 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14369 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14370
14371 ;;
14372 mingw* | cegcc*)
14373 # MinGW DLLs use traditional 'lib' prefix
14374 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14375 ;;
14376 pw32*)
14377 # pw32 DLLs use 'pw' prefix rather than 'lib'
14378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14379 ;;
14380 esac
14381 dynamic_linker='Win32 ld.exe'
14382 ;;
14383
14384 *,cl*)
14385 # Native MSVC
14386 libname_spec='$name'
14387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14388 library_names_spec='${libname}.dll.lib'
14389
14390 case $build_os in
14391 mingw*)
14392 sys_lib_search_path_spec=
14393 lt_save_ifs=$IFS
14394 IFS=';'
14395 for lt_path in $LIB
14396 do
14397 IFS=$lt_save_ifs
14398 # Let DOS variable expansion print the short 8.3 style file name.
14399 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14400 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14401 done
14402 IFS=$lt_save_ifs
14403 # Convert to MSYS style.
14404 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14405 ;;
14406 cygwin*)
14407 # Convert to unix form, then to dos form, then back to unix form
14408 # but this time dos style (no spaces!) so that the unix form looks
14409 # like /cygdrive/c/PROGRA~1:/cygdr...
14410 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14411 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14412 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14413 ;;
14414 *)
14415 sys_lib_search_path_spec="$LIB"
14416 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14417 # It is most probably a Windows format PATH.
14418 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14419 else
14420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14421 fi
14422 # FIXME: find the short name or the path components, as spaces are
14423 # common. (e.g. "Program Files" -> "PROGRA~1")
14424 ;;
14425 esac
14426
14427 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14428 postinstall_cmds='base_file=`basename \${file}`~
14429 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14430 dldir=$destdir/`dirname \$dlpath`~
14431 test -d \$dldir || mkdir -p \$dldir~
14432 $install_prog $dir/$dlname \$dldir/$dlname'
14433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14434 dlpath=$dir/\$dldll~
14435 $RM \$dlpath'
14436 shlibpath_overrides_runpath=yes
14437 dynamic_linker='Win32 link.exe'
14438 ;;
14439
14440 *)
14441 # Assume MSVC wrapper
14442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14443 dynamic_linker='Win32 ld.exe'
14444 ;;
14445 esac
14446 # FIXME: first we should search . and the directory the executable is in
14447 shlibpath_var=PATH
14448 ;;
14449
14450darwin* | rhapsody*)
14451 dynamic_linker="$host_os dyld"
14452 version_type=darwin
14453 need_lib_prefix=no
14454 need_version=no
14455 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14456 soname_spec='${libname}${release}${major}$shared_ext'
14457 shlibpath_overrides_runpath=yes
14458 shlibpath_var=DYLD_LIBRARY_PATH
14459 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14460
14461 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14462 ;;
14463
14464dgux*)
14465 version_type=linux # correct to gnu/linux during the next big refactor
14466 need_lib_prefix=no
14467 need_version=no
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 shlibpath_var=LD_LIBRARY_PATH
14471 ;;
14472
14473freebsd* | dragonfly*)
14474 # DragonFly does not have aout. When/if they implement a new
14475 # versioning mechanism, adjust this.
14476 if test -x /usr/bin/objformat; then
14477 objformat=`/usr/bin/objformat`
14478 else
14479 case $host_os in
14480 freebsd[23].*) objformat=aout ;;
14481 *) objformat=elf ;;
14482 esac
14483 fi
14484 version_type=freebsd-$objformat
14485 case $version_type in
14486 freebsd-elf*)
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14488 need_version=no
14489 need_lib_prefix=no
14490 ;;
14491 freebsd-*)
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14493 need_version=yes
14494 ;;
14495 esac
14496 shlibpath_var=LD_LIBRARY_PATH
14497 case $host_os in
14498 freebsd2.*)
14499 shlibpath_overrides_runpath=yes
14500 ;;
14501 freebsd3.[01]* | freebsdelf3.[01]*)
14502 shlibpath_overrides_runpath=yes
14503 hardcode_into_libs=yes
14504 ;;
14505 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14506 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14507 shlibpath_overrides_runpath=no
14508 hardcode_into_libs=yes
14509 ;;
14510 *) # from 4.6 on, and DragonFly
14511 shlibpath_overrides_runpath=yes
14512 hardcode_into_libs=yes
14513 ;;
14514 esac
14515 ;;
14516
14517gnu*)
14518 version_type=linux # correct to gnu/linux during the next big refactor
14519 need_lib_prefix=no
14520 need_version=no
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 shlibpath_overrides_runpath=no
14525 hardcode_into_libs=yes
14526 ;;
14527
14528haiku*)
14529 version_type=linux # correct to gnu/linux during the next big refactor
14530 need_lib_prefix=no
14531 need_version=no
14532 dynamic_linker="$host_os runtime_loader"
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 shlibpath_var=LIBRARY_PATH
14536 shlibpath_overrides_runpath=yes
14537 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14538 hardcode_into_libs=yes
14539 ;;
14540
14541hpux9* | hpux10* | hpux11*)
14542 # Give a soname corresponding to the major version so that dld.sl refuses to
14543 # link against other versions.
14544 version_type=sunos
14545 need_lib_prefix=no
14546 need_version=no
14547 case $host_cpu in
14548 ia64*)
14549 shrext_cmds='.so'
14550 hardcode_into_libs=yes
14551 dynamic_linker="$host_os dld.so"
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 if test "X$HPUX_IA64_MODE" = X32; then
14557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14558 else
14559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14560 fi
14561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14562 ;;
14563 hppa*64*)
14564 shrext_cmds='.sl'
14565 hardcode_into_libs=yes
14566 dynamic_linker="$host_os dld.sl"
14567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14573 ;;
14574 *)
14575 shrext_cmds='.sl'
14576 dynamic_linker="$host_os dld.sl"
14577 shlibpath_var=SHLIB_PATH
14578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 ;;
14582 esac
14583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14584 postinstall_cmds='chmod 555 $lib'
14585 # or fails outright, so override atomically:
14586 install_override_mode=555
14587 ;;
14588
14589interix[3-9]*)
14590 version_type=linux # correct to gnu/linux during the next big refactor
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=no
14598 hardcode_into_libs=yes
14599 ;;
14600
14601irix5* | irix6* | nonstopux*)
14602 case $host_os in
14603 nonstopux*) version_type=nonstopux ;;
14604 *)
14605 if test "$lt_cv_prog_gnu_ld" = yes; then
14606 version_type=linux # correct to gnu/linux during the next big refactor
14607 else
14608 version_type=irix
14609 fi ;;
14610 esac
14611 need_lib_prefix=no
14612 need_version=no
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14615 case $host_os in
14616 irix5* | nonstopux*)
14617 libsuff= shlibsuff=
14618 ;;
14619 *)
14620 case $LD in # libtool.m4 will add one of these switches to LD
14621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14622 libsuff= shlibsuff= libmagic=32-bit;;
14623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14624 libsuff=32 shlibsuff=N32 libmagic=N32;;
14625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14627 *) libsuff= shlibsuff= libmagic=never-match;;
14628 esac
14629 ;;
14630 esac
14631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14632 shlibpath_overrides_runpath=no
14633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14635 hardcode_into_libs=yes
14636 ;;
14637
14638# No shared lib support for Linux oldld, aout, or coff.
14639linux*oldld* | linux*aout* | linux*coff*)
14640 dynamic_linker=no
14641 ;;
14642
14643# This must be glibc/ELF.
14644linux* | k*bsd*-gnu | kopensolaris*-gnu)
14645 version_type=linux # correct to gnu/linux during the next big refactor
14646 need_lib_prefix=no
14647 need_version=no
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=no
14653
14654 # Some binutils ld are patched to set DT_RUNPATH
14655 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657else
14658 lt_cv_shlibpath_overrides_runpath=no
14659 save_LDFLAGS=$LDFLAGS
14660 save_libdir=$libdir
14661 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14662 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664/* end confdefs.h. */
14665
14666int
14667main ()
14668{
14669
14670 ;
14671 return 0;
14672}
14673_ACEOF
14674if ac_fn_cxx_try_link "$LINENO"; then :
14675 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14676 lt_cv_shlibpath_overrides_runpath=yes
14677fi
14678fi
14679rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14681 LDFLAGS=$save_LDFLAGS
14682 libdir=$save_libdir
14683
14684fi
14685
14686 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14687
14688 # This implies no fast_install, which is unacceptable.
14689 # Some rework will be needed to allow for fast_install
14690 # before this can be enabled.
14691 hardcode_into_libs=yes
14692
14693 # Append ld.so.conf contents to the search path
14694 if test -f /etc/ld.so.conf; then
14695 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' ' '`
14696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14697 fi
14698
14699 # We used to test for /lib/ld.so.1 and disable shared libraries on
14700 # powerpc, because MkLinux only supported shared libraries with the
14701 # GNU dynamic linker. Since this was broken with cross compilers,
14702 # most powerpc-linux boxes support dynamic linking these days and
14703 # people can always --disable-shared, the test was removed, and we
14704 # assume the GNU/Linux dynamic linker is in use.
14705 dynamic_linker='GNU/Linux ld.so'
14706 ;;
14707
14708netbsd*)
14709 version_type=sunos
14710 need_lib_prefix=no
14711 need_version=no
14712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14715 dynamic_linker='NetBSD (a.out) ld.so'
14716 else
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14718 soname_spec='${libname}${release}${shared_ext}$major'
14719 dynamic_linker='NetBSD ld.elf_so'
14720 fi
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes
14723 hardcode_into_libs=yes
14724 ;;
14725
14726newsos6)
14727 version_type=linux # correct to gnu/linux during the next big refactor
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729 shlibpath_var=LD_LIBRARY_PATH
14730 shlibpath_overrides_runpath=yes
14731 ;;
14732
14733*nto* | *qnx*)
14734 version_type=qnx
14735 need_lib_prefix=no
14736 need_version=no
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=no
14741 hardcode_into_libs=yes
14742 dynamic_linker='ldqnx.so'
14743 ;;
14744
14745openbsd*)
14746 version_type=sunos
14747 sys_lib_dlsearch_path_spec="/usr/lib"
14748 need_lib_prefix=no
14749 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14750 case $host_os in
14751 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14752 *) need_version=no ;;
14753 esac
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14758 case $host_os in
14759 openbsd2.[89] | openbsd2.[89].*)
14760 shlibpath_overrides_runpath=no
14761 ;;
14762 *)
14763 shlibpath_overrides_runpath=yes
14764 ;;
14765 esac
14766 else
14767 shlibpath_overrides_runpath=yes
14768 fi
14769 ;;
14770
14771os2*)
14772 libname_spec='$name'
14773 shrext_cmds=".dll"
14774 need_lib_prefix=no
14775 library_names_spec='$libname${shared_ext} $libname.a'
14776 dynamic_linker='OS/2 ld.exe'
14777 shlibpath_var=LIBPATH
14778 ;;
14779
14780osf3* | osf4* | osf5*)
14781 version_type=osf
14782 need_lib_prefix=no
14783 need_version=no
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14789 ;;
14790
14791rdos*)
14792 dynamic_linker=no
14793 ;;
14794
14795solaris*)
14796 version_type=linux # correct to gnu/linux during the next big refactor
14797 need_lib_prefix=no
14798 need_version=no
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 shlibpath_overrides_runpath=yes
14803 hardcode_into_libs=yes
14804 # ldd complains unless libraries are executable
14805 postinstall_cmds='chmod +x $lib'
14806 ;;
14807
14808sunos4*)
14809 version_type=sunos
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14812 shlibpath_var=LD_LIBRARY_PATH
14813 shlibpath_overrides_runpath=yes
14814 if test "$with_gnu_ld" = yes; then
14815 need_lib_prefix=no
14816 fi
14817 need_version=yes
14818 ;;
14819
14820sysv4 | sysv4.3*)
14821 version_type=linux # correct to gnu/linux during the next big refactor
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 shlibpath_var=LD_LIBRARY_PATH
14825 case $host_vendor in
14826 sni)
14827 shlibpath_overrides_runpath=no
14828 need_lib_prefix=no
14829 runpath_var=LD_RUN_PATH
14830 ;;
14831 siemens)
14832 need_lib_prefix=no
14833 ;;
14834 motorola)
14835 need_lib_prefix=no
14836 need_version=no
14837 shlibpath_overrides_runpath=no
14838 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14839 ;;
14840 esac
14841 ;;
14842
14843sysv4*MP*)
14844 if test -d /usr/nec ;then
14845 version_type=linux # correct to gnu/linux during the next big refactor
14846 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14847 soname_spec='$libname${shared_ext}.$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 fi
14850 ;;
14851
14852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14853 version_type=freebsd-elf
14854 need_lib_prefix=no
14855 need_version=no
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 hardcode_into_libs=yes
14861 if test "$with_gnu_ld" = yes; then
14862 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14863 else
14864 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14865 case $host_os in
14866 sco3.2v5*)
14867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14868 ;;
14869 esac
14870 fi
14871 sys_lib_dlsearch_path_spec='/usr/lib'
14872 ;;
14873
14874tpf*)
14875 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14876 version_type=linux # correct to gnu/linux during the next big refactor
14877 need_lib_prefix=no
14878 need_version=no
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 shlibpath_overrides_runpath=no
14882 hardcode_into_libs=yes
14883 ;;
14884
14885uts4*)
14886 version_type=linux # correct to gnu/linux during the next big refactor
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 ;;
14891
14892*)
14893 dynamic_linker=no
14894 ;;
14895esac
14896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14897$as_echo "$dynamic_linker" >&6; }
14898test "$dynamic_linker" = no && can_build_shared=no
14899
14900variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14901if test "$GCC" = yes; then
14902 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14903fi
14904
14905if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14906 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14907fi
14908if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14909 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14910fi
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14950$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14951hardcode_action_CXX=
14952if test -n "$hardcode_libdir_flag_spec_CXX" ||
14953 test -n "$runpath_var_CXX" ||
14954 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14955
14956 # We can hardcode non-existent directories.
14957 if test "$hardcode_direct_CXX" != no &&
14958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14959 # have to relink, otherwise we might link with an installed library
14960 # when we should be linking with a yet-to-be-installed one
14961 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14962 test "$hardcode_minus_L_CXX" != no; then
14963 # Linking always hardcodes the temporary library directory.
14964 hardcode_action_CXX=relink
14965 else
14966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14967 hardcode_action_CXX=immediate
14968 fi
14969else
14970 # We cannot hardcode anything, or else we can only hardcode existing
14971 # directories.
14972 hardcode_action_CXX=unsupported
14973fi
14974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14975$as_echo "$hardcode_action_CXX" >&6; }
14976
14977if test "$hardcode_action_CXX" = relink ||
14978 test "$inherit_rpath_CXX" = yes; then
14979 # Fast installation is not supported
14980 enable_fast_install=no
14981elif test "$shlibpath_overrides_runpath" = yes ||
14982 test "$enable_shared" = no; then
14983 # Fast installation is not necessary
14984 enable_fast_install=needless
14985fi
14986
14987
14988
14989
14990
14991
14992
14993 fi # test -n "$compiler"
14994
14995 CC=$lt_save_CC
14996 CFLAGS=$lt_save_CFLAGS
14997 LDCXX=$LD
14998 LD=$lt_save_LD
14999 GCC=$lt_save_GCC
15000 with_gnu_ld=$lt_save_with_gnu_ld
15001 lt_cv_path_LDCXX=$lt_cv_path_LD
15002 lt_cv_path_LD=$lt_save_path_LD
15003 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15004 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15005fi # test "$_lt_caught_CXX_error" != yes
15006
15007ac_ext=cpp
15008ac_cpp='$CXXCPP $CPPFLAGS'
15009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027 ac_config_commands="$ac_config_commands libtool"
15028
15029
15030
15031
15032# Only expand once:
15033
15034
15035
15036# Check whether --enable-outputs was given.
15037if test "${enable_outputs+set}" = set; then :
15038 enableval=$enable_outputs; outputs=$enableval
15039else
15040 outputs=no
15041fi
15042
15043# Check whether --enable-visualizer was given.
15044if test "${enable_visualizer+set}" = set; then :
15045 enableval=$enable_visualizer; visualizer=$enableval
15046else
15047 visualizer=no
15048fi
15049
15050# Check whether --enable-clock was given.
15051if test "${enable_clock+set}" = set; then :
15052 enableval=$enable_clock; clock=$enableval
15053else
15054 clock=no
15055fi
15056
15057# Check whether --enable-unicode was given.
15058if test "${enable_unicode+set}" = set; then :
15059 enableval=$enable_unicode; unicode=$enableval
15060else
15061 unicode=yes
15062fi
15063
15064
15065# Check whether --with-curl was given.
15066if test "${with_curl+set}" = set; then :
15067 withval=$with_curl; curl=$withval
15068else
15069 curl=auto
15070fi
15071
15072
15073# Check whether --with-fftw was given.
15074if test "${with_fftw+set}" = set; then :
15075 withval=$with_fftw; fftw=$withval
15076else
15077 fftw=auto
15078fi
15079
15080
15081# Check whether --with-pdcurses was given.
15082if test "${with_pdcurses+set}" = set; then :
15083 withval=$with_pdcurses; pdcurses=$withval
15084else
15085 pdcurses=no
15086fi
15087
15088
15089# Check whether --with-taglib was given.
15090if test "${with_taglib+set}" = set; then :
15091 withval=$with_taglib; taglib=$withval
15092else
15093 taglib=auto
15094fi
15095
15096
15097if test "$outputs" = "yes"; then
15098
15099$as_echo "#define ENABLE_OUTPUTS 1" >>confdefs.h
15100
15101fi
15102
15103if test "$clock" = "yes"; then
15104
15105$as_echo "#define ENABLE_CLOCK 1" >>confdefs.h
15106
15107fi
15108
15109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=c++0x" >&5
15110$as_echo_n "checking whether compiler supports -std=c++0x... " >&6; }
15111old_CXXFLAGS="$CXXFLAGS"
15112CXXFLAGS="-std=c++0x"
15113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114/* end confdefs.h. */
15115
15116int
15117main ()
15118{
15119
15120 ;
15121 return 0;
15122}
15123_ACEOF
15124if ac_fn_cxx_try_compile "$LINENO"; then :
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15126$as_echo "yes" >&6; }
15127 std_cpp0x="-std=c++0x"
15128else
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130$as_echo "no" >&6; }
15131 as_fn_error $? "Your compiler doesn't seem to support C++0x, please upgrade (GCC >= 4.6)" "$LINENO" 5
15132
15133fi
15134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135CXXFLAGS="$old_CXXFLAGS $std_cpp0x"
15136
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports initializer lists" >&5
15138$as_echo_n "checking whether compiler supports initializer lists... " >&6; }
15139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h. */
15141#include <vector>
15142int
15143main ()
15144{
15145std::vector<int> test = { 1, 2, 3 }; test.push_back(4);
15146 ;
15147 return 0;
15148}
15149_ACEOF
15150if ac_fn_cxx_try_compile "$LINENO"; then :
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15152$as_echo "yes" >&6; }
15153else
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155$as_echo "no" >&6; }
15156 as_fn_error $? "Your compiler doesn't seem to support initializer lists, please upgrade (GCC >= 4.6)" "$LINENO" 5
15157
15158fi
15159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160
15161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports auto keyword" >&5
15162$as_echo_n "checking whether compiler supports auto keyword... " >&6; }
15163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h. */
15165
15166int
15167main ()
15168{
15169auto test = new int; *test = 1;
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174if ac_fn_cxx_try_compile "$LINENO"; then :
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176$as_echo "yes" >&6; }
15177else
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15179$as_echo "no" >&6; }
15180 as_fn_error $? "Your compiler doesn't seem to support auto keyword, please upgrade (GCC >= 4.6)" "$LINENO" 5
15181
15182fi
15183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15184
15185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports lambda functions" >&5
15186$as_echo_n "checking whether compiler supports lambda functions... " >&6; }
15187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h. */
15189#include <functional>
15190int
15191main ()
15192{
15193int a = 5; std::function<int(int)> f = [&a](int b) { return a + b; }; f(8);
15194 ;
15195 return 0;
15196}
15197_ACEOF
15198if ac_fn_cxx_try_compile "$LINENO"; then :
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15200$as_echo "yes" >&6; }
15201else
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203$as_echo "no" >&6; }
15204 as_fn_error $? "Your compiler doesn't seem to support lambda functions, please upgrade (GCC >= 4.6)" "$LINENO" 5
15205
15206fi
15207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208
15209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether calling derived member function passed to lambda without explicit this usage works " >&5
15210$as_echo_n "checking whether calling derived member function passed to lambda without explicit this usage works ... " >&6; }
15211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212/* end confdefs.h. */
15213#include <functional>
15214int
15215main ()
15216{
15217struct A { void foo() { } }; struct B : public A { void bar() { std::function<void()> f = [this]() { foo(); }; f(); } } foo; foo.bar();
15218 ;
15219 return 0;
15220}
15221_ACEOF
15222if ac_fn_cxx_try_compile "$LINENO"; then :
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15224$as_echo "yes" >&6; }
15225else
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15227$as_echo "no" >&6; }
15228 as_fn_error $? "Your compiler doesn't seem to support calling derived member function of an object passed to lambda as 'this' without explicit 'this' usage, please upgrade (GCC >= 4.6)" "$LINENO" 5
15229
15230fi
15231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232
15233
15234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports override keyword" >&5
15235$as_echo_n "checking whether compiler supports override keyword... " >&6; }
15236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237/* end confdefs.h. */
15238struct A { virtual void foo() { } }; struct B : public A { virtual void foo() override { } };
15239int
15240main ()
15241{
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247if ac_fn_cxx_try_compile "$LINENO"; then :
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15249$as_echo "yes" >&6; }
15250 $as_echo "#define OVERRIDE override" >>confdefs.h
15251
15252else
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254$as_echo "no" >&6; }
15255 $as_echo "#define OVERRIDE /**/" >>confdefs.h
15256
15257fi
15258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259
15260if test -z "${BOOST_LIB_SUFFIX+x}"; then :
15261 BOOST_LIB_SUFFIX=-mt
15262fi
15263
15264
15265
15266for ac_header in boost/bind.hpp
15267do :
15268 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
15269if test "x$ac_cv_header_boost_bind_hpp" = xyes; then :
15270 cat >>confdefs.h <<_ACEOF
15271#define HAVE_BOOST_BIND_HPP 1
15272_ACEOF
15273
15274else
15275 as_fn_error $? "boost/bind.hpp is missing" "$LINENO" 5
15276fi
15277
15278done
15279
15280for ac_header in boost/lexical_cast.hpp
15281do :
15282 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/lexical_cast.hpp" "ac_cv_header_boost_lexical_cast_hpp" "$ac_includes_default"
15283if test "x$ac_cv_header_boost_lexical_cast_hpp" = xyes; then :
15284 cat >>confdefs.h <<_ACEOF
15285#define HAVE_BOOST_LEXICAL_CAST_HPP 1
15286_ACEOF
15287
15288else
15289 as_fn_error $? "boost/lexical_cast.hpp is missing" "$LINENO" 5
15290fi
15291
15292done
15293
15294for ac_header in boost/algorithm/string.hpp
15295do :
15296 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/algorithm/string.hpp" "ac_cv_header_boost_algorithm_string_hpp" "$ac_includes_default"
15297if test "x$ac_cv_header_boost_algorithm_string_hpp" = xyes; then :
15298 cat >>confdefs.h <<_ACEOF
15299#define HAVE_BOOST_ALGORITHM_STRING_HPP 1
15300_ACEOF
15301
15302else
15303 as_fn_error $? "boost/algorithm/string.hpp is missing" "$LINENO" 5
15304fi
15305
15306done
15307
15308
15309for ac_header in boost/filesystem.hpp
15310do :
15311 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem.hpp" "ac_cv_header_boost_filesystem_hpp" "$ac_includes_default"
15312if test "x$ac_cv_header_boost_filesystem_hpp" = xyes; then :
15313 cat >>confdefs.h <<_ACEOF
15314#define HAVE_BOOST_FILESYSTEM_HPP 1
15315_ACEOF
15316
15317else
15318 as_fn_error $? "boost/filesystem.hpp is missing" "$LINENO" 5
15319
15320fi
15321
15322done
15323
15324as_ac_Lib=`$as_echo "ac_cv_lib_boost_filesystem$BOOST_LIB_SUFFIX''_main" | $as_tr_sh`
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem$BOOST_LIB_SUFFIX" >&5
15326$as_echo_n "checking for main in -lboost_filesystem$BOOST_LIB_SUFFIX... " >&6; }
15327if eval \${$as_ac_Lib+:} false; then :
15328 $as_echo_n "(cached) " >&6
15329else
15330 ac_check_lib_save_LIBS=$LIBS
15331LIBS="-lboost_filesystem$BOOST_LIB_SUFFIX $LIBS"
15332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h. */
15334
15335
15336int
15337main ()
15338{
15339return main ();
15340 ;
15341 return 0;
15342}
15343_ACEOF
15344if ac_fn_cxx_try_link "$LINENO"; then :
15345 eval "$as_ac_Lib=yes"
15346else
15347 eval "$as_ac_Lib=no"
15348fi
15349rm -f core conftest.err conftest.$ac_objext \
15350 conftest$ac_exeext conftest.$ac_ext
15351LIBS=$ac_check_lib_save_LIBS
15352fi
15353eval ac_res=\$$as_ac_Lib
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15355$as_echo "$ac_res" >&6; }
15356if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15357 LDFLAGS="$LDFLAGS -lboost_filesystem$BOOST_LIB_SUFFIX"
15358else
15359 as_fn_error $? "no boost.filesystem library found" "$LINENO" 5
15360
15361fi
15362
15363as_ac_Lib=`$as_echo "ac_cv_lib_boost_system$BOOST_LIB_SUFFIX''_main" | $as_tr_sh`
15364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_system$BOOST_LIB_SUFFIX" >&5
15365$as_echo_n "checking for main in -lboost_system$BOOST_LIB_SUFFIX... " >&6; }
15366if eval \${$as_ac_Lib+:} false; then :
15367 $as_echo_n "(cached) " >&6
15368else
15369 ac_check_lib_save_LIBS=$LIBS
15370LIBS="-lboost_system$BOOST_LIB_SUFFIX $LIBS"
15371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372/* end confdefs.h. */
15373
15374
15375int
15376main ()
15377{
15378return main ();
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383if ac_fn_cxx_try_link "$LINENO"; then :
15384 eval "$as_ac_Lib=yes"
15385else
15386 eval "$as_ac_Lib=no"
15387fi
15388rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390LIBS=$ac_check_lib_save_LIBS
15391fi
15392eval ac_res=\$$as_ac_Lib
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15394$as_echo "$ac_res" >&6; }
15395if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15396 LDFLAGS="$LDFLAGS -lboost_system$BOOST_LIB_SUFFIX"
15397else
15398 as_fn_error $? "no boost.system library found" "$LINENO" 5
15399
15400fi
15401
15402
15403for ac_header in boost/format.hpp
15404do :
15405 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/format.hpp" "ac_cv_header_boost_format_hpp" "$ac_includes_default"
15406if test "x$ac_cv_header_boost_format_hpp" = xyes; then :
15407 cat >>confdefs.h <<_ACEOF
15408#define HAVE_BOOST_FORMAT_HPP 1
15409_ACEOF
15410
15411else
15412 as_fn_error $? "boost/format.hpp is missing" "$LINENO" 5
15413
15414fi
15415
15416done
15417
15418
15419for ac_header in boost/locale.hpp
15420do :
15421 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/locale.hpp" "ac_cv_header_boost_locale_hpp" "$ac_includes_default"
15422if test "x$ac_cv_header_boost_locale_hpp" = xyes; then :
15423 cat >>confdefs.h <<_ACEOF
15424#define HAVE_BOOST_LOCALE_HPP 1
15425_ACEOF
15426
15427else
15428 as_fn_error $? "boost/locale.hpp is missing" "$LINENO" 5
15429
15430fi
15431
15432done
15433
15434as_ac_Lib=`$as_echo "ac_cv_lib_boost_locale$BOOST_LIB_SUFFIX''_main" | $as_tr_sh`
15435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_locale$BOOST_LIB_SUFFIX" >&5
15436$as_echo_n "checking for main in -lboost_locale$BOOST_LIB_SUFFIX... " >&6; }
15437if eval \${$as_ac_Lib+:} false; then :
15438 $as_echo_n "(cached) " >&6
15439else
15440 ac_check_lib_save_LIBS=$LIBS
15441LIBS="-lboost_locale$BOOST_LIB_SUFFIX $LIBS"
15442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443/* end confdefs.h. */
15444
15445
15446int
15447main ()
15448{
15449return main ();
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454if ac_fn_cxx_try_link "$LINENO"; then :
15455 eval "$as_ac_Lib=yes"
15456else
15457 eval "$as_ac_Lib=no"
15458fi
15459rm -f core conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461LIBS=$ac_check_lib_save_LIBS
15462fi
15463eval ac_res=\$$as_ac_Lib
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15465$as_echo "$ac_res" >&6; }
15466if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15467 LDFLAGS="$LDFLAGS -lboost_locale$BOOST_LIB_SUFFIX"
15468else
15469 as_fn_error $? "no boost.locale library found" "$LINENO" 5
15470
15471fi
15472
15473
15474for ac_header in boost/date_time/posix_time/posix_time.hpp
15475do :
15476 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/date_time/posix_time/posix_time.hpp" "ac_cv_header_boost_date_time_posix_time_posix_time_hpp" "$ac_includes_default"
15477if test "x$ac_cv_header_boost_date_time_posix_time_posix_time_hpp" = xyes; then :
15478 cat >>confdefs.h <<_ACEOF
15479#define HAVE_BOOST_DATE_TIME_POSIX_TIME_POSIX_TIME_HPP 1
15480_ACEOF
15481
15482else
15483 as_fn_error $? "boost/date_time/posix_time/posix_time.hpp is missing" "$LINENO" 5
15484
15485fi
15486
15487done
15488
15489
15490for ac_header in boost/program_options.hpp
15491do :
15492 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/program_options.hpp" "ac_cv_header_boost_program_options_hpp" "$ac_includes_default"
15493if test "x$ac_cv_header_boost_program_options_hpp" = xyes; then :
15494 cat >>confdefs.h <<_ACEOF
15495#define HAVE_BOOST_PROGRAM_OPTIONS_HPP 1
15496_ACEOF
15497
15498else
15499 as_fn_error $? "boost/program_options.hpp is missing" "$LINENO" 5
15500
15501fi
15502
15503done
15504
15505as_ac_Lib=`$as_echo "ac_cv_lib_boost_program_options$BOOST_LIB_SUFFIX''_main" | $as_tr_sh`
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_program_options$BOOST_LIB_SUFFIX" >&5
15507$as_echo_n "checking for main in -lboost_program_options$BOOST_LIB_SUFFIX... " >&6; }
15508if eval \${$as_ac_Lib+:} false; then :
15509 $as_echo_n "(cached) " >&6
15510else
15511 ac_check_lib_save_LIBS=$LIBS
15512LIBS="-lboost_program_options$BOOST_LIB_SUFFIX $LIBS"
15513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15514/* end confdefs.h. */
15515
15516
15517int
15518main ()
15519{
15520return main ();
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525if ac_fn_cxx_try_link "$LINENO"; then :
15526 eval "$as_ac_Lib=yes"
15527else
15528 eval "$as_ac_Lib=no"
15529fi
15530rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532LIBS=$ac_check_lib_save_LIBS
15533fi
15534eval ac_res=\$$as_ac_Lib
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15536$as_echo "$ac_res" >&6; }
15537if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15538 LDFLAGS="$LDFLAGS -lboost_program_options$BOOST_LIB_SUFFIX"
15539else
15540 as_fn_error $? "no boost.program_options library found" "$LINENO" 5
15541
15542fi
15543
15544
15545for ac_header in boost/regex.hpp
15546do :
15547 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/regex.hpp" "ac_cv_header_boost_regex_hpp" "$ac_includes_default"
15548if test "x$ac_cv_header_boost_regex_hpp" = xyes; then :
15549 cat >>confdefs.h <<_ACEOF
15550#define HAVE_BOOST_REGEX_HPP 1
15551_ACEOF
15552
15553else
15554 as_fn_error $? "boost/regex.hpp is missing" "$LINENO" 5
15555
15556fi
15557
15558done
15559
15560as_ac_Lib=`$as_echo "ac_cv_lib_boost_regex$BOOST_LIB_SUFFIX''_main" | $as_tr_sh`
15561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_regex$BOOST_LIB_SUFFIX" >&5
15562$as_echo_n "checking for main in -lboost_regex$BOOST_LIB_SUFFIX... " >&6; }
15563if eval \${$as_ac_Lib+:} false; then :
15564 $as_echo_n "(cached) " >&6
15565else
15566 ac_check_lib_save_LIBS=$LIBS
15567LIBS="-lboost_regex$BOOST_LIB_SUFFIX $LIBS"
15568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569/* end confdefs.h. */
15570
15571
15572int
15573main ()
15574{
15575return main ();
15576 ;
15577 return 0;
15578}
15579_ACEOF
15580if ac_fn_cxx_try_link "$LINENO"; then :
15581 eval "$as_ac_Lib=yes"
15582else
15583 eval "$as_ac_Lib=no"
15584fi
15585rm -f core conftest.err conftest.$ac_objext \
15586 conftest$ac_exeext conftest.$ac_ext
15587LIBS=$ac_check_lib_save_LIBS
15588fi
15589eval ac_res=\$$as_ac_Lib
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15591$as_echo "$ac_res" >&6; }
15592if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15593 LDFLAGS="$LDFLAGS -lboost_regex$BOOST_LIB_SUFFIX"
15594else
15595 as_fn_error $? "no boost.regex library found" "$LINENO" 5
15596
15597fi
15598
15599
15600
15601$as_echo "#define BOOST_THREAD_VERSION 3" >>confdefs.h
15602
15603for ac_header in boost/thread.hpp
15604do :
15605 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/thread.hpp" "ac_cv_header_boost_thread_hpp" "$ac_includes_default"
15606if test "x$ac_cv_header_boost_thread_hpp" = xyes; then :
15607 cat >>confdefs.h <<_ACEOF
15608#define HAVE_BOOST_THREAD_HPP 1
15609_ACEOF
15610
15611else
15612 as_fn_error $? "boost/thread.hpp is missing or your boost version is too old (boost.thread v3 is required)" "$LINENO" 5
15613
15614fi
15615
15616done
15617
15618as_ac_Lib=`$as_echo "ac_cv_lib_boost_thread$BOOST_LIB_SUFFIX''_main" | $as_tr_sh`
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread$BOOST_LIB_SUFFIX" >&5
15620$as_echo_n "checking for main in -lboost_thread$BOOST_LIB_SUFFIX... " >&6; }
15621if eval \${$as_ac_Lib+:} false; then :
15622 $as_echo_n "(cached) " >&6
15623else
15624 ac_check_lib_save_LIBS=$LIBS
15625LIBS="-lboost_thread$BOOST_LIB_SUFFIX $LIBS"
15626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627/* end confdefs.h. */
15628
15629
15630int
15631main ()
15632{
15633return main ();
15634 ;
15635 return 0;
15636}
15637_ACEOF
15638if ac_fn_cxx_try_link "$LINENO"; then :
15639 eval "$as_ac_Lib=yes"
15640else
15641 eval "$as_ac_Lib=no"
15642fi
15643rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15645LIBS=$ac_check_lib_save_LIBS
15646fi
15647eval ac_res=\$$as_ac_Lib
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15649$as_echo "$ac_res" >&6; }
15650if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15651 LDFLAGS="$LDFLAGS -lboost_thread$BOOST_LIB_SUFFIX"
15652else
15653 as_fn_error $? "no boost.thread library found" "$LINENO" 5
15654
15655fi
15656
15657
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
15659$as_echo_n "checking for regcomp in -lregex... " >&6; }
15660if ${ac_cv_lib_regex_regcomp+:} false; then :
15661 $as_echo_n "(cached) " >&6
15662else
15663 ac_check_lib_save_LIBS=$LIBS
15664LIBS="-lregex $LIBS"
15665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h. */
15667
15668/* Override any GCC internal prototype to avoid an error.
15669 Use char because int might match the return type of a GCC
15670 builtin and then its argument prototype would still apply. */
15671#ifdef __cplusplus
15672extern "C"
15673#endif
15674char regcomp ();
15675int
15676main ()
15677{
15678return regcomp ();
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683if ac_fn_cxx_try_link "$LINENO"; then :
15684 ac_cv_lib_regex_regcomp=yes
15685else
15686 ac_cv_lib_regex_regcomp=no
15687fi
15688rm -f core conftest.err conftest.$ac_objext \
15689 conftest$ac_exeext conftest.$ac_ext
15690LIBS=$ac_check_lib_save_LIBS
15691fi
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
15693$as_echo "$ac_cv_lib_regex_regcomp" >&6; }
15694if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
15695 LDFLAGS="$LDFLAGS -lregex"
15696fi
15697
15698
15699for ac_header in netinet/tcp.h netinet/in.h
15700do :
15701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15702ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15704 cat >>confdefs.h <<_ACEOF
15705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15706_ACEOF
15707
15708else
15709 as_fn_error $? "vital headers missing" "$LINENO" 5
15710fi
15711
15712done
15713
15714for ac_header in langinfo.h
15715do :
15716 ac_fn_cxx_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
15717if test "x$ac_cv_header_langinfo_h" = xyes; then :
15718 cat >>confdefs.h <<_ACEOF
15719#define HAVE_LANGINFO_H 1
15720_ACEOF
15721
15722else
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale detection disabled" >&5
15724$as_echo "$as_me: WARNING: locale detection disabled" >&2;}
15725fi
15726
15727done
15728
15729
15730
15731
15732
15733
15734
15735
15736if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15737 if test -n "$ac_tool_prefix"; then
15738 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15739set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15741$as_echo_n "checking for $ac_word... " >&6; }
15742if ${ac_cv_path_PKG_CONFIG+:} false; then :
15743 $as_echo_n "(cached) " >&6
15744else
15745 case $PKG_CONFIG in
15746 [\\/]* | ?:[\\/]*)
15747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15748 ;;
15749 *)
15750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15751for as_dir in $PATH
15752do
15753 IFS=$as_save_IFS
15754 test -z "$as_dir" && as_dir=.
15755 for ac_exec_ext in '' $ac_executable_extensions; do
15756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15759 break 2
15760 fi
15761done
15762 done
15763IFS=$as_save_IFS
15764
15765 ;;
15766esac
15767fi
15768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15769if test -n "$PKG_CONFIG"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15771$as_echo "$PKG_CONFIG" >&6; }
15772else
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774$as_echo "no" >&6; }
15775fi
15776
15777
15778fi
15779if test -z "$ac_cv_path_PKG_CONFIG"; then
15780 ac_pt_PKG_CONFIG=$PKG_CONFIG
15781 # Extract the first word of "pkg-config", so it can be a program name with args.
15782set dummy pkg-config; ac_word=$2
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15784$as_echo_n "checking for $ac_word... " >&6; }
15785if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15786 $as_echo_n "(cached) " >&6
15787else
15788 case $ac_pt_PKG_CONFIG in
15789 [\\/]* | ?:[\\/]*)
15790 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15791 ;;
15792 *)
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794for as_dir in $PATH
15795do
15796 IFS=$as_save_IFS
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15802 break 2
15803 fi
15804done
15805 done
15806IFS=$as_save_IFS
15807
15808 ;;
15809esac
15810fi
15811ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15812if test -n "$ac_pt_PKG_CONFIG"; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15814$as_echo "$ac_pt_PKG_CONFIG" >&6; }
15815else
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817$as_echo "no" >&6; }
15818fi
15819
15820 if test "x$ac_pt_PKG_CONFIG" = x; then
15821 PKG_CONFIG=""
15822 else
15823 case $cross_compiling:$ac_tool_warned in
15824yes:)
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15827ac_tool_warned=yes ;;
15828esac
15829 PKG_CONFIG=$ac_pt_PKG_CONFIG
15830 fi
15831else
15832 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15833fi
15834
15835fi
15836if test -n "$PKG_CONFIG"; then
15837 _pkg_min_version=0.9.0
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15839$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15840 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15842$as_echo "yes" >&6; }
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845$as_echo "no" >&6; }
15846 PKG_CONFIG=""
15847 fi
15848fi
15849
15850pkg_failed=no
15851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpdclient" >&5
15852$as_echo_n "checking for libmpdclient... " >&6; }
15853
15854if test -n "$libmpdclient_CFLAGS"; then
15855 pkg_cv_libmpdclient_CFLAGS="$libmpdclient_CFLAGS"
15856 elif test -n "$PKG_CONFIG"; then
15857 if test -n "$PKG_CONFIG" && \
15858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.8\""; } >&5
15859 ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.8") 2>&5
15860 ac_status=$?
15861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862 test $ac_status = 0; }; then
15863 pkg_cv_libmpdclient_CFLAGS=`$PKG_CONFIG --cflags "libmpdclient >= 2.8" 2>/dev/null`
15864else
15865 pkg_failed=yes
15866fi
15867 else
15868 pkg_failed=untried
15869fi
15870if test -n "$libmpdclient_LIBS"; then
15871 pkg_cv_libmpdclient_LIBS="$libmpdclient_LIBS"
15872 elif test -n "$PKG_CONFIG"; then
15873 if test -n "$PKG_CONFIG" && \
15874 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdclient >= 2.8\""; } >&5
15875 ($PKG_CONFIG --exists --print-errors "libmpdclient >= 2.8") 2>&5
15876 ac_status=$?
15877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15878 test $ac_status = 0; }; then
15879 pkg_cv_libmpdclient_LIBS=`$PKG_CONFIG --libs "libmpdclient >= 2.8" 2>/dev/null`
15880else
15881 pkg_failed=yes
15882fi
15883 else
15884 pkg_failed=untried
15885fi
15886
15887
15888
15889if test $pkg_failed = yes; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15891$as_echo "no" >&6; }
15892
15893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15894 _pkg_short_errors_supported=yes
15895else
15896 _pkg_short_errors_supported=no
15897fi
15898 if test $_pkg_short_errors_supported = yes; then
15899 libmpdclient_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libmpdclient >= 2.8" 2>&1`
15900 else
15901 libmpdclient_PKG_ERRORS=`$PKG_CONFIG --print-errors "libmpdclient >= 2.8" 2>&1`
15902 fi
15903 # Put the nasty error message in config.log where it belongs
15904 echo "$libmpdclient_PKG_ERRORS" >&5
15905
15906 as_fn_error $? "libmpdclient >= 2.8 is required!" "$LINENO" 5
15907
15908elif test $pkg_failed = untried; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15910$as_echo "no" >&6; }
15911 as_fn_error $? "libmpdclient >= 2.8 is required!" "$LINENO" 5
15912
15913else
15914 libmpdclient_CFLAGS=$pkg_cv_libmpdclient_CFLAGS
15915 libmpdclient_LIBS=$pkg_cv_libmpdclient_LIBS
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15917$as_echo "yes" >&6; }
15918
15919
15920
15921 CPPFLAGS="$CPPFLAGS $libmpdclient_CFLAGS"
15922 for ac_header in mpd/client.h
15923do :
15924 ac_fn_cxx_check_header_mongrel "$LINENO" "mpd/client.h" "ac_cv_header_mpd_client_h" "$ac_includes_default"
15925if test "x$ac_cv_header_mpd_client_h" = xyes; then :
15926 cat >>confdefs.h <<_ACEOF
15927#define HAVE_MPD_CLIENT_H 1
15928_ACEOF
15929 LDFLAGS="$LDFLAGS $libmpdclient_LIBS"
15930
15931else
15932 as_fn_error $? "missing mpd/client.h header" "$LINENO" 5
15933
15934fi
15935
15936done
15937
15938
15939fi
15940
15941for ac_header in readline/readline.h readline/history.h
15942do :
15943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15944ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15945if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15946 cat >>confdefs.h <<_ACEOF
15947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15948_ACEOF
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_initialize in -lreadline" >&5
15950$as_echo_n "checking for rl_initialize in -lreadline... " >&6; }
15951if ${ac_cv_lib_readline_rl_initialize+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953else
15954 ac_check_lib_save_LIBS=$LIBS
15955LIBS="-lreadline $LIBS"
15956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h. */
15958
15959/* Override any GCC internal prototype to avoid an error.
15960 Use char because int might match the return type of a GCC
15961 builtin and then its argument prototype would still apply. */
15962#ifdef __cplusplus
15963extern "C"
15964#endif
15965char rl_initialize ();
15966int
15967main ()
15968{
15969return rl_initialize ();
15970 ;
15971 return 0;
15972}
15973_ACEOF
15974if ac_fn_cxx_try_link "$LINENO"; then :
15975 ac_cv_lib_readline_rl_initialize=yes
15976else
15977 ac_cv_lib_readline_rl_initialize=no
15978fi
15979rm -f core conftest.err conftest.$ac_objext \
15980 conftest$ac_exeext conftest.$ac_ext
15981LIBS=$ac_check_lib_save_LIBS
15982fi
15983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_initialize" >&5
15984$as_echo "$ac_cv_lib_readline_rl_initialize" >&6; }
15985if test "x$ac_cv_lib_readline_rl_initialize" = xyes; then :
15986 LDFLAGS="$LDFLAGS -lreadline"
15987else
15988 as_fn_error $? "readline headers found but there is no readline library to make use of" "$LINENO" 5
15989
15990fi
15991
15992else
15993 as_fn_error $? "no readline/readline.h header file found" "$LINENO" 5
15994
15995fi
15996
15997done
15998
15999
16000
16001for ac_header in pthread.h
16002do :
16003 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16004if test "x$ac_cv_header_pthread_h" = xyes; then :
16005 cat >>confdefs.h <<_ACEOF
16006#define HAVE_PTHREAD_H 1
16007_ACEOF
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16009$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16010if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012else
16013 ac_check_lib_save_LIBS=$LIBS
16014LIBS="-lpthread $LIBS"
16015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016/* end confdefs.h. */
16017
16018/* Override any GCC internal prototype to avoid an error.
16019 Use char because int might match the return type of a GCC
16020 builtin and then its argument prototype would still apply. */
16021#ifdef __cplusplus
16022extern "C"
16023#endif
16024char pthread_create ();
16025int
16026main ()
16027{
16028return pthread_create ();
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033if ac_fn_cxx_try_link "$LINENO"; then :
16034 ac_cv_lib_pthread_pthread_create=yes
16035else
16036 ac_cv_lib_pthread_pthread_create=no
16037fi
16038rm -f core conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040LIBS=$ac_check_lib_save_LIBS
16041fi
16042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16043$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16044if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16045 LDFLAGS="$LDFLAGS -lpthread"
16046else
16047 as_fn_error $? "pthread.h found but there is no pthread library to make use of" "$LINENO" 5
16048
16049fi
16050
16051else
16052 as_fn_error $? "no pthread.h header header file found" "$LINENO" 5
16053
16054fi
16055
16056done
16057
16058
16059if test "$pdcurses" = "no" ; then
16060 if test "$unicode" = "yes" ; then
16061 curses_config_bin="ncursesw6-config ncursesw5-config"
16062
16063$as_echo "#define NCMPCPP_UNICODE 1" >>confdefs.h
16064
16065 else
16066 curses_config_bin="ncurses6-config ncurses5-config"
16067 fi
16068else
16069 if test "$pdcurses" = "yes" ; then
16070 pdcurses_lib=XCurses
16071 curses_config_bin=xcurses-config
16072 else
16073 pdcurses_lib=$pdcurses
16074 fi
16075
16076$as_echo "#define USE_PDCURSES 1" >>confdefs.h
16077
16078fi
16079for ac_prog in $curses_config_bin
16080do
16081 # Extract the first word of "$ac_prog", so it can be a program name with args.
16082set dummy $ac_prog; ac_word=$2
16083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16084$as_echo_n "checking for $ac_word... " >&6; }
16085if ${ac_cv_path_CURSES_CONFIG+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087else
16088 case $CURSES_CONFIG in
16089 [\\/]* | ?:[\\/]*)
16090 ac_cv_path_CURSES_CONFIG="$CURSES_CONFIG" # Let the user override the test with a path.
16091 ;;
16092 *)
16093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094for as_dir in $PATH
16095do
16096 IFS=$as_save_IFS
16097 test -z "$as_dir" && as_dir=.
16098 for ac_exec_ext in '' $ac_executable_extensions; do
16099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16100 ac_cv_path_CURSES_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16102 break 2
16103 fi
16104done
16105 done
16106IFS=$as_save_IFS
16107
16108 ;;
16109esac
16110fi
16111CURSES_CONFIG=$ac_cv_path_CURSES_CONFIG
16112if test -n "$CURSES_CONFIG"; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURSES_CONFIG" >&5
16114$as_echo "$CURSES_CONFIG" >&6; }
16115else
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117$as_echo "no" >&6; }
16118fi
16119
16120
16121 test -n "$CURSES_CONFIG" && break
16122done
16123
16124if test "$CURSES_CONFIG" != "" ; then
16125 CPPFLAGS="$CPPFLAGS `$CURSES_CONFIG --cflags`"
16126 LDFLAGS="$LDFLAGS `$CURSES_CONFIG --libs`"
16127fi
16128if test "$pdcurses" = "no" ; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
16130$as_echo_n "checking for initscr in -lncursesw... " >&6; }
16131if ${ac_cv_lib_ncursesw_initscr+:} false; then :
16132 $as_echo_n "(cached) " >&6
16133else
16134 ac_check_lib_save_LIBS=$LIBS
16135LIBS="-lncursesw $LIBS"
16136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137/* end confdefs.h. */
16138
16139/* Override any GCC internal prototype to avoid an error.
16140 Use char because int might match the return type of a GCC
16141 builtin and then its argument prototype would still apply. */
16142#ifdef __cplusplus
16143extern "C"
16144#endif
16145char initscr ();
16146int
16147main ()
16148{
16149return initscr ();
16150 ;
16151 return 0;
16152}
16153_ACEOF
16154if ac_fn_cxx_try_link "$LINENO"; then :
16155 ac_cv_lib_ncursesw_initscr=yes
16156else
16157 ac_cv_lib_ncursesw_initscr=no
16158fi
16159rm -f core conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161LIBS=$ac_check_lib_save_LIBS
16162fi
16163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
16164$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
16165if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
16166 curses_lib=ncursesw
16167else
16168 curses_lib=ncurses
16169
16170fi
16171
16172else
16173 curses_lib=$pdcurses_lib
16174fi
16175as_ac_Lib=`$as_echo "ac_cv_lib_$curses_lib''_initscr" | $as_tr_sh`
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$curses_lib" >&5
16177$as_echo_n "checking for initscr in -l$curses_lib... " >&6; }
16178if eval \${$as_ac_Lib+:} false; then :
16179 $as_echo_n "(cached) " >&6
16180else
16181 ac_check_lib_save_LIBS=$LIBS
16182LIBS="-l$curses_lib $LIBS"
16183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184/* end confdefs.h. */
16185
16186/* Override any GCC internal prototype to avoid an error.
16187 Use char because int might match the return type of a GCC
16188 builtin and then its argument prototype would still apply. */
16189#ifdef __cplusplus
16190extern "C"
16191#endif
16192char initscr ();
16193int
16194main ()
16195{
16196return initscr ();
16197 ;
16198 return 0;
16199}
16200_ACEOF
16201if ac_fn_cxx_try_link "$LINENO"; then :
16202 eval "$as_ac_Lib=yes"
16203else
16204 eval "$as_ac_Lib=no"
16205fi
16206rm -f core conftest.err conftest.$ac_objext \
16207 conftest$ac_exeext conftest.$ac_ext
16208LIBS=$ac_check_lib_save_LIBS
16209fi
16210eval ac_res=\$$as_ac_Lib
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16212$as_echo "$ac_res" >&6; }
16213if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16214 if test "$CURSES_CONFIG" = "" ; then
16215 LDFLAGS="$LDFLAGS -l$curses_lib"
16216 fi
16217
16218else
16219 as_fn_error $? "$curses_lib library is required" "$LINENO" 5
16220
16221fi
16222
16223if test "$pdcurses" != "no" ; then
16224 as_ac_Lib=`$as_echo "ac_cv_lib_$curses_lib''_Xinitscr" | $as_tr_sh`
16225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xinitscr in -l$curses_lib" >&5
16226$as_echo_n "checking for Xinitscr in -l$curses_lib... " >&6; }
16227if eval \${$as_ac_Lib+:} false; then :
16228 $as_echo_n "(cached) " >&6
16229else
16230 ac_check_lib_save_LIBS=$LIBS
16231LIBS="-l$curses_lib $LIBS"
16232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233/* end confdefs.h. */
16234
16235/* Override any GCC internal prototype to avoid an error.
16236 Use char because int might match the return type of a GCC
16237 builtin and then its argument prototype would still apply. */
16238#ifdef __cplusplus
16239extern "C"
16240#endif
16241char Xinitscr ();
16242int
16243main ()
16244{
16245return Xinitscr ();
16246 ;
16247 return 0;
16248}
16249_ACEOF
16250if ac_fn_cxx_try_link "$LINENO"; then :
16251 eval "$as_ac_Lib=yes"
16252else
16253 eval "$as_ac_Lib=no"
16254fi
16255rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257LIBS=$ac_check_lib_save_LIBS
16258fi
16259eval ac_res=\$$as_ac_Lib
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16261$as_echo "$ac_res" >&6; }
16262if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16263
16264$as_echo "#define XCURSES 1" >>confdefs.h
16265
16266fi
16267
16268fi
16269for ac_header in curses.h
16270do :
16271 ac_fn_cxx_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
16272if test "x$ac_cv_header_curses_h" = xyes; then :
16273 cat >>confdefs.h <<_ACEOF
16274#define HAVE_CURSES_H 1
16275_ACEOF
16276
16277else
16278 as_fn_error $? "missing curses.h header" "$LINENO" 5
16279fi
16280
16281done
16282
16283
16284if test "$visualizer" = "yes" ; then
16285 if test "$fftw" != "no" ; then
16286
16287pkg_failed=no
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
16289$as_echo_n "checking for fftw3... " >&6; }
16290
16291if test -n "$fftw3_CFLAGS"; then
16292 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
16293 elif test -n "$PKG_CONFIG"; then
16294 if test -n "$PKG_CONFIG" && \
16295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3\""; } >&5
16296 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3") 2>&5
16297 ac_status=$?
16298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16299 test $ac_status = 0; }; then
16300 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3" 2>/dev/null`
16301else
16302 pkg_failed=yes
16303fi
16304 else
16305 pkg_failed=untried
16306fi
16307if test -n "$fftw3_LIBS"; then
16308 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
16309 elif test -n "$PKG_CONFIG"; then
16310 if test -n "$PKG_CONFIG" && \
16311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3\""; } >&5
16312 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3") 2>&5
16313 ac_status=$?
16314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16315 test $ac_status = 0; }; then
16316 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3" 2>/dev/null`
16317else
16318 pkg_failed=yes
16319fi
16320 else
16321 pkg_failed=untried
16322fi
16323
16324
16325
16326if test $pkg_failed = yes; then
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328$as_echo "no" >&6; }
16329
16330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16331 _pkg_short_errors_supported=yes
16332else
16333 _pkg_short_errors_supported=no
16334fi
16335 if test $_pkg_short_errors_supported = yes; then
16336 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fftw3 >= 3" 2>&1`
16337 else
16338 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors "fftw3 >= 3" 2>&1`
16339 fi
16340 # Put the nasty error message in config.log where it belongs
16341 echo "$fftw3_PKG_ERRORS" >&5
16342
16343 if test "$fftw" = "yes" ; then
16344 as_fn_error $? "fftw3 library is required!" "$LINENO" 5
16345 fi
16346
16347elif test $pkg_failed = untried; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16349$as_echo "no" >&6; }
16350 if test "$fftw" = "yes" ; then
16351 as_fn_error $? "fftw3 library is required!" "$LINENO" 5
16352 fi
16353
16354else
16355 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
16356 fftw3_LIBS=$pkg_cv_fftw3_LIBS
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16358$as_echo "yes" >&6; }
16359
16360
16361
16362 CPPFLAGS="$CPPFLAGS $fftw3_CFLAGS"
16363 for ac_header in fftw3.h
16364do :
16365 ac_fn_cxx_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
16366if test "x$ac_cv_header_fftw3_h" = xyes; then :
16367 cat >>confdefs.h <<_ACEOF
16368#define HAVE_FFTW3_H 1
16369_ACEOF
16370 LDFLAGS="$LDFLAGS $fftw3_LIBS"
16371
16372else
16373 if test "$fftw" = "yes" ; then
16374 as_fn_error $? "missing fftw3.h header" "$LINENO" 5
16375 fi
16376
16377fi
16378
16379done
16380
16381
16382fi
16383 fi
16384
16385$as_echo "#define ENABLE_VISUALIZER 1" >>confdefs.h
16386
16387fi
16388
16389if test "$curl" != "no" ; then
16390 # Extract the first word of "curl-config", so it can be a program name with args.
16391set dummy curl-config; ac_word=$2
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16393$as_echo_n "checking for $ac_word... " >&6; }
16394if ${ac_cv_path_CURL_CONFIG+:} false; then :
16395 $as_echo_n "(cached) " >&6
16396else
16397 case $CURL_CONFIG in
16398 [\\/]* | ?:[\\/]*)
16399 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
16400 ;;
16401 *)
16402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16403for as_dir in $PATH
16404do
16405 IFS=$as_save_IFS
16406 test -z "$as_dir" && as_dir=.
16407 for ac_exec_ext in '' $ac_executable_extensions; do
16408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16409 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16411 break 2
16412 fi
16413done
16414 done
16415IFS=$as_save_IFS
16416
16417 ;;
16418esac
16419fi
16420CURL_CONFIG=$ac_cv_path_CURL_CONFIG
16421if test -n "$CURL_CONFIG"; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
16423$as_echo "$CURL_CONFIG" >&6; }
16424else
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426$as_echo "no" >&6; }
16427fi
16428
16429
16430 if test "$CURL_CONFIG" != "" ; then
16431 CPPFLAGS="$CPPFLAGS `$CURL_CONFIG --cflags`"
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
16433$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
16434if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436else
16437 ac_check_lib_save_LIBS=$LIBS
16438LIBS="-lcurl $LIBS"
16439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440/* end confdefs.h. */
16441
16442/* Override any GCC internal prototype to avoid an error.
16443 Use char because int might match the return type of a GCC
16444 builtin and then its argument prototype would still apply. */
16445#ifdef __cplusplus
16446extern "C"
16447#endif
16448char curl_easy_init ();
16449int
16450main ()
16451{
16452return curl_easy_init ();
16453 ;
16454 return 0;
16455}
16456_ACEOF
16457if ac_fn_cxx_try_link "$LINENO"; then :
16458 ac_cv_lib_curl_curl_easy_init=yes
16459else
16460 ac_cv_lib_curl_curl_easy_init=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext \
16463 conftest$ac_exeext conftest.$ac_ext
16464LIBS=$ac_check_lib_save_LIBS
16465fi
16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
16467$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
16468if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
16469 LDFLAGS="$LDFLAGS `$CURL_CONFIG --libs`"
16470else
16471 if test "$curl" = "yes" ; then
16472 as_fn_error $? "curl library is required" "$LINENO" 5
16473 fi
16474
16475fi
16476
16477 for ac_header in curl/curl.h
16478do :
16479 ac_fn_cxx_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
16480if test "x$ac_cv_header_curl_curl_h" = xyes; then :
16481 cat >>confdefs.h <<_ACEOF
16482#define HAVE_CURL_CURL_H 1
16483_ACEOF
16484
16485else
16486 if test "$curl" = "yes" ; then
16487 as_fn_error $? "missing curl.h header" "$LINENO" 5
16488 fi
16489
16490fi
16491
16492done
16493
16494 else
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
16496$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
16497if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
16498 $as_echo_n "(cached) " >&6
16499else
16500 ac_check_lib_save_LIBS=$LIBS
16501LIBS="-lcurl $LIBS"
16502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h. */
16504
16505/* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16508#ifdef __cplusplus
16509extern "C"
16510#endif
16511char curl_easy_init ();
16512int
16513main ()
16514{
16515return curl_easy_init ();
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520if ac_fn_cxx_try_link "$LINENO"; then :
16521 ac_cv_lib_curl_curl_easy_init=yes
16522else
16523 ac_cv_lib_curl_curl_easy_init=no
16524fi
16525rm -f core conftest.err conftest.$ac_objext \
16526 conftest$ac_exeext conftest.$ac_ext
16527LIBS=$ac_check_lib_save_LIBS
16528fi
16529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
16530$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
16531if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
16532 LDFLAGS="$LDFLAGS -lcurl"
16533else
16534 if test "$curl" = "yes" ; then
16535 as_fn_error $? "curl library is required" "$LINENO" 5
16536 fi
16537
16538fi
16539
16540 fi
16541fi
16542
16543if test "$taglib" != "no" ; then
16544 # Extract the first word of "taglib-config", so it can be a program name with args.
16545set dummy taglib-config; ac_word=$2
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16547$as_echo_n "checking for $ac_word... " >&6; }
16548if ${ac_cv_path_TAGLIB_CONFIG+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550else
16551 case $TAGLIB_CONFIG in
16552 [\\/]* | ?:[\\/]*)
16553 ac_cv_path_TAGLIB_CONFIG="$TAGLIB_CONFIG" # Let the user override the test with a path.
16554 ;;
16555 *)
16556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16557for as_dir in $PATH
16558do
16559 IFS=$as_save_IFS
16560 test -z "$as_dir" && as_dir=.
16561 for ac_exec_ext in '' $ac_executable_extensions; do
16562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16563 ac_cv_path_TAGLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16565 break 2
16566 fi
16567done
16568 done
16569IFS=$as_save_IFS
16570
16571 ;;
16572esac
16573fi
16574TAGLIB_CONFIG=$ac_cv_path_TAGLIB_CONFIG
16575if test -n "$TAGLIB_CONFIG"; then
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGLIB_CONFIG" >&5
16577$as_echo "$TAGLIB_CONFIG" >&6; }
16578else
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16580$as_echo "no" >&6; }
16581fi
16582
16583
16584 if test "$TAGLIB_CONFIG" != "" ; then
16585 CPPFLAGS="$CPPFLAGS `$TAGLIB_CONFIG --cflags`"
16586 LDFLAGS="$LDFLAGS `$TAGLIB_CONFIG --libs`"
16587 for ac_header in taglib.h
16588do :
16589 ac_fn_cxx_check_header_mongrel "$LINENO" "taglib.h" "ac_cv_header_taglib_h" "$ac_includes_default"
16590if test "x$ac_cv_header_taglib_h" = xyes; then :
16591 cat >>confdefs.h <<_ACEOF
16592#define HAVE_TAGLIB_H 1
16593_ACEOF
16594
16595else
16596 if test "$taglib" = "yes" ; then
16597 as_fn_error $? "missing taglib.h header" "$LINENO" 5
16598 fi
16599
16600fi
16601
16602done
16603
16604 else
16605 if test "$taglib" = "yes" ; then
16606 as_fn_error $? "taglib-config executable is missing" "$LINENO" 5
16607 fi
16608 fi
16609fi
16610
16611ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
16612
16613cat >confcache <<\_ACEOF
16614# This file is a shell script that caches the results of configure
16615# tests run on this system so they can be shared between configure
16616# scripts and configure runs, see configure's option --config-cache.
16617# It is not useful on other systems. If it contains results you don't
16618# want to keep, you may remove or edit it.
16619#
16620# config.status only pays attention to the cache file if you give it
16621# the --recheck option to rerun configure.
16622#
16623# `ac_cv_env_foo' variables (set or unset) will be overridden when
16624# loading this file, other *unset* `ac_cv_foo' will be assigned the
16625# following values.
16626
16627_ACEOF
16628
16629# The following way of writing the cache mishandles newlines in values,
16630# but we know of no workaround that is simple, portable, and efficient.
16631# So, we kill variables containing newlines.
16632# Ultrix sh set writes to stderr and can't be redirected directly,
16633# and sets the high bit in the cache file unless we assign to the vars.
16634(
16635 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16636 eval ac_val=\$$ac_var
16637 case $ac_val in #(
16638 *${as_nl}*)
16639 case $ac_var in #(
16640 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16641$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16642 esac
16643 case $ac_var in #(
16644 _ | IFS | as_nl) ;; #(
16645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16646 *) { eval $ac_var=; unset $ac_var;} ;;
16647 esac ;;
16648 esac
16649 done
16650
16651 (set) 2>&1 |
16652 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16653 *${as_nl}ac_space=\ *)
16654 # `set' does not quote correctly, so add quotes: double-quote
16655 # substitution turns \\\\ into \\, and sed turns \\ into \.
16656 sed -n \
16657 "s/'/'\\\\''/g;
16658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16659 ;; #(
16660 *)
16661 # `set' quotes correctly as required by POSIX, so do not add quotes.
16662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16663 ;;
16664 esac |
16665 sort
16666) |
16667 sed '
16668 /^ac_cv_env_/b end
16669 t clear
16670 :clear
16671 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16672 t end
16673 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16674 :end' >>confcache
16675if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16676 if test -w "$cache_file"; then
16677 if test "x$cache_file" != "x/dev/null"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16679$as_echo "$as_me: updating cache $cache_file" >&6;}
16680 if test ! -f "$cache_file" || test -h "$cache_file"; then
16681 cat confcache >"$cache_file"
16682 else
16683 case $cache_file in #(
16684 */* | ?:*)
16685 mv -f confcache "$cache_file"$$ &&
16686 mv -f "$cache_file"$$ "$cache_file" ;; #(
16687 *)
16688 mv -f confcache "$cache_file" ;;
16689 esac
16690 fi
16691 fi
16692 else
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16694$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16695 fi
16696fi
16697rm -f confcache
16698
16699test "x$prefix" = xNONE && prefix=$ac_default_prefix
16700# Let make expand exec_prefix.
16701test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16702
16703DEFS=-DHAVE_CONFIG_H
16704
16705ac_libobjs=
16706ac_ltlibobjs=
16707U=
16708for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16709 # 1. Remove the extension, and $U if already installed.
16710 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16711 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16712 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16713 # will be set to the directory where LIBOBJS objects are built.
16714 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16715 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16716done
16717LIBOBJS=$ac_libobjs
16718
16719LTLIBOBJS=$ac_ltlibobjs
16720
16721
16722 if test -n "$EXEEXT"; then
16723 am__EXEEXT_TRUE=
16724 am__EXEEXT_FALSE='#'
16725else
16726 am__EXEEXT_TRUE='#'
16727 am__EXEEXT_FALSE=
16728fi
16729
16730if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16731 as_fn_error $? "conditional \"AMDEP\" was never defined.
16732Usually this means the macro was only invoked conditionally." "$LINENO" 5
16733fi
16734if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16735 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16736Usually this means the macro was only invoked conditionally." "$LINENO" 5
16737fi
16738if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16739 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16740Usually this means the macro was only invoked conditionally." "$LINENO" 5
16741fi
16742
16743: "${CONFIG_STATUS=./config.status}"
16744ac_write_fail=0
16745ac_clean_files_save=$ac_clean_files
16746ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16748$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16749as_write_fail=0
16750cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16751#! $SHELL
16752# Generated by $as_me.
16753# Run this file to recreate the current configuration.
16754# Compiler output produced by configure, useful for debugging
16755# configure, is in config.log if it exists.
16756
16757debug=false
16758ac_cs_recheck=false
16759ac_cs_silent=false
16760
16761SHELL=\${CONFIG_SHELL-$SHELL}
16762export SHELL
16763_ASEOF
16764cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16765## -------------------- ##
16766## M4sh Initialization. ##
16767## -------------------- ##
16768
16769# Be more Bourne compatible
16770DUALCASE=1; export DUALCASE # for MKS sh
16771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16772 emulate sh
16773 NULLCMD=:
16774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16775 # is contrary to our usage. Disable this feature.
16776 alias -g '${1+"$@"}'='"$@"'
16777 setopt NO_GLOB_SUBST
16778else
16779 case `(set -o) 2>/dev/null` in #(
16780 *posix*) :
16781 set -o posix ;; #(
16782 *) :
16783 ;;
16784esac
16785fi
16786
16787
16788as_nl='
16789'
16790export as_nl
16791# Printing a long string crashes Solaris 7 /usr/bin/printf.
16792as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16793as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16795# Prefer a ksh shell builtin over an external printf program on Solaris,
16796# but without wasting forks for bash or zsh.
16797if test -z "$BASH_VERSION$ZSH_VERSION" \
16798 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16799 as_echo='print -r --'
16800 as_echo_n='print -rn --'
16801elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16802 as_echo='printf %s\n'
16803 as_echo_n='printf %s'
16804else
16805 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16806 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16807 as_echo_n='/usr/ucb/echo -n'
16808 else
16809 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16810 as_echo_n_body='eval
16811 arg=$1;
16812 case $arg in #(
16813 *"$as_nl"*)
16814 expr "X$arg" : "X\\(.*\\)$as_nl";
16815 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16816 esac;
16817 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16818 '
16819 export as_echo_n_body
16820 as_echo_n='sh -c $as_echo_n_body as_echo'
16821 fi
16822 export as_echo_body
16823 as_echo='sh -c $as_echo_body as_echo'
16824fi
16825
16826# The user is always right.
16827if test "${PATH_SEPARATOR+set}" != set; then
16828 PATH_SEPARATOR=:
16829 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16830 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16831 PATH_SEPARATOR=';'
16832 }
16833fi
16834
16835
16836# IFS
16837# We need space, tab and new line, in precisely that order. Quoting is
16838# there to prevent editors from complaining about space-tab.
16839# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16840# splitting by setting IFS to empty value.)
16841IFS=" "" $as_nl"
16842
16843# Find who we are. Look in the path if we contain no directory separator.
16844as_myself=
16845case $0 in #((
16846 *[\\/]* ) as_myself=$0 ;;
16847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16848for as_dir in $PATH
16849do
16850 IFS=$as_save_IFS
16851 test -z "$as_dir" && as_dir=.
16852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16853 done
16854IFS=$as_save_IFS
16855
16856 ;;
16857esac
16858# We did not find ourselves, most probably we were run as `sh COMMAND'
16859# in which case we are not to be found in the path.
16860if test "x$as_myself" = x; then
16861 as_myself=$0
16862fi
16863if test ! -f "$as_myself"; then
16864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16865 exit 1
16866fi
16867
16868# Unset variables that we do not need and which cause bugs (e.g. in
16869# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16870# suppresses any "Segmentation fault" message there. '((' could
16871# trigger a bug in pdksh 5.2.14.
16872for as_var in BASH_ENV ENV MAIL MAILPATH
16873do eval test x\${$as_var+set} = xset \
16874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16875done
16876PS1='$ '
16877PS2='> '
16878PS4='+ '
16879
16880# NLS nuisances.
16881LC_ALL=C
16882export LC_ALL
16883LANGUAGE=C
16884export LANGUAGE
16885
16886# CDPATH.
16887(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16888
16889
16890# as_fn_error STATUS ERROR [LINENO LOG_FD]
16891# ----------------------------------------
16892# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16893# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16894# script with STATUS, using 1 if that was 0.
16895as_fn_error ()
16896{
16897 as_status=$1; test $as_status -eq 0 && as_status=1
16898 if test "$4"; then
16899 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16900 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16901 fi
16902 $as_echo "$as_me: error: $2" >&2
16903 as_fn_exit $as_status
16904} # as_fn_error
16905
16906
16907# as_fn_set_status STATUS
16908# -----------------------
16909# Set $? to STATUS, without forking.
16910as_fn_set_status ()
16911{
16912 return $1
16913} # as_fn_set_status
16914
16915# as_fn_exit STATUS
16916# -----------------
16917# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16918as_fn_exit ()
16919{
16920 set +e
16921 as_fn_set_status $1
16922 exit $1
16923} # as_fn_exit
16924
16925# as_fn_unset VAR
16926# ---------------
16927# Portably unset VAR.
16928as_fn_unset ()
16929{
16930 { eval $1=; unset $1;}
16931}
16932as_unset=as_fn_unset
16933# as_fn_append VAR VALUE
16934# ----------------------
16935# Append the text in VALUE to the end of the definition contained in VAR. Take
16936# advantage of any shell optimizations that allow amortized linear growth over
16937# repeated appends, instead of the typical quadratic growth present in naive
16938# implementations.
16939if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16940 eval 'as_fn_append ()
16941 {
16942 eval $1+=\$2
16943 }'
16944else
16945 as_fn_append ()
16946 {
16947 eval $1=\$$1\$2
16948 }
16949fi # as_fn_append
16950
16951# as_fn_arith ARG...
16952# ------------------
16953# Perform arithmetic evaluation on the ARGs, and store the result in the
16954# global $as_val. Take advantage of shells that can avoid forks. The arguments
16955# must be portable across $(()) and expr.
16956if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16957 eval 'as_fn_arith ()
16958 {
16959 as_val=$(( $* ))
16960 }'
16961else
16962 as_fn_arith ()
16963 {
16964 as_val=`expr "$@" || test $? -eq 1`
16965 }
16966fi # as_fn_arith
16967
16968
16969if expr a : '\(a\)' >/dev/null 2>&1 &&
16970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16971 as_expr=expr
16972else
16973 as_expr=false
16974fi
16975
16976if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16977 as_basename=basename
16978else
16979 as_basename=false
16980fi
16981
16982if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16983 as_dirname=dirname
16984else
16985 as_dirname=false
16986fi
16987
16988as_me=`$as_basename -- "$0" ||
16989$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16990 X"$0" : 'X\(//\)$' \| \
16991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16992$as_echo X/"$0" |
16993 sed '/^.*\/\([^/][^/]*\)\/*$/{
16994 s//\1/
16995 q
16996 }
16997 /^X\/\(\/\/\)$/{
16998 s//\1/
16999 q
17000 }
17001 /^X\/\(\/\).*/{
17002 s//\1/
17003 q
17004 }
17005 s/.*/./; q'`
17006
17007# Avoid depending upon Character Ranges.
17008as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17009as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17010as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17011as_cr_digits='0123456789'
17012as_cr_alnum=$as_cr_Letters$as_cr_digits
17013
17014ECHO_C= ECHO_N= ECHO_T=
17015case `echo -n x` in #(((((
17016-n*)
17017 case `echo 'xy\c'` in
17018 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17019 xy) ECHO_C='\c';;
17020 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17021 ECHO_T=' ';;
17022 esac;;
17023*)
17024 ECHO_N='-n';;
17025esac
17026
17027rm -f conf$$ conf$$.exe conf$$.file
17028if test -d conf$$.dir; then
17029 rm -f conf$$.dir/conf$$.file
17030else
17031 rm -f conf$$.dir
17032 mkdir conf$$.dir 2>/dev/null
17033fi
17034if (echo >conf$$.file) 2>/dev/null; then
17035 if ln -s conf$$.file conf$$ 2>/dev/null; then
17036 as_ln_s='ln -s'
17037 # ... but there are two gotchas:
17038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17040 # In both cases, we have to default to `cp -pR'.
17041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17042 as_ln_s='cp -pR'
17043 elif ln conf$$.file conf$$ 2>/dev/null; then
17044 as_ln_s=ln
17045 else
17046 as_ln_s='cp -pR'
17047 fi
17048else
17049 as_ln_s='cp -pR'
17050fi
17051rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17052rmdir conf$$.dir 2>/dev/null
17053
17054
17055# as_fn_mkdir_p
17056# -------------
17057# Create "$as_dir" as a directory, including parents if necessary.
17058as_fn_mkdir_p ()
17059{
17060
17061 case $as_dir in #(
17062 -*) as_dir=./$as_dir;;
17063 esac
17064 test -d "$as_dir" || eval $as_mkdir_p || {
17065 as_dirs=
17066 while :; do
17067 case $as_dir in #(
17068 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17069 *) as_qdir=$as_dir;;
17070 esac
17071 as_dirs="'$as_qdir' $as_dirs"
17072 as_dir=`$as_dirname -- "$as_dir" ||
17073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17074 X"$as_dir" : 'X\(//\)[^/]' \| \
17075 X"$as_dir" : 'X\(//\)$' \| \
17076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17077$as_echo X"$as_dir" |
17078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17079 s//\1/
17080 q
17081 }
17082 /^X\(\/\/\)[^/].*/{
17083 s//\1/
17084 q
17085 }
17086 /^X\(\/\/\)$/{
17087 s//\1/
17088 q
17089 }
17090 /^X\(\/\).*/{
17091 s//\1/
17092 q
17093 }
17094 s/.*/./; q'`
17095 test -d "$as_dir" && break
17096 done
17097 test -z "$as_dirs" || eval "mkdir $as_dirs"
17098 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17099
17100
17101} # as_fn_mkdir_p
17102if mkdir -p . 2>/dev/null; then
17103 as_mkdir_p='mkdir -p "$as_dir"'
17104else
17105 test -d ./-p && rmdir ./-p
17106 as_mkdir_p=false
17107fi
17108
17109
17110# as_fn_executable_p FILE
17111# -----------------------
17112# Test if FILE is an executable regular file.
17113as_fn_executable_p ()
17114{
17115 test -f "$1" && test -x "$1"
17116} # as_fn_executable_p
17117as_test_x='test -x'
17118as_executable_p=as_fn_executable_p
17119
17120# Sed expression to map a string onto a valid CPP name.
17121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17122
17123# Sed expression to map a string onto a valid variable name.
17124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17125
17126
17127exec 6>&1
17128## ----------------------------------- ##
17129## Main body of $CONFIG_STATUS script. ##
17130## ----------------------------------- ##
17131_ASEOF
17132test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17133
17134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17135# Save the log message, to keep $0 and so on meaningful, and to
17136# report actual input values of CONFIG_FILES etc. instead of their
17137# values after options handling.
17138ac_log="
17139This file was extended by $as_me, which was
17140generated by GNU Autoconf 2.69. Invocation command line was
17141
17142 CONFIG_FILES = $CONFIG_FILES
17143 CONFIG_HEADERS = $CONFIG_HEADERS
17144 CONFIG_LINKS = $CONFIG_LINKS
17145 CONFIG_COMMANDS = $CONFIG_COMMANDS
17146 $ $0 $@
17147
17148on `(hostname || uname -n) 2>/dev/null | sed 1q`
17149"
17150
17151_ACEOF
17152
17153case $ac_config_files in *"
17154"*) set x $ac_config_files; shift; ac_config_files=$*;;
17155esac
17156
17157case $ac_config_headers in *"
17158"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17159esac
17160
17161
17162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17163# Files that config.status was made for.
17164config_files="$ac_config_files"
17165config_headers="$ac_config_headers"
17166config_commands="$ac_config_commands"
17167
17168_ACEOF
17169
17170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171ac_cs_usage="\
17172\`$as_me' instantiates files and other configuration actions
17173from templates according to the current configuration. Unless the files
17174and actions are specified as TAGs, all are instantiated by default.
17175
17176Usage: $0 [OPTION]... [TAG]...
17177
17178 -h, --help print this help, then exit
17179 -V, --version print version number and configuration settings, then exit
17180 --config print configuration, then exit
17181 -q, --quiet, --silent
17182 do not print progress messages
17183 -d, --debug don't remove temporary files
17184 --recheck update $as_me by reconfiguring in the same conditions
17185 --file=FILE[:TEMPLATE]
17186 instantiate the configuration file FILE
17187 --header=FILE[:TEMPLATE]
17188 instantiate the configuration header FILE
17189
17190Configuration files:
17191$config_files
17192
17193Configuration headers:
17194$config_headers
17195
17196Configuration commands:
17197$config_commands
17198
17199Report bugs to the package provider."
17200
17201_ACEOF
17202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17203ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17204ac_cs_version="\\
17205config.status
17206configured by $0, generated by GNU Autoconf 2.69,
17207 with options \\"\$ac_cs_config\\"
17208
17209Copyright (C) 2012 Free Software Foundation, Inc.
17210This config.status script is free software; the Free Software Foundation
17211gives unlimited permission to copy, distribute and modify it."
17212
17213ac_pwd='$ac_pwd'
17214srcdir='$srcdir'
17215INSTALL='$INSTALL'
17216MKDIR_P='$MKDIR_P'
17217AWK='$AWK'
17218test -n "\$AWK" || AWK=awk
17219_ACEOF
17220
17221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17222# The default lists apply if the user does not specify any file.
17223ac_need_defaults=:
17224while test $# != 0
17225do
17226 case $1 in
17227 --*=?*)
17228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17229 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17230 ac_shift=:
17231 ;;
17232 --*=)
17233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17234 ac_optarg=
17235 ac_shift=:
17236 ;;
17237 *)
17238 ac_option=$1
17239 ac_optarg=$2
17240 ac_shift=shift
17241 ;;
17242 esac
17243
17244 case $ac_option in
17245 # Handling of the options.
17246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17247 ac_cs_recheck=: ;;
17248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17249 $as_echo "$ac_cs_version"; exit ;;
17250 --config | --confi | --conf | --con | --co | --c )
17251 $as_echo "$ac_cs_config"; exit ;;
17252 --debug | --debu | --deb | --de | --d | -d )
17253 debug=: ;;
17254 --file | --fil | --fi | --f )
17255 $ac_shift
17256 case $ac_optarg in
17257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17258 '') as_fn_error $? "missing file argument" ;;
17259 esac
17260 as_fn_append CONFIG_FILES " '$ac_optarg'"
17261 ac_need_defaults=false;;
17262 --header | --heade | --head | --hea )
17263 $ac_shift
17264 case $ac_optarg in
17265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17266 esac
17267 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17268 ac_need_defaults=false;;
17269 --he | --h)
17270 # Conflict between --help and --header
17271 as_fn_error $? "ambiguous option: \`$1'
17272Try \`$0 --help' for more information.";;
17273 --help | --hel | -h )
17274 $as_echo "$ac_cs_usage"; exit ;;
17275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17277 ac_cs_silent=: ;;
17278
17279 # This is an error.
17280 -*) as_fn_error $? "unrecognized option: \`$1'
17281Try \`$0 --help' for more information." ;;
17282
17283 *) as_fn_append ac_config_targets " $1"
17284 ac_need_defaults=false ;;
17285
17286 esac
17287 shift
17288done
17289
17290ac_configure_extra_args=
17291
17292if $ac_cs_silent; then
17293 exec 6>/dev/null
17294 ac_configure_extra_args="$ac_configure_extra_args --silent"
17295fi
17296
17297_ACEOF
17298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17299if \$ac_cs_recheck; then
17300 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17301 shift
17302 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17303 CONFIG_SHELL='$SHELL'
17304 export CONFIG_SHELL
17305 exec "\$@"
17306fi
17307
17308_ACEOF
17309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17310exec 5>>config.log
17311{
17312 echo
17313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17314## Running $as_me. ##
17315_ASBOX
17316 $as_echo "$ac_log"
17317} >&5
17318
17319_ACEOF
17320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17321#
17322# INIT-COMMANDS
17323#
17324AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17325
17326
17327# The HP-UX ksh and POSIX shell print the target directory to stdout
17328# if CDPATH is set.
17329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17330
17331sed_quote_subst='$sed_quote_subst'
17332double_quote_subst='$double_quote_subst'
17333delay_variable_subst='$delay_variable_subst'
17334macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17335macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17336enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17337enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17338pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17339enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17340SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17341ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17342PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17343host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17344host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17345host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17346build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17347build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17348build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17349SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17350Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17351GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17352EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17353FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17354LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17355NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17356LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17357max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17358ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17359exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17360lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17361lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17362lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17363lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17364lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17365reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17366reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17367OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17368deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17369file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17370file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17371want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17372DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17373sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17374AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17375AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17376archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17377STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17378RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17379old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17380old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17381old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17382lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17383CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17384CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17385compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17386GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17387lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17388lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17389lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17390lt_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"`'
17391nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17392lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17393objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17394MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17395lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17396lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17397lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17398lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17399lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17400need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17401MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17402DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17403NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17404LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17405OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17406OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17407libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17408shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17409extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17410archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17411enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17412export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17413whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17414compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17415old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17416old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17417archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17418archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17419module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17420module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17421with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17422allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17423no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17424hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17425hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17426hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17427hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17428hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17429hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17430hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17431inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17432link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17433always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17434export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17435exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17436include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17437prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17438postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17439file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17440variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17441need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17442need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17443version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17444runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17445shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17446shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17447libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17448library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17449soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17450install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17451postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17452postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17453finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17454finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17455hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17456sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17457sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17458hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17459enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17460enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17461enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17462old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17463striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17464compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17465predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17466postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17467predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17468postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17469compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17470LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17471reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17472reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17473old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17474compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17475GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17476lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17477lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17478lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17479lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17480lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17481archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17482enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17483export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17484whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17485compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17486old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17487old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17488archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17489archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17490module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17491module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17492with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17493allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17494no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17495hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17496hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17497hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17498hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17499hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17500hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17501hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17502inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17503link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17504always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17505export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17506exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17507include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17508prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17509postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17510file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17511hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17512compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17513predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17514postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17515predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17516postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17517compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17518
17519LTCC='$LTCC'
17520LTCFLAGS='$LTCFLAGS'
17521compiler='$compiler_DEFAULT'
17522
17523# A function that is used when there is no print builtin or printf.
17524func_fallback_echo ()
17525{
17526 eval 'cat <<_LTECHO_EOF
17527\$1
17528_LTECHO_EOF'
17529}
17530
17531# Quote evaled strings.
17532for var in SHELL \
17533ECHO \
17534PATH_SEPARATOR \
17535SED \
17536GREP \
17537EGREP \
17538FGREP \
17539LD \
17540NM \
17541LN_S \
17542lt_SP2NL \
17543lt_NL2SP \
17544reload_flag \
17545OBJDUMP \
17546deplibs_check_method \
17547file_magic_cmd \
17548file_magic_glob \
17549want_nocaseglob \
17550DLLTOOL \
17551sharedlib_from_linklib_cmd \
17552AR \
17553AR_FLAGS \
17554archiver_list_spec \
17555STRIP \
17556RANLIB \
17557CC \
17558CFLAGS \
17559compiler \
17560lt_cv_sys_global_symbol_pipe \
17561lt_cv_sys_global_symbol_to_cdecl \
17562lt_cv_sys_global_symbol_to_c_name_address \
17563lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17564nm_file_list_spec \
17565lt_prog_compiler_no_builtin_flag \
17566lt_prog_compiler_pic \
17567lt_prog_compiler_wl \
17568lt_prog_compiler_static \
17569lt_cv_prog_compiler_c_o \
17570need_locks \
17571MANIFEST_TOOL \
17572DSYMUTIL \
17573NMEDIT \
17574LIPO \
17575OTOOL \
17576OTOOL64 \
17577shrext_cmds \
17578export_dynamic_flag_spec \
17579whole_archive_flag_spec \
17580compiler_needs_object \
17581with_gnu_ld \
17582allow_undefined_flag \
17583no_undefined_flag \
17584hardcode_libdir_flag_spec \
17585hardcode_libdir_separator \
17586exclude_expsyms \
17587include_expsyms \
17588file_list_spec \
17589variables_saved_for_relink \
17590libname_spec \
17591library_names_spec \
17592soname_spec \
17593install_override_mode \
17594finish_eval \
17595old_striplib \
17596striplib \
17597compiler_lib_search_dirs \
17598predep_objects \
17599postdep_objects \
17600predeps \
17601postdeps \
17602compiler_lib_search_path \
17603LD_CXX \
17604reload_flag_CXX \
17605compiler_CXX \
17606lt_prog_compiler_no_builtin_flag_CXX \
17607lt_prog_compiler_pic_CXX \
17608lt_prog_compiler_wl_CXX \
17609lt_prog_compiler_static_CXX \
17610lt_cv_prog_compiler_c_o_CXX \
17611export_dynamic_flag_spec_CXX \
17612whole_archive_flag_spec_CXX \
17613compiler_needs_object_CXX \
17614with_gnu_ld_CXX \
17615allow_undefined_flag_CXX \
17616no_undefined_flag_CXX \
17617hardcode_libdir_flag_spec_CXX \
17618hardcode_libdir_separator_CXX \
17619exclude_expsyms_CXX \
17620include_expsyms_CXX \
17621file_list_spec_CXX \
17622compiler_lib_search_dirs_CXX \
17623predep_objects_CXX \
17624postdep_objects_CXX \
17625predeps_CXX \
17626postdeps_CXX \
17627compiler_lib_search_path_CXX; do
17628 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17629 *[\\\\\\\`\\"\\\$]*)
17630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17631 ;;
17632 *)
17633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17634 ;;
17635 esac
17636done
17637
17638# Double-quote double-evaled strings.
17639for var in reload_cmds \
17640old_postinstall_cmds \
17641old_postuninstall_cmds \
17642old_archive_cmds \
17643extract_expsyms_cmds \
17644old_archive_from_new_cmds \
17645old_archive_from_expsyms_cmds \
17646archive_cmds \
17647archive_expsym_cmds \
17648module_cmds \
17649module_expsym_cmds \
17650export_symbols_cmds \
17651prelink_cmds \
17652postlink_cmds \
17653postinstall_cmds \
17654postuninstall_cmds \
17655finish_cmds \
17656sys_lib_search_path_spec \
17657sys_lib_dlsearch_path_spec \
17658reload_cmds_CXX \
17659old_archive_cmds_CXX \
17660old_archive_from_new_cmds_CXX \
17661old_archive_from_expsyms_cmds_CXX \
17662archive_cmds_CXX \
17663archive_expsym_cmds_CXX \
17664module_cmds_CXX \
17665module_expsym_cmds_CXX \
17666export_symbols_cmds_CXX \
17667prelink_cmds_CXX \
17668postlink_cmds_CXX; do
17669 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17670 *[\\\\\\\`\\"\\\$]*)
17671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17672 ;;
17673 *)
17674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17675 ;;
17676 esac
17677done
17678
17679ac_aux_dir='$ac_aux_dir'
17680xsi_shell='$xsi_shell'
17681lt_shell_append='$lt_shell_append'
17682
17683# See if we are running on zsh, and set the options which allow our
17684# commands through without removal of \ escapes INIT.
17685if test -n "\${ZSH_VERSION+set}" ; then
17686 setopt NO_GLOB_SUBST
17687fi
17688
17689
17690 PACKAGE='$PACKAGE'
17691 VERSION='$VERSION'
17692 TIMESTAMP='$TIMESTAMP'
17693 RM='$RM'
17694 ofile='$ofile'
17695
17696
17697
17698
17699
17700
17701_ACEOF
17702
17703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17704
17705# Handling of arguments.
17706for ac_config_target in $ac_config_targets
17707do
17708 case $ac_config_target in
17709 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17710 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17711 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17713 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17714 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17715
17716 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17717 esac
17718done
17719
17720
17721# If the user did not use the arguments to specify the items to instantiate,
17722# then the envvar interface is used. Set only those that are not.
17723# We use the long form for the default assignment because of an extremely
17724# bizarre bug on SunOS 4.1.3.
17725if $ac_need_defaults; then
17726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17729fi
17730
17731# Have a temporary directory for convenience. Make it in the build tree
17732# simply because there is no reason against having it here, and in addition,
17733# creating and moving files from /tmp can sometimes cause problems.
17734# Hook for its removal unless debugging.
17735# Note that there is a small window in which the directory will not be cleaned:
17736# after its creation but before its name has been assigned to `$tmp'.
17737$debug ||
17738{
17739 tmp= ac_tmp=
17740 trap 'exit_status=$?
17741 : "${ac_tmp:=$tmp}"
17742 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17743' 0
17744 trap 'as_fn_exit 1' 1 2 13 15
17745}
17746# Create a (secure) tmp directory for tmp files.
17747
17748{
17749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17750 test -d "$tmp"
17751} ||
17752{
17753 tmp=./conf$$-$RANDOM
17754 (umask 077 && mkdir "$tmp")
17755} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17756ac_tmp=$tmp
17757
17758# Set up the scripts for CONFIG_FILES section.
17759# No need to generate them if there are no CONFIG_FILES.
17760# This happens for instance with `./config.status config.h'.
17761if test -n "$CONFIG_FILES"; then
17762
17763
17764ac_cr=`echo X | tr X '\015'`
17765# On cygwin, bash can eat \r inside `` if the user requested igncr.
17766# But we know of no other shell where ac_cr would be empty at this
17767# point, so we can use a bashism as a fallback.
17768if test "x$ac_cr" = x; then
17769 eval ac_cr=\$\'\\r\'
17770fi
17771ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17772if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17773 ac_cs_awk_cr='\\r'
17774else
17775 ac_cs_awk_cr=$ac_cr
17776fi
17777
17778echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17779_ACEOF
17780
17781
17782{
17783 echo "cat >conf$$subs.awk <<_ACEOF" &&
17784 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17785 echo "_ACEOF"
17786} >conf$$subs.sh ||
17787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17788ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17789ac_delim='%!_!# '
17790for ac_last_try in false false false false false :; do
17791 . ./conf$$subs.sh ||
17792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17793
17794 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17795 if test $ac_delim_n = $ac_delim_num; then
17796 break
17797 elif $ac_last_try; then
17798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17799 else
17800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17801 fi
17802done
17803rm -f conf$$subs.sh
17804
17805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17806cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17807_ACEOF
17808sed -n '
17809h
17810s/^/S["/; s/!.*/"]=/
17811p
17812g
17813s/^[^!]*!//
17814:repl
17815t repl
17816s/'"$ac_delim"'$//
17817t delim
17818:nl
17819h
17820s/\(.\{148\}\)..*/\1/
17821t more1
17822s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17823p
17824n
17825b repl
17826:more1
17827s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17828p
17829g
17830s/.\{148\}//
17831t nl
17832:delim
17833h
17834s/\(.\{148\}\)..*/\1/
17835t more2
17836s/["\\]/\\&/g; s/^/"/; s/$/"/
17837p
17838b
17839:more2
17840s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17841p
17842g
17843s/.\{148\}//
17844t delim
17845' <conf$$subs.awk | sed '
17846/^[^""]/{
17847 N
17848 s/\n//
17849}
17850' >>$CONFIG_STATUS || ac_write_fail=1
17851rm -f conf$$subs.awk
17852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17853_ACAWK
17854cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17855 for (key in S) S_is_set[key] = 1
17856 FS = ""
17857
17858}
17859{
17860 line = $ 0
17861 nfields = split(line, field, "@")
17862 substed = 0
17863 len = length(field[1])
17864 for (i = 2; i < nfields; i++) {
17865 key = field[i]
17866 keylen = length(key)
17867 if (S_is_set[key]) {
17868 value = S[key]
17869 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17870 len += length(value) + length(field[++i])
17871 substed = 1
17872 } else
17873 len += 1 + keylen
17874 }
17875
17876 print line
17877}
17878
17879_ACAWK
17880_ACEOF
17881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17882if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17883 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17884else
17885 cat
17886fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17887 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17888_ACEOF
17889
17890# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17891# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17892# trailing colons and then remove the whole line if VPATH becomes empty
17893# (actually we leave an empty line to preserve line numbers).
17894if test "x$srcdir" = x.; then
17895 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17896h
17897s///
17898s/^/:/
17899s/[ ]*$/:/
17900s/:\$(srcdir):/:/g
17901s/:\${srcdir}:/:/g
17902s/:@srcdir@:/:/g
17903s/^:*//
17904s/:*$//
17905x
17906s/\(=[ ]*\).*/\1/
17907G
17908s/\n//
17909s/^[^=]*=[ ]*$//
17910}'
17911fi
17912
17913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17914fi # test -n "$CONFIG_FILES"
17915
17916# Set up the scripts for CONFIG_HEADERS section.
17917# No need to generate them if there are no CONFIG_HEADERS.
17918# This happens for instance with `./config.status Makefile'.
17919if test -n "$CONFIG_HEADERS"; then
17920cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17921BEGIN {
17922_ACEOF
17923
17924# Transform confdefs.h into an awk script `defines.awk', embedded as
17925# here-document in config.status, that substitutes the proper values into
17926# config.h.in to produce config.h.
17927
17928# Create a delimiter string that does not exist in confdefs.h, to ease
17929# handling of long lines.
17930ac_delim='%!_!# '
17931for ac_last_try in false false :; do
17932 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17933 if test -z "$ac_tt"; then
17934 break
17935 elif $ac_last_try; then
17936 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17937 else
17938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17939 fi
17940done
17941
17942# For the awk script, D is an array of macro values keyed by name,
17943# likewise P contains macro parameters if any. Preserve backslash
17944# newline sequences.
17945
17946ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17947sed -n '
17948s/.\{148\}/&'"$ac_delim"'/g
17949t rset
17950:rset
17951s/^[ ]*#[ ]*define[ ][ ]*/ /
17952t def
17953d
17954:def
17955s/\\$//
17956t bsnl
17957s/["\\]/\\&/g
17958s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17959D["\1"]=" \3"/p
17960s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17961d
17962:bsnl
17963s/["\\]/\\&/g
17964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17965D["\1"]=" \3\\\\\\n"\\/p
17966t cont
17967s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17968t cont
17969d
17970:cont
17971n
17972s/.\{148\}/&'"$ac_delim"'/g
17973t clear
17974:clear
17975s/\\$//
17976t bsnlc
17977s/["\\]/\\&/g; s/^/"/; s/$/"/p
17978d
17979:bsnlc
17980s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17981b cont
17982' <confdefs.h | sed '
17983s/'"$ac_delim"'/"\\\
17984"/g' >>$CONFIG_STATUS || ac_write_fail=1
17985
17986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17987 for (key in D) D_is_set[key] = 1
17988 FS = ""
17989}
17990/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17991 line = \$ 0
17992 split(line, arg, " ")
17993 if (arg[1] == "#") {
17994 defundef = arg[2]
17995 mac1 = arg[3]
17996 } else {
17997 defundef = substr(arg[1], 2)
17998 mac1 = arg[2]
17999 }
18000 split(mac1, mac2, "(") #)
18001 macro = mac2[1]
18002 prefix = substr(line, 1, index(line, defundef) - 1)
18003 if (D_is_set[macro]) {
18004 # Preserve the white space surrounding the "#".
18005 print prefix "define", macro P[macro] D[macro]
18006 next
18007 } else {
18008 # Replace #undef with comments. This is necessary, for example,
18009 # in the case of _POSIX_SOURCE, which is predefined and required
18010 # on some systems where configure will not decide to define it.
18011 if (defundef == "undef") {
18012 print "/*", prefix defundef, macro, "*/"
18013 next
18014 }
18015 }
18016}
18017{ print }
18018_ACAWK
18019_ACEOF
18020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18021 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18022fi # test -n "$CONFIG_HEADERS"
18023
18024
18025eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18026shift
18027for ac_tag
18028do
18029 case $ac_tag in
18030 :[FHLC]) ac_mode=$ac_tag; continue;;
18031 esac
18032 case $ac_mode$ac_tag in
18033 :[FHL]*:*);;
18034 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18035 :[FH]-) ac_tag=-:-;;
18036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18037 esac
18038 ac_save_IFS=$IFS
18039 IFS=:
18040 set x $ac_tag
18041 IFS=$ac_save_IFS
18042 shift
18043 ac_file=$1
18044 shift
18045
18046 case $ac_mode in
18047 :L) ac_source=$1;;
18048 :[FH])
18049 ac_file_inputs=
18050 for ac_f
18051 do
18052 case $ac_f in
18053 -) ac_f="$ac_tmp/stdin";;
18054 *) # Look for the file first in the build tree, then in the source tree
18055 # (if the path is not absolute). The absolute path cannot be DOS-style,
18056 # because $ac_f cannot contain `:'.
18057 test -f "$ac_f" ||
18058 case $ac_f in
18059 [\\/$]*) false;;
18060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18061 esac ||
18062 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18063 esac
18064 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18065 as_fn_append ac_file_inputs " '$ac_f'"
18066 done
18067
18068 # Let's still pretend it is `configure' which instantiates (i.e., don't
18069 # use $as_me), people would be surprised to read:
18070 # /* config.h. Generated by config.status. */
18071 configure_input='Generated from '`
18072 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18073 `' by configure.'
18074 if test x"$ac_file" != x-; then
18075 configure_input="$ac_file. $configure_input"
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18077$as_echo "$as_me: creating $ac_file" >&6;}
18078 fi
18079 # Neutralize special characters interpreted by sed in replacement strings.
18080 case $configure_input in #(
18081 *\&* | *\|* | *\\* )
18082 ac_sed_conf_input=`$as_echo "$configure_input" |
18083 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18084 *) ac_sed_conf_input=$configure_input;;
18085 esac
18086
18087 case $ac_tag in
18088 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18090 esac
18091 ;;
18092 esac
18093
18094 ac_dir=`$as_dirname -- "$ac_file" ||
18095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18096 X"$ac_file" : 'X\(//\)[^/]' \| \
18097 X"$ac_file" : 'X\(//\)$' \| \
18098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18099$as_echo X"$ac_file" |
18100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18101 s//\1/
18102 q
18103 }
18104 /^X\(\/\/\)[^/].*/{
18105 s//\1/
18106 q
18107 }
18108 /^X\(\/\/\)$/{
18109 s//\1/
18110 q
18111 }
18112 /^X\(\/\).*/{
18113 s//\1/
18114 q
18115 }
18116 s/.*/./; q'`
18117 as_dir="$ac_dir"; as_fn_mkdir_p
18118 ac_builddir=.
18119
18120case "$ac_dir" in
18121.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18122*)
18123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18124 # A ".." for each directory in $ac_dir_suffix.
18125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18126 case $ac_top_builddir_sub in
18127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18129 esac ;;
18130esac
18131ac_abs_top_builddir=$ac_pwd
18132ac_abs_builddir=$ac_pwd$ac_dir_suffix
18133# for backward compatibility:
18134ac_top_builddir=$ac_top_build_prefix
18135
18136case $srcdir in
18137 .) # We are building in place.
18138 ac_srcdir=.
18139 ac_top_srcdir=$ac_top_builddir_sub
18140 ac_abs_top_srcdir=$ac_pwd ;;
18141 [\\/]* | ?:[\\/]* ) # Absolute name.
18142 ac_srcdir=$srcdir$ac_dir_suffix;
18143 ac_top_srcdir=$srcdir
18144 ac_abs_top_srcdir=$srcdir ;;
18145 *) # Relative name.
18146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18147 ac_top_srcdir=$ac_top_build_prefix$srcdir
18148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18149esac
18150ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18151
18152
18153 case $ac_mode in
18154 :F)
18155 #
18156 # CONFIG_FILE
18157 #
18158
18159 case $INSTALL in
18160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18162 esac
18163 ac_MKDIR_P=$MKDIR_P
18164 case $MKDIR_P in
18165 [\\/$]* | ?:[\\/]* ) ;;
18166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18167 esac
18168_ACEOF
18169
18170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18171# If the template does not know about datarootdir, expand it.
18172# FIXME: This hack should be removed a few years after 2.60.
18173ac_datarootdir_hack=; ac_datarootdir_seen=
18174ac_sed_dataroot='
18175/datarootdir/ {
18176 p
18177 q
18178}
18179/@datadir@/p
18180/@docdir@/p
18181/@infodir@/p
18182/@localedir@/p
18183/@mandir@/p'
18184case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18185*datarootdir*) ac_datarootdir_seen=yes;;
18186*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18188$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18189_ACEOF
18190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18191 ac_datarootdir_hack='
18192 s&@datadir@&$datadir&g
18193 s&@docdir@&$docdir&g
18194 s&@infodir@&$infodir&g
18195 s&@localedir@&$localedir&g
18196 s&@mandir@&$mandir&g
18197 s&\\\${datarootdir}&$datarootdir&g' ;;
18198esac
18199_ACEOF
18200
18201# Neutralize VPATH when `$srcdir' = `.'.
18202# Shell code in configure.ac might set extrasub.
18203# FIXME: do we really want to maintain this feature?
18204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18205ac_sed_extra="$ac_vpsub
18206$extrasub
18207_ACEOF
18208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18209:t
18210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18211s|@configure_input@|$ac_sed_conf_input|;t t
18212s&@top_builddir@&$ac_top_builddir_sub&;t t
18213s&@top_build_prefix@&$ac_top_build_prefix&;t t
18214s&@srcdir@&$ac_srcdir&;t t
18215s&@abs_srcdir@&$ac_abs_srcdir&;t t
18216s&@top_srcdir@&$ac_top_srcdir&;t t
18217s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18218s&@builddir@&$ac_builddir&;t t
18219s&@abs_builddir@&$ac_abs_builddir&;t t
18220s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18221s&@INSTALL@&$ac_INSTALL&;t t
18222s&@MKDIR_P@&$ac_MKDIR_P&;t t
18223$ac_datarootdir_hack
18224"
18225eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18226 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18227
18228test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18229 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18231 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18233which seems to be undefined. Please make sure it is defined" >&5
18234$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18235which seems to be undefined. Please make sure it is defined" >&2;}
18236
18237 rm -f "$ac_tmp/stdin"
18238 case $ac_file in
18239 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18240 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18241 esac \
18242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18243 ;;
18244 :H)
18245 #
18246 # CONFIG_HEADER
18247 #
18248 if test x"$ac_file" != x-; then
18249 {
18250 $as_echo "/* $configure_input */" \
18251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18252 } >"$ac_tmp/config.h" \
18253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18254 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18256$as_echo "$as_me: $ac_file is unchanged" >&6;}
18257 else
18258 rm -f "$ac_file"
18259 mv "$ac_tmp/config.h" "$ac_file" \
18260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18261 fi
18262 else
18263 $as_echo "/* $configure_input */" \
18264 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18265 || as_fn_error $? "could not create -" "$LINENO" 5
18266 fi
18267# Compute "$ac_file"'s index in $config_headers.
18268_am_arg="$ac_file"
18269_am_stamp_count=1
18270for _am_header in $config_headers :; do
18271 case $_am_header in
18272 $_am_arg | $_am_arg:* )
18273 break ;;
18274 * )
18275 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18276 esac
18277done
18278echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18279$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18280 X"$_am_arg" : 'X\(//\)[^/]' \| \
18281 X"$_am_arg" : 'X\(//\)$' \| \
18282 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18283$as_echo X"$_am_arg" |
18284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18285 s//\1/
18286 q
18287 }
18288 /^X\(\/\/\)[^/].*/{
18289 s//\1/
18290 q
18291 }
18292 /^X\(\/\/\)$/{
18293 s//\1/
18294 q
18295 }
18296 /^X\(\/\).*/{
18297 s//\1/
18298 q
18299 }
18300 s/.*/./; q'`/stamp-h$_am_stamp_count
18301 ;;
18302
18303 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18304$as_echo "$as_me: executing $ac_file commands" >&6;}
18305 ;;
18306 esac
18307
18308
18309 case $ac_file$ac_mode in
18310 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18311 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18312 # are listed without --file. Let's play safe and only enable the eval
18313 # if we detect the quoting.
18314 case $CONFIG_FILES in
18315 *\'*) eval set x "$CONFIG_FILES" ;;
18316 *) set x $CONFIG_FILES ;;
18317 esac
18318 shift
18319 for mf
18320 do
18321 # Strip MF so we end up with the name of the file.
18322 mf=`echo "$mf" | sed -e 's/:.*$//'`
18323 # Check whether this is an Automake generated Makefile or not.
18324 # We used to match only the files named `Makefile.in', but
18325 # some people rename them; so instead we look at the file content.
18326 # Grep'ing the first line is not enough: some people post-process
18327 # each Makefile.in and add a new line on top of each file to say so.
18328 # Grep'ing the whole file is not good either: AIX grep has a line
18329 # limit of 2048, but all sed's we know have understand at least 4000.
18330 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18331 dirpart=`$as_dirname -- "$mf" ||
18332$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18333 X"$mf" : 'X\(//\)[^/]' \| \
18334 X"$mf" : 'X\(//\)$' \| \
18335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18336$as_echo X"$mf" |
18337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18338 s//\1/
18339 q
18340 }
18341 /^X\(\/\/\)[^/].*/{
18342 s//\1/
18343 q
18344 }
18345 /^X\(\/\/\)$/{
18346 s//\1/
18347 q
18348 }
18349 /^X\(\/\).*/{
18350 s//\1/
18351 q
18352 }
18353 s/.*/./; q'`
18354 else
18355 continue
18356 fi
18357 # Extract the definition of DEPDIR, am__include, and am__quote
18358 # from the Makefile without running `make'.
18359 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18360 test -z "$DEPDIR" && continue
18361 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18362 test -z "am__include" && continue
18363 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18364 # When using ansi2knr, U may be empty or an underscore; expand it
18365 U=`sed -n 's/^U = //p' < "$mf"`
18366 # Find all dependency output files, they are included files with
18367 # $(DEPDIR) in their names. We invoke sed twice because it is the
18368 # simplest approach to changing $(DEPDIR) to its actual value in the
18369 # expansion.
18370 for file in `sed -n "
18371 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18372 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18373 # Make sure the directory exists.
18374 test -f "$dirpart/$file" && continue
18375 fdir=`$as_dirname -- "$file" ||
18376$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18377 X"$file" : 'X\(//\)[^/]' \| \
18378 X"$file" : 'X\(//\)$' \| \
18379 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18380$as_echo X"$file" |
18381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18382 s//\1/
18383 q
18384 }
18385 /^X\(\/\/\)[^/].*/{
18386 s//\1/
18387 q
18388 }
18389 /^X\(\/\/\)$/{
18390 s//\1/
18391 q
18392 }
18393 /^X\(\/\).*/{
18394 s//\1/
18395 q
18396 }
18397 s/.*/./; q'`
18398 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18399 # echo "creating $dirpart/$file"
18400 echo '# dummy' > "$dirpart/$file"
18401 done
18402 done
18403}
18404 ;;
18405 "libtool":C)
18406
18407 # See if we are running on zsh, and set the options which allow our
18408 # commands through without removal of \ escapes.
18409 if test -n "${ZSH_VERSION+set}" ; then
18410 setopt NO_GLOB_SUBST
18411 fi
18412
18413 cfgfile="${ofile}T"
18414 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18415 $RM "$cfgfile"
18416
18417 cat <<_LT_EOF >> "$cfgfile"
18418#! $SHELL
18419
18420# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18421# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18422# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18423# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18424#
18425# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18426# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18427# Foundation, Inc.
18428# Written by Gordon Matzigkeit, 1996
18429#
18430# This file is part of GNU Libtool.
18431#
18432# GNU Libtool is free software; you can redistribute it and/or
18433# modify it under the terms of the GNU General Public License as
18434# published by the Free Software Foundation; either version 2 of
18435# the License, or (at your option) any later version.
18436#
18437# As a special exception to the GNU General Public License,
18438# if you distribute this file as part of a program or library that
18439# is built using GNU Libtool, you may include this file under the
18440# same distribution terms that you use for the rest of that program.
18441#
18442# GNU Libtool is distributed in the hope that it will be useful,
18443# but WITHOUT ANY WARRANTY; without even the implied warranty of
18444# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18445# GNU General Public License for more details.
18446#
18447# You should have received a copy of the GNU General Public License
18448# along with GNU Libtool; see the file COPYING. If not, a copy
18449# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18450# obtained by writing to the Free Software Foundation, Inc.,
18451# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18452
18453
18454# The names of the tagged configurations supported by this script.
18455available_tags="CXX "
18456
18457# ### BEGIN LIBTOOL CONFIG
18458
18459# Which release of libtool.m4 was used?
18460macro_version=$macro_version
18461macro_revision=$macro_revision
18462
18463# Whether or not to build shared libraries.
18464build_libtool_libs=$enable_shared
18465
18466# Whether or not to build static libraries.
18467build_old_libs=$enable_static
18468
18469# What type of objects to build.
18470pic_mode=$pic_mode
18471
18472# Whether or not to optimize for fast installation.
18473fast_install=$enable_fast_install
18474
18475# Shell to use when invoking shell scripts.
18476SHELL=$lt_SHELL
18477
18478# An echo program that protects backslashes.
18479ECHO=$lt_ECHO
18480
18481# The PATH separator for the build system.
18482PATH_SEPARATOR=$lt_PATH_SEPARATOR
18483
18484# The host system.
18485host_alias=$host_alias
18486host=$host
18487host_os=$host_os
18488
18489# The build system.
18490build_alias=$build_alias
18491build=$build
18492build_os=$build_os
18493
18494# A sed program that does not truncate output.
18495SED=$lt_SED
18496
18497# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18498Xsed="\$SED -e 1s/^X//"
18499
18500# A grep program that handles long lines.
18501GREP=$lt_GREP
18502
18503# An ERE matcher.
18504EGREP=$lt_EGREP
18505
18506# A literal string matcher.
18507FGREP=$lt_FGREP
18508
18509# A BSD- or MS-compatible name lister.
18510NM=$lt_NM
18511
18512# Whether we need soft or hard links.
18513LN_S=$lt_LN_S
18514
18515# What is the maximum length of a command?
18516max_cmd_len=$max_cmd_len
18517
18518# Object file suffix (normally "o").
18519objext=$ac_objext
18520
18521# Executable file suffix (normally "").
18522exeext=$exeext
18523
18524# whether the shell understands "unset".
18525lt_unset=$lt_unset
18526
18527# turn spaces into newlines.
18528SP2NL=$lt_lt_SP2NL
18529
18530# turn newlines into spaces.
18531NL2SP=$lt_lt_NL2SP
18532
18533# convert \$build file names to \$host format.
18534to_host_file_cmd=$lt_cv_to_host_file_cmd
18535
18536# convert \$build files to toolchain format.
18537to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18538
18539# An object symbol dumper.
18540OBJDUMP=$lt_OBJDUMP
18541
18542# Method to check whether dependent libraries are shared objects.
18543deplibs_check_method=$lt_deplibs_check_method
18544
18545# Command to use when deplibs_check_method = "file_magic".
18546file_magic_cmd=$lt_file_magic_cmd
18547
18548# How to find potential files when deplibs_check_method = "file_magic".
18549file_magic_glob=$lt_file_magic_glob
18550
18551# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18552want_nocaseglob=$lt_want_nocaseglob
18553
18554# DLL creation program.
18555DLLTOOL=$lt_DLLTOOL
18556
18557# Command to associate shared and link libraries.
18558sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18559
18560# The archiver.
18561AR=$lt_AR
18562
18563# Flags to create an archive.
18564AR_FLAGS=$lt_AR_FLAGS
18565
18566# How to feed a file listing to the archiver.
18567archiver_list_spec=$lt_archiver_list_spec
18568
18569# A symbol stripping program.
18570STRIP=$lt_STRIP
18571
18572# Commands used to install an old-style archive.
18573RANLIB=$lt_RANLIB
18574old_postinstall_cmds=$lt_old_postinstall_cmds
18575old_postuninstall_cmds=$lt_old_postuninstall_cmds
18576
18577# Whether to use a lock for old archive extraction.
18578lock_old_archive_extraction=$lock_old_archive_extraction
18579
18580# A C compiler.
18581LTCC=$lt_CC
18582
18583# LTCC compiler flags.
18584LTCFLAGS=$lt_CFLAGS
18585
18586# Take the output of nm and produce a listing of raw symbols and C names.
18587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18588
18589# Transform the output of nm in a proper C declaration.
18590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18591
18592# Transform the output of nm in a C name address pair.
18593global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18594
18595# Transform the output of nm in a C name address pair when lib prefix is needed.
18596global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18597
18598# Specify filename containing input files for \$NM.
18599nm_file_list_spec=$lt_nm_file_list_spec
18600
18601# The root where to search for dependent libraries,and in which our libraries should be installed.
18602lt_sysroot=$lt_sysroot
18603
18604# The name of the directory that contains temporary libtool files.
18605objdir=$objdir
18606
18607# Used to examine libraries when file_magic_cmd begins with "file".
18608MAGIC_CMD=$MAGIC_CMD
18609
18610# Must we lock files when doing compilation?
18611need_locks=$lt_need_locks
18612
18613# Manifest tool.
18614MANIFEST_TOOL=$lt_MANIFEST_TOOL
18615
18616# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18617DSYMUTIL=$lt_DSYMUTIL
18618
18619# Tool to change global to local symbols on Mac OS X.
18620NMEDIT=$lt_NMEDIT
18621
18622# Tool to manipulate fat objects and archives on Mac OS X.
18623LIPO=$lt_LIPO
18624
18625# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18626OTOOL=$lt_OTOOL
18627
18628# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18629OTOOL64=$lt_OTOOL64
18630
18631# Old archive suffix (normally "a").
18632libext=$libext
18633
18634# Shared library suffix (normally ".so").
18635shrext_cmds=$lt_shrext_cmds
18636
18637# The commands to extract the exported symbol list from a shared archive.
18638extract_expsyms_cmds=$lt_extract_expsyms_cmds
18639
18640# Variables whose values should be saved in libtool wrapper scripts and
18641# restored at link time.
18642variables_saved_for_relink=$lt_variables_saved_for_relink
18643
18644# Do we need the "lib" prefix for modules?
18645need_lib_prefix=$need_lib_prefix
18646
18647# Do we need a version for libraries?
18648need_version=$need_version
18649
18650# Library versioning type.
18651version_type=$version_type
18652
18653# Shared library runtime path variable.
18654runpath_var=$runpath_var
18655
18656# Shared library path variable.
18657shlibpath_var=$shlibpath_var
18658
18659# Is shlibpath searched before the hard-coded library search path?
18660shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18661
18662# Format of library name prefix.
18663libname_spec=$lt_libname_spec
18664
18665# List of archive names. First name is the real one, the rest are links.
18666# The last name is the one that the linker finds with -lNAME
18667library_names_spec=$lt_library_names_spec
18668
18669# The coded name of the library, if different from the real name.
18670soname_spec=$lt_soname_spec
18671
18672# Permission mode override for installation of shared libraries.
18673install_override_mode=$lt_install_override_mode
18674
18675# Command to use after installation of a shared archive.
18676postinstall_cmds=$lt_postinstall_cmds
18677
18678# Command to use after uninstallation of a shared archive.
18679postuninstall_cmds=$lt_postuninstall_cmds
18680
18681# Commands used to finish a libtool library installation in a directory.
18682finish_cmds=$lt_finish_cmds
18683
18684# As "finish_cmds", except a single script fragment to be evaled but
18685# not shown.
18686finish_eval=$lt_finish_eval
18687
18688# Whether we should hardcode library paths into libraries.
18689hardcode_into_libs=$hardcode_into_libs
18690
18691# Compile-time system search path for libraries.
18692sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18693
18694# Run-time system search path for libraries.
18695sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18696
18697# Whether dlopen is supported.
18698dlopen_support=$enable_dlopen
18699
18700# Whether dlopen of programs is supported.
18701dlopen_self=$enable_dlopen_self
18702
18703# Whether dlopen of statically linked programs is supported.
18704dlopen_self_static=$enable_dlopen_self_static
18705
18706# Commands to strip libraries.
18707old_striplib=$lt_old_striplib
18708striplib=$lt_striplib
18709
18710
18711# The linker used to build libraries.
18712LD=$lt_LD
18713
18714# How to create reloadable object files.
18715reload_flag=$lt_reload_flag
18716reload_cmds=$lt_reload_cmds
18717
18718# Commands used to build an old-style archive.
18719old_archive_cmds=$lt_old_archive_cmds
18720
18721# A language specific compiler.
18722CC=$lt_compiler
18723
18724# Is the compiler the GNU compiler?
18725with_gcc=$GCC
18726
18727# Compiler flag to turn off builtin functions.
18728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18729
18730# Additional compiler flags for building library objects.
18731pic_flag=$lt_lt_prog_compiler_pic
18732
18733# How to pass a linker flag through the compiler.
18734wl=$lt_lt_prog_compiler_wl
18735
18736# Compiler flag to prevent dynamic linking.
18737link_static_flag=$lt_lt_prog_compiler_static
18738
18739# Does compiler simultaneously support -c and -o options?
18740compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18741
18742# Whether or not to add -lc for building shared libraries.
18743build_libtool_need_lc=$archive_cmds_need_lc
18744
18745# Whether or not to disallow shared libs when runtime libs are static.
18746allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18747
18748# Compiler flag to allow reflexive dlopens.
18749export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18750
18751# Compiler flag to generate shared objects directly from archives.
18752whole_archive_flag_spec=$lt_whole_archive_flag_spec
18753
18754# Whether the compiler copes with passing no objects directly.
18755compiler_needs_object=$lt_compiler_needs_object
18756
18757# Create an old-style archive from a shared archive.
18758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18759
18760# Create a temporary old-style archive to link instead of a shared archive.
18761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18762
18763# Commands used to build a shared archive.
18764archive_cmds=$lt_archive_cmds
18765archive_expsym_cmds=$lt_archive_expsym_cmds
18766
18767# Commands used to build a loadable module if different from building
18768# a shared archive.
18769module_cmds=$lt_module_cmds
18770module_expsym_cmds=$lt_module_expsym_cmds
18771
18772# Whether we are building with GNU ld or not.
18773with_gnu_ld=$lt_with_gnu_ld
18774
18775# Flag that allows shared libraries with undefined symbols to be built.
18776allow_undefined_flag=$lt_allow_undefined_flag
18777
18778# Flag that enforces no undefined symbols.
18779no_undefined_flag=$lt_no_undefined_flag
18780
18781# Flag to hardcode \$libdir into a binary during linking.
18782# This must work even if \$libdir does not exist
18783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18784
18785# Whether we need a single "-rpath" flag with a separated argument.
18786hardcode_libdir_separator=$lt_hardcode_libdir_separator
18787
18788# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18789# DIR into the resulting binary.
18790hardcode_direct=$hardcode_direct
18791
18792# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18793# DIR into the resulting binary and the resulting library dependency is
18794# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18795# library is relocated.
18796hardcode_direct_absolute=$hardcode_direct_absolute
18797
18798# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18799# into the resulting binary.
18800hardcode_minus_L=$hardcode_minus_L
18801
18802# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18803# into the resulting binary.
18804hardcode_shlibpath_var=$hardcode_shlibpath_var
18805
18806# Set to "yes" if building a shared library automatically hardcodes DIR
18807# into the library and all subsequent libraries and executables linked
18808# against it.
18809hardcode_automatic=$hardcode_automatic
18810
18811# Set to yes if linker adds runtime paths of dependent libraries
18812# to runtime path list.
18813inherit_rpath=$inherit_rpath
18814
18815# Whether libtool must link a program against all its dependency libraries.
18816link_all_deplibs=$link_all_deplibs
18817
18818# Set to "yes" if exported symbols are required.
18819always_export_symbols=$always_export_symbols
18820
18821# The commands to list exported symbols.
18822export_symbols_cmds=$lt_export_symbols_cmds
18823
18824# Symbols that should not be listed in the preloaded symbols.
18825exclude_expsyms=$lt_exclude_expsyms
18826
18827# Symbols that must always be exported.
18828include_expsyms=$lt_include_expsyms
18829
18830# Commands necessary for linking programs (against libraries) with templates.
18831prelink_cmds=$lt_prelink_cmds
18832
18833# Commands necessary for finishing linking programs.
18834postlink_cmds=$lt_postlink_cmds
18835
18836# Specify filename containing input files.
18837file_list_spec=$lt_file_list_spec
18838
18839# How to hardcode a shared library path into an executable.
18840hardcode_action=$hardcode_action
18841
18842# The directories searched by this compiler when creating a shared library.
18843compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18844
18845# Dependencies to place before and after the objects being linked to
18846# create a shared library.
18847predep_objects=$lt_predep_objects
18848postdep_objects=$lt_postdep_objects
18849predeps=$lt_predeps
18850postdeps=$lt_postdeps
18851
18852# The library search path used internally by the compiler when linking
18853# a shared library.
18854compiler_lib_search_path=$lt_compiler_lib_search_path
18855
18856# ### END LIBTOOL CONFIG
18857
18858_LT_EOF
18859
18860 case $host_os in
18861 aix3*)
18862 cat <<\_LT_EOF >> "$cfgfile"
18863# AIX sometimes has problems with the GCC collect2 program. For some
18864# reason, if we set the COLLECT_NAMES environment variable, the problems
18865# vanish in a puff of smoke.
18866if test "X${COLLECT_NAMES+set}" != Xset; then
18867 COLLECT_NAMES=
18868 export COLLECT_NAMES
18869fi
18870_LT_EOF
18871 ;;
18872 esac
18873
18874
18875ltmain="$ac_aux_dir/ltmain.sh"
18876
18877
18878 # We use sed instead of cat because bash on DJGPP gets confused if
18879 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18880 # text mode, it properly converts lines to CR/LF. This bash problem
18881 # is reportedly fixed, but why not run on old versions too?
18882 sed '$q' "$ltmain" >> "$cfgfile" \
18883 || (rm -f "$cfgfile"; exit 1)
18884
18885 if test x"$xsi_shell" = xyes; then
18886 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18887func_dirname ()\
18888{\
18889\ case ${1} in\
18890\ */*) func_dirname_result="${1%/*}${2}" ;;\
18891\ * ) func_dirname_result="${3}" ;;\
18892\ esac\
18893} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18894 && mv -f "$cfgfile.tmp" "$cfgfile" \
18895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18896test 0 -eq $? || _lt_function_replace_fail=:
18897
18898
18899 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18900func_basename ()\
18901{\
18902\ func_basename_result="${1##*/}"\
18903} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18904 && mv -f "$cfgfile.tmp" "$cfgfile" \
18905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18906test 0 -eq $? || _lt_function_replace_fail=:
18907
18908
18909 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18910func_dirname_and_basename ()\
18911{\
18912\ case ${1} in\
18913\ */*) func_dirname_result="${1%/*}${2}" ;;\
18914\ * ) func_dirname_result="${3}" ;;\
18915\ esac\
18916\ func_basename_result="${1##*/}"\
18917} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18918 && mv -f "$cfgfile.tmp" "$cfgfile" \
18919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18920test 0 -eq $? || _lt_function_replace_fail=:
18921
18922
18923 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18924func_stripname ()\
18925{\
18926\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18927\ # positional parameters, so assign one to ordinary parameter first.\
18928\ func_stripname_result=${3}\
18929\ func_stripname_result=${func_stripname_result#"${1}"}\
18930\ func_stripname_result=${func_stripname_result%"${2}"}\
18931} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18932 && mv -f "$cfgfile.tmp" "$cfgfile" \
18933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18934test 0 -eq $? || _lt_function_replace_fail=:
18935
18936
18937 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18938func_split_long_opt ()\
18939{\
18940\ func_split_long_opt_name=${1%%=*}\
18941\ func_split_long_opt_arg=${1#*=}\
18942} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18943 && mv -f "$cfgfile.tmp" "$cfgfile" \
18944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18945test 0 -eq $? || _lt_function_replace_fail=:
18946
18947
18948 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18949func_split_short_opt ()\
18950{\
18951\ func_split_short_opt_arg=${1#??}\
18952\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18953} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18954 && mv -f "$cfgfile.tmp" "$cfgfile" \
18955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18956test 0 -eq $? || _lt_function_replace_fail=:
18957
18958
18959 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18960func_lo2o ()\
18961{\
18962\ case ${1} in\
18963\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18964\ *) func_lo2o_result=${1} ;;\
18965\ esac\
18966} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18967 && mv -f "$cfgfile.tmp" "$cfgfile" \
18968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18969test 0 -eq $? || _lt_function_replace_fail=:
18970
18971
18972 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18973func_xform ()\
18974{\
18975 func_xform_result=${1%.*}.lo\
18976} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18977 && mv -f "$cfgfile.tmp" "$cfgfile" \
18978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18979test 0 -eq $? || _lt_function_replace_fail=:
18980
18981
18982 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18983func_arith ()\
18984{\
18985 func_arith_result=$(( $* ))\
18986} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18987 && mv -f "$cfgfile.tmp" "$cfgfile" \
18988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18989test 0 -eq $? || _lt_function_replace_fail=:
18990
18991
18992 sed -e '/^func_len ()$/,/^} # func_len /c\
18993func_len ()\
18994{\
18995 func_len_result=${#1}\
18996} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18997 && mv -f "$cfgfile.tmp" "$cfgfile" \
18998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18999test 0 -eq $? || _lt_function_replace_fail=:
19000
19001fi
19002
19003if test x"$lt_shell_append" = xyes; then
19004 sed -e '/^func_append ()$/,/^} # func_append /c\
19005func_append ()\
19006{\
19007 eval "${1}+=\\${2}"\
19008} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19009 && mv -f "$cfgfile.tmp" "$cfgfile" \
19010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19011test 0 -eq $? || _lt_function_replace_fail=:
19012
19013
19014 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19015func_append_quoted ()\
19016{\
19017\ func_quote_for_eval "${2}"\
19018\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19019} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19020 && mv -f "$cfgfile.tmp" "$cfgfile" \
19021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19022test 0 -eq $? || _lt_function_replace_fail=:
19023
19024
19025 # Save a `func_append' function call where possible by direct use of '+='
19026 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19027 && mv -f "$cfgfile.tmp" "$cfgfile" \
19028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19029 test 0 -eq $? || _lt_function_replace_fail=:
19030else
19031 # Save a `func_append' function call even when '+=' is not available
19032 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19033 && mv -f "$cfgfile.tmp" "$cfgfile" \
19034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19035 test 0 -eq $? || _lt_function_replace_fail=:
19036fi
19037
19038if test x"$_lt_function_replace_fail" = x":"; then
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19040$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19041fi
19042
19043
19044 mv -f "$cfgfile" "$ofile" ||
19045 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19046 chmod +x "$ofile"
19047
19048
19049 cat <<_LT_EOF >> "$ofile"
19050
19051# ### BEGIN LIBTOOL TAG CONFIG: CXX
19052
19053# The linker used to build libraries.
19054LD=$lt_LD_CXX
19055
19056# How to create reloadable object files.
19057reload_flag=$lt_reload_flag_CXX
19058reload_cmds=$lt_reload_cmds_CXX
19059
19060# Commands used to build an old-style archive.
19061old_archive_cmds=$lt_old_archive_cmds_CXX
19062
19063# A language specific compiler.
19064CC=$lt_compiler_CXX
19065
19066# Is the compiler the GNU compiler?
19067with_gcc=$GCC_CXX
19068
19069# Compiler flag to turn off builtin functions.
19070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19071
19072# Additional compiler flags for building library objects.
19073pic_flag=$lt_lt_prog_compiler_pic_CXX
19074
19075# How to pass a linker flag through the compiler.
19076wl=$lt_lt_prog_compiler_wl_CXX
19077
19078# Compiler flag to prevent dynamic linking.
19079link_static_flag=$lt_lt_prog_compiler_static_CXX
19080
19081# Does compiler simultaneously support -c and -o options?
19082compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19083
19084# Whether or not to add -lc for building shared libraries.
19085build_libtool_need_lc=$archive_cmds_need_lc_CXX
19086
19087# Whether or not to disallow shared libs when runtime libs are static.
19088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19089
19090# Compiler flag to allow reflexive dlopens.
19091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19092
19093# Compiler flag to generate shared objects directly from archives.
19094whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19095
19096# Whether the compiler copes with passing no objects directly.
19097compiler_needs_object=$lt_compiler_needs_object_CXX
19098
19099# Create an old-style archive from a shared archive.
19100old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19101
19102# Create a temporary old-style archive to link instead of a shared archive.
19103old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19104
19105# Commands used to build a shared archive.
19106archive_cmds=$lt_archive_cmds_CXX
19107archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19108
19109# Commands used to build a loadable module if different from building
19110# a shared archive.
19111module_cmds=$lt_module_cmds_CXX
19112module_expsym_cmds=$lt_module_expsym_cmds_CXX
19113
19114# Whether we are building with GNU ld or not.
19115with_gnu_ld=$lt_with_gnu_ld_CXX
19116
19117# Flag that allows shared libraries with undefined symbols to be built.
19118allow_undefined_flag=$lt_allow_undefined_flag_CXX
19119
19120# Flag that enforces no undefined symbols.
19121no_undefined_flag=$lt_no_undefined_flag_CXX
19122
19123# Flag to hardcode \$libdir into a binary during linking.
19124# This must work even if \$libdir does not exist
19125hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19126
19127# Whether we need a single "-rpath" flag with a separated argument.
19128hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19129
19130# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19131# DIR into the resulting binary.
19132hardcode_direct=$hardcode_direct_CXX
19133
19134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19135# DIR into the resulting binary and the resulting library dependency is
19136# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19137# library is relocated.
19138hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19139
19140# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19141# into the resulting binary.
19142hardcode_minus_L=$hardcode_minus_L_CXX
19143
19144# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19145# into the resulting binary.
19146hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19147
19148# Set to "yes" if building a shared library automatically hardcodes DIR
19149# into the library and all subsequent libraries and executables linked
19150# against it.
19151hardcode_automatic=$hardcode_automatic_CXX
19152
19153# Set to yes if linker adds runtime paths of dependent libraries
19154# to runtime path list.
19155inherit_rpath=$inherit_rpath_CXX
19156
19157# Whether libtool must link a program against all its dependency libraries.
19158link_all_deplibs=$link_all_deplibs_CXX
19159
19160# Set to "yes" if exported symbols are required.
19161always_export_symbols=$always_export_symbols_CXX
19162
19163# The commands to list exported symbols.
19164export_symbols_cmds=$lt_export_symbols_cmds_CXX
19165
19166# Symbols that should not be listed in the preloaded symbols.
19167exclude_expsyms=$lt_exclude_expsyms_CXX
19168
19169# Symbols that must always be exported.
19170include_expsyms=$lt_include_expsyms_CXX
19171
19172# Commands necessary for linking programs (against libraries) with templates.
19173prelink_cmds=$lt_prelink_cmds_CXX
19174
19175# Commands necessary for finishing linking programs.
19176postlink_cmds=$lt_postlink_cmds_CXX
19177
19178# Specify filename containing input files.
19179file_list_spec=$lt_file_list_spec_CXX
19180
19181# How to hardcode a shared library path into an executable.
19182hardcode_action=$hardcode_action_CXX
19183
19184# The directories searched by this compiler when creating a shared library.
19185compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19186
19187# Dependencies to place before and after the objects being linked to
19188# create a shared library.
19189predep_objects=$lt_predep_objects_CXX
19190postdep_objects=$lt_postdep_objects_CXX
19191predeps=$lt_predeps_CXX
19192postdeps=$lt_postdeps_CXX
19193
19194# The library search path used internally by the compiler when linking
19195# a shared library.
19196compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19197
19198# ### END LIBTOOL TAG CONFIG: CXX
19199_LT_EOF
19200
19201 ;;
19202
19203 esac
19204done # for ac_tag
19205
19206
19207as_fn_exit 0
19208_ACEOF
19209ac_clean_files=$ac_clean_files_save
19210
19211test $ac_write_fail = 0 ||
19212 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19213
19214
19215# configure is writing to config.log, and then calls config.status.
19216# config.status does its own redirection, appending to config.log.
19217# Unfortunately, on DOS this fails, as config.log is still kept open
19218# by configure, so config.status won't be able to write to it; its
19219# output is simply discarded. So we exec the FD to /dev/null,
19220# effectively closing config.log, so it can be properly (re)opened and
19221# appended to by config.status. When coming back to configure, we
19222# need to make the FD available again.
19223if test "$no_create" != yes; then
19224 ac_cs_success=:
19225 ac_config_status_args=
19226 test "$silent" = yes &&
19227 ac_config_status_args="$ac_config_status_args --quiet"
19228 exec 5>/dev/null
19229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19230 exec 5>>config.log
19231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19232 # would make configure fail if this is the last instruction.
19233 $ac_cs_success || as_fn_exit 1
19234fi
19235if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19237$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19238fi
19239