blob: 907e256782f66b5e16e9f12257ee965af1570d92 [file] [log] [blame]
Jeff Thompson39128c62013-06-19 14:08:51 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ndn-cpp 0.5.
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'\" &&
Jeff Thompson36174062013-06-21 16:03:44 -0700198 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"
Jeff Thompson39128c62013-06-19 14:08:51 -0700208 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
Jeff Thompson36174062013-06-21 16:03:44 -0700564SHELL=${CONFIG_SHELL-/bin/sh}
565
Jeff Thompson39128c62013-06-19 14:08:51 -0700566
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='ndn-cpp'
589PACKAGE_TARNAME='ndn-cpp'
590PACKAGE_VERSION='0.5'
591PACKAGE_STRING='ndn-cpp 0.5'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='https://github.com/named-data/ndn-cpp'
594
Jeff Thompson36174062013-06-21 16:03:44 -0700595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
Jeff Thompson39128c62013-06-19 14:08:51 -0700631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
Jeff Thompson1b8f4c92013-06-19 16:18:46 -0700635HAVE_CXX11
Jeff Thompson36174062013-06-21 16:03:44 -0700636CXXCPP
637CPP
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643MANIFEST_TOOL
644RANLIB
645ac_ct_AR
646AR
647DLLTOOL
648OBJDUMP
649LN_S
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655EGREP
656GREP
657SED
658am__fastdepCC_FALSE
659am__fastdepCC_TRUE
660CCDEPMODE
661ac_ct_CC
662CFLAGS
663CC
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672LIBTOOL
Jeff Thompson39128c62013-06-19 14:08:51 -0700673am__fastdepCXX_FALSE
674am__fastdepCXX_TRUE
675CXXDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CXX
686CPPFLAGS
687LDFLAGS
688CXXFLAGS
689CXX
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692AM_DEFAULT_V
693AM_V
694am__untar
695am__tar
696AMTAR
697am__leading_dot
698SET_MAKE
699AWK
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
755ac_subst_files=''
756ac_user_opts='
757enable_option_checking
758enable_silent_rules
759enable_dependency_tracking
Jeff Thompson36174062013-06-21 16:03:44 -0700760enable_shared
761enable_static
762with_pic
763enable_fast_install
764with_gnu_ld
765with_sysroot
766enable_libtool_lock
Jeff Thompson39128c62013-06-19 14:08:51 -0700767'
768 ac_precious_vars='build_alias
769host_alias
770target_alias
771CXX
772CXXFLAGS
773LDFLAGS
774LIBS
775CPPFLAGS
Jeff Thompson36174062013-06-21 16:03:44 -0700776CCC
777CC
778CFLAGS
779CPP
780CXXCPP'
Jeff Thompson39128c62013-06-19 14:08:51 -0700781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
786ac_unrecognized_opts=
787ac_unrecognized_sep=
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
830
831ac_prev=
832ac_dashdash=
833for ac_option
834do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895"enable_$ac_useropt"
896"*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125"with_$ac_useropt"
1126"*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189done
1190
1191if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194fi
1195
1196if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202fi
1203
1204# Check all directory arguments for consistency.
1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321\`configure' configures ndn-cpp 0.5 to adapt to many kinds of systems.
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
Jeff Thompson36174062013-06-21 16:03:44 -07001382
1383System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Jeff Thompson39128c62013-06-19 14:08:51 -07001386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of ndn-cpp 0.5:";;
1392 esac
1393 cat <<\_ACEOF
1394
1395Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
Jeff Thompson36174062013-06-21 16:03:44 -07001405 --enable-shared[=PKGS] build shared libraries [default=no]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
Jeff Thompson39128c62013-06-19 14:08:51 -07001419
1420Some influential environment variables:
1421 CXX C++ compiler command
1422 CXXFLAGS C++ compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
Jeff Thompson36174062013-06-21 16:03:44 -07001428 CC C compiler command
1429 CFLAGS C compiler flags
1430 CPP C preprocessor
1431 CXXCPP C++ preprocessor
Jeff Thompson39128c62013-06-19 14:08:51 -07001432
1433Use these variables to override the choices made by `configure' or to help
1434it to find libraries and programs with nonstandard names/locations.
1435
1436Report bugs to the package provider.
1437ndn-cpp home page: <https://github.com/named-data/ndn-cpp>.
1438_ACEOF
1439ac_status=$?
1440fi
1441
1442if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450case "$ac_dir" in
1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452*)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460esac
1461ac_abs_top_builddir=$ac_pwd
1462ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463# for backward compatibility:
1464ac_top_builddir=$ac_top_build_prefix
1465
1466case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479esac
1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495fi
1496
1497test -n "$ac_init_help" && exit $ac_status
1498if $ac_init_version; then
1499 cat <<\_ACEOF
1500ndn-cpp configure 0.5
1501generated by GNU Autoconf 2.69
1502
1503Copyright (C) 2012 Free Software Foundation, Inc.
1504This configure script is free software; the Free Software Foundation
1505gives unlimited permission to copy, distribute and modify it.
1506_ACEOF
1507 exit
1508fi
1509
1510## ------------------------ ##
1511## Autoconf initialization. ##
1512## ------------------------ ##
1513
1514# ac_fn_cxx_try_compile LINENO
1515# ----------------------------
1516# Try to compile conftest.$ac_ext, and return whether this succeeded.
1517ac_fn_cxx_try_compile ()
1518{
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525esac
1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527$as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_cxx_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541else
1542 $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550} # ac_fn_cxx_try_compile
Jeff Thompson36174062013-06-21 16:03:44 -07001551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579else
1580 $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584fi
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_try_link LINENO
1591# -----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_link ()
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 test -x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634} # ac_fn_c_try_link
1635
1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists and can be compiled using the include files in
1639# INCLUDES, setting the cache variable VAR accordingly.
1640ac_fn_c_check_header_compile ()
1641{
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
1645if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h. */
1650$4
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655else
1656 eval "$3=no"
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659fi
1660eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665} # ac_fn_c_check_header_compile
1666
1667# ac_fn_c_try_cpp LINENO
1668# ----------------------
1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_cpp ()
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693else
1694 $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698fi
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_cpp
1703
1704# ac_fn_c_try_run LINENO
1705# ----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707# that executables *can* be run.
1708ac_fn_c_try_run ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_run
1745
1746# ac_fn_c_check_func LINENO FUNC VAR
1747# ----------------------------------
1748# Tests whether FUNC exists, setting the cache variable VAR accordingly
1749ac_fn_c_check_func ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761#define $2 innocuous_$2
1762
1763/* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1767
1768#ifdef __STDC__
1769# include <limits.h>
1770#else
1771# include <assert.h>
1772#endif
1773
1774#undef $2
1775
1776/* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779#ifdef __cplusplus
1780extern "C"
1781#endif
1782char $2 ();
1783/* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786#if defined __stub_$2 || defined __stub___$2
1787choke me
1788#endif
1789
1790int
1791main ()
1792{
1793return $2 ();
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_link "$LINENO"; then :
1799 eval "$3=yes"
1800else
1801 eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_func
1812
1813# ac_fn_cxx_try_cpp LINENO
1814# ------------------------
1815# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_cxx_try_cpp ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_cpp conftest.$ac_ext"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } > conftest.i && {
1835 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 }; then :
1838 ac_retval=0
1839else
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848} # ac_fn_cxx_try_cpp
1849
1850# ac_fn_cxx_try_link LINENO
1851# -------------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_cxx_try_link ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest$ac_exeext
1878 }; then :
1879 ac_retval=0
1880else
1881 $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884 ac_retval=1
1885fi
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894} # ac_fn_cxx_try_link
Jeff Thompson39128c62013-06-19 14:08:51 -07001895cat >config.log <<_ACEOF
1896This file contains any messages produced by compilers while
1897running configure, to aid debugging if configure makes a mistake.
1898
1899It was created by ndn-cpp $as_me 0.5, which was
1900generated by GNU Autoconf 2.69. Invocation command line was
1901
1902 $ $0 $@
1903
1904_ACEOF
1905exec 5>>config.log
1906{
1907cat <<_ASUNAME
1908## --------- ##
1909## Platform. ##
1910## --------- ##
1911
1912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1920
1921/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1922/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1925/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1926/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1927/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928
1929_ASUNAME
1930
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 $as_echo "PATH: $as_dir"
1937 done
1938IFS=$as_save_IFS
1939
1940} >&5
1941
1942cat >&5 <<_ACEOF
1943
1944
1945## ----------- ##
1946## Core tests. ##
1947## ----------- ##
1948
1949_ACEOF
1950
1951
1952# Keep a trace of the command line.
1953# Strip out --no-create and --no-recursion so they do not pile up.
1954# Strip out --silent because we don't want to record it for future runs.
1955# Also quote any args containing shell meta-characters.
1956# Make two passes to allow for proper duplicate-argument suppression.
1957ac_configure_args=
1958ac_configure_args0=
1959ac_configure_args1=
1960ac_must_keep_next=false
1961for ac_pass in 1 2
1962do
1963 for ac_arg
1964 do
1965 case $ac_arg in
1966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968 | -silent | --silent | --silen | --sile | --sil)
1969 continue ;;
1970 *\'*)
1971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 esac
1973 case $ac_pass in
1974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1975 2)
1976 as_fn_append ac_configure_args1 " '$ac_arg'"
1977 if test $ac_must_keep_next = true; then
1978 ac_must_keep_next=false # Got value, back to normal.
1979 else
1980 case $ac_arg in
1981 *=* | --config-cache | -C | -disable-* | --disable-* \
1982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1984 | -with-* | --with-* | -without-* | --without-* | --x)
1985 case "$ac_configure_args0 " in
1986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1987 esac
1988 ;;
1989 -* ) ac_must_keep_next=true ;;
1990 esac
1991 fi
1992 as_fn_append ac_configure_args " '$ac_arg'"
1993 ;;
1994 esac
1995 done
1996done
1997{ ac_configure_args0=; unset ac_configure_args0;}
1998{ ac_configure_args1=; unset ac_configure_args1;}
1999
2000# When interrupted or exit'd, cleanup temporary files, and complete
2001# config.log. We remove comments because anyway the quotes in there
2002# would cause problems or look ugly.
2003# WARNING: Use '\'' to represent an apostrophe within the trap.
2004# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2005trap 'exit_status=$?
2006 # Save into config.log some information that might help in debugging.
2007 {
2008 echo
2009
2010 $as_echo "## ---------------- ##
2011## Cache variables. ##
2012## ---------------- ##"
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2015(
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2038 *)
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2040 ;;
2041 esac |
2042 sort
2043)
2044 echo
2045
2046 $as_echo "## ----------------- ##
2047## Output variables. ##
2048## ----------------- ##"
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 $as_echo "## ------------------- ##
2062## File substitutions. ##
2063## ------------------- ##"
2064 echo
2065 for ac_var in $ac_subst_files
2066 do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
2072 done | sort
2073 echo
2074 fi
2075
2076 if test -s confdefs.h; then
2077 $as_echo "## ----------- ##
2078## confdefs.h. ##
2079## ----------- ##"
2080 echo
2081 cat confdefs.h
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2091' 0
2092for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
2098rm -f -r conftest* confdefs.h
2099
2100$as_echo "/* confdefs.h */" > confdefs.h
2101
2102# Predefined preprocessor variables.
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_NAME "$PACKAGE_NAME"
2106_ACEOF
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110_ACEOF
2111
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_VERSION "$PACKAGE_VERSION"
2114_ACEOF
2115
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122_ACEOF
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_URL "$PACKAGE_URL"
2126_ACEOF
2127
2128
2129# Let the site file select an alternate cache file if it wants to.
2130# Prefer an explicitly selected file to automatically selected ones.
2131ac_site_file1=NONE
2132ac_site_file2=NONE
2133if test -n "$CONFIG_SITE"; then
2134 # We do not want a PATH search for config.site.
2135 case $CONFIG_SITE in #((
2136 -*) ac_site_file1=./$CONFIG_SITE;;
2137 */*) ac_site_file1=$CONFIG_SITE;;
2138 *) ac_site_file1=./$CONFIG_SITE;;
2139 esac
2140elif test "x$prefix" != xNONE; then
2141 ac_site_file1=$prefix/share/config.site
2142 ac_site_file2=$prefix/etc/config.site
2143else
2144 ac_site_file1=$ac_default_prefix/share/config.site
2145 ac_site_file2=$ac_default_prefix/etc/config.site
2146fi
2147for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2148do
2149 test "x$ac_site_file" = xNONE && continue
2150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2152$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2153 sed 's/^/| /' "$ac_site_file" >&5
2154 . "$ac_site_file" \
2155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2157as_fn_error $? "failed to load site script $ac_site_file
2158See \`config.log' for more details" "$LINENO" 5; }
2159 fi
2160done
2161
2162if test -r "$cache_file"; then
2163 # Some versions of bash will fail to source /dev/null (special files
2164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2167$as_echo "$as_me: loading cache $cache_file" >&6;}
2168 case $cache_file in
2169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2170 *) . "./$cache_file";;
2171 esac
2172 fi
2173else
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2175$as_echo "$as_me: creating cache $cache_file" >&6;}
2176 >$cache_file
2177fi
2178
2179# Check that the precious variables saved in the cache have kept the same
2180# value.
2181ac_cache_corrupted=false
2182for ac_var in $ac_precious_vars; do
2183 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2184 eval ac_new_set=\$ac_env_${ac_var}_set
2185 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2186 eval ac_new_val=\$ac_env_${ac_var}_value
2187 case $ac_old_set,$ac_new_set in
2188 set,)
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2190$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2191 ac_cache_corrupted=: ;;
2192 ,set)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2194$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,);;
2197 *)
2198 if test "x$ac_old_val" != "x$ac_new_val"; then
2199 # differences in whitespace do not lead to failure.
2200 ac_old_val_w=`echo x $ac_old_val`
2201 ac_new_val_w=`echo x $ac_new_val`
2202 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2204$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2205 ac_cache_corrupted=:
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2208$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2209 eval $ac_var=\$ac_old_val
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2212$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2214$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2215 fi;;
2216 esac
2217 # Pass precious variables to config.status.
2218 if test "$ac_new_set" = set; then
2219 case $ac_new_val in
2220 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2221 *) ac_arg=$ac_var=$ac_new_val ;;
2222 esac
2223 case " $ac_configure_args " in
2224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2225 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2226 esac
2227 fi
2228done
2229if $ac_cache_corrupted; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2233$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2235fi
2236## -------------------- ##
2237## Main body of script. ##
2238## -------------------- ##
2239
2240ac_ext=c
2241ac_cpp='$CPP $CPPFLAGS'
2242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245
2246
2247
2248am__api_version='1.13'
2249
2250ac_aux_dir=
2251for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2252 if test -f "$ac_dir/install-sh"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/install-sh -c"
2255 break
2256 elif test -f "$ac_dir/install.sh"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/install.sh -c"
2259 break
2260 elif test -f "$ac_dir/shtool"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/shtool install -c"
2263 break
2264 fi
2265done
2266if test -z "$ac_aux_dir"; then
2267 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2268fi
2269
2270# These three variables are undocumented and unsupported,
2271# and are intended to be withdrawn in a future Autoconf release.
2272# They can cause serious problems if a builder's source tree is in a directory
2273# whose full name contains unusual characters.
2274ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2275ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2276ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277
2278
2279# Find a good install program. We prefer a C program (faster),
2280# so one script is as good as another. But avoid the broken or
2281# incompatible versions:
2282# SysV /etc/install, /usr/sbin/install
2283# SunOS /usr/etc/install
2284# IRIX /sbin/install
2285# AIX /bin/install
2286# AmigaOS /C/install, which installs bootblocks on floppy discs
2287# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2288# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2289# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2290# OS/2's system install, which has a completely different semantic
2291# ./install, which can be erroneously created by make from ./install.sh.
2292# Reject install programs that cannot install multiple files.
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2294$as_echo_n "checking for a BSD-compatible install... " >&6; }
2295if test -z "$INSTALL"; then
2296if ${ac_cv_path_install+:} false; then :
2297 $as_echo_n "(cached) " >&6
2298else
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 # Account for people who put trailing slashes in PATH elements.
2305case $as_dir/ in #((
2306 ./ | .// | /[cC]/* | \
2307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2308 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2309 /usr/ucb/* ) ;;
2310 *)
2311 # OSF1 and SCO ODT 3.0 have their own names for install.
2312 # Don't use installbsd from OSF since it installs stuff as root
2313 # by default.
2314 for ac_prog in ginstall scoinst install; do
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2317 if test $ac_prog = install &&
2318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319 # AIX install. It has an incompatible calling convention.
2320 :
2321 elif test $ac_prog = install &&
2322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323 # program-specific install script used by HP pwplus--don't use.
2324 :
2325 else
2326 rm -rf conftest.one conftest.two conftest.dir
2327 echo one > conftest.one
2328 echo two > conftest.two
2329 mkdir conftest.dir
2330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2331 test -s conftest.one && test -s conftest.two &&
2332 test -s conftest.dir/conftest.one &&
2333 test -s conftest.dir/conftest.two
2334 then
2335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2336 break 3
2337 fi
2338 fi
2339 fi
2340 done
2341 done
2342 ;;
2343esac
2344
2345 done
2346IFS=$as_save_IFS
2347
2348rm -rf conftest.one conftest.two conftest.dir
2349
2350fi
2351 if test "${ac_cv_path_install+set}" = set; then
2352 INSTALL=$ac_cv_path_install
2353 else
2354 # As a last resort, use the slow shell script. Don't cache a
2355 # value for INSTALL within a source directory, because that will
2356 # break other packages using the cache if that directory is
2357 # removed, or if the value is a relative name.
2358 INSTALL=$ac_install_sh
2359 fi
2360fi
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2362$as_echo "$INSTALL" >&6; }
2363
2364# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2365# It thinks the first close brace ends the variable substitution.
2366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367
2368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369
2370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2373$as_echo_n "checking whether build environment is sane... " >&6; }
2374# Reject unsafe characters in $srcdir or the absolute working directory
2375# name. Accept space and tab only in the latter.
2376am_lf='
2377'
2378case `pwd` in
2379 *[\\\"\#\$\&\'\`$am_lf]*)
2380 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2381esac
2382case $srcdir in
2383 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2384 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2385esac
2386
2387# Do 'set' in a subshell so we don't clobber the current shell's
2388# arguments. Must try -L first in case configure is actually a
2389# symlink; some systems play weird games with the mod time of symlinks
2390# (eg FreeBSD returns the mod time of the symlink's containing
2391# directory).
2392if (
2393 am_has_slept=no
2394 for am_try in 1 2; do
2395 echo "timestamp, slept: $am_has_slept" > conftest.file
2396 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2397 if test "$*" = "X"; then
2398 # -L didn't work.
2399 set X `ls -t "$srcdir/configure" conftest.file`
2400 fi
2401 if test "$*" != "X $srcdir/configure conftest.file" \
2402 && test "$*" != "X conftest.file $srcdir/configure"; then
2403
2404 # If neither matched, then we have a broken ls. This can happen
2405 # if, for instance, CONFIG_SHELL is bash and it inherits a
2406 # broken ls alias from the environment. This has actually
2407 # happened. Such a system could not be considered "sane".
2408 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2409 alias in your environment" "$LINENO" 5
2410 fi
2411 if test "$2" = conftest.file || test $am_try -eq 2; then
2412 break
2413 fi
2414 # Just in case.
2415 sleep 1
2416 am_has_slept=yes
2417 done
2418 test "$2" = conftest.file
2419 )
2420then
2421 # Ok.
2422 :
2423else
2424 as_fn_error $? "newly created file is older than distributed files!
2425Check your system clock" "$LINENO" 5
2426fi
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2428$as_echo "yes" >&6; }
2429# If we didn't sleep, we still need to ensure time stamps of config.status and
2430# generated files are strictly newer.
2431am_sleep_pid=
2432if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2433 ( sleep 1 ) &
2434 am_sleep_pid=$!
2435fi
2436
2437rm -f conftest.file
2438
2439test "$program_prefix" != NONE &&
2440 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2441# Use a double $ so make ignores it.
2442test "$program_suffix" != NONE &&
2443 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2444# Double any \ or $.
2445# By default was `s,x,x', remove it if useless.
2446ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2447program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2448
2449# expand $ac_aux_dir to an absolute path
2450am_aux_dir=`cd $ac_aux_dir && pwd`
2451
2452if test x"${MISSING+set}" != xset; then
2453 case $am_aux_dir in
2454 *\ * | *\ *)
2455 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2456 *)
2457 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2458 esac
2459fi
2460# Use eval to expand $SHELL
2461if eval "$MISSING --is-lightweight"; then
2462 am_missing_run="$MISSING "
2463else
2464 am_missing_run=
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2466$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2467fi
2468
2469if test x"${install_sh}" != xset; then
2470 case $am_aux_dir in
2471 *\ * | *\ *)
2472 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2473 *)
2474 install_sh="\${SHELL} $am_aux_dir/install-sh"
2475 esac
2476fi
2477
2478# Installed binaries are usually stripped using 'strip' when the user
2479# run "make install-strip". However 'strip' might not be the right
2480# tool to use in cross-compilation environments, therefore Automake
2481# will honor the 'STRIP' environment variable to overrule this program.
2482if test "$cross_compiling" != no; then
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}strip; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
2488if ${ac_cv_prog_STRIP+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490else
2491 if test -n "$STRIP"; then
2492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506 done
2507IFS=$as_save_IFS
2508
2509fi
2510fi
2511STRIP=$ac_cv_prog_STRIP
2512if test -n "$STRIP"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2514$as_echo "$STRIP" >&6; }
2515else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
2518fi
2519
2520
2521fi
2522if test -z "$ac_cv_prog_STRIP"; then
2523 ac_ct_STRIP=$STRIP
2524 # Extract the first word of "strip", so it can be a program name with args.
2525set dummy strip; ac_word=$2
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
2528if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530else
2531 if test -n "$ac_ct_STRIP"; then
2532 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_prog_ac_ct_STRIP="strip"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545done
2546 done
2547IFS=$as_save_IFS
2548
2549fi
2550fi
2551ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2552if test -n "$ac_ct_STRIP"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2554$as_echo "$ac_ct_STRIP" >&6; }
2555else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557$as_echo "no" >&6; }
2558fi
2559
2560 if test "x$ac_ct_STRIP" = x; then
2561 STRIP=":"
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564yes:)
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567ac_tool_warned=yes ;;
2568esac
2569 STRIP=$ac_ct_STRIP
2570 fi
2571else
2572 STRIP="$ac_cv_prog_STRIP"
2573fi
2574
2575fi
2576INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2577
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2579$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2580if test -z "$MKDIR_P"; then
2581 if ${ac_cv_path_mkdir+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_prog in mkdir gmkdir; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2592 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2593 'mkdir (GNU coreutils) '* | \
2594 'mkdir (coreutils) '* | \
2595 'mkdir (fileutils) '4.1*)
2596 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2597 break 3;;
2598 esac
2599 done
2600 done
2601 done
2602IFS=$as_save_IFS
2603
2604fi
2605
2606 test -d ./--version && rmdir ./--version
2607 if test "${ac_cv_path_mkdir+set}" = set; then
2608 MKDIR_P="$ac_cv_path_mkdir -p"
2609 else
2610 # As a last resort, use the slow shell script. Don't cache a
2611 # value for MKDIR_P within a source directory, because that will
2612 # break other packages using the cache if that directory is
2613 # removed, or if the value is a relative name.
2614 MKDIR_P="$ac_install_sh -d"
2615 fi
2616fi
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2618$as_echo "$MKDIR_P" >&6; }
2619
2620for ac_prog in gawk mawk nawk awk
2621do
2622 # Extract the first word of "$ac_prog", so it can be a program name with args.
2623set dummy $ac_prog; ac_word=$2
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625$as_echo_n "checking for $ac_word... " >&6; }
2626if ${ac_cv_prog_AWK+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628else
2629 if test -n "$AWK"; then
2630 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2631else
2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633for as_dir in $PATH
2634do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_AWK="$ac_prog"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2642 fi
2643done
2644 done
2645IFS=$as_save_IFS
2646
2647fi
2648fi
2649AWK=$ac_cv_prog_AWK
2650if test -n "$AWK"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2652$as_echo "$AWK" >&6; }
2653else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655$as_echo "no" >&6; }
2656fi
2657
2658
2659 test -n "$AWK" && break
2660done
2661
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2663$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2664set x ${MAKE-make}
2665ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2666if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668else
2669 cat >conftest.make <<\_ACEOF
2670SHELL = /bin/sh
2671all:
2672 @echo '@@@%%%=$(MAKE)=@@@%%%'
2673_ACEOF
2674# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2675case `${MAKE-make} -f conftest.make 2>/dev/null` in
2676 *@@@%%%=?*=@@@%%%*)
2677 eval ac_cv_prog_make_${ac_make}_set=yes;;
2678 *)
2679 eval ac_cv_prog_make_${ac_make}_set=no;;
2680esac
2681rm -f conftest.make
2682fi
2683if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2685$as_echo "yes" >&6; }
2686 SET_MAKE=
2687else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689$as_echo "no" >&6; }
2690 SET_MAKE="MAKE=${MAKE-make}"
2691fi
2692
2693rm -rf .tst 2>/dev/null
2694mkdir .tst 2>/dev/null
2695if test -d .tst; then
2696 am__leading_dot=.
2697else
2698 am__leading_dot=_
2699fi
2700rmdir .tst 2>/dev/null
2701
2702# Check whether --enable-silent-rules was given.
2703if test "${enable_silent_rules+set}" = set; then :
2704 enableval=$enable_silent_rules;
2705fi
2706
2707case $enable_silent_rules in # (((
2708 yes) AM_DEFAULT_VERBOSITY=0;;
2709 no) AM_DEFAULT_VERBOSITY=1;;
2710 *) AM_DEFAULT_VERBOSITY=1;;
2711esac
2712am_make=${MAKE-make}
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2714$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2715if ${am_cv_make_support_nested_variables+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 if $as_echo 'TRUE=$(BAR$(V))
2719BAR0=false
2720BAR1=true
2721V=1
2722am__doit:
2723 @$(TRUE)
2724.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2725 am_cv_make_support_nested_variables=yes
2726else
2727 am_cv_make_support_nested_variables=no
2728fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2731$as_echo "$am_cv_make_support_nested_variables" >&6; }
2732if test $am_cv_make_support_nested_variables = yes; then
2733 AM_V='$(V)'
2734 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2735else
2736 AM_V=$AM_DEFAULT_VERBOSITY
2737 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2738fi
2739AM_BACKSLASH='\'
2740
2741if test "`cd $srcdir && pwd`" != "`pwd`"; then
2742 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2743 # is not polluted with repeated "-I."
2744 am__isrc=' -I$(srcdir)'
2745 # test to see if srcdir already configured
2746 if test -f $srcdir/config.status; then
2747 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2748 fi
2749fi
2750
2751# test whether we have cygpath
2752if test -z "$CYGPATH_W"; then
2753 if (cygpath --version) >/dev/null 2>/dev/null; then
2754 CYGPATH_W='cygpath -w'
2755 else
2756 CYGPATH_W=echo
2757 fi
2758fi
2759
2760
2761# Define the identity of the package.
2762 PACKAGE='ndn-cpp'
2763 VERSION='0.5'
2764
2765
2766# Some tools Automake needs.
2767
2768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2769
2770
2771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2772
2773
2774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2775
2776
2777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2778
2779
2780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2781
2782# For better backward compatibility. To be removed once Automake 1.9.x
2783# dies out for good. For more background, see:
2784# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2785# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2786mkdir_p='$(MKDIR_P)'
2787
2788# We need awk for the "check" target. The system "awk" is bad on
2789# some platforms.
2790# Always define AMTAR for backward compatibility. Yes, it's still used
2791# in the wild :-( We should find a proper way to deprecate it ...
2792AMTAR='$${TAR-tar}'
2793
2794
2795# We'll loop over all known methods to create a tar archive until one works.
2796_am_tools='gnutar pax cpio none'
2797
2798am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2799
2800
2801
2802
2803
2804
2805
2806ac_config_headers="$ac_config_headers config.h"
2807
2808ac_ext=cpp
2809ac_cpp='$CXXCPP $CPPFLAGS'
2810ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2813if test -z "$CXX"; then
2814 if test -n "$CCC"; then
2815 CXX=$CCC
2816 else
2817 if test -n "$ac_tool_prefix"; then
2818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2819 do
2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_CXX+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826else
2827 if test -n "$CXX"; then
2828 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842 done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847CXX=$ac_cv_prog_CXX
2848if test -n "$CXX"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2850$as_echo "$CXX" >&6; }
2851else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856
2857 test -n "$CXX" && break
2858 done
2859fi
2860if test -z "$CXX"; then
2861 ac_ct_CXX=$CXX
2862 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2863do
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865set dummy $ac_prog; ac_word=$2
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
2868if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870else
2871 if test -n "$ac_ct_CXX"; then
2872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2873else
2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_ac_ct_CXX="$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885done
2886 done
2887IFS=$as_save_IFS
2888
2889fi
2890fi
2891ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2892if test -n "$ac_ct_CXX"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2894$as_echo "$ac_ct_CXX" >&6; }
2895else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897$as_echo "no" >&6; }
2898fi
2899
2900
2901 test -n "$ac_ct_CXX" && break
2902done
2903
2904 if test "x$ac_ct_CXX" = x; then
2905 CXX="g++"
2906 else
2907 case $cross_compiling:$ac_tool_warned in
2908yes:)
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911ac_tool_warned=yes ;;
2912esac
2913 CXX=$ac_ct_CXX
2914 fi
2915fi
2916
2917 fi
2918fi
2919# Provide some information about the compiler.
2920$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2921set X $ac_compile
2922ac_compiler=$2
2923for ac_option in --version -v -V -qversion; do
2924 { { ac_try="$ac_compiler $ac_option >&5"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2932 ac_status=$?
2933 if test -s conftest.err; then
2934 sed '10a\
2935... rest of stderr output deleted ...
2936 10q' conftest.err >conftest.er1
2937 cat conftest.er1 >&5
2938 fi
2939 rm -f conftest.er1 conftest.err
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }
2942done
2943
2944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945/* end confdefs.h. */
2946
2947int
2948main ()
2949{
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955ac_clean_files_save=$ac_clean_files
2956ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2957# Try to create an executable without -o first, disregard a.out.
2958# It will help us diagnose broken compilers, and finding out an intuition
2959# of exeext.
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2961$as_echo_n "checking whether the C++ compiler works... " >&6; }
2962ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2963
2964# The possible output files:
2965ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2966
2967ac_rmfiles=
2968for ac_file in $ac_files
2969do
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2972 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2973 esac
2974done
2975rm -f $ac_rmfiles
2976
2977if { { ac_try="$ac_link_default"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_link_default") 2>&5
2985 ac_status=$?
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2989# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2990# in a Makefile. We should not override ac_cv_exeext if it was cached,
2991# so that the user can short-circuit this test for compilers unknown to
2992# Autoconf.
2993for ac_file in $ac_files ''
2994do
2995 test -f "$ac_file" || continue
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2998 ;;
2999 [ab].out )
3000 # We found the default executable, but exeext='' is most
3001 # certainly right.
3002 break;;
3003 *.* )
3004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3005 then :; else
3006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3007 fi
3008 # We set ac_cv_exeext here because the later test for it is not
3009 # safe: cross compilers may not add the suffix if given an `-o'
3010 # argument, so we may need to know it at that point already.
3011 # Even if this section looks crufty: it has the advantage of
3012 # actually working.
3013 break;;
3014 * )
3015 break;;
3016 esac
3017done
3018test "$ac_cv_exeext" = no && ac_cv_exeext=
3019
3020else
3021 ac_file=''
3022fi
3023if test -z "$ac_file"; then :
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026$as_echo "$as_me: failed program was:" >&5
3027sed 's/^/| /' conftest.$ac_ext >&5
3028
3029{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error 77 "C++ compiler cannot create executables
3032See \`config.log' for more details" "$LINENO" 5; }
3033else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035$as_echo "yes" >&6; }
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3038$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3040$as_echo "$ac_file" >&6; }
3041ac_exeext=$ac_cv_exeext
3042
3043rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3044ac_clean_files=$ac_clean_files_save
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3046$as_echo_n "checking for suffix of executables... " >&6; }
3047if { { ac_try="$ac_link"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3060# work properly (i.e., refer to `conftest.exe'), while it won't with
3061# `rm'.
3062for ac_file in conftest.exe conftest conftest.*; do
3063 test -f "$ac_file" || continue
3064 case $ac_file in
3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3067 break;;
3068 * ) break;;
3069 esac
3070done
3071else
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3075See \`config.log' for more details" "$LINENO" 5; }
3076fi
3077rm -f conftest conftest$ac_cv_exeext
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3079$as_echo "$ac_cv_exeext" >&6; }
3080
3081rm -f conftest.$ac_ext
3082EXEEXT=$ac_cv_exeext
3083ac_exeext=$EXEEXT
3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h. */
3086#include <stdio.h>
3087int
3088main ()
3089{
3090FILE *f = fopen ("conftest.out", "w");
3091 return ferror (f) || fclose (f) != 0;
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097ac_clean_files="$ac_clean_files conftest.out"
3098# Check that the compiler produces executables we can run. If not, either
3099# the compiler is broken, or we cross compile.
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101$as_echo_n "checking whether we are cross compiling... " >&6; }
3102if test "$cross_compiling" != yes; then
3103 { { ac_try="$ac_link"
3104case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3114 if { ac_try='./conftest$ac_cv_exeext'
3115 { { case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120$as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; }; then
3125 cross_compiling=no
3126 else
3127 if test "$cross_compiling" = maybe; then
3128 cross_compiling=yes
3129 else
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132as_fn_error $? "cannot run C++ compiled programs.
3133If you meant to cross compile, use \`--host'.
3134See \`config.log' for more details" "$LINENO" 5; }
3135 fi
3136 fi
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139$as_echo "$cross_compiling" >&6; }
3140
3141rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3142ac_clean_files=$ac_clean_files_save
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3144$as_echo_n "checking for suffix of object files... " >&6; }
3145if ${ac_cv_objext+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
3159rm -f conftest.o conftest.obj
3160if { { ac_try="$ac_compile"
3161case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166$as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_compile") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; then :
3171 for ac_file in conftest.o conftest.obj conftest.*; do
3172 test -f "$ac_file" || continue;
3173 case $ac_file in
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3176 break;;
3177 esac
3178done
3179else
3180 $as_echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185as_fn_error $? "cannot compute suffix of object files: cannot compile
3186See \`config.log' for more details" "$LINENO" 5; }
3187fi
3188rm -f conftest.$ac_cv_objext conftest.$ac_ext
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3191$as_echo "$ac_cv_objext" >&6; }
3192OBJEXT=$ac_cv_objext
3193ac_objext=$OBJEXT
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3195$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3196if ${ac_cv_cxx_compiler_gnu+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198else
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h. */
3201
3202int
3203main ()
3204{
3205#ifndef __GNUC__
3206 choke me
3207#endif
3208
3209 ;
3210 return 0;
3211}
3212_ACEOF
3213if ac_fn_cxx_try_compile "$LINENO"; then :
3214 ac_compiler_gnu=yes
3215else
3216 ac_compiler_gnu=no
3217fi
3218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3220
3221fi
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3223$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3224if test $ac_compiler_gnu = yes; then
3225 GXX=yes
3226else
3227 GXX=
3228fi
3229ac_test_CXXFLAGS=${CXXFLAGS+set}
3230ac_save_CXXFLAGS=$CXXFLAGS
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3232$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3233if ${ac_cv_prog_cxx_g+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235else
3236 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3237 ac_cxx_werror_flag=yes
3238 ac_cv_prog_cxx_g=no
3239 CXXFLAGS="-g"
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242
3243int
3244main ()
3245{
3246
3247 ;
3248 return 0;
3249}
3250_ACEOF
3251if ac_fn_cxx_try_compile "$LINENO"; then :
3252 ac_cv_prog_cxx_g=yes
3253else
3254 CXXFLAGS=""
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h. */
3257
3258int
3259main ()
3260{
3261
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266if ac_fn_cxx_try_compile "$LINENO"; then :
3267
3268else
3269 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3270 CXXFLAGS="-g"
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272/* end confdefs.h. */
3273
3274int
3275main ()
3276{
3277
3278 ;
3279 return 0;
3280}
3281_ACEOF
3282if ac_fn_cxx_try_compile "$LINENO"; then :
3283 ac_cv_prog_cxx_g=yes
3284fi
3285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286fi
3287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288fi
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3293$as_echo "$ac_cv_prog_cxx_g" >&6; }
3294if test "$ac_test_CXXFLAGS" = set; then
3295 CXXFLAGS=$ac_save_CXXFLAGS
3296elif test $ac_cv_prog_cxx_g = yes; then
3297 if test "$GXX" = yes; then
3298 CXXFLAGS="-g -O2"
3299 else
3300 CXXFLAGS="-g"
3301 fi
3302else
3303 if test "$GXX" = yes; then
3304 CXXFLAGS="-O2"
3305 else
3306 CXXFLAGS=
3307 fi
3308fi
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314DEPDIR="${am__leading_dot}deps"
3315
3316ac_config_commands="$ac_config_commands depfiles"
3317
3318
3319am_make=${MAKE-make}
3320cat > confinc << 'END'
3321am__doit:
3322 @echo this is the am__doit target
3323.PHONY: am__doit
3324END
3325# If we don't find an include directive, just comment out the code.
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3327$as_echo_n "checking for style of include used by $am_make... " >&6; }
3328am__include="#"
3329am__quote=
3330_am_result=none
3331# First try GNU make style include.
3332echo "include confinc" > confmf
3333# Ignore all kinds of additional output from 'make'.
3334case `$am_make -s -f confmf 2> /dev/null` in #(
3335*the\ am__doit\ target*)
3336 am__include=include
3337 am__quote=
3338 _am_result=GNU
3339 ;;
3340esac
3341# Now try BSD make style include.
3342if test "$am__include" = "#"; then
3343 echo '.include "confinc"' > confmf
3344 case `$am_make -s -f confmf 2> /dev/null` in #(
3345 *the\ am__doit\ target*)
3346 am__include=.include
3347 am__quote="\""
3348 _am_result=BSD
3349 ;;
3350 esac
3351fi
3352
3353
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3355$as_echo "$_am_result" >&6; }
3356rm -f confinc confmf
3357
3358# Check whether --enable-dependency-tracking was given.
3359if test "${enable_dependency_tracking+set}" = set; then :
3360 enableval=$enable_dependency_tracking;
3361fi
3362
3363if test "x$enable_dependency_tracking" != xno; then
3364 am_depcomp="$ac_aux_dir/depcomp"
3365 AMDEPBACKSLASH='\'
3366 am__nodep='_no'
3367fi
3368 if test "x$enable_dependency_tracking" != xno; then
3369 AMDEP_TRUE=
3370 AMDEP_FALSE='#'
3371else
3372 AMDEP_TRUE='#'
3373 AMDEP_FALSE=
3374fi
3375
3376
3377
3378depcc="$CXX" am_compiler_list=
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3381$as_echo_n "checking dependency style of $depcc... " >&6; }
3382if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3386 # We make a subdir and do the tests there. Otherwise we can end up
3387 # making bogus files that we don't know about and never remove. For
3388 # instance it was reported that on HP-UX the gcc test will end up
3389 # making a dummy file named 'D' -- because '-MD' means "put the output
3390 # in D".
3391 rm -rf conftest.dir
3392 mkdir conftest.dir
3393 # Copy depcomp to subdir because otherwise we won't find it if we're
3394 # using a relative directory.
3395 cp "$am_depcomp" conftest.dir
3396 cd conftest.dir
3397 # We will build objects and dependencies in a subdirectory because
3398 # it helps to detect inapplicable dependency modes. For instance
3399 # both Tru64's cc and ICC support -MD to output dependencies as a
3400 # side effect of compilation, but ICC will put the dependencies in
3401 # the current directory while Tru64 will put them in the object
3402 # directory.
3403 mkdir sub
3404
3405 am_cv_CXX_dependencies_compiler_type=none
3406 if test "$am_compiler_list" = ""; then
3407 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3408 fi
3409 am__universal=false
3410 case " $depcc " in #(
3411 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3412 esac
3413
3414 for depmode in $am_compiler_list; do
3415 # Setup a source with many dependencies, because some compilers
3416 # like to wrap large dependency lists on column 80 (with \), and
3417 # we should not choose a depcomp mode which is confused by this.
3418 #
3419 # We need to recreate these files for each test, as the compiler may
3420 # overwrite some of them when testing with obscure command lines.
3421 # This happens at least with the AIX C compiler.
3422 : > sub/conftest.c
3423 for i in 1 2 3 4 5 6; do
3424 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3425 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3426 # Solaris 10 /bin/sh.
3427 echo '/* dummy */' > sub/conftst$i.h
3428 done
3429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3430
3431 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3432 # mode. It turns out that the SunPro C++ compiler does not properly
3433 # handle '-M -o', and we need to detect this. Also, some Intel
3434 # versions had trouble with output in subdirs.
3435 am__obj=sub/conftest.${OBJEXT-o}
3436 am__minus_obj="-o $am__obj"
3437 case $depmode in
3438 gcc)
3439 # This depmode causes a compiler race in universal mode.
3440 test "$am__universal" = false || continue
3441 ;;
3442 nosideeffect)
3443 # After this tag, mechanisms are not by side-effect, so they'll
3444 # only be used when explicitly requested.
3445 if test "x$enable_dependency_tracking" = xyes; then
3446 continue
3447 else
3448 break
3449 fi
3450 ;;
3451 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3452 # This compiler won't grok '-c -o', but also, the minuso test has
3453 # not run yet. These depmodes are late enough in the game, and
3454 # so weak that their functioning should not be impacted.
3455 am__obj=conftest.${OBJEXT-o}
3456 am__minus_obj=
3457 ;;
3458 none) break ;;
3459 esac
3460 if depmode=$depmode \
3461 source=sub/conftest.c object=$am__obj \
3462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3464 >/dev/null 2>conftest.err &&
3465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469 # icc doesn't choke on unknown options, it will just issue warnings
3470 # or remarks (even with -Werror). So we grep stderr for any message
3471 # that says an option was ignored or not supported.
3472 # When given -MP, icc 7.0 and 7.1 complain thusly:
3473 # icc: Command line warning: ignoring option '-M'; no argument required
3474 # The diagnosis changed in icc 8.0:
3475 # icc: Command line remark: option '-MP' not supported
3476 if (grep 'ignoring option' conftest.err ||
3477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478 am_cv_CXX_dependencies_compiler_type=$depmode
3479 break
3480 fi
3481 fi
3482 done
3483
3484 cd ..
3485 rm -rf conftest.dir
3486else
3487 am_cv_CXX_dependencies_compiler_type=none
3488fi
3489
3490fi
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3492$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3493CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3494
3495 if
3496 test "x$enable_dependency_tracking" != xno \
3497 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3498 am__fastdepCXX_TRUE=
3499 am__fastdepCXX_FALSE='#'
3500else
3501 am__fastdepCXX_TRUE='#'
3502 am__fastdepCXX_FALSE=
3503fi
3504
3505
3506ac_ext=cpp
3507ac_cpp='$CXXCPP $CPPFLAGS'
3508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3511
Jeff Thompson36174062013-06-21 16:03:44 -07003512case `pwd` in
3513 *\ * | *\ *)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3515$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3516esac
3517
3518
3519
3520macro_version='2.4.2'
3521macro_revision='1.3337'
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535ltmain="$ac_aux_dir/ltmain.sh"
3536
3537# Make sure we can run config.sub.
3538$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3539 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3540
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3542$as_echo_n "checking build system type... " >&6; }
3543if ${ac_cv_build+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545else
3546 ac_build_alias=$build_alias
3547test "x$ac_build_alias" = x &&
3548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3549test "x$ac_build_alias" = x &&
3550 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3553
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3556$as_echo "$ac_cv_build" >&6; }
3557case $ac_cv_build in
3558*-*-*) ;;
3559*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3560esac
3561build=$ac_cv_build
3562ac_save_IFS=$IFS; IFS='-'
3563set x $ac_cv_build
3564shift
3565build_cpu=$1
3566build_vendor=$2
3567shift; shift
3568# Remember, the first character of IFS is used to create $*,
3569# except with old shells:
3570build_os=$*
3571IFS=$ac_save_IFS
3572case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3573
3574
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3576$as_echo_n "checking host system type... " >&6; }
3577if ${ac_cv_host+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579else
3580 if test "x$host_alias" = x; then
3581 ac_cv_host=$ac_cv_build
3582else
3583 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3584 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3585fi
3586
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3589$as_echo "$ac_cv_host" >&6; }
3590case $ac_cv_host in
3591*-*-*) ;;
3592*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3593esac
3594host=$ac_cv_host
3595ac_save_IFS=$IFS; IFS='-'
3596set x $ac_cv_host
3597shift
3598host_cpu=$1
3599host_vendor=$2
3600shift; shift
3601# Remember, the first character of IFS is used to create $*,
3602# except with old shells:
3603host_os=$*
3604IFS=$ac_save_IFS
3605case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3606
3607
3608# Backslashify metacharacters that are still active within
3609# double-quoted strings.
3610sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3611
3612# Same as above, but do not quote variable references.
3613double_quote_subst='s/\(["`\\]\)/\\\1/g'
3614
3615# Sed substitution to delay expansion of an escaped shell variable in a
3616# double_quote_subst'ed string.
3617delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3618
3619# Sed substitution to delay expansion of an escaped single quote.
3620delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3621
3622# Sed substitution to avoid accidental globbing in evaled expressions
3623no_glob_subst='s/\*/\\\*/g'
3624
3625ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3626ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3627ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3628
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3630$as_echo_n "checking how to print strings... " >&6; }
3631# Test print first, because it will be a builtin if present.
3632if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3633 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3634 ECHO='print -r --'
3635elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3636 ECHO='printf %s\n'
3637else
3638 # Use this function as a fallback that always works.
3639 func_fallback_echo ()
3640 {
3641 eval 'cat <<_LTECHO_EOF
3642$1
3643_LTECHO_EOF'
3644 }
3645 ECHO='func_fallback_echo'
3646fi
3647
3648# func_echo_all arg...
3649# Invoke $ECHO with all args, space-separated.
3650func_echo_all ()
3651{
3652 $ECHO ""
3653}
3654
3655case "$ECHO" in
3656 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3657$as_echo "printf" >&6; } ;;
3658 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3659$as_echo "print -r" >&6; } ;;
3660 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3661$as_echo "cat" >&6; } ;;
3662esac
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677ac_ext=c
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682if test -n "$ac_tool_prefix"; then
3683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3684set dummy ${ac_tool_prefix}gcc; ac_word=$2
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
3687if ${ac_cv_prog_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689else
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704done
3705 done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710CC=$ac_cv_prog_CC
3711if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713$as_echo "$CC" >&6; }
3714else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719
3720fi
3721if test -z "$ac_cv_prog_CC"; then
3722 ac_ct_CC=$CC
3723 # Extract the first word of "gcc", so it can be a program name with args.
3724set dummy gcc; ac_word=$2
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726$as_echo_n "checking for $ac_word... " >&6; }
3727if ${ac_cv_prog_ac_ct_CC+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729else
3730 if test -n "$ac_ct_CC"; then
3731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3732else
3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_ac_ct_CC="gcc"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744done
3745 done
3746IFS=$as_save_IFS
3747
3748fi
3749fi
3750ac_ct_CC=$ac_cv_prog_ac_ct_CC
3751if test -n "$ac_ct_CC"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3753$as_echo "$ac_ct_CC" >&6; }
3754else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756$as_echo "no" >&6; }
3757fi
3758
3759 if test "x$ac_ct_CC" = x; then
3760 CC=""
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763yes:)
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766ac_tool_warned=yes ;;
3767esac
3768 CC=$ac_ct_CC
3769 fi
3770else
3771 CC="$ac_cv_prog_CC"
3772fi
3773
3774if test -z "$CC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3777set dummy ${ac_tool_prefix}cc; ac_word=$2
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779$as_echo_n "checking for $ac_word... " >&6; }
3780if ${ac_cv_prog_CC+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782else
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC="$CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CC="${ac_tool_prefix}cc"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797done
3798 done
3799IFS=$as_save_IFS
3800
3801fi
3802fi
3803CC=$ac_cv_prog_CC
3804if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806$as_echo "$CC" >&6; }
3807else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
3810fi
3811
3812
3813 fi
3814fi
3815if test -z "$CC"; then
3816 # Extract the first word of "cc", so it can be a program name with args.
3817set dummy cc; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_CC+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 if test -n "$CC"; then
3824 ac_cv_prog_CC="$CC" # Let the user override the test.
3825else
3826 ac_prog_rejected=no
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3835 ac_prog_rejected=yes
3836 continue
3837 fi
3838 ac_cv_prog_CC="cc"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3841 fi
3842done
3843 done
3844IFS=$as_save_IFS
3845
3846if test $ac_prog_rejected = yes; then
3847 # We found a bogon in the path, so make sure we never use it.
3848 set dummy $ac_cv_prog_CC
3849 shift
3850 if test $# != 0; then
3851 # We chose a different compiler from the bogus one.
3852 # However, it has the same basename, so the bogon will be chosen
3853 # first if we set CC to just the basename; use the full file name.
3854 shift
3855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3856 fi
3857fi
3858fi
3859fi
3860CC=$ac_cv_prog_CC
3861if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863$as_echo "$CC" >&6; }
3864else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866$as_echo "no" >&6; }
3867fi
3868
3869
3870fi
3871if test -z "$CC"; then
3872 if test -n "$ac_tool_prefix"; then
3873 for ac_prog in cl.exe
3874 do
3875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if ${ac_cv_prog_CC+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881else
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896done
3897 done
3898IFS=$as_save_IFS
3899
3900fi
3901fi
3902CC=$ac_cv_prog_CC
3903if test -n "$CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905$as_echo "$CC" >&6; }
3906else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
3909fi
3910
3911
3912 test -n "$CC" && break
3913 done
3914fi
3915if test -z "$CC"; then
3916 ac_ct_CC=$CC
3917 for ac_prog in cl.exe
3918do
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920set dummy $ac_prog; ac_word=$2
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922$as_echo_n "checking for $ac_word... " >&6; }
3923if ${ac_cv_prog_ac_ct_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925else
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_CC="$ac_prog"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
3941 done
3942IFS=$as_save_IFS
3943
3944fi
3945fi
3946ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947if test -n "$ac_ct_CC"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3949$as_echo "$ac_ct_CC" >&6; }
3950else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952$as_echo "no" >&6; }
3953fi
3954
3955
3956 test -n "$ac_ct_CC" && break
3957done
3958
3959 if test "x$ac_ct_CC" = x; then
3960 CC=""
3961 else
3962 case $cross_compiling:$ac_tool_warned in
3963yes:)
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966ac_tool_warned=yes ;;
3967esac
3968 CC=$ac_ct_CC
3969 fi
3970fi
3971
3972fi
3973
3974
3975test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977as_fn_error $? "no acceptable C compiler found in \$PATH
3978See \`config.log' for more details" "$LINENO" 5; }
3979
3980# Provide some information about the compiler.
3981$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3982set X $ac_compile
3983ac_compiler=$2
3984for ac_option in --version -v -V -qversion; do
3985 { { ac_try="$ac_compiler $ac_option >&5"
3986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991$as_echo "$ac_try_echo"; } >&5
3992 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3993 ac_status=$?
3994 if test -s conftest.err; then
3995 sed '10a\
3996... rest of stderr output deleted ...
3997 10q' conftest.err >conftest.er1
3998 cat conftest.er1 >&5
3999 fi
4000 rm -f conftest.er1 conftest.err
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }
4003done
4004
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007if ${ac_cv_c_compiler_gnu+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h. */
4012
4013int
4014main ()
4015{
4016#ifndef __GNUC__
4017 choke me
4018#endif
4019
4020 ;
4021 return 0;
4022}
4023_ACEOF
4024if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_compiler_gnu=yes
4026else
4027 ac_compiler_gnu=no
4028fi
4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035if test $ac_compiler_gnu = yes; then
4036 GCC=yes
4037else
4038 GCC=
4039fi
4040ac_test_CFLAGS=${CFLAGS+set}
4041ac_save_CFLAGS=$CFLAGS
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043$as_echo_n "checking whether $CC accepts -g... " >&6; }
4044if ${ac_cv_prog_cc_g+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046else
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4049 ac_cv_prog_cc_g=no
4050 CFLAGS="-g"
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h. */
4053
4054int
4055main ()
4056{
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_prog_cc_g=yes
4064else
4065 CFLAGS=""
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068
4069int
4070main ()
4071{
4072
4073 ;
4074 return 0;
4075}
4076_ACEOF
4077if ac_fn_c_try_compile "$LINENO"; then :
4078
4079else
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4081 CFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083/* end confdefs.h. */
4084
4085int
4086main ()
4087{
4088
4089 ;
4090 return 0;
4091}
4092_ACEOF
4093if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_prog_cc_g=yes
4095fi
4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097fi
4098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099fi
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104$as_echo "$ac_cv_prog_cc_g" >&6; }
4105if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4109 CFLAGS="-g -O2"
4110 else
4111 CFLAGS="-g"
4112 fi
4113else
4114 if test "$GCC" = yes; then
4115 CFLAGS="-O2"
4116 else
4117 CFLAGS=
4118 fi
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122if ${ac_cv_prog_cc_c89+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124else
4125 ac_cv_prog_cc_c89=no
4126ac_save_CC=$CC
4127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h. */
4129#include <stdarg.h>
4130#include <stdio.h>
4131struct stat;
4132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4133struct buf { int x; };
4134FILE * (*rcsopen) (struct buf *, struct stat *, int);
4135static char *e (p, i)
4136 char **p;
4137 int i;
4138{
4139 return p[i];
4140}
4141static char *f (char * (*g) (char **, int), char **p, ...)
4142{
4143 char *s;
4144 va_list v;
4145 va_start (v,p);
4146 s = g (p, va_arg (v,int));
4147 va_end (v);
4148 return s;
4149}
4150
4151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4152 function prototypes and stuff, but not '\xHH' hex character constants.
4153 These don't provoke an error unfortunately, instead are silently treated
4154 as 'x'. The following induces an error, until -std is added to get
4155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4156 array size at least. It's necessary to write '\x00'==0 to get something
4157 that's true only with -std. */
4158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4159
4160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4161 inside strings and character constants. */
4162#define FOO(x) 'x'
4163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4164
4165int test (int i, double x);
4166struct s1 {int (*f) (int a);};
4167struct s2 {int (*f) (double a);};
4168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4169int argc;
4170char **argv;
4171int
4172main ()
4173{
4174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4181do
4182 CC="$ac_save_CC $ac_arg"
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_cv_prog_cc_c89=$ac_arg
4185fi
4186rm -f core conftest.err conftest.$ac_objext
4187 test "x$ac_cv_prog_cc_c89" != "xno" && break
4188done
4189rm -f conftest.$ac_ext
4190CC=$ac_save_CC
4191
4192fi
4193# AC_CACHE_VAL
4194case "x$ac_cv_prog_cc_c89" in
4195 x)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4197$as_echo "none needed" >&6; } ;;
4198 xno)
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4200$as_echo "unsupported" >&6; } ;;
4201 *)
4202 CC="$CC $ac_cv_prog_cc_c89"
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4205esac
4206if test "x$ac_cv_prog_cc_c89" != xno; then :
4207
4208fi
4209
4210ac_ext=cpp
4211ac_cpp='$CXXCPP $CPPFLAGS'
4212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4215
4216depcc="$CC" am_compiler_list=
4217
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4219$as_echo_n "checking dependency style of $depcc... " >&6; }
4220if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222else
4223 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4224 # We make a subdir and do the tests there. Otherwise we can end up
4225 # making bogus files that we don't know about and never remove. For
4226 # instance it was reported that on HP-UX the gcc test will end up
4227 # making a dummy file named 'D' -- because '-MD' means "put the output
4228 # in D".
4229 rm -rf conftest.dir
4230 mkdir conftest.dir
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4234 cd conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4240 # directory.
4241 mkdir sub
4242
4243 am_cv_CC_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4246 fi
4247 am__universal=false
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 esac
4251
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4256 #
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4264 # Solaris 10 /bin/sh.
4265 echo '/* dummy */' > sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle '-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs.
4273 am__obj=sub/conftest.${OBJEXT-o}
4274 am__minus_obj="-o $am__obj"
4275 case $depmode in
4276 gcc)
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false || continue
4279 ;;
4280 nosideeffect)
4281 # After this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested.
4283 if test "x$enable_dependency_tracking" = xyes; then
4284 continue
4285 else
4286 break
4287 fi
4288 ;;
4289 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4290 # This compiler won't grok '-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj=conftest.${OBJEXT-o}
4294 am__minus_obj=
4295 ;;
4296 none) break ;;
4297 esac
4298 if depmode=$depmode \
4299 source=sub/conftest.c object=$am__obj \
4300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302 >/dev/null 2>conftest.err &&
4303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316 am_cv_CC_dependencies_compiler_type=$depmode
4317 break
4318 fi
4319 fi
4320 done
4321
4322 cd ..
4323 rm -rf conftest.dir
4324else
4325 am_cv_CC_dependencies_compiler_type=none
4326fi
4327
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4330$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4331CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4332
4333 if
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4336 am__fastdepCC_TRUE=
4337 am__fastdepCC_FALSE='#'
4338else
4339 am__fastdepCC_TRUE='#'
4340 am__fastdepCC_FALSE=
4341fi
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4345$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4346if ${ac_cv_path_SED+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348else
4349 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4350 for ac_i in 1 2 3 4 5 6 7; do
4351 ac_script="$ac_script$as_nl$ac_script"
4352 done
4353 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4354 { ac_script=; unset ac_script;}
4355 if test -z "$SED"; then
4356 ac_path_SED_found=false
4357 # Loop through the user's path and test for each of PROGNAME-LIST
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_prog in sed gsed; do
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4366 as_fn_executable_p "$ac_path_SED" || continue
4367# Check for GNU ac_path_SED and select it if it is found.
4368 # Check for GNU $ac_path_SED
4369case `"$ac_path_SED" --version 2>&1` in
4370*GNU*)
4371 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4372*)
4373 ac_count=0
4374 $as_echo_n 0123456789 >"conftest.in"
4375 while :
4376 do
4377 cat "conftest.in" "conftest.in" >"conftest.tmp"
4378 mv "conftest.tmp" "conftest.in"
4379 cp "conftest.in" "conftest.nl"
4380 $as_echo '' >> "conftest.nl"
4381 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383 as_fn_arith $ac_count + 1 && ac_count=$as_val
4384 if test $ac_count -gt ${ac_path_SED_max-0}; then
4385 # Best one so far, save it but keep looking for a better one
4386 ac_cv_path_SED="$ac_path_SED"
4387 ac_path_SED_max=$ac_count
4388 fi
4389 # 10*(2^10) chars as input seems more than enough
4390 test $ac_count -gt 10 && break
4391 done
4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393esac
4394
4395 $ac_path_SED_found && break 3
4396 done
4397 done
4398 done
4399IFS=$as_save_IFS
4400 if test -z "$ac_cv_path_SED"; then
4401 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4402 fi
4403else
4404 ac_cv_path_SED=$SED
4405fi
4406
4407fi
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4409$as_echo "$ac_cv_path_SED" >&6; }
4410 SED="$ac_cv_path_SED"
4411 rm -f conftest.sed
4412
4413test -z "$SED" && SED=sed
4414Xsed="$SED -e 1s/^X//"
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4427$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4428if ${ac_cv_path_GREP+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 if test -z "$GREP"; then
4432 ac_path_GREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in grep ggrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4442 as_fn_executable_p "$ac_path_GREP" || continue
4443# Check for GNU ac_path_GREP and select it if it is found.
4444 # Check for GNU $ac_path_GREP
4445case `"$ac_path_GREP" --version 2>&1` in
4446*GNU*)
4447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4448*)
4449 ac_count=0
4450 $as_echo_n 0123456789 >"conftest.in"
4451 while :
4452 do
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 $as_echo 'GREP' >> "conftest.nl"
4457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 as_fn_arith $ac_count + 1 && ac_count=$as_val
4460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_GREP="$ac_path_GREP"
4463 ac_path_GREP_max=$ac_count
4464 fi
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4467 done
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4469esac
4470
4471 $ac_path_GREP_found && break 3
4472 done
4473 done
4474 done
4475IFS=$as_save_IFS
4476 if test -z "$ac_cv_path_GREP"; then
4477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478 fi
4479else
4480 ac_cv_path_GREP=$GREP
4481fi
4482
4483fi
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4485$as_echo "$ac_cv_path_GREP" >&6; }
4486 GREP="$ac_cv_path_GREP"
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4490$as_echo_n "checking for egrep... " >&6; }
4491if ${ac_cv_path_EGREP+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493else
4494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4495 then ac_cv_path_EGREP="$GREP -E"
4496 else
4497 if test -z "$EGREP"; then
4498 ac_path_EGREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in egrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4508 as_fn_executable_p "$ac_path_EGREP" || continue
4509# Check for GNU ac_path_EGREP and select it if it is found.
4510 # Check for GNU $ac_path_EGREP
4511case `"$ac_path_EGREP" --version 2>&1` in
4512*GNU*)
4513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4514*)
4515 ac_count=0
4516 $as_echo_n 0123456789 >"conftest.in"
4517 while :
4518 do
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 $as_echo 'EGREP' >> "conftest.nl"
4523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 as_fn_arith $ac_count + 1 && ac_count=$as_val
4526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_EGREP="$ac_path_EGREP"
4529 ac_path_EGREP_max=$ac_count
4530 fi
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4533 done
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4535esac
4536
4537 $ac_path_EGREP_found && break 3
4538 done
4539 done
4540 done
4541IFS=$as_save_IFS
4542 if test -z "$ac_cv_path_EGREP"; then
4543 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4544 fi
4545else
4546 ac_cv_path_EGREP=$EGREP
4547fi
4548
4549 fi
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4552$as_echo "$ac_cv_path_EGREP" >&6; }
4553 EGREP="$ac_cv_path_EGREP"
4554
4555
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4557$as_echo_n "checking for fgrep... " >&6; }
4558if ${ac_cv_path_FGREP+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4562 then ac_cv_path_FGREP="$GREP -F"
4563 else
4564 if test -z "$FGREP"; then
4565 ac_path_FGREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in fgrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4575 as_fn_executable_p "$ac_path_FGREP" || continue
4576# Check for GNU ac_path_FGREP and select it if it is found.
4577 # Check for GNU $ac_path_FGREP
4578case `"$ac_path_FGREP" --version 2>&1` in
4579*GNU*)
4580 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4581*)
4582 ac_count=0
4583 $as_echo_n 0123456789 >"conftest.in"
4584 while :
4585 do
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo 'FGREP' >> "conftest.nl"
4590 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_FGREP="$ac_path_FGREP"
4596 ac_path_FGREP_max=$ac_count
4597 fi
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4600 done
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602esac
4603
4604 $ac_path_FGREP_found && break 3
4605 done
4606 done
4607 done
4608IFS=$as_save_IFS
4609 if test -z "$ac_cv_path_FGREP"; then
4610 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611 fi
4612else
4613 ac_cv_path_FGREP=$FGREP
4614fi
4615
4616 fi
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4619$as_echo "$ac_cv_path_FGREP" >&6; }
4620 FGREP="$ac_cv_path_FGREP"
4621
4622
4623test -z "$GREP" && GREP=grep
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643# Check whether --with-gnu-ld was given.
4644if test "${with_gnu_ld+set}" = set; then :
4645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4646else
4647 with_gnu_ld=no
4648fi
4649
4650ac_prog=ld
4651if test "$GCC" = yes; then
4652 # Check if gcc -print-prog-name=ld gives a path.
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4654$as_echo_n "checking for ld used by $CC... " >&6; }
4655 case $host in
4656 *-*-mingw*)
4657 # gcc leaves a trailing carriage return which upsets mingw
4658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4659 *)
4660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4661 esac
4662 case $ac_prog in
4663 # Accept absolute paths.
4664 [\\/]* | ?:[\\/]*)
4665 re_direlt='/[^/][^/]*/\.\./'
4666 # Canonicalize the pathname of ld
4667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4670 done
4671 test -z "$LD" && LD="$ac_prog"
4672 ;;
4673 "")
4674 # If it fails, then pretend we aren't using GCC.
4675 ac_prog=ld
4676 ;;
4677 *)
4678 # If it is relative, then search for the first ld in PATH.
4679 with_gnu_ld=unknown
4680 ;;
4681 esac
4682elif test "$with_gnu_ld" = yes; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4684$as_echo_n "checking for GNU ld... " >&6; }
4685else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4687$as_echo_n "checking for non-GNU ld... " >&6; }
4688fi
4689if ${lt_cv_path_LD+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691else
4692 if test -z "$LD"; then
4693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4694 for ac_dir in $PATH; do
4695 IFS="$lt_save_ifs"
4696 test -z "$ac_dir" && ac_dir=.
4697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4698 lt_cv_path_LD="$ac_dir/$ac_prog"
4699 # Check to see if the program is GNU ld. I'd rather use --version,
4700 # but apparently some variants of GNU ld only accept -v.
4701 # Break only if it was the GNU/non-GNU ld that we prefer.
4702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4703 *GNU* | *'with BFD'*)
4704 test "$with_gnu_ld" != no && break
4705 ;;
4706 *)
4707 test "$with_gnu_ld" != yes && break
4708 ;;
4709 esac
4710 fi
4711 done
4712 IFS="$lt_save_ifs"
4713else
4714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4715fi
4716fi
4717
4718LD="$lt_cv_path_LD"
4719if test -n "$LD"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4721$as_echo "$LD" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4728$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4729if ${lt_cv_prog_gnu_ld+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4733case `$LD -v 2>&1 </dev/null` in
4734*GNU* | *'with BFD'*)
4735 lt_cv_prog_gnu_ld=yes
4736 ;;
4737*)
4738 lt_cv_prog_gnu_ld=no
4739 ;;
4740esac
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4743$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4744with_gnu_ld=$lt_cv_prog_gnu_ld
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4755$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4756if ${lt_cv_path_NM+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758else
4759 if test -n "$NM"; then
4760 # Let the user override the test.
4761 lt_cv_path_NM="$NM"
4762else
4763 lt_nm_to_check="${ac_tool_prefix}nm"
4764 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4765 lt_nm_to_check="$lt_nm_to_check nm"
4766 fi
4767 for lt_tmp_nm in $lt_nm_to_check; do
4768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4769 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4770 IFS="$lt_save_ifs"
4771 test -z "$ac_dir" && ac_dir=.
4772 tmp_nm="$ac_dir/$lt_tmp_nm"
4773 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4774 # Check to see if the nm accepts a BSD-compat flag.
4775 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4776 # nm: unknown option "B" ignored
4777 # Tru64's nm complains that /dev/null is an invalid object file
4778 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4779 */dev/null* | *'Invalid file or object type'*)
4780 lt_cv_path_NM="$tmp_nm -B"
4781 break
4782 ;;
4783 *)
4784 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4785 */dev/null*)
4786 lt_cv_path_NM="$tmp_nm -p"
4787 break
4788 ;;
4789 *)
4790 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4791 continue # so that we can try to find one that supports BSD flags
4792 ;;
4793 esac
4794 ;;
4795 esac
4796 fi
4797 done
4798 IFS="$lt_save_ifs"
4799 done
4800 : ${lt_cv_path_NM=no}
4801fi
4802fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4804$as_echo "$lt_cv_path_NM" >&6; }
4805if test "$lt_cv_path_NM" != "no"; then
4806 NM="$lt_cv_path_NM"
4807else
4808 # Didn't find any BSD compatible name lister, look for dumpbin.
4809 if test -n "$DUMPBIN"; then :
4810 # Let the user override the test.
4811 else
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in dumpbin "link -dump"
4814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
4819if ${ac_cv_prog_DUMPBIN+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821else
4822 if test -n "$DUMPBIN"; then
4823 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837 done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842DUMPBIN=$ac_cv_prog_DUMPBIN
4843if test -n "$DUMPBIN"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4845$as_echo "$DUMPBIN" >&6; }
4846else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852 test -n "$DUMPBIN" && break
4853 done
4854fi
4855if test -z "$DUMPBIN"; then
4856 ac_ct_DUMPBIN=$DUMPBIN
4857 for ac_prog in dumpbin "link -dump"
4858do
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860set dummy $ac_prog; ac_word=$2
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862$as_echo_n "checking for $ac_word... " >&6; }
4863if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865else
4866 if test -n "$ac_ct_DUMPBIN"; then
4867 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881 done
4882IFS=$as_save_IFS
4883
4884fi
4885fi
4886ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4887if test -n "$ac_ct_DUMPBIN"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4889$as_echo "$ac_ct_DUMPBIN" >&6; }
4890else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892$as_echo "no" >&6; }
4893fi
4894
4895
4896 test -n "$ac_ct_DUMPBIN" && break
4897done
4898
4899 if test "x$ac_ct_DUMPBIN" = x; then
4900 DUMPBIN=":"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903yes:)
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906ac_tool_warned=yes ;;
4907esac
4908 DUMPBIN=$ac_ct_DUMPBIN
4909 fi
4910fi
4911
4912 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4913 *COFF*)
4914 DUMPBIN="$DUMPBIN -symbols"
4915 ;;
4916 *)
4917 DUMPBIN=:
4918 ;;
4919 esac
4920 fi
4921
4922 if test "$DUMPBIN" != ":"; then
4923 NM="$DUMPBIN"
4924 fi
4925fi
4926test -z "$NM" && NM=nm
4927
4928
4929
4930
4931
4932
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4934$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4935if ${lt_cv_nm_interface+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937else
4938 lt_cv_nm_interface="BSD nm"
4939 echo "int some_variable = 0;" > conftest.$ac_ext
4940 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4941 (eval "$ac_compile" 2>conftest.err)
4942 cat conftest.err >&5
4943 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4945 cat conftest.err >&5
4946 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4947 cat conftest.out >&5
4948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4949 lt_cv_nm_interface="MS dumpbin"
4950 fi
4951 rm -f conftest*
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4954$as_echo "$lt_cv_nm_interface" >&6; }
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4957$as_echo_n "checking whether ln -s works... " >&6; }
4958LN_S=$as_ln_s
4959if test "$LN_S" = "ln -s"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961$as_echo "yes" >&6; }
4962else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4964$as_echo "no, using $LN_S" >&6; }
4965fi
4966
4967# find the maximum length of command line arguments
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4969$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4970if ${lt_cv_sys_max_cmd_len+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972else
4973 i=0
4974 teststring="ABCD"
4975
4976 case $build_os in
4977 msdosdjgpp*)
4978 # On DJGPP, this test can blow up pretty badly due to problems in libc
4979 # (any single argument exceeding 2000 bytes causes a buffer overrun
4980 # during glob expansion). Even if it were fixed, the result of this
4981 # check would be larger than it should be.
4982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4983 ;;
4984
4985 gnu*)
4986 # Under GNU Hurd, this test is not required because there is
4987 # no limit to the length of command line arguments.
4988 # Libtool will interpret -1 as no limit whatsoever
4989 lt_cv_sys_max_cmd_len=-1;
4990 ;;
4991
4992 cygwin* | mingw* | cegcc*)
4993 # On Win9x/ME, this test blows up -- it succeeds, but takes
4994 # about 5 minutes as the teststring grows exponentially.
4995 # Worse, since 9x/ME are not pre-emptively multitasking,
4996 # you end up with a "frozen" computer, even though with patience
4997 # the test eventually succeeds (with a max line length of 256k).
4998 # Instead, let's just punt: use the minimum linelength reported by
4999 # all of the supported platforms: 8192 (on NT/2K/XP).
5000 lt_cv_sys_max_cmd_len=8192;
5001 ;;
5002
5003 mint*)
5004 # On MiNT this can take a long time and run out of memory.
5005 lt_cv_sys_max_cmd_len=8192;
5006 ;;
5007
5008 amigaos*)
5009 # On AmigaOS with pdksh, this test takes hours, literally.
5010 # So we just punt and use a minimum line length of 8192.
5011 lt_cv_sys_max_cmd_len=8192;
5012 ;;
5013
5014 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5015 # This has been around since 386BSD, at least. Likely further.
5016 if test -x /sbin/sysctl; then
5017 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5018 elif test -x /usr/sbin/sysctl; then
5019 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5020 else
5021 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5022 fi
5023 # And add a safety zone
5024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5026 ;;
5027
5028 interix*)
5029 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5030 lt_cv_sys_max_cmd_len=196608
5031 ;;
5032
5033 os2*)
5034 # The test takes a long time on OS/2.
5035 lt_cv_sys_max_cmd_len=8192
5036 ;;
5037
5038 osf*)
5039 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5040 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5041 # nice to cause kernel panics so lets avoid the loop below.
5042 # First set a reasonable default.
5043 lt_cv_sys_max_cmd_len=16384
5044 #
5045 if test -x /sbin/sysconfig; then
5046 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5047 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5048 esac
5049 fi
5050 ;;
5051 sco3.2v5*)
5052 lt_cv_sys_max_cmd_len=102400
5053 ;;
5054 sysv5* | sco5v6* | sysv4.2uw2*)
5055 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5056 if test -n "$kargmax"; then
5057 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5058 else
5059 lt_cv_sys_max_cmd_len=32768
5060 fi
5061 ;;
5062 *)
5063 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5064 if test -n "$lt_cv_sys_max_cmd_len"; then
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5067 else
5068 # Make teststring a little bigger before we do anything with it.
5069 # a 1K string should be a reasonable start.
5070 for i in 1 2 3 4 5 6 7 8 ; do
5071 teststring=$teststring$teststring
5072 done
5073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5074 # If test is not a shell built-in, we'll probably end up computing a
5075 # maximum length that is only half of the actual maximum length, but
5076 # we can't tell.
5077 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5078 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5079 test $i != 17 # 1/2 MB should be enough
5080 do
5081 i=`expr $i + 1`
5082 teststring=$teststring$teststring
5083 done
5084 # Only check the string length outside the loop.
5085 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5086 teststring=
5087 # Add a significant safety factor because C++ compilers can tack on
5088 # massive amounts of additional arguments before passing them to the
5089 # linker. It appears as though 1/2 is a usable value.
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5091 fi
5092 ;;
5093 esac
5094
5095fi
5096
5097if test -n $lt_cv_sys_max_cmd_len ; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5099$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5100else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5102$as_echo "none" >&6; }
5103fi
5104max_cmd_len=$lt_cv_sys_max_cmd_len
5105
5106
5107
5108
5109
5110
5111: ${CP="cp -f"}
5112: ${MV="mv -f"}
5113: ${RM="rm -f"}
5114
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5116$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5117# Try some XSI features
5118xsi_shell=no
5119( _lt_dummy="a/b/c"
5120 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5121 = c,a/b,b/c, \
5122 && eval 'test $(( 1 + 1 )) -eq 2 \
5123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5124 && xsi_shell=yes
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5126$as_echo "$xsi_shell" >&6; }
5127
5128
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5130$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5131lt_shell_append=no
5132( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5133 >/dev/null 2>&1 \
5134 && lt_shell_append=yes
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5136$as_echo "$lt_shell_append" >&6; }
5137
5138
5139if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5140 lt_unset=unset
5141else
5142 lt_unset=false
5143fi
5144
5145
5146
5147
5148
5149# test EBCDIC or ASCII
5150case `echo X|tr X '\101'` in
5151 A) # ASCII based system
5152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5153 lt_SP2NL='tr \040 \012'
5154 lt_NL2SP='tr \015\012 \040\040'
5155 ;;
5156 *) # EBCDIC based system
5157 lt_SP2NL='tr \100 \n'
5158 lt_NL2SP='tr \r\n \100\100'
5159 ;;
5160esac
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5171$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5172if ${lt_cv_to_host_file_cmd+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174else
5175 case $host in
5176 *-*-mingw* )
5177 case $build in
5178 *-*-mingw* ) # actually msys
5179 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5180 ;;
5181 *-*-cygwin* )
5182 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5183 ;;
5184 * ) # otherwise, assume *nix
5185 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5186 ;;
5187 esac
5188 ;;
5189 *-*-cygwin* )
5190 case $build in
5191 *-*-mingw* ) # actually msys
5192 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5193 ;;
5194 *-*-cygwin* )
5195 lt_cv_to_host_file_cmd=func_convert_file_noop
5196 ;;
5197 * ) # otherwise, assume *nix
5198 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5199 ;;
5200 esac
5201 ;;
5202 * ) # unhandled hosts (and "normal" native builds)
5203 lt_cv_to_host_file_cmd=func_convert_file_noop
5204 ;;
5205esac
5206
5207fi
5208
5209to_host_file_cmd=$lt_cv_to_host_file_cmd
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5211$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5212
5213
5214
5215
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5218$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5219if ${lt_cv_to_tool_file_cmd+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221else
5222 #assume ordinary cross tools, or native build.
5223lt_cv_to_tool_file_cmd=func_convert_file_noop
5224case $host in
5225 *-*-mingw* )
5226 case $build in
5227 *-*-mingw* ) # actually msys
5228 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5229 ;;
5230 esac
5231 ;;
5232esac
5233
5234fi
5235
5236to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5238$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5239
5240
5241
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5245$as_echo_n "checking for $LD option to reload object files... " >&6; }
5246if ${lt_cv_ld_reload_flag+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248else
5249 lt_cv_ld_reload_flag='-r'
5250fi
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5252$as_echo "$lt_cv_ld_reload_flag" >&6; }
5253reload_flag=$lt_cv_ld_reload_flag
5254case $reload_flag in
5255"" | " "*) ;;
5256*) reload_flag=" $reload_flag" ;;
5257esac
5258reload_cmds='$LD$reload_flag -o $output$reload_objs'
5259case $host_os in
5260 cygwin* | mingw* | pw32* | cegcc*)
5261 if test "$GCC" != yes; then
5262 reload_cmds=false
5263 fi
5264 ;;
5265 darwin*)
5266 if test "$GCC" = yes; then
5267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5268 else
5269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5270 fi
5271 ;;
5272esac
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282if test -n "$ac_tool_prefix"; then
5283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5284set dummy ${ac_tool_prefix}objdump; ac_word=$2
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
5287if ${ac_cv_prog_OBJDUMP+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289else
5290 if test -n "$OBJDUMP"; then
5291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5292else
5293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304done
5305 done
5306IFS=$as_save_IFS
5307
5308fi
5309fi
5310OBJDUMP=$ac_cv_prog_OBJDUMP
5311if test -n "$OBJDUMP"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5313$as_echo "$OBJDUMP" >&6; }
5314else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316$as_echo "no" >&6; }
5317fi
5318
5319
5320fi
5321if test -z "$ac_cv_prog_OBJDUMP"; then
5322 ac_ct_OBJDUMP=$OBJDUMP
5323 # Extract the first word of "objdump", so it can be a program name with args.
5324set dummy objdump; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
5327if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 if test -n "$ac_ct_OBJDUMP"; then
5331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5332else
5333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH
5335do
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5343 fi
5344done
5345 done
5346IFS=$as_save_IFS
5347
5348fi
5349fi
5350ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5351if test -n "$ac_ct_OBJDUMP"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5353$as_echo "$ac_ct_OBJDUMP" >&6; }
5354else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358
5359 if test "x$ac_ct_OBJDUMP" = x; then
5360 OBJDUMP="false"
5361 else
5362 case $cross_compiling:$ac_tool_warned in
5363yes:)
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5366ac_tool_warned=yes ;;
5367esac
5368 OBJDUMP=$ac_ct_OBJDUMP
5369 fi
5370else
5371 OBJDUMP="$ac_cv_prog_OBJDUMP"
5372fi
5373
5374test -z "$OBJDUMP" && OBJDUMP=objdump
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5385$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5386if ${lt_cv_deplibs_check_method+:} false; then :
5387 $as_echo_n "(cached) " >&6
5388else
5389 lt_cv_file_magic_cmd='$MAGIC_CMD'
5390lt_cv_file_magic_test_file=
5391lt_cv_deplibs_check_method='unknown'
5392# Need to set the preceding variable on all platforms that support
5393# interlibrary dependencies.
5394# 'none' -- dependencies not supported.
5395# `unknown' -- same as none, but documents that we really don't know.
5396# 'pass_all' -- all dependencies passed with no checks.
5397# 'test_compile' -- check by making test program.
5398# 'file_magic [[regex]]' -- check by looking for files in library path
5399# which responds to the $file_magic_cmd with a given extended regex.
5400# If you have `file' or equivalent on your system and you're not sure
5401# whether `pass_all' will *always* work, you probably want this one.
5402
5403case $host_os in
5404aix[4-9]*)
5405 lt_cv_deplibs_check_method=pass_all
5406 ;;
5407
5408beos*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412bsdi[45]*)
5413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5414 lt_cv_file_magic_cmd='/usr/bin/file -L'
5415 lt_cv_file_magic_test_file=/shlib/libc.so
5416 ;;
5417
5418cygwin*)
5419 # func_win32_libid is a shell function defined in ltmain.sh
5420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421 lt_cv_file_magic_cmd='func_win32_libid'
5422 ;;
5423
5424mingw* | pw32*)
5425 # Base MSYS/MinGW do not provide the 'file' command needed by
5426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5427 # unless we find 'file', for example because we are cross-compiling.
5428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5432 else
5433 # Keep this pattern in sync with the one in func_win32_libid.
5434 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5435 lt_cv_file_magic_cmd='$OBJDUMP -f'
5436 fi
5437 ;;
5438
5439cegcc*)
5440 # use the weaker test based on 'objdump'. See mingw*.
5441 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5443 ;;
5444
5445darwin* | rhapsody*)
5446 lt_cv_deplibs_check_method=pass_all
5447 ;;
5448
5449freebsd* | dragonfly*)
5450 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451 case $host_cpu in
5452 i*86 )
5453 # Not sure whether the presence of OpenBSD here was a mistake.
5454 # Let's accept both of them until this is cleared up.
5455 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456 lt_cv_file_magic_cmd=/usr/bin/file
5457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5458 ;;
5459 esac
5460 else
5461 lt_cv_deplibs_check_method=pass_all
5462 fi
5463 ;;
5464
5465gnu*)
5466 lt_cv_deplibs_check_method=pass_all
5467 ;;
5468
5469haiku*)
5470 lt_cv_deplibs_check_method=pass_all
5471 ;;
5472
5473hpux10.20* | hpux11*)
5474 lt_cv_file_magic_cmd=/usr/bin/file
5475 case $host_cpu in
5476 ia64*)
5477 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479 ;;
5480 hppa*64*)
5481 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]'
5482 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5483 ;;
5484 *)
5485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487 ;;
5488 esac
5489 ;;
5490
5491interix[3-9]*)
5492 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5494 ;;
5495
5496irix5* | irix6* | nonstopux*)
5497 case $LD in
5498 *-32|*"-32 ") libmagic=32-bit;;
5499 *-n32|*"-n32 ") libmagic=N32;;
5500 *-64|*"-64 ") libmagic=64-bit;;
5501 *) libmagic=never-match;;
5502 esac
5503 lt_cv_deplibs_check_method=pass_all
5504 ;;
5505
5506# This must be glibc/ELF.
5507linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510
5511netbsd*)
5512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514 else
5515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5516 fi
5517 ;;
5518
5519newos6*)
5520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521 lt_cv_file_magic_cmd=/usr/bin/file
5522 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5523 ;;
5524
5525*nto* | *qnx*)
5526 lt_cv_deplibs_check_method=pass_all
5527 ;;
5528
5529openbsd*)
5530 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5532 else
5533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534 fi
5535 ;;
5536
5537osf3* | osf4* | osf5*)
5538 lt_cv_deplibs_check_method=pass_all
5539 ;;
5540
5541rdos*)
5542 lt_cv_deplibs_check_method=pass_all
5543 ;;
5544
5545solaris*)
5546 lt_cv_deplibs_check_method=pass_all
5547 ;;
5548
5549sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550 lt_cv_deplibs_check_method=pass_all
5551 ;;
5552
5553sysv4 | sysv4.3*)
5554 case $host_vendor in
5555 motorola)
5556 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]'
5557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558 ;;
5559 ncr)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562 sequent)
5563 lt_cv_file_magic_cmd='/bin/file'
5564 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565 ;;
5566 sni)
5567 lt_cv_file_magic_cmd='/bin/file'
5568 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569 lt_cv_file_magic_test_file=/lib/libc.so
5570 ;;
5571 siemens)
5572 lt_cv_deplibs_check_method=pass_all
5573 ;;
5574 pc)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577 esac
5578 ;;
5579
5580tpf*)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583esac
5584
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587$as_echo "$lt_cv_deplibs_check_method" >&6; }
5588
5589file_magic_glob=
5590want_nocaseglob=no
5591if test "$build" = "$host"; then
5592 case $host_os in
5593 mingw* | pw32*)
5594 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5595 want_nocaseglob=yes
5596 else
5597 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5598 fi
5599 ;;
5600 esac
5601fi
5602
5603file_magic_cmd=$lt_cv_file_magic_cmd
5604deplibs_check_method=$lt_cv_deplibs_check_method
5605test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_DLLTOOL+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635else
5636 if test -n "$DLLTOOL"; then
5637 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651 done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656DLLTOOL=$ac_cv_prog_DLLTOOL
5657if test -n "$DLLTOOL"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5659$as_echo "$DLLTOOL" >&6; }
5660else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_DLLTOOL"; then
5668 ac_ct_DLLTOOL=$DLLTOOL
5669 # Extract the first word of "dlltool", so it can be a program name with args.
5670set dummy dlltool; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675else
5676 if test -n "$ac_ct_DLLTOOL"; then
5677 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5697if test -n "$ac_ct_DLLTOOL"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5699$as_echo "$ac_ct_DLLTOOL" >&6; }
5700else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705 if test "x$ac_ct_DLLTOOL" = x; then
5706 DLLTOOL="false"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709yes:)
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714 DLLTOOL=$ac_ct_DLLTOOL
5715 fi
5716else
5717 DLLTOOL="$ac_cv_prog_DLLTOOL"
5718fi
5719
5720test -z "$DLLTOOL" && DLLTOOL=dlltool
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5732$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5733if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735else
5736 lt_cv_sharedlib_from_linklib_cmd='unknown'
5737
5738case $host_os in
5739cygwin* | mingw* | pw32* | cegcc*)
5740 # two different shell functions defined in ltmain.sh
5741 # decide which to use based on capabilities of $DLLTOOL
5742 case `$DLLTOOL --help 2>&1` in
5743 *--identify-strict*)
5744 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5745 ;;
5746 *)
5747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5748 ;;
5749 esac
5750 ;;
5751*)
5752 # fallback: assume linklib IS sharedlib
5753 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5754 ;;
5755esac
5756
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5759$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5760sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5761test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5762
5763
5764
5765
5766
5767
5768
5769
5770if test -n "$ac_tool_prefix"; then
5771 for ac_prog in ar
5772 do
5773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5774set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776$as_echo_n "checking for $ac_word... " >&6; }
5777if ${ac_cv_prog_AR+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779else
5780 if test -n "$AR"; then
5781 ac_cv_prog_AR="$AR" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794done
5795 done
5796IFS=$as_save_IFS
5797
5798fi
5799fi
5800AR=$ac_cv_prog_AR
5801if test -n "$AR"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5803$as_echo "$AR" >&6; }
5804else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806$as_echo "no" >&6; }
5807fi
5808
5809
5810 test -n "$AR" && break
5811 done
5812fi
5813if test -z "$AR"; then
5814 ac_ct_AR=$AR
5815 for ac_prog in ar
5816do
5817 # Extract the first word of "$ac_prog", so it can be a program name with args.
5818set dummy $ac_prog; ac_word=$2
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820$as_echo_n "checking for $ac_word... " >&6; }
5821if ${ac_cv_prog_ac_ct_AR+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 if test -n "$ac_ct_AR"; then
5825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834 ac_cv_prog_ac_ct_AR="$ac_prog"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 break 2
5837 fi
5838done
5839 done
5840IFS=$as_save_IFS
5841
5842fi
5843fi
5844ac_ct_AR=$ac_cv_prog_ac_ct_AR
5845if test -n "$ac_ct_AR"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5847$as_echo "$ac_ct_AR" >&6; }
5848else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850$as_echo "no" >&6; }
5851fi
5852
5853
5854 test -n "$ac_ct_AR" && break
5855done
5856
5857 if test "x$ac_ct_AR" = x; then
5858 AR="false"
5859 else
5860 case $cross_compiling:$ac_tool_warned in
5861yes:)
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864ac_tool_warned=yes ;;
5865esac
5866 AR=$ac_ct_AR
5867 fi
5868fi
5869
5870: ${AR=ar}
5871: ${AR_FLAGS=cru}
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5884$as_echo_n "checking for archiver @FILE support... " >&6; }
5885if ${lt_cv_ar_at_file+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887else
5888 lt_cv_ar_at_file=no
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900if ac_fn_cxx_try_compile "$LINENO"; then :
5901 echo conftest.$ac_objext > conftest.lst
5902 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5904 (eval $lt_ar_try) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }
5908 if test "$ac_status" -eq 0; then
5909 # Ensure the archiver fails upon bogus file names.
5910 rm -f conftest.$ac_objext libconftest.a
5911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5912 (eval $lt_ar_try) 2>&5
5913 ac_status=$?
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }
5916 if test "$ac_status" -ne 0; then
5917 lt_cv_ar_at_file=@
5918 fi
5919 fi
5920 rm -f conftest.* libconftest.a
5921
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924
5925fi
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5927$as_echo "$lt_cv_ar_at_file" >&6; }
5928
5929if test "x$lt_cv_ar_at_file" = xno; then
5930 archiver_list_spec=
5931else
5932 archiver_list_spec=$lt_cv_ar_at_file
5933fi
5934
5935
5936
5937
5938
5939
5940
5941if test -n "$ac_tool_prefix"; then
5942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5943set dummy ${ac_tool_prefix}strip; ac_word=$2
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
5946if ${ac_cv_prog_STRIP+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948else
5949 if test -n "$STRIP"; then
5950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963done
5964 done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969STRIP=$ac_cv_prog_STRIP
5970if test -n "$STRIP"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5972$as_echo "$STRIP" >&6; }
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
5978
5979fi
5980if test -z "$ac_cv_prog_STRIP"; then
5981 ac_ct_STRIP=$STRIP
5982 # Extract the first word of "strip", so it can be a program name with args.
5983set dummy strip; ac_word=$2
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985$as_echo_n "checking for $ac_word... " >&6; }
5986if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5987 $as_echo_n "(cached) " >&6
5988else
5989 if test -n "$ac_ct_STRIP"; then
5990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_ac_ct_STRIP="strip"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003done
6004 done
6005IFS=$as_save_IFS
6006
6007fi
6008fi
6009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6010if test -n "$ac_ct_STRIP"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6012$as_echo "$ac_ct_STRIP" >&6; }
6013else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015$as_echo "no" >&6; }
6016fi
6017
6018 if test "x$ac_ct_STRIP" = x; then
6019 STRIP=":"
6020 else
6021 case $cross_compiling:$ac_tool_warned in
6022yes:)
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025ac_tool_warned=yes ;;
6026esac
6027 STRIP=$ac_ct_STRIP
6028 fi
6029else
6030 STRIP="$ac_cv_prog_STRIP"
6031fi
6032
6033test -z "$STRIP" && STRIP=:
6034
6035
6036
6037
6038
6039
6040if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_prog_RANLIB+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047else
6048 if test -n "$RANLIB"; then
6049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062done
6063 done
6064IFS=$as_save_IFS
6065
6066fi
6067fi
6068RANLIB=$ac_cv_prog_RANLIB
6069if test -n "$RANLIB"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6071$as_echo "$RANLIB" >&6; }
6072else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
6075fi
6076
6077
6078fi
6079if test -z "$ac_cv_prog_RANLIB"; then
6080 ac_ct_RANLIB=$RANLIB
6081 # Extract the first word of "ranlib", so it can be a program name with args.
6082set dummy ranlib; ac_word=$2
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6086 $as_echo_n "(cached) " >&6
6087else
6088 if test -n "$ac_ct_RANLIB"; then
6089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_ac_ct_RANLIB="ranlib"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102done
6103 done
6104IFS=$as_save_IFS
6105
6106fi
6107fi
6108ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109if test -n "$ac_ct_RANLIB"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6111$as_echo "$ac_ct_RANLIB" >&6; }
6112else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115fi
6116
6117 if test "x$ac_ct_RANLIB" = x; then
6118 RANLIB=":"
6119 else
6120 case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126 RANLIB=$ac_ct_RANLIB
6127 fi
6128else
6129 RANLIB="$ac_cv_prog_RANLIB"
6130fi
6131
6132test -z "$RANLIB" && RANLIB=:
6133
6134
6135
6136
6137
6138
6139# Determine commands to create old-style static archives.
6140old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6141old_postinstall_cmds='chmod 644 $oldlib'
6142old_postuninstall_cmds=
6143
6144if test -n "$RANLIB"; then
6145 case $host_os in
6146 openbsd*)
6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6148 ;;
6149 *)
6150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6151 ;;
6152 esac
6153 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6154fi
6155
6156case $host_os in
6157 darwin*)
6158 lock_old_archive_extraction=yes ;;
6159 *)
6160 lock_old_archive_extraction=no ;;
6161esac
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201# If no C compiler was specified, use CC.
6202LTCC=${LTCC-"$CC"}
6203
6204# If no C compiler flags were specified, use CFLAGS.
6205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6206
6207# Allow CC to be a program name with arguments.
6208compiler=$CC
6209
6210
6211# Check for command to grab the raw symbol name followed by C symbol from nm.
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6213$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6214if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216else
6217
6218# These are sane defaults that work on at least a few old systems.
6219# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6220
6221# Character class describing NM global symbol codes.
6222symcode='[BCDEGRST]'
6223
6224# Regexp to match symbols that can be accessed directly from C.
6225sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6226
6227# Define system-specific variables.
6228case $host_os in
6229aix*)
6230 symcode='[BCDT]'
6231 ;;
6232cygwin* | mingw* | pw32* | cegcc*)
6233 symcode='[ABCDGISTW]'
6234 ;;
6235hpux*)
6236 if test "$host_cpu" = ia64; then
6237 symcode='[ABCDEGRST]'
6238 fi
6239 ;;
6240irix* | nonstopux*)
6241 symcode='[BCDEGRST]'
6242 ;;
6243osf*)
6244 symcode='[BCDEGQRST]'
6245 ;;
6246solaris*)
6247 symcode='[BDRT]'
6248 ;;
6249sco3.2v5*)
6250 symcode='[DT]'
6251 ;;
6252sysv4.2uw2*)
6253 symcode='[DT]'
6254 ;;
6255sysv5* | sco5v6* | unixware* | OpenUNIX*)
6256 symcode='[ABDT]'
6257 ;;
6258sysv4)
6259 symcode='[DFNSTU]'
6260 ;;
6261esac
6262
6263# If we're using GNU nm, then use its standard symbol codes.
6264case `$NM -V 2>&1` in
6265*GNU* | *'with BFD'*)
6266 symcode='[ABCDGIRSTW]' ;;
6267esac
6268
6269# Transform an extracted symbol line into a proper C declaration.
6270# Some systems (esp. on ia64) link data and code symbols differently,
6271# so use this general approach.
6272lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6273
6274# Transform an extracted symbol line into symbol name and symbol address
6275lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6276lt_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'"
6277
6278# Handle CRLF in mingw tool chain
6279opt_cr=
6280case $build_os in
6281mingw*)
6282 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6283 ;;
6284esac
6285
6286# Try without a prefix underscore, then with it.
6287for ac_symprfx in "" "_"; do
6288
6289 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6290 symxfrm="\\1 $ac_symprfx\\2 \\2"
6291
6292 # Write the raw and C identifiers.
6293 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6294 # Fake it for dumpbin and say T for any non-static function
6295 # and D for any global variable.
6296 # Also find C++ and __fastcall symbols from MSVC++,
6297 # which start with @ or ?.
6298 lt_cv_sys_global_symbol_pipe="$AWK '"\
6299" {last_section=section; section=\$ 3};"\
6300" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6301" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6302" \$ 0!~/External *\|/{next};"\
6303" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6304" {if(hide[section]) next};"\
6305" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6306" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6307" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6308" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6309" ' prfx=^$ac_symprfx"
6310 else
6311 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6312 fi
6313 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6314
6315 # Check to see that the pipe works correctly.
6316 pipe_works=no
6317
6318 rm -f conftest*
6319 cat > conftest.$ac_ext <<_LT_EOF
6320#ifdef __cplusplus
6321extern "C" {
6322#endif
6323char nm_test_var;
6324void nm_test_func(void);
6325void nm_test_func(void){}
6326#ifdef __cplusplus
6327}
6328#endif
6329int main(){nm_test_var='a';nm_test_func();return(0);}
6330_LT_EOF
6331
6332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6333 (eval $ac_compile) 2>&5
6334 ac_status=$?
6335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336 test $ac_status = 0; }; then
6337 # Now try to grab the symbols.
6338 nlist=conftest.nm
6339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6340 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; } && test -s "$nlist"; then
6344 # Try sorting and uniquifying the output.
6345 if sort "$nlist" | uniq > "$nlist"T; then
6346 mv -f "$nlist"T "$nlist"
6347 else
6348 rm -f "$nlist"T
6349 fi
6350
6351 # Make sure that we snagged all the symbols we need.
6352 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6353 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6354 cat <<_LT_EOF > conftest.$ac_ext
6355/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6356#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6357/* DATA imports from DLLs on WIN32 con't be const, because runtime
6358 relocations are performed -- see ld's documentation on pseudo-relocs. */
6359# define LT_DLSYM_CONST
6360#elif defined(__osf__)
6361/* This system does not cope well with relocations in const data. */
6362# define LT_DLSYM_CONST
6363#else
6364# define LT_DLSYM_CONST const
6365#endif
6366
6367#ifdef __cplusplus
6368extern "C" {
6369#endif
6370
6371_LT_EOF
6372 # Now generate the symbol file.
6373 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6374
6375 cat <<_LT_EOF >> conftest.$ac_ext
6376
6377/* The mapping between symbol names and symbols. */
6378LT_DLSYM_CONST struct {
6379 const char *name;
6380 void *address;
6381}
6382lt__PROGRAM__LTX_preloaded_symbols[] =
6383{
6384 { "@PROGRAM@", (void *) 0 },
6385_LT_EOF
6386 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6387 cat <<\_LT_EOF >> conftest.$ac_ext
6388 {0, (void *) 0}
6389};
6390
6391/* This works around a problem in FreeBSD linker */
6392#ifdef FREEBSD_WORKAROUND
6393static const void *lt_preloaded_setup() {
6394 return lt__PROGRAM__LTX_preloaded_symbols;
6395}
6396#endif
6397
6398#ifdef __cplusplus
6399}
6400#endif
6401_LT_EOF
6402 # Now try linking the two files.
6403 mv conftest.$ac_objext conftstm.$ac_objext
6404 lt_globsym_save_LIBS=$LIBS
6405 lt_globsym_save_CFLAGS=$CFLAGS
6406 LIBS="conftstm.$ac_objext"
6407 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6409 (eval $ac_link) 2>&5
6410 ac_status=$?
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6413 pipe_works=yes
6414 fi
6415 LIBS=$lt_globsym_save_LIBS
6416 CFLAGS=$lt_globsym_save_CFLAGS
6417 else
6418 echo "cannot find nm_test_func in $nlist" >&5
6419 fi
6420 else
6421 echo "cannot find nm_test_var in $nlist" >&5
6422 fi
6423 else
6424 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6425 fi
6426 else
6427 echo "$progname: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6429 fi
6430 rm -rf conftest* conftst*
6431
6432 # Do not use the global_symbol_pipe unless it works.
6433 if test "$pipe_works" = yes; then
6434 break
6435 else
6436 lt_cv_sys_global_symbol_pipe=
6437 fi
6438done
6439
6440fi
6441
6442if test -z "$lt_cv_sys_global_symbol_pipe"; then
6443 lt_cv_sys_global_symbol_to_cdecl=
6444fi
6445if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6447$as_echo "failed" >&6; }
6448else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6450$as_echo "ok" >&6; }
6451fi
6452
6453# Response file support.
6454if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6455 nm_file_list_spec='@'
6456elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6457 nm_file_list_spec='@'
6458fi
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6487$as_echo_n "checking for sysroot... " >&6; }
6488
6489# Check whether --with-sysroot was given.
6490if test "${with_sysroot+set}" = set; then :
6491 withval=$with_sysroot;
6492else
6493 with_sysroot=no
6494fi
6495
6496
6497lt_sysroot=
6498case ${with_sysroot} in #(
6499 yes)
6500 if test "$GCC" = yes; then
6501 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6502 fi
6503 ;; #(
6504 /*)
6505 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6506 ;; #(
6507 no|'')
6508 ;; #(
6509 *)
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6511$as_echo "${with_sysroot}" >&6; }
6512 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6513 ;;
6514esac
6515
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6517$as_echo "${lt_sysroot:-no}" >&6; }
6518
6519
6520
6521
6522
6523
6524# Check whether --enable-libtool-lock was given.
6525if test "${enable_libtool_lock+set}" = set; then :
6526 enableval=$enable_libtool_lock;
6527fi
6528
6529test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6530
6531# Some flags need to be propagated to the compiler or linker for good
6532# libtool support.
6533case $host in
6534ia64-*-hpux*)
6535 # Find out which ABI we are using.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538 (eval $ac_compile) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 case `/usr/bin/file conftest.$ac_objext` in
6543 *ELF-32*)
6544 HPUX_IA64_MODE="32"
6545 ;;
6546 *ELF-64*)
6547 HPUX_IA64_MODE="64"
6548 ;;
6549 esac
6550 fi
6551 rm -rf conftest*
6552 ;;
6553*-*-irix6*)
6554 # Find out which ABI we are using.
6555 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6557 (eval $ac_compile) 2>&5
6558 ac_status=$?
6559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6560 test $ac_status = 0; }; then
6561 if test "$lt_cv_prog_gnu_ld" = yes; then
6562 case `/usr/bin/file conftest.$ac_objext` in
6563 *32-bit*)
6564 LD="${LD-ld} -melf32bsmip"
6565 ;;
6566 *N32*)
6567 LD="${LD-ld} -melf32bmipn32"
6568 ;;
6569 *64-bit*)
6570 LD="${LD-ld} -melf64bmip"
6571 ;;
6572 esac
6573 else
6574 case `/usr/bin/file conftest.$ac_objext` in
6575 *32-bit*)
6576 LD="${LD-ld} -32"
6577 ;;
6578 *N32*)
6579 LD="${LD-ld} -n32"
6580 ;;
6581 *64-bit*)
6582 LD="${LD-ld} -64"
6583 ;;
6584 esac
6585 fi
6586 fi
6587 rm -rf conftest*
6588 ;;
6589
6590x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6591s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6592 # Find out which ABI we are using.
6593 echo 'int i;' > conftest.$ac_ext
6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6595 (eval $ac_compile) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; }; then
6599 case `/usr/bin/file conftest.o` in
6600 *32-bit*)
6601 case $host in
6602 x86_64-*kfreebsd*-gnu)
6603 LD="${LD-ld} -m elf_i386_fbsd"
6604 ;;
6605 x86_64-*linux*)
6606 LD="${LD-ld} -m elf_i386"
6607 ;;
6608 ppc64-*linux*|powerpc64-*linux*)
6609 LD="${LD-ld} -m elf32ppclinux"
6610 ;;
6611 s390x-*linux*)
6612 LD="${LD-ld} -m elf_s390"
6613 ;;
6614 sparc64-*linux*)
6615 LD="${LD-ld} -m elf32_sparc"
6616 ;;
6617 esac
6618 ;;
6619 *64-bit*)
6620 case $host in
6621 x86_64-*kfreebsd*-gnu)
6622 LD="${LD-ld} -m elf_x86_64_fbsd"
6623 ;;
6624 x86_64-*linux*)
6625 LD="${LD-ld} -m elf_x86_64"
6626 ;;
6627 ppc*-*linux*|powerpc*-*linux*)
6628 LD="${LD-ld} -m elf64ppc"
6629 ;;
6630 s390*-*linux*|s390*-*tpf*)
6631 LD="${LD-ld} -m elf64_s390"
6632 ;;
6633 sparc*-*linux*)
6634 LD="${LD-ld} -m elf64_sparc"
6635 ;;
6636 esac
6637 ;;
6638 esac
6639 fi
6640 rm -rf conftest*
6641 ;;
6642
6643*-*-sco3.2v5*)
6644 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6645 SAVE_CFLAGS="$CFLAGS"
6646 CFLAGS="$CFLAGS -belf"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6648$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6649if ${lt_cv_cc_needs_belf+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651else
6652 ac_ext=c
6653ac_cpp='$CPP $CPPFLAGS'
6654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h. */
6660
6661int
6662main ()
6663{
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669if ac_fn_c_try_link "$LINENO"; then :
6670 lt_cv_cc_needs_belf=yes
6671else
6672 lt_cv_cc_needs_belf=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6676 ac_ext=c
6677ac_cpp='$CPP $CPPFLAGS'
6678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6684$as_echo "$lt_cv_cc_needs_belf" >&6; }
6685 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6687 CFLAGS="$SAVE_CFLAGS"
6688 fi
6689 ;;
6690*-*solaris*)
6691 # Find out which ABI we are using.
6692 echo 'int i;' > conftest.$ac_ext
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694 (eval $ac_compile) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
6698 case `/usr/bin/file conftest.o` in
6699 *64-bit*)
6700 case $lt_cv_prog_gnu_ld in
6701 yes*)
6702 case $host in
6703 i?86-*-solaris*)
6704 LD="${LD-ld} -m elf_x86_64"
6705 ;;
6706 sparc*-*-solaris*)
6707 LD="${LD-ld} -m elf64_sparc"
6708 ;;
6709 esac
6710 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6711 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6712 LD="${LD-ld}_sol2"
6713 fi
6714 ;;
6715 *)
6716 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6717 LD="${LD-ld} -64"
6718 fi
6719 ;;
6720 esac
6721 ;;
6722 esac
6723 fi
6724 rm -rf conftest*
6725 ;;
6726esac
6727
6728need_locks="$enable_libtool_lock"
6729
6730if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6732set dummy ${ac_tool_prefix}mt; ac_word=$2
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734$as_echo_n "checking for $ac_word... " >&6; }
6735if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737else
6738 if test -n "$MANIFEST_TOOL"; then
6739 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752done
6753 done
6754IFS=$as_save_IFS
6755
6756fi
6757fi
6758MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6759if test -n "$MANIFEST_TOOL"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6761$as_echo "$MANIFEST_TOOL" >&6; }
6762else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764$as_echo "no" >&6; }
6765fi
6766
6767
6768fi
6769if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6770 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6771 # Extract the first word of "mt", so it can be a program name with args.
6772set dummy mt; ac_word=$2
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774$as_echo_n "checking for $ac_word... " >&6; }
6775if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777else
6778 if test -n "$ac_ct_MANIFEST_TOOL"; then
6779 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6780else
6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782for as_dir in $PATH
6783do
6784 IFS=$as_save_IFS
6785 test -z "$as_dir" && as_dir=.
6786 for ac_exec_ext in '' $ac_executable_extensions; do
6787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 break 2
6791 fi
6792done
6793 done
6794IFS=$as_save_IFS
6795
6796fi
6797fi
6798ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6799if test -n "$ac_ct_MANIFEST_TOOL"; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6801$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6802else
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6804$as_echo "no" >&6; }
6805fi
6806
6807 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6808 MANIFEST_TOOL=":"
6809 else
6810 case $cross_compiling:$ac_tool_warned in
6811yes:)
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6814ac_tool_warned=yes ;;
6815esac
6816 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6817 fi
6818else
6819 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6820fi
6821
6822test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6824$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6825if ${lt_cv_path_mainfest_tool+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827else
6828 lt_cv_path_mainfest_tool=no
6829 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6830 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6831 cat conftest.err >&5
6832 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6833 lt_cv_path_mainfest_tool=yes
6834 fi
6835 rm -f conftest*
6836fi
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6838$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6839if test "x$lt_cv_path_mainfest_tool" != xyes; then
6840 MANIFEST_TOOL=:
6841fi
6842
6843
6844
6845
6846
6847
6848 case $host_os in
6849 rhapsody* | darwin*)
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6852set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if ${ac_cv_prog_DSYMUTIL+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$DSYMUTIL"; then
6859 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878DSYMUTIL=$ac_cv_prog_DSYMUTIL
6879if test -n "$DSYMUTIL"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6881$as_echo "$DSYMUTIL" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887
6888fi
6889if test -z "$ac_cv_prog_DSYMUTIL"; then
6890 ac_ct_DSYMUTIL=$DSYMUTIL
6891 # Extract the first word of "dsymutil", so it can be a program name with args.
6892set dummy dsymutil; ac_word=$2
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
6895if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897else
6898 if test -n "$ac_ct_DSYMUTIL"; then
6899 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913 done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6919if test -n "$ac_ct_DSYMUTIL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6921$as_echo "$ac_ct_DSYMUTIL" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927 if test "x$ac_ct_DSYMUTIL" = x; then
6928 DSYMUTIL=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934ac_tool_warned=yes ;;
6935esac
6936 DSYMUTIL=$ac_ct_DSYMUTIL
6937 fi
6938else
6939 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6940fi
6941
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6944set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946$as_echo_n "checking for $ac_word... " >&6; }
6947if ${ac_cv_prog_NMEDIT+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949else
6950 if test -n "$NMEDIT"; then
6951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964done
6965 done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970NMEDIT=$ac_cv_prog_NMEDIT
6971if test -n "$NMEDIT"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6973$as_echo "$NMEDIT" >&6; }
6974else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976$as_echo "no" >&6; }
6977fi
6978
6979
6980fi
6981if test -z "$ac_cv_prog_NMEDIT"; then
6982 ac_ct_NMEDIT=$NMEDIT
6983 # Extract the first word of "nmedit", so it can be a program name with args.
6984set dummy nmedit; ac_word=$2
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986$as_echo_n "checking for $ac_word... " >&6; }
6987if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989else
6990 if test -n "$ac_ct_NMEDIT"; then
6991 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005 done
7006IFS=$as_save_IFS
7007
7008fi
7009fi
7010ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7011if test -n "$ac_ct_NMEDIT"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7013$as_echo "$ac_ct_NMEDIT" >&6; }
7014else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016$as_echo "no" >&6; }
7017fi
7018
7019 if test "x$ac_ct_NMEDIT" = x; then
7020 NMEDIT=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023yes:)
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026ac_tool_warned=yes ;;
7027esac
7028 NMEDIT=$ac_ct_NMEDIT
7029 fi
7030else
7031 NMEDIT="$ac_cv_prog_NMEDIT"
7032fi
7033
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7036set dummy ${ac_tool_prefix}lipo; ac_word=$2
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038$as_echo_n "checking for $ac_word... " >&6; }
7039if ${ac_cv_prog_LIPO+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041else
7042 if test -n "$LIPO"; then
7043 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7044else
7045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057 done
7058IFS=$as_save_IFS
7059
7060fi
7061fi
7062LIPO=$ac_cv_prog_LIPO
7063if test -n "$LIPO"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7065$as_echo "$LIPO" >&6; }
7066else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068$as_echo "no" >&6; }
7069fi
7070
7071
7072fi
7073if test -z "$ac_cv_prog_LIPO"; then
7074 ac_ct_LIPO=$LIPO
7075 # Extract the first word of "lipo", so it can be a program name with args.
7076set dummy lipo; ac_word=$2
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078$as_echo_n "checking for $ac_word... " >&6; }
7079if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081else
7082 if test -n "$ac_ct_LIPO"; then
7083 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7084else
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_ac_ct_LIPO="lipo"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097 done
7098IFS=$as_save_IFS
7099
7100fi
7101fi
7102ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7103if test -n "$ac_ct_LIPO"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7105$as_echo "$ac_ct_LIPO" >&6; }
7106else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108$as_echo "no" >&6; }
7109fi
7110
7111 if test "x$ac_ct_LIPO" = x; then
7112 LIPO=":"
7113 else
7114 case $cross_compiling:$ac_tool_warned in
7115yes:)
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118ac_tool_warned=yes ;;
7119esac
7120 LIPO=$ac_ct_LIPO
7121 fi
7122else
7123 LIPO="$ac_cv_prog_LIPO"
7124fi
7125
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7128set dummy ${ac_tool_prefix}otool; ac_word=$2
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130$as_echo_n "checking for $ac_word... " >&6; }
7131if ${ac_cv_prog_OTOOL+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133else
7134 if test -n "$OTOOL"; then
7135 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149 done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154OTOOL=$ac_cv_prog_OTOOL
7155if test -n "$OTOOL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7157$as_echo "$OTOOL" >&6; }
7158else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161fi
7162
7163
7164fi
7165if test -z "$ac_cv_prog_OTOOL"; then
7166 ac_ct_OTOOL=$OTOOL
7167 # Extract the first word of "otool", so it can be a program name with args.
7168set dummy otool; ac_word=$2
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173else
7174 if test -n "$ac_ct_OTOOL"; then
7175 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_ac_ct_OTOOL="otool"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189 done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7195if test -n "$ac_ct_OTOOL"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7197$as_echo "$ac_ct_OTOOL" >&6; }
7198else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203 if test "x$ac_ct_OTOOL" = x; then
7204 OTOOL=":"
7205 else
7206 case $cross_compiling:$ac_tool_warned in
7207yes:)
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210ac_tool_warned=yes ;;
7211esac
7212 OTOOL=$ac_ct_OTOOL
7213 fi
7214else
7215 OTOOL="$ac_cv_prog_OTOOL"
7216fi
7217
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7220set dummy ${ac_tool_prefix}otool64; ac_word=$2
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222$as_echo_n "checking for $ac_word... " >&6; }
7223if ${ac_cv_prog_OTOOL64+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225else
7226 if test -n "$OTOOL64"; then
7227 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240done
7241 done
7242IFS=$as_save_IFS
7243
7244fi
7245fi
7246OTOOL64=$ac_cv_prog_OTOOL64
7247if test -n "$OTOOL64"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7249$as_echo "$OTOOL64" >&6; }
7250else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252$as_echo "no" >&6; }
7253fi
7254
7255
7256fi
7257if test -z "$ac_cv_prog_OTOOL64"; then
7258 ac_ct_OTOOL64=$OTOOL64
7259 # Extract the first word of "otool64", so it can be a program name with args.
7260set dummy otool64; ac_word=$2
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 if test -n "$ac_ct_OTOOL64"; then
7267 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_ac_ct_OTOOL64="otool64"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280done
7281 done
7282IFS=$as_save_IFS
7283
7284fi
7285fi
7286ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7287if test -n "$ac_ct_OTOOL64"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7289$as_echo "$ac_ct_OTOOL64" >&6; }
7290else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
7293fi
7294
7295 if test "x$ac_ct_OTOOL64" = x; then
7296 OTOOL64=":"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299yes:)
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302ac_tool_warned=yes ;;
7303esac
7304 OTOOL64=$ac_ct_OTOOL64
7305 fi
7306else
7307 OTOOL64="$ac_cv_prog_OTOOL64"
7308fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7337$as_echo_n "checking for -single_module linker flag... " >&6; }
7338if ${lt_cv_apple_cc_single_mod+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 lt_cv_apple_cc_single_mod=no
7342 if test -z "${LT_MULTI_MODULE}"; then
7343 # By default we will add the -single_module flag. You can override
7344 # by either setting the environment variable LT_MULTI_MODULE
7345 # non-empty at configure time, or by adding -multi_module to the
7346 # link flags.
7347 rm -rf libconftest.dylib*
7348 echo "int foo(void){return 1;}" > conftest.c
7349 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7350-dynamiclib -Wl,-single_module conftest.c" >&5
7351 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7352 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7353 _lt_result=$?
7354 # If there is a non-empty error log, and "single_module"
7355 # appears in it, assume the flag caused a linker warning
7356 if test -s conftest.err && $GREP single_module conftest.err; then
7357 cat conftest.err >&5
7358 # Otherwise, if the output was created with a 0 exit code from
7359 # the compiler, it worked.
7360 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7361 lt_cv_apple_cc_single_mod=yes
7362 else
7363 cat conftest.err >&5
7364 fi
7365 rm -rf libconftest.dylib*
7366 rm -f conftest.*
7367 fi
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7370$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7373$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7374if ${lt_cv_ld_exported_symbols_list+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376else
7377 lt_cv_ld_exported_symbols_list=no
7378 save_LDFLAGS=$LDFLAGS
7379 echo "_main" > conftest.sym
7380 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h. */
7383
7384int
7385main ()
7386{
7387
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392if ac_fn_c_try_link "$LINENO"; then :
7393 lt_cv_ld_exported_symbols_list=yes
7394else
7395 lt_cv_ld_exported_symbols_list=no
7396fi
7397rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7399 LDFLAGS="$save_LDFLAGS"
7400
7401fi
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7403$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7406$as_echo_n "checking for -force_load linker flag... " >&6; }
7407if ${lt_cv_ld_force_load+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409else
7410 lt_cv_ld_force_load=no
7411 cat > conftest.c << _LT_EOF
7412int forced_loaded() { return 2;}
7413_LT_EOF
7414 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7415 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7416 echo "$AR cru libconftest.a conftest.o" >&5
7417 $AR cru libconftest.a conftest.o 2>&5
7418 echo "$RANLIB libconftest.a" >&5
7419 $RANLIB libconftest.a 2>&5
7420 cat > conftest.c << _LT_EOF
7421int main() { return 0;}
7422_LT_EOF
7423 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7424 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7425 _lt_result=$?
7426 if test -s conftest.err && $GREP force_load conftest.err; then
7427 cat conftest.err >&5
7428 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7429 lt_cv_ld_force_load=yes
7430 else
7431 cat conftest.err >&5
7432 fi
7433 rm -f conftest.err libconftest.a conftest conftest.c
7434 rm -rf conftest.dSYM
7435
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7438$as_echo "$lt_cv_ld_force_load" >&6; }
7439 case $host_os in
7440 rhapsody* | darwin1.[012])
7441 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7442 darwin1.*)
7443 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7444 darwin*) # darwin 5.x on
7445 # if running on 10.5 or later, the deployment target defaults
7446 # to the OS version, if on x86, and 10.4, the deployment
7447 # target defaults to 10.4. Don't you love it?
7448 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7449 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7450 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7451 10.[012]*)
7452 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7453 10.*)
7454 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7455 esac
7456 ;;
7457 esac
7458 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7459 _lt_dar_single_mod='$single_module'
7460 fi
7461 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7462 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7463 else
7464 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7465 fi
7466 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7467 _lt_dsymutil='~$DSYMUTIL $lib || :'
7468 else
7469 _lt_dsymutil=
7470 fi
7471 ;;
7472 esac
7473
7474ac_ext=c
7475ac_cpp='$CPP $CPPFLAGS'
7476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478ac_compiler_gnu=$ac_cv_c_compiler_gnu
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7480$as_echo_n "checking how to run the C preprocessor... " >&6; }
7481# On Suns, sometimes $CPP names a directory.
7482if test -n "$CPP" && test -d "$CPP"; then
7483 CPP=
7484fi
7485if test -z "$CPP"; then
7486 if ${ac_cv_prog_CPP+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488else
7489 # Double quotes because CPP needs to be expanded
7490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7491 do
7492 ac_preproc_ok=false
7493for ac_c_preproc_warn_flag in '' yes
7494do
7495 # Use a header file that comes with gcc, so configuring glibc
7496 # with a fresh cross-compiler works.
7497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7498 # <limits.h> exists even on freestanding compilers.
7499 # On the NeXT, cc -E runs the code through the compiler's parser,
7500 # not just through cpp. "Syntax error" is here to catch this case.
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503#ifdef __STDC__
7504# include <limits.h>
7505#else
7506# include <assert.h>
7507#endif
7508 Syntax error
7509_ACEOF
7510if ac_fn_c_try_cpp "$LINENO"; then :
7511
7512else
7513 # Broken: fails on valid input.
7514continue
7515fi
7516rm -f conftest.err conftest.i conftest.$ac_ext
7517
7518 # OK, works on sane cases. Now check whether nonexistent headers
7519 # can be detected and how.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h. */
7522#include <ac_nonexistent.h>
7523_ACEOF
7524if ac_fn_c_try_cpp "$LINENO"; then :
7525 # Broken: success on invalid input.
7526continue
7527else
7528 # Passes both tests.
7529ac_preproc_ok=:
7530break
7531fi
7532rm -f conftest.err conftest.i conftest.$ac_ext
7533
7534done
7535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7536rm -f conftest.i conftest.err conftest.$ac_ext
7537if $ac_preproc_ok; then :
7538 break
7539fi
7540
7541 done
7542 ac_cv_prog_CPP=$CPP
7543
7544fi
7545 CPP=$ac_cv_prog_CPP
7546else
7547 ac_cv_prog_CPP=$CPP
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7550$as_echo "$CPP" >&6; }
7551ac_preproc_ok=false
7552for ac_c_preproc_warn_flag in '' yes
7553do
7554 # Use a header file that comes with gcc, so configuring glibc
7555 # with a fresh cross-compiler works.
7556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7557 # <limits.h> exists even on freestanding compilers.
7558 # On the NeXT, cc -E runs the code through the compiler's parser,
7559 # not just through cpp. "Syntax error" is here to catch this case.
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h. */
7562#ifdef __STDC__
7563# include <limits.h>
7564#else
7565# include <assert.h>
7566#endif
7567 Syntax error
7568_ACEOF
7569if ac_fn_c_try_cpp "$LINENO"; then :
7570
7571else
7572 # Broken: fails on valid input.
7573continue
7574fi
7575rm -f conftest.err conftest.i conftest.$ac_ext
7576
7577 # OK, works on sane cases. Now check whether nonexistent headers
7578 # can be detected and how.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h. */
7581#include <ac_nonexistent.h>
7582_ACEOF
7583if ac_fn_c_try_cpp "$LINENO"; then :
7584 # Broken: success on invalid input.
7585continue
7586else
7587 # Passes both tests.
7588ac_preproc_ok=:
7589break
7590fi
7591rm -f conftest.err conftest.i conftest.$ac_ext
7592
7593done
7594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7595rm -f conftest.i conftest.err conftest.$ac_ext
7596if $ac_preproc_ok; then :
7597
7598else
7599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7601as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7602See \`config.log' for more details" "$LINENO" 5; }
7603fi
7604
7605ac_ext=c
7606ac_cpp='$CPP $CPPFLAGS'
7607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609ac_compiler_gnu=$ac_cv_c_compiler_gnu
7610
7611
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7613$as_echo_n "checking for ANSI C header files... " >&6; }
7614if ${ac_cv_header_stdc+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616else
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h. */
7619#include <stdlib.h>
7620#include <stdarg.h>
7621#include <string.h>
7622#include <float.h>
7623
7624int
7625main ()
7626{
7627
7628 ;
7629 return 0;
7630}
7631_ACEOF
7632if ac_fn_c_try_compile "$LINENO"; then :
7633 ac_cv_header_stdc=yes
7634else
7635 ac_cv_header_stdc=no
7636fi
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638
7639if test $ac_cv_header_stdc = yes; then
7640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h. */
7643#include <string.h>
7644
7645_ACEOF
7646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 $EGREP "memchr" >/dev/null 2>&1; then :
7648
7649else
7650 ac_cv_header_stdc=no
7651fi
7652rm -f conftest*
7653
7654fi
7655
7656if test $ac_cv_header_stdc = yes; then
7657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659/* end confdefs.h. */
7660#include <stdlib.h>
7661
7662_ACEOF
7663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7664 $EGREP "free" >/dev/null 2>&1; then :
7665
7666else
7667 ac_cv_header_stdc=no
7668fi
7669rm -f conftest*
7670
7671fi
7672
7673if test $ac_cv_header_stdc = yes; then
7674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7675 if test "$cross_compiling" = yes; then :
7676 :
7677else
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h. */
7680#include <ctype.h>
7681#include <stdlib.h>
7682#if ((' ' & 0x0FF) == 0x020)
7683# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7684# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7685#else
7686# define ISLOWER(c) \
7687 (('a' <= (c) && (c) <= 'i') \
7688 || ('j' <= (c) && (c) <= 'r') \
7689 || ('s' <= (c) && (c) <= 'z'))
7690# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7691#endif
7692
7693#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7694int
7695main ()
7696{
7697 int i;
7698 for (i = 0; i < 256; i++)
7699 if (XOR (islower (i), ISLOWER (i))
7700 || toupper (i) != TOUPPER (i))
7701 return 2;
7702 return 0;
7703}
7704_ACEOF
7705if ac_fn_c_try_run "$LINENO"; then :
7706
7707else
7708 ac_cv_header_stdc=no
7709fi
7710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7711 conftest.$ac_objext conftest.beam conftest.$ac_ext
7712fi
7713
7714fi
7715fi
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7717$as_echo "$ac_cv_header_stdc" >&6; }
7718if test $ac_cv_header_stdc = yes; then
7719
7720$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7721
7722fi
7723
7724# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7725for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7726 inttypes.h stdint.h unistd.h
7727do :
7728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7729ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7730"
7731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7732 cat >>confdefs.h <<_ACEOF
7733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7734_ACEOF
7735
7736fi
7737
7738done
7739
7740
7741for ac_header in dlfcn.h
7742do :
7743 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7744"
7745if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7746 cat >>confdefs.h <<_ACEOF
7747#define HAVE_DLFCN_H 1
7748_ACEOF
7749
7750fi
7751
7752done
7753
7754
7755
7756func_stripname_cnf ()
7757{
7758 case ${2} in
7759 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7760 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7761 esac
7762} # func_stripname_cnf
7763
7764
7765
7766
7767
7768# Set options
7769# Check whether --enable-shared was given.
7770if test "${enable_shared+set}" = set; then :
7771 enableval=$enable_shared; p=${PACKAGE-default}
7772 case $enableval in
7773 yes) enable_shared=yes ;;
7774 no) enable_shared=no ;;
7775 *)
7776 enable_shared=no
7777 # Look at the argument we got. We use all the common list separators.
7778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7779 for pkg in $enableval; do
7780 IFS="$lt_save_ifs"
7781 if test "X$pkg" = "X$p"; then
7782 enable_shared=yes
7783 fi
7784 done
7785 IFS="$lt_save_ifs"
7786 ;;
7787 esac
7788else
7789 enable_shared=no
7790fi
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 enable_dlopen=no
7802
7803
7804 enable_win32_dll=no
7805
7806
7807
7808 # Check whether --enable-static was given.
7809if test "${enable_static+set}" = set; then :
7810 enableval=$enable_static; p=${PACKAGE-default}
7811 case $enableval in
7812 yes) enable_static=yes ;;
7813 no) enable_static=no ;;
7814 *)
7815 enable_static=no
7816 # Look at the argument we got. We use all the common list separators.
7817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7818 for pkg in $enableval; do
7819 IFS="$lt_save_ifs"
7820 if test "X$pkg" = "X$p"; then
7821 enable_static=yes
7822 fi
7823 done
7824 IFS="$lt_save_ifs"
7825 ;;
7826 esac
7827else
7828 enable_static=yes
7829fi
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840# Check whether --with-pic was given.
7841if test "${with_pic+set}" = set; then :
7842 withval=$with_pic; lt_p=${PACKAGE-default}
7843 case $withval in
7844 yes|no) pic_mode=$withval ;;
7845 *)
7846 pic_mode=default
7847 # Look at the argument we got. We use all the common list separators.
7848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7849 for lt_pkg in $withval; do
7850 IFS="$lt_save_ifs"
7851 if test "X$lt_pkg" = "X$lt_p"; then
7852 pic_mode=yes
7853 fi
7854 done
7855 IFS="$lt_save_ifs"
7856 ;;
7857 esac
7858else
7859 pic_mode=default
7860fi
7861
7862
7863test -z "$pic_mode" && pic_mode=default
7864
7865
7866
7867
7868
7869
7870
7871 # Check whether --enable-fast-install was given.
7872if test "${enable_fast_install+set}" = set; then :
7873 enableval=$enable_fast_install; p=${PACKAGE-default}
7874 case $enableval in
7875 yes) enable_fast_install=yes ;;
7876 no) enable_fast_install=no ;;
7877 *)
7878 enable_fast_install=no
7879 # Look at the argument we got. We use all the common list separators.
7880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7881 for pkg in $enableval; do
7882 IFS="$lt_save_ifs"
7883 if test "X$pkg" = "X$p"; then
7884 enable_fast_install=yes
7885 fi
7886 done
7887 IFS="$lt_save_ifs"
7888 ;;
7889 esac
7890else
7891 enable_fast_install=yes
7892fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904# This can be used to rebuild libtool when needed
7905LIBTOOL_DEPS="$ltmain"
7906
7907# Always use our own libtool.
7908LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939test -z "$LN_S" && LN_S="ln -s"
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954if test -n "${ZSH_VERSION+set}" ; then
7955 setopt NO_GLOB_SUBST
7956fi
7957
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7959$as_echo_n "checking for objdir... " >&6; }
7960if ${lt_cv_objdir+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962else
7963 rm -f .libs 2>/dev/null
7964mkdir .libs 2>/dev/null
7965if test -d .libs; then
7966 lt_cv_objdir=.libs
7967else
7968 # MS-DOS does not allow filenames that begin with a dot.
7969 lt_cv_objdir=_libs
7970fi
7971rmdir .libs 2>/dev/null
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7974$as_echo "$lt_cv_objdir" >&6; }
7975objdir=$lt_cv_objdir
7976
7977
7978
7979
7980
7981cat >>confdefs.h <<_ACEOF
7982#define LT_OBJDIR "$lt_cv_objdir/"
7983_ACEOF
7984
7985
7986
7987
7988case $host_os in
7989aix3*)
7990 # AIX sometimes has problems with the GCC collect2 program. For some
7991 # reason, if we set the COLLECT_NAMES environment variable, the problems
7992 # vanish in a puff of smoke.
7993 if test "X${COLLECT_NAMES+set}" != Xset; then
7994 COLLECT_NAMES=
7995 export COLLECT_NAMES
7996 fi
7997 ;;
7998esac
7999
8000# Global variables:
8001ofile=libtool
8002can_build_shared=yes
8003
8004# All known linkers require a `.a' archive for static linking (except MSVC,
8005# which needs '.lib').
8006libext=a
8007
8008with_gnu_ld="$lt_cv_prog_gnu_ld"
8009
8010old_CC="$CC"
8011old_CFLAGS="$CFLAGS"
8012
8013# Set sane defaults for various variables
8014test -z "$CC" && CC=cc
8015test -z "$LTCC" && LTCC=$CC
8016test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8017test -z "$LD" && LD=ld
8018test -z "$ac_objext" && ac_objext=o
8019
8020for cc_temp in $compiler""; do
8021 case $cc_temp in
8022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8024 \-*) ;;
8025 *) break;;
8026 esac
8027done
8028cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8029
8030
8031# Only perform the check for file, if the check method requires it
8032test -z "$MAGIC_CMD" && MAGIC_CMD=file
8033case $deplibs_check_method in
8034file_magic*)
8035 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8037$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8038if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040else
8041 case $MAGIC_CMD in
8042[\\/*] | ?:[\\/]*)
8043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8044 ;;
8045*)
8046 lt_save_MAGIC_CMD="$MAGIC_CMD"
8047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049 for ac_dir in $ac_dummy; do
8050 IFS="$lt_save_ifs"
8051 test -z "$ac_dir" && ac_dir=.
8052 if test -f $ac_dir/${ac_tool_prefix}file; then
8053 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8054 if test -n "$file_magic_test_file"; then
8055 case $deplibs_check_method in
8056 "file_magic "*)
8057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060 $EGREP "$file_magic_regex" > /dev/null; then
8061 :
8062 else
8063 cat <<_LT_EOF 1>&2
8064
8065*** Warning: the command libtool uses to detect shared libraries,
8066*** $file_magic_cmd, produces output that libtool cannot recognize.
8067*** The result is that libtool may fail to recognize shared libraries
8068*** as such. This will affect the creation of libtool libraries that
8069*** depend on shared libraries, but programs linked with such libtool
8070*** libraries will work regardless of this problem. Nevertheless, you
8071*** may want to report the problem to your system manager and/or to
8072*** bug-libtool@gnu.org
8073
8074_LT_EOF
8075 fi ;;
8076 esac
8077 fi
8078 break
8079 fi
8080 done
8081 IFS="$lt_save_ifs"
8082 MAGIC_CMD="$lt_save_MAGIC_CMD"
8083 ;;
8084esac
8085fi
8086
8087MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8088if test -n "$MAGIC_CMD"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090$as_echo "$MAGIC_CMD" >&6; }
8091else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093$as_echo "no" >&6; }
8094fi
8095
8096
8097
8098
8099
8100if test -z "$lt_cv_path_MAGIC_CMD"; then
8101 if test -n "$ac_tool_prefix"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8103$as_echo_n "checking for file... " >&6; }
8104if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106else
8107 case $MAGIC_CMD in
8108[\\/*] | ?:[\\/]*)
8109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8110 ;;
8111*)
8112 lt_save_MAGIC_CMD="$MAGIC_CMD"
8113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115 for ac_dir in $ac_dummy; do
8116 IFS="$lt_save_ifs"
8117 test -z "$ac_dir" && ac_dir=.
8118 if test -f $ac_dir/file; then
8119 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8120 if test -n "$file_magic_test_file"; then
8121 case $deplibs_check_method in
8122 "file_magic "*)
8123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126 $EGREP "$file_magic_regex" > /dev/null; then
8127 :
8128 else
8129 cat <<_LT_EOF 1>&2
8130
8131*** Warning: the command libtool uses to detect shared libraries,
8132*** $file_magic_cmd, produces output that libtool cannot recognize.
8133*** The result is that libtool may fail to recognize shared libraries
8134*** as such. This will affect the creation of libtool libraries that
8135*** depend on shared libraries, but programs linked with such libtool
8136*** libraries will work regardless of this problem. Nevertheless, you
8137*** may want to report the problem to your system manager and/or to
8138*** bug-libtool@gnu.org
8139
8140_LT_EOF
8141 fi ;;
8142 esac
8143 fi
8144 break
8145 fi
8146 done
8147 IFS="$lt_save_ifs"
8148 MAGIC_CMD="$lt_save_MAGIC_CMD"
8149 ;;
8150esac
8151fi
8152
8153MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154if test -n "$MAGIC_CMD"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156$as_echo "$MAGIC_CMD" >&6; }
8157else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
8160fi
8161
8162
8163 else
8164 MAGIC_CMD=:
8165 fi
8166fi
8167
8168 fi
8169 ;;
8170esac
8171
8172# Use C for the default configuration in the libtool script
8173
8174lt_save_CC="$CC"
8175ac_ext=c
8176ac_cpp='$CPP $CPPFLAGS'
8177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182# Source file extension for C test sources.
8183ac_ext=c
8184
8185# Object file extension for compiled C test sources.
8186objext=o
8187objext=$objext
8188
8189# Code to be used in simple compile tests
8190lt_simple_compile_test_code="int some_variable = 0;"
8191
8192# Code to be used in simple link tests
8193lt_simple_link_test_code='int main(){return(0);}'
8194
8195
8196
8197
8198
8199
8200
8201# If no C compiler was specified, use CC.
8202LTCC=${LTCC-"$CC"}
8203
8204# If no C compiler flags were specified, use CFLAGS.
8205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8206
8207# Allow CC to be a program name with arguments.
8208compiler=$CC
8209
8210# Save the default compiler, since it gets overwritten when the other
8211# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8212compiler_DEFAULT=$CC
8213
8214# save warnings/boilerplate of simple test code
8215ac_outfile=conftest.$ac_objext
8216echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8217eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8218_lt_compiler_boilerplate=`cat conftest.err`
8219$RM conftest*
8220
8221ac_outfile=conftest.$ac_objext
8222echo "$lt_simple_link_test_code" >conftest.$ac_ext
8223eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8224_lt_linker_boilerplate=`cat conftest.err`
8225$RM -r conftest*
8226
8227
8228if test -n "$compiler"; then
8229
8230lt_prog_compiler_no_builtin_flag=
8231
8232if test "$GCC" = yes; then
8233 case $cc_basename in
8234 nvcc*)
8235 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8236 *)
8237 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8238 esac
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8241$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8242if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244else
8245 lt_cv_prog_compiler_rtti_exceptions=no
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248 lt_compiler_flag="-fno-rtti -fno-exceptions"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 # The option is referenced via a variable to avoid confusing sed.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>conftest.err)
8260 ac_status=$?
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s "$ac_outfile"; then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings other than the usual output.
8266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_rtti_exceptions=yes
8270 fi
8271 fi
8272 $RM conftest*
8273
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8276$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8277
8278if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8280else
8281 :
8282fi
8283
8284fi
8285
8286
8287
8288
8289
8290
8291 lt_prog_compiler_wl=
8292lt_prog_compiler_pic=
8293lt_prog_compiler_static=
8294
8295
8296 if test "$GCC" = yes; then
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_static='-static'
8299
8300 case $host_os in
8301 aix*)
8302 # All AIX code is PIC.
8303 if test "$host_cpu" = ia64; then
8304 # AIX 5 now supports IA64 processor
8305 lt_prog_compiler_static='-Bstatic'
8306 fi
8307 ;;
8308
8309 amigaos*)
8310 case $host_cpu in
8311 powerpc)
8312 # see comment about AmigaOS4 .so support
8313 lt_prog_compiler_pic='-fPIC'
8314 ;;
8315 m68k)
8316 # FIXME: we need at least 68020 code to build shared libraries, but
8317 # adding the `-m68020' flag to GCC prevents building anything better,
8318 # like `-m68040'.
8319 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8320 ;;
8321 esac
8322 ;;
8323
8324 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8325 # PIC is the default for these OSes.
8326 ;;
8327
8328 mingw* | cygwin* | pw32* | os2* | cegcc*)
8329 # This hack is so that the source file can tell whether it is being
8330 # built for inclusion in a dll (and should export symbols for example).
8331 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8332 # (--disable-auto-import) libraries
8333 lt_prog_compiler_pic='-DDLL_EXPORT'
8334 ;;
8335
8336 darwin* | rhapsody*)
8337 # PIC is the default on this platform
8338 # Common symbols not allowed in MH_DYLIB files
8339 lt_prog_compiler_pic='-fno-common'
8340 ;;
8341
8342 haiku*)
8343 # PIC is the default for Haiku.
8344 # The "-static" flag exists, but is broken.
8345 lt_prog_compiler_static=
8346 ;;
8347
8348 hpux*)
8349 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8350 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8351 # sets the default TLS model and affects inlining.
8352 case $host_cpu in
8353 hppa*64*)
8354 # +Z the default
8355 ;;
8356 *)
8357 lt_prog_compiler_pic='-fPIC'
8358 ;;
8359 esac
8360 ;;
8361
8362 interix[3-9]*)
8363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8364 # Instead, we relocate shared libraries at runtime.
8365 ;;
8366
8367 msdosdjgpp*)
8368 # Just because we use GCC doesn't mean we suddenly get shared libraries
8369 # on systems that don't support them.
8370 lt_prog_compiler_can_build_shared=no
8371 enable_shared=no
8372 ;;
8373
8374 *nto* | *qnx*)
8375 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 # it will coredump.
8377 lt_prog_compiler_pic='-fPIC -shared'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec; then
8382 lt_prog_compiler_pic=-Kconform_pic
8383 fi
8384 ;;
8385
8386 *)
8387 lt_prog_compiler_pic='-fPIC'
8388 ;;
8389 esac
8390
8391 case $cc_basename in
8392 nvcc*) # Cuda Compiler Driver 2.2
8393 lt_prog_compiler_wl='-Xlinker '
8394 if test -n "$lt_prog_compiler_pic"; then
8395 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8396 fi
8397 ;;
8398 esac
8399 else
8400 # PORTME Check for flag to pass linker flags through the system compiler.
8401 case $host_os in
8402 aix*)
8403 lt_prog_compiler_wl='-Wl,'
8404 if test "$host_cpu" = ia64; then
8405 # AIX 5 now supports IA64 processor
8406 lt_prog_compiler_static='-Bstatic'
8407 else
8408 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8409 fi
8410 ;;
8411
8412 mingw* | cygwin* | pw32* | os2* | cegcc*)
8413 # This hack is so that the source file can tell whether it is being
8414 # built for inclusion in a dll (and should export symbols for example).
8415 lt_prog_compiler_pic='-DDLL_EXPORT'
8416 ;;
8417
8418 hpux9* | hpux10* | hpux11*)
8419 lt_prog_compiler_wl='-Wl,'
8420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8421 # not for PA HP-UX.
8422 case $host_cpu in
8423 hppa*64*|ia64*)
8424 # +Z the default
8425 ;;
8426 *)
8427 lt_prog_compiler_pic='+Z'
8428 ;;
8429 esac
8430 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8431 lt_prog_compiler_static='${wl}-a ${wl}archive'
8432 ;;
8433
8434 irix5* | irix6* | nonstopux*)
8435 lt_prog_compiler_wl='-Wl,'
8436 # PIC (with -KPIC) is the default.
8437 lt_prog_compiler_static='-non_shared'
8438 ;;
8439
8440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8441 case $cc_basename in
8442 # old Intel for x86_64 which still supported -KPIC.
8443 ecc*)
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-static'
8447 ;;
8448 # icc used to be incompatible with GCC.
8449 # ICC 10 doesn't accept -KPIC any more.
8450 icc* | ifort*)
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_pic='-fPIC'
8453 lt_prog_compiler_static='-static'
8454 ;;
8455 # Lahey Fortran 8.1.
8456 lf95*)
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_pic='--shared'
8459 lt_prog_compiler_static='--static'
8460 ;;
8461 nagfor*)
8462 # NAG Fortran compiler
8463 lt_prog_compiler_wl='-Wl,-Wl,,'
8464 lt_prog_compiler_pic='-PIC'
8465 lt_prog_compiler_static='-Bstatic'
8466 ;;
8467 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8468 # Portland Group compilers (*not* the Pentium gcc compiler,
8469 # which looks to be a dead project)
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-fpic'
8472 lt_prog_compiler_static='-Bstatic'
8473 ;;
8474 ccc*)
8475 lt_prog_compiler_wl='-Wl,'
8476 # All Alpha code is PIC.
8477 lt_prog_compiler_static='-non_shared'
8478 ;;
8479 xl* | bgxl* | bgf* | mpixl*)
8480 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8481 lt_prog_compiler_wl='-Wl,'
8482 lt_prog_compiler_pic='-qpic'
8483 lt_prog_compiler_static='-qstaticlink'
8484 ;;
8485 *)
8486 case `$CC -V 2>&1 | sed 5q` in
8487 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8488 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8489 lt_prog_compiler_pic='-KPIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 lt_prog_compiler_wl=''
8492 ;;
8493 *Sun\ F* | *Sun*Fortran*)
8494 lt_prog_compiler_pic='-KPIC'
8495 lt_prog_compiler_static='-Bstatic'
8496 lt_prog_compiler_wl='-Qoption ld '
8497 ;;
8498 *Sun\ C*)
8499 # Sun C 5.9
8500 lt_prog_compiler_pic='-KPIC'
8501 lt_prog_compiler_static='-Bstatic'
8502 lt_prog_compiler_wl='-Wl,'
8503 ;;
8504 *Intel*\ [CF]*Compiler*)
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='-fPIC'
8507 lt_prog_compiler_static='-static'
8508 ;;
8509 *Portland\ Group*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-fpic'
8512 lt_prog_compiler_static='-Bstatic'
8513 ;;
8514 esac
8515 ;;
8516 esac
8517 ;;
8518
8519 newsos6)
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 ;;
8523
8524 *nto* | *qnx*)
8525 # QNX uses GNU C++, but need to define -shared option too, otherwise
8526 # it will coredump.
8527 lt_prog_compiler_pic='-fPIC -shared'
8528 ;;
8529
8530 osf3* | osf4* | osf5*)
8531 lt_prog_compiler_wl='-Wl,'
8532 # All OSF/1 code is PIC.
8533 lt_prog_compiler_static='-non_shared'
8534 ;;
8535
8536 rdos*)
8537 lt_prog_compiler_static='-non_shared'
8538 ;;
8539
8540 solaris*)
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-Bstatic'
8543 case $cc_basename in
8544 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8545 lt_prog_compiler_wl='-Qoption ld ';;
8546 *)
8547 lt_prog_compiler_wl='-Wl,';;
8548 esac
8549 ;;
8550
8551 sunos4*)
8552 lt_prog_compiler_wl='-Qoption ld '
8553 lt_prog_compiler_pic='-PIC'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
8556
8557 sysv4 | sysv4.2uw2* | sysv4.3*)
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 ;;
8562
8563 sysv4*MP*)
8564 if test -d /usr/nec ;then
8565 lt_prog_compiler_pic='-Kconform_pic'
8566 lt_prog_compiler_static='-Bstatic'
8567 fi
8568 ;;
8569
8570 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 ;;
8575
8576 unicos*)
8577 lt_prog_compiler_wl='-Wl,'
8578 lt_prog_compiler_can_build_shared=no
8579 ;;
8580
8581 uts4*)
8582 lt_prog_compiler_pic='-pic'
8583 lt_prog_compiler_static='-Bstatic'
8584 ;;
8585
8586 *)
8587 lt_prog_compiler_can_build_shared=no
8588 ;;
8589 esac
8590 fi
8591
8592case $host_os in
8593 # For platforms which do not support PIC, -DPIC is meaningless:
8594 *djgpp*)
8595 lt_prog_compiler_pic=
8596 ;;
8597 *)
8598 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8599 ;;
8600esac
8601
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8603$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8604if ${lt_cv_prog_compiler_pic+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606else
8607 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8608fi
8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8610$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8611lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8612
8613#
8614# Check to make sure the PIC flag actually works.
8615#
8616if test -n "$lt_prog_compiler_pic"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8618$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8619if ${lt_cv_prog_compiler_pic_works+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621else
8622 lt_cv_prog_compiler_pic_works=no
8623 ac_outfile=conftest.$ac_objext
8624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8625 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8626 # Insert the option either (1) after the last *FLAGS variable, or
8627 # (2) before a word containing "conftest.", or (3) at the end.
8628 # Note that $ac_compile itself does not contain backslashes and begins
8629 # with a dollar sign (not a hyphen), so the echo should work correctly.
8630 # The option is referenced via a variable to avoid confusing sed.
8631 lt_compile=`echo "$ac_compile" | $SED \
8632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8634 -e 's:$: $lt_compiler_flag:'`
8635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8636 (eval "$lt_compile" 2>conftest.err)
8637 ac_status=$?
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 if (exit $ac_status) && test -s "$ac_outfile"; then
8641 # The compiler can only warn and ignore the option if not recognized
8642 # So say no if there are warnings other than the usual output.
8643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8646 lt_cv_prog_compiler_pic_works=yes
8647 fi
8648 fi
8649 $RM conftest*
8650
8651fi
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8653$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8654
8655if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8656 case $lt_prog_compiler_pic in
8657 "" | " "*) ;;
8658 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8659 esac
8660else
8661 lt_prog_compiler_pic=
8662 lt_prog_compiler_can_build_shared=no
8663fi
8664
8665fi
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677#
8678# Check to make sure the static flag actually works.
8679#
8680wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8682$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8683if ${lt_cv_prog_compiler_static_works+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685else
8686 lt_cv_prog_compiler_static_works=no
8687 save_LDFLAGS="$LDFLAGS"
8688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8691 # The linker can only warn and ignore the option if not recognized
8692 # So say no if there are warnings
8693 if test -s conftest.err; then
8694 # Append any errors to the config.log.
8695 cat conftest.err 1>&5
8696 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_static_works=yes
8700 fi
8701 else
8702 lt_cv_prog_compiler_static_works=yes
8703 fi
8704 fi
8705 $RM -r conftest*
8706 LDFLAGS="$save_LDFLAGS"
8707
8708fi
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8710$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8711
8712if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8713 :
8714else
8715 lt_prog_compiler_static=
8716fi
8717
8718
8719
8720
8721
8722
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8725$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8726if ${lt_cv_prog_compiler_c_o+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728else
8729 lt_cv_prog_compiler_c_o=no
8730 $RM -r conftest 2>/dev/null
8731 mkdir conftest
8732 cd conftest
8733 mkdir out
8734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8735
8736 lt_compiler_flag="-o out/conftest2.$ac_objext"
8737 # Insert the option either (1) after the last *FLAGS variable, or
8738 # (2) before a word containing "conftest.", or (3) at the end.
8739 # Note that $ac_compile itself does not contain backslashes and begins
8740 # with a dollar sign (not a hyphen), so the echo should work correctly.
8741 lt_compile=`echo "$ac_compile" | $SED \
8742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744 -e 's:$: $lt_compiler_flag:'`
8745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8746 (eval "$lt_compile" 2>out/conftest.err)
8747 ac_status=$?
8748 cat out/conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8751 then
8752 # The compiler can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_c_o=yes
8758 fi
8759 fi
8760 chmod u+w . 2>&5
8761 $RM conftest*
8762 # SGI C++ compiler will create directory out/ii_files/ for
8763 # template instantiation
8764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8765 $RM out/* && rmdir out
8766 cd ..
8767 $RM -r conftest
8768 $RM conftest*
8769
8770fi
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8772$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8773
8774
8775
8776
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8781if ${lt_cv_prog_compiler_c_o+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783else
8784 lt_cv_prog_compiler_c_o=no
8785 $RM -r conftest 2>/dev/null
8786 mkdir conftest
8787 cd conftest
8788 mkdir out
8789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8790
8791 lt_compiler_flag="-o out/conftest2.$ac_objext"
8792 # Insert the option either (1) after the last *FLAGS variable, or
8793 # (2) before a word containing "conftest.", or (3) at the end.
8794 # Note that $ac_compile itself does not contain backslashes and begins
8795 # with a dollar sign (not a hyphen), so the echo should work correctly.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>out/conftest.err)
8802 ac_status=$?
8803 cat out/conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8806 then
8807 # The compiler can only warn and ignore the option if not recognized
8808 # So say no if there are warnings
8809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8812 lt_cv_prog_compiler_c_o=yes
8813 fi
8814 fi
8815 chmod u+w . 2>&5
8816 $RM conftest*
8817 # SGI C++ compiler will create directory out/ii_files/ for
8818 # template instantiation
8819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8820 $RM out/* && rmdir out
8821 cd ..
8822 $RM -r conftest
8823 $RM conftest*
8824
8825fi
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8827$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8828
8829
8830
8831
8832hard_links="nottested"
8833if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8834 # do not overwrite the value of need_locks provided by the user
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8836$as_echo_n "checking if we can lock with hard links... " >&6; }
8837 hard_links=yes
8838 $RM conftest*
8839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8840 touch conftest.a
8841 ln conftest.a conftest.b 2>&5 || hard_links=no
8842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8844$as_echo "$hard_links" >&6; }
8845 if test "$hard_links" = no; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8847$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8848 need_locks=warn
8849 fi
8850else
8851 need_locks=no
8852fi
8853
8854
8855
8856
8857
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8860$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8861
8862 runpath_var=
8863 allow_undefined_flag=
8864 always_export_symbols=no
8865 archive_cmds=
8866 archive_expsym_cmds=
8867 compiler_needs_object=no
8868 enable_shared_with_static_runtimes=no
8869 export_dynamic_flag_spec=
8870 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8871 hardcode_automatic=no
8872 hardcode_direct=no
8873 hardcode_direct_absolute=no
8874 hardcode_libdir_flag_spec=
8875 hardcode_libdir_separator=
8876 hardcode_minus_L=no
8877 hardcode_shlibpath_var=unsupported
8878 inherit_rpath=no
8879 link_all_deplibs=unknown
8880 module_cmds=
8881 module_expsym_cmds=
8882 old_archive_from_new_cmds=
8883 old_archive_from_expsyms_cmds=
8884 thread_safe_flag_spec=
8885 whole_archive_flag_spec=
8886 # include_expsyms should be a list of space-separated symbols to be *always*
8887 # included in the symbol list
8888 include_expsyms=
8889 # exclude_expsyms can be an extended regexp of symbols to exclude
8890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892 # as well as any symbol that contains `d'.
8893 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895 # platforms (ab)use it in PIC code, but their linkers get confused if
8896 # the symbol is explicitly referenced. Since portable code cannot
8897 # rely on this symbol name, it's probably fine to never include it in
8898 # preloaded symbol tables.
8899 # Exclude shared library initialization/finalization symbols.
8900 extract_expsyms_cmds=
8901
8902 case $host_os in
8903 cygwin* | mingw* | pw32* | cegcc*)
8904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8905 # When not using gcc, we currently assume that we are using
8906 # Microsoft Visual C++.
8907 if test "$GCC" != yes; then
8908 with_gnu_ld=no
8909 fi
8910 ;;
8911 interix*)
8912 # we just hope/assume this is gcc and not c89 (= MSVC++)
8913 with_gnu_ld=yes
8914 ;;
8915 openbsd*)
8916 with_gnu_ld=no
8917 ;;
8918 esac
8919
8920 ld_shlibs=yes
8921
8922 # On some targets, GNU ld is compatible enough with the native linker
8923 # that we're better off using the native interface for both.
8924 lt_use_gnu_ld_interface=no
8925 if test "$with_gnu_ld" = yes; then
8926 case $host_os in
8927 aix*)
8928 # The AIX port of GNU ld has always aspired to compatibility
8929 # with the native linker. However, as the warning in the GNU ld
8930 # block says, versions before 2.19.5* couldn't really create working
8931 # shared libraries, regardless of the interface used.
8932 case `$LD -v 2>&1` in
8933 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8934 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8935 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8936 *)
8937 lt_use_gnu_ld_interface=yes
8938 ;;
8939 esac
8940 ;;
8941 *)
8942 lt_use_gnu_ld_interface=yes
8943 ;;
8944 esac
8945 fi
8946
8947 if test "$lt_use_gnu_ld_interface" = yes; then
8948 # If archive_cmds runs LD, not CC, wlarc should be empty
8949 wlarc='${wl}'
8950
8951 # Set some defaults for GNU ld with shared library support. These
8952 # are reset later if shared libraries are not supported. Putting them
8953 # here allows them to be overridden if necessary.
8954 runpath_var=LD_RUN_PATH
8955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956 export_dynamic_flag_spec='${wl}--export-dynamic'
8957 # ancient GNU ld didn't support --whole-archive et. al.
8958 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8959 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8960 else
8961 whole_archive_flag_spec=
8962 fi
8963 supports_anon_versioning=no
8964 case `$LD -v 2>&1` in
8965 *GNU\ gold*) supports_anon_versioning=yes ;;
8966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8969 *\ 2.11.*) ;; # other 2.11 versions
8970 *) supports_anon_versioning=yes ;;
8971 esac
8972
8973 # See if GNU ld supports shared libraries.
8974 case $host_os in
8975 aix[3-9]*)
8976 # On AIX/PPC, the GNU linker is very broken
8977 if test "$host_cpu" != ia64; then
8978 ld_shlibs=no
8979 cat <<_LT_EOF 1>&2
8980
8981*** Warning: the GNU linker, at least up to release 2.19, is reported
8982*** to be unable to reliably create shared libraries on AIX.
8983*** Therefore, libtool is disabling shared libraries support. If you
8984*** really care for shared libraries, you may want to install binutils
8985*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8986*** You will then need to restart the configuration process.
8987
8988_LT_EOF
8989 fi
8990 ;;
8991
8992 amigaos*)
8993 case $host_cpu in
8994 powerpc)
8995 # see comment about AmigaOS4 .so support
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds=''
8998 ;;
8999 m68k)
9000 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)'
9001 hardcode_libdir_flag_spec='-L$libdir'
9002 hardcode_minus_L=yes
9003 ;;
9004 esac
9005 ;;
9006
9007 beos*)
9008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009 allow_undefined_flag=unsupported
9010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9011 # support --undefined. This deserves some investigation. FIXME
9012 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 else
9014 ld_shlibs=no
9015 fi
9016 ;;
9017
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9020 # as there is no search path for DLLs.
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 export_dynamic_flag_spec='${wl}--export-all-symbols'
9023 allow_undefined_flag=unsupported
9024 always_export_symbols=no
9025 enable_shared_with_static_runtimes=yes
9026 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'
9027 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9028
9029 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9031 # If the export-symbols file already is a .def file (1st line
9032 # is EXPORTS), use it as is; otherwise, prepend...
9033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9034 cp $export_symbols $output_objdir/$soname.def;
9035 else
9036 echo EXPORTS > $output_objdir/$soname.def;
9037 cat $export_symbols >> $output_objdir/$soname.def;
9038 fi~
9039 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9040 else
9041 ld_shlibs=no
9042 fi
9043 ;;
9044
9045 haiku*)
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 link_all_deplibs=yes
9048 ;;
9049
9050 interix[3-9]*)
9051 hardcode_direct=no
9052 hardcode_shlibpath_var=no
9053 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9054 export_dynamic_flag_spec='${wl}-E'
9055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9056 # Instead, shared libraries are loaded at an image base (0x10000000 by
9057 # default) and relocated if they conflict, which is a slow very memory
9058 # consuming and fragmenting process. To avoid this, we pick a random,
9059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9060 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9062 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'
9063 ;;
9064
9065 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9066 tmp_diet=no
9067 if test "$host_os" = linux-dietlibc; then
9068 case $cc_basename in
9069 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9070 esac
9071 fi
9072 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9073 && test "$tmp_diet" = no
9074 then
9075 tmp_addflag=' $pic_flag'
9076 tmp_sharedflag='-shared'
9077 case $cc_basename,$host_cpu in
9078 pgcc*) # Portland Group C compiler
9079 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'
9080 tmp_addflag=' $pic_flag'
9081 ;;
9082 pgf77* | pgf90* | pgf95* | pgfortran*)
9083 # Portland Group f77 and f90 compilers
9084 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'
9085 tmp_addflag=' $pic_flag -Mnomain' ;;
9086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9087 tmp_addflag=' -i_dynamic' ;;
9088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9089 tmp_addflag=' -i_dynamic -nofor_main' ;;
9090 ifc* | ifort*) # Intel Fortran compiler
9091 tmp_addflag=' -nofor_main' ;;
9092 lf95*) # Lahey Fortran 8.1
9093 whole_archive_flag_spec=
9094 tmp_sharedflag='--shared' ;;
9095 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9096 tmp_sharedflag='-qmkshrobj'
9097 tmp_addflag= ;;
9098 nvcc*) # Cuda Compiler Driver 2.2
9099 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'
9100 compiler_needs_object=yes
9101 ;;
9102 esac
9103 case `$CC -V 2>&1 | sed 5q` in
9104 *Sun\ C*) # Sun C 5.9
9105 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'
9106 compiler_needs_object=yes
9107 tmp_sharedflag='-G' ;;
9108 *Sun\ F*) # Sun Fortran 8.3
9109 tmp_sharedflag='-G' ;;
9110 esac
9111 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112
9113 if test "x$supports_anon_versioning" = xyes; then
9114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116 echo "local: *; };" >> $output_objdir/$libname.ver~
9117 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9118 fi
9119
9120 case $cc_basename in
9121 xlf* | bgf* | bgxlf* | mpixlf*)
9122 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9123 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9125 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9126 if test "x$supports_anon_versioning" = xyes; then
9127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9129 echo "local: *; };" >> $output_objdir/$libname.ver~
9130 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9131 fi
9132 ;;
9133 esac
9134 else
9135 ld_shlibs=no
9136 fi
9137 ;;
9138
9139 netbsd*)
9140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9141 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9142 wlarc=
9143 else
9144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9146 fi
9147 ;;
9148
9149 solaris*)
9150 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9151 ld_shlibs=no
9152 cat <<_LT_EOF 1>&2
9153
9154*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9155*** create shared libraries on Solaris systems. Therefore, libtool
9156*** is disabling shared libraries support. We urge you to upgrade GNU
9157*** binutils to release 2.9.1 or newer. Another option is to modify
9158*** your PATH or compiler configuration so that the native linker is
9159*** used, and then restart.
9160
9161_LT_EOF
9162 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9165 else
9166 ld_shlibs=no
9167 fi
9168 ;;
9169
9170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9171 case `$LD -v 2>&1` in
9172 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9173 ld_shlibs=no
9174 cat <<_LT_EOF 1>&2
9175
9176*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9177*** reliably create shared libraries on SCO systems. Therefore, libtool
9178*** is disabling shared libraries support. We urge you to upgrade GNU
9179*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9180*** your PATH or compiler configuration so that the native linker is
9181*** used, and then restart.
9182
9183_LT_EOF
9184 ;;
9185 *)
9186 # For security reasons, it is highly recommended that you always
9187 # use absolute paths for naming shared libraries, and exclude the
9188 # DT_RUNPATH tag from executables and libraries. But doing so
9189 # requires that you compile everything twice, which is a pain.
9190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194 else
9195 ld_shlibs=no
9196 fi
9197 ;;
9198 esac
9199 ;;
9200
9201 sunos4*)
9202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9203 wlarc=
9204 hardcode_direct=yes
9205 hardcode_shlibpath_var=no
9206 ;;
9207
9208 *)
9209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9212 else
9213 ld_shlibs=no
9214 fi
9215 ;;
9216 esac
9217
9218 if test "$ld_shlibs" = no; then
9219 runpath_var=
9220 hardcode_libdir_flag_spec=
9221 export_dynamic_flag_spec=
9222 whole_archive_flag_spec=
9223 fi
9224 else
9225 # PORTME fill in a description of your system's linker (not GNU ld)
9226 case $host_os in
9227 aix3*)
9228 allow_undefined_flag=unsupported
9229 always_export_symbols=yes
9230 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'
9231 # Note: this linker hardcodes the directories in LIBPATH if there
9232 # are no directories specified by -L.
9233 hardcode_minus_L=yes
9234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9235 # Neither direct hardcoding nor static linking is supported with a
9236 # broken collect2.
9237 hardcode_direct=unsupported
9238 fi
9239 ;;
9240
9241 aix[4-9]*)
9242 if test "$host_cpu" = ia64; then
9243 # On IA64, the linker does run time linking by default, so we don't
9244 # have to do anything special.
9245 aix_use_runtimelinking=no
9246 exp_sym_flag='-Bexport'
9247 no_entry_flag=""
9248 else
9249 # If we're using GNU nm, then we don't want the "-C" option.
9250 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9251 # Also, AIX nm treats weak defined symbols like other global
9252 # defined symbols, whereas GNU nm marks them as "W".
9253 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9254 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'
9255 else
9256 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'
9257 fi
9258 aix_use_runtimelinking=no
9259
9260 # Test if we are trying to use run time linking or normal
9261 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9262 # need to do runtime linking.
9263 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9264 for ld_flag in $LDFLAGS; do
9265 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9266 aix_use_runtimelinking=yes
9267 break
9268 fi
9269 done
9270 ;;
9271 esac
9272
9273 exp_sym_flag='-bexport'
9274 no_entry_flag='-bnoentry'
9275 fi
9276
9277 # When large executables or shared objects are built, AIX ld can
9278 # have problems creating the table of contents. If linking a library
9279 # or program results in "error TOC overflow" add -mminimal-toc to
9280 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9281 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9282
9283 archive_cmds=''
9284 hardcode_direct=yes
9285 hardcode_direct_absolute=yes
9286 hardcode_libdir_separator=':'
9287 link_all_deplibs=yes
9288 file_list_spec='${wl}-f,'
9289
9290 if test "$GCC" = yes; then
9291 case $host_os in aix4.[012]|aix4.[012].*)
9292 # We only want to do this on AIX 4.2 and lower, the check
9293 # below for broken collect2 doesn't work under 4.3+
9294 collect2name=`${CC} -print-prog-name=collect2`
9295 if test -f "$collect2name" &&
9296 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9297 then
9298 # We have reworked collect2
9299 :
9300 else
9301 # We have old collect2
9302 hardcode_direct=unsupported
9303 # It fails to find uninstalled libraries when the uninstalled
9304 # path is not listed in the libpath. Setting hardcode_minus_L
9305 # to unsupported forces relinking
9306 hardcode_minus_L=yes
9307 hardcode_libdir_flag_spec='-L$libdir'
9308 hardcode_libdir_separator=
9309 fi
9310 ;;
9311 esac
9312 shared_flag='-shared'
9313 if test "$aix_use_runtimelinking" = yes; then
9314 shared_flag="$shared_flag "'${wl}-G'
9315 fi
9316 else
9317 # not using gcc
9318 if test "$host_cpu" = ia64; then
9319 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9320 # chokes on -Wl,-G. The following line is correct:
9321 shared_flag='-G'
9322 else
9323 if test "$aix_use_runtimelinking" = yes; then
9324 shared_flag='${wl}-G'
9325 else
9326 shared_flag='${wl}-bM:SRE'
9327 fi
9328 fi
9329 fi
9330
9331 export_dynamic_flag_spec='${wl}-bexpall'
9332 # It seems that -bexpall does not export symbols beginning with
9333 # underscore (_), so it is better to generate a list of symbols to export.
9334 always_export_symbols=yes
9335 if test "$aix_use_runtimelinking" = yes; then
9336 # Warning - without using the other runtime loading flags (-brtl),
9337 # -berok will link without error, but may produce a broken library.
9338 allow_undefined_flag='-berok'
9339 # Determine the default libpath from the value encoded in an
9340 # empty executable.
9341 if test "${lt_cv_aix_libpath+set}" = set; then
9342 aix_libpath=$lt_cv_aix_libpath
9343else
9344 if ${lt_cv_aix_libpath_+:} false; then :
9345 $as_echo_n "(cached) " >&6
9346else
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h. */
9349
9350int
9351main ()
9352{
9353
9354 ;
9355 return 0;
9356}
9357_ACEOF
9358if ac_fn_c_try_link "$LINENO"; then :
9359
9360 lt_aix_libpath_sed='
9361 /Import File Strings/,/^$/ {
9362 /^0/ {
9363 s/^0 *\([^ ]*\) *$/\1/
9364 p
9365 }
9366 }'
9367 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9368 # Check for a 64-bit object if we didn't find anything.
9369 if test -z "$lt_cv_aix_libpath_"; then
9370 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9371 fi
9372fi
9373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 if test -z "$lt_cv_aix_libpath_"; then
9376 lt_cv_aix_libpath_="/usr/lib:/lib"
9377 fi
9378
9379fi
9380
9381 aix_libpath=$lt_cv_aix_libpath_
9382fi
9383
9384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9385 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"
9386 else
9387 if test "$host_cpu" = ia64; then
9388 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9389 allow_undefined_flag="-z nodefs"
9390 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"
9391 else
9392 # Determine the default libpath from the value encoded in an
9393 # empty executable.
9394 if test "${lt_cv_aix_libpath+set}" = set; then
9395 aix_libpath=$lt_cv_aix_libpath
9396else
9397 if ${lt_cv_aix_libpath_+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399else
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h. */
9402
9403int
9404main ()
9405{
9406
9407 ;
9408 return 0;
9409}
9410_ACEOF
9411if ac_fn_c_try_link "$LINENO"; then :
9412
9413 lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\([^ ]*\) *$/\1/
9417 p
9418 }
9419 }'
9420 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 # Check for a 64-bit object if we didn't find anything.
9422 if test -z "$lt_cv_aix_libpath_"; then
9423 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424 fi
9425fi
9426rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428 if test -z "$lt_cv_aix_libpath_"; then
9429 lt_cv_aix_libpath_="/usr/lib:/lib"
9430 fi
9431
9432fi
9433
9434 aix_libpath=$lt_cv_aix_libpath_
9435fi
9436
9437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9438 # Warning - without using the other run time loading flags,
9439 # -berok will link without error, but may produce a broken library.
9440 no_undefined_flag=' ${wl}-bernotok'
9441 allow_undefined_flag=' ${wl}-berok'
9442 if test "$with_gnu_ld" = yes; then
9443 # We only use this code for GNU lds that support --whole-archive.
9444 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9445 else
9446 # Exported symbols can be pulled into shared objects from archives
9447 whole_archive_flag_spec='$convenience'
9448 fi
9449 archive_cmds_need_lc=yes
9450 # This is similar to how AIX traditionally builds its shared libraries.
9451 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'
9452 fi
9453 fi
9454 ;;
9455
9456 amigaos*)
9457 case $host_cpu in
9458 powerpc)
9459 # see comment about AmigaOS4 .so support
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461 archive_expsym_cmds=''
9462 ;;
9463 m68k)
9464 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)'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_minus_L=yes
9467 ;;
9468 esac
9469 ;;
9470
9471 bsdi[45]*)
9472 export_dynamic_flag_spec=-rdynamic
9473 ;;
9474
9475 cygwin* | mingw* | pw32* | cegcc*)
9476 # When not using gcc, we currently assume that we are using
9477 # Microsoft Visual C++.
9478 # hardcode_libdir_flag_spec is actually meaningless, as there is
9479 # no search path for DLLs.
9480 case $cc_basename in
9481 cl*)
9482 # Native MSVC
9483 hardcode_libdir_flag_spec=' '
9484 allow_undefined_flag=unsupported
9485 always_export_symbols=yes
9486 file_list_spec='@'
9487 # Tell ltmain to make .lib files, not .a files.
9488 libext=lib
9489 # Tell ltmain to make .dll files, not .so files.
9490 shrext_cmds=".dll"
9491 # FIXME: Setting linknames here is a bad hack.
9492 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9493 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9494 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9495 else
9496 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9497 fi~
9498 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9499 linknames='
9500 # The linker will not automatically build a static lib if we build a DLL.
9501 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9502 enable_shared_with_static_runtimes=yes
9503 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9505 # Don't use ranlib
9506 old_postinstall_cmds='chmod 644 $oldlib'
9507 postlink_cmds='lt_outputfile="@OUTPUT@"~
9508 lt_tool_outputfile="@TOOL_OUTPUT@"~
9509 case $lt_outputfile in
9510 *.exe|*.EXE) ;;
9511 *)
9512 lt_outputfile="$lt_outputfile.exe"
9513 lt_tool_outputfile="$lt_tool_outputfile.exe"
9514 ;;
9515 esac~
9516 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9517 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9518 $RM "$lt_outputfile.manifest";
9519 fi'
9520 ;;
9521 *)
9522 # Assume MSVC wrapper
9523 hardcode_libdir_flag_spec=' '
9524 allow_undefined_flag=unsupported
9525 # Tell ltmain to make .lib files, not .a files.
9526 libext=lib
9527 # Tell ltmain to make .dll files, not .so files.
9528 shrext_cmds=".dll"
9529 # FIXME: Setting linknames here is a bad hack.
9530 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9531 # The linker will automatically build a .lib file if we build a DLL.
9532 old_archive_from_new_cmds='true'
9533 # FIXME: Should let the user specify the lib program.
9534 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9535 enable_shared_with_static_runtimes=yes
9536 ;;
9537 esac
9538 ;;
9539
9540 darwin* | rhapsody*)
9541
9542
9543 archive_cmds_need_lc=no
9544 hardcode_direct=no
9545 hardcode_automatic=yes
9546 hardcode_shlibpath_var=unsupported
9547 if test "$lt_cv_ld_force_load" = "yes"; then
9548 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\"`'
9549
9550 else
9551 whole_archive_flag_spec=''
9552 fi
9553 link_all_deplibs=yes
9554 allow_undefined_flag="$_lt_dar_allow_undefined"
9555 case $cc_basename in
9556 ifort*) _lt_dar_can_shared=yes ;;
9557 *) _lt_dar_can_shared=$GCC ;;
9558 esac
9559 if test "$_lt_dar_can_shared" = "yes"; then
9560 output_verbose_link_cmd=func_echo_all
9561 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9562 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9563 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}"
9564 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}"
9565
9566 else
9567 ld_shlibs=no
9568 fi
9569
9570 ;;
9571
9572 dgux*)
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_shlibpath_var=no
9576 ;;
9577
9578 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9579 # support. Future versions do this automatically, but an explicit c++rt0.o
9580 # does not break anything, and helps significantly (at the cost of a little
9581 # extra space).
9582 freebsd2.2*)
9583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9584 hardcode_libdir_flag_spec='-R$libdir'
9585 hardcode_direct=yes
9586 hardcode_shlibpath_var=no
9587 ;;
9588
9589 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9590 freebsd2.*)
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_direct=yes
9593 hardcode_minus_L=yes
9594 hardcode_shlibpath_var=no
9595 ;;
9596
9597 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9598 freebsd* | dragonfly*)
9599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9600 hardcode_libdir_flag_spec='-R$libdir'
9601 hardcode_direct=yes
9602 hardcode_shlibpath_var=no
9603 ;;
9604
9605 hpux9*)
9606 if test "$GCC" = yes; then
9607 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'
9608 else
9609 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'
9610 fi
9611 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 hardcode_direct=yes
9614
9615 # hardcode_minus_L: Not really in the search PATH,
9616 # but as the default location of the library.
9617 hardcode_minus_L=yes
9618 export_dynamic_flag_spec='${wl}-E'
9619 ;;
9620
9621 hpux10*)
9622 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9623 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9624 else
9625 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9626 fi
9627 if test "$with_gnu_ld" = no; then
9628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9629 hardcode_libdir_separator=:
9630 hardcode_direct=yes
9631 hardcode_direct_absolute=yes
9632 export_dynamic_flag_spec='${wl}-E'
9633 # hardcode_minus_L: Not really in the search PATH,
9634 # but as the default location of the library.
9635 hardcode_minus_L=yes
9636 fi
9637 ;;
9638
9639 hpux11*)
9640 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9641 case $host_cpu in
9642 hppa*64*)
9643 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 ;;
9645 ia64*)
9646 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9647 ;;
9648 *)
9649 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9650 ;;
9651 esac
9652 else
9653 case $host_cpu in
9654 hppa*64*)
9655 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 ;;
9657 ia64*)
9658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9659 ;;
9660 *)
9661
9662 # Older versions of the 11.00 compiler do not understand -b yet
9663 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9665$as_echo_n "checking if $CC understands -b... " >&6; }
9666if ${lt_cv_prog_compiler__b+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668else
9669 lt_cv_prog_compiler__b=no
9670 save_LDFLAGS="$LDFLAGS"
9671 LDFLAGS="$LDFLAGS -b"
9672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9674 # The linker can only warn and ignore the option if not recognized
9675 # So say no if there are warnings
9676 if test -s conftest.err; then
9677 # Append any errors to the config.log.
9678 cat conftest.err 1>&5
9679 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9681 if diff conftest.exp conftest.er2 >/dev/null; then
9682 lt_cv_prog_compiler__b=yes
9683 fi
9684 else
9685 lt_cv_prog_compiler__b=yes
9686 fi
9687 fi
9688 $RM -r conftest*
9689 LDFLAGS="$save_LDFLAGS"
9690
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9693$as_echo "$lt_cv_prog_compiler__b" >&6; }
9694
9695if test x"$lt_cv_prog_compiler__b" = xyes; then
9696 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9697else
9698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9699fi
9700
9701 ;;
9702 esac
9703 fi
9704 if test "$with_gnu_ld" = no; then
9705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9706 hardcode_libdir_separator=:
9707
9708 case $host_cpu in
9709 hppa*64*|ia64*)
9710 hardcode_direct=no
9711 hardcode_shlibpath_var=no
9712 ;;
9713 *)
9714 hardcode_direct=yes
9715 hardcode_direct_absolute=yes
9716 export_dynamic_flag_spec='${wl}-E'
9717
9718 # hardcode_minus_L: Not really in the search PATH,
9719 # but as the default location of the library.
9720 hardcode_minus_L=yes
9721 ;;
9722 esac
9723 fi
9724 ;;
9725
9726 irix5* | irix6* | nonstopux*)
9727 if test "$GCC" = yes; then
9728 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'
9729 # Try to use the -exported_symbol ld option, if it does not
9730 # work, assume that -exports_file does not work either and
9731 # implicitly export all symbols.
9732 # This should be the same for all languages, so no per-tag cache variable.
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9734$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9735if ${lt_cv_irix_exported_symbol+:} false; then :
9736 $as_echo_n "(cached) " >&6
9737else
9738 save_LDFLAGS="$LDFLAGS"
9739 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741/* end confdefs.h. */
9742int foo (void) { return 0; }
9743_ACEOF
9744if ac_fn_c_try_link "$LINENO"; then :
9745 lt_cv_irix_exported_symbol=yes
9746else
9747 lt_cv_irix_exported_symbol=no
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 LDFLAGS="$save_LDFLAGS"
9752fi
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9754$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9755 if test "$lt_cv_irix_exported_symbol" = yes; then
9756 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'
9757 fi
9758 else
9759 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'
9760 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'
9761 fi
9762 archive_cmds_need_lc='no'
9763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9764 hardcode_libdir_separator=:
9765 inherit_rpath=yes
9766 link_all_deplibs=yes
9767 ;;
9768
9769 netbsd*)
9770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9772 else
9773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9774 fi
9775 hardcode_libdir_flag_spec='-R$libdir'
9776 hardcode_direct=yes
9777 hardcode_shlibpath_var=no
9778 ;;
9779
9780 newsos6)
9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_direct=yes
9783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9784 hardcode_libdir_separator=:
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 *nto* | *qnx*)
9789 ;;
9790
9791 openbsd*)
9792 if test -f /usr/libexec/ld.so; then
9793 hardcode_direct=yes
9794 hardcode_shlibpath_var=no
9795 hardcode_direct_absolute=yes
9796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800 export_dynamic_flag_spec='${wl}-E'
9801 else
9802 case $host_os in
9803 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 ;;
9807 *)
9808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9810 ;;
9811 esac
9812 fi
9813 else
9814 ld_shlibs=no
9815 fi
9816 ;;
9817
9818 os2*)
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9821 allow_undefined_flag=unsupported
9822 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'
9823 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9824 ;;
9825
9826 osf3*)
9827 if test "$GCC" = yes; then
9828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9829 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'
9830 else
9831 allow_undefined_flag=' -expect_unresolved \*'
9832 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'
9833 fi
9834 archive_cmds_need_lc='no'
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 hardcode_libdir_separator=:
9837 ;;
9838
9839 osf4* | osf5*) # as osf3* with the addition of -msym flag
9840 if test "$GCC" = yes; then
9841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9842 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'
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 else
9845 allow_undefined_flag=' -expect_unresolved \*'
9846 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'
9847 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~
9848 $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'
9849
9850 # Both c and cxx compiler support -rpath directly
9851 hardcode_libdir_flag_spec='-rpath $libdir'
9852 fi
9853 archive_cmds_need_lc='no'
9854 hardcode_libdir_separator=:
9855 ;;
9856
9857 solaris*)
9858 no_undefined_flag=' -z defs'
9859 if test "$GCC" = yes; then
9860 wlarc='${wl}'
9861 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9863 $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'
9864 else
9865 case `$CC -V 2>&1` in
9866 *"Compilers 5.0"*)
9867 wlarc=''
9868 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9871 ;;
9872 *)
9873 wlarc='${wl}'
9874 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9876 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9877 ;;
9878 esac
9879 fi
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_shlibpath_var=no
9882 case $host_os in
9883 solaris2.[0-5] | solaris2.[0-5].*) ;;
9884 *)
9885 # The compiler driver will combine and reorder linker options,
9886 # but understands `-z linker_flag'. GCC discards it without `$wl',
9887 # but is careful enough not to reorder.
9888 # Supported since Solaris 2.6 (maybe 2.5.1?)
9889 if test "$GCC" = yes; then
9890 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9891 else
9892 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9893 fi
9894 ;;
9895 esac
9896 link_all_deplibs=yes
9897 ;;
9898
9899 sunos4*)
9900 if test "x$host_vendor" = xsequent; then
9901 # Use $CC to link under sequent, because it throws in some extra .o
9902 # files that make .init and .fini sections work.
9903 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9904 else
9905 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9906 fi
9907 hardcode_libdir_flag_spec='-L$libdir'
9908 hardcode_direct=yes
9909 hardcode_minus_L=yes
9910 hardcode_shlibpath_var=no
9911 ;;
9912
9913 sysv4)
9914 case $host_vendor in
9915 sni)
9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_direct=yes # is this really true???
9918 ;;
9919 siemens)
9920 ## LD is ld it makes a PLAMLIB
9921 ## CC just makes a GrossModule.
9922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9923 reload_cmds='$CC -r -o $output$reload_objs'
9924 hardcode_direct=no
9925 ;;
9926 motorola)
9927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9929 ;;
9930 esac
9931 runpath_var='LD_RUN_PATH'
9932 hardcode_shlibpath_var=no
9933 ;;
9934
9935 sysv4.3*)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_shlibpath_var=no
9938 export_dynamic_flag_spec='-Bexport'
9939 ;;
9940
9941 sysv4*MP*)
9942 if test -d /usr/nec; then
9943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_shlibpath_var=no
9945 runpath_var=LD_RUN_PATH
9946 hardcode_runpath_var=yes
9947 ld_shlibs=yes
9948 fi
9949 ;;
9950
9951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9952 no_undefined_flag='${wl}-z,text'
9953 archive_cmds_need_lc=no
9954 hardcode_shlibpath_var=no
9955 runpath_var='LD_RUN_PATH'
9956
9957 if test "$GCC" = yes; then
9958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9960 else
9961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963 fi
9964 ;;
9965
9966 sysv5* | sco3.2v5* | sco5v6*)
9967 # Note: We can NOT use -z defs as we might desire, because we do not
9968 # link with -lc, and that would cause any symbols used from libc to
9969 # always be unresolved, which means just about no library would
9970 # ever link correctly. If we're not using GNU ld we use -z text
9971 # though, which does catch some bad symbols but isn't as heavy-handed
9972 # as -z defs.
9973 no_undefined_flag='${wl}-z,text'
9974 allow_undefined_flag='${wl}-z,nodefs'
9975 archive_cmds_need_lc=no
9976 hardcode_shlibpath_var=no
9977 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9978 hardcode_libdir_separator=':'
9979 link_all_deplibs=yes
9980 export_dynamic_flag_spec='${wl}-Bexport'
9981 runpath_var='LD_RUN_PATH'
9982
9983 if test "$GCC" = yes; then
9984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 fi
9990 ;;
9991
9992 uts4*)
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_shlibpath_var=no
9996 ;;
9997
9998 *)
9999 ld_shlibs=no
10000 ;;
10001 esac
10002
10003 if test x$host_vendor = xsni; then
10004 case $host in
10005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10006 export_dynamic_flag_spec='${wl}-Blargedynsym'
10007 ;;
10008 esac
10009 fi
10010 fi
10011
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10013$as_echo "$ld_shlibs" >&6; }
10014test "$ld_shlibs" = no && can_build_shared=no
10015
10016with_gnu_ld=$with_gnu_ld
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032#
10033# Do we need to explicitly link libc?
10034#
10035case "x$archive_cmds_need_lc" in
10036x|xyes)
10037 # Assume -lc should be added
10038 archive_cmds_need_lc=yes
10039
10040 if test "$enable_shared" = yes && test "$GCC" = yes; then
10041 case $archive_cmds in
10042 *'~'*)
10043 # FIXME: we may have to deal with multi-command sequences.
10044 ;;
10045 '$CC '*)
10046 # Test whether the compiler implicitly links with -lc since on some
10047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10048 # to ld, don't add -lc before -lgcc.
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10050$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10051if ${lt_cv_archive_cmds_need_lc+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053else
10054 $RM conftest*
10055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10056
10057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10058 (eval $ac_compile) 2>&5
10059 ac_status=$?
10060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061 test $ac_status = 0; } 2>conftest.err; then
10062 soname=conftest
10063 lib=conftest
10064 libobjs=conftest.$ac_objext
10065 deplibs=
10066 wl=$lt_prog_compiler_wl
10067 pic_flag=$lt_prog_compiler_pic
10068 compiler_flags=-v
10069 linker_flags=-v
10070 verstring=
10071 output_objdir=.
10072 libname=conftest
10073 lt_save_allow_undefined_flag=$allow_undefined_flag
10074 allow_undefined_flag=
10075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10076 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10077 ac_status=$?
10078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10079 test $ac_status = 0; }
10080 then
10081 lt_cv_archive_cmds_need_lc=no
10082 else
10083 lt_cv_archive_cmds_need_lc=yes
10084 fi
10085 allow_undefined_flag=$lt_save_allow_undefined_flag
10086 else
10087 cat conftest.err 1>&5
10088 fi
10089 $RM conftest*
10090
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10093$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10094 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10095 ;;
10096 esac
10097 fi
10098 ;;
10099esac
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10253$as_echo_n "checking dynamic linker characteristics... " >&6; }
10254
10255if test "$GCC" = yes; then
10256 case $host_os in
10257 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10258 *) lt_awk_arg="/^libraries:/" ;;
10259 esac
10260 case $host_os in
10261 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10262 *) lt_sed_strip_eq="s,=/,/,g" ;;
10263 esac
10264 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10265 case $lt_search_path_spec in
10266 *\;*)
10267 # if the path contains ";" then we assume it to be the separator
10268 # otherwise default to the standard path separator (i.e. ":") - it is
10269 # assumed that no part of a normal pathname contains ";" but that should
10270 # okay in the real world where ";" in dirpaths is itself problematic.
10271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10272 ;;
10273 *)
10274 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10275 ;;
10276 esac
10277 # Ok, now we have the path, separated by spaces, we can step through it
10278 # and add multilib dir if necessary.
10279 lt_tmp_lt_search_path_spec=
10280 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10281 for lt_sys_path in $lt_search_path_spec; do
10282 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10283 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10284 else
10285 test -d "$lt_sys_path" && \
10286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10287 fi
10288 done
10289 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10290BEGIN {RS=" "; FS="/|\n";} {
10291 lt_foo="";
10292 lt_count=0;
10293 for (lt_i = NF; lt_i > 0; lt_i--) {
10294 if ($lt_i != "" && $lt_i != ".") {
10295 if ($lt_i == "..") {
10296 lt_count++;
10297 } else {
10298 if (lt_count == 0) {
10299 lt_foo="/" $lt_i lt_foo;
10300 } else {
10301 lt_count--;
10302 }
10303 }
10304 }
10305 }
10306 if (lt_foo != "") { lt_freq[lt_foo]++; }
10307 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10308}'`
10309 # AWK program above erroneously prepends '/' to C:/dos/paths
10310 # for these hosts.
10311 case $host_os in
10312 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10313 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10314 esac
10315 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10316else
10317 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10318fi
10319library_names_spec=
10320libname_spec='lib$name'
10321soname_spec=
10322shrext_cmds=".so"
10323postinstall_cmds=
10324postuninstall_cmds=
10325finish_cmds=
10326finish_eval=
10327shlibpath_var=
10328shlibpath_overrides_runpath=unknown
10329version_type=none
10330dynamic_linker="$host_os ld.so"
10331sys_lib_dlsearch_path_spec="/lib /usr/lib"
10332need_lib_prefix=unknown
10333hardcode_into_libs=no
10334
10335# when you set need_version to no, make sure it does not cause -set_version
10336# flags to be left without arguments
10337need_version=unknown
10338
10339case $host_os in
10340aix3*)
10341 version_type=linux # correct to gnu/linux during the next big refactor
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10343 shlibpath_var=LIBPATH
10344
10345 # AIX 3 has no versioning support, so we append a major version to the name.
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 ;;
10348
10349aix[4-9]*)
10350 version_type=linux # correct to gnu/linux during the next big refactor
10351 need_lib_prefix=no
10352 need_version=no
10353 hardcode_into_libs=yes
10354 if test "$host_cpu" = ia64; then
10355 # AIX 5 supports IA64
10356 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 else
10359 # With GCC up to 2.95.x, collect2 would create an import file
10360 # for dependence libraries. The import file would start with
10361 # the line `#! .'. This would cause the generated library to
10362 # depend on `.', always an invalid library. This was fixed in
10363 # development snapshots of GCC prior to 3.0.
10364 case $host_os in
10365 aix4 | aix4.[01] | aix4.[01].*)
10366 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10367 echo ' yes '
10368 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10369 :
10370 else
10371 can_build_shared=no
10372 fi
10373 ;;
10374 esac
10375 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10376 # soname into executable. Probably we can add versioning support to
10377 # collect2, so additional links can be useful in future.
10378 if test "$aix_use_runtimelinking" = yes; then
10379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10380 # instead of lib<name>.a to let people know that these are not
10381 # typical AIX shared libraries.
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 else
10384 # We preserve .a as extension for shared libraries through AIX4.2
10385 # and later when we are not doing run time linking.
10386 library_names_spec='${libname}${release}.a $libname.a'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 fi
10389 shlibpath_var=LIBPATH
10390 fi
10391 ;;
10392
10393amigaos*)
10394 case $host_cpu in
10395 powerpc)
10396 # Since July 2007 AmigaOS4 officially supports .so libraries.
10397 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 ;;
10400 m68k)
10401 library_names_spec='$libname.ixlibrary $libname.a'
10402 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10403 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'
10404 ;;
10405 esac
10406 ;;
10407
10408beos*)
10409 library_names_spec='${libname}${shared_ext}'
10410 dynamic_linker="$host_os ld.so"
10411 shlibpath_var=LIBRARY_PATH
10412 ;;
10413
10414bsdi[45]*)
10415 version_type=linux # correct to gnu/linux during the next big refactor
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10423 # the default ld.so.conf also contains /usr/contrib/lib and
10424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10425 # libtool to hard-code these into programs
10426 ;;
10427
10428cygwin* | mingw* | pw32* | cegcc*)
10429 version_type=windows
10430 shrext_cmds=".dll"
10431 need_version=no
10432 need_lib_prefix=no
10433
10434 case $GCC,$cc_basename in
10435 yes,*)
10436 # gcc
10437 library_names_spec='$libname.dll.a'
10438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10439 postinstall_cmds='base_file=`basename \${file}`~
10440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10441 dldir=$destdir/`dirname \$dlpath`~
10442 test -d \$dldir || mkdir -p \$dldir~
10443 $install_prog $dir/$dlname \$dldir/$dlname~
10444 chmod a+x \$dldir/$dlname~
10445 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10446 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10447 fi'
10448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10449 dlpath=$dir/\$dldll~
10450 $RM \$dlpath'
10451 shlibpath_overrides_runpath=yes
10452
10453 case $host_os in
10454 cygwin*)
10455 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10456 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10457
10458 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10459 ;;
10460 mingw* | cegcc*)
10461 # MinGW DLLs use traditional 'lib' prefix
10462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10463 ;;
10464 pw32*)
10465 # pw32 DLLs use 'pw' prefix rather than 'lib'
10466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10467 ;;
10468 esac
10469 dynamic_linker='Win32 ld.exe'
10470 ;;
10471
10472 *,cl*)
10473 # Native MSVC
10474 libname_spec='$name'
10475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10476 library_names_spec='${libname}.dll.lib'
10477
10478 case $build_os in
10479 mingw*)
10480 sys_lib_search_path_spec=
10481 lt_save_ifs=$IFS
10482 IFS=';'
10483 for lt_path in $LIB
10484 do
10485 IFS=$lt_save_ifs
10486 # Let DOS variable expansion print the short 8.3 style file name.
10487 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10488 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10489 done
10490 IFS=$lt_save_ifs
10491 # Convert to MSYS style.
10492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10493 ;;
10494 cygwin*)
10495 # Convert to unix form, then to dos form, then back to unix form
10496 # but this time dos style (no spaces!) so that the unix form looks
10497 # like /cygdrive/c/PROGRA~1:/cygdr...
10498 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10499 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10500 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10501 ;;
10502 *)
10503 sys_lib_search_path_spec="$LIB"
10504 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10505 # It is most probably a Windows format PATH.
10506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10507 else
10508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10509 fi
10510 # FIXME: find the short name or the path components, as spaces are
10511 # common. (e.g. "Program Files" -> "PROGRA~1")
10512 ;;
10513 esac
10514
10515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10516 postinstall_cmds='base_file=`basename \${file}`~
10517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10518 dldir=$destdir/`dirname \$dlpath`~
10519 test -d \$dldir || mkdir -p \$dldir~
10520 $install_prog $dir/$dlname \$dldir/$dlname'
10521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10522 dlpath=$dir/\$dldll~
10523 $RM \$dlpath'
10524 shlibpath_overrides_runpath=yes
10525 dynamic_linker='Win32 link.exe'
10526 ;;
10527
10528 *)
10529 # Assume MSVC wrapper
10530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10531 dynamic_linker='Win32 ld.exe'
10532 ;;
10533 esac
10534 # FIXME: first we should search . and the directory the executable is in
10535 shlibpath_var=PATH
10536 ;;
10537
10538darwin* | rhapsody*)
10539 dynamic_linker="$host_os dyld"
10540 version_type=darwin
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10544 soname_spec='${libname}${release}${major}$shared_ext'
10545 shlibpath_overrides_runpath=yes
10546 shlibpath_var=DYLD_LIBRARY_PATH
10547 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10548
10549 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10550 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10551 ;;
10552
10553dgux*)
10554 version_type=linux # correct to gnu/linux during the next big refactor
10555 need_lib_prefix=no
10556 need_version=no
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 shlibpath_var=LD_LIBRARY_PATH
10560 ;;
10561
10562freebsd* | dragonfly*)
10563 # DragonFly does not have aout. When/if they implement a new
10564 # versioning mechanism, adjust this.
10565 if test -x /usr/bin/objformat; then
10566 objformat=`/usr/bin/objformat`
10567 else
10568 case $host_os in
10569 freebsd[23].*) objformat=aout ;;
10570 *) objformat=elf ;;
10571 esac
10572 fi
10573 version_type=freebsd-$objformat
10574 case $version_type in
10575 freebsd-elf*)
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10577 need_version=no
10578 need_lib_prefix=no
10579 ;;
10580 freebsd-*)
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10582 need_version=yes
10583 ;;
10584 esac
10585 shlibpath_var=LD_LIBRARY_PATH
10586 case $host_os in
10587 freebsd2.*)
10588 shlibpath_overrides_runpath=yes
10589 ;;
10590 freebsd3.[01]* | freebsdelf3.[01]*)
10591 shlibpath_overrides_runpath=yes
10592 hardcode_into_libs=yes
10593 ;;
10594 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10595 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10596 shlibpath_overrides_runpath=no
10597 hardcode_into_libs=yes
10598 ;;
10599 *) # from 4.6 on, and DragonFly
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 ;;
10603 esac
10604 ;;
10605
10606gnu*)
10607 version_type=linux # correct to gnu/linux during the next big refactor
10608 need_lib_prefix=no
10609 need_version=no
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=no
10614 hardcode_into_libs=yes
10615 ;;
10616
10617haiku*)
10618 version_type=linux # correct to gnu/linux during the next big refactor
10619 need_lib_prefix=no
10620 need_version=no
10621 dynamic_linker="$host_os runtime_loader"
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10627 hardcode_into_libs=yes
10628 ;;
10629
10630hpux9* | hpux10* | hpux11*)
10631 # Give a soname corresponding to the major version so that dld.sl refuses to
10632 # link against other versions.
10633 version_type=sunos
10634 need_lib_prefix=no
10635 need_version=no
10636 case $host_cpu in
10637 ia64*)
10638 shrext_cmds='.so'
10639 hardcode_into_libs=yes
10640 dynamic_linker="$host_os dld.so"
10641 shlibpath_var=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 if test "X$HPUX_IA64_MODE" = X32; then
10646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10647 else
10648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10649 fi
10650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10651 ;;
10652 hppa*64*)
10653 shrext_cmds='.sl'
10654 hardcode_into_libs=yes
10655 dynamic_linker="$host_os dld.sl"
10656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10662 ;;
10663 *)
10664 shrext_cmds='.sl'
10665 dynamic_linker="$host_os dld.sl"
10666 shlibpath_var=SHLIB_PATH
10667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 ;;
10671 esac
10672 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10673 postinstall_cmds='chmod 555 $lib'
10674 # or fails outright, so override atomically:
10675 install_override_mode=555
10676 ;;
10677
10678interix[3-9]*)
10679 version_type=linux # correct to gnu/linux during the next big refactor
10680 need_lib_prefix=no
10681 need_version=no
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=no
10687 hardcode_into_libs=yes
10688 ;;
10689
10690irix5* | irix6* | nonstopux*)
10691 case $host_os in
10692 nonstopux*) version_type=nonstopux ;;
10693 *)
10694 if test "$lt_cv_prog_gnu_ld" = yes; then
10695 version_type=linux # correct to gnu/linux during the next big refactor
10696 else
10697 version_type=irix
10698 fi ;;
10699 esac
10700 need_lib_prefix=no
10701 need_version=no
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10704 case $host_os in
10705 irix5* | nonstopux*)
10706 libsuff= shlibsuff=
10707 ;;
10708 *)
10709 case $LD in # libtool.m4 will add one of these switches to LD
10710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10711 libsuff= shlibsuff= libmagic=32-bit;;
10712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10713 libsuff=32 shlibsuff=N32 libmagic=N32;;
10714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10716 *) libsuff= shlibsuff= libmagic=never-match;;
10717 esac
10718 ;;
10719 esac
10720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10721 shlibpath_overrides_runpath=no
10722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10724 hardcode_into_libs=yes
10725 ;;
10726
10727# No shared lib support for Linux oldld, aout, or coff.
10728linux*oldld* | linux*aout* | linux*coff*)
10729 dynamic_linker=no
10730 ;;
10731
10732# This must be glibc/ELF.
10733linux* | k*bsd*-gnu | kopensolaris*-gnu)
10734 version_type=linux # correct to gnu/linux during the next big refactor
10735 need_lib_prefix=no
10736 need_version=no
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 shlibpath_overrides_runpath=no
10742
10743 # Some binutils ld are patched to set DT_RUNPATH
10744 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746else
10747 lt_cv_shlibpath_overrides_runpath=no
10748 save_LDFLAGS=$LDFLAGS
10749 save_libdir=$libdir
10750 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10751 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753/* end confdefs.h. */
10754
10755int
10756main ()
10757{
10758
10759 ;
10760 return 0;
10761}
10762_ACEOF
10763if ac_fn_c_try_link "$LINENO"; then :
10764 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10765 lt_cv_shlibpath_overrides_runpath=yes
10766fi
10767fi
10768rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LDFLAGS=$save_LDFLAGS
10771 libdir=$save_libdir
10772
10773fi
10774
10775 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10776
10777 # This implies no fast_install, which is unacceptable.
10778 # Some rework will be needed to allow for fast_install
10779 # before this can be enabled.
10780 hardcode_into_libs=yes
10781
10782 # Append ld.so.conf contents to the search path
10783 if test -f /etc/ld.so.conf; then
10784 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' ' '`
10785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10786 fi
10787
10788 # We used to test for /lib/ld.so.1 and disable shared libraries on
10789 # powerpc, because MkLinux only supported shared libraries with the
10790 # GNU dynamic linker. Since this was broken with cross compilers,
10791 # most powerpc-linux boxes support dynamic linking these days and
10792 # people can always --disable-shared, the test was removed, and we
10793 # assume the GNU/Linux dynamic linker is in use.
10794 dynamic_linker='GNU/Linux ld.so'
10795 ;;
10796
10797netbsd*)
10798 version_type=sunos
10799 need_lib_prefix=no
10800 need_version=no
10801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10804 dynamic_linker='NetBSD (a.out) ld.so'
10805 else
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 dynamic_linker='NetBSD ld.elf_so'
10809 fi
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=yes
10812 hardcode_into_libs=yes
10813 ;;
10814
10815newsos6)
10816 version_type=linux # correct to gnu/linux during the next big refactor
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 shlibpath_overrides_runpath=yes
10820 ;;
10821
10822*nto* | *qnx*)
10823 version_type=qnx
10824 need_lib_prefix=no
10825 need_version=no
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=no
10830 hardcode_into_libs=yes
10831 dynamic_linker='ldqnx.so'
10832 ;;
10833
10834openbsd*)
10835 version_type=sunos
10836 sys_lib_dlsearch_path_spec="/usr/lib"
10837 need_lib_prefix=no
10838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10839 case $host_os in
10840 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10841 *) need_version=no ;;
10842 esac
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10847 case $host_os in
10848 openbsd2.[89] | openbsd2.[89].*)
10849 shlibpath_overrides_runpath=no
10850 ;;
10851 *)
10852 shlibpath_overrides_runpath=yes
10853 ;;
10854 esac
10855 else
10856 shlibpath_overrides_runpath=yes
10857 fi
10858 ;;
10859
10860os2*)
10861 libname_spec='$name'
10862 shrext_cmds=".dll"
10863 need_lib_prefix=no
10864 library_names_spec='$libname${shared_ext} $libname.a'
10865 dynamic_linker='OS/2 ld.exe'
10866 shlibpath_var=LIBPATH
10867 ;;
10868
10869osf3* | osf4* | osf5*)
10870 version_type=osf
10871 need_lib_prefix=no
10872 need_version=no
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10878 ;;
10879
10880rdos*)
10881 dynamic_linker=no
10882 ;;
10883
10884solaris*)
10885 version_type=linux # correct to gnu/linux during the next big refactor
10886 need_lib_prefix=no
10887 need_version=no
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes
10892 hardcode_into_libs=yes
10893 # ldd complains unless libraries are executable
10894 postinstall_cmds='chmod +x $lib'
10895 ;;
10896
10897sunos4*)
10898 version_type=sunos
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 if test "$with_gnu_ld" = yes; then
10904 need_lib_prefix=no
10905 fi
10906 need_version=yes
10907 ;;
10908
10909sysv4 | sysv4.3*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 case $host_vendor in
10915 sni)
10916 shlibpath_overrides_runpath=no
10917 need_lib_prefix=no
10918 runpath_var=LD_RUN_PATH
10919 ;;
10920 siemens)
10921 need_lib_prefix=no
10922 ;;
10923 motorola)
10924 need_lib_prefix=no
10925 need_version=no
10926 shlibpath_overrides_runpath=no
10927 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10928 ;;
10929 esac
10930 ;;
10931
10932sysv4*MP*)
10933 if test -d /usr/nec ;then
10934 version_type=linux # correct to gnu/linux during the next big refactor
10935 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10936 soname_spec='$libname${shared_ext}.$major'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 fi
10939 ;;
10940
10941sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10942 version_type=freebsd-elf
10943 need_lib_prefix=no
10944 need_version=no
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10950 if test "$with_gnu_ld" = yes; then
10951 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10952 else
10953 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10954 case $host_os in
10955 sco3.2v5*)
10956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10957 ;;
10958 esac
10959 fi
10960 sys_lib_dlsearch_path_spec='/usr/lib'
10961 ;;
10962
10963tpf*)
10964 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=no
10971 hardcode_into_libs=yes
10972 ;;
10973
10974uts4*)
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 ;;
10980
10981*)
10982 dynamic_linker=no
10983 ;;
10984esac
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10986$as_echo "$dynamic_linker" >&6; }
10987test "$dynamic_linker" = no && can_build_shared=no
10988
10989variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10990if test "$GCC" = yes; then
10991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10992fi
10993
10994if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10995 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10996fi
10997if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10998 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10999fi
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11093$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11094hardcode_action=
11095if test -n "$hardcode_libdir_flag_spec" ||
11096 test -n "$runpath_var" ||
11097 test "X$hardcode_automatic" = "Xyes" ; then
11098
11099 # We can hardcode non-existent directories.
11100 if test "$hardcode_direct" != no &&
11101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11102 # have to relink, otherwise we might link with an installed library
11103 # when we should be linking with a yet-to-be-installed one
11104 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11105 test "$hardcode_minus_L" != no; then
11106 # Linking always hardcodes the temporary library directory.
11107 hardcode_action=relink
11108 else
11109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11110 hardcode_action=immediate
11111 fi
11112else
11113 # We cannot hardcode anything, or else we can only hardcode existing
11114 # directories.
11115 hardcode_action=unsupported
11116fi
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11118$as_echo "$hardcode_action" >&6; }
11119
11120if test "$hardcode_action" = relink ||
11121 test "$inherit_rpath" = yes; then
11122 # Fast installation is not supported
11123 enable_fast_install=no
11124elif test "$shlibpath_overrides_runpath" = yes ||
11125 test "$enable_shared" = no; then
11126 # Fast installation is not necessary
11127 enable_fast_install=needless
11128fi
11129
11130
11131
11132
11133
11134
11135 if test "x$enable_dlopen" != xyes; then
11136 enable_dlopen=unknown
11137 enable_dlopen_self=unknown
11138 enable_dlopen_self_static=unknown
11139else
11140 lt_cv_dlopen=no
11141 lt_cv_dlopen_libs=
11142
11143 case $host_os in
11144 beos*)
11145 lt_cv_dlopen="load_add_on"
11146 lt_cv_dlopen_libs=
11147 lt_cv_dlopen_self=yes
11148 ;;
11149
11150 mingw* | pw32* | cegcc*)
11151 lt_cv_dlopen="LoadLibrary"
11152 lt_cv_dlopen_libs=
11153 ;;
11154
11155 cygwin*)
11156 lt_cv_dlopen="dlopen"
11157 lt_cv_dlopen_libs=
11158 ;;
11159
11160 darwin*)
11161 # if libdl is installed we need to link against it
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11163$as_echo_n "checking for dlopen in -ldl... " >&6; }
11164if ${ac_cv_lib_dl_dlopen+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166else
11167 ac_check_lib_save_LIBS=$LIBS
11168LIBS="-ldl $LIBS"
11169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170/* end confdefs.h. */
11171
11172/* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175#ifdef __cplusplus
11176extern "C"
11177#endif
11178char dlopen ();
11179int
11180main ()
11181{
11182return dlopen ();
11183 ;
11184 return 0;
11185}
11186_ACEOF
11187if ac_fn_c_try_link "$LINENO"; then :
11188 ac_cv_lib_dl_dlopen=yes
11189else
11190 ac_cv_lib_dl_dlopen=no
11191fi
11192rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194LIBS=$ac_check_lib_save_LIBS
11195fi
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11197$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11198if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11200else
11201
11202 lt_cv_dlopen="dyld"
11203 lt_cv_dlopen_libs=
11204 lt_cv_dlopen_self=yes
11205
11206fi
11207
11208 ;;
11209
11210 *)
11211 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11212if test "x$ac_cv_func_shl_load" = xyes; then :
11213 lt_cv_dlopen="shl_load"
11214else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11216$as_echo_n "checking for shl_load in -ldld... " >&6; }
11217if ${ac_cv_lib_dld_shl_load+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219else
11220 ac_check_lib_save_LIBS=$LIBS
11221LIBS="-ldld $LIBS"
11222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223/* end confdefs.h. */
11224
11225/* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11228#ifdef __cplusplus
11229extern "C"
11230#endif
11231char shl_load ();
11232int
11233main ()
11234{
11235return shl_load ();
11236 ;
11237 return 0;
11238}
11239_ACEOF
11240if ac_fn_c_try_link "$LINENO"; then :
11241 ac_cv_lib_dld_shl_load=yes
11242else
11243 ac_cv_lib_dld_shl_load=no
11244fi
11245rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247LIBS=$ac_check_lib_save_LIBS
11248fi
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11250$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11251if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11253else
11254 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11255if test "x$ac_cv_func_dlopen" = xyes; then :
11256 lt_cv_dlopen="dlopen"
11257else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11259$as_echo_n "checking for dlopen in -ldl... " >&6; }
11260if ${ac_cv_lib_dl_dlopen+:} false; then :
11261 $as_echo_n "(cached) " >&6
11262else
11263 ac_check_lib_save_LIBS=$LIBS
11264LIBS="-ldl $LIBS"
11265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266/* end confdefs.h. */
11267
11268/* Override any GCC internal prototype to avoid an error.
11269 Use char because int might match the return type of a GCC
11270 builtin and then its argument prototype would still apply. */
11271#ifdef __cplusplus
11272extern "C"
11273#endif
11274char dlopen ();
11275int
11276main ()
11277{
11278return dlopen ();
11279 ;
11280 return 0;
11281}
11282_ACEOF
11283if ac_fn_c_try_link "$LINENO"; then :
11284 ac_cv_lib_dl_dlopen=yes
11285else
11286 ac_cv_lib_dl_dlopen=no
11287fi
11288rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290LIBS=$ac_check_lib_save_LIBS
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11293$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11294if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11296else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11298$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11299if ${ac_cv_lib_svld_dlopen+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301else
11302 ac_check_lib_save_LIBS=$LIBS
11303LIBS="-lsvld $LIBS"
11304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305/* end confdefs.h. */
11306
11307/* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11310#ifdef __cplusplus
11311extern "C"
11312#endif
11313char dlopen ();
11314int
11315main ()
11316{
11317return dlopen ();
11318 ;
11319 return 0;
11320}
11321_ACEOF
11322if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_lib_svld_dlopen=yes
11324else
11325 ac_cv_lib_svld_dlopen=no
11326fi
11327rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329LIBS=$ac_check_lib_save_LIBS
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11332$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11333if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11335else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11337$as_echo_n "checking for dld_link in -ldld... " >&6; }
11338if ${ac_cv_lib_dld_dld_link+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340else
11341 ac_check_lib_save_LIBS=$LIBS
11342LIBS="-ldld $LIBS"
11343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char dld_link ();
11353int
11354main ()
11355{
11356return dld_link ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dld_dld_link=yes
11363else
11364 ac_cv_lib_dld_dld_link=no
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368LIBS=$ac_check_lib_save_LIBS
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11371$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11372if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11373 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11374fi
11375
11376
11377fi
11378
11379
11380fi
11381
11382
11383fi
11384
11385
11386fi
11387
11388
11389fi
11390
11391 ;;
11392 esac
11393
11394 if test "x$lt_cv_dlopen" != xno; then
11395 enable_dlopen=yes
11396 else
11397 enable_dlopen=no
11398 fi
11399
11400 case $lt_cv_dlopen in
11401 dlopen)
11402 save_CPPFLAGS="$CPPFLAGS"
11403 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11404
11405 save_LDFLAGS="$LDFLAGS"
11406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11407
11408 save_LIBS="$LIBS"
11409 LIBS="$lt_cv_dlopen_libs $LIBS"
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11412$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11413if ${lt_cv_dlopen_self+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415else
11416 if test "$cross_compiling" = yes; then :
11417 lt_cv_dlopen_self=cross
11418else
11419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11420 lt_status=$lt_dlunknown
11421 cat > conftest.$ac_ext <<_LT_EOF
11422#line $LINENO "configure"
11423#include "confdefs.h"
11424
11425#if HAVE_DLFCN_H
11426#include <dlfcn.h>
11427#endif
11428
11429#include <stdio.h>
11430
11431#ifdef RTLD_GLOBAL
11432# define LT_DLGLOBAL RTLD_GLOBAL
11433#else
11434# ifdef DL_GLOBAL
11435# define LT_DLGLOBAL DL_GLOBAL
11436# else
11437# define LT_DLGLOBAL 0
11438# endif
11439#endif
11440
11441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11442 find out it does not work in some platform. */
11443#ifndef LT_DLLAZY_OR_NOW
11444# ifdef RTLD_LAZY
11445# define LT_DLLAZY_OR_NOW RTLD_LAZY
11446# else
11447# ifdef DL_LAZY
11448# define LT_DLLAZY_OR_NOW DL_LAZY
11449# else
11450# ifdef RTLD_NOW
11451# define LT_DLLAZY_OR_NOW RTLD_NOW
11452# else
11453# ifdef DL_NOW
11454# define LT_DLLAZY_OR_NOW DL_NOW
11455# else
11456# define LT_DLLAZY_OR_NOW 0
11457# endif
11458# endif
11459# endif
11460# endif
11461#endif
11462
11463/* When -fvisbility=hidden is used, assume the code has been annotated
11464 correspondingly for the symbols needed. */
11465#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11466int fnord () __attribute__((visibility("default")));
11467#endif
11468
11469int fnord () { return 42; }
11470int main ()
11471{
11472 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11473 int status = $lt_dlunknown;
11474
11475 if (self)
11476 {
11477 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11478 else
11479 {
11480 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11481 else puts (dlerror ());
11482 }
11483 /* dlclose (self); */
11484 }
11485 else
11486 puts (dlerror ());
11487
11488 return status;
11489}
11490_LT_EOF
11491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11492 (eval $ac_link) 2>&5
11493 ac_status=$?
11494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11495 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11496 (./conftest; exit; ) >&5 2>/dev/null
11497 lt_status=$?
11498 case x$lt_status in
11499 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11500 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11501 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11502 esac
11503 else :
11504 # compilation failed
11505 lt_cv_dlopen_self=no
11506 fi
11507fi
11508rm -fr conftest*
11509
11510
11511fi
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11513$as_echo "$lt_cv_dlopen_self" >&6; }
11514
11515 if test "x$lt_cv_dlopen_self" = xyes; then
11516 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11518$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11519if ${lt_cv_dlopen_self_static+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521else
11522 if test "$cross_compiling" = yes; then :
11523 lt_cv_dlopen_self_static=cross
11524else
11525 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11526 lt_status=$lt_dlunknown
11527 cat > conftest.$ac_ext <<_LT_EOF
11528#line $LINENO "configure"
11529#include "confdefs.h"
11530
11531#if HAVE_DLFCN_H
11532#include <dlfcn.h>
11533#endif
11534
11535#include <stdio.h>
11536
11537#ifdef RTLD_GLOBAL
11538# define LT_DLGLOBAL RTLD_GLOBAL
11539#else
11540# ifdef DL_GLOBAL
11541# define LT_DLGLOBAL DL_GLOBAL
11542# else
11543# define LT_DLGLOBAL 0
11544# endif
11545#endif
11546
11547/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11548 find out it does not work in some platform. */
11549#ifndef LT_DLLAZY_OR_NOW
11550# ifdef RTLD_LAZY
11551# define LT_DLLAZY_OR_NOW RTLD_LAZY
11552# else
11553# ifdef DL_LAZY
11554# define LT_DLLAZY_OR_NOW DL_LAZY
11555# else
11556# ifdef RTLD_NOW
11557# define LT_DLLAZY_OR_NOW RTLD_NOW
11558# else
11559# ifdef DL_NOW
11560# define LT_DLLAZY_OR_NOW DL_NOW
11561# else
11562# define LT_DLLAZY_OR_NOW 0
11563# endif
11564# endif
11565# endif
11566# endif
11567#endif
11568
11569/* When -fvisbility=hidden is used, assume the code has been annotated
11570 correspondingly for the symbols needed. */
11571#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11572int fnord () __attribute__((visibility("default")));
11573#endif
11574
11575int fnord () { return 42; }
11576int main ()
11577{
11578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11579 int status = $lt_dlunknown;
11580
11581 if (self)
11582 {
11583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11584 else
11585 {
11586 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11587 else puts (dlerror ());
11588 }
11589 /* dlclose (self); */
11590 }
11591 else
11592 puts (dlerror ());
11593
11594 return status;
11595}
11596_LT_EOF
11597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11598 (eval $ac_link) 2>&5
11599 ac_status=$?
11600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11601 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11602 (./conftest; exit; ) >&5 2>/dev/null
11603 lt_status=$?
11604 case x$lt_status in
11605 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11606 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11607 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11608 esac
11609 else :
11610 # compilation failed
11611 lt_cv_dlopen_self_static=no
11612 fi
11613fi
11614rm -fr conftest*
11615
11616
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11619$as_echo "$lt_cv_dlopen_self_static" >&6; }
11620 fi
11621
11622 CPPFLAGS="$save_CPPFLAGS"
11623 LDFLAGS="$save_LDFLAGS"
11624 LIBS="$save_LIBS"
11625 ;;
11626 esac
11627
11628 case $lt_cv_dlopen_self in
11629 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11630 *) enable_dlopen_self=unknown ;;
11631 esac
11632
11633 case $lt_cv_dlopen_self_static in
11634 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11635 *) enable_dlopen_self_static=unknown ;;
11636 esac
11637fi
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655striplib=
11656old_striplib=
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11658$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11659if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11660 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11661 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663$as_echo "yes" >&6; }
11664else
11665# FIXME - insert some real tests, host_os isn't really good enough
11666 case $host_os in
11667 darwin*)
11668 if test -n "$STRIP" ; then
11669 striplib="$STRIP -x"
11670 old_striplib="$STRIP -S"
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672$as_echo "yes" >&6; }
11673 else
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
11676 fi
11677 ;;
11678 *)
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680$as_echo "no" >&6; }
11681 ;;
11682 esac
11683fi
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696 # Report which library types will actually be built
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11698$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11700$as_echo "$can_build_shared" >&6; }
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11703$as_echo_n "checking whether to build shared libraries... " >&6; }
11704 test "$can_build_shared" = "no" && enable_shared=no
11705
11706 # On AIX, shared libraries and static libraries use the same namespace, and
11707 # are all built from PIC.
11708 case $host_os in
11709 aix3*)
11710 test "$enable_shared" = yes && enable_static=no
11711 if test -n "$RANLIB"; then
11712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11713 postinstall_cmds='$RANLIB $lib'
11714 fi
11715 ;;
11716
11717 aix[4-9]*)
11718 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11719 test "$enable_shared" = yes && enable_static=no
11720 fi
11721 ;;
11722 esac
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11724$as_echo "$enable_shared" >&6; }
11725
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11727$as_echo_n "checking whether to build static libraries... " >&6; }
11728 # Make sure either enable_shared or enable_static is yes.
11729 test "$enable_shared" = yes || enable_static=yes
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11731$as_echo "$enable_static" >&6; }
11732
11733
11734
11735
11736fi
11737ac_ext=cpp
11738ac_cpp='$CXXCPP $CPPFLAGS'
11739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11742
11743CC="$lt_save_CC"
11744
11745 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11746 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11747 (test "X$CXX" != "Xg++"))) ; then
11748 ac_ext=cpp
11749ac_cpp='$CXXCPP $CPPFLAGS'
11750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11754$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11755if test -z "$CXXCPP"; then
11756 if ${ac_cv_prog_CXXCPP+:} false; then :
11757 $as_echo_n "(cached) " >&6
11758else
11759 # Double quotes because CXXCPP needs to be expanded
11760 for CXXCPP in "$CXX -E" "/lib/cpp"
11761 do
11762 ac_preproc_ok=false
11763for ac_cxx_preproc_warn_flag in '' yes
11764do
11765 # Use a header file that comes with gcc, so configuring glibc
11766 # with a fresh cross-compiler works.
11767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 # <limits.h> exists even on freestanding compilers.
11769 # On the NeXT, cc -E runs the code through the compiler's parser,
11770 # not just through cpp. "Syntax error" is here to catch this case.
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772/* end confdefs.h. */
11773#ifdef __STDC__
11774# include <limits.h>
11775#else
11776# include <assert.h>
11777#endif
11778 Syntax error
11779_ACEOF
11780if ac_fn_cxx_try_cpp "$LINENO"; then :
11781
11782else
11783 # Broken: fails on valid input.
11784continue
11785fi
11786rm -f conftest.err conftest.i conftest.$ac_ext
11787
11788 # OK, works on sane cases. Now check whether nonexistent headers
11789 # can be detected and how.
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h. */
11792#include <ac_nonexistent.h>
11793_ACEOF
11794if ac_fn_cxx_try_cpp "$LINENO"; then :
11795 # Broken: success on invalid input.
11796continue
11797else
11798 # Passes both tests.
11799ac_preproc_ok=:
11800break
11801fi
11802rm -f conftest.err conftest.i conftest.$ac_ext
11803
11804done
11805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11806rm -f conftest.i conftest.err conftest.$ac_ext
11807if $ac_preproc_ok; then :
11808 break
11809fi
11810
11811 done
11812 ac_cv_prog_CXXCPP=$CXXCPP
11813
11814fi
11815 CXXCPP=$ac_cv_prog_CXXCPP
11816else
11817 ac_cv_prog_CXXCPP=$CXXCPP
11818fi
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11820$as_echo "$CXXCPP" >&6; }
11821ac_preproc_ok=false
11822for ac_cxx_preproc_warn_flag in '' yes
11823do
11824 # Use a header file that comes with gcc, so configuring glibc
11825 # with a fresh cross-compiler works.
11826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 # <limits.h> exists even on freestanding compilers.
11828 # On the NeXT, cc -E runs the code through the compiler's parser,
11829 # not just through cpp. "Syntax error" is here to catch this case.
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831/* end confdefs.h. */
11832#ifdef __STDC__
11833# include <limits.h>
11834#else
11835# include <assert.h>
11836#endif
11837 Syntax error
11838_ACEOF
11839if ac_fn_cxx_try_cpp "$LINENO"; then :
11840
11841else
11842 # Broken: fails on valid input.
11843continue
11844fi
11845rm -f conftest.err conftest.i conftest.$ac_ext
11846
11847 # OK, works on sane cases. Now check whether nonexistent headers
11848 # can be detected and how.
11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850/* end confdefs.h. */
11851#include <ac_nonexistent.h>
11852_ACEOF
11853if ac_fn_cxx_try_cpp "$LINENO"; then :
11854 # Broken: success on invalid input.
11855continue
11856else
11857 # Passes both tests.
11858ac_preproc_ok=:
11859break
11860fi
11861rm -f conftest.err conftest.i conftest.$ac_ext
11862
11863done
11864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11865rm -f conftest.i conftest.err conftest.$ac_ext
11866if $ac_preproc_ok; then :
11867
11868else
11869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11871as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11872See \`config.log' for more details" "$LINENO" 5; }
11873fi
11874
11875ac_ext=cpp
11876ac_cpp='$CXXCPP $CPPFLAGS'
11877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11880
11881else
11882 _lt_caught_CXX_error=yes
11883fi
11884
11885ac_ext=cpp
11886ac_cpp='$CXXCPP $CPPFLAGS'
11887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11890
11891archive_cmds_need_lc_CXX=no
11892allow_undefined_flag_CXX=
11893always_export_symbols_CXX=no
11894archive_expsym_cmds_CXX=
11895compiler_needs_object_CXX=no
11896export_dynamic_flag_spec_CXX=
11897hardcode_direct_CXX=no
11898hardcode_direct_absolute_CXX=no
11899hardcode_libdir_flag_spec_CXX=
11900hardcode_libdir_separator_CXX=
11901hardcode_minus_L_CXX=no
11902hardcode_shlibpath_var_CXX=unsupported
11903hardcode_automatic_CXX=no
11904inherit_rpath_CXX=no
11905module_cmds_CXX=
11906module_expsym_cmds_CXX=
11907link_all_deplibs_CXX=unknown
11908old_archive_cmds_CXX=$old_archive_cmds
11909reload_flag_CXX=$reload_flag
11910reload_cmds_CXX=$reload_cmds
11911no_undefined_flag_CXX=
11912whole_archive_flag_spec_CXX=
11913enable_shared_with_static_runtimes_CXX=no
11914
11915# Source file extension for C++ test sources.
11916ac_ext=cpp
11917
11918# Object file extension for compiled C++ test sources.
11919objext=o
11920objext_CXX=$objext
11921
11922# No sense in running all these tests if we already determined that
11923# the CXX compiler isn't working. Some variables (like enable_shared)
11924# are currently assumed to apply to all compilers on this platform,
11925# and will be corrupted by setting them based on a non-working compiler.
11926if test "$_lt_caught_CXX_error" != yes; then
11927 # Code to be used in simple compile tests
11928 lt_simple_compile_test_code="int some_variable = 0;"
11929
11930 # Code to be used in simple link tests
11931 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11932
11933 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11934
11935
11936
11937
11938
11939
11940# If no C compiler was specified, use CC.
11941LTCC=${LTCC-"$CC"}
11942
11943# If no C compiler flags were specified, use CFLAGS.
11944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11945
11946# Allow CC to be a program name with arguments.
11947compiler=$CC
11948
11949
11950 # save warnings/boilerplate of simple test code
11951 ac_outfile=conftest.$ac_objext
11952echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11953eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11954_lt_compiler_boilerplate=`cat conftest.err`
11955$RM conftest*
11956
11957 ac_outfile=conftest.$ac_objext
11958echo "$lt_simple_link_test_code" >conftest.$ac_ext
11959eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11960_lt_linker_boilerplate=`cat conftest.err`
11961$RM -r conftest*
11962
11963
11964 # Allow CC to be a program name with arguments.
11965 lt_save_CC=$CC
11966 lt_save_CFLAGS=$CFLAGS
11967 lt_save_LD=$LD
11968 lt_save_GCC=$GCC
11969 GCC=$GXX
11970 lt_save_with_gnu_ld=$with_gnu_ld
11971 lt_save_path_LD=$lt_cv_path_LD
11972 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11973 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11974 else
11975 $as_unset lt_cv_prog_gnu_ld
11976 fi
11977 if test -n "${lt_cv_path_LDCXX+set}"; then
11978 lt_cv_path_LD=$lt_cv_path_LDCXX
11979 else
11980 $as_unset lt_cv_path_LD
11981 fi
11982 test -z "${LDCXX+set}" || LD=$LDCXX
11983 CC=${CXX-"c++"}
11984 CFLAGS=$CXXFLAGS
11985 compiler=$CC
11986 compiler_CXX=$CC
11987 for cc_temp in $compiler""; do
11988 case $cc_temp in
11989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11991 \-*) ;;
11992 *) break;;
11993 esac
11994done
11995cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11996
11997
11998 if test -n "$compiler"; then
11999 # We don't want -fno-exception when compiling C++ code, so set the
12000 # no_builtin_flag separately
12001 if test "$GXX" = yes; then
12002 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12003 else
12004 lt_prog_compiler_no_builtin_flag_CXX=
12005 fi
12006
12007 if test "$GXX" = yes; then
12008 # Set up default GNU C++ configuration
12009
12010
12011
12012# Check whether --with-gnu-ld was given.
12013if test "${with_gnu_ld+set}" = set; then :
12014 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12015else
12016 with_gnu_ld=no
12017fi
12018
12019ac_prog=ld
12020if test "$GCC" = yes; then
12021 # Check if gcc -print-prog-name=ld gives a path.
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12023$as_echo_n "checking for ld used by $CC... " >&6; }
12024 case $host in
12025 *-*-mingw*)
12026 # gcc leaves a trailing carriage return which upsets mingw
12027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12028 *)
12029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12030 esac
12031 case $ac_prog in
12032 # Accept absolute paths.
12033 [\\/]* | ?:[\\/]*)
12034 re_direlt='/[^/][^/]*/\.\./'
12035 # Canonicalize the pathname of ld
12036 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12037 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12038 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12039 done
12040 test -z "$LD" && LD="$ac_prog"
12041 ;;
12042 "")
12043 # If it fails, then pretend we aren't using GCC.
12044 ac_prog=ld
12045 ;;
12046 *)
12047 # If it is relative, then search for the first ld in PATH.
12048 with_gnu_ld=unknown
12049 ;;
12050 esac
12051elif test "$with_gnu_ld" = yes; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12053$as_echo_n "checking for GNU ld... " >&6; }
12054else
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12056$as_echo_n "checking for non-GNU ld... " >&6; }
12057fi
12058if ${lt_cv_path_LD+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060else
12061 if test -z "$LD"; then
12062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12063 for ac_dir in $PATH; do
12064 IFS="$lt_save_ifs"
12065 test -z "$ac_dir" && ac_dir=.
12066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12067 lt_cv_path_LD="$ac_dir/$ac_prog"
12068 # Check to see if the program is GNU ld. I'd rather use --version,
12069 # but apparently some variants of GNU ld only accept -v.
12070 # Break only if it was the GNU/non-GNU ld that we prefer.
12071 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12072 *GNU* | *'with BFD'*)
12073 test "$with_gnu_ld" != no && break
12074 ;;
12075 *)
12076 test "$with_gnu_ld" != yes && break
12077 ;;
12078 esac
12079 fi
12080 done
12081 IFS="$lt_save_ifs"
12082else
12083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12084fi
12085fi
12086
12087LD="$lt_cv_path_LD"
12088if test -n "$LD"; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12090$as_echo "$LD" >&6; }
12091else
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
12094fi
12095test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12097$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12098if ${lt_cv_prog_gnu_ld+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100else
12101 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12102case `$LD -v 2>&1 </dev/null` in
12103*GNU* | *'with BFD'*)
12104 lt_cv_prog_gnu_ld=yes
12105 ;;
12106*)
12107 lt_cv_prog_gnu_ld=no
12108 ;;
12109esac
12110fi
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12112$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12113with_gnu_ld=$lt_cv_prog_gnu_ld
12114
12115
12116
12117
12118
12119
12120
12121 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12122 # archiving commands below assume that GNU ld is being used.
12123 if test "$with_gnu_ld" = yes; then
12124 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12125 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'
12126
12127 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12129
12130 # If archive_cmds runs LD, not CC, wlarc should be empty
12131 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12132 # investigate it a little bit more. (MM)
12133 wlarc='${wl}'
12134
12135 # ancient GNU ld didn't support --whole-archive et. al.
12136 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12137 $GREP 'no-whole-archive' > /dev/null; then
12138 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12139 else
12140 whole_archive_flag_spec_CXX=
12141 fi
12142 else
12143 with_gnu_ld=no
12144 wlarc=
12145
12146 # A generic and very simple default shared library creation
12147 # command for GNU C++ for the case where it uses the native
12148 # linker, instead of GNU ld. If possible, this setting should
12149 # overridden to take advantage of the native linker features on
12150 # the platform it is being used on.
12151 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12152 fi
12153
12154 # Commands to make compiler produce verbose output that lists
12155 # what "hidden" libraries, object files and flags are used when
12156 # linking a shared library.
12157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12158
12159 else
12160 GXX=no
12161 with_gnu_ld=no
12162 wlarc=
12163 fi
12164
12165 # PORTME: fill in a description of your system's C++ link characteristics
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12167$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12168 ld_shlibs_CXX=yes
12169 case $host_os in
12170 aix3*)
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12173 ;;
12174 aix[4-9]*)
12175 if test "$host_cpu" = ia64; then
12176 # On IA64, the linker does run time linking by default, so we don't
12177 # have to do anything special.
12178 aix_use_runtimelinking=no
12179 exp_sym_flag='-Bexport'
12180 no_entry_flag=""
12181 else
12182 aix_use_runtimelinking=no
12183
12184 # Test if we are trying to use run time linking or normal
12185 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12186 # need to do runtime linking.
12187 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12188 for ld_flag in $LDFLAGS; do
12189 case $ld_flag in
12190 *-brtl*)
12191 aix_use_runtimelinking=yes
12192 break
12193 ;;
12194 esac
12195 done
12196 ;;
12197 esac
12198
12199 exp_sym_flag='-bexport'
12200 no_entry_flag='-bnoentry'
12201 fi
12202
12203 # When large executables or shared objects are built, AIX ld can
12204 # have problems creating the table of contents. If linking a library
12205 # or program results in "error TOC overflow" add -mminimal-toc to
12206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12208
12209 archive_cmds_CXX=''
12210 hardcode_direct_CXX=yes
12211 hardcode_direct_absolute_CXX=yes
12212 hardcode_libdir_separator_CXX=':'
12213 link_all_deplibs_CXX=yes
12214 file_list_spec_CXX='${wl}-f,'
12215
12216 if test "$GXX" = yes; then
12217 case $host_os in aix4.[012]|aix4.[012].*)
12218 # We only want to do this on AIX 4.2 and lower, the check
12219 # below for broken collect2 doesn't work under 4.3+
12220 collect2name=`${CC} -print-prog-name=collect2`
12221 if test -f "$collect2name" &&
12222 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12223 then
12224 # We have reworked collect2
12225 :
12226 else
12227 # We have old collect2
12228 hardcode_direct_CXX=unsupported
12229 # It fails to find uninstalled libraries when the uninstalled
12230 # path is not listed in the libpath. Setting hardcode_minus_L
12231 # to unsupported forces relinking
12232 hardcode_minus_L_CXX=yes
12233 hardcode_libdir_flag_spec_CXX='-L$libdir'
12234 hardcode_libdir_separator_CXX=
12235 fi
12236 esac
12237 shared_flag='-shared'
12238 if test "$aix_use_runtimelinking" = yes; then
12239 shared_flag="$shared_flag "'${wl}-G'
12240 fi
12241 else
12242 # not using gcc
12243 if test "$host_cpu" = ia64; then
12244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12245 # chokes on -Wl,-G. The following line is correct:
12246 shared_flag='-G'
12247 else
12248 if test "$aix_use_runtimelinking" = yes; then
12249 shared_flag='${wl}-G'
12250 else
12251 shared_flag='${wl}-bM:SRE'
12252 fi
12253 fi
12254 fi
12255
12256 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12257 # It seems that -bexpall does not export symbols beginning with
12258 # underscore (_), so it is better to generate a list of symbols to
12259 # export.
12260 always_export_symbols_CXX=yes
12261 if test "$aix_use_runtimelinking" = yes; then
12262 # Warning - without using the other runtime loading flags (-brtl),
12263 # -berok will link without error, but may produce a broken library.
12264 allow_undefined_flag_CXX='-berok'
12265 # Determine the default libpath from the value encoded in an empty
12266 # executable.
12267 if test "${lt_cv_aix_libpath+set}" = set; then
12268 aix_libpath=$lt_cv_aix_libpath
12269else
12270 if ${lt_cv_aix_libpath__CXX+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272else
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274/* end confdefs.h. */
12275
12276int
12277main ()
12278{
12279
12280 ;
12281 return 0;
12282}
12283_ACEOF
12284if ac_fn_cxx_try_link "$LINENO"; then :
12285
12286 lt_aix_libpath_sed='
12287 /Import File Strings/,/^$/ {
12288 /^0/ {
12289 s/^0 *\([^ ]*\) *$/\1/
12290 p
12291 }
12292 }'
12293 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12294 # Check for a 64-bit object if we didn't find anything.
12295 if test -z "$lt_cv_aix_libpath__CXX"; then
12296 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12297 fi
12298fi
12299rm -f core conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 if test -z "$lt_cv_aix_libpath__CXX"; then
12302 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12303 fi
12304
12305fi
12306
12307 aix_libpath=$lt_cv_aix_libpath__CXX
12308fi
12309
12310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12311
12312 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"
12313 else
12314 if test "$host_cpu" = ia64; then
12315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12316 allow_undefined_flag_CXX="-z nodefs"
12317 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"
12318 else
12319 # Determine the default libpath from the value encoded in an
12320 # empty executable.
12321 if test "${lt_cv_aix_libpath+set}" = set; then
12322 aix_libpath=$lt_cv_aix_libpath
12323else
12324 if ${lt_cv_aix_libpath__CXX+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326else
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328/* end confdefs.h. */
12329
12330int
12331main ()
12332{
12333
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338if ac_fn_cxx_try_link "$LINENO"; then :
12339
12340 lt_aix_libpath_sed='
12341 /Import File Strings/,/^$/ {
12342 /^0/ {
12343 s/^0 *\([^ ]*\) *$/\1/
12344 p
12345 }
12346 }'
12347 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12348 # Check for a 64-bit object if we didn't find anything.
12349 if test -z "$lt_cv_aix_libpath__CXX"; then
12350 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12351 fi
12352fi
12353rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355 if test -z "$lt_cv_aix_libpath__CXX"; then
12356 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12357 fi
12358
12359fi
12360
12361 aix_libpath=$lt_cv_aix_libpath__CXX
12362fi
12363
12364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12365 # Warning - without using the other run time loading flags,
12366 # -berok will link without error, but may produce a broken library.
12367 no_undefined_flag_CXX=' ${wl}-bernotok'
12368 allow_undefined_flag_CXX=' ${wl}-berok'
12369 if test "$with_gnu_ld" = yes; then
12370 # We only use this code for GNU lds that support --whole-archive.
12371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12372 else
12373 # Exported symbols can be pulled into shared objects from archives
12374 whole_archive_flag_spec_CXX='$convenience'
12375 fi
12376 archive_cmds_need_lc_CXX=yes
12377 # This is similar to how AIX traditionally builds its shared
12378 # libraries.
12379 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'
12380 fi
12381 fi
12382 ;;
12383
12384 beos*)
12385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12386 allow_undefined_flag_CXX=unsupported
12387 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12388 # support --undefined. This deserves some investigation. FIXME
12389 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12390 else
12391 ld_shlibs_CXX=no
12392 fi
12393 ;;
12394
12395 chorus*)
12396 case $cc_basename in
12397 *)
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12400 ;;
12401 esac
12402 ;;
12403
12404 cygwin* | mingw* | pw32* | cegcc*)
12405 case $GXX,$cc_basename in
12406 ,cl* | no,cl*)
12407 # Native MSVC
12408 # hardcode_libdir_flag_spec is actually meaningless, as there is
12409 # no search path for DLLs.
12410 hardcode_libdir_flag_spec_CXX=' '
12411 allow_undefined_flag_CXX=unsupported
12412 always_export_symbols_CXX=yes
12413 file_list_spec_CXX='@'
12414 # Tell ltmain to make .lib files, not .a files.
12415 libext=lib
12416 # Tell ltmain to make .dll files, not .so files.
12417 shrext_cmds=".dll"
12418 # FIXME: Setting linknames here is a bad hack.
12419 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12420 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12421 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12422 else
12423 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12424 fi~
12425 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12426 linknames='
12427 # The linker will not automatically build a static lib if we build a DLL.
12428 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12429 enable_shared_with_static_runtimes_CXX=yes
12430 # Don't use ranlib
12431 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12432 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12433 lt_tool_outputfile="@TOOL_OUTPUT@"~
12434 case $lt_outputfile in
12435 *.exe|*.EXE) ;;
12436 *)
12437 lt_outputfile="$lt_outputfile.exe"
12438 lt_tool_outputfile="$lt_tool_outputfile.exe"
12439 ;;
12440 esac~
12441 func_to_tool_file "$lt_outputfile"~
12442 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12443 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12444 $RM "$lt_outputfile.manifest";
12445 fi'
12446 ;;
12447 *)
12448 # g++
12449 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12450 # as there is no search path for DLLs.
12451 hardcode_libdir_flag_spec_CXX='-L$libdir'
12452 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12453 allow_undefined_flag_CXX=unsupported
12454 always_export_symbols_CXX=no
12455 enable_shared_with_static_runtimes_CXX=yes
12456
12457 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12458 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'
12459 # If the export-symbols file already is a .def file (1st line
12460 # is EXPORTS), use it as is; otherwise, prepend...
12461 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12462 cp $export_symbols $output_objdir/$soname.def;
12463 else
12464 echo EXPORTS > $output_objdir/$soname.def;
12465 cat $export_symbols >> $output_objdir/$soname.def;
12466 fi~
12467 $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'
12468 else
12469 ld_shlibs_CXX=no
12470 fi
12471 ;;
12472 esac
12473 ;;
12474 darwin* | rhapsody*)
12475
12476
12477 archive_cmds_need_lc_CXX=no
12478 hardcode_direct_CXX=no
12479 hardcode_automatic_CXX=yes
12480 hardcode_shlibpath_var_CXX=unsupported
12481 if test "$lt_cv_ld_force_load" = "yes"; then
12482 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\"`'
12483
12484 else
12485 whole_archive_flag_spec_CXX=''
12486 fi
12487 link_all_deplibs_CXX=yes
12488 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12489 case $cc_basename in
12490 ifort*) _lt_dar_can_shared=yes ;;
12491 *) _lt_dar_can_shared=$GCC ;;
12492 esac
12493 if test "$_lt_dar_can_shared" = "yes"; then
12494 output_verbose_link_cmd=func_echo_all
12495 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}"
12496 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12497 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}"
12498 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}"
12499 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12500 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}"
12501 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}"
12502 fi
12503
12504 else
12505 ld_shlibs_CXX=no
12506 fi
12507
12508 ;;
12509
12510 dgux*)
12511 case $cc_basename in
12512 ec++*)
12513 # FIXME: insert proper C++ library support
12514 ld_shlibs_CXX=no
12515 ;;
12516 ghcx*)
12517 # Green Hills C++ Compiler
12518 # FIXME: insert proper C++ library support
12519 ld_shlibs_CXX=no
12520 ;;
12521 *)
12522 # FIXME: insert proper C++ library support
12523 ld_shlibs_CXX=no
12524 ;;
12525 esac
12526 ;;
12527
12528 freebsd2.*)
12529 # C++ shared libraries reported to be fairly broken before
12530 # switch to ELF
12531 ld_shlibs_CXX=no
12532 ;;
12533
12534 freebsd-elf*)
12535 archive_cmds_need_lc_CXX=no
12536 ;;
12537
12538 freebsd* | dragonfly*)
12539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12540 # conventions
12541 ld_shlibs_CXX=yes
12542 ;;
12543
12544 gnu*)
12545 ;;
12546
12547 haiku*)
12548 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12549 link_all_deplibs_CXX=yes
12550 ;;
12551
12552 hpux9*)
12553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12554 hardcode_libdir_separator_CXX=:
12555 export_dynamic_flag_spec_CXX='${wl}-E'
12556 hardcode_direct_CXX=yes
12557 hardcode_minus_L_CXX=yes # Not in the search PATH,
12558 # but as the default
12559 # location of the library.
12560
12561 case $cc_basename in
12562 CC*)
12563 # FIXME: insert proper C++ library support
12564 ld_shlibs_CXX=no
12565 ;;
12566 aCC*)
12567 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'
12568 # Commands to make compiler produce verbose output that lists
12569 # what "hidden" libraries, object files and flags are used when
12570 # linking a shared library.
12571 #
12572 # There doesn't appear to be a way to prevent this compiler from
12573 # explicitly linking system object files so we need to strip them
12574 # from the output so that they don't get included in the library
12575 # dependencies.
12576 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"'
12577 ;;
12578 *)
12579 if test "$GXX" = yes; then
12580 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'
12581 else
12582 # FIXME: insert proper C++ library support
12583 ld_shlibs_CXX=no
12584 fi
12585 ;;
12586 esac
12587 ;;
12588
12589 hpux10*|hpux11*)
12590 if test $with_gnu_ld = no; then
12591 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12592 hardcode_libdir_separator_CXX=:
12593
12594 case $host_cpu in
12595 hppa*64*|ia64*)
12596 ;;
12597 *)
12598 export_dynamic_flag_spec_CXX='${wl}-E'
12599 ;;
12600 esac
12601 fi
12602 case $host_cpu in
12603 hppa*64*|ia64*)
12604 hardcode_direct_CXX=no
12605 hardcode_shlibpath_var_CXX=no
12606 ;;
12607 *)
12608 hardcode_direct_CXX=yes
12609 hardcode_direct_absolute_CXX=yes
12610 hardcode_minus_L_CXX=yes # Not in the search PATH,
12611 # but as the default
12612 # location of the library.
12613 ;;
12614 esac
12615
12616 case $cc_basename in
12617 CC*)
12618 # FIXME: insert proper C++ library support
12619 ld_shlibs_CXX=no
12620 ;;
12621 aCC*)
12622 case $host_cpu in
12623 hppa*64*)
12624 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12625 ;;
12626 ia64*)
12627 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12628 ;;
12629 *)
12630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12631 ;;
12632 esac
12633 # Commands to make compiler produce verbose output that lists
12634 # what "hidden" libraries, object files and flags are used when
12635 # linking a shared library.
12636 #
12637 # There doesn't appear to be a way to prevent this compiler from
12638 # explicitly linking system object files so we need to strip them
12639 # from the output so that they don't get included in the library
12640 # dependencies.
12641 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"'
12642 ;;
12643 *)
12644 if test "$GXX" = yes; then
12645 if test $with_gnu_ld = no; then
12646 case $host_cpu in
12647 hppa*64*)
12648 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12649 ;;
12650 ia64*)
12651 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12652 ;;
12653 *)
12654 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'
12655 ;;
12656 esac
12657 fi
12658 else
12659 # FIXME: insert proper C++ library support
12660 ld_shlibs_CXX=no
12661 fi
12662 ;;
12663 esac
12664 ;;
12665
12666 interix[3-9]*)
12667 hardcode_direct_CXX=no
12668 hardcode_shlibpath_var_CXX=no
12669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12670 export_dynamic_flag_spec_CXX='${wl}-E'
12671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12672 # Instead, shared libraries are loaded at an image base (0x10000000 by
12673 # default) and relocated if they conflict, which is a slow very memory
12674 # consuming and fragmenting process. To avoid this, we pick a random,
12675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12677 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'
12678 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'
12679 ;;
12680 irix5* | irix6*)
12681 case $cc_basename in
12682 CC*)
12683 # SGI C++
12684 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'
12685
12686 # Archives containing C++ object files must be created using
12687 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12688 # necessary to make sure instantiated templates are included
12689 # in the archive.
12690 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12691 ;;
12692 *)
12693 if test "$GXX" = yes; then
12694 if test "$with_gnu_ld" = no; then
12695 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'
12696 else
12697 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'
12698 fi
12699 fi
12700 link_all_deplibs_CXX=yes
12701 ;;
12702 esac
12703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12704 hardcode_libdir_separator_CXX=:
12705 inherit_rpath_CXX=yes
12706 ;;
12707
12708 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12709 case $cc_basename in
12710 KCC*)
12711 # Kuck and Associates, Inc. (KAI) C++ Compiler
12712
12713 # KCC will only create a shared library if the output file
12714 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12715 # to its proper name (with version) after linking.
12716 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'
12717 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'
12718 # Commands to make compiler produce verbose output that lists
12719 # what "hidden" libraries, object files and flags are used when
12720 # linking a shared library.
12721 #
12722 # There doesn't appear to be a way to prevent this compiler from
12723 # explicitly linking system object files so we need to strip them
12724 # from the output so that they don't get included in the library
12725 # dependencies.
12726 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"'
12727
12728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12730
12731 # Archives containing C++ object files must be created using
12732 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12733 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12734 ;;
12735 icpc* | ecpc* )
12736 # Intel C++
12737 with_gnu_ld=yes
12738 # version 8.0 and above of icpc choke on multiply defined symbols
12739 # if we add $predep_objects and $postdep_objects, however 7.1 and
12740 # earlier do not add the objects themselves.
12741 case `$CC -V 2>&1` in
12742 *"Version 7."*)
12743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744 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'
12745 ;;
12746 *) # Version 8.0 or newer
12747 tmp_idyn=
12748 case $host_cpu in
12749 ia64*) tmp_idyn=' -i_dynamic';;
12750 esac
12751 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12752 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'
12753 ;;
12754 esac
12755 archive_cmds_need_lc_CXX=no
12756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12758 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12759 ;;
12760 pgCC* | pgcpp*)
12761 # Portland Group C++ compiler
12762 case `$CC -V` in
12763 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12764 prelink_cmds_CXX='tpldir=Template.dir~
12765 rm -rf $tpldir~
12766 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12767 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12768 old_archive_cmds_CXX='tpldir=Template.dir~
12769 rm -rf $tpldir~
12770 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12771 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12772 $RANLIB $oldlib'
12773 archive_cmds_CXX='tpldir=Template.dir~
12774 rm -rf $tpldir~
12775 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12776 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12777 archive_expsym_cmds_CXX='tpldir=Template.dir~
12778 rm -rf $tpldir~
12779 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12780 $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'
12781 ;;
12782 *) # Version 6 and above use weak symbols
12783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12784 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'
12785 ;;
12786 esac
12787
12788 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12790 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'
12791 ;;
12792 cxx*)
12793 # Compaq C++
12794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 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'
12796
12797 runpath_var=LD_RUN_PATH
12798 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12799 hardcode_libdir_separator_CXX=:
12800
12801 # Commands to make compiler produce verbose output that lists
12802 # what "hidden" libraries, object files and flags are used when
12803 # linking a shared library.
12804 #
12805 # There doesn't appear to be a way to prevent this compiler from
12806 # explicitly linking system object files so we need to strip them
12807 # from the output so that they don't get included in the library
12808 # dependencies.
12809 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'
12810 ;;
12811 xl* | mpixl* | bgxl*)
12812 # IBM XL 8.0 on PPC, with GNU ld
12813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12815 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816 if test "x$supports_anon_versioning" = xyes; then
12817 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12819 echo "local: *; };" >> $output_objdir/$libname.ver~
12820 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12821 fi
12822 ;;
12823 *)
12824 case `$CC -V 2>&1 | sed 5q` in
12825 *Sun\ C*)
12826 # Sun C++ 5.9
12827 no_undefined_flag_CXX=' -zdefs'
12828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12829 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'
12830 hardcode_libdir_flag_spec_CXX='-R$libdir'
12831 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'
12832 compiler_needs_object_CXX=yes
12833
12834 # Not sure whether something based on
12835 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12836 # would be better.
12837 output_verbose_link_cmd='func_echo_all'
12838
12839 # Archives containing C++ object files must be created using
12840 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12841 # necessary to make sure instantiated templates are included
12842 # in the archive.
12843 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12844 ;;
12845 esac
12846 ;;
12847 esac
12848 ;;
12849
12850 lynxos*)
12851 # FIXME: insert proper C++ library support
12852 ld_shlibs_CXX=no
12853 ;;
12854
12855 m88k*)
12856 # FIXME: insert proper C++ library support
12857 ld_shlibs_CXX=no
12858 ;;
12859
12860 mvs*)
12861 case $cc_basename in
12862 cxx*)
12863 # FIXME: insert proper C++ library support
12864 ld_shlibs_CXX=no
12865 ;;
12866 *)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12869 ;;
12870 esac
12871 ;;
12872
12873 netbsd*)
12874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12875 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12876 wlarc=
12877 hardcode_libdir_flag_spec_CXX='-R$libdir'
12878 hardcode_direct_CXX=yes
12879 hardcode_shlibpath_var_CXX=no
12880 fi
12881 # Workaround some broken pre-1.5 toolchains
12882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12883 ;;
12884
12885 *nto* | *qnx*)
12886 ld_shlibs_CXX=yes
12887 ;;
12888
12889 openbsd2*)
12890 # C++ shared libraries are fairly broken
12891 ld_shlibs_CXX=no
12892 ;;
12893
12894 openbsd*)
12895 if test -f /usr/libexec/ld.so; then
12896 hardcode_direct_CXX=yes
12897 hardcode_shlibpath_var_CXX=no
12898 hardcode_direct_absolute_CXX=yes
12899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12903 export_dynamic_flag_spec_CXX='${wl}-E'
12904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12905 fi
12906 output_verbose_link_cmd=func_echo_all
12907 else
12908 ld_shlibs_CXX=no
12909 fi
12910 ;;
12911
12912 osf3* | osf4* | osf5*)
12913 case $cc_basename in
12914 KCC*)
12915 # Kuck and Associates, Inc. (KAI) C++ Compiler
12916
12917 # KCC will only create a shared library if the output file
12918 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12919 # to its proper name (with version) after linking.
12920 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'
12921
12922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12923 hardcode_libdir_separator_CXX=:
12924
12925 # Archives containing C++ object files must be created using
12926 # the KAI C++ compiler.
12927 case $host in
12928 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12929 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12930 esac
12931 ;;
12932 RCC*)
12933 # Rational C++ 2.4.1
12934 # FIXME: insert proper C++ library support
12935 ld_shlibs_CXX=no
12936 ;;
12937 cxx*)
12938 case $host in
12939 osf3*)
12940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12941 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'
12942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12943 ;;
12944 *)
12945 allow_undefined_flag_CXX=' -expect_unresolved \*'
12946 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'
12947 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12948 echo "-hidden">> $lib.exp~
12949 $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~
12950 $RM $lib.exp'
12951 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12952 ;;
12953 esac
12954
12955 hardcode_libdir_separator_CXX=:
12956
12957 # Commands to make compiler produce verbose output that lists
12958 # what "hidden" libraries, object files and flags are used when
12959 # linking a shared library.
12960 #
12961 # There doesn't appear to be a way to prevent this compiler from
12962 # explicitly linking system object files so we need to strip them
12963 # from the output so that they don't get included in the library
12964 # dependencies.
12965 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"'
12966 ;;
12967 *)
12968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12969 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12970 case $host in
12971 osf3*)
12972 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'
12973 ;;
12974 *)
12975 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'
12976 ;;
12977 esac
12978
12979 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12980 hardcode_libdir_separator_CXX=:
12981
12982 # Commands to make compiler produce verbose output that lists
12983 # what "hidden" libraries, object files and flags are used when
12984 # linking a shared library.
12985 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12986
12987 else
12988 # FIXME: insert proper C++ library support
12989 ld_shlibs_CXX=no
12990 fi
12991 ;;
12992 esac
12993 ;;
12994
12995 psos*)
12996 # FIXME: insert proper C++ library support
12997 ld_shlibs_CXX=no
12998 ;;
12999
13000 sunos4*)
13001 case $cc_basename in
13002 CC*)
13003 # Sun C++ 4.x
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13006 ;;
13007 lcc*)
13008 # Lucid
13009 # FIXME: insert proper C++ library support
13010 ld_shlibs_CXX=no
13011 ;;
13012 *)
13013 # FIXME: insert proper C++ library support
13014 ld_shlibs_CXX=no
13015 ;;
13016 esac
13017 ;;
13018
13019 solaris*)
13020 case $cc_basename in
13021 CC* | sunCC*)
13022 # Sun C++ 4.2, 5.x and Centerline C++
13023 archive_cmds_need_lc_CXX=yes
13024 no_undefined_flag_CXX=' -zdefs'
13025 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13027 $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'
13028
13029 hardcode_libdir_flag_spec_CXX='-R$libdir'
13030 hardcode_shlibpath_var_CXX=no
13031 case $host_os in
13032 solaris2.[0-5] | solaris2.[0-5].*) ;;
13033 *)
13034 # The compiler driver will combine and reorder linker options,
13035 # but understands `-z linker_flag'.
13036 # Supported since Solaris 2.6 (maybe 2.5.1?)
13037 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13038 ;;
13039 esac
13040 link_all_deplibs_CXX=yes
13041
13042 output_verbose_link_cmd='func_echo_all'
13043
13044 # Archives containing C++ object files must be created using
13045 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13046 # necessary to make sure instantiated templates are included
13047 # in the archive.
13048 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13049 ;;
13050 gcx*)
13051 # Green Hills C++ Compiler
13052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13053
13054 # The C++ compiler must be used to create the archive.
13055 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13056 ;;
13057 *)
13058 # GNU C++ compiler with Solaris linker
13059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13060 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13061 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13062 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13063 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13064 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13065
13066 # Commands to make compiler produce verbose output that lists
13067 # what "hidden" libraries, object files and flags are used when
13068 # linking a shared library.
13069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13070 else
13071 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13072 # platform.
13073 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13074 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13075 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13076
13077 # Commands to make compiler produce verbose output that lists
13078 # what "hidden" libraries, object files and flags are used when
13079 # linking a shared library.
13080 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13081 fi
13082
13083 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13084 case $host_os in
13085 solaris2.[0-5] | solaris2.[0-5].*) ;;
13086 *)
13087 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13088 ;;
13089 esac
13090 fi
13091 ;;
13092 esac
13093 ;;
13094
13095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13096 no_undefined_flag_CXX='${wl}-z,text'
13097 archive_cmds_need_lc_CXX=no
13098 hardcode_shlibpath_var_CXX=no
13099 runpath_var='LD_RUN_PATH'
13100
13101 case $cc_basename in
13102 CC*)
13103 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 ;;
13106 *)
13107 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13109 ;;
13110 esac
13111 ;;
13112
13113 sysv5* | sco3.2v5* | sco5v6*)
13114 # Note: We can NOT use -z defs as we might desire, because we do not
13115 # link with -lc, and that would cause any symbols used from libc to
13116 # always be unresolved, which means just about no library would
13117 # ever link correctly. If we're not using GNU ld we use -z text
13118 # though, which does catch some bad symbols but isn't as heavy-handed
13119 # as -z defs.
13120 no_undefined_flag_CXX='${wl}-z,text'
13121 allow_undefined_flag_CXX='${wl}-z,nodefs'
13122 archive_cmds_need_lc_CXX=no
13123 hardcode_shlibpath_var_CXX=no
13124 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13125 hardcode_libdir_separator_CXX=':'
13126 link_all_deplibs_CXX=yes
13127 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13128 runpath_var='LD_RUN_PATH'
13129
13130 case $cc_basename in
13131 CC*)
13132 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13134 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13135 '"$old_archive_cmds_CXX"
13136 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13137 '"$reload_cmds_CXX"
13138 ;;
13139 *)
13140 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13142 ;;
13143 esac
13144 ;;
13145
13146 tandem*)
13147 case $cc_basename in
13148 NCC*)
13149 # NonStop-UX NCC 3.20
13150 # FIXME: insert proper C++ library support
13151 ld_shlibs_CXX=no
13152 ;;
13153 *)
13154 # FIXME: insert proper C++ library support
13155 ld_shlibs_CXX=no
13156 ;;
13157 esac
13158 ;;
13159
13160 vxworks*)
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13163 ;;
13164
13165 *)
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13168 ;;
13169 esac
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13172$as_echo "$ld_shlibs_CXX" >&6; }
13173 test "$ld_shlibs_CXX" = no && can_build_shared=no
13174
13175 GCC_CXX="$GXX"
13176 LD_CXX="$LD"
13177
13178 ## CAVEAT EMPTOR:
13179 ## There is no encapsulation within the following macros, do not change
13180 ## the running order or otherwise move them around unless you know exactly
13181 ## what you are doing...
13182 # Dependencies to place before and after the object being linked:
13183predep_objects_CXX=
13184postdep_objects_CXX=
13185predeps_CXX=
13186postdeps_CXX=
13187compiler_lib_search_path_CXX=
13188
13189cat > conftest.$ac_ext <<_LT_EOF
13190class Foo
13191{
13192public:
13193 Foo (void) { a = 0; }
13194private:
13195 int a;
13196};
13197_LT_EOF
13198
13199
13200_lt_libdeps_save_CFLAGS=$CFLAGS
13201case "$CC $CFLAGS " in #(
13202*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13203*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13204*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13205esac
13206
13207if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13208 (eval $ac_compile) 2>&5
13209 ac_status=$?
13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211 test $ac_status = 0; }; then
13212 # Parse the compiler output and extract the necessary
13213 # objects, libraries and library flags.
13214
13215 # Sentinel used to keep track of whether or not we are before
13216 # the conftest object file.
13217 pre_test_object_deps_done=no
13218
13219 for p in `eval "$output_verbose_link_cmd"`; do
13220 case ${prev}${p} in
13221
13222 -L* | -R* | -l*)
13223 # Some compilers place space between "-{L,R}" and the path.
13224 # Remove the space.
13225 if test $p = "-L" ||
13226 test $p = "-R"; then
13227 prev=$p
13228 continue
13229 fi
13230
13231 # Expand the sysroot to ease extracting the directories later.
13232 if test -z "$prev"; then
13233 case $p in
13234 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13235 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13236 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13237 esac
13238 fi
13239 case $p in
13240 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13241 esac
13242 if test "$pre_test_object_deps_done" = no; then
13243 case ${prev} in
13244 -L | -R)
13245 # Internal compiler library paths should come after those
13246 # provided the user. The postdeps already come after the
13247 # user supplied libs so there is no need to process them.
13248 if test -z "$compiler_lib_search_path_CXX"; then
13249 compiler_lib_search_path_CXX="${prev}${p}"
13250 else
13251 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13252 fi
13253 ;;
13254 # The "-l" case would never come before the object being
13255 # linked, so don't bother handling this case.
13256 esac
13257 else
13258 if test -z "$postdeps_CXX"; then
13259 postdeps_CXX="${prev}${p}"
13260 else
13261 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13262 fi
13263 fi
13264 prev=
13265 ;;
13266
13267 *.lto.$objext) ;; # Ignore GCC LTO objects
13268 *.$objext)
13269 # This assumes that the test object file only shows up
13270 # once in the compiler output.
13271 if test "$p" = "conftest.$objext"; then
13272 pre_test_object_deps_done=yes
13273 continue
13274 fi
13275
13276 if test "$pre_test_object_deps_done" = no; then
13277 if test -z "$predep_objects_CXX"; then
13278 predep_objects_CXX="$p"
13279 else
13280 predep_objects_CXX="$predep_objects_CXX $p"
13281 fi
13282 else
13283 if test -z "$postdep_objects_CXX"; then
13284 postdep_objects_CXX="$p"
13285 else
13286 postdep_objects_CXX="$postdep_objects_CXX $p"
13287 fi
13288 fi
13289 ;;
13290
13291 *) ;; # Ignore the rest.
13292
13293 esac
13294 done
13295
13296 # Clean up.
13297 rm -f a.out a.exe
13298else
13299 echo "libtool.m4: error: problem compiling CXX test program"
13300fi
13301
13302$RM -f confest.$objext
13303CFLAGS=$_lt_libdeps_save_CFLAGS
13304
13305# PORTME: override above test on systems where it is broken
13306case $host_os in
13307interix[3-9]*)
13308 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13309 # hack all around it, let's just trust "g++" to DTRT.
13310 predep_objects_CXX=
13311 postdep_objects_CXX=
13312 postdeps_CXX=
13313 ;;
13314
13315linux*)
13316 case `$CC -V 2>&1 | sed 5q` in
13317 *Sun\ C*)
13318 # Sun C++ 5.9
13319
13320 # The more standards-conforming stlport4 library is
13321 # incompatible with the Cstd library. Avoid specifying
13322 # it if it's in CXXFLAGS. Ignore libCrun as
13323 # -library=stlport4 depends on it.
13324 case " $CXX $CXXFLAGS " in
13325 *" -library=stlport4 "*)
13326 solaris_use_stlport4=yes
13327 ;;
13328 esac
13329
13330 if test "$solaris_use_stlport4" != yes; then
13331 postdeps_CXX='-library=Cstd -library=Crun'
13332 fi
13333 ;;
13334 esac
13335 ;;
13336
13337solaris*)
13338 case $cc_basename in
13339 CC* | sunCC*)
13340 # The more standards-conforming stlport4 library is
13341 # incompatible with the Cstd library. Avoid specifying
13342 # it if it's in CXXFLAGS. Ignore libCrun as
13343 # -library=stlport4 depends on it.
13344 case " $CXX $CXXFLAGS " in
13345 *" -library=stlport4 "*)
13346 solaris_use_stlport4=yes
13347 ;;
13348 esac
13349
13350 # Adding this requires a known-good setup of shared libraries for
13351 # Sun compiler versions before 5.6, else PIC objects from an old
13352 # archive will be linked into the output, leading to subtle bugs.
13353 if test "$solaris_use_stlport4" != yes; then
13354 postdeps_CXX='-library=Cstd -library=Crun'
13355 fi
13356 ;;
13357 esac
13358 ;;
13359esac
13360
13361
13362case " $postdeps_CXX " in
13363*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13364esac
13365 compiler_lib_search_dirs_CXX=
13366if test -n "${compiler_lib_search_path_CXX}"; then
13367 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13368fi
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400 lt_prog_compiler_wl_CXX=
13401lt_prog_compiler_pic_CXX=
13402lt_prog_compiler_static_CXX=
13403
13404
13405 # C++ specific cases for pic, static, wl, etc.
13406 if test "$GXX" = yes; then
13407 lt_prog_compiler_wl_CXX='-Wl,'
13408 lt_prog_compiler_static_CXX='-static'
13409
13410 case $host_os in
13411 aix*)
13412 # All AIX code is PIC.
13413 if test "$host_cpu" = ia64; then
13414 # AIX 5 now supports IA64 processor
13415 lt_prog_compiler_static_CXX='-Bstatic'
13416 fi
13417 ;;
13418
13419 amigaos*)
13420 case $host_cpu in
13421 powerpc)
13422 # see comment about AmigaOS4 .so support
13423 lt_prog_compiler_pic_CXX='-fPIC'
13424 ;;
13425 m68k)
13426 # FIXME: we need at least 68020 code to build shared libraries, but
13427 # adding the `-m68020' flag to GCC prevents building anything better,
13428 # like `-m68040'.
13429 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13430 ;;
13431 esac
13432 ;;
13433
13434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13435 # PIC is the default for these OSes.
13436 ;;
13437 mingw* | cygwin* | os2* | pw32* | cegcc*)
13438 # This hack is so that the source file can tell whether it is being
13439 # built for inclusion in a dll (and should export symbols for example).
13440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13441 # (--disable-auto-import) libraries
13442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13443 ;;
13444 darwin* | rhapsody*)
13445 # PIC is the default on this platform
13446 # Common symbols not allowed in MH_DYLIB files
13447 lt_prog_compiler_pic_CXX='-fno-common'
13448 ;;
13449 *djgpp*)
13450 # DJGPP does not support shared libraries at all
13451 lt_prog_compiler_pic_CXX=
13452 ;;
13453 haiku*)
13454 # PIC is the default for Haiku.
13455 # The "-static" flag exists, but is broken.
13456 lt_prog_compiler_static_CXX=
13457 ;;
13458 interix[3-9]*)
13459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13460 # Instead, we relocate shared libraries at runtime.
13461 ;;
13462 sysv4*MP*)
13463 if test -d /usr/nec; then
13464 lt_prog_compiler_pic_CXX=-Kconform_pic
13465 fi
13466 ;;
13467 hpux*)
13468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13470 # sets the default TLS model and affects inlining.
13471 case $host_cpu in
13472 hppa*64*)
13473 ;;
13474 *)
13475 lt_prog_compiler_pic_CXX='-fPIC'
13476 ;;
13477 esac
13478 ;;
13479 *qnx* | *nto*)
13480 # QNX uses GNU C++, but need to define -shared option too, otherwise
13481 # it will coredump.
13482 lt_prog_compiler_pic_CXX='-fPIC -shared'
13483 ;;
13484 *)
13485 lt_prog_compiler_pic_CXX='-fPIC'
13486 ;;
13487 esac
13488 else
13489 case $host_os in
13490 aix[4-9]*)
13491 # All AIX code is PIC.
13492 if test "$host_cpu" = ia64; then
13493 # AIX 5 now supports IA64 processor
13494 lt_prog_compiler_static_CXX='-Bstatic'
13495 else
13496 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13497 fi
13498 ;;
13499 chorus*)
13500 case $cc_basename in
13501 cxch68*)
13502 # Green Hills C++ Compiler
13503 # _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"
13504 ;;
13505 esac
13506 ;;
13507 mingw* | cygwin* | os2* | pw32* | cegcc*)
13508 # This hack is so that the source file can tell whether it is being
13509 # built for inclusion in a dll (and should export symbols for example).
13510 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13511 ;;
13512 dgux*)
13513 case $cc_basename in
13514 ec++*)
13515 lt_prog_compiler_pic_CXX='-KPIC'
13516 ;;
13517 ghcx*)
13518 # Green Hills C++ Compiler
13519 lt_prog_compiler_pic_CXX='-pic'
13520 ;;
13521 *)
13522 ;;
13523 esac
13524 ;;
13525 freebsd* | dragonfly*)
13526 # FreeBSD uses GNU C++
13527 ;;
13528 hpux9* | hpux10* | hpux11*)
13529 case $cc_basename in
13530 CC*)
13531 lt_prog_compiler_wl_CXX='-Wl,'
13532 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13533 if test "$host_cpu" != ia64; then
13534 lt_prog_compiler_pic_CXX='+Z'
13535 fi
13536 ;;
13537 aCC*)
13538 lt_prog_compiler_wl_CXX='-Wl,'
13539 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13540 case $host_cpu in
13541 hppa*64*|ia64*)
13542 # +Z the default
13543 ;;
13544 *)
13545 lt_prog_compiler_pic_CXX='+Z'
13546 ;;
13547 esac
13548 ;;
13549 *)
13550 ;;
13551 esac
13552 ;;
13553 interix*)
13554 # This is c89, which is MS Visual C++ (no shared libs)
13555 # Anyone wants to do a port?
13556 ;;
13557 irix5* | irix6* | nonstopux*)
13558 case $cc_basename in
13559 CC*)
13560 lt_prog_compiler_wl_CXX='-Wl,'
13561 lt_prog_compiler_static_CXX='-non_shared'
13562 # CC pic flag -KPIC is the default.
13563 ;;
13564 *)
13565 ;;
13566 esac
13567 ;;
13568 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13569 case $cc_basename in
13570 KCC*)
13571 # KAI C++ Compiler
13572 lt_prog_compiler_wl_CXX='--backend -Wl,'
13573 lt_prog_compiler_pic_CXX='-fPIC'
13574 ;;
13575 ecpc* )
13576 # old Intel C++ for x86_64 which still supported -KPIC.
13577 lt_prog_compiler_wl_CXX='-Wl,'
13578 lt_prog_compiler_pic_CXX='-KPIC'
13579 lt_prog_compiler_static_CXX='-static'
13580 ;;
13581 icpc* )
13582 # Intel C++, used to be incompatible with GCC.
13583 # ICC 10 doesn't accept -KPIC any more.
13584 lt_prog_compiler_wl_CXX='-Wl,'
13585 lt_prog_compiler_pic_CXX='-fPIC'
13586 lt_prog_compiler_static_CXX='-static'
13587 ;;
13588 pgCC* | pgcpp*)
13589 # Portland Group C++ compiler
13590 lt_prog_compiler_wl_CXX='-Wl,'
13591 lt_prog_compiler_pic_CXX='-fpic'
13592 lt_prog_compiler_static_CXX='-Bstatic'
13593 ;;
13594 cxx*)
13595 # Compaq C++
13596 # Make sure the PIC flag is empty. It appears that all Alpha
13597 # Linux and Compaq Tru64 Unix objects are PIC.
13598 lt_prog_compiler_pic_CXX=
13599 lt_prog_compiler_static_CXX='-non_shared'
13600 ;;
13601 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13602 # IBM XL 8.0, 9.0 on PPC and BlueGene
13603 lt_prog_compiler_wl_CXX='-Wl,'
13604 lt_prog_compiler_pic_CXX='-qpic'
13605 lt_prog_compiler_static_CXX='-qstaticlink'
13606 ;;
13607 *)
13608 case `$CC -V 2>&1 | sed 5q` in
13609 *Sun\ C*)
13610 # Sun C++ 5.9
13611 lt_prog_compiler_pic_CXX='-KPIC'
13612 lt_prog_compiler_static_CXX='-Bstatic'
13613 lt_prog_compiler_wl_CXX='-Qoption ld '
13614 ;;
13615 esac
13616 ;;
13617 esac
13618 ;;
13619 lynxos*)
13620 ;;
13621 m88k*)
13622 ;;
13623 mvs*)
13624 case $cc_basename in
13625 cxx*)
13626 lt_prog_compiler_pic_CXX='-W c,exportall'
13627 ;;
13628 *)
13629 ;;
13630 esac
13631 ;;
13632 netbsd*)
13633 ;;
13634 *qnx* | *nto*)
13635 # QNX uses GNU C++, but need to define -shared option too, otherwise
13636 # it will coredump.
13637 lt_prog_compiler_pic_CXX='-fPIC -shared'
13638 ;;
13639 osf3* | osf4* | osf5*)
13640 case $cc_basename in
13641 KCC*)
13642 lt_prog_compiler_wl_CXX='--backend -Wl,'
13643 ;;
13644 RCC*)
13645 # Rational C++ 2.4.1
13646 lt_prog_compiler_pic_CXX='-pic'
13647 ;;
13648 cxx*)
13649 # Digital/Compaq C++
13650 lt_prog_compiler_wl_CXX='-Wl,'
13651 # Make sure the PIC flag is empty. It appears that all Alpha
13652 # Linux and Compaq Tru64 Unix objects are PIC.
13653 lt_prog_compiler_pic_CXX=
13654 lt_prog_compiler_static_CXX='-non_shared'
13655 ;;
13656 *)
13657 ;;
13658 esac
13659 ;;
13660 psos*)
13661 ;;
13662 solaris*)
13663 case $cc_basename in
13664 CC* | sunCC*)
13665 # Sun C++ 4.2, 5.x and Centerline C++
13666 lt_prog_compiler_pic_CXX='-KPIC'
13667 lt_prog_compiler_static_CXX='-Bstatic'
13668 lt_prog_compiler_wl_CXX='-Qoption ld '
13669 ;;
13670 gcx*)
13671 # Green Hills C++ Compiler
13672 lt_prog_compiler_pic_CXX='-PIC'
13673 ;;
13674 *)
13675 ;;
13676 esac
13677 ;;
13678 sunos4*)
13679 case $cc_basename in
13680 CC*)
13681 # Sun C++ 4.x
13682 lt_prog_compiler_pic_CXX='-pic'
13683 lt_prog_compiler_static_CXX='-Bstatic'
13684 ;;
13685 lcc*)
13686 # Lucid
13687 lt_prog_compiler_pic_CXX='-pic'
13688 ;;
13689 *)
13690 ;;
13691 esac
13692 ;;
13693 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13694 case $cc_basename in
13695 CC*)
13696 lt_prog_compiler_wl_CXX='-Wl,'
13697 lt_prog_compiler_pic_CXX='-KPIC'
13698 lt_prog_compiler_static_CXX='-Bstatic'
13699 ;;
13700 esac
13701 ;;
13702 tandem*)
13703 case $cc_basename in
13704 NCC*)
13705 # NonStop-UX NCC 3.20
13706 lt_prog_compiler_pic_CXX='-KPIC'
13707 ;;
13708 *)
13709 ;;
13710 esac
13711 ;;
13712 vxworks*)
13713 ;;
13714 *)
13715 lt_prog_compiler_can_build_shared_CXX=no
13716 ;;
13717 esac
13718 fi
13719
13720case $host_os in
13721 # For platforms which do not support PIC, -DPIC is meaningless:
13722 *djgpp*)
13723 lt_prog_compiler_pic_CXX=
13724 ;;
13725 *)
13726 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13727 ;;
13728esac
13729
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13731$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13732if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734else
13735 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13736fi
13737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13738$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13739lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13740
13741#
13742# Check to make sure the PIC flag actually works.
13743#
13744if test -n "$lt_prog_compiler_pic_CXX"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13746$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13747if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749else
13750 lt_cv_prog_compiler_pic_works_CXX=no
13751 ac_outfile=conftest.$ac_objext
13752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13753 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13754 # Insert the option either (1) after the last *FLAGS variable, or
13755 # (2) before a word containing "conftest.", or (3) at the end.
13756 # Note that $ac_compile itself does not contain backslashes and begins
13757 # with a dollar sign (not a hyphen), so the echo should work correctly.
13758 # The option is referenced via a variable to avoid confusing sed.
13759 lt_compile=`echo "$ac_compile" | $SED \
13760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13762 -e 's:$: $lt_compiler_flag:'`
13763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13764 (eval "$lt_compile" 2>conftest.err)
13765 ac_status=$?
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 if (exit $ac_status) && test -s "$ac_outfile"; then
13769 # The compiler can only warn and ignore the option if not recognized
13770 # So say no if there are warnings other than the usual output.
13771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13774 lt_cv_prog_compiler_pic_works_CXX=yes
13775 fi
13776 fi
13777 $RM conftest*
13778
13779fi
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13781$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13782
13783if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13784 case $lt_prog_compiler_pic_CXX in
13785 "" | " "*) ;;
13786 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13787 esac
13788else
13789 lt_prog_compiler_pic_CXX=
13790 lt_prog_compiler_can_build_shared_CXX=no
13791fi
13792
13793fi
13794
13795
13796
13797
13798
13799#
13800# Check to make sure the static flag actually works.
13801#
13802wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13804$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13805if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13806 $as_echo_n "(cached) " >&6
13807else
13808 lt_cv_prog_compiler_static_works_CXX=no
13809 save_LDFLAGS="$LDFLAGS"
13810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13813 # The linker can only warn and ignore the option if not recognized
13814 # So say no if there are warnings
13815 if test -s conftest.err; then
13816 # Append any errors to the config.log.
13817 cat conftest.err 1>&5
13818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13820 if diff conftest.exp conftest.er2 >/dev/null; then
13821 lt_cv_prog_compiler_static_works_CXX=yes
13822 fi
13823 else
13824 lt_cv_prog_compiler_static_works_CXX=yes
13825 fi
13826 fi
13827 $RM -r conftest*
13828 LDFLAGS="$save_LDFLAGS"
13829
13830fi
13831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13832$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13833
13834if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13835 :
13836else
13837 lt_prog_compiler_static_CXX=
13838fi
13839
13840
13841
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13844$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13845if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13846 $as_echo_n "(cached) " >&6
13847else
13848 lt_cv_prog_compiler_c_o_CXX=no
13849 $RM -r conftest 2>/dev/null
13850 mkdir conftest
13851 cd conftest
13852 mkdir out
13853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13854
13855 lt_compiler_flag="-o out/conftest2.$ac_objext"
13856 # Insert the option either (1) after the last *FLAGS variable, or
13857 # (2) before a word containing "conftest.", or (3) at the end.
13858 # Note that $ac_compile itself does not contain backslashes and begins
13859 # with a dollar sign (not a hyphen), so the echo should work correctly.
13860 lt_compile=`echo "$ac_compile" | $SED \
13861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13863 -e 's:$: $lt_compiler_flag:'`
13864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13865 (eval "$lt_compile" 2>out/conftest.err)
13866 ac_status=$?
13867 cat out/conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13870 then
13871 # The compiler can only warn and ignore the option if not recognized
13872 # So say no if there are warnings
13873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13876 lt_cv_prog_compiler_c_o_CXX=yes
13877 fi
13878 fi
13879 chmod u+w . 2>&5
13880 $RM conftest*
13881 # SGI C++ compiler will create directory out/ii_files/ for
13882 # template instantiation
13883 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13884 $RM out/* && rmdir out
13885 cd ..
13886 $RM -r conftest
13887 $RM conftest*
13888
13889fi
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13891$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13892
13893
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13896$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13897if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899else
13900 lt_cv_prog_compiler_c_o_CXX=no
13901 $RM -r conftest 2>/dev/null
13902 mkdir conftest
13903 cd conftest
13904 mkdir out
13905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13906
13907 lt_compiler_flag="-o out/conftest2.$ac_objext"
13908 # Insert the option either (1) after the last *FLAGS variable, or
13909 # (2) before a word containing "conftest.", or (3) at the end.
13910 # Note that $ac_compile itself does not contain backslashes and begins
13911 # with a dollar sign (not a hyphen), so the echo should work correctly.
13912 lt_compile=`echo "$ac_compile" | $SED \
13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13915 -e 's:$: $lt_compiler_flag:'`
13916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13917 (eval "$lt_compile" 2>out/conftest.err)
13918 ac_status=$?
13919 cat out/conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13922 then
13923 # The compiler can only warn and ignore the option if not recognized
13924 # So say no if there are warnings
13925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13928 lt_cv_prog_compiler_c_o_CXX=yes
13929 fi
13930 fi
13931 chmod u+w . 2>&5
13932 $RM conftest*
13933 # SGI C++ compiler will create directory out/ii_files/ for
13934 # template instantiation
13935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13936 $RM out/* && rmdir out
13937 cd ..
13938 $RM -r conftest
13939 $RM conftest*
13940
13941fi
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13943$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13944
13945
13946
13947
13948hard_links="nottested"
13949if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13950 # do not overwrite the value of need_locks provided by the user
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13952$as_echo_n "checking if we can lock with hard links... " >&6; }
13953 hard_links=yes
13954 $RM conftest*
13955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13956 touch conftest.a
13957 ln conftest.a conftest.b 2>&5 || hard_links=no
13958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13960$as_echo "$hard_links" >&6; }
13961 if test "$hard_links" = no; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13963$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13964 need_locks=warn
13965 fi
13966else
13967 need_locks=no
13968fi
13969
13970
13971
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13973$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13974
13975 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13976 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13977 case $host_os in
13978 aix[4-9]*)
13979 # If we're using GNU nm, then we don't want the "-C" option.
13980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13981 # Also, AIX nm treats weak defined symbols like other global defined
13982 # symbols, whereas GNU nm marks them as "W".
13983 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13984 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'
13985 else
13986 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'
13987 fi
13988 ;;
13989 pw32*)
13990 export_symbols_cmds_CXX="$ltdll_cmds"
13991 ;;
13992 cygwin* | mingw* | cegcc*)
13993 case $cc_basename in
13994 cl*)
13995 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13996 ;;
13997 *)
13998 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'
13999 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14000 ;;
14001 esac
14002 ;;
14003 *)
14004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14005 ;;
14006 esac
14007
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14009$as_echo "$ld_shlibs_CXX" >&6; }
14010test "$ld_shlibs_CXX" = no && can_build_shared=no
14011
14012with_gnu_ld_CXX=$with_gnu_ld
14013
14014
14015
14016
14017
14018
14019#
14020# Do we need to explicitly link libc?
14021#
14022case "x$archive_cmds_need_lc_CXX" in
14023x|xyes)
14024 # Assume -lc should be added
14025 archive_cmds_need_lc_CXX=yes
14026
14027 if test "$enable_shared" = yes && test "$GCC" = yes; then
14028 case $archive_cmds_CXX in
14029 *'~'*)
14030 # FIXME: we may have to deal with multi-command sequences.
14031 ;;
14032 '$CC '*)
14033 # Test whether the compiler implicitly links with -lc since on some
14034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14035 # to ld, don't add -lc before -lgcc.
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14037$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14038if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14039 $as_echo_n "(cached) " >&6
14040else
14041 $RM conftest*
14042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14043
14044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14045 (eval $ac_compile) 2>&5
14046 ac_status=$?
14047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14048 test $ac_status = 0; } 2>conftest.err; then
14049 soname=conftest
14050 lib=conftest
14051 libobjs=conftest.$ac_objext
14052 deplibs=
14053 wl=$lt_prog_compiler_wl_CXX
14054 pic_flag=$lt_prog_compiler_pic_CXX
14055 compiler_flags=-v
14056 linker_flags=-v
14057 verstring=
14058 output_objdir=.
14059 libname=conftest
14060 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14061 allow_undefined_flag_CXX=
14062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14063 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }
14067 then
14068 lt_cv_archive_cmds_need_lc_CXX=no
14069 else
14070 lt_cv_archive_cmds_need_lc_CXX=yes
14071 fi
14072 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14073 else
14074 cat conftest.err 1>&5
14075 fi
14076 $RM conftest*
14077
14078fi
14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14080$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14081 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14082 ;;
14083 esac
14084 fi
14085 ;;
14086esac
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14150$as_echo_n "checking dynamic linker characteristics... " >&6; }
14151
14152library_names_spec=
14153libname_spec='lib$name'
14154soname_spec=
14155shrext_cmds=".so"
14156postinstall_cmds=
14157postuninstall_cmds=
14158finish_cmds=
14159finish_eval=
14160shlibpath_var=
14161shlibpath_overrides_runpath=unknown
14162version_type=none
14163dynamic_linker="$host_os ld.so"
14164sys_lib_dlsearch_path_spec="/lib /usr/lib"
14165need_lib_prefix=unknown
14166hardcode_into_libs=no
14167
14168# when you set need_version to no, make sure it does not cause -set_version
14169# flags to be left without arguments
14170need_version=unknown
14171
14172case $host_os in
14173aix3*)
14174 version_type=linux # correct to gnu/linux during the next big refactor
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14176 shlibpath_var=LIBPATH
14177
14178 # AIX 3 has no versioning support, so we append a major version to the name.
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 ;;
14181
14182aix[4-9]*)
14183 version_type=linux # correct to gnu/linux during the next big refactor
14184 need_lib_prefix=no
14185 need_version=no
14186 hardcode_into_libs=yes
14187 if test "$host_cpu" = ia64; then
14188 # AIX 5 supports IA64
14189 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 else
14192 # With GCC up to 2.95.x, collect2 would create an import file
14193 # for dependence libraries. The import file would start with
14194 # the line `#! .'. This would cause the generated library to
14195 # depend on `.', always an invalid library. This was fixed in
14196 # development snapshots of GCC prior to 3.0.
14197 case $host_os in
14198 aix4 | aix4.[01] | aix4.[01].*)
14199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14200 echo ' yes '
14201 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14202 :
14203 else
14204 can_build_shared=no
14205 fi
14206 ;;
14207 esac
14208 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14209 # soname into executable. Probably we can add versioning support to
14210 # collect2, so additional links can be useful in future.
14211 if test "$aix_use_runtimelinking" = yes; then
14212 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14213 # instead of lib<name>.a to let people know that these are not
14214 # typical AIX shared libraries.
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 else
14217 # We preserve .a as extension for shared libraries through AIX4.2
14218 # and later when we are not doing run time linking.
14219 library_names_spec='${libname}${release}.a $libname.a'
14220 soname_spec='${libname}${release}${shared_ext}$major'
14221 fi
14222 shlibpath_var=LIBPATH
14223 fi
14224 ;;
14225
14226amigaos*)
14227 case $host_cpu in
14228 powerpc)
14229 # Since July 2007 AmigaOS4 officially supports .so libraries.
14230 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14232 ;;
14233 m68k)
14234 library_names_spec='$libname.ixlibrary $libname.a'
14235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14236 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'
14237 ;;
14238 esac
14239 ;;
14240
14241beos*)
14242 library_names_spec='${libname}${shared_ext}'
14243 dynamic_linker="$host_os ld.so"
14244 shlibpath_var=LIBRARY_PATH
14245 ;;
14246
14247bsdi[45]*)
14248 version_type=linux # correct to gnu/linux during the next big refactor
14249 need_version=no
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14253 shlibpath_var=LD_LIBRARY_PATH
14254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14256 # the default ld.so.conf also contains /usr/contrib/lib and
14257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14258 # libtool to hard-code these into programs
14259 ;;
14260
14261cygwin* | mingw* | pw32* | cegcc*)
14262 version_type=windows
14263 shrext_cmds=".dll"
14264 need_version=no
14265 need_lib_prefix=no
14266
14267 case $GCC,$cc_basename in
14268 yes,*)
14269 # gcc
14270 library_names_spec='$libname.dll.a'
14271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272 postinstall_cmds='base_file=`basename \${file}`~
14273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14274 dldir=$destdir/`dirname \$dlpath`~
14275 test -d \$dldir || mkdir -p \$dldir~
14276 $install_prog $dir/$dlname \$dldir/$dlname~
14277 chmod a+x \$dldir/$dlname~
14278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14280 fi'
14281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14282 dlpath=$dir/\$dldll~
14283 $RM \$dlpath'
14284 shlibpath_overrides_runpath=yes
14285
14286 case $host_os in
14287 cygwin*)
14288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14290
14291 ;;
14292 mingw* | cegcc*)
14293 # MinGW DLLs use traditional 'lib' prefix
14294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14295 ;;
14296 pw32*)
14297 # pw32 DLLs use 'pw' prefix rather than 'lib'
14298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14299 ;;
14300 esac
14301 dynamic_linker='Win32 ld.exe'
14302 ;;
14303
14304 *,cl*)
14305 # Native MSVC
14306 libname_spec='$name'
14307 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14308 library_names_spec='${libname}.dll.lib'
14309
14310 case $build_os in
14311 mingw*)
14312 sys_lib_search_path_spec=
14313 lt_save_ifs=$IFS
14314 IFS=';'
14315 for lt_path in $LIB
14316 do
14317 IFS=$lt_save_ifs
14318 # Let DOS variable expansion print the short 8.3 style file name.
14319 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14320 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14321 done
14322 IFS=$lt_save_ifs
14323 # Convert to MSYS style.
14324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14325 ;;
14326 cygwin*)
14327 # Convert to unix form, then to dos form, then back to unix form
14328 # but this time dos style (no spaces!) so that the unix form looks
14329 # like /cygdrive/c/PROGRA~1:/cygdr...
14330 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14331 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14332 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14333 ;;
14334 *)
14335 sys_lib_search_path_spec="$LIB"
14336 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14337 # It is most probably a Windows format PATH.
14338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14339 else
14340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14341 fi
14342 # FIXME: find the short name or the path components, as spaces are
14343 # common. (e.g. "Program Files" -> "PROGRA~1")
14344 ;;
14345 esac
14346
14347 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14348 postinstall_cmds='base_file=`basename \${file}`~
14349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14350 dldir=$destdir/`dirname \$dlpath`~
14351 test -d \$dldir || mkdir -p \$dldir~
14352 $install_prog $dir/$dlname \$dldir/$dlname'
14353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14354 dlpath=$dir/\$dldll~
14355 $RM \$dlpath'
14356 shlibpath_overrides_runpath=yes
14357 dynamic_linker='Win32 link.exe'
14358 ;;
14359
14360 *)
14361 # Assume MSVC wrapper
14362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14363 dynamic_linker='Win32 ld.exe'
14364 ;;
14365 esac
14366 # FIXME: first we should search . and the directory the executable is in
14367 shlibpath_var=PATH
14368 ;;
14369
14370darwin* | rhapsody*)
14371 dynamic_linker="$host_os dyld"
14372 version_type=darwin
14373 need_lib_prefix=no
14374 need_version=no
14375 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14376 soname_spec='${libname}${release}${major}$shared_ext'
14377 shlibpath_overrides_runpath=yes
14378 shlibpath_var=DYLD_LIBRARY_PATH
14379 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14380
14381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14382 ;;
14383
14384dgux*)
14385 version_type=linux # correct to gnu/linux during the next big refactor
14386 need_lib_prefix=no
14387 need_version=no
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14389 soname_spec='${libname}${release}${shared_ext}$major'
14390 shlibpath_var=LD_LIBRARY_PATH
14391 ;;
14392
14393freebsd* | dragonfly*)
14394 # DragonFly does not have aout. When/if they implement a new
14395 # versioning mechanism, adjust this.
14396 if test -x /usr/bin/objformat; then
14397 objformat=`/usr/bin/objformat`
14398 else
14399 case $host_os in
14400 freebsd[23].*) objformat=aout ;;
14401 *) objformat=elf ;;
14402 esac
14403 fi
14404 version_type=freebsd-$objformat
14405 case $version_type in
14406 freebsd-elf*)
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14408 need_version=no
14409 need_lib_prefix=no
14410 ;;
14411 freebsd-*)
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14413 need_version=yes
14414 ;;
14415 esac
14416 shlibpath_var=LD_LIBRARY_PATH
14417 case $host_os in
14418 freebsd2.*)
14419 shlibpath_overrides_runpath=yes
14420 ;;
14421 freebsd3.[01]* | freebsdelf3.[01]*)
14422 shlibpath_overrides_runpath=yes
14423 hardcode_into_libs=yes
14424 ;;
14425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14427 shlibpath_overrides_runpath=no
14428 hardcode_into_libs=yes
14429 ;;
14430 *) # from 4.6 on, and DragonFly
14431 shlibpath_overrides_runpath=yes
14432 hardcode_into_libs=yes
14433 ;;
14434 esac
14435 ;;
14436
14437gnu*)
14438 version_type=linux # correct to gnu/linux during the next big refactor
14439 need_lib_prefix=no
14440 need_version=no
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=no
14445 hardcode_into_libs=yes
14446 ;;
14447
14448haiku*)
14449 version_type=linux # correct to gnu/linux during the next big refactor
14450 need_lib_prefix=no
14451 need_version=no
14452 dynamic_linker="$host_os runtime_loader"
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LIBRARY_PATH
14456 shlibpath_overrides_runpath=yes
14457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14458 hardcode_into_libs=yes
14459 ;;
14460
14461hpux9* | hpux10* | hpux11*)
14462 # Give a soname corresponding to the major version so that dld.sl refuses to
14463 # link against other versions.
14464 version_type=sunos
14465 need_lib_prefix=no
14466 need_version=no
14467 case $host_cpu in
14468 ia64*)
14469 shrext_cmds='.so'
14470 hardcode_into_libs=yes
14471 dynamic_linker="$host_os dld.so"
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 if test "X$HPUX_IA64_MODE" = X32; then
14477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14478 else
14479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14480 fi
14481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14482 ;;
14483 hppa*64*)
14484 shrext_cmds='.sl'
14485 hardcode_into_libs=yes
14486 dynamic_linker="$host_os dld.sl"
14487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14493 ;;
14494 *)
14495 shrext_cmds='.sl'
14496 dynamic_linker="$host_os dld.sl"
14497 shlibpath_var=SHLIB_PATH
14498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 ;;
14502 esac
14503 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14504 postinstall_cmds='chmod 555 $lib'
14505 # or fails outright, so override atomically:
14506 install_override_mode=555
14507 ;;
14508
14509interix[3-9]*)
14510 version_type=linux # correct to gnu/linux during the next big refactor
14511 need_lib_prefix=no
14512 need_version=no
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 shlibpath_overrides_runpath=no
14518 hardcode_into_libs=yes
14519 ;;
14520
14521irix5* | irix6* | nonstopux*)
14522 case $host_os in
14523 nonstopux*) version_type=nonstopux ;;
14524 *)
14525 if test "$lt_cv_prog_gnu_ld" = yes; then
14526 version_type=linux # correct to gnu/linux during the next big refactor
14527 else
14528 version_type=irix
14529 fi ;;
14530 esac
14531 need_lib_prefix=no
14532 need_version=no
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14535 case $host_os in
14536 irix5* | nonstopux*)
14537 libsuff= shlibsuff=
14538 ;;
14539 *)
14540 case $LD in # libtool.m4 will add one of these switches to LD
14541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14542 libsuff= shlibsuff= libmagic=32-bit;;
14543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14544 libsuff=32 shlibsuff=N32 libmagic=N32;;
14545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14547 *) libsuff= shlibsuff= libmagic=never-match;;
14548 esac
14549 ;;
14550 esac
14551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14552 shlibpath_overrides_runpath=no
14553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14555 hardcode_into_libs=yes
14556 ;;
14557
14558# No shared lib support for Linux oldld, aout, or coff.
14559linux*oldld* | linux*aout* | linux*coff*)
14560 dynamic_linker=no
14561 ;;
14562
14563# This must be glibc/ELF.
14564linux* | k*bsd*-gnu | kopensolaris*-gnu)
14565 version_type=linux # correct to gnu/linux during the next big refactor
14566 need_lib_prefix=no
14567 need_version=no
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath=no
14573
14574 # Some binutils ld are patched to set DT_RUNPATH
14575 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577else
14578 lt_cv_shlibpath_overrides_runpath=no
14579 save_LDFLAGS=$LDFLAGS
14580 save_libdir=$libdir
14581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584/* end confdefs.h. */
14585
14586int
14587main ()
14588{
14589
14590 ;
14591 return 0;
14592}
14593_ACEOF
14594if ac_fn_cxx_try_link "$LINENO"; then :
14595 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14596 lt_cv_shlibpath_overrides_runpath=yes
14597fi
14598fi
14599rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14601 LDFLAGS=$save_LDFLAGS
14602 libdir=$save_libdir
14603
14604fi
14605
14606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14607
14608 # This implies no fast_install, which is unacceptable.
14609 # Some rework will be needed to allow for fast_install
14610 # before this can be enabled.
14611 hardcode_into_libs=yes
14612
14613 # Append ld.so.conf contents to the search path
14614 if test -f /etc/ld.so.conf; then
14615 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' ' '`
14616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14617 fi
14618
14619 # We used to test for /lib/ld.so.1 and disable shared libraries on
14620 # powerpc, because MkLinux only supported shared libraries with the
14621 # GNU dynamic linker. Since this was broken with cross compilers,
14622 # most powerpc-linux boxes support dynamic linking these days and
14623 # people can always --disable-shared, the test was removed, and we
14624 # assume the GNU/Linux dynamic linker is in use.
14625 dynamic_linker='GNU/Linux ld.so'
14626 ;;
14627
14628netbsd*)
14629 version_type=sunos
14630 need_lib_prefix=no
14631 need_version=no
14632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14635 dynamic_linker='NetBSD (a.out) ld.so'
14636 else
14637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14638 soname_spec='${libname}${release}${shared_ext}$major'
14639 dynamic_linker='NetBSD ld.elf_so'
14640 fi
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=yes
14643 hardcode_into_libs=yes
14644 ;;
14645
14646newsos6)
14647 version_type=linux # correct to gnu/linux during the next big refactor
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=yes
14651 ;;
14652
14653*nto* | *qnx*)
14654 version_type=qnx
14655 need_lib_prefix=no
14656 need_version=no
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 shlibpath_overrides_runpath=no
14661 hardcode_into_libs=yes
14662 dynamic_linker='ldqnx.so'
14663 ;;
14664
14665openbsd*)
14666 version_type=sunos
14667 sys_lib_dlsearch_path_spec="/usr/lib"
14668 need_lib_prefix=no
14669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14670 case $host_os in
14671 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14672 *) need_version=no ;;
14673 esac
14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14676 shlibpath_var=LD_LIBRARY_PATH
14677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14678 case $host_os in
14679 openbsd2.[89] | openbsd2.[89].*)
14680 shlibpath_overrides_runpath=no
14681 ;;
14682 *)
14683 shlibpath_overrides_runpath=yes
14684 ;;
14685 esac
14686 else
14687 shlibpath_overrides_runpath=yes
14688 fi
14689 ;;
14690
14691os2*)
14692 libname_spec='$name'
14693 shrext_cmds=".dll"
14694 need_lib_prefix=no
14695 library_names_spec='$libname${shared_ext} $libname.a'
14696 dynamic_linker='OS/2 ld.exe'
14697 shlibpath_var=LIBPATH
14698 ;;
14699
14700osf3* | osf4* | osf5*)
14701 version_type=osf
14702 need_lib_prefix=no
14703 need_version=no
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14709 ;;
14710
14711rdos*)
14712 dynamic_linker=no
14713 ;;
14714
14715solaris*)
14716 version_type=linux # correct to gnu/linux during the next big refactor
14717 need_lib_prefix=no
14718 need_version=no
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes
14723 hardcode_into_libs=yes
14724 # ldd complains unless libraries are executable
14725 postinstall_cmds='chmod +x $lib'
14726 ;;
14727
14728sunos4*)
14729 version_type=sunos
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=yes
14734 if test "$with_gnu_ld" = yes; then
14735 need_lib_prefix=no
14736 fi
14737 need_version=yes
14738 ;;
14739
14740sysv4 | sysv4.3*)
14741 version_type=linux # correct to gnu/linux during the next big refactor
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 case $host_vendor in
14746 sni)
14747 shlibpath_overrides_runpath=no
14748 need_lib_prefix=no
14749 runpath_var=LD_RUN_PATH
14750 ;;
14751 siemens)
14752 need_lib_prefix=no
14753 ;;
14754 motorola)
14755 need_lib_prefix=no
14756 need_version=no
14757 shlibpath_overrides_runpath=no
14758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14759 ;;
14760 esac
14761 ;;
14762
14763sysv4*MP*)
14764 if test -d /usr/nec ;then
14765 version_type=linux # correct to gnu/linux during the next big refactor
14766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14767 soname_spec='$libname${shared_ext}.$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 fi
14770 ;;
14771
14772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14773 version_type=freebsd-elf
14774 need_lib_prefix=no
14775 need_version=no
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14780 hardcode_into_libs=yes
14781 if test "$with_gnu_ld" = yes; then
14782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14783 else
14784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14785 case $host_os in
14786 sco3.2v5*)
14787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14788 ;;
14789 esac
14790 fi
14791 sys_lib_dlsearch_path_spec='/usr/lib'
14792 ;;
14793
14794tpf*)
14795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 shlibpath_var=LD_LIBRARY_PATH
14801 shlibpath_overrides_runpath=no
14802 hardcode_into_libs=yes
14803 ;;
14804
14805uts4*)
14806 version_type=linux # correct to gnu/linux during the next big refactor
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 ;;
14811
14812*)
14813 dynamic_linker=no
14814 ;;
14815esac
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14817$as_echo "$dynamic_linker" >&6; }
14818test "$dynamic_linker" = no && can_build_shared=no
14819
14820variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14821if test "$GCC" = yes; then
14822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14823fi
14824
14825if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14827fi
14828if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14829 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14830fi
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14870$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14871hardcode_action_CXX=
14872if test -n "$hardcode_libdir_flag_spec_CXX" ||
14873 test -n "$runpath_var_CXX" ||
14874 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14875
14876 # We can hardcode non-existent directories.
14877 if test "$hardcode_direct_CXX" != no &&
14878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14879 # have to relink, otherwise we might link with an installed library
14880 # when we should be linking with a yet-to-be-installed one
14881 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14882 test "$hardcode_minus_L_CXX" != no; then
14883 # Linking always hardcodes the temporary library directory.
14884 hardcode_action_CXX=relink
14885 else
14886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14887 hardcode_action_CXX=immediate
14888 fi
14889else
14890 # We cannot hardcode anything, or else we can only hardcode existing
14891 # directories.
14892 hardcode_action_CXX=unsupported
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14895$as_echo "$hardcode_action_CXX" >&6; }
14896
14897if test "$hardcode_action_CXX" = relink ||
14898 test "$inherit_rpath_CXX" = yes; then
14899 # Fast installation is not supported
14900 enable_fast_install=no
14901elif test "$shlibpath_overrides_runpath" = yes ||
14902 test "$enable_shared" = no; then
14903 # Fast installation is not necessary
14904 enable_fast_install=needless
14905fi
14906
14907
14908
14909
14910
14911
14912
14913 fi # test -n "$compiler"
14914
14915 CC=$lt_save_CC
14916 CFLAGS=$lt_save_CFLAGS
14917 LDCXX=$LD
14918 LD=$lt_save_LD
14919 GCC=$lt_save_GCC
14920 with_gnu_ld=$lt_save_with_gnu_ld
14921 lt_cv_path_LDCXX=$lt_cv_path_LD
14922 lt_cv_path_LD=$lt_save_path_LD
14923 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14924 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14925fi # test "$_lt_caught_CXX_error" != yes
14926
14927ac_ext=cpp
14928ac_cpp='$CXXCPP $CPPFLAGS'
14929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947 ac_config_commands="$ac_config_commands libtool"
14948
14949
14950
14951
14952# Only expand once:
14953
Jeff Thompson39128c62013-06-19 14:08:51 -070014954
Jeff Thompson1b8f4c92013-06-19 16:18:46 -070014955 ax_cxx_compile_cxx11_required=falsednl
14956 ac_ext=cpp
14957ac_cpp='$CXXCPP $CPPFLAGS'
14958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14961 ac_success=no
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
14963$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
14964if ${ax_cv_cxx_compile_cxx11+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966else
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968/* end confdefs.h. */
14969
14970 template <typename T>
14971 struct check
14972 {
14973 static_assert(sizeof(int) <= sizeof(T), "not big enough");
14974 };
14975
14976 typedef check<check<bool>> right_angle_brackets;
14977
14978 int a;
14979 decltype(a) b;
14980
14981 typedef check<int> check_type;
14982 check_type c;
14983 check_type&& cr = static_cast<check_type&&>(c);
14984
14985 auto d = a;
14986
14987_ACEOF
14988if ac_fn_cxx_try_compile "$LINENO"; then :
14989 ax_cv_cxx_compile_cxx11=yes
14990else
14991 ax_cv_cxx_compile_cxx11=no
14992fi
14993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
14996$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
14997 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
14998 ac_success=yes
14999 fi
15000
15001 if test x$ac_success = xno; then
15002 for switch in -std=gnu++11 -std=gnu++0x; do
15003 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15005$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15006if eval \${$cachevar+:} false; then :
15007 $as_echo_n "(cached) " >&6
15008else
15009 ac_save_CXXFLAGS="$CXXFLAGS"
15010 CXXFLAGS="$CXXFLAGS $switch"
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h. */
15013
15014 template <typename T>
15015 struct check
15016 {
15017 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15018 };
15019
15020 typedef check<check<bool>> right_angle_brackets;
15021
15022 int a;
15023 decltype(a) b;
15024
15025 typedef check<int> check_type;
15026 check_type c;
15027 check_type&& cr = static_cast<check_type&&>(c);
15028
15029 auto d = a;
15030
15031_ACEOF
15032if ac_fn_cxx_try_compile "$LINENO"; then :
15033 eval $cachevar=yes
15034else
15035 eval $cachevar=no
15036fi
15037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 CXXFLAGS="$ac_save_CXXFLAGS"
15039fi
15040eval ac_res=\$$cachevar
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15042$as_echo "$ac_res" >&6; }
15043 if eval test x\$$cachevar = xyes; then
15044 CXXFLAGS="$CXXFLAGS $switch"
15045 ac_success=yes
15046 break
15047 fi
15048 done
15049 fi
15050
15051 if test x$ac_success = xno; then
15052 for switch in -std=c++11 -std=c++0x; do
15053 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15055$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15056if eval \${$cachevar+:} false; then :
15057 $as_echo_n "(cached) " >&6
15058else
15059 ac_save_CXXFLAGS="$CXXFLAGS"
15060 CXXFLAGS="$CXXFLAGS $switch"
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062/* end confdefs.h. */
15063
15064 template <typename T>
15065 struct check
15066 {
15067 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15068 };
15069
15070 typedef check<check<bool>> right_angle_brackets;
15071
15072 int a;
15073 decltype(a) b;
15074
15075 typedef check<int> check_type;
15076 check_type c;
15077 check_type&& cr = static_cast<check_type&&>(c);
15078
15079 auto d = a;
15080
15081_ACEOF
15082if ac_fn_cxx_try_compile "$LINENO"; then :
15083 eval $cachevar=yes
15084else
15085 eval $cachevar=no
15086fi
15087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 CXXFLAGS="$ac_save_CXXFLAGS"
15089fi
15090eval ac_res=\$$cachevar
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15092$as_echo "$ac_res" >&6; }
15093 if eval test x\$$cachevar = xyes; then
15094 CXXFLAGS="$CXXFLAGS $switch"
15095 ac_success=yes
15096 break
15097 fi
15098 done
15099 fi
15100 ac_ext=cpp
15101ac_cpp='$CXXCPP $CPPFLAGS'
15102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15105
15106 if test x$ax_cxx_compile_cxx11_required = xtrue; then
15107 if test x$ac_success = xno; then
15108 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
15109 fi
15110 else
15111 if test x$ac_success = xno; then
15112 HAVE_CXX11=0
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
15114$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
15115 else
15116 HAVE_CXX11=1
15117
15118$as_echo "#define HAVE_CXX11 1" >>confdefs.h
15119
15120 fi
15121
15122
15123 fi
15124
15125
Jeff Thompson39128c62013-06-19 14:08:51 -070015126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
15127$as_echo_n "checking for std::shared_ptr... " >&6; }
Jeff Thompson39128c62013-06-19 14:08:51 -070015128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h. */
15130#include <memory>
15131 std::shared_ptr<int> have_shared_ptr;
15132int
15133main ()
15134{
15135
15136 ;
15137 return 0;
15138}
15139
15140_ACEOF
15141if ac_fn_cxx_try_compile "$LINENO"; then :
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15144$as_echo "yes" >&6; }
15145
15146cat >>confdefs.h <<_ACEOF
15147#define HAVE_STD_SHARED_PTR 1
15148_ACEOF
15149
15150
15151else
15152
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154$as_echo "no" >&6; }
15155
15156cat >>confdefs.h <<_ACEOF
15157#define HAVE_STD_SHARED_PTR 0
15158_ACEOF
15159
15160
15161fi
15162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h. */
15165#include <boost/shared_ptr.hpp>
15166 boost::shared_ptr<int> have_shared_ptr;
15167int
15168main ()
15169{
15170
15171 ;
15172 return 0;
15173}
15174
15175_ACEOF
15176if ac_fn_cxx_try_compile "$LINENO"; then :
15177
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15179$as_echo "yes" >&6; }
15180
15181cat >>confdefs.h <<_ACEOF
15182#define HAVE_BOOST_SHARED_PTR 1
15183_ACEOF
15184
15185
15186else
15187
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15189$as_echo "no" >&6; }
15190
15191cat >>confdefs.h <<_ACEOF
15192#define HAVE_BOOST_SHARED_PTR 0
15193_ACEOF
15194
15195
15196fi
15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198
15199ac_config_files="$ac_config_files Makefile"
15200
15201cat >confcache <<\_ACEOF
15202# This file is a shell script that caches the results of configure
15203# tests run on this system so they can be shared between configure
15204# scripts and configure runs, see configure's option --config-cache.
15205# It is not useful on other systems. If it contains results you don't
15206# want to keep, you may remove or edit it.
15207#
15208# config.status only pays attention to the cache file if you give it
15209# the --recheck option to rerun configure.
15210#
15211# `ac_cv_env_foo' variables (set or unset) will be overridden when
15212# loading this file, other *unset* `ac_cv_foo' will be assigned the
15213# following values.
15214
15215_ACEOF
15216
15217# The following way of writing the cache mishandles newlines in values,
15218# but we know of no workaround that is simple, portable, and efficient.
15219# So, we kill variables containing newlines.
15220# Ultrix sh set writes to stderr and can't be redirected directly,
15221# and sets the high bit in the cache file unless we assign to the vars.
15222(
15223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15224 eval ac_val=\$$ac_var
15225 case $ac_val in #(
15226 *${as_nl}*)
15227 case $ac_var in #(
15228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15229$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15230 esac
15231 case $ac_var in #(
15232 _ | IFS | as_nl) ;; #(
15233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15234 *) { eval $ac_var=; unset $ac_var;} ;;
15235 esac ;;
15236 esac
15237 done
15238
15239 (set) 2>&1 |
15240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15241 *${as_nl}ac_space=\ *)
15242 # `set' does not quote correctly, so add quotes: double-quote
15243 # substitution turns \\\\ into \\, and sed turns \\ into \.
15244 sed -n \
15245 "s/'/'\\\\''/g;
15246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15247 ;; #(
15248 *)
15249 # `set' quotes correctly as required by POSIX, so do not add quotes.
15250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15251 ;;
15252 esac |
15253 sort
15254) |
15255 sed '
15256 /^ac_cv_env_/b end
15257 t clear
15258 :clear
15259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15260 t end
15261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15262 :end' >>confcache
15263if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15264 if test -w "$cache_file"; then
15265 if test "x$cache_file" != "x/dev/null"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15267$as_echo "$as_me: updating cache $cache_file" >&6;}
15268 if test ! -f "$cache_file" || test -h "$cache_file"; then
15269 cat confcache >"$cache_file"
15270 else
15271 case $cache_file in #(
15272 */* | ?:*)
15273 mv -f confcache "$cache_file"$$ &&
15274 mv -f "$cache_file"$$ "$cache_file" ;; #(
15275 *)
15276 mv -f confcache "$cache_file" ;;
15277 esac
15278 fi
15279 fi
15280 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15282$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15283 fi
15284fi
15285rm -f confcache
15286
15287test "x$prefix" = xNONE && prefix=$ac_default_prefix
15288# Let make expand exec_prefix.
15289test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15290
15291DEFS=-DHAVE_CONFIG_H
15292
15293ac_libobjs=
15294ac_ltlibobjs=
15295U=
15296for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15297 # 1. Remove the extension, and $U if already installed.
15298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15299 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15301 # will be set to the directory where LIBOBJS objects are built.
15302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15304done
15305LIBOBJS=$ac_libobjs
15306
15307LTLIBOBJS=$ac_ltlibobjs
15308
15309
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15311$as_echo_n "checking that generated files are newer than configure... " >&6; }
15312 if test -n "$am_sleep_pid"; then
15313 # Hide warnings about reused PIDs.
15314 wait $am_sleep_pid 2>/dev/null
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15317$as_echo "done" >&6; }
15318 if test -n "$EXEEXT"; then
15319 am__EXEEXT_TRUE=
15320 am__EXEEXT_FALSE='#'
15321else
15322 am__EXEEXT_TRUE='#'
15323 am__EXEEXT_FALSE=
15324fi
15325
15326if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15327 as_fn_error $? "conditional \"AMDEP\" was never defined.
15328Usually this means the macro was only invoked conditionally." "$LINENO" 5
15329fi
15330if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15331 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15332Usually this means the macro was only invoked conditionally." "$LINENO" 5
15333fi
Jeff Thompson36174062013-06-21 16:03:44 -070015334if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15335 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15336Usually this means the macro was only invoked conditionally." "$LINENO" 5
15337fi
Jeff Thompson39128c62013-06-19 14:08:51 -070015338
15339: "${CONFIG_STATUS=./config.status}"
15340ac_write_fail=0
15341ac_clean_files_save=$ac_clean_files
15342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15344$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15345as_write_fail=0
15346cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15347#! $SHELL
15348# Generated by $as_me.
15349# Run this file to recreate the current configuration.
15350# Compiler output produced by configure, useful for debugging
15351# configure, is in config.log if it exists.
15352
15353debug=false
15354ac_cs_recheck=false
15355ac_cs_silent=false
15356
15357SHELL=\${CONFIG_SHELL-$SHELL}
15358export SHELL
15359_ASEOF
15360cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15361## -------------------- ##
15362## M4sh Initialization. ##
15363## -------------------- ##
15364
15365# Be more Bourne compatible
15366DUALCASE=1; export DUALCASE # for MKS sh
15367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15368 emulate sh
15369 NULLCMD=:
15370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15371 # is contrary to our usage. Disable this feature.
15372 alias -g '${1+"$@"}'='"$@"'
15373 setopt NO_GLOB_SUBST
15374else
15375 case `(set -o) 2>/dev/null` in #(
15376 *posix*) :
15377 set -o posix ;; #(
15378 *) :
15379 ;;
15380esac
15381fi
15382
15383
15384as_nl='
15385'
15386export as_nl
15387# Printing a long string crashes Solaris 7 /usr/bin/printf.
15388as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15391# Prefer a ksh shell builtin over an external printf program on Solaris,
15392# but without wasting forks for bash or zsh.
15393if test -z "$BASH_VERSION$ZSH_VERSION" \
15394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15395 as_echo='print -r --'
15396 as_echo_n='print -rn --'
15397elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15398 as_echo='printf %s\n'
15399 as_echo_n='printf %s'
15400else
15401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15403 as_echo_n='/usr/ucb/echo -n'
15404 else
15405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15406 as_echo_n_body='eval
15407 arg=$1;
15408 case $arg in #(
15409 *"$as_nl"*)
15410 expr "X$arg" : "X\\(.*\\)$as_nl";
15411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15412 esac;
15413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15414 '
15415 export as_echo_n_body
15416 as_echo_n='sh -c $as_echo_n_body as_echo'
15417 fi
15418 export as_echo_body
15419 as_echo='sh -c $as_echo_body as_echo'
15420fi
15421
15422# The user is always right.
15423if test "${PATH_SEPARATOR+set}" != set; then
15424 PATH_SEPARATOR=:
15425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15427 PATH_SEPARATOR=';'
15428 }
15429fi
15430
15431
15432# IFS
15433# We need space, tab and new line, in precisely that order. Quoting is
15434# there to prevent editors from complaining about space-tab.
15435# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15436# splitting by setting IFS to empty value.)
15437IFS=" "" $as_nl"
15438
15439# Find who we are. Look in the path if we contain no directory separator.
15440as_myself=
15441case $0 in #((
15442 *[\\/]* ) as_myself=$0 ;;
15443 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15444for as_dir in $PATH
15445do
15446 IFS=$as_save_IFS
15447 test -z "$as_dir" && as_dir=.
15448 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15449 done
15450IFS=$as_save_IFS
15451
15452 ;;
15453esac
15454# We did not find ourselves, most probably we were run as `sh COMMAND'
15455# in which case we are not to be found in the path.
15456if test "x$as_myself" = x; then
15457 as_myself=$0
15458fi
15459if test ! -f "$as_myself"; then
15460 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15461 exit 1
15462fi
15463
15464# Unset variables that we do not need and which cause bugs (e.g. in
15465# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15466# suppresses any "Segmentation fault" message there. '((' could
15467# trigger a bug in pdksh 5.2.14.
15468for as_var in BASH_ENV ENV MAIL MAILPATH
15469do eval test x\${$as_var+set} = xset \
15470 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15471done
15472PS1='$ '
15473PS2='> '
15474PS4='+ '
15475
15476# NLS nuisances.
15477LC_ALL=C
15478export LC_ALL
15479LANGUAGE=C
15480export LANGUAGE
15481
15482# CDPATH.
15483(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15484
15485
15486# as_fn_error STATUS ERROR [LINENO LOG_FD]
15487# ----------------------------------------
15488# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15489# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15490# script with STATUS, using 1 if that was 0.
15491as_fn_error ()
15492{
15493 as_status=$1; test $as_status -eq 0 && as_status=1
15494 if test "$4"; then
15495 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15496 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15497 fi
15498 $as_echo "$as_me: error: $2" >&2
15499 as_fn_exit $as_status
15500} # as_fn_error
15501
15502
15503# as_fn_set_status STATUS
15504# -----------------------
15505# Set $? to STATUS, without forking.
15506as_fn_set_status ()
15507{
15508 return $1
15509} # as_fn_set_status
15510
15511# as_fn_exit STATUS
15512# -----------------
15513# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15514as_fn_exit ()
15515{
15516 set +e
15517 as_fn_set_status $1
15518 exit $1
15519} # as_fn_exit
15520
15521# as_fn_unset VAR
15522# ---------------
15523# Portably unset VAR.
15524as_fn_unset ()
15525{
15526 { eval $1=; unset $1;}
15527}
15528as_unset=as_fn_unset
15529# as_fn_append VAR VALUE
15530# ----------------------
15531# Append the text in VALUE to the end of the definition contained in VAR. Take
15532# advantage of any shell optimizations that allow amortized linear growth over
15533# repeated appends, instead of the typical quadratic growth present in naive
15534# implementations.
15535if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15536 eval 'as_fn_append ()
15537 {
15538 eval $1+=\$2
15539 }'
15540else
15541 as_fn_append ()
15542 {
15543 eval $1=\$$1\$2
15544 }
15545fi # as_fn_append
15546
15547# as_fn_arith ARG...
15548# ------------------
15549# Perform arithmetic evaluation on the ARGs, and store the result in the
15550# global $as_val. Take advantage of shells that can avoid forks. The arguments
15551# must be portable across $(()) and expr.
15552if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15553 eval 'as_fn_arith ()
15554 {
15555 as_val=$(( $* ))
15556 }'
15557else
15558 as_fn_arith ()
15559 {
15560 as_val=`expr "$@" || test $? -eq 1`
15561 }
15562fi # as_fn_arith
15563
15564
15565if expr a : '\(a\)' >/dev/null 2>&1 &&
15566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15567 as_expr=expr
15568else
15569 as_expr=false
15570fi
15571
15572if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15573 as_basename=basename
15574else
15575 as_basename=false
15576fi
15577
15578if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15579 as_dirname=dirname
15580else
15581 as_dirname=false
15582fi
15583
15584as_me=`$as_basename -- "$0" ||
15585$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15586 X"$0" : 'X\(//\)$' \| \
15587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15588$as_echo X/"$0" |
15589 sed '/^.*\/\([^/][^/]*\)\/*$/{
15590 s//\1/
15591 q
15592 }
15593 /^X\/\(\/\/\)$/{
15594 s//\1/
15595 q
15596 }
15597 /^X\/\(\/\).*/{
15598 s//\1/
15599 q
15600 }
15601 s/.*/./; q'`
15602
15603# Avoid depending upon Character Ranges.
15604as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15605as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15606as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15607as_cr_digits='0123456789'
15608as_cr_alnum=$as_cr_Letters$as_cr_digits
15609
15610ECHO_C= ECHO_N= ECHO_T=
15611case `echo -n x` in #(((((
15612-n*)
15613 case `echo 'xy\c'` in
15614 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15615 xy) ECHO_C='\c';;
15616 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15617 ECHO_T=' ';;
15618 esac;;
15619*)
15620 ECHO_N='-n';;
15621esac
15622
15623rm -f conf$$ conf$$.exe conf$$.file
15624if test -d conf$$.dir; then
15625 rm -f conf$$.dir/conf$$.file
15626else
15627 rm -f conf$$.dir
15628 mkdir conf$$.dir 2>/dev/null
15629fi
15630if (echo >conf$$.file) 2>/dev/null; then
15631 if ln -s conf$$.file conf$$ 2>/dev/null; then
15632 as_ln_s='ln -s'
15633 # ... but there are two gotchas:
15634 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15635 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15636 # In both cases, we have to default to `cp -pR'.
15637 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15638 as_ln_s='cp -pR'
15639 elif ln conf$$.file conf$$ 2>/dev/null; then
15640 as_ln_s=ln
15641 else
15642 as_ln_s='cp -pR'
15643 fi
15644else
15645 as_ln_s='cp -pR'
15646fi
15647rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15648rmdir conf$$.dir 2>/dev/null
15649
15650
15651# as_fn_mkdir_p
15652# -------------
15653# Create "$as_dir" as a directory, including parents if necessary.
15654as_fn_mkdir_p ()
15655{
15656
15657 case $as_dir in #(
15658 -*) as_dir=./$as_dir;;
15659 esac
15660 test -d "$as_dir" || eval $as_mkdir_p || {
15661 as_dirs=
15662 while :; do
15663 case $as_dir in #(
15664 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15665 *) as_qdir=$as_dir;;
15666 esac
15667 as_dirs="'$as_qdir' $as_dirs"
15668 as_dir=`$as_dirname -- "$as_dir" ||
15669$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15670 X"$as_dir" : 'X\(//\)[^/]' \| \
15671 X"$as_dir" : 'X\(//\)$' \| \
15672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15673$as_echo X"$as_dir" |
15674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15675 s//\1/
15676 q
15677 }
15678 /^X\(\/\/\)[^/].*/{
15679 s//\1/
15680 q
15681 }
15682 /^X\(\/\/\)$/{
15683 s//\1/
15684 q
15685 }
15686 /^X\(\/\).*/{
15687 s//\1/
15688 q
15689 }
15690 s/.*/./; q'`
15691 test -d "$as_dir" && break
15692 done
15693 test -z "$as_dirs" || eval "mkdir $as_dirs"
15694 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15695
15696
15697} # as_fn_mkdir_p
15698if mkdir -p . 2>/dev/null; then
15699 as_mkdir_p='mkdir -p "$as_dir"'
15700else
15701 test -d ./-p && rmdir ./-p
15702 as_mkdir_p=false
15703fi
15704
15705
15706# as_fn_executable_p FILE
15707# -----------------------
15708# Test if FILE is an executable regular file.
15709as_fn_executable_p ()
15710{
15711 test -f "$1" && test -x "$1"
15712} # as_fn_executable_p
15713as_test_x='test -x'
15714as_executable_p=as_fn_executable_p
15715
15716# Sed expression to map a string onto a valid CPP name.
15717as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15718
15719# Sed expression to map a string onto a valid variable name.
15720as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15721
15722
15723exec 6>&1
15724## ----------------------------------- ##
15725## Main body of $CONFIG_STATUS script. ##
15726## ----------------------------------- ##
15727_ASEOF
15728test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15729
15730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731# Save the log message, to keep $0 and so on meaningful, and to
15732# report actual input values of CONFIG_FILES etc. instead of their
15733# values after options handling.
15734ac_log="
15735This file was extended by ndn-cpp $as_me 0.5, which was
15736generated by GNU Autoconf 2.69. Invocation command line was
15737
15738 CONFIG_FILES = $CONFIG_FILES
15739 CONFIG_HEADERS = $CONFIG_HEADERS
15740 CONFIG_LINKS = $CONFIG_LINKS
15741 CONFIG_COMMANDS = $CONFIG_COMMANDS
15742 $ $0 $@
15743
15744on `(hostname || uname -n) 2>/dev/null | sed 1q`
15745"
15746
15747_ACEOF
15748
15749case $ac_config_files in *"
15750"*) set x $ac_config_files; shift; ac_config_files=$*;;
15751esac
15752
15753case $ac_config_headers in *"
15754"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15755esac
15756
15757
15758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15759# Files that config.status was made for.
15760config_files="$ac_config_files"
15761config_headers="$ac_config_headers"
15762config_commands="$ac_config_commands"
15763
15764_ACEOF
15765
15766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767ac_cs_usage="\
15768\`$as_me' instantiates files and other configuration actions
15769from templates according to the current configuration. Unless the files
15770and actions are specified as TAGs, all are instantiated by default.
15771
15772Usage: $0 [OPTION]... [TAG]...
15773
15774 -h, --help print this help, then exit
15775 -V, --version print version number and configuration settings, then exit
15776 --config print configuration, then exit
15777 -q, --quiet, --silent
15778 do not print progress messages
15779 -d, --debug don't remove temporary files
15780 --recheck update $as_me by reconfiguring in the same conditions
15781 --file=FILE[:TEMPLATE]
15782 instantiate the configuration file FILE
15783 --header=FILE[:TEMPLATE]
15784 instantiate the configuration header FILE
15785
15786Configuration files:
15787$config_files
15788
15789Configuration headers:
15790$config_headers
15791
15792Configuration commands:
15793$config_commands
15794
15795Report bugs to the package provider.
15796ndn-cpp home page: <https://github.com/named-data/ndn-cpp>."
15797
15798_ACEOF
15799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15801ac_cs_version="\\
15802ndn-cpp config.status 0.5
15803configured by $0, generated by GNU Autoconf 2.69,
15804 with options \\"\$ac_cs_config\\"
15805
15806Copyright (C) 2012 Free Software Foundation, Inc.
15807This config.status script is free software; the Free Software Foundation
15808gives unlimited permission to copy, distribute and modify it."
15809
15810ac_pwd='$ac_pwd'
15811srcdir='$srcdir'
15812INSTALL='$INSTALL'
15813MKDIR_P='$MKDIR_P'
15814AWK='$AWK'
15815test -n "\$AWK" || AWK=awk
15816_ACEOF
15817
15818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819# The default lists apply if the user does not specify any file.
15820ac_need_defaults=:
15821while test $# != 0
15822do
15823 case $1 in
15824 --*=?*)
15825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15827 ac_shift=:
15828 ;;
15829 --*=)
15830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15831 ac_optarg=
15832 ac_shift=:
15833 ;;
15834 *)
15835 ac_option=$1
15836 ac_optarg=$2
15837 ac_shift=shift
15838 ;;
15839 esac
15840
15841 case $ac_option in
15842 # Handling of the options.
15843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15844 ac_cs_recheck=: ;;
15845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15846 $as_echo "$ac_cs_version"; exit ;;
15847 --config | --confi | --conf | --con | --co | --c )
15848 $as_echo "$ac_cs_config"; exit ;;
15849 --debug | --debu | --deb | --de | --d | -d )
15850 debug=: ;;
15851 --file | --fil | --fi | --f )
15852 $ac_shift
15853 case $ac_optarg in
15854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15855 '') as_fn_error $? "missing file argument" ;;
15856 esac
15857 as_fn_append CONFIG_FILES " '$ac_optarg'"
15858 ac_need_defaults=false;;
15859 --header | --heade | --head | --hea )
15860 $ac_shift
15861 case $ac_optarg in
15862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15863 esac
15864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15865 ac_need_defaults=false;;
15866 --he | --h)
15867 # Conflict between --help and --header
15868 as_fn_error $? "ambiguous option: \`$1'
15869Try \`$0 --help' for more information.";;
15870 --help | --hel | -h )
15871 $as_echo "$ac_cs_usage"; exit ;;
15872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15874 ac_cs_silent=: ;;
15875
15876 # This is an error.
15877 -*) as_fn_error $? "unrecognized option: \`$1'
15878Try \`$0 --help' for more information." ;;
15879
15880 *) as_fn_append ac_config_targets " $1"
15881 ac_need_defaults=false ;;
15882
15883 esac
15884 shift
15885done
15886
15887ac_configure_extra_args=
15888
15889if $ac_cs_silent; then
15890 exec 6>/dev/null
15891 ac_configure_extra_args="$ac_configure_extra_args --silent"
15892fi
15893
15894_ACEOF
15895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15896if \$ac_cs_recheck; then
15897 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15898 shift
15899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15900 CONFIG_SHELL='$SHELL'
15901 export CONFIG_SHELL
15902 exec "\$@"
15903fi
15904
15905_ACEOF
15906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15907exec 5>>config.log
15908{
15909 echo
15910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15911## Running $as_me. ##
15912_ASBOX
15913 $as_echo "$ac_log"
15914} >&5
15915
15916_ACEOF
15917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15918#
15919# INIT-COMMANDS
15920#
15921AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15922
Jeff Thompson36174062013-06-21 16:03:44 -070015923
15924# The HP-UX ksh and POSIX shell print the target directory to stdout
15925# if CDPATH is set.
15926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15927
15928sed_quote_subst='$sed_quote_subst'
15929double_quote_subst='$double_quote_subst'
15930delay_variable_subst='$delay_variable_subst'
15931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15933enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15934enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15937SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15938ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15939PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15940host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15941host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15942host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15943build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15944build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15945build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15946SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15947Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15948GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15949EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15950FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15951LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15952NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15953LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15954max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15955ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15956exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15957lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15958lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15959lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15960lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15961lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15962reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15963reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15964OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15965deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15966file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15967file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15968want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15969DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15970sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15971AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15972AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15973archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15974STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15975RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15976old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15977old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15978old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15979lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15980CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15981CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15982compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15983GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15984lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15985lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15986lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15987lt_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"`'
15988nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15989lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15990objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15991MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15992lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15993lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15994lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15995lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15996lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15997need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15998MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15999DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16000NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16001LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16002OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16003OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16004libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16005shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16006extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16007archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16008enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16009export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16010whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16011compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16012old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16013old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16014archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16015archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16016module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16017module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16018with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16019allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16020no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16021hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16022hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16023hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16024hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16025hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16026hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16027hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16028inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16029link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16030always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16031export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16032exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16033include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16034prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16035postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16036file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16037variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16038need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16039need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16040version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16041runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16042shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16043shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16044libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16045library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16046soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16047install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16048postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16049postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16050finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16051finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16052hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16053sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16054sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16055hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16056enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16057enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16058enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16059old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16060striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16061compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16062predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16063postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16064predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16065postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16066compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16067LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16068reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16069reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16070old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16071compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16072GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16073lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16074lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16075lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16076lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16077lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16078archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16079enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16080export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16081whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16082compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16083old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16084old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16085archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16086archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16087module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16088module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16089with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16090allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16091no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16092hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16093hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16094hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16095hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16096hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16097hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16098hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16099inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16100link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16101always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16102export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16103exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16104include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16105prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16106postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16107file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16108hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16109compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16110predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16111postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16112predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16113postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16114compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16115
16116LTCC='$LTCC'
16117LTCFLAGS='$LTCFLAGS'
16118compiler='$compiler_DEFAULT'
16119
16120# A function that is used when there is no print builtin or printf.
16121func_fallback_echo ()
16122{
16123 eval 'cat <<_LTECHO_EOF
16124\$1
16125_LTECHO_EOF'
16126}
16127
16128# Quote evaled strings.
16129for var in SHELL \
16130ECHO \
16131PATH_SEPARATOR \
16132SED \
16133GREP \
16134EGREP \
16135FGREP \
16136LD \
16137NM \
16138LN_S \
16139lt_SP2NL \
16140lt_NL2SP \
16141reload_flag \
16142OBJDUMP \
16143deplibs_check_method \
16144file_magic_cmd \
16145file_magic_glob \
16146want_nocaseglob \
16147DLLTOOL \
16148sharedlib_from_linklib_cmd \
16149AR \
16150AR_FLAGS \
16151archiver_list_spec \
16152STRIP \
16153RANLIB \
16154CC \
16155CFLAGS \
16156compiler \
16157lt_cv_sys_global_symbol_pipe \
16158lt_cv_sys_global_symbol_to_cdecl \
16159lt_cv_sys_global_symbol_to_c_name_address \
16160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16161nm_file_list_spec \
16162lt_prog_compiler_no_builtin_flag \
16163lt_prog_compiler_pic \
16164lt_prog_compiler_wl \
16165lt_prog_compiler_static \
16166lt_cv_prog_compiler_c_o \
16167need_locks \
16168MANIFEST_TOOL \
16169DSYMUTIL \
16170NMEDIT \
16171LIPO \
16172OTOOL \
16173OTOOL64 \
16174shrext_cmds \
16175export_dynamic_flag_spec \
16176whole_archive_flag_spec \
16177compiler_needs_object \
16178with_gnu_ld \
16179allow_undefined_flag \
16180no_undefined_flag \
16181hardcode_libdir_flag_spec \
16182hardcode_libdir_separator \
16183exclude_expsyms \
16184include_expsyms \
16185file_list_spec \
16186variables_saved_for_relink \
16187libname_spec \
16188library_names_spec \
16189soname_spec \
16190install_override_mode \
16191finish_eval \
16192old_striplib \
16193striplib \
16194compiler_lib_search_dirs \
16195predep_objects \
16196postdep_objects \
16197predeps \
16198postdeps \
16199compiler_lib_search_path \
16200LD_CXX \
16201reload_flag_CXX \
16202compiler_CXX \
16203lt_prog_compiler_no_builtin_flag_CXX \
16204lt_prog_compiler_pic_CXX \
16205lt_prog_compiler_wl_CXX \
16206lt_prog_compiler_static_CXX \
16207lt_cv_prog_compiler_c_o_CXX \
16208export_dynamic_flag_spec_CXX \
16209whole_archive_flag_spec_CXX \
16210compiler_needs_object_CXX \
16211with_gnu_ld_CXX \
16212allow_undefined_flag_CXX \
16213no_undefined_flag_CXX \
16214hardcode_libdir_flag_spec_CXX \
16215hardcode_libdir_separator_CXX \
16216exclude_expsyms_CXX \
16217include_expsyms_CXX \
16218file_list_spec_CXX \
16219compiler_lib_search_dirs_CXX \
16220predep_objects_CXX \
16221postdep_objects_CXX \
16222predeps_CXX \
16223postdeps_CXX \
16224compiler_lib_search_path_CXX; do
16225 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16226 *[\\\\\\\`\\"\\\$]*)
16227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16228 ;;
16229 *)
16230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16231 ;;
16232 esac
16233done
16234
16235# Double-quote double-evaled strings.
16236for var in reload_cmds \
16237old_postinstall_cmds \
16238old_postuninstall_cmds \
16239old_archive_cmds \
16240extract_expsyms_cmds \
16241old_archive_from_new_cmds \
16242old_archive_from_expsyms_cmds \
16243archive_cmds \
16244archive_expsym_cmds \
16245module_cmds \
16246module_expsym_cmds \
16247export_symbols_cmds \
16248prelink_cmds \
16249postlink_cmds \
16250postinstall_cmds \
16251postuninstall_cmds \
16252finish_cmds \
16253sys_lib_search_path_spec \
16254sys_lib_dlsearch_path_spec \
16255reload_cmds_CXX \
16256old_archive_cmds_CXX \
16257old_archive_from_new_cmds_CXX \
16258old_archive_from_expsyms_cmds_CXX \
16259archive_cmds_CXX \
16260archive_expsym_cmds_CXX \
16261module_cmds_CXX \
16262module_expsym_cmds_CXX \
16263export_symbols_cmds_CXX \
16264prelink_cmds_CXX \
16265postlink_cmds_CXX; do
16266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16267 *[\\\\\\\`\\"\\\$]*)
16268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16269 ;;
16270 *)
16271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16272 ;;
16273 esac
16274done
16275
16276ac_aux_dir='$ac_aux_dir'
16277xsi_shell='$xsi_shell'
16278lt_shell_append='$lt_shell_append'
16279
16280# See if we are running on zsh, and set the options which allow our
16281# commands through without removal of \ escapes INIT.
16282if test -n "\${ZSH_VERSION+set}" ; then
16283 setopt NO_GLOB_SUBST
16284fi
16285
16286
16287 PACKAGE='$PACKAGE'
16288 VERSION='$VERSION'
16289 TIMESTAMP='$TIMESTAMP'
16290 RM='$RM'
16291 ofile='$ofile'
16292
16293
16294
16295
16296
16297
Jeff Thompson39128c62013-06-19 14:08:51 -070016298_ACEOF
16299
16300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301
16302# Handling of arguments.
16303for ac_config_target in $ac_config_targets
16304do
16305 case $ac_config_target in
16306 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16307 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Jeff Thompson36174062013-06-21 16:03:44 -070016308 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070016309 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16310
16311 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16312 esac
16313done
16314
16315
16316# If the user did not use the arguments to specify the items to instantiate,
16317# then the envvar interface is used. Set only those that are not.
16318# We use the long form for the default assignment because of an extremely
16319# bizarre bug on SunOS 4.1.3.
16320if $ac_need_defaults; then
16321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16323 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16324fi
16325
16326# Have a temporary directory for convenience. Make it in the build tree
16327# simply because there is no reason against having it here, and in addition,
16328# creating and moving files from /tmp can sometimes cause problems.
16329# Hook for its removal unless debugging.
16330# Note that there is a small window in which the directory will not be cleaned:
16331# after its creation but before its name has been assigned to `$tmp'.
16332$debug ||
16333{
16334 tmp= ac_tmp=
16335 trap 'exit_status=$?
16336 : "${ac_tmp:=$tmp}"
16337 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16338' 0
16339 trap 'as_fn_exit 1' 1 2 13 15
16340}
16341# Create a (secure) tmp directory for tmp files.
16342
16343{
16344 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16345 test -d "$tmp"
16346} ||
16347{
16348 tmp=./conf$$-$RANDOM
16349 (umask 077 && mkdir "$tmp")
16350} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16351ac_tmp=$tmp
16352
16353# Set up the scripts for CONFIG_FILES section.
16354# No need to generate them if there are no CONFIG_FILES.
16355# This happens for instance with `./config.status config.h'.
16356if test -n "$CONFIG_FILES"; then
16357
16358
16359ac_cr=`echo X | tr X '\015'`
16360# On cygwin, bash can eat \r inside `` if the user requested igncr.
16361# But we know of no other shell where ac_cr would be empty at this
16362# point, so we can use a bashism as a fallback.
16363if test "x$ac_cr" = x; then
16364 eval ac_cr=\$\'\\r\'
16365fi
16366ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16367if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16368 ac_cs_awk_cr='\\r'
16369else
16370 ac_cs_awk_cr=$ac_cr
16371fi
16372
16373echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16374_ACEOF
16375
16376
16377{
16378 echo "cat >conf$$subs.awk <<_ACEOF" &&
16379 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16380 echo "_ACEOF"
16381} >conf$$subs.sh ||
16382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16383ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16384ac_delim='%!_!# '
16385for ac_last_try in false false false false false :; do
16386 . ./conf$$subs.sh ||
16387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16388
16389 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16390 if test $ac_delim_n = $ac_delim_num; then
16391 break
16392 elif $ac_last_try; then
16393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16394 else
16395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16396 fi
16397done
16398rm -f conf$$subs.sh
16399
16400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16402_ACEOF
16403sed -n '
16404h
16405s/^/S["/; s/!.*/"]=/
16406p
16407g
16408s/^[^!]*!//
16409:repl
16410t repl
16411s/'"$ac_delim"'$//
16412t delim
16413:nl
16414h
16415s/\(.\{148\}\)..*/\1/
16416t more1
16417s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16418p
16419n
16420b repl
16421:more1
16422s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16423p
16424g
16425s/.\{148\}//
16426t nl
16427:delim
16428h
16429s/\(.\{148\}\)..*/\1/
16430t more2
16431s/["\\]/\\&/g; s/^/"/; s/$/"/
16432p
16433b
16434:more2
16435s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16436p
16437g
16438s/.\{148\}//
16439t delim
16440' <conf$$subs.awk | sed '
16441/^[^""]/{
16442 N
16443 s/\n//
16444}
16445' >>$CONFIG_STATUS || ac_write_fail=1
16446rm -f conf$$subs.awk
16447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448_ACAWK
16449cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16450 for (key in S) S_is_set[key] = 1
16451 FS = ""
16452
16453}
16454{
16455 line = $ 0
16456 nfields = split(line, field, "@")
16457 substed = 0
16458 len = length(field[1])
16459 for (i = 2; i < nfields; i++) {
16460 key = field[i]
16461 keylen = length(key)
16462 if (S_is_set[key]) {
16463 value = S[key]
16464 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16465 len += length(value) + length(field[++i])
16466 substed = 1
16467 } else
16468 len += 1 + keylen
16469 }
16470
16471 print line
16472}
16473
16474_ACAWK
16475_ACEOF
16476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16477if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16478 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16479else
16480 cat
16481fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16482 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16483_ACEOF
16484
16485# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16486# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16487# trailing colons and then remove the whole line if VPATH becomes empty
16488# (actually we leave an empty line to preserve line numbers).
16489if test "x$srcdir" = x.; then
16490 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16491h
16492s///
16493s/^/:/
16494s/[ ]*$/:/
16495s/:\$(srcdir):/:/g
16496s/:\${srcdir}:/:/g
16497s/:@srcdir@:/:/g
16498s/^:*//
16499s/:*$//
16500x
16501s/\(=[ ]*\).*/\1/
16502G
16503s/\n//
16504s/^[^=]*=[ ]*$//
16505}'
16506fi
16507
16508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509fi # test -n "$CONFIG_FILES"
16510
16511# Set up the scripts for CONFIG_HEADERS section.
16512# No need to generate them if there are no CONFIG_HEADERS.
16513# This happens for instance with `./config.status Makefile'.
16514if test -n "$CONFIG_HEADERS"; then
16515cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16516BEGIN {
16517_ACEOF
16518
16519# Transform confdefs.h into an awk script `defines.awk', embedded as
16520# here-document in config.status, that substitutes the proper values into
16521# config.h.in to produce config.h.
16522
16523# Create a delimiter string that does not exist in confdefs.h, to ease
16524# handling of long lines.
16525ac_delim='%!_!# '
16526for ac_last_try in false false :; do
16527 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16528 if test -z "$ac_tt"; then
16529 break
16530 elif $ac_last_try; then
16531 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16532 else
16533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16534 fi
16535done
16536
16537# For the awk script, D is an array of macro values keyed by name,
16538# likewise P contains macro parameters if any. Preserve backslash
16539# newline sequences.
16540
16541ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16542sed -n '
16543s/.\{148\}/&'"$ac_delim"'/g
16544t rset
16545:rset
16546s/^[ ]*#[ ]*define[ ][ ]*/ /
16547t def
16548d
16549:def
16550s/\\$//
16551t bsnl
16552s/["\\]/\\&/g
16553s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16554D["\1"]=" \3"/p
16555s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16556d
16557:bsnl
16558s/["\\]/\\&/g
16559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16560D["\1"]=" \3\\\\\\n"\\/p
16561t cont
16562s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16563t cont
16564d
16565:cont
16566n
16567s/.\{148\}/&'"$ac_delim"'/g
16568t clear
16569:clear
16570s/\\$//
16571t bsnlc
16572s/["\\]/\\&/g; s/^/"/; s/$/"/p
16573d
16574:bsnlc
16575s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16576b cont
16577' <confdefs.h | sed '
16578s/'"$ac_delim"'/"\\\
16579"/g' >>$CONFIG_STATUS || ac_write_fail=1
16580
16581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16582 for (key in D) D_is_set[key] = 1
16583 FS = ""
16584}
16585/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16586 line = \$ 0
16587 split(line, arg, " ")
16588 if (arg[1] == "#") {
16589 defundef = arg[2]
16590 mac1 = arg[3]
16591 } else {
16592 defundef = substr(arg[1], 2)
16593 mac1 = arg[2]
16594 }
16595 split(mac1, mac2, "(") #)
16596 macro = mac2[1]
16597 prefix = substr(line, 1, index(line, defundef) - 1)
16598 if (D_is_set[macro]) {
16599 # Preserve the white space surrounding the "#".
16600 print prefix "define", macro P[macro] D[macro]
16601 next
16602 } else {
16603 # Replace #undef with comments. This is necessary, for example,
16604 # in the case of _POSIX_SOURCE, which is predefined and required
16605 # on some systems where configure will not decide to define it.
16606 if (defundef == "undef") {
16607 print "/*", prefix defundef, macro, "*/"
16608 next
16609 }
16610 }
16611}
16612{ print }
16613_ACAWK
16614_ACEOF
16615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16616 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16617fi # test -n "$CONFIG_HEADERS"
16618
16619
16620eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16621shift
16622for ac_tag
16623do
16624 case $ac_tag in
16625 :[FHLC]) ac_mode=$ac_tag; continue;;
16626 esac
16627 case $ac_mode$ac_tag in
16628 :[FHL]*:*);;
16629 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16630 :[FH]-) ac_tag=-:-;;
16631 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16632 esac
16633 ac_save_IFS=$IFS
16634 IFS=:
16635 set x $ac_tag
16636 IFS=$ac_save_IFS
16637 shift
16638 ac_file=$1
16639 shift
16640
16641 case $ac_mode in
16642 :L) ac_source=$1;;
16643 :[FH])
16644 ac_file_inputs=
16645 for ac_f
16646 do
16647 case $ac_f in
16648 -) ac_f="$ac_tmp/stdin";;
16649 *) # Look for the file first in the build tree, then in the source tree
16650 # (if the path is not absolute). The absolute path cannot be DOS-style,
16651 # because $ac_f cannot contain `:'.
16652 test -f "$ac_f" ||
16653 case $ac_f in
16654 [\\/$]*) false;;
16655 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16656 esac ||
16657 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16658 esac
16659 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16660 as_fn_append ac_file_inputs " '$ac_f'"
16661 done
16662
16663 # Let's still pretend it is `configure' which instantiates (i.e., don't
16664 # use $as_me), people would be surprised to read:
16665 # /* config.h. Generated by config.status. */
16666 configure_input='Generated from '`
16667 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16668 `' by configure.'
16669 if test x"$ac_file" != x-; then
16670 configure_input="$ac_file. $configure_input"
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16672$as_echo "$as_me: creating $ac_file" >&6;}
16673 fi
16674 # Neutralize special characters interpreted by sed in replacement strings.
16675 case $configure_input in #(
16676 *\&* | *\|* | *\\* )
16677 ac_sed_conf_input=`$as_echo "$configure_input" |
16678 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16679 *) ac_sed_conf_input=$configure_input;;
16680 esac
16681
16682 case $ac_tag in
16683 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16685 esac
16686 ;;
16687 esac
16688
16689 ac_dir=`$as_dirname -- "$ac_file" ||
16690$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16691 X"$ac_file" : 'X\(//\)[^/]' \| \
16692 X"$ac_file" : 'X\(//\)$' \| \
16693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16694$as_echo X"$ac_file" |
16695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16696 s//\1/
16697 q
16698 }
16699 /^X\(\/\/\)[^/].*/{
16700 s//\1/
16701 q
16702 }
16703 /^X\(\/\/\)$/{
16704 s//\1/
16705 q
16706 }
16707 /^X\(\/\).*/{
16708 s//\1/
16709 q
16710 }
16711 s/.*/./; q'`
16712 as_dir="$ac_dir"; as_fn_mkdir_p
16713 ac_builddir=.
16714
16715case "$ac_dir" in
16716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16717*)
16718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16719 # A ".." for each directory in $ac_dir_suffix.
16720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16721 case $ac_top_builddir_sub in
16722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16724 esac ;;
16725esac
16726ac_abs_top_builddir=$ac_pwd
16727ac_abs_builddir=$ac_pwd$ac_dir_suffix
16728# for backward compatibility:
16729ac_top_builddir=$ac_top_build_prefix
16730
16731case $srcdir in
16732 .) # We are building in place.
16733 ac_srcdir=.
16734 ac_top_srcdir=$ac_top_builddir_sub
16735 ac_abs_top_srcdir=$ac_pwd ;;
16736 [\\/]* | ?:[\\/]* ) # Absolute name.
16737 ac_srcdir=$srcdir$ac_dir_suffix;
16738 ac_top_srcdir=$srcdir
16739 ac_abs_top_srcdir=$srcdir ;;
16740 *) # Relative name.
16741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16742 ac_top_srcdir=$ac_top_build_prefix$srcdir
16743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16744esac
16745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16746
16747
16748 case $ac_mode in
16749 :F)
16750 #
16751 # CONFIG_FILE
16752 #
16753
16754 case $INSTALL in
16755 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16756 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16757 esac
16758 ac_MKDIR_P=$MKDIR_P
16759 case $MKDIR_P in
16760 [\\/$]* | ?:[\\/]* ) ;;
16761 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16762 esac
16763_ACEOF
16764
16765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16766# If the template does not know about datarootdir, expand it.
16767# FIXME: This hack should be removed a few years after 2.60.
16768ac_datarootdir_hack=; ac_datarootdir_seen=
16769ac_sed_dataroot='
16770/datarootdir/ {
16771 p
16772 q
16773}
16774/@datadir@/p
16775/@docdir@/p
16776/@infodir@/p
16777/@localedir@/p
16778/@mandir@/p'
16779case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16780*datarootdir*) ac_datarootdir_seen=yes;;
16781*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16783$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16784_ACEOF
16785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16786 ac_datarootdir_hack='
16787 s&@datadir@&$datadir&g
16788 s&@docdir@&$docdir&g
16789 s&@infodir@&$infodir&g
16790 s&@localedir@&$localedir&g
16791 s&@mandir@&$mandir&g
16792 s&\\\${datarootdir}&$datarootdir&g' ;;
16793esac
16794_ACEOF
16795
16796# Neutralize VPATH when `$srcdir' = `.'.
16797# Shell code in configure.ac might set extrasub.
16798# FIXME: do we really want to maintain this feature?
16799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16800ac_sed_extra="$ac_vpsub
16801$extrasub
16802_ACEOF
16803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16804:t
16805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16806s|@configure_input@|$ac_sed_conf_input|;t t
16807s&@top_builddir@&$ac_top_builddir_sub&;t t
16808s&@top_build_prefix@&$ac_top_build_prefix&;t t
16809s&@srcdir@&$ac_srcdir&;t t
16810s&@abs_srcdir@&$ac_abs_srcdir&;t t
16811s&@top_srcdir@&$ac_top_srcdir&;t t
16812s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16813s&@builddir@&$ac_builddir&;t t
16814s&@abs_builddir@&$ac_abs_builddir&;t t
16815s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16816s&@INSTALL@&$ac_INSTALL&;t t
16817s&@MKDIR_P@&$ac_MKDIR_P&;t t
16818$ac_datarootdir_hack
16819"
16820eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16821 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16822
16823test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16824 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16826 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16828which seems to be undefined. Please make sure it is defined" >&5
16829$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16830which seems to be undefined. Please make sure it is defined" >&2;}
16831
16832 rm -f "$ac_tmp/stdin"
16833 case $ac_file in
16834 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16835 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16836 esac \
16837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16838 ;;
16839 :H)
16840 #
16841 # CONFIG_HEADER
16842 #
16843 if test x"$ac_file" != x-; then
16844 {
16845 $as_echo "/* $configure_input */" \
16846 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16847 } >"$ac_tmp/config.h" \
16848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16849 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16851$as_echo "$as_me: $ac_file is unchanged" >&6;}
16852 else
16853 rm -f "$ac_file"
16854 mv "$ac_tmp/config.h" "$ac_file" \
16855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16856 fi
16857 else
16858 $as_echo "/* $configure_input */" \
16859 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16860 || as_fn_error $? "could not create -" "$LINENO" 5
16861 fi
16862# Compute "$ac_file"'s index in $config_headers.
16863_am_arg="$ac_file"
16864_am_stamp_count=1
16865for _am_header in $config_headers :; do
16866 case $_am_header in
16867 $_am_arg | $_am_arg:* )
16868 break ;;
16869 * )
16870 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16871 esac
16872done
16873echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16874$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16875 X"$_am_arg" : 'X\(//\)[^/]' \| \
16876 X"$_am_arg" : 'X\(//\)$' \| \
16877 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16878$as_echo X"$_am_arg" |
16879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16880 s//\1/
16881 q
16882 }
16883 /^X\(\/\/\)[^/].*/{
16884 s//\1/
16885 q
16886 }
16887 /^X\(\/\/\)$/{
16888 s//\1/
16889 q
16890 }
16891 /^X\(\/\).*/{
16892 s//\1/
16893 q
16894 }
16895 s/.*/./; q'`/stamp-h$_am_stamp_count
16896 ;;
16897
16898 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16899$as_echo "$as_me: executing $ac_file commands" >&6;}
16900 ;;
16901 esac
16902
16903
16904 case $ac_file$ac_mode in
16905 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16906 # Older Autoconf quotes --file arguments for eval, but not when files
16907 # are listed without --file. Let's play safe and only enable the eval
16908 # if we detect the quoting.
16909 case $CONFIG_FILES in
16910 *\'*) eval set x "$CONFIG_FILES" ;;
16911 *) set x $CONFIG_FILES ;;
16912 esac
16913 shift
16914 for mf
16915 do
16916 # Strip MF so we end up with the name of the file.
16917 mf=`echo "$mf" | sed -e 's/:.*$//'`
16918 # Check whether this is an Automake generated Makefile or not.
16919 # We used to match only the files named 'Makefile.in', but
16920 # some people rename them; so instead we look at the file content.
16921 # Grep'ing the first line is not enough: some people post-process
16922 # each Makefile.in and add a new line on top of each file to say so.
16923 # Grep'ing the whole file is not good either: AIX grep has a line
16924 # limit of 2048, but all sed's we know have understand at least 4000.
16925 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16926 dirpart=`$as_dirname -- "$mf" ||
16927$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16928 X"$mf" : 'X\(//\)[^/]' \| \
16929 X"$mf" : 'X\(//\)$' \| \
16930 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16931$as_echo X"$mf" |
16932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16933 s//\1/
16934 q
16935 }
16936 /^X\(\/\/\)[^/].*/{
16937 s//\1/
16938 q
16939 }
16940 /^X\(\/\/\)$/{
16941 s//\1/
16942 q
16943 }
16944 /^X\(\/\).*/{
16945 s//\1/
16946 q
16947 }
16948 s/.*/./; q'`
16949 else
16950 continue
16951 fi
16952 # Extract the definition of DEPDIR, am__include, and am__quote
16953 # from the Makefile without running 'make'.
16954 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16955 test -z "$DEPDIR" && continue
16956 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16957 test -z "$am__include" && continue
16958 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16959 # Find all dependency output files, they are included files with
16960 # $(DEPDIR) in their names. We invoke sed twice because it is the
16961 # simplest approach to changing $(DEPDIR) to its actual value in the
16962 # expansion.
16963 for file in `sed -n "
16964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16966 # Make sure the directory exists.
16967 test -f "$dirpart/$file" && continue
16968 fdir=`$as_dirname -- "$file" ||
16969$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16970 X"$file" : 'X\(//\)[^/]' \| \
16971 X"$file" : 'X\(//\)$' \| \
16972 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16973$as_echo X"$file" |
16974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16975 s//\1/
16976 q
16977 }
16978 /^X\(\/\/\)[^/].*/{
16979 s//\1/
16980 q
16981 }
16982 /^X\(\/\/\)$/{
16983 s//\1/
16984 q
16985 }
16986 /^X\(\/\).*/{
16987 s//\1/
16988 q
16989 }
16990 s/.*/./; q'`
16991 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16992 # echo "creating $dirpart/$file"
16993 echo '# dummy' > "$dirpart/$file"
16994 done
16995 done
16996}
16997 ;;
Jeff Thompson36174062013-06-21 16:03:44 -070016998 "libtool":C)
16999
17000 # See if we are running on zsh, and set the options which allow our
17001 # commands through without removal of \ escapes.
17002 if test -n "${ZSH_VERSION+set}" ; then
17003 setopt NO_GLOB_SUBST
17004 fi
17005
17006 cfgfile="${ofile}T"
17007 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17008 $RM "$cfgfile"
17009
17010 cat <<_LT_EOF >> "$cfgfile"
17011#! $SHELL
17012
17013# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17014# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17015# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17016# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17017#
17018# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17019# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17020# Foundation, Inc.
17021# Written by Gordon Matzigkeit, 1996
17022#
17023# This file is part of GNU Libtool.
17024#
17025# GNU Libtool is free software; you can redistribute it and/or
17026# modify it under the terms of the GNU General Public License as
17027# published by the Free Software Foundation; either version 2 of
17028# the License, or (at your option) any later version.
17029#
17030# As a special exception to the GNU General Public License,
17031# if you distribute this file as part of a program or library that
17032# is built using GNU Libtool, you may include this file under the
17033# same distribution terms that you use for the rest of that program.
17034#
17035# GNU Libtool is distributed in the hope that it will be useful,
17036# but WITHOUT ANY WARRANTY; without even the implied warranty of
17037# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17038# GNU General Public License for more details.
17039#
17040# You should have received a copy of the GNU General Public License
17041# along with GNU Libtool; see the file COPYING. If not, a copy
17042# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17043# obtained by writing to the Free Software Foundation, Inc.,
17044# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17045
17046
17047# The names of the tagged configurations supported by this script.
17048available_tags="CXX "
17049
17050# ### BEGIN LIBTOOL CONFIG
17051
17052# Which release of libtool.m4 was used?
17053macro_version=$macro_version
17054macro_revision=$macro_revision
17055
17056# Whether or not to build shared libraries.
17057build_libtool_libs=$enable_shared
17058
17059# Whether or not to build static libraries.
17060build_old_libs=$enable_static
17061
17062# What type of objects to build.
17063pic_mode=$pic_mode
17064
17065# Whether or not to optimize for fast installation.
17066fast_install=$enable_fast_install
17067
17068# Shell to use when invoking shell scripts.
17069SHELL=$lt_SHELL
17070
17071# An echo program that protects backslashes.
17072ECHO=$lt_ECHO
17073
17074# The PATH separator for the build system.
17075PATH_SEPARATOR=$lt_PATH_SEPARATOR
17076
17077# The host system.
17078host_alias=$host_alias
17079host=$host
17080host_os=$host_os
17081
17082# The build system.
17083build_alias=$build_alias
17084build=$build
17085build_os=$build_os
17086
17087# A sed program that does not truncate output.
17088SED=$lt_SED
17089
17090# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17091Xsed="\$SED -e 1s/^X//"
17092
17093# A grep program that handles long lines.
17094GREP=$lt_GREP
17095
17096# An ERE matcher.
17097EGREP=$lt_EGREP
17098
17099# A literal string matcher.
17100FGREP=$lt_FGREP
17101
17102# A BSD- or MS-compatible name lister.
17103NM=$lt_NM
17104
17105# Whether we need soft or hard links.
17106LN_S=$lt_LN_S
17107
17108# What is the maximum length of a command?
17109max_cmd_len=$max_cmd_len
17110
17111# Object file suffix (normally "o").
17112objext=$ac_objext
17113
17114# Executable file suffix (normally "").
17115exeext=$exeext
17116
17117# whether the shell understands "unset".
17118lt_unset=$lt_unset
17119
17120# turn spaces into newlines.
17121SP2NL=$lt_lt_SP2NL
17122
17123# turn newlines into spaces.
17124NL2SP=$lt_lt_NL2SP
17125
17126# convert \$build file names to \$host format.
17127to_host_file_cmd=$lt_cv_to_host_file_cmd
17128
17129# convert \$build files to toolchain format.
17130to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17131
17132# An object symbol dumper.
17133OBJDUMP=$lt_OBJDUMP
17134
17135# Method to check whether dependent libraries are shared objects.
17136deplibs_check_method=$lt_deplibs_check_method
17137
17138# Command to use when deplibs_check_method = "file_magic".
17139file_magic_cmd=$lt_file_magic_cmd
17140
17141# How to find potential files when deplibs_check_method = "file_magic".
17142file_magic_glob=$lt_file_magic_glob
17143
17144# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17145want_nocaseglob=$lt_want_nocaseglob
17146
17147# DLL creation program.
17148DLLTOOL=$lt_DLLTOOL
17149
17150# Command to associate shared and link libraries.
17151sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17152
17153# The archiver.
17154AR=$lt_AR
17155
17156# Flags to create an archive.
17157AR_FLAGS=$lt_AR_FLAGS
17158
17159# How to feed a file listing to the archiver.
17160archiver_list_spec=$lt_archiver_list_spec
17161
17162# A symbol stripping program.
17163STRIP=$lt_STRIP
17164
17165# Commands used to install an old-style archive.
17166RANLIB=$lt_RANLIB
17167old_postinstall_cmds=$lt_old_postinstall_cmds
17168old_postuninstall_cmds=$lt_old_postuninstall_cmds
17169
17170# Whether to use a lock for old archive extraction.
17171lock_old_archive_extraction=$lock_old_archive_extraction
17172
17173# A C compiler.
17174LTCC=$lt_CC
17175
17176# LTCC compiler flags.
17177LTCFLAGS=$lt_CFLAGS
17178
17179# Take the output of nm and produce a listing of raw symbols and C names.
17180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17181
17182# Transform the output of nm in a proper C declaration.
17183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17184
17185# Transform the output of nm in a C name address pair.
17186global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17187
17188# Transform the output of nm in a C name address pair when lib prefix is needed.
17189global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17190
17191# Specify filename containing input files for \$NM.
17192nm_file_list_spec=$lt_nm_file_list_spec
17193
17194# The root where to search for dependent libraries,and in which our libraries should be installed.
17195lt_sysroot=$lt_sysroot
17196
17197# The name of the directory that contains temporary libtool files.
17198objdir=$objdir
17199
17200# Used to examine libraries when file_magic_cmd begins with "file".
17201MAGIC_CMD=$MAGIC_CMD
17202
17203# Must we lock files when doing compilation?
17204need_locks=$lt_need_locks
17205
17206# Manifest tool.
17207MANIFEST_TOOL=$lt_MANIFEST_TOOL
17208
17209# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17210DSYMUTIL=$lt_DSYMUTIL
17211
17212# Tool to change global to local symbols on Mac OS X.
17213NMEDIT=$lt_NMEDIT
17214
17215# Tool to manipulate fat objects and archives on Mac OS X.
17216LIPO=$lt_LIPO
17217
17218# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17219OTOOL=$lt_OTOOL
17220
17221# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17222OTOOL64=$lt_OTOOL64
17223
17224# Old archive suffix (normally "a").
17225libext=$libext
17226
17227# Shared library suffix (normally ".so").
17228shrext_cmds=$lt_shrext_cmds
17229
17230# The commands to extract the exported symbol list from a shared archive.
17231extract_expsyms_cmds=$lt_extract_expsyms_cmds
17232
17233# Variables whose values should be saved in libtool wrapper scripts and
17234# restored at link time.
17235variables_saved_for_relink=$lt_variables_saved_for_relink
17236
17237# Do we need the "lib" prefix for modules?
17238need_lib_prefix=$need_lib_prefix
17239
17240# Do we need a version for libraries?
17241need_version=$need_version
17242
17243# Library versioning type.
17244version_type=$version_type
17245
17246# Shared library runtime path variable.
17247runpath_var=$runpath_var
17248
17249# Shared library path variable.
17250shlibpath_var=$shlibpath_var
17251
17252# Is shlibpath searched before the hard-coded library search path?
17253shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17254
17255# Format of library name prefix.
17256libname_spec=$lt_libname_spec
17257
17258# List of archive names. First name is the real one, the rest are links.
17259# The last name is the one that the linker finds with -lNAME
17260library_names_spec=$lt_library_names_spec
17261
17262# The coded name of the library, if different from the real name.
17263soname_spec=$lt_soname_spec
17264
17265# Permission mode override for installation of shared libraries.
17266install_override_mode=$lt_install_override_mode
17267
17268# Command to use after installation of a shared archive.
17269postinstall_cmds=$lt_postinstall_cmds
17270
17271# Command to use after uninstallation of a shared archive.
17272postuninstall_cmds=$lt_postuninstall_cmds
17273
17274# Commands used to finish a libtool library installation in a directory.
17275finish_cmds=$lt_finish_cmds
17276
17277# As "finish_cmds", except a single script fragment to be evaled but
17278# not shown.
17279finish_eval=$lt_finish_eval
17280
17281# Whether we should hardcode library paths into libraries.
17282hardcode_into_libs=$hardcode_into_libs
17283
17284# Compile-time system search path for libraries.
17285sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17286
17287# Run-time system search path for libraries.
17288sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17289
17290# Whether dlopen is supported.
17291dlopen_support=$enable_dlopen
17292
17293# Whether dlopen of programs is supported.
17294dlopen_self=$enable_dlopen_self
17295
17296# Whether dlopen of statically linked programs is supported.
17297dlopen_self_static=$enable_dlopen_self_static
17298
17299# Commands to strip libraries.
17300old_striplib=$lt_old_striplib
17301striplib=$lt_striplib
17302
17303
17304# The linker used to build libraries.
17305LD=$lt_LD
17306
17307# How to create reloadable object files.
17308reload_flag=$lt_reload_flag
17309reload_cmds=$lt_reload_cmds
17310
17311# Commands used to build an old-style archive.
17312old_archive_cmds=$lt_old_archive_cmds
17313
17314# A language specific compiler.
17315CC=$lt_compiler
17316
17317# Is the compiler the GNU compiler?
17318with_gcc=$GCC
17319
17320# Compiler flag to turn off builtin functions.
17321no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17322
17323# Additional compiler flags for building library objects.
17324pic_flag=$lt_lt_prog_compiler_pic
17325
17326# How to pass a linker flag through the compiler.
17327wl=$lt_lt_prog_compiler_wl
17328
17329# Compiler flag to prevent dynamic linking.
17330link_static_flag=$lt_lt_prog_compiler_static
17331
17332# Does compiler simultaneously support -c and -o options?
17333compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17334
17335# Whether or not to add -lc for building shared libraries.
17336build_libtool_need_lc=$archive_cmds_need_lc
17337
17338# Whether or not to disallow shared libs when runtime libs are static.
17339allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17340
17341# Compiler flag to allow reflexive dlopens.
17342export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17343
17344# Compiler flag to generate shared objects directly from archives.
17345whole_archive_flag_spec=$lt_whole_archive_flag_spec
17346
17347# Whether the compiler copes with passing no objects directly.
17348compiler_needs_object=$lt_compiler_needs_object
17349
17350# Create an old-style archive from a shared archive.
17351old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17352
17353# Create a temporary old-style archive to link instead of a shared archive.
17354old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17355
17356# Commands used to build a shared archive.
17357archive_cmds=$lt_archive_cmds
17358archive_expsym_cmds=$lt_archive_expsym_cmds
17359
17360# Commands used to build a loadable module if different from building
17361# a shared archive.
17362module_cmds=$lt_module_cmds
17363module_expsym_cmds=$lt_module_expsym_cmds
17364
17365# Whether we are building with GNU ld or not.
17366with_gnu_ld=$lt_with_gnu_ld
17367
17368# Flag that allows shared libraries with undefined symbols to be built.
17369allow_undefined_flag=$lt_allow_undefined_flag
17370
17371# Flag that enforces no undefined symbols.
17372no_undefined_flag=$lt_no_undefined_flag
17373
17374# Flag to hardcode \$libdir into a binary during linking.
17375# This must work even if \$libdir does not exist
17376hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17377
17378# Whether we need a single "-rpath" flag with a separated argument.
17379hardcode_libdir_separator=$lt_hardcode_libdir_separator
17380
17381# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17382# DIR into the resulting binary.
17383hardcode_direct=$hardcode_direct
17384
17385# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17386# DIR into the resulting binary and the resulting library dependency is
17387# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17388# library is relocated.
17389hardcode_direct_absolute=$hardcode_direct_absolute
17390
17391# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17392# into the resulting binary.
17393hardcode_minus_L=$hardcode_minus_L
17394
17395# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17396# into the resulting binary.
17397hardcode_shlibpath_var=$hardcode_shlibpath_var
17398
17399# Set to "yes" if building a shared library automatically hardcodes DIR
17400# into the library and all subsequent libraries and executables linked
17401# against it.
17402hardcode_automatic=$hardcode_automatic
17403
17404# Set to yes if linker adds runtime paths of dependent libraries
17405# to runtime path list.
17406inherit_rpath=$inherit_rpath
17407
17408# Whether libtool must link a program against all its dependency libraries.
17409link_all_deplibs=$link_all_deplibs
17410
17411# Set to "yes" if exported symbols are required.
17412always_export_symbols=$always_export_symbols
17413
17414# The commands to list exported symbols.
17415export_symbols_cmds=$lt_export_symbols_cmds
17416
17417# Symbols that should not be listed in the preloaded symbols.
17418exclude_expsyms=$lt_exclude_expsyms
17419
17420# Symbols that must always be exported.
17421include_expsyms=$lt_include_expsyms
17422
17423# Commands necessary for linking programs (against libraries) with templates.
17424prelink_cmds=$lt_prelink_cmds
17425
17426# Commands necessary for finishing linking programs.
17427postlink_cmds=$lt_postlink_cmds
17428
17429# Specify filename containing input files.
17430file_list_spec=$lt_file_list_spec
17431
17432# How to hardcode a shared library path into an executable.
17433hardcode_action=$hardcode_action
17434
17435# The directories searched by this compiler when creating a shared library.
17436compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17437
17438# Dependencies to place before and after the objects being linked to
17439# create a shared library.
17440predep_objects=$lt_predep_objects
17441postdep_objects=$lt_postdep_objects
17442predeps=$lt_predeps
17443postdeps=$lt_postdeps
17444
17445# The library search path used internally by the compiler when linking
17446# a shared library.
17447compiler_lib_search_path=$lt_compiler_lib_search_path
17448
17449# ### END LIBTOOL CONFIG
17450
17451_LT_EOF
17452
17453 case $host_os in
17454 aix3*)
17455 cat <<\_LT_EOF >> "$cfgfile"
17456# AIX sometimes has problems with the GCC collect2 program. For some
17457# reason, if we set the COLLECT_NAMES environment variable, the problems
17458# vanish in a puff of smoke.
17459if test "X${COLLECT_NAMES+set}" != Xset; then
17460 COLLECT_NAMES=
17461 export COLLECT_NAMES
17462fi
17463_LT_EOF
17464 ;;
17465 esac
17466
17467
17468ltmain="$ac_aux_dir/ltmain.sh"
17469
17470
17471 # We use sed instead of cat because bash on DJGPP gets confused if
17472 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17473 # text mode, it properly converts lines to CR/LF. This bash problem
17474 # is reportedly fixed, but why not run on old versions too?
17475 sed '$q' "$ltmain" >> "$cfgfile" \
17476 || (rm -f "$cfgfile"; exit 1)
17477
17478 if test x"$xsi_shell" = xyes; then
17479 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17480func_dirname ()\
17481{\
17482\ case ${1} in\
17483\ */*) func_dirname_result="${1%/*}${2}" ;;\
17484\ * ) func_dirname_result="${3}" ;;\
17485\ esac\
17486} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17487 && mv -f "$cfgfile.tmp" "$cfgfile" \
17488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17489test 0 -eq $? || _lt_function_replace_fail=:
17490
17491
17492 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17493func_basename ()\
17494{\
17495\ func_basename_result="${1##*/}"\
17496} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17497 && mv -f "$cfgfile.tmp" "$cfgfile" \
17498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17499test 0 -eq $? || _lt_function_replace_fail=:
17500
17501
17502 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17503func_dirname_and_basename ()\
17504{\
17505\ case ${1} in\
17506\ */*) func_dirname_result="${1%/*}${2}" ;;\
17507\ * ) func_dirname_result="${3}" ;;\
17508\ esac\
17509\ func_basename_result="${1##*/}"\
17510} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17511 && mv -f "$cfgfile.tmp" "$cfgfile" \
17512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17513test 0 -eq $? || _lt_function_replace_fail=:
17514
17515
17516 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17517func_stripname ()\
17518{\
17519\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17520\ # positional parameters, so assign one to ordinary parameter first.\
17521\ func_stripname_result=${3}\
17522\ func_stripname_result=${func_stripname_result#"${1}"}\
17523\ func_stripname_result=${func_stripname_result%"${2}"}\
17524} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17525 && mv -f "$cfgfile.tmp" "$cfgfile" \
17526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17527test 0 -eq $? || _lt_function_replace_fail=:
17528
17529
17530 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17531func_split_long_opt ()\
17532{\
17533\ func_split_long_opt_name=${1%%=*}\
17534\ func_split_long_opt_arg=${1#*=}\
17535} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17536 && mv -f "$cfgfile.tmp" "$cfgfile" \
17537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538test 0 -eq $? || _lt_function_replace_fail=:
17539
17540
17541 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17542func_split_short_opt ()\
17543{\
17544\ func_split_short_opt_arg=${1#??}\
17545\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17546} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17547 && mv -f "$cfgfile.tmp" "$cfgfile" \
17548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17549test 0 -eq $? || _lt_function_replace_fail=:
17550
17551
17552 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17553func_lo2o ()\
17554{\
17555\ case ${1} in\
17556\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17557\ *) func_lo2o_result=${1} ;;\
17558\ esac\
17559} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17560 && mv -f "$cfgfile.tmp" "$cfgfile" \
17561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562test 0 -eq $? || _lt_function_replace_fail=:
17563
17564
17565 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17566func_xform ()\
17567{\
17568 func_xform_result=${1%.*}.lo\
17569} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17570 && mv -f "$cfgfile.tmp" "$cfgfile" \
17571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17572test 0 -eq $? || _lt_function_replace_fail=:
17573
17574
17575 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17576func_arith ()\
17577{\
17578 func_arith_result=$(( $* ))\
17579} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17580 && mv -f "$cfgfile.tmp" "$cfgfile" \
17581 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17582test 0 -eq $? || _lt_function_replace_fail=:
17583
17584
17585 sed -e '/^func_len ()$/,/^} # func_len /c\
17586func_len ()\
17587{\
17588 func_len_result=${#1}\
17589} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17590 && mv -f "$cfgfile.tmp" "$cfgfile" \
17591 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17592test 0 -eq $? || _lt_function_replace_fail=:
17593
17594fi
17595
17596if test x"$lt_shell_append" = xyes; then
17597 sed -e '/^func_append ()$/,/^} # func_append /c\
17598func_append ()\
17599{\
17600 eval "${1}+=\\${2}"\
17601} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17602 && mv -f "$cfgfile.tmp" "$cfgfile" \
17603 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17604test 0 -eq $? || _lt_function_replace_fail=:
17605
17606
17607 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17608func_append_quoted ()\
17609{\
17610\ func_quote_for_eval "${2}"\
17611\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17612} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17613 && mv -f "$cfgfile.tmp" "$cfgfile" \
17614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17615test 0 -eq $? || _lt_function_replace_fail=:
17616
17617
17618 # Save a `func_append' function call where possible by direct use of '+='
17619 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17620 && mv -f "$cfgfile.tmp" "$cfgfile" \
17621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17622 test 0 -eq $? || _lt_function_replace_fail=:
17623else
17624 # Save a `func_append' function call even when '+=' is not available
17625 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17626 && mv -f "$cfgfile.tmp" "$cfgfile" \
17627 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17628 test 0 -eq $? || _lt_function_replace_fail=:
17629fi
17630
17631if test x"$_lt_function_replace_fail" = x":"; then
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17633$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17634fi
17635
17636
17637 mv -f "$cfgfile" "$ofile" ||
17638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17639 chmod +x "$ofile"
17640
17641
17642 cat <<_LT_EOF >> "$ofile"
17643
17644# ### BEGIN LIBTOOL TAG CONFIG: CXX
17645
17646# The linker used to build libraries.
17647LD=$lt_LD_CXX
17648
17649# How to create reloadable object files.
17650reload_flag=$lt_reload_flag_CXX
17651reload_cmds=$lt_reload_cmds_CXX
17652
17653# Commands used to build an old-style archive.
17654old_archive_cmds=$lt_old_archive_cmds_CXX
17655
17656# A language specific compiler.
17657CC=$lt_compiler_CXX
17658
17659# Is the compiler the GNU compiler?
17660with_gcc=$GCC_CXX
17661
17662# Compiler flag to turn off builtin functions.
17663no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17664
17665# Additional compiler flags for building library objects.
17666pic_flag=$lt_lt_prog_compiler_pic_CXX
17667
17668# How to pass a linker flag through the compiler.
17669wl=$lt_lt_prog_compiler_wl_CXX
17670
17671# Compiler flag to prevent dynamic linking.
17672link_static_flag=$lt_lt_prog_compiler_static_CXX
17673
17674# Does compiler simultaneously support -c and -o options?
17675compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17676
17677# Whether or not to add -lc for building shared libraries.
17678build_libtool_need_lc=$archive_cmds_need_lc_CXX
17679
17680# Whether or not to disallow shared libs when runtime libs are static.
17681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17682
17683# Compiler flag to allow reflexive dlopens.
17684export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17685
17686# Compiler flag to generate shared objects directly from archives.
17687whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17688
17689# Whether the compiler copes with passing no objects directly.
17690compiler_needs_object=$lt_compiler_needs_object_CXX
17691
17692# Create an old-style archive from a shared archive.
17693old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17694
17695# Create a temporary old-style archive to link instead of a shared archive.
17696old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17697
17698# Commands used to build a shared archive.
17699archive_cmds=$lt_archive_cmds_CXX
17700archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17701
17702# Commands used to build a loadable module if different from building
17703# a shared archive.
17704module_cmds=$lt_module_cmds_CXX
17705module_expsym_cmds=$lt_module_expsym_cmds_CXX
17706
17707# Whether we are building with GNU ld or not.
17708with_gnu_ld=$lt_with_gnu_ld_CXX
17709
17710# Flag that allows shared libraries with undefined symbols to be built.
17711allow_undefined_flag=$lt_allow_undefined_flag_CXX
17712
17713# Flag that enforces no undefined symbols.
17714no_undefined_flag=$lt_no_undefined_flag_CXX
17715
17716# Flag to hardcode \$libdir into a binary during linking.
17717# This must work even if \$libdir does not exist
17718hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17719
17720# Whether we need a single "-rpath" flag with a separated argument.
17721hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17722
17723# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17724# DIR into the resulting binary.
17725hardcode_direct=$hardcode_direct_CXX
17726
17727# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17728# DIR into the resulting binary and the resulting library dependency is
17729# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17730# library is relocated.
17731hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17732
17733# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17734# into the resulting binary.
17735hardcode_minus_L=$hardcode_minus_L_CXX
17736
17737# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17738# into the resulting binary.
17739hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17740
17741# Set to "yes" if building a shared library automatically hardcodes DIR
17742# into the library and all subsequent libraries and executables linked
17743# against it.
17744hardcode_automatic=$hardcode_automatic_CXX
17745
17746# Set to yes if linker adds runtime paths of dependent libraries
17747# to runtime path list.
17748inherit_rpath=$inherit_rpath_CXX
17749
17750# Whether libtool must link a program against all its dependency libraries.
17751link_all_deplibs=$link_all_deplibs_CXX
17752
17753# Set to "yes" if exported symbols are required.
17754always_export_symbols=$always_export_symbols_CXX
17755
17756# The commands to list exported symbols.
17757export_symbols_cmds=$lt_export_symbols_cmds_CXX
17758
17759# Symbols that should not be listed in the preloaded symbols.
17760exclude_expsyms=$lt_exclude_expsyms_CXX
17761
17762# Symbols that must always be exported.
17763include_expsyms=$lt_include_expsyms_CXX
17764
17765# Commands necessary for linking programs (against libraries) with templates.
17766prelink_cmds=$lt_prelink_cmds_CXX
17767
17768# Commands necessary for finishing linking programs.
17769postlink_cmds=$lt_postlink_cmds_CXX
17770
17771# Specify filename containing input files.
17772file_list_spec=$lt_file_list_spec_CXX
17773
17774# How to hardcode a shared library path into an executable.
17775hardcode_action=$hardcode_action_CXX
17776
17777# The directories searched by this compiler when creating a shared library.
17778compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17779
17780# Dependencies to place before and after the objects being linked to
17781# create a shared library.
17782predep_objects=$lt_predep_objects_CXX
17783postdep_objects=$lt_postdep_objects_CXX
17784predeps=$lt_predeps_CXX
17785postdeps=$lt_postdeps_CXX
17786
17787# The library search path used internally by the compiler when linking
17788# a shared library.
17789compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17790
17791# ### END LIBTOOL TAG CONFIG: CXX
17792_LT_EOF
17793
17794 ;;
Jeff Thompson39128c62013-06-19 14:08:51 -070017795
17796 esac
17797done # for ac_tag
17798
17799
17800as_fn_exit 0
17801_ACEOF
17802ac_clean_files=$ac_clean_files_save
17803
17804test $ac_write_fail = 0 ||
17805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17806
17807
17808# configure is writing to config.log, and then calls config.status.
17809# config.status does its own redirection, appending to config.log.
17810# Unfortunately, on DOS this fails, as config.log is still kept open
17811# by configure, so config.status won't be able to write to it; its
17812# output is simply discarded. So we exec the FD to /dev/null,
17813# effectively closing config.log, so it can be properly (re)opened and
17814# appended to by config.status. When coming back to configure, we
17815# need to make the FD available again.
17816if test "$no_create" != yes; then
17817 ac_cs_success=:
17818 ac_config_status_args=
17819 test "$silent" = yes &&
17820 ac_config_status_args="$ac_config_status_args --quiet"
17821 exec 5>/dev/null
17822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17823 exec 5>>config.log
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || as_fn_exit 1
17827fi
17828if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17830$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17831fi
17832