blob: 76c4a70837a8269b8660ffd9849c29ec8d7f4111 [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="src/ccrtp/rtp.h"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615LIBOBJS
616LIB_MAJOR
617LIB_VERSION
618DOXY_FALSE
619DOXY_TRUE
620DOXYGEN
621KDOC_DIR
622WARN_FLAGS
623GNULIBS
624COMMON_LIBS
625COMMON_CFLAGS
626PKG_CONFIG_LIBDIR
627PKG_CONFIG_PATH
628PKG_CONFIG
629FTPDIR
630MAINT
631MAINTAINER_MODE_FALSE
632MAINTAINER_MODE_TRUE
633LT_CCXX_VERSION
634LT_MINOR
635LT_MAJOR
636LT_SUBVER
637LT_RELEASE
638LIBGCRYPT_LIBS
639LIBGCRYPT_CFLAGS
640LIBGCRYPT_CONFIG
641SRTP_GCRYPT_FALSE
642SRTP_GCRYPT_TRUE
643SRTP_OPENSSL_FALSE
644SRTP_OPENSSL_TRUE
645am__fastdepCXX_FALSE
646am__fastdepCXX_TRUE
647CXXDEPMODE
648am__fastdepCC_FALSE
649am__fastdepCC_TRUE
650CCDEPMODE
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657am__untar
658am__tar
659AMTAR
660am__leading_dot
661SET_MAKE
662mkdir_p
663MKDIR_P
664INSTALL_STRIP_PROGRAM
665install_sh
666MAKEINFO
667AUTOHEADER
668AUTOMAKE
669AUTOCONF
670ACLOCAL
671VERSION
672PACKAGE
673CYGPATH_W
674am__isrc
675INSTALL_DATA
676INSTALL_SCRIPT
677INSTALL_PROGRAM
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684AWK
685RANLIB
686STRIP
687ac_ct_AR
688AR
689DLLTOOL
690OBJDUMP
691LN_S
692NM
693ac_ct_DUMPBIN
694DUMPBIN
695LD
696FGREP
697EGREP
698GREP
699SED
700LIBTOOL
701CXXCPP
702ac_ct_CXX
703CXXFLAGS
704CXX
705CPP
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
713target_os
714target_vendor
715target_cpu
716target
717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_dependency_tracking
774enable_srtp
775with_libgcrypt_prefix
776enable_maintainer_mode
777enable_debug
778enable_profiling
779with_nana
780'
781 ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789CPP
790CXX
791CXXFLAGS
792CCC
793CXXCPP
794PKG_CONFIG
795PKG_CONFIG_PATH
796PKG_CONFIG_LIBDIR
797COMMON_CFLAGS
798COMMON_LIBS'
799
800
801# Initialize some variables set by options.
802ac_init_help=
803ac_init_version=false
804ac_unrecognized_opts=
805ac_unrecognized_sep=
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
828# (The list follows the same order as the GNU Coding Standards.)
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1149
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159"with_$ac_useropt"
1160"*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185Try \`$0 --help' for more information"
1186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1212fi
1213
1214if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1220fi
1221
1222# Check all directory arguments for consistency.
1223for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1227do
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241done
1242
1243# There might be people who depend on the old broken behavior: `$host'
1244# used to hold the argument of --host etc.
1245# FIXME: To remove some day.
1246build=$build_alias
1247host=$host_alias
1248target=$target_alias
1249
1250# FIXME: To remove some day.
1251if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1255 If a cross compiler is detected then cross compile mode will be used" >&2
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259fi
1260
1261ac_tool_prefix=
1262test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264test "$silent" = yes && exec 6>/dev/null
1265
1266
1267ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268ac_ls_di=`ls -di .` &&
1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275# Find the source files, if location was not specified.
1276if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284$as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306else
1307 ac_srcdir_defaulted=no
1308fi
1309if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312fi
1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317# When building in place, set srcdir=.
1318if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320fi
1321# Remove unnecessary trailing slashes from srcdir.
1322# Double slashes in file names in object file debugging info
1323# mess up M-x gdb in Emacs.
1324case $srcdir in
1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326esac
1327for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332done
1333
1334#
1335# Report the --help message.
1336#
1337if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341\`configure' configures this package to adapt to many kinds of systems.
1342
1343Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348Defaults for the options are specified in brackets.
1349
1350Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367By default, \`make install' will install all the files in
1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370for instance \`--prefix=\$HOME'.
1371
1372For better control, use the options below.
1373
1374Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394_ACEOF
1395
1396 cat <<\_ACEOF
1397
1398Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 --target=TARGET configure for building compilers for TARGET [HOST]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411
1412 cat <<\_ACEOF
1413
1414Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --enable-srtp enable SRTP support (default enabled)
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
1428 --enable-debug compile for debugging
1429 --enable-profiling compile for profiling
1430
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-pic try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-sysroot=DIR Search for dependent libraries within DIR
1438 (or the compiler's sysroot if not specified).
1439 --with-libgcrypt-prefix=PFX
1440 prefix where LIBGCRYPT is installed (optional)
1441 --with-nana use GNU nana for asserts and logging
1442
1443Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CXXCPP C++ preprocessor
1455 PKG_CONFIG path to pkg-config utility
1456 PKG_CONFIG_PATH
1457 directories to add to pkg-config's search path
1458 PKG_CONFIG_LIBDIR
1459 path overriding pkg-config's built-in search path
1460 COMMON_CFLAGS
1461 C compiler flags for COMMON, overriding pkg-config
1462 COMMON_LIBS linker flags for COMMON, overriding pkg-config
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to the package provider.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529 cat <<\_ACEOF
1530configure
1531generated by GNU Autoconf 2.68
1532
1533Copyright (C) 2010 Free Software Foundation, Inc.
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537 exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
1548{
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571else
1572 $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580} # ac_fn_c_try_compile
1581
1582# ac_fn_c_try_cpp LINENO
1583# ----------------------
1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_cpp ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } > conftest.i && {
1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 }; then :
1607 ac_retval=0
1608else
1609 $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_cpp
1618
1619# ac_fn_cxx_try_compile LINENO
1620# ----------------------------
1621# Try to compile conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_cxx_try_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646else
1647 $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655} # ac_fn_cxx_try_compile
1656
1657# ac_fn_cxx_try_cpp LINENO
1658# ------------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_cxx_try_cpp ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692} # ac_fn_cxx_try_cpp
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 $as_test_x conftest$ac_exeext
1722 }; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732 # interfere with the next link command; also delete a directory that is
1733 # left behind by Apple's compiler. We do this before executing the actions.
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_link
1739
1740# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741# -------------------------------------------------------
1742# Tests whether HEADER exists and can be compiled using the include files in
1743# INCLUDES, setting the cache variable VAR accordingly.
1744ac_fn_c_check_header_compile ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h. */
1754$4
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_compile "$LINENO"; then :
1758 eval "$3=yes"
1759else
1760 eval "$3=no"
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_header_compile
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=$ac_status
1806fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h. */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861 ;
1862 return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867else
1868 eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879
1880# ac_fn_cxx_try_link LINENO
1881# -------------------------
1882# Try to link conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_link ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 $as_test_x conftest$ac_exeext
1908 }; then :
1909 ac_retval=0
1910else
1911 $as_echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915fi
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924} # ac_fn_cxx_try_link
1925
1926# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927# -------------------------------------------------------
1928# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929# the include files in INCLUDES and setting the cache variable VAR
1930# accordingly.
1931ac_fn_c_check_header_mongrel ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939fi
1940eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943else
1944 # Is the header compilable?
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946$as_echo_n "checking $2 usability... " >&6; }
1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950#include <$2>
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1954else
1955 ac_header_compiler=no
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959$as_echo "$ac_header_compiler" >&6; }
1960
1961# Is the header present?
1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963$as_echo_n "checking $2 presence... " >&6; }
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966#include <$2>
1967_ACEOF
1968if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1970else
1971 ac_header_preproc=no
1972fi
1973rm -f conftest.err conftest.i conftest.$ac_ext
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975$as_echo "$ac_header_preproc" >&6; }
1976
1977# So? What about this header?
1978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 yes:no: )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ;;
1985 no:yes:* )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 ;;
1997esac
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002else
2003 eval "$3=\$ac_header_compiler"
2004fi
2005eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008fi
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_header_mongrel
2012cat >config.log <<_ACEOF
2013This file contains any messages produced by compilers while
2014running configure, to aid debugging if configure makes a mistake.
2015
2016It was created by $as_me, which was
2017generated by GNU Autoconf 2.68. Invocation command line was
2018
2019 $ $0 $@
2020
2021_ACEOF
2022exec 5>>config.log
2023{
2024cat <<_ASUNAME
2025## --------- ##
2026## Platform. ##
2027## --------- ##
2028
2029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2030uname -m = `(uname -m) 2>/dev/null || echo unknown`
2031uname -r = `(uname -r) 2>/dev/null || echo unknown`
2032uname -s = `(uname -s) 2>/dev/null || echo unknown`
2033uname -v = `(uname -v) 2>/dev/null || echo unknown`
2034
2035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2037
2038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2041/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2045
2046_ASUNAME
2047
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 $as_echo "PATH: $as_dir"
2054 done
2055IFS=$as_save_IFS
2056
2057} >&5
2058
2059cat >&5 <<_ACEOF
2060
2061
2062## ----------- ##
2063## Core tests. ##
2064## ----------- ##
2065
2066_ACEOF
2067
2068
2069# Keep a trace of the command line.
2070# Strip out --no-create and --no-recursion so they do not pile up.
2071# Strip out --silent because we don't want to record it for future runs.
2072# Also quote any args containing shell meta-characters.
2073# Make two passes to allow for proper duplicate-argument suppression.
2074ac_configure_args=
2075ac_configure_args0=
2076ac_configure_args1=
2077ac_must_keep_next=false
2078for ac_pass in 1 2
2079do
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085 | -silent | --silent | --silen | --sile | --sil)
2086 continue ;;
2087 *\'*)
2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 esac
2090 case $ac_pass in
2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 2)
2093 as_fn_append ac_configure_args1 " '$ac_arg'"
2094 if test $ac_must_keep_next = true; then
2095 ac_must_keep_next=false # Got value, back to normal.
2096 else
2097 case $ac_arg in
2098 *=* | --config-cache | -C | -disable-* | --disable-* \
2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101 | -with-* | --with-* | -without-* | --without-* | --x)
2102 case "$ac_configure_args0 " in
2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104 esac
2105 ;;
2106 -* ) ac_must_keep_next=true ;;
2107 esac
2108 fi
2109 as_fn_append ac_configure_args " '$ac_arg'"
2110 ;;
2111 esac
2112 done
2113done
2114{ ac_configure_args0=; unset ac_configure_args0;}
2115{ ac_configure_args1=; unset ac_configure_args1;}
2116
2117# When interrupted or exit'd, cleanup temporary files, and complete
2118# config.log. We remove comments because anyway the quotes in there
2119# would cause problems or look ugly.
2120# WARNING: Use '\'' to represent an apostrophe within the trap.
2121# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122trap 'exit_status=$?
2123 # Save into config.log some information that might help in debugging.
2124 {
2125 echo
2126
2127 $as_echo "## ---------------- ##
2128## Cache variables. ##
2129## ---------------- ##"
2130 echo
2131 # The following way of writing the cache mishandles newlines in values,
2132(
2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in #(
2136 *${as_nl}*)
2137 case $ac_var in #(
2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2139$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 esac
2141 case $ac_var in #(
2142 _ | IFS | as_nl) ;; #(
2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2144 *) { eval $ac_var=; unset $ac_var;} ;;
2145 esac ;;
2146 esac
2147 done
2148 (set) 2>&1 |
2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2150 *${as_nl}ac_space=\ *)
2151 sed -n \
2152 "s/'\''/'\''\\\\'\'''\''/g;
2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 ;; #(
2155 *)
2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2157 ;;
2158 esac |
2159 sort
2160)
2161 echo
2162
2163 $as_echo "## ----------------- ##
2164## Output variables. ##
2165## ----------------- ##"
2166 echo
2167 for ac_var in $ac_subst_vars
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176
2177 if test -n "$ac_subst_files"; then
2178 $as_echo "## ------------------- ##
2179## File substitutions. ##
2180## ------------------- ##"
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
2184 eval ac_val=\$$ac_var
2185 case $ac_val in
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 esac
2188 $as_echo "$ac_var='\''$ac_val'\''"
2189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 $as_echo "## ----------- ##
2195## confdefs.h. ##
2196## ----------- ##"
2197 echo
2198 cat confdefs.h
2199 echo
2200 fi
2201 test "$ac_signal" != 0 &&
2202 $as_echo "$as_me: caught signal $ac_signal"
2203 $as_echo "$as_me: exit $exit_status"
2204 } >&5
2205 rm -f core *.core core.conftest.* &&
2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 exit $exit_status
2208' 0
2209for ac_signal in 1 2 13 15; do
2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2211done
2212ac_signal=0
2213
2214# confdefs.h avoids OS command line length limits that DEFS can exceed.
2215rm -f -r conftest* confdefs.h
2216
2217$as_echo "/* confdefs.h */" > confdefs.h
2218
2219# Predefined preprocessor variables.
2220
2221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_NAME "$PACKAGE_NAME"
2223_ACEOF
2224
2225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2227_ACEOF
2228
2229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_VERSION "$PACKAGE_VERSION"
2231_ACEOF
2232
2233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_STRING "$PACKAGE_STRING"
2235_ACEOF
2236
2237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2239_ACEOF
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE_URL "$PACKAGE_URL"
2243_ACEOF
2244
2245
2246# Let the site file select an alternate cache file if it wants to.
2247# Prefer an explicitly selected file to automatically selected ones.
2248ac_site_file1=NONE
2249ac_site_file2=NONE
2250if test -n "$CONFIG_SITE"; then
2251 # We do not want a PATH search for config.site.
2252 case $CONFIG_SITE in #((
2253 -*) ac_site_file1=./$CONFIG_SITE;;
2254 */*) ac_site_file1=$CONFIG_SITE;;
2255 *) ac_site_file1=./$CONFIG_SITE;;
2256 esac
2257elif test "x$prefix" != xNONE; then
2258 ac_site_file1=$prefix/share/config.site
2259 ac_site_file2=$prefix/etc/config.site
2260else
2261 ac_site_file1=$ac_default_prefix/share/config.site
2262 ac_site_file2=$ac_default_prefix/etc/config.site
2263fi
2264for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2265do
2266 test "x$ac_site_file" = xNONE && continue
2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2269$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2270 sed 's/^/| /' "$ac_site_file" >&5
2271 . "$ac_site_file" \
2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274as_fn_error $? "failed to load site script $ac_site_file
2275See \`config.log' for more details" "$LINENO" 5; }
2276 fi
2277done
2278
2279if test -r "$cache_file"; then
2280 # Some versions of bash will fail to source /dev/null (special files
2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2284$as_echo "$as_me: loading cache $cache_file" >&6;}
2285 case $cache_file in
2286 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2287 *) . "./$cache_file";;
2288 esac
2289 fi
2290else
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2292$as_echo "$as_me: creating cache $cache_file" >&6;}
2293 >$cache_file
2294fi
2295
2296# Check that the precious variables saved in the cache have kept the same
2297# value.
2298ac_cache_corrupted=false
2299for ac_var in $ac_precious_vars; do
2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301 eval ac_new_set=\$ac_env_${ac_var}_set
2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303 eval ac_new_val=\$ac_env_${ac_var}_value
2304 case $ac_old_set,$ac_new_set in
2305 set,)
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308 ac_cache_corrupted=: ;;
2309 ,set)
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2311$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2313 ,);;
2314 *)
2315 if test "x$ac_old_val" != "x$ac_new_val"; then
2316 # differences in whitespace do not lead to failure.
2317 ac_old_val_w=`echo x $ac_old_val`
2318 ac_new_val_w=`echo x $ac_new_val`
2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322 ac_cache_corrupted=:
2323 else
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2325$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326 eval $ac_var=\$ac_old_val
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2329$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2331$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2332 fi;;
2333 esac
2334 # Pass precious variables to config.status.
2335 if test "$ac_new_set" = set; then
2336 case $ac_new_val in
2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2338 *) ac_arg=$ac_var=$ac_new_val ;;
2339 esac
2340 case " $ac_configure_args " in
2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343 esac
2344 fi
2345done
2346if $ac_cache_corrupted; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2352fi
2353## -------------------- ##
2354## Main body of script. ##
2355## -------------------- ##
2356
2357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364
2365cfg_options=""
2366if test -z "$*" ; then
2367 if test -f ~/.configure ; then
2368 cfg_options=`grep ^ccrtp: ~/.configure | sed -e s/^ccrtp://`
2369 elif test -f /etc/configure.conf ; then
2370 cfg_options=`grep ^ccrtp: /etc/configure.conf | sed -e s/^ccrtp://`
2371 fi
2372fi
2373
2374if test ! -z "$cfg_options" ; then
2375 echo "using ~/.configure defaults...$cfg_options"
2376 case "$SHELL" in
2377 */bash*)
2378 exec $SHELL $0 $cfg_options
2379 exit -1
2380 ;;
2381 esac
2382 exec $0 $cfg_options
2383 exit -1
2384fi
2385
2386VERSION="1.8.0"
2387REQUIRES="1.3.0"
2388LT_RELEASE="1.8"
2389LT_VERSION="0:0"
2390ac_aux_dir=
2391for ac_dir in autoconf "$srcdir"/autoconf; do
2392 if test -f "$ac_dir/install-sh"; then
2393 ac_aux_dir=$ac_dir
2394 ac_install_sh="$ac_aux_dir/install-sh -c"
2395 break
2396 elif test -f "$ac_dir/install.sh"; then
2397 ac_aux_dir=$ac_dir
2398 ac_install_sh="$ac_aux_dir/install.sh -c"
2399 break
2400 elif test -f "$ac_dir/shtool"; then
2401 ac_aux_dir=$ac_dir
2402 ac_install_sh="$ac_aux_dir/shtool install -c"
2403 break
2404 fi
2405done
2406if test -z "$ac_aux_dir"; then
2407 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2408fi
2409
2410# These three variables are undocumented and unsupported,
2411# and are intended to be withdrawn in a future Autoconf release.
2412# They can cause serious problems if a builder's source tree is in a directory
2413# whose full name contains unusual characters.
2414ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2415ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2416ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2417
2418
2419# Make sure we can run config.sub.
2420$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2421 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2422
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2424$as_echo_n "checking build system type... " >&6; }
2425if ${ac_cv_build+:} false; then :
2426 $as_echo_n "(cached) " >&6
2427else
2428 ac_build_alias=$build_alias
2429test "x$ac_build_alias" = x &&
2430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2431test "x$ac_build_alias" = x &&
2432 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2433ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2435
2436fi
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2438$as_echo "$ac_cv_build" >&6; }
2439case $ac_cv_build in
2440*-*-*) ;;
2441*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2442esac
2443build=$ac_cv_build
2444ac_save_IFS=$IFS; IFS='-'
2445set x $ac_cv_build
2446shift
2447build_cpu=$1
2448build_vendor=$2
2449shift; shift
2450# Remember, the first character of IFS is used to create $*,
2451# except with old shells:
2452build_os=$*
2453IFS=$ac_save_IFS
2454case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2455
2456
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2458$as_echo_n "checking host system type... " >&6; }
2459if ${ac_cv_host+:} false; then :
2460 $as_echo_n "(cached) " >&6
2461else
2462 if test "x$host_alias" = x; then
2463 ac_cv_host=$ac_cv_build
2464else
2465 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2466 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2467fi
2468
2469fi
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2471$as_echo "$ac_cv_host" >&6; }
2472case $ac_cv_host in
2473*-*-*) ;;
2474*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2475esac
2476host=$ac_cv_host
2477ac_save_IFS=$IFS; IFS='-'
2478set x $ac_cv_host
2479shift
2480host_cpu=$1
2481host_vendor=$2
2482shift; shift
2483# Remember, the first character of IFS is used to create $*,
2484# except with old shells:
2485host_os=$*
2486IFS=$ac_save_IFS
2487case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2488
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2491$as_echo_n "checking target system type... " >&6; }
2492if ${ac_cv_target+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494else
2495 if test "x$target_alias" = x; then
2496 ac_cv_target=$ac_cv_host
2497else
2498 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2500fi
2501
2502fi
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2504$as_echo "$ac_cv_target" >&6; }
2505case $ac_cv_target in
2506*-*-*) ;;
2507*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2508esac
2509target=$ac_cv_target
2510ac_save_IFS=$IFS; IFS='-'
2511set x $ac_cv_target
2512shift
2513target_cpu=$1
2514target_vendor=$2
2515shift; shift
2516# Remember, the first character of IFS is used to create $*,
2517# except with old shells:
2518target_os=$*
2519IFS=$ac_save_IFS
2520case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2521
2522
2523# The aliases save the names the user supplied, while $host etc.
2524# will get canonicalized.
2525test -n "$target_alias" &&
2526 test "$program_prefix$program_suffix$program_transform_name" = \
2527 NONENONEs,x,x, &&
2528 program_prefix=${target_alias}-
2529
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if ${ac_cv_prog_CC+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557done
2558 done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563CC=$ac_cv_prog_CC
2564if test -n "$CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2566$as_echo "$CC" >&6; }
2567else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572
2573fi
2574if test -z "$ac_cv_prog_CC"; then
2575 ac_ct_CC=$CC
2576 # Extract the first word of "gcc", so it can be a program name with args.
2577set dummy gcc; ac_word=$2
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if ${ac_cv_prog_ac_ct_CC+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 if test -n "$ac_ct_CC"; then
2584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_ac_ct_CC="gcc"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597done
2598 done
2599IFS=$as_save_IFS
2600
2601fi
2602fi
2603ac_ct_CC=$ac_cv_prog_ac_ct_CC
2604if test -n "$ac_ct_CC"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2606$as_echo "$ac_ct_CC" >&6; }
2607else
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
2610fi
2611
2612 if test "x$ac_ct_CC" = x; then
2613 CC=""
2614 else
2615 case $cross_compiling:$ac_tool_warned in
2616yes:)
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619ac_tool_warned=yes ;;
2620esac
2621 CC=$ac_ct_CC
2622 fi
2623else
2624 CC="$ac_cv_prog_CC"
2625fi
2626
2627if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2630set dummy ${ac_tool_prefix}cc; ac_word=$2
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632$as_echo_n "checking for $ac_word... " >&6; }
2633if ${ac_cv_prog_CC+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640for as_dir in $PATH
2641do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="${ac_tool_prefix}cc"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2649 fi
2650done
2651 done
2652IFS=$as_save_IFS
2653
2654fi
2655fi
2656CC=$ac_cv_prog_CC
2657if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659$as_echo "$CC" >&6; }
2660else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662$as_echo "no" >&6; }
2663fi
2664
2665
2666 fi
2667fi
2668if test -z "$CC"; then
2669 # Extract the first word of "cc", so it can be a program name with args.
2670set dummy cc; ac_word=$2
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672$as_echo_n "checking for $ac_word... " >&6; }
2673if ${ac_cv_prog_CC+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675else
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2678else
2679 ac_prog_rejected=no
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2688 ac_prog_rejected=yes
2689 continue
2690 fi
2691 ac_cv_prog_CC="cc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696 done
2697IFS=$as_save_IFS
2698
2699if test $ac_prog_rejected = yes; then
2700 # We found a bogon in the path, so make sure we never use it.
2701 set dummy $ac_cv_prog_CC
2702 shift
2703 if test $# != 0; then
2704 # We chose a different compiler from the bogus one.
2705 # However, it has the same basename, so the bogon will be chosen
2706 # first if we set CC to just the basename; use the full file name.
2707 shift
2708 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 fi
2710fi
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716$as_echo "$CC" >&6; }
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722
2723fi
2724if test -z "$CC"; then
2725 if test -n "$ac_tool_prefix"; then
2726 for ac_prog in cl.exe
2727 do
2728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749done
2750 done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755CC=$ac_cv_prog_CC
2756if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758$as_echo "$CC" >&6; }
2759else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761$as_echo "no" >&6; }
2762fi
2763
2764
2765 test -n "$CC" && break
2766 done
2767fi
2768if test -z "$CC"; then
2769 ac_ct_CC=$CC
2770 for ac_prog in cl.exe
2771do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773set dummy $ac_prog; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_ac_ct_CC="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794 done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802$as_echo "$ac_ct_CC" >&6; }
2803else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809 test -n "$ac_ct_CC" && break
2810done
2811
2812 if test "x$ac_ct_CC" = x; then
2813 CC=""
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816yes:)
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819ac_tool_warned=yes ;;
2820esac
2821 CC=$ac_ct_CC
2822 fi
2823fi
2824
2825fi
2826
2827
2828test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2830as_fn_error $? "no acceptable C compiler found in \$PATH
2831See \`config.log' for more details" "$LINENO" 5; }
2832
2833# Provide some information about the compiler.
2834$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2835set X $ac_compile
2836ac_compiler=$2
2837for ac_option in --version -v -V -qversion; do
2838 { { ac_try="$ac_compiler $ac_option >&5"
2839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2844$as_echo "$ac_try_echo"; } >&5
2845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2846 ac_status=$?
2847 if test -s conftest.err; then
2848 sed '10a\
2849... rest of stderr output deleted ...
2850 10q' conftest.err >conftest.er1
2851 cat conftest.er1 >&5
2852 fi
2853 rm -f conftest.er1 conftest.err
2854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855 test $ac_status = 0; }
2856done
2857
2858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859/* end confdefs.h. */
2860
2861int
2862main ()
2863{
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869ac_clean_files_save=$ac_clean_files
2870ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2871# Try to create an executable without -o first, disregard a.out.
2872# It will help us diagnose broken compilers, and finding out an intuition
2873# of exeext.
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2875$as_echo_n "checking whether the C compiler works... " >&6; }
2876ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2877
2878# The possible output files:
2879ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2880
2881ac_rmfiles=
2882for ac_file in $ac_files
2883do
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2887 esac
2888done
2889rm -f $ac_rmfiles
2890
2891if { { ac_try="$ac_link_default"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897$as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_link_default") 2>&5
2899 ac_status=$?
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; then :
2902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2903# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2904# in a Makefile. We should not override ac_cv_exeext if it was cached,
2905# so that the user can short-circuit this test for compilers unknown to
2906# Autoconf.
2907for ac_file in $ac_files ''
2908do
2909 test -f "$ac_file" || continue
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2912 ;;
2913 [ab].out )
2914 # We found the default executable, but exeext='' is most
2915 # certainly right.
2916 break;;
2917 *.* )
2918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2919 then :; else
2920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 fi
2922 # We set ac_cv_exeext here because the later test for it is not
2923 # safe: cross compilers may not add the suffix if given an `-o'
2924 # argument, so we may need to know it at that point already.
2925 # Even if this section looks crufty: it has the advantage of
2926 # actually working.
2927 break;;
2928 * )
2929 break;;
2930 esac
2931done
2932test "$ac_cv_exeext" = no && ac_cv_exeext=
2933
2934else
2935 ac_file=''
2936fi
2937if test -z "$ac_file"; then :
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940$as_echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945as_fn_error 77 "C compiler cannot create executables
2946See \`config.log' for more details" "$LINENO" 5; }
2947else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949$as_echo "yes" >&6; }
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2952$as_echo_n "checking for C compiler default output file name... " >&6; }
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954$as_echo "$ac_file" >&6; }
2955ac_exeext=$ac_cv_exeext
2956
2957rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2958ac_clean_files=$ac_clean_files_save
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2960$as_echo_n "checking for suffix of executables... " >&6; }
2961if { { ac_try="$ac_link"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967$as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_link") 2>&5
2969 ac_status=$?
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974# work properly (i.e., refer to `conftest.exe'), while it won't with
2975# `rm'.
2976for ac_file in conftest.exe conftest conftest.*; do
2977 test -f "$ac_file" || continue
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 break;;
2982 * ) break;;
2983 esac
2984done
2985else
2986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2989See \`config.log' for more details" "$LINENO" 5; }
2990fi
2991rm -f conftest conftest$ac_cv_exeext
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2993$as_echo "$ac_cv_exeext" >&6; }
2994
2995rm -f conftest.$ac_ext
2996EXEEXT=$ac_cv_exeext
2997ac_exeext=$EXEEXT
2998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2999/* end confdefs.h. */
3000#include <stdio.h>
3001int
3002main ()
3003{
3004FILE *f = fopen ("conftest.out", "w");
3005 return ferror (f) || fclose (f) != 0;
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011ac_clean_files="$ac_clean_files conftest.out"
3012# Check that the compiler produces executables we can run. If not, either
3013# the compiler is broken, or we cross compile.
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3015$as_echo_n "checking whether we are cross compiling... " >&6; }
3016if test "$cross_compiling" != yes; then
3017 { { ac_try="$ac_link"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023$as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }
3028 if { ac_try='./conftest$ac_cv_exeext'
3029 { { case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; }; then
3039 cross_compiling=no
3040 else
3041 if test "$cross_compiling" = maybe; then
3042 cross_compiling=yes
3043 else
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046as_fn_error $? "cannot run C compiled programs.
3047If you meant to cross compile, use \`--host'.
3048See \`config.log' for more details" "$LINENO" 5; }
3049 fi
3050 fi
3051fi
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3053$as_echo "$cross_compiling" >&6; }
3054
3055rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3056ac_clean_files=$ac_clean_files_save
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3058$as_echo_n "checking for suffix of object files... " >&6; }
3059if ${ac_cv_objext+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063/* end confdefs.h. */
3064
3065int
3066main ()
3067{
3068
3069 ;
3070 return 0;
3071}
3072_ACEOF
3073rm -f conftest.o conftest.obj
3074if { { ac_try="$ac_compile"
3075case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078esac
3079eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080$as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_compile") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; then :
3085 for ac_file in conftest.o conftest.obj conftest.*; do
3086 test -f "$ac_file" || continue;
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3090 break;;
3091 esac
3092done
3093else
3094 $as_echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099as_fn_error $? "cannot compute suffix of object files: cannot compile
3100See \`config.log' for more details" "$LINENO" 5; }
3101fi
3102rm -f conftest.$ac_cv_objext conftest.$ac_ext
3103fi
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3105$as_echo "$ac_cv_objext" >&6; }
3106OBJEXT=$ac_cv_objext
3107ac_objext=$OBJEXT
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3109$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3110if ${ac_cv_c_compiler_gnu+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112else
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119#ifndef __GNUC__
3120 choke me
3121#endif
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127if ac_fn_c_try_compile "$LINENO"; then :
3128 ac_compiler_gnu=yes
3129else
3130 ac_compiler_gnu=no
3131fi
3132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133ac_cv_c_compiler_gnu=$ac_compiler_gnu
3134
3135fi
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3137$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3138if test $ac_compiler_gnu = yes; then
3139 GCC=yes
3140else
3141 GCC=
3142fi
3143ac_test_CFLAGS=${CFLAGS+set}
3144ac_save_CFLAGS=$CFLAGS
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3146$as_echo_n "checking whether $CC accepts -g... " >&6; }
3147if ${ac_cv_prog_cc_g+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149else
3150 ac_save_c_werror_flag=$ac_c_werror_flag
3151 ac_c_werror_flag=yes
3152 ac_cv_prog_cc_g=no
3153 CFLAGS="-g"
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155/* end confdefs.h. */
3156
3157int
3158main ()
3159{
3160
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165if ac_fn_c_try_compile "$LINENO"; then :
3166 ac_cv_prog_cc_g=yes
3167else
3168 CFLAGS=""
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180if ac_fn_c_try_compile "$LINENO"; then :
3181
3182else
3183 ac_c_werror_flag=$ac_save_c_werror_flag
3184 CFLAGS="-g"
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186/* end confdefs.h. */
3187
3188int
3189main ()
3190{
3191
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196if ac_fn_c_try_compile "$LINENO"; then :
3197 ac_cv_prog_cc_g=yes
3198fi
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3205fi
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3207$as_echo "$ac_cv_prog_cc_g" >&6; }
3208if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3212 CFLAGS="-g -O2"
3213 else
3214 CFLAGS="-g"
3215 fi
3216else
3217 if test "$GCC" = yes; then
3218 CFLAGS="-O2"
3219 else
3220 CFLAGS=
3221 fi
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3224$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225if ${ac_cv_prog_cc_c89+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227else
3228 ac_cv_prog_cc_c89=no
3229ac_save_CC=$CC
3230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231/* end confdefs.h. */
3232#include <stdarg.h>
3233#include <stdio.h>
3234#include <sys/types.h>
3235#include <sys/stat.h>
3236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237struct buf { int x; };
3238FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239static char *e (p, i)
3240 char **p;
3241 int i;
3242{
3243 return p[i];
3244}
3245static char *f (char * (*g) (char **, int), char **p, ...)
3246{
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3253}
3254
3255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
3258 as 'x'. The following induces an error, until -std is added to get
3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
3261 that's true only with -std. */
3262int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
3264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3266#define FOO(x) 'x'
3267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
3269int test (int i, double x);
3270struct s1 {int (*f) (int a);};
3271struct s2 {int (*f) (double a);};
3272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273int argc;
3274char **argv;
3275int
3276main ()
3277{
3278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285do
3286 CC="$ac_save_CC $ac_arg"
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_cv_prog_cc_c89=$ac_arg
3289fi
3290rm -f core conftest.err conftest.$ac_objext
3291 test "x$ac_cv_prog_cc_c89" != "xno" && break
3292done
3293rm -f conftest.$ac_ext
3294CC=$ac_save_CC
3295
3296fi
3297# AC_CACHE_VAL
3298case "x$ac_cv_prog_cc_c89" in
3299 x)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3301$as_echo "none needed" >&6; } ;;
3302 xno)
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3304$as_echo "unsupported" >&6; } ;;
3305 *)
3306 CC="$CC $ac_cv_prog_cc_c89"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3308$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3309esac
3310if test "x$ac_cv_prog_cc_c89" != xno; then :
3311
3312fi
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319
3320ac_ext=c
3321ac_cpp='$CPP $CPPFLAGS'
3322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3326$as_echo_n "checking how to run the C preprocessor... " >&6; }
3327# On Suns, sometimes $CPP names a directory.
3328if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3330fi
3331if test -z "$CPP"; then
3332 if ${ac_cv_prog_CPP+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334else
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 do
3338 ac_preproc_ok=false
3339for ac_c_preproc_warn_flag in '' yes
3340do
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348/* end confdefs.h. */
3349#ifdef __STDC__
3350# include <limits.h>
3351#else
3352# include <assert.h>
3353#endif
3354 Syntax error
3355_ACEOF
3356if ac_fn_c_try_cpp "$LINENO"; then :
3357
3358else
3359 # Broken: fails on valid input.
3360continue
3361fi
3362rm -f conftest.err conftest.i conftest.$ac_ext
3363
3364 # OK, works on sane cases. Now check whether nonexistent headers
3365 # can be detected and how.
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h. */
3368#include <ac_nonexistent.h>
3369_ACEOF
3370if ac_fn_c_try_cpp "$LINENO"; then :
3371 # Broken: success on invalid input.
3372continue
3373else
3374 # Passes both tests.
3375ac_preproc_ok=:
3376break
3377fi
3378rm -f conftest.err conftest.i conftest.$ac_ext
3379
3380done
3381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3382rm -f conftest.i conftest.err conftest.$ac_ext
3383if $ac_preproc_ok; then :
3384 break
3385fi
3386
3387 done
3388 ac_cv_prog_CPP=$CPP
3389
3390fi
3391 CPP=$ac_cv_prog_CPP
3392else
3393 ac_cv_prog_CPP=$CPP
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3396$as_echo "$CPP" >&6; }
3397ac_preproc_ok=false
3398for ac_c_preproc_warn_flag in '' yes
3399do
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h. */
3408#ifdef __STDC__
3409# include <limits.h>
3410#else
3411# include <assert.h>
3412#endif
3413 Syntax error
3414_ACEOF
3415if ac_fn_c_try_cpp "$LINENO"; then :
3416
3417else
3418 # Broken: fails on valid input.
3419continue
3420fi
3421rm -f conftest.err conftest.i conftest.$ac_ext
3422
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h. */
3427#include <ac_nonexistent.h>
3428_ACEOF
3429if ac_fn_c_try_cpp "$LINENO"; then :
3430 # Broken: success on invalid input.
3431continue
3432else
3433 # Passes both tests.
3434ac_preproc_ok=:
3435break
3436fi
3437rm -f conftest.err conftest.i conftest.$ac_ext
3438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441rm -f conftest.i conftest.err conftest.$ac_ext
3442if $ac_preproc_ok; then :
3443
3444else
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details" "$LINENO" 5; }
3449fi
3450
3451ac_ext=c
3452ac_cpp='$CPP $CPPFLAGS'
3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457ac_ext=cpp
3458ac_cpp='$CXXCPP $CPPFLAGS'
3459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3462if test -z "$CXX"; then
3463 if test -n "$CCC"; then
3464 CXX=$CCC
3465 else
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3468 do
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472$as_echo_n "checking for $ac_word... " >&6; }
3473if ${ac_cv_prog_CXX+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475else
3476 if test -n "$CXX"; then
3477 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494fi
3495fi
3496CXX=$ac_cv_prog_CXX
3497if test -n "$CXX"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3499$as_echo "$CXX" >&6; }
3500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503fi
3504
3505
3506 test -n "$CXX" && break
3507 done
3508fi
3509if test -z "$CXX"; then
3510 ac_ct_CXX=$CXX
3511 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3512do
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514set dummy $ac_prog; ac_word=$2
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516$as_echo_n "checking for $ac_word... " >&6; }
3517if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519else
3520 if test -n "$ac_ct_CXX"; then
3521 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3522else
3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CXX="$ac_prog"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534done
3535 done
3536IFS=$as_save_IFS
3537
3538fi
3539fi
3540ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3541if test -n "$ac_ct_CXX"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3543$as_echo "$ac_ct_CXX" >&6; }
3544else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550 test -n "$ac_ct_CXX" && break
3551done
3552
3553 if test "x$ac_ct_CXX" = x; then
3554 CXX="g++"
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557yes:)
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560ac_tool_warned=yes ;;
3561esac
3562 CXX=$ac_ct_CXX
3563 fi
3564fi
3565
3566 fi
3567fi
3568# Provide some information about the compiler.
3569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3570set X $ac_compile
3571ac_compiler=$2
3572for ac_option in --version -v -V -qversion; do
3573 { { ac_try="$ac_compiler $ac_option >&5"
3574case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579$as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581 ac_status=$?
3582 if test -s conftest.err; then
3583 sed '10a\
3584... rest of stderr output deleted ...
3585 10q' conftest.err >conftest.er1
3586 cat conftest.er1 >&5
3587 fi
3588 rm -f conftest.er1 conftest.err
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591done
3592
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3594$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3595if ${ac_cv_cxx_compiler_gnu+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597else
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h. */
3600
3601int
3602main ()
3603{
3604#ifndef __GNUC__
3605 choke me
3606#endif
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612if ac_fn_cxx_try_compile "$LINENO"; then :
3613 ac_compiler_gnu=yes
3614else
3615 ac_compiler_gnu=no
3616fi
3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3619
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3622$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3623if test $ac_compiler_gnu = yes; then
3624 GXX=yes
3625else
3626 GXX=
3627fi
3628ac_test_CXXFLAGS=${CXXFLAGS+set}
3629ac_save_CXXFLAGS=$CXXFLAGS
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3631$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3632if ${ac_cv_prog_cxx_g+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634else
3635 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3636 ac_cxx_werror_flag=yes
3637 ac_cv_prog_cxx_g=no
3638 CXXFLAGS="-g"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h. */
3641
3642int
3643main ()
3644{
3645
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650if ac_fn_cxx_try_compile "$LINENO"; then :
3651 ac_cv_prog_cxx_g=yes
3652else
3653 CXXFLAGS=""
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h. */
3656
3657int
3658main ()
3659{
3660
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665if ac_fn_cxx_try_compile "$LINENO"; then :
3666
3667else
3668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3669 CXXFLAGS="-g"
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h. */
3672
3673int
3674main ()
3675{
3676
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681if ac_fn_cxx_try_compile "$LINENO"; then :
3682 ac_cv_prog_cxx_g=yes
3683fi
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3692$as_echo "$ac_cv_prog_cxx_g" >&6; }
3693if test "$ac_test_CXXFLAGS" = set; then
3694 CXXFLAGS=$ac_save_CXXFLAGS
3695elif test $ac_cv_prog_cxx_g = yes; then
3696 if test "$GXX" = yes; then
3697 CXXFLAGS="-g -O2"
3698 else
3699 CXXFLAGS="-g"
3700 fi
3701else
3702 if test "$GXX" = yes; then
3703 CXXFLAGS="-O2"
3704 else
3705 CXXFLAGS=
3706 fi
3707fi
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714ac_ext=cpp
3715ac_cpp='$CXXCPP $CPPFLAGS'
3716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3720$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3721if test -z "$CXXCPP"; then
3722 if ${ac_cv_prog_CXXCPP+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724else
3725 # Double quotes because CXXCPP needs to be expanded
3726 for CXXCPP in "$CXX -E" "/lib/cpp"
3727 do
3728 ac_preproc_ok=false
3729for ac_cxx_preproc_warn_flag in '' yes
3730do
3731 # Use a header file that comes with gcc, so configuring glibc
3732 # with a fresh cross-compiler works.
3733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734 # <limits.h> exists even on freestanding compilers.
3735 # On the NeXT, cc -E runs the code through the compiler's parser,
3736 # not just through cpp. "Syntax error" is here to catch this case.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h. */
3739#ifdef __STDC__
3740# include <limits.h>
3741#else
3742# include <assert.h>
3743#endif
3744 Syntax error
3745_ACEOF
3746if ac_fn_cxx_try_cpp "$LINENO"; then :
3747
3748else
3749 # Broken: fails on valid input.
3750continue
3751fi
3752rm -f conftest.err conftest.i conftest.$ac_ext
3753
3754 # OK, works on sane cases. Now check whether nonexistent headers
3755 # can be detected and how.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757/* end confdefs.h. */
3758#include <ac_nonexistent.h>
3759_ACEOF
3760if ac_fn_cxx_try_cpp "$LINENO"; then :
3761 # Broken: success on invalid input.
3762continue
3763else
3764 # Passes both tests.
3765ac_preproc_ok=:
3766break
3767fi
3768rm -f conftest.err conftest.i conftest.$ac_ext
3769
3770done
3771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772rm -f conftest.i conftest.err conftest.$ac_ext
3773if $ac_preproc_ok; then :
3774 break
3775fi
3776
3777 done
3778 ac_cv_prog_CXXCPP=$CXXCPP
3779
3780fi
3781 CXXCPP=$ac_cv_prog_CXXCPP
3782else
3783 ac_cv_prog_CXXCPP=$CXXCPP
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3786$as_echo "$CXXCPP" >&6; }
3787ac_preproc_ok=false
3788for ac_cxx_preproc_warn_flag in '' yes
3789do
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error" is here to catch this case.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798#ifdef __STDC__
3799# include <limits.h>
3800#else
3801# include <assert.h>
3802#endif
3803 Syntax error
3804_ACEOF
3805if ac_fn_cxx_try_cpp "$LINENO"; then :
3806
3807else
3808 # Broken: fails on valid input.
3809continue
3810fi
3811rm -f conftest.err conftest.i conftest.$ac_ext
3812
3813 # OK, works on sane cases. Now check whether nonexistent headers
3814 # can be detected and how.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h. */
3817#include <ac_nonexistent.h>
3818_ACEOF
3819if ac_fn_cxx_try_cpp "$LINENO"; then :
3820 # Broken: success on invalid input.
3821continue
3822else
3823 # Passes both tests.
3824ac_preproc_ok=:
3825break
3826fi
3827rm -f conftest.err conftest.i conftest.$ac_ext
3828
3829done
3830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3831rm -f conftest.i conftest.err conftest.$ac_ext
3832if $ac_preproc_ok; then :
3833
3834else
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3838See \`config.log' for more details" "$LINENO" 5; }
3839fi
3840
3841ac_ext=c
3842ac_cpp='$CPP $CPPFLAGS'
3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847ac_ext=cpp
3848ac_cpp='$CXXCPP $CPPFLAGS'
3849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3852if test -z "$CXX"; then
3853 if test -n "$CCC"; then
3854 CXX=$CCC
3855 else
3856 if test -n "$ac_tool_prefix"; then
3857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3858 do
3859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3860set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862$as_echo_n "checking for $ac_word... " >&6; }
3863if ${ac_cv_prog_CXX+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865else
3866 if test -n "$CXX"; then
3867 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3868else
3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH
3871do
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3879 fi
3880done
3881 done
3882IFS=$as_save_IFS
3883
3884fi
3885fi
3886CXX=$ac_cv_prog_CXX
3887if test -n "$CXX"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3889$as_echo "$CXX" >&6; }
3890else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892$as_echo "no" >&6; }
3893fi
3894
3895
3896 test -n "$CXX" && break
3897 done
3898fi
3899if test -z "$CXX"; then
3900 ac_ct_CXX=$CXX
3901 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3902do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904set dummy $ac_prog; ac_word=$2
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906$as_echo_n "checking for $ac_word... " >&6; }
3907if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909else
3910 if test -n "$ac_ct_CXX"; then
3911 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_ac_ct_CXX="$ac_prog"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925 done
3926IFS=$as_save_IFS
3927
3928fi
3929fi
3930ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3931if test -n "$ac_ct_CXX"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3933$as_echo "$ac_ct_CXX" >&6; }
3934else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936$as_echo "no" >&6; }
3937fi
3938
3939
3940 test -n "$ac_ct_CXX" && break
3941done
3942
3943 if test "x$ac_ct_CXX" = x; then
3944 CXX="g++"
3945 else
3946 case $cross_compiling:$ac_tool_warned in
3947yes:)
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3950ac_tool_warned=yes ;;
3951esac
3952 CXX=$ac_ct_CXX
3953 fi
3954fi
3955
3956 fi
3957fi
3958# Provide some information about the compiler.
3959$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3960set X $ac_compile
3961ac_compiler=$2
3962for ac_option in --version -v -V -qversion; do
3963 { { ac_try="$ac_compiler $ac_option >&5"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3971 ac_status=$?
3972 if test -s conftest.err; then
3973 sed '10a\
3974... rest of stderr output deleted ...
3975 10q' conftest.err >conftest.er1
3976 cat conftest.er1 >&5
3977 fi
3978 rm -f conftest.er1 conftest.err
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }
3981done
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3984$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3985if ${ac_cv_cxx_compiler_gnu+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987else
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h. */
3990
3991int
3992main ()
3993{
3994#ifndef __GNUC__
3995 choke me
3996#endif
3997
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002if ac_fn_cxx_try_compile "$LINENO"; then :
4003 ac_compiler_gnu=yes
4004else
4005 ac_compiler_gnu=no
4006fi
4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4009
4010fi
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4012$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4013if test $ac_compiler_gnu = yes; then
4014 GXX=yes
4015else
4016 GXX=
4017fi
4018ac_test_CXXFLAGS=${CXXFLAGS+set}
4019ac_save_CXXFLAGS=$CXXFLAGS
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4021$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4022if ${ac_cv_prog_cxx_g+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024else
4025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4026 ac_cxx_werror_flag=yes
4027 ac_cv_prog_cxx_g=no
4028 CXXFLAGS="-g"
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h. */
4031
4032int
4033main ()
4034{
4035
4036 ;
4037 return 0;
4038}
4039_ACEOF
4040if ac_fn_cxx_try_compile "$LINENO"; then :
4041 ac_cv_prog_cxx_g=yes
4042else
4043 CXXFLAGS=""
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h. */
4046
4047int
4048main ()
4049{
4050
4051 ;
4052 return 0;
4053}
4054_ACEOF
4055if ac_fn_cxx_try_compile "$LINENO"; then :
4056
4057else
4058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4059 CXXFLAGS="-g"
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061/* end confdefs.h. */
4062
4063int
4064main ()
4065{
4066
4067 ;
4068 return 0;
4069}
4070_ACEOF
4071if ac_fn_cxx_try_compile "$LINENO"; then :
4072 ac_cv_prog_cxx_g=yes
4073fi
4074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075fi
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4082$as_echo "$ac_cv_prog_cxx_g" >&6; }
4083if test "$ac_test_CXXFLAGS" = set; then
4084 CXXFLAGS=$ac_save_CXXFLAGS
4085elif test $ac_cv_prog_cxx_g = yes; then
4086 if test "$GXX" = yes; then
4087 CXXFLAGS="-g -O2"
4088 else
4089 CXXFLAGS="-g"
4090 fi
4091else
4092 if test "$GXX" = yes; then
4093 CXXFLAGS="-O2"
4094 else
4095 CXXFLAGS=
4096 fi
4097fi
4098ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104# OST_PROG_CC_POSIX
4105case `pwd` in
4106 *\ * | *\ *)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4108$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4109esac
4110
4111
4112
4113macro_version='2.4'
4114macro_revision='1.3293'
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128ltmain="$ac_aux_dir/ltmain.sh"
4129
4130# Backslashify metacharacters that are still active within
4131# double-quoted strings.
4132sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4133
4134# Same as above, but do not quote variable references.
4135double_quote_subst='s/\(["`\\]\)/\\\1/g'
4136
4137# Sed substitution to delay expansion of an escaped shell variable in a
4138# double_quote_subst'ed string.
4139delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4140
4141# Sed substitution to delay expansion of an escaped single quote.
4142delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4143
4144# Sed substitution to avoid accidental globbing in evaled expressions
4145no_glob_subst='s/\*/\\\*/g'
4146
4147ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4148ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4149ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4150
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4152$as_echo_n "checking how to print strings... " >&6; }
4153# Test print first, because it will be a builtin if present.
4154if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4155 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4156 ECHO='print -r --'
4157elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4158 ECHO='printf %s\n'
4159else
4160 # Use this function as a fallback that always works.
4161 func_fallback_echo ()
4162 {
4163 eval 'cat <<_LTECHO_EOF
4164$1
4165_LTECHO_EOF'
4166 }
4167 ECHO='func_fallback_echo'
4168fi
4169
4170# func_echo_all arg...
4171# Invoke $ECHO with all args, space-separated.
4172func_echo_all ()
4173{
4174 $ECHO ""
4175}
4176
4177case "$ECHO" in
4178 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4179$as_echo "printf" >&6; } ;;
4180 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4181$as_echo "print -r" >&6; } ;;
4182 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4183$as_echo "cat" >&6; } ;;
4184esac
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4200$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4201if ${ac_cv_path_SED+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203else
4204 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4205 for ac_i in 1 2 3 4 5 6 7; do
4206 ac_script="$ac_script$as_nl$ac_script"
4207 done
4208 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4209 { ac_script=; unset ac_script;}
4210 if test -z "$SED"; then
4211 ac_path_SED_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in sed gsed; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4222# Check for GNU ac_path_SED and select it if it is found.
4223 # Check for GNU $ac_path_SED
4224case `"$ac_path_SED" --version 2>&1` in
4225*GNU*)
4226 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4227*)
4228 ac_count=0
4229 $as_echo_n 0123456789 >"conftest.in"
4230 while :
4231 do
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo '' >> "conftest.nl"
4236 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_SED_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_SED="$ac_path_SED"
4242 ac_path_SED_max=$ac_count
4243 fi
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4246 done
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248esac
4249
4250 $ac_path_SED_found && break 3
4251 done
4252 done
4253 done
4254IFS=$as_save_IFS
4255 if test -z "$ac_cv_path_SED"; then
4256 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4257 fi
4258else
4259 ac_cv_path_SED=$SED
4260fi
4261
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4264$as_echo "$ac_cv_path_SED" >&6; }
4265 SED="$ac_cv_path_SED"
4266 rm -f conftest.sed
4267
4268test -z "$SED" && SED=sed
4269Xsed="$SED -e 1s/^X//"
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4282$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283if ${ac_cv_path_GREP+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285else
4286 if test -z "$GREP"; then
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in grep ggrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4298# Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300case `"$ac_path_GREP" --version 2>&1` in
4301*GNU*)
4302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4303*)
4304 ac_count=0
4305 $as_echo_n 0123456789 >"conftest.in"
4306 while :
4307 do
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 as_fn_arith $ac_count + 1 && ac_count=$as_val
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP="$ac_path_GREP"
4318 ac_path_GREP_max=$ac_count
4319 fi
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4322 done
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324esac
4325
4326 $ac_path_GREP_found && break 3
4327 done
4328 done
4329 done
4330IFS=$as_save_IFS
4331 if test -z "$ac_cv_path_GREP"; then
4332 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4333 fi
4334else
4335 ac_cv_path_GREP=$GREP
4336fi
4337
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4340$as_echo "$ac_cv_path_GREP" >&6; }
4341 GREP="$ac_cv_path_GREP"
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4345$as_echo_n "checking for egrep... " >&6; }
4346if ${ac_cv_path_EGREP+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348else
4349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350 then ac_cv_path_EGREP="$GREP -E"
4351 else
4352 if test -z "$EGREP"; then
4353 ac_path_EGREP_found=false
4354 # Loop through the user's path and test for each of PROGNAME-LIST
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_prog in egrep; do
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364# Check for GNU ac_path_EGREP and select it if it is found.
4365 # Check for GNU $ac_path_EGREP
4366case `"$ac_path_EGREP" --version 2>&1` in
4367*GNU*)
4368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4369*)
4370 ac_count=0
4371 $as_echo_n 0123456789 >"conftest.in"
4372 while :
4373 do
4374 cat "conftest.in" "conftest.in" >"conftest.tmp"
4375 mv "conftest.tmp" "conftest.in"
4376 cp "conftest.in" "conftest.nl"
4377 $as_echo 'EGREP' >> "conftest.nl"
4378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380 as_fn_arith $ac_count + 1 && ac_count=$as_val
4381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382 # Best one so far, save it but keep looking for a better one
4383 ac_cv_path_EGREP="$ac_path_EGREP"
4384 ac_path_EGREP_max=$ac_count
4385 fi
4386 # 10*(2^10) chars as input seems more than enough
4387 test $ac_count -gt 10 && break
4388 done
4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390esac
4391
4392 $ac_path_EGREP_found && break 3
4393 done
4394 done
4395 done
4396IFS=$as_save_IFS
4397 if test -z "$ac_cv_path_EGREP"; then
4398 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399 fi
4400else
4401 ac_cv_path_EGREP=$EGREP
4402fi
4403
4404 fi
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4407$as_echo "$ac_cv_path_EGREP" >&6; }
4408 EGREP="$ac_cv_path_EGREP"
4409
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4412$as_echo_n "checking for fgrep... " >&6; }
4413if ${ac_cv_path_FGREP+:} false; then :
4414 $as_echo_n "(cached) " >&6
4415else
4416 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4417 then ac_cv_path_FGREP="$GREP -F"
4418 else
4419 if test -z "$FGREP"; then
4420 ac_path_FGREP_found=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_prog in fgrep; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4430 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4431# Check for GNU ac_path_FGREP and select it if it is found.
4432 # Check for GNU $ac_path_FGREP
4433case `"$ac_path_FGREP" --version 2>&1` in
4434*GNU*)
4435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4436*)
4437 ac_count=0
4438 $as_echo_n 0123456789 >"conftest.in"
4439 while :
4440 do
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'FGREP' >> "conftest.nl"
4445 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447 as_fn_arith $ac_count + 1 && ac_count=$as_val
4448 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_FGREP="$ac_path_FGREP"
4451 ac_path_FGREP_max=$ac_count
4452 fi
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4455 done
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457esac
4458
4459 $ac_path_FGREP_found && break 3
4460 done
4461 done
4462 done
4463IFS=$as_save_IFS
4464 if test -z "$ac_cv_path_FGREP"; then
4465 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466 fi
4467else
4468 ac_cv_path_FGREP=$FGREP
4469fi
4470
4471 fi
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4474$as_echo "$ac_cv_path_FGREP" >&6; }
4475 FGREP="$ac_cv_path_FGREP"
4476
4477
4478test -z "$GREP" && GREP=grep
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498# Check whether --with-gnu-ld was given.
4499if test "${with_gnu_ld+set}" = set; then :
4500 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4501else
4502 with_gnu_ld=no
4503fi
4504
4505ac_prog=ld
4506if test "$GCC" = yes; then
4507 # Check if gcc -print-prog-name=ld gives a path.
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4509$as_echo_n "checking for ld used by $CC... " >&6; }
4510 case $host in
4511 *-*-mingw*)
4512 # gcc leaves a trailing carriage return which upsets mingw
4513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4514 *)
4515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4516 esac
4517 case $ac_prog in
4518 # Accept absolute paths.
4519 [\\/]* | ?:[\\/]*)
4520 re_direlt='/[^/][^/]*/\.\./'
4521 # Canonicalize the pathname of ld
4522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4525 done
4526 test -z "$LD" && LD="$ac_prog"
4527 ;;
4528 "")
4529 # If it fails, then pretend we aren't using GCC.
4530 ac_prog=ld
4531 ;;
4532 *)
4533 # If it is relative, then search for the first ld in PATH.
4534 with_gnu_ld=unknown
4535 ;;
4536 esac
4537elif test "$with_gnu_ld" = yes; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4539$as_echo_n "checking for GNU ld... " >&6; }
4540else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4542$as_echo_n "checking for non-GNU ld... " >&6; }
4543fi
4544if ${lt_cv_path_LD+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546else
4547 if test -z "$LD"; then
4548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4549 for ac_dir in $PATH; do
4550 IFS="$lt_save_ifs"
4551 test -z "$ac_dir" && ac_dir=.
4552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4553 lt_cv_path_LD="$ac_dir/$ac_prog"
4554 # Check to see if the program is GNU ld. I'd rather use --version,
4555 # but apparently some variants of GNU ld only accept -v.
4556 # Break only if it was the GNU/non-GNU ld that we prefer.
4557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4558 *GNU* | *'with BFD'*)
4559 test "$with_gnu_ld" != no && break
4560 ;;
4561 *)
4562 test "$with_gnu_ld" != yes && break
4563 ;;
4564 esac
4565 fi
4566 done
4567 IFS="$lt_save_ifs"
4568else
4569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4570fi
4571fi
4572
4573LD="$lt_cv_path_LD"
4574if test -n "$LD"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4576$as_echo "$LD" >&6; }
4577else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579$as_echo "no" >&6; }
4580fi
4581test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4583$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4584if ${lt_cv_prog_gnu_ld+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586else
4587 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4588case `$LD -v 2>&1 </dev/null` in
4589*GNU* | *'with BFD'*)
4590 lt_cv_prog_gnu_ld=yes
4591 ;;
4592*)
4593 lt_cv_prog_gnu_ld=no
4594 ;;
4595esac
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4598$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4599with_gnu_ld=$lt_cv_prog_gnu_ld
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4610$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4611if ${lt_cv_path_NM+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613else
4614 if test -n "$NM"; then
4615 # Let the user override the test.
4616 lt_cv_path_NM="$NM"
4617else
4618 lt_nm_to_check="${ac_tool_prefix}nm"
4619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4620 lt_nm_to_check="$lt_nm_to_check nm"
4621 fi
4622 for lt_tmp_nm in $lt_nm_to_check; do
4623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4625 IFS="$lt_save_ifs"
4626 test -z "$ac_dir" && ac_dir=.
4627 tmp_nm="$ac_dir/$lt_tmp_nm"
4628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4629 # Check to see if the nm accepts a BSD-compat flag.
4630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4631 # nm: unknown option "B" ignored
4632 # Tru64's nm complains that /dev/null is an invalid object file
4633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4634 */dev/null* | *'Invalid file or object type'*)
4635 lt_cv_path_NM="$tmp_nm -B"
4636 break
4637 ;;
4638 *)
4639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4640 */dev/null*)
4641 lt_cv_path_NM="$tmp_nm -p"
4642 break
4643 ;;
4644 *)
4645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4646 continue # so that we can try to find one that supports BSD flags
4647 ;;
4648 esac
4649 ;;
4650 esac
4651 fi
4652 done
4653 IFS="$lt_save_ifs"
4654 done
4655 : ${lt_cv_path_NM=no}
4656fi
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4659$as_echo "$lt_cv_path_NM" >&6; }
4660if test "$lt_cv_path_NM" != "no"; then
4661 NM="$lt_cv_path_NM"
4662else
4663 # Didn't find any BSD compatible name lister, look for dumpbin.
4664 if test -n "$DUMPBIN"; then :
4665 # Let the user override the test.
4666 else
4667 if test -n "$ac_tool_prefix"; then
4668 for ac_prog in dumpbin "link -dump"
4669 do
4670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673$as_echo_n "checking for $ac_word... " >&6; }
4674if ${ac_cv_prog_DUMPBIN+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676else
4677 if test -n "$DUMPBIN"; then
4678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691done
4692 done
4693IFS=$as_save_IFS
4694
4695fi
4696fi
4697DUMPBIN=$ac_cv_prog_DUMPBIN
4698if test -n "$DUMPBIN"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4700$as_echo "$DUMPBIN" >&6; }
4701else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703$as_echo "no" >&6; }
4704fi
4705
4706
4707 test -n "$DUMPBIN" && break
4708 done
4709fi
4710if test -z "$DUMPBIN"; then
4711 ac_ct_DUMPBIN=$DUMPBIN
4712 for ac_prog in dumpbin "link -dump"
4713do
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715set dummy $ac_prog; ac_word=$2
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4718if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720else
4721 if test -n "$ac_ct_DUMPBIN"; then
4722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735done
4736 done
4737IFS=$as_save_IFS
4738
4739fi
4740fi
4741ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4742if test -n "$ac_ct_DUMPBIN"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4744$as_echo "$ac_ct_DUMPBIN" >&6; }
4745else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
4748fi
4749
4750
4751 test -n "$ac_ct_DUMPBIN" && break
4752done
4753
4754 if test "x$ac_ct_DUMPBIN" = x; then
4755 DUMPBIN=":"
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758yes:)
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761ac_tool_warned=yes ;;
4762esac
4763 DUMPBIN=$ac_ct_DUMPBIN
4764 fi
4765fi
4766
4767 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4768 *COFF*)
4769 DUMPBIN="$DUMPBIN -symbols"
4770 ;;
4771 *)
4772 DUMPBIN=:
4773 ;;
4774 esac
4775 fi
4776
4777 if test "$DUMPBIN" != ":"; then
4778 NM="$DUMPBIN"
4779 fi
4780fi
4781test -z "$NM" && NM=nm
4782
4783
4784
4785
4786
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4789$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4790if ${lt_cv_nm_interface+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792else
4793 lt_cv_nm_interface="BSD nm"
4794 echo "int some_variable = 0;" > conftest.$ac_ext
4795 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4796 (eval "$ac_compile" 2>conftest.err)
4797 cat conftest.err >&5
4798 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4799 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4800 cat conftest.err >&5
4801 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4802 cat conftest.out >&5
4803 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4804 lt_cv_nm_interface="MS dumpbin"
4805 fi
4806 rm -f conftest*
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4809$as_echo "$lt_cv_nm_interface" >&6; }
4810
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4812$as_echo_n "checking whether ln -s works... " >&6; }
4813LN_S=$as_ln_s
4814if test "$LN_S" = "ln -s"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816$as_echo "yes" >&6; }
4817else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4819$as_echo "no, using $LN_S" >&6; }
4820fi
4821
4822# find the maximum length of command line arguments
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4824$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4825if ${lt_cv_sys_max_cmd_len+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827else
4828 i=0
4829 teststring="ABCD"
4830
4831 case $build_os in
4832 msdosdjgpp*)
4833 # On DJGPP, this test can blow up pretty badly due to problems in libc
4834 # (any single argument exceeding 2000 bytes causes a buffer overrun
4835 # during glob expansion). Even if it were fixed, the result of this
4836 # check would be larger than it should be.
4837 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4838 ;;
4839
4840 gnu*)
4841 # Under GNU Hurd, this test is not required because there is
4842 # no limit to the length of command line arguments.
4843 # Libtool will interpret -1 as no limit whatsoever
4844 lt_cv_sys_max_cmd_len=-1;
4845 ;;
4846
4847 cygwin* | mingw* | cegcc*)
4848 # On Win9x/ME, this test blows up -- it succeeds, but takes
4849 # about 5 minutes as the teststring grows exponentially.
4850 # Worse, since 9x/ME are not pre-emptively multitasking,
4851 # you end up with a "frozen" computer, even though with patience
4852 # the test eventually succeeds (with a max line length of 256k).
4853 # Instead, let's just punt: use the minimum linelength reported by
4854 # all of the supported platforms: 8192 (on NT/2K/XP).
4855 lt_cv_sys_max_cmd_len=8192;
4856 ;;
4857
4858 mint*)
4859 # On MiNT this can take a long time and run out of memory.
4860 lt_cv_sys_max_cmd_len=8192;
4861 ;;
4862
4863 amigaos*)
4864 # On AmigaOS with pdksh, this test takes hours, literally.
4865 # So we just punt and use a minimum line length of 8192.
4866 lt_cv_sys_max_cmd_len=8192;
4867 ;;
4868
4869 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4870 # This has been around since 386BSD, at least. Likely further.
4871 if test -x /sbin/sysctl; then
4872 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4873 elif test -x /usr/sbin/sysctl; then
4874 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4875 else
4876 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4877 fi
4878 # And add a safety zone
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4881 ;;
4882
4883 interix*)
4884 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4885 lt_cv_sys_max_cmd_len=196608
4886 ;;
4887
4888 osf*)
4889 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4890 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4891 # nice to cause kernel panics so lets avoid the loop below.
4892 # First set a reasonable default.
4893 lt_cv_sys_max_cmd_len=16384
4894 #
4895 if test -x /sbin/sysconfig; then
4896 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4897 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4898 esac
4899 fi
4900 ;;
4901 sco3.2v5*)
4902 lt_cv_sys_max_cmd_len=102400
4903 ;;
4904 sysv5* | sco5v6* | sysv4.2uw2*)
4905 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4906 if test -n "$kargmax"; then
4907 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4908 else
4909 lt_cv_sys_max_cmd_len=32768
4910 fi
4911 ;;
4912 *)
4913 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4914 if test -n "$lt_cv_sys_max_cmd_len"; then
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4917 else
4918 # Make teststring a little bigger before we do anything with it.
4919 # a 1K string should be a reasonable start.
4920 for i in 1 2 3 4 5 6 7 8 ; do
4921 teststring=$teststring$teststring
4922 done
4923 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4924 # If test is not a shell built-in, we'll probably end up computing a
4925 # maximum length that is only half of the actual maximum length, but
4926 # we can't tell.
4927 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4928 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4929 test $i != 17 # 1/2 MB should be enough
4930 do
4931 i=`expr $i + 1`
4932 teststring=$teststring$teststring
4933 done
4934 # Only check the string length outside the loop.
4935 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4936 teststring=
4937 # Add a significant safety factor because C++ compilers can tack on
4938 # massive amounts of additional arguments before passing them to the
4939 # linker. It appears as though 1/2 is a usable value.
4940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4941 fi
4942 ;;
4943 esac
4944
4945fi
4946
4947if test -n $lt_cv_sys_max_cmd_len ; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4949$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4950else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4952$as_echo "none" >&6; }
4953fi
4954max_cmd_len=$lt_cv_sys_max_cmd_len
4955
4956
4957
4958
4959
4960
4961: ${CP="cp -f"}
4962: ${MV="mv -f"}
4963: ${RM="rm -f"}
4964
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4966$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4967# Try some XSI features
4968xsi_shell=no
4969( _lt_dummy="a/b/c"
4970 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4971 = c,a/b,b/c, \
4972 && eval 'test $(( 1 + 1 )) -eq 2 \
4973 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4974 && xsi_shell=yes
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4976$as_echo "$xsi_shell" >&6; }
4977
4978
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4980$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4981lt_shell_append=no
4982( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4983 >/dev/null 2>&1 \
4984 && lt_shell_append=yes
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4986$as_echo "$lt_shell_append" >&6; }
4987
4988
4989if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4990 lt_unset=unset
4991else
4992 lt_unset=false
4993fi
4994
4995
4996
4997
4998
4999# test EBCDIC or ASCII
5000case `echo X|tr X '\101'` in
5001 A) # ASCII based system
5002 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5003 lt_SP2NL='tr \040 \012'
5004 lt_NL2SP='tr \015\012 \040\040'
5005 ;;
5006 *) # EBCDIC based system
5007 lt_SP2NL='tr \100 \n'
5008 lt_NL2SP='tr \r\n \100\100'
5009 ;;
5010esac
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5021$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5022if ${lt_cv_to_host_file_cmd+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024else
5025 case $host in
5026 *-*-mingw* )
5027 case $build in
5028 *-*-mingw* ) # actually msys
5029 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5030 ;;
5031 *-*-cygwin* )
5032 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5033 ;;
5034 * ) # otherwise, assume *nix
5035 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5036 ;;
5037 esac
5038 ;;
5039 *-*-cygwin* )
5040 case $build in
5041 *-*-mingw* ) # actually msys
5042 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5043 ;;
5044 *-*-cygwin* )
5045 lt_cv_to_host_file_cmd=func_convert_file_noop
5046 ;;
5047 * ) # otherwise, assume *nix
5048 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5049 ;;
5050 esac
5051 ;;
5052 * ) # unhandled hosts (and "normal" native builds)
5053 lt_cv_to_host_file_cmd=func_convert_file_noop
5054 ;;
5055esac
5056
5057fi
5058
5059to_host_file_cmd=$lt_cv_to_host_file_cmd
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5061$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5062
5063
5064
5065
5066
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5068$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5069if ${lt_cv_to_tool_file_cmd+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071else
5072 #assume ordinary cross tools, or native build.
5073lt_cv_to_tool_file_cmd=func_convert_file_noop
5074case $host in
5075 *-*-mingw* )
5076 case $build in
5077 *-*-mingw* ) # actually msys
5078 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5079 ;;
5080 esac
5081 ;;
5082esac
5083
5084fi
5085
5086to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5088$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5089
5090
5091
5092
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5095$as_echo_n "checking for $LD option to reload object files... " >&6; }
5096if ${lt_cv_ld_reload_flag+:} false; then :
5097 $as_echo_n "(cached) " >&6
5098else
5099 lt_cv_ld_reload_flag='-r'
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5102$as_echo "$lt_cv_ld_reload_flag" >&6; }
5103reload_flag=$lt_cv_ld_reload_flag
5104case $reload_flag in
5105"" | " "*) ;;
5106*) reload_flag=" $reload_flag" ;;
5107esac
5108reload_cmds='$LD$reload_flag -o $output$reload_objs'
5109case $host_os in
5110 cygwin* | mingw* | pw32* | cegcc*)
5111 if test "$GCC" != yes; then
5112 reload_cmds=false
5113 fi
5114 ;;
5115 darwin*)
5116 if test "$GCC" = yes; then
5117 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5118 else
5119 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5120 fi
5121 ;;
5122esac
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5134set dummy ${ac_tool_prefix}objdump; ac_word=$2
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136$as_echo_n "checking for $ac_word... " >&6; }
5137if ${ac_cv_prog_OBJDUMP+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139else
5140 if test -n "$OBJDUMP"; then
5141 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154done
5155 done
5156IFS=$as_save_IFS
5157
5158fi
5159fi
5160OBJDUMP=$ac_cv_prog_OBJDUMP
5161if test -n "$OBJDUMP"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5163$as_echo "$OBJDUMP" >&6; }
5164else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166$as_echo "no" >&6; }
5167fi
5168
5169
5170fi
5171if test -z "$ac_cv_prog_OBJDUMP"; then
5172 ac_ct_OBJDUMP=$OBJDUMP
5173 # Extract the first word of "objdump", so it can be a program name with args.
5174set dummy objdump; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; }
5177if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179else
5180 if test -n "$ac_ct_OBJDUMP"; then
5181 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194done
5195 done
5196IFS=$as_save_IFS
5197
5198fi
5199fi
5200ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5201if test -n "$ac_ct_OBJDUMP"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5203$as_echo "$ac_ct_OBJDUMP" >&6; }
5204else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
5207fi
5208
5209 if test "x$ac_ct_OBJDUMP" = x; then
5210 OBJDUMP="false"
5211 else
5212 case $cross_compiling:$ac_tool_warned in
5213yes:)
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216ac_tool_warned=yes ;;
5217esac
5218 OBJDUMP=$ac_ct_OBJDUMP
5219 fi
5220else
5221 OBJDUMP="$ac_cv_prog_OBJDUMP"
5222fi
5223
5224test -z "$OBJDUMP" && OBJDUMP=objdump
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5235$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5236if ${lt_cv_deplibs_check_method+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238else
5239 lt_cv_file_magic_cmd='$MAGIC_CMD'
5240lt_cv_file_magic_test_file=
5241lt_cv_deplibs_check_method='unknown'
5242# Need to set the preceding variable on all platforms that support
5243# interlibrary dependencies.
5244# 'none' -- dependencies not supported.
5245# `unknown' -- same as none, but documents that we really don't know.
5246# 'pass_all' -- all dependencies passed with no checks.
5247# 'test_compile' -- check by making test program.
5248# 'file_magic [[regex]]' -- check by looking for files in library path
5249# which responds to the $file_magic_cmd with a given extended regex.
5250# If you have `file' or equivalent on your system and you're not sure
5251# whether `pass_all' will *always* work, you probably want this one.
5252
5253case $host_os in
5254aix[4-9]*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258beos*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262bsdi[45]*)
5263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5264 lt_cv_file_magic_cmd='/usr/bin/file -L'
5265 lt_cv_file_magic_test_file=/shlib/libc.so
5266 ;;
5267
5268cygwin*)
5269 # func_win32_libid is a shell function defined in ltmain.sh
5270 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5271 lt_cv_file_magic_cmd='func_win32_libid'
5272 ;;
5273
5274mingw* | pw32*)
5275 # Base MSYS/MinGW do not provide the 'file' command needed by
5276 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5277 # unless we find 'file', for example because we are cross-compiling.
5278 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5279 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5281 lt_cv_file_magic_cmd='func_win32_libid'
5282 else
5283 # Keep this pattern in sync with the one in func_win32_libid.
5284 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5285 lt_cv_file_magic_cmd='$OBJDUMP -f'
5286 fi
5287 ;;
5288
5289cegcc*)
5290 # use the weaker test based on 'objdump'. See mingw*.
5291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5292 lt_cv_file_magic_cmd='$OBJDUMP -f'
5293 ;;
5294
5295darwin* | rhapsody*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299freebsd* | dragonfly*)
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301 case $host_cpu in
5302 i*86 )
5303 # Not sure whether the presence of OpenBSD here was a mistake.
5304 # Let's accept both of them until this is cleared up.
5305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5306 lt_cv_file_magic_cmd=/usr/bin/file
5307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5308 ;;
5309 esac
5310 else
5311 lt_cv_deplibs_check_method=pass_all
5312 fi
5313 ;;
5314
5315gnu*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319haiku*)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322
5323hpux10.20* | hpux11*)
5324 lt_cv_file_magic_cmd=/usr/bin/file
5325 case $host_cpu in
5326 ia64*)
5327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5329 ;;
5330 hppa*64*)
5331 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]'
5332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5333 ;;
5334 *)
5335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5337 ;;
5338 esac
5339 ;;
5340
5341interix[3-9]*)
5342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5344 ;;
5345
5346irix5* | irix6* | nonstopux*)
5347 case $LD in
5348 *-32|*"-32 ") libmagic=32-bit;;
5349 *-n32|*"-n32 ") libmagic=N32;;
5350 *-64|*"-64 ") libmagic=64-bit;;
5351 *) libmagic=never-match;;
5352 esac
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356# This must be Linux ELF.
5357linux* | k*bsd*-gnu | kopensolaris*-gnu)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361netbsd* | netbsdelf*-gnu)
5362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5364 else
5365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5366 fi
5367 ;;
5368
5369newos6*)
5370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5371 lt_cv_file_magic_cmd=/usr/bin/file
5372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5373 ;;
5374
5375*nto* | *qnx*)
5376 lt_cv_deplibs_check_method=pass_all
5377 ;;
5378
5379openbsd*)
5380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5382 else
5383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5384 fi
5385 ;;
5386
5387osf3* | osf4* | osf5*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390
5391rdos*)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394
5395solaris*)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398
5399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402
5403sysv4 | sysv4.3*)
5404 case $host_vendor in
5405 motorola)
5406 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]'
5407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5408 ;;
5409 ncr)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412 sequent)
5413 lt_cv_file_magic_cmd='/bin/file'
5414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5415 ;;
5416 sni)
5417 lt_cv_file_magic_cmd='/bin/file'
5418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5419 lt_cv_file_magic_test_file=/lib/libc.so
5420 ;;
5421 siemens)
5422 lt_cv_deplibs_check_method=pass_all
5423 ;;
5424 pc)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427 esac
5428 ;;
5429
5430tpf*)
5431 lt_cv_deplibs_check_method=pass_all
5432 ;;
5433esac
5434
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5437$as_echo "$lt_cv_deplibs_check_method" >&6; }
5438
5439file_magic_glob=
5440want_nocaseglob=no
5441if test "$build" = "$host"; then
5442 case $host_os in
5443 mingw* | pw32*)
5444 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5445 want_nocaseglob=yes
5446 else
5447 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5448 fi
5449 ;;
5450 esac
5451fi
5452
5453file_magic_cmd=$lt_cv_file_magic_cmd
5454deplibs_check_method=$lt_cv_deplibs_check_method
5455test -z "$deplibs_check_method" && deplibs_check_method=unknown
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5480set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
5483if ${ac_cv_prog_DLLTOOL+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485else
5486 if test -n "$DLLTOOL"; then
5487 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501 done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506DLLTOOL=$ac_cv_prog_DLLTOOL
5507if test -n "$DLLTOOL"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5509$as_echo "$DLLTOOL" >&6; }
5510else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515
5516fi
5517if test -z "$ac_cv_prog_DLLTOOL"; then
5518 ac_ct_DLLTOOL=$DLLTOOL
5519 # Extract the first word of "dlltool", so it can be a program name with args.
5520set dummy dlltool; ac_word=$2
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522$as_echo_n "checking for $ac_word... " >&6; }
5523if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525else
5526 if test -n "$ac_ct_DLLTOOL"; then
5527 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
5541 done
5542IFS=$as_save_IFS
5543
5544fi
5545fi
5546ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5547if test -n "$ac_ct_DLLTOOL"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5549$as_echo "$ac_ct_DLLTOOL" >&6; }
5550else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552$as_echo "no" >&6; }
5553fi
5554
5555 if test "x$ac_ct_DLLTOOL" = x; then
5556 DLLTOOL="false"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559yes:)
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562ac_tool_warned=yes ;;
5563esac
5564 DLLTOOL=$ac_ct_DLLTOOL
5565 fi
5566else
5567 DLLTOOL="$ac_cv_prog_DLLTOOL"
5568fi
5569
5570test -z "$DLLTOOL" && DLLTOOL=dlltool
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5582$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5583if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585else
5586 lt_cv_sharedlib_from_linklib_cmd='unknown'
5587
5588case $host_os in
5589cygwin* | mingw* | pw32* | cegcc*)
5590 # two different shell functions defined in ltmain.sh
5591 # decide which to use based on capabilities of $DLLTOOL
5592 case `$DLLTOOL --help 2>&1` in
5593 *--identify-strict*)
5594 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5595 ;;
5596 *)
5597 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5598 ;;
5599 esac
5600 ;;
5601*)
5602 # fallback: assume linklib IS sharedlib
5603 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5604 ;;
5605esac
5606
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5609$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5610sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5611test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5612
5613
5614
5615
5616
5617
5618
5619
5620if test -n "$ac_tool_prefix"; then
5621 for ac_prog in ar
5622 do
5623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if ${ac_cv_prog_AR+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test -n "$AR"; then
5631 ac_cv_prog_AR="$AR" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645 done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650AR=$ac_cv_prog_AR
5651if test -n "$AR"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5653$as_echo "$AR" >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660 test -n "$AR" && break
5661 done
5662fi
5663if test -z "$AR"; then
5664 ac_ct_AR=$AR
5665 for ac_prog in ar
5666do
5667 # Extract the first word of "$ac_prog", so it can be a program name with args.
5668set dummy $ac_prog; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if ${ac_cv_prog_ac_ct_AR+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$ac_ct_AR"; then
5675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_ac_ct_AR="$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694ac_ct_AR=$ac_cv_prog_ac_ct_AR
5695if test -n "$ac_ct_AR"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5697$as_echo "$ac_ct_AR" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704 test -n "$ac_ct_AR" && break
5705done
5706
5707 if test "x$ac_ct_AR" = x; then
5708 AR="false"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711yes:)
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714ac_tool_warned=yes ;;
5715esac
5716 AR=$ac_ct_AR
5717 fi
5718fi
5719
5720: ${AR=ar}
5721: ${AR_FLAGS=cru}
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5734$as_echo_n "checking for archiver @FILE support... " >&6; }
5735if ${lt_cv_ar_at_file+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737else
5738 lt_cv_ar_at_file=no
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741
5742int
5743main ()
5744{
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_compile "$LINENO"; then :
5751 echo conftest.$ac_objext > conftest.lst
5752 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5754 (eval $lt_ar_try) 2>&5
5755 ac_status=$?
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; }
5758 if test "$ac_status" -eq 0; then
5759 # Ensure the archiver fails upon bogus file names.
5760 rm -f conftest.$ac_objext libconftest.a
5761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5762 (eval $lt_ar_try) 2>&5
5763 ac_status=$?
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; }
5766 if test "$ac_status" -ne 0; then
5767 lt_cv_ar_at_file=@
5768 fi
5769 fi
5770 rm -f conftest.* libconftest.a
5771
5772fi
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774
5775fi
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5777$as_echo "$lt_cv_ar_at_file" >&6; }
5778
5779if test "x$lt_cv_ar_at_file" = xno; then
5780 archiver_list_spec=
5781else
5782 archiver_list_spec=$lt_cv_ar_at_file
5783fi
5784
5785
5786
5787
5788
5789
5790
5791if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5793set dummy ${ac_tool_prefix}strip; ac_word=$2
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
5796if ${ac_cv_prog_STRIP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798else
5799 if test -n "$STRIP"; then
5800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814 done
5815IFS=$as_save_IFS
5816
5817fi
5818fi
5819STRIP=$ac_cv_prog_STRIP
5820if test -n "$STRIP"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5822$as_echo "$STRIP" >&6; }
5823else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825$as_echo "no" >&6; }
5826fi
5827
5828
5829fi
5830if test -z "$ac_cv_prog_STRIP"; then
5831 ac_ct_STRIP=$STRIP
5832 # Extract the first word of "strip", so it can be a program name with args.
5833set dummy strip; ac_word=$2
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835$as_echo_n "checking for $ac_word... " >&6; }
5836if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 if test -n "$ac_ct_STRIP"; then
5840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5841else
5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_prog_ac_ct_STRIP="strip"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853done
5854 done
5855IFS=$as_save_IFS
5856
5857fi
5858fi
5859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5860if test -n "$ac_ct_STRIP"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5862$as_echo "$ac_ct_STRIP" >&6; }
5863else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865$as_echo "no" >&6; }
5866fi
5867
5868 if test "x$ac_ct_STRIP" = x; then
5869 STRIP=":"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872yes:)
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875ac_tool_warned=yes ;;
5876esac
5877 STRIP=$ac_ct_STRIP
5878 fi
5879else
5880 STRIP="$ac_cv_prog_STRIP"
5881fi
5882
5883test -z "$STRIP" && STRIP=:
5884
5885
5886
5887
5888
5889
5890if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if ${ac_cv_prog_RANLIB+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897else
5898 if test -n "$RANLIB"; then
5899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913 done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918RANLIB=$ac_cv_prog_RANLIB
5919if test -n "$RANLIB"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5921$as_echo "$RANLIB" >&6; }
5922else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927
5928fi
5929if test -z "$ac_cv_prog_RANLIB"; then
5930 ac_ct_RANLIB=$RANLIB
5931 # Extract the first word of "ranlib", so it can be a program name with args.
5932set dummy ranlib; ac_word=$2
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934$as_echo_n "checking for $ac_word... " >&6; }
5935if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937else
5938 if test -n "$ac_ct_RANLIB"; then
5939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5940else
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948 ac_cv_prog_ac_ct_RANLIB="ranlib"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953 done
5954IFS=$as_save_IFS
5955
5956fi
5957fi
5958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5959if test -n "$ac_ct_RANLIB"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5961$as_echo "$ac_ct_RANLIB" >&6; }
5962else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964$as_echo "no" >&6; }
5965fi
5966
5967 if test "x$ac_ct_RANLIB" = x; then
5968 RANLIB=":"
5969 else
5970 case $cross_compiling:$ac_tool_warned in
5971yes:)
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974ac_tool_warned=yes ;;
5975esac
5976 RANLIB=$ac_ct_RANLIB
5977 fi
5978else
5979 RANLIB="$ac_cv_prog_RANLIB"
5980fi
5981
5982test -z "$RANLIB" && RANLIB=:
5983
5984
5985
5986
5987
5988
5989# Determine commands to create old-style static archives.
5990old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5991old_postinstall_cmds='chmod 644 $oldlib'
5992old_postuninstall_cmds=
5993
5994if test -n "$RANLIB"; then
5995 case $host_os in
5996 openbsd*)
5997 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5998 ;;
5999 *)
6000 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6001 ;;
6002 esac
6003 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6004fi
6005
6006case $host_os in
6007 darwin*)
6008 lock_old_archive_extraction=yes ;;
6009 *)
6010 lock_old_archive_extraction=no ;;
6011esac
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033for ac_prog in gawk mawk nawk awk
6034do
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036set dummy $ac_prog; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if ${ac_cv_prog_AWK+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041else
6042 if test -n "$AWK"; then
6043 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_AWK="$ac_prog"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056done
6057 done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062AWK=$ac_cv_prog_AWK
6063if test -n "$AWK"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6065$as_echo "$AWK" >&6; }
6066else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071
6072 test -n "$AWK" && break
6073done
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093# If no C compiler was specified, use CC.
6094LTCC=${LTCC-"$CC"}
6095
6096# If no C compiler flags were specified, use CFLAGS.
6097LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6098
6099# Allow CC to be a program name with arguments.
6100compiler=$CC
6101
6102
6103# Check for command to grab the raw symbol name followed by C symbol from nm.
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6105$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6106if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108else
6109
6110# These are sane defaults that work on at least a few old systems.
6111# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6112
6113# Character class describing NM global symbol codes.
6114symcode='[BCDEGRST]'
6115
6116# Regexp to match symbols that can be accessed directly from C.
6117sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6118
6119# Define system-specific variables.
6120case $host_os in
6121aix*)
6122 symcode='[BCDT]'
6123 ;;
6124cygwin* | mingw* | pw32* | cegcc*)
6125 symcode='[ABCDGISTW]'
6126 ;;
6127hpux*)
6128 if test "$host_cpu" = ia64; then
6129 symcode='[ABCDEGRST]'
6130 fi
6131 ;;
6132irix* | nonstopux*)
6133 symcode='[BCDEGRST]'
6134 ;;
6135osf*)
6136 symcode='[BCDEGQRST]'
6137 ;;
6138solaris*)
6139 symcode='[BDRT]'
6140 ;;
6141sco3.2v5*)
6142 symcode='[DT]'
6143 ;;
6144sysv4.2uw2*)
6145 symcode='[DT]'
6146 ;;
6147sysv5* | sco5v6* | unixware* | OpenUNIX*)
6148 symcode='[ABDT]'
6149 ;;
6150sysv4)
6151 symcode='[DFNSTU]'
6152 ;;
6153esac
6154
6155# If we're using GNU nm, then use its standard symbol codes.
6156case `$NM -V 2>&1` in
6157*GNU* | *'with BFD'*)
6158 symcode='[ABCDGIRSTW]' ;;
6159esac
6160
6161# Transform an extracted symbol line into a proper C declaration.
6162# Some systems (esp. on ia64) link data and code symbols differently,
6163# so use this general approach.
6164lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6165
6166# Transform an extracted symbol line into symbol name and symbol address
6167lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6168lt_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'"
6169
6170# Handle CRLF in mingw tool chain
6171opt_cr=
6172case $build_os in
6173mingw*)
6174 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6175 ;;
6176esac
6177
6178# Try without a prefix underscore, then with it.
6179for ac_symprfx in "" "_"; do
6180
6181 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6182 symxfrm="\\1 $ac_symprfx\\2 \\2"
6183
6184 # Write the raw and C identifiers.
6185 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6186 # Fake it for dumpbin and say T for any non-static function
6187 # and D for any global variable.
6188 # Also find C++ and __fastcall symbols from MSVC++,
6189 # which start with @ or ?.
6190 lt_cv_sys_global_symbol_pipe="$AWK '"\
6191" {last_section=section; section=\$ 3};"\
6192" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6193" \$ 0!~/External *\|/{next};"\
6194" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6195" {if(hide[section]) next};"\
6196" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6197" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6198" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6199" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6200" ' prfx=^$ac_symprfx"
6201 else
6202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6203 fi
6204 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6205
6206 # Check to see that the pipe works correctly.
6207 pipe_works=no
6208
6209 rm -f conftest*
6210 cat > conftest.$ac_ext <<_LT_EOF
6211#ifdef __cplusplus
6212extern "C" {
6213#endif
6214char nm_test_var;
6215void nm_test_func(void);
6216void nm_test_func(void){}
6217#ifdef __cplusplus
6218}
6219#endif
6220int main(){nm_test_var='a';nm_test_func();return(0);}
6221_LT_EOF
6222
6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6224 (eval $ac_compile) 2>&5
6225 ac_status=$?
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; }; then
6228 # Now try to grab the symbols.
6229 nlist=conftest.nm
6230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6231 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6232 ac_status=$?
6233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6234 test $ac_status = 0; } && test -s "$nlist"; then
6235 # Try sorting and uniquifying the output.
6236 if sort "$nlist" | uniq > "$nlist"T; then
6237 mv -f "$nlist"T "$nlist"
6238 else
6239 rm -f "$nlist"T
6240 fi
6241
6242 # Make sure that we snagged all the symbols we need.
6243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6245 cat <<_LT_EOF > conftest.$ac_ext
6246/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6247#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6248/* DATA imports from DLLs on WIN32 con't be const, because runtime
6249 relocations are performed -- see ld's documentation on pseudo-relocs. */
6250# define LT_DLSYM_CONST
6251#elif defined(__osf__)
6252/* This system does not cope well with relocations in const data. */
6253# define LT_DLSYM_CONST
6254#else
6255# define LT_DLSYM_CONST const
6256#endif
6257
6258#ifdef __cplusplus
6259extern "C" {
6260#endif
6261
6262_LT_EOF
6263 # Now generate the symbol file.
6264 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6265
6266 cat <<_LT_EOF >> conftest.$ac_ext
6267
6268/* The mapping between symbol names and symbols. */
6269LT_DLSYM_CONST struct {
6270 const char *name;
6271 void *address;
6272}
6273lt__PROGRAM__LTX_preloaded_symbols[] =
6274{
6275 { "@PROGRAM@", (void *) 0 },
6276_LT_EOF
6277 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6278 cat <<\_LT_EOF >> conftest.$ac_ext
6279 {0, (void *) 0}
6280};
6281
6282/* This works around a problem in FreeBSD linker */
6283#ifdef FREEBSD_WORKAROUND
6284static const void *lt_preloaded_setup() {
6285 return lt__PROGRAM__LTX_preloaded_symbols;
6286}
6287#endif
6288
6289#ifdef __cplusplus
6290}
6291#endif
6292_LT_EOF
6293 # Now try linking the two files.
6294 mv conftest.$ac_objext conftstm.$ac_objext
6295 lt_globsym_save_LIBS=$LIBS
6296 lt_globsym_save_CFLAGS=$CFLAGS
6297 LIBS="conftstm.$ac_objext"
6298 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6300 (eval $ac_link) 2>&5
6301 ac_status=$?
6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6303 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6304 pipe_works=yes
6305 fi
6306 LIBS=$lt_globsym_save_LIBS
6307 CFLAGS=$lt_globsym_save_CFLAGS
6308 else
6309 echo "cannot find nm_test_func in $nlist" >&5
6310 fi
6311 else
6312 echo "cannot find nm_test_var in $nlist" >&5
6313 fi
6314 else
6315 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6316 fi
6317 else
6318 echo "$progname: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6320 fi
6321 rm -rf conftest* conftst*
6322
6323 # Do not use the global_symbol_pipe unless it works.
6324 if test "$pipe_works" = yes; then
6325 break
6326 else
6327 lt_cv_sys_global_symbol_pipe=
6328 fi
6329done
6330
6331fi
6332
6333if test -z "$lt_cv_sys_global_symbol_pipe"; then
6334 lt_cv_sys_global_symbol_to_cdecl=
6335fi
6336if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6338$as_echo "failed" >&6; }
6339else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6341$as_echo "ok" >&6; }
6342fi
6343
6344# Response file support.
6345if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6346 nm_file_list_spec='@'
6347elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6348 nm_file_list_spec='@'
6349fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6378$as_echo_n "checking for sysroot... " >&6; }
6379
6380# Check whether --with-sysroot was given.
6381if test "${with_sysroot+set}" = set; then :
6382 withval=$with_sysroot;
6383else
6384 with_sysroot=no
6385fi
6386
6387
6388lt_sysroot=
6389case ${with_sysroot} in #(
6390 yes)
6391 if test "$GCC" = yes; then
6392 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6393 fi
6394 ;; #(
6395 /*)
6396 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6397 ;; #(
6398 no|'')
6399 ;; #(
6400 *)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6402$as_echo "${with_sysroot}" >&6; }
6403 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6404 ;;
6405esac
6406
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6408$as_echo "${lt_sysroot:-no}" >&6; }
6409
6410
6411
6412
6413
6414# Check whether --enable-libtool-lock was given.
6415if test "${enable_libtool_lock+set}" = set; then :
6416 enableval=$enable_libtool_lock;
6417fi
6418
6419test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6420
6421# Some flags need to be propagated to the compiler or linker for good
6422# libtool support.
6423case $host in
6424ia64-*-hpux*)
6425 # Find out which ABI we are using.
6426 echo 'int i;' > conftest.$ac_ext
6427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6428 (eval $ac_compile) 2>&5
6429 ac_status=$?
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; }; then
6432 case `/usr/bin/file conftest.$ac_objext` in
6433 *ELF-32*)
6434 HPUX_IA64_MODE="32"
6435 ;;
6436 *ELF-64*)
6437 HPUX_IA64_MODE="64"
6438 ;;
6439 esac
6440 fi
6441 rm -rf conftest*
6442 ;;
6443*-*-irix6*)
6444 # Find out which ABI we are using.
6445 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6447 (eval $ac_compile) 2>&5
6448 ac_status=$?
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; }; then
6451 if test "$lt_cv_prog_gnu_ld" = yes; then
6452 case `/usr/bin/file conftest.$ac_objext` in
6453 *32-bit*)
6454 LD="${LD-ld} -melf32bsmip"
6455 ;;
6456 *N32*)
6457 LD="${LD-ld} -melf32bmipn32"
6458 ;;
6459 *64-bit*)
6460 LD="${LD-ld} -melf64bmip"
6461 ;;
6462 esac
6463 else
6464 case `/usr/bin/file conftest.$ac_objext` in
6465 *32-bit*)
6466 LD="${LD-ld} -32"
6467 ;;
6468 *N32*)
6469 LD="${LD-ld} -n32"
6470 ;;
6471 *64-bit*)
6472 LD="${LD-ld} -64"
6473 ;;
6474 esac
6475 fi
6476 fi
6477 rm -rf conftest*
6478 ;;
6479
6480x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6481s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6482 # Find out which ABI we are using.
6483 echo 'int i;' > conftest.$ac_ext
6484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488 test $ac_status = 0; }; then
6489 case `/usr/bin/file conftest.o` in
6490 *32-bit*)
6491 case $host in
6492 x86_64-*kfreebsd*-gnu)
6493 LD="${LD-ld} -m elf_i386_fbsd"
6494 ;;
6495 x86_64-*linux*)
6496 LD="${LD-ld} -m elf_i386"
6497 ;;
6498 ppc64-*linux*|powerpc64-*linux*)
6499 LD="${LD-ld} -m elf32ppclinux"
6500 ;;
6501 s390x-*linux*)
6502 LD="${LD-ld} -m elf_s390"
6503 ;;
6504 sparc64-*linux*)
6505 LD="${LD-ld} -m elf32_sparc"
6506 ;;
6507 esac
6508 ;;
6509 *64-bit*)
6510 case $host in
6511 x86_64-*kfreebsd*-gnu)
6512 LD="${LD-ld} -m elf_x86_64_fbsd"
6513 ;;
6514 x86_64-*linux*)
6515 LD="${LD-ld} -m elf_x86_64"
6516 ;;
6517 ppc*-*linux*|powerpc*-*linux*)
6518 LD="${LD-ld} -m elf64ppc"
6519 ;;
6520 s390*-*linux*|s390*-*tpf*)
6521 LD="${LD-ld} -m elf64_s390"
6522 ;;
6523 sparc*-*linux*)
6524 LD="${LD-ld} -m elf64_sparc"
6525 ;;
6526 esac
6527 ;;
6528 esac
6529 fi
6530 rm -rf conftest*
6531 ;;
6532
6533*-*-sco3.2v5*)
6534 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6535 SAVE_CFLAGS="$CFLAGS"
6536 CFLAGS="$CFLAGS -belf"
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6538$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6539if ${lt_cv_cc_needs_belf+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541else
6542 ac_ext=c
6543ac_cpp='$CPP $CPPFLAGS'
6544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6546ac_compiler_gnu=$ac_cv_c_compiler_gnu
6547
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h. */
6550
6551int
6552main ()
6553{
6554
6555 ;
6556 return 0;
6557}
6558_ACEOF
6559if ac_fn_c_try_link "$LINENO"; then :
6560 lt_cv_cc_needs_belf=yes
6561else
6562 lt_cv_cc_needs_belf=no
6563fi
6564rm -f core conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext conftest.$ac_ext
6566 ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572fi
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6574$as_echo "$lt_cv_cc_needs_belf" >&6; }
6575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6577 CFLAGS="$SAVE_CFLAGS"
6578 fi
6579 ;;
6580sparc*-*solaris*)
6581 # Find out which ABI we are using.
6582 echo 'int i;' > conftest.$ac_ext
6583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6584 (eval $ac_compile) 2>&5
6585 ac_status=$?
6586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587 test $ac_status = 0; }; then
6588 case `/usr/bin/file conftest.o` in
6589 *64-bit*)
6590 case $lt_cv_prog_gnu_ld in
6591 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6592 *)
6593 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6594 LD="${LD-ld} -64"
6595 fi
6596 ;;
6597 esac
6598 ;;
6599 esac
6600 fi
6601 rm -rf conftest*
6602 ;;
6603esac
6604
6605need_locks="$enable_libtool_lock"
6606
6607if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6609set dummy ${ac_tool_prefix}mt; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$MANIFEST_TOOL"; then
6616 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6636if test -n "$MANIFEST_TOOL"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6638$as_echo "$MANIFEST_TOOL" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644
6645fi
6646if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6647 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6648 # Extract the first word of "mt", so it can be a program name with args.
6649set dummy mt; ac_word=$2
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651$as_echo_n "checking for $ac_word... " >&6; }
6652if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6653 $as_echo_n "(cached) " >&6
6654else
6655 if test -n "$ac_ct_MANIFEST_TOOL"; then
6656 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6657else
6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669done
6670 done
6671IFS=$as_save_IFS
6672
6673fi
6674fi
6675ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6676if test -n "$ac_ct_MANIFEST_TOOL"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6678$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6679else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681$as_echo "no" >&6; }
6682fi
6683
6684 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6685 MANIFEST_TOOL=":"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688yes:)
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6694 fi
6695else
6696 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6697fi
6698
6699test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6701$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6702if ${lt_cv_path_mainfest_tool+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704else
6705 lt_cv_path_mainfest_tool=no
6706 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6707 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6708 cat conftest.err >&5
6709 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6710 lt_cv_path_mainfest_tool=yes
6711 fi
6712 rm -f conftest*
6713fi
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6715$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6716if test "x$lt_cv_path_mainfest_tool" != xyes; then
6717 MANIFEST_TOOL=:
6718fi
6719
6720
6721
6722
6723
6724
6725 case $host_os in
6726 rhapsody* | darwin*)
6727 if test -n "$ac_tool_prefix"; then
6728 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6729set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_DSYMUTIL+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734else
6735 if test -n "$DSYMUTIL"; then
6736 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755DSYMUTIL=$ac_cv_prog_DSYMUTIL
6756if test -n "$DSYMUTIL"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6758$as_echo "$DSYMUTIL" >&6; }
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764
6765fi
6766if test -z "$ac_cv_prog_DSYMUTIL"; then
6767 ac_ct_DSYMUTIL=$DSYMUTIL
6768 # Extract the first word of "dsymutil", so it can be a program name with args.
6769set dummy dsymutil; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774else
6775 if test -n "$ac_ct_DSYMUTIL"; then
6776 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789done
6790 done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6796if test -n "$ac_ct_DSYMUTIL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6798$as_echo "$ac_ct_DSYMUTIL" >&6; }
6799else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804 if test "x$ac_ct_DSYMUTIL" = x; then
6805 DSYMUTIL=":"
6806 else
6807 case $cross_compiling:$ac_tool_warned in
6808yes:)
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811ac_tool_warned=yes ;;
6812esac
6813 DSYMUTIL=$ac_ct_DSYMUTIL
6814 fi
6815else
6816 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6817fi
6818
6819 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6821set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823$as_echo_n "checking for $ac_word... " >&6; }
6824if ${ac_cv_prog_NMEDIT+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826else
6827 if test -n "$NMEDIT"; then
6828 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842 done
6843IFS=$as_save_IFS
6844
6845fi
6846fi
6847NMEDIT=$ac_cv_prog_NMEDIT
6848if test -n "$NMEDIT"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6850$as_echo "$NMEDIT" >&6; }
6851else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
6855
6856
6857fi
6858if test -z "$ac_cv_prog_NMEDIT"; then
6859 ac_ct_NMEDIT=$NMEDIT
6860 # Extract the first word of "nmedit", so it can be a program name with args.
6861set dummy nmedit; ac_word=$2
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863$as_echo_n "checking for $ac_word... " >&6; }
6864if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866else
6867 if test -n "$ac_ct_NMEDIT"; then
6868 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881done
6882 done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
6887ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6888if test -n "$ac_ct_NMEDIT"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6890$as_echo "$ac_ct_NMEDIT" >&6; }
6891else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895
6896 if test "x$ac_ct_NMEDIT" = x; then
6897 NMEDIT=":"
6898 else
6899 case $cross_compiling:$ac_tool_warned in
6900yes:)
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903ac_tool_warned=yes ;;
6904esac
6905 NMEDIT=$ac_ct_NMEDIT
6906 fi
6907else
6908 NMEDIT="$ac_cv_prog_NMEDIT"
6909fi
6910
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6913set dummy ${ac_tool_prefix}lipo; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if ${ac_cv_prog_LIPO+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$LIPO"; then
6920 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939LIPO=$ac_cv_prog_LIPO
6940if test -n "$LIPO"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6942$as_echo "$LIPO" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
6947
6948
6949fi
6950if test -z "$ac_cv_prog_LIPO"; then
6951 ac_ct_LIPO=$LIPO
6952 # Extract the first word of "lipo", so it can be a program name with args.
6953set dummy lipo; ac_word=$2
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
6956if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959 if test -n "$ac_ct_LIPO"; then
6960 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_ac_ct_LIPO="lipo"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974 done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6980if test -n "$ac_ct_LIPO"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6982$as_echo "$ac_ct_LIPO" >&6; }
6983else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988 if test "x$ac_ct_LIPO" = x; then
6989 LIPO=":"
6990 else
6991 case $cross_compiling:$ac_tool_warned in
6992yes:)
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995ac_tool_warned=yes ;;
6996esac
6997 LIPO=$ac_ct_LIPO
6998 fi
6999else
7000 LIPO="$ac_cv_prog_LIPO"
7001fi
7002
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7005set dummy ${ac_tool_prefix}otool; ac_word=$2
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
7008if ${ac_cv_prog_OTOOL+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010else
7011 if test -n "$OTOOL"; then
7012 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026 done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031OTOOL=$ac_cv_prog_OTOOL
7032if test -n "$OTOOL"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7034$as_echo "$OTOOL" >&6; }
7035else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
7038fi
7039
7040
7041fi
7042if test -z "$ac_cv_prog_OTOOL"; then
7043 ac_ct_OTOOL=$OTOOL
7044 # Extract the first word of "otool", so it can be a program name with args.
7045set dummy otool; ac_word=$2
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047$as_echo_n "checking for $ac_word... " >&6; }
7048if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050else
7051 if test -n "$ac_ct_OTOOL"; then
7052 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_ac_ct_OTOOL="otool"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066 done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7072if test -n "$ac_ct_OTOOL"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7074$as_echo "$ac_ct_OTOOL" >&6; }
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080 if test "x$ac_ct_OTOOL" = x; then
7081 OTOOL=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084yes:)
7085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087ac_tool_warned=yes ;;
7088esac
7089 OTOOL=$ac_ct_OTOOL
7090 fi
7091else
7092 OTOOL="$ac_cv_prog_OTOOL"
7093fi
7094
7095 if test -n "$ac_tool_prefix"; then
7096 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7097set dummy ${ac_tool_prefix}otool64; ac_word=$2
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if ${ac_cv_prog_OTOOL64+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102else
7103 if test -n "$OTOOL64"; then
7104 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118 done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123OTOOL64=$ac_cv_prog_OTOOL64
7124if test -n "$OTOOL64"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7126$as_echo "$OTOOL64" >&6; }
7127else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132
7133fi
7134if test -z "$ac_cv_prog_OTOOL64"; then
7135 ac_ct_OTOOL64=$OTOOL64
7136 # Extract the first word of "otool64", so it can be a program name with args.
7137set dummy otool64; ac_word=$2
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
7140if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142else
7143 if test -n "$ac_ct_OTOOL64"; then
7144 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_ac_ct_OTOOL64="otool64"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157done
7158 done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7164if test -n "$ac_ct_OTOOL64"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7166$as_echo "$ac_ct_OTOOL64" >&6; }
7167else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172 if test "x$ac_ct_OTOOL64" = x; then
7173 OTOOL64=":"
7174 else
7175 case $cross_compiling:$ac_tool_warned in
7176yes:)
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179ac_tool_warned=yes ;;
7180esac
7181 OTOOL64=$ac_ct_OTOOL64
7182 fi
7183else
7184 OTOOL64="$ac_cv_prog_OTOOL64"
7185fi
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7214$as_echo_n "checking for -single_module linker flag... " >&6; }
7215if ${lt_cv_apple_cc_single_mod+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217else
7218 lt_cv_apple_cc_single_mod=no
7219 if test -z "${LT_MULTI_MODULE}"; then
7220 # By default we will add the -single_module flag. You can override
7221 # by either setting the environment variable LT_MULTI_MODULE
7222 # non-empty at configure time, or by adding -multi_module to the
7223 # link flags.
7224 rm -rf libconftest.dylib*
7225 echo "int foo(void){return 1;}" > conftest.c
7226 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7227-dynamiclib -Wl,-single_module conftest.c" >&5
7228 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7229 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7230 _lt_result=$?
7231 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7232 lt_cv_apple_cc_single_mod=yes
7233 else
7234 cat conftest.err >&5
7235 fi
7236 rm -rf libconftest.dylib*
7237 rm -f conftest.*
7238 fi
7239fi
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7241$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7243$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7244if ${lt_cv_ld_exported_symbols_list+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246else
7247 lt_cv_ld_exported_symbols_list=no
7248 save_LDFLAGS=$LDFLAGS
7249 echo "_main" > conftest.sym
7250 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h. */
7253
7254int
7255main ()
7256{
7257
7258 ;
7259 return 0;
7260}
7261_ACEOF
7262if ac_fn_c_try_link "$LINENO"; then :
7263 lt_cv_ld_exported_symbols_list=yes
7264else
7265 lt_cv_ld_exported_symbols_list=no
7266fi
7267rm -f core conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 LDFLAGS="$save_LDFLAGS"
7270
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7273$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7275$as_echo_n "checking for -force_load linker flag... " >&6; }
7276if ${lt_cv_ld_force_load+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278else
7279 lt_cv_ld_force_load=no
7280 cat > conftest.c << _LT_EOF
7281int forced_loaded() { return 2;}
7282_LT_EOF
7283 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7284 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7285 echo "$AR cru libconftest.a conftest.o" >&5
7286 $AR cru libconftest.a conftest.o 2>&5
7287 echo "$RANLIB libconftest.a" >&5
7288 $RANLIB libconftest.a 2>&5
7289 cat > conftest.c << _LT_EOF
7290int main() { return 0;}
7291_LT_EOF
7292 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7293 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7294 _lt_result=$?
7295 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7296 lt_cv_ld_force_load=yes
7297 else
7298 cat conftest.err >&5
7299 fi
7300 rm -f conftest.err libconftest.a conftest conftest.c
7301 rm -rf conftest.dSYM
7302
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7305$as_echo "$lt_cv_ld_force_load" >&6; }
7306 case $host_os in
7307 rhapsody* | darwin1.[012])
7308 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7309 darwin1.*)
7310 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7311 darwin*) # darwin 5.x on
7312 # if running on 10.5 or later, the deployment target defaults
7313 # to the OS version, if on x86, and 10.4, the deployment
7314 # target defaults to 10.4. Don't you love it?
7315 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7316 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7318 10.[012]*)
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 10.*)
7321 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7322 esac
7323 ;;
7324 esac
7325 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7326 _lt_dar_single_mod='$single_module'
7327 fi
7328 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7329 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7330 else
7331 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7332 fi
7333 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7334 _lt_dsymutil='~$DSYMUTIL $lib || :'
7335 else
7336 _lt_dsymutil=
7337 fi
7338 ;;
7339 esac
7340
7341
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7343$as_echo_n "checking for ANSI C header files... " >&6; }
7344if ${ac_cv_header_stdc+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h. */
7349#include <stdlib.h>
7350#include <stdarg.h>
7351#include <string.h>
7352#include <float.h>
7353
7354int
7355main ()
7356{
7357
7358 ;
7359 return 0;
7360}
7361_ACEOF
7362if ac_fn_c_try_compile "$LINENO"; then :
7363 ac_cv_header_stdc=yes
7364else
7365 ac_cv_header_stdc=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368
7369if test $ac_cv_header_stdc = yes; then
7370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h. */
7373#include <string.h>
7374
7375_ACEOF
7376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377 $EGREP "memchr" >/dev/null 2>&1; then :
7378
7379else
7380 ac_cv_header_stdc=no
7381fi
7382rm -f conftest*
7383
7384fi
7385
7386if test $ac_cv_header_stdc = yes; then
7387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390#include <stdlib.h>
7391
7392_ACEOF
7393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7394 $EGREP "free" >/dev/null 2>&1; then :
7395
7396else
7397 ac_cv_header_stdc=no
7398fi
7399rm -f conftest*
7400
7401fi
7402
7403if test $ac_cv_header_stdc = yes; then
7404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7405 if test "$cross_compiling" = yes; then :
7406 :
7407else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h. */
7410#include <ctype.h>
7411#include <stdlib.h>
7412#if ((' ' & 0x0FF) == 0x020)
7413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7415#else
7416# define ISLOWER(c) \
7417 (('a' <= (c) && (c) <= 'i') \
7418 || ('j' <= (c) && (c) <= 'r') \
7419 || ('s' <= (c) && (c) <= 'z'))
7420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7421#endif
7422
7423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7424int
7425main ()
7426{
7427 int i;
7428 for (i = 0; i < 256; i++)
7429 if (XOR (islower (i), ISLOWER (i))
7430 || toupper (i) != TOUPPER (i))
7431 return 2;
7432 return 0;
7433}
7434_ACEOF
7435if ac_fn_c_try_run "$LINENO"; then :
7436
7437else
7438 ac_cv_header_stdc=no
7439fi
7440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7441 conftest.$ac_objext conftest.beam conftest.$ac_ext
7442fi
7443
7444fi
7445fi
7446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7447$as_echo "$ac_cv_header_stdc" >&6; }
7448if test $ac_cv_header_stdc = yes; then
7449
7450$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7451
7452fi
7453
7454# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7455for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7456 inttypes.h stdint.h unistd.h
7457do :
7458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7459ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7460"
7461if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7462 cat >>confdefs.h <<_ACEOF
7463#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464_ACEOF
7465
7466fi
7467
7468done
7469
7470
7471for ac_header in dlfcn.h
7472do :
7473 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7474"
7475if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7476 cat >>confdefs.h <<_ACEOF
7477#define HAVE_DLFCN_H 1
7478_ACEOF
7479
7480fi
7481
7482done
7483
7484
7485
7486
7487func_stripname_cnf ()
7488{
7489 case ${2} in
7490 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7491 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7492 esac
7493} # func_stripname_cnf
7494
7495
7496
7497
7498
7499# Set options
7500
7501
7502
7503 enable_dlopen=no
7504
7505
7506 enable_win32_dll=no
7507
7508
7509 # Check whether --enable-shared was given.
7510if test "${enable_shared+set}" = set; then :
7511 enableval=$enable_shared; p=${PACKAGE-default}
7512 case $enableval in
7513 yes) enable_shared=yes ;;
7514 no) enable_shared=no ;;
7515 *)
7516 enable_shared=no
7517 # Look at the argument we got. We use all the common list separators.
7518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7519 for pkg in $enableval; do
7520 IFS="$lt_save_ifs"
7521 if test "X$pkg" = "X$p"; then
7522 enable_shared=yes
7523 fi
7524 done
7525 IFS="$lt_save_ifs"
7526 ;;
7527 esac
7528else
7529 enable_shared=yes
7530fi
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 # Check whether --enable-static was given.
7541if test "${enable_static+set}" = set; then :
7542 enableval=$enable_static; p=${PACKAGE-default}
7543 case $enableval in
7544 yes) enable_static=yes ;;
7545 no) enable_static=no ;;
7546 *)
7547 enable_static=no
7548 # Look at the argument we got. We use all the common list separators.
7549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7550 for pkg in $enableval; do
7551 IFS="$lt_save_ifs"
7552 if test "X$pkg" = "X$p"; then
7553 enable_static=yes
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557 ;;
7558 esac
7559else
7560 enable_static=yes
7561fi
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572# Check whether --with-pic was given.
7573if test "${with_pic+set}" = set; then :
7574 withval=$with_pic; pic_mode="$withval"
7575else
7576 pic_mode=default
7577fi
7578
7579
7580test -z "$pic_mode" && pic_mode=default
7581
7582
7583
7584
7585
7586
7587
7588 # Check whether --enable-fast-install was given.
7589if test "${enable_fast_install+set}" = set; then :
7590 enableval=$enable_fast_install; p=${PACKAGE-default}
7591 case $enableval in
7592 yes) enable_fast_install=yes ;;
7593 no) enable_fast_install=no ;;
7594 *)
7595 enable_fast_install=no
7596 # Look at the argument we got. We use all the common list separators.
7597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7598 for pkg in $enableval; do
7599 IFS="$lt_save_ifs"
7600 if test "X$pkg" = "X$p"; then
7601 enable_fast_install=yes
7602 fi
7603 done
7604 IFS="$lt_save_ifs"
7605 ;;
7606 esac
7607else
7608 enable_fast_install=yes
7609fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621# This can be used to rebuild libtool when needed
7622LIBTOOL_DEPS="$ltmain"
7623
7624# Always use our own libtool.
7625LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652test -z "$LN_S" && LN_S="ln -s"
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667if test -n "${ZSH_VERSION+set}" ; then
7668 setopt NO_GLOB_SUBST
7669fi
7670
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7672$as_echo_n "checking for objdir... " >&6; }
7673if ${lt_cv_objdir+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675else
7676 rm -f .libs 2>/dev/null
7677mkdir .libs 2>/dev/null
7678if test -d .libs; then
7679 lt_cv_objdir=.libs
7680else
7681 # MS-DOS does not allow filenames that begin with a dot.
7682 lt_cv_objdir=_libs
7683fi
7684rmdir .libs 2>/dev/null
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7687$as_echo "$lt_cv_objdir" >&6; }
7688objdir=$lt_cv_objdir
7689
7690
7691
7692
7693
7694cat >>confdefs.h <<_ACEOF
7695#define LT_OBJDIR "$lt_cv_objdir/"
7696_ACEOF
7697
7698
7699
7700
7701case $host_os in
7702aix3*)
7703 # AIX sometimes has problems with the GCC collect2 program. For some
7704 # reason, if we set the COLLECT_NAMES environment variable, the problems
7705 # vanish in a puff of smoke.
7706 if test "X${COLLECT_NAMES+set}" != Xset; then
7707 COLLECT_NAMES=
7708 export COLLECT_NAMES
7709 fi
7710 ;;
7711esac
7712
7713# Global variables:
7714ofile=libtool
7715can_build_shared=yes
7716
7717# All known linkers require a `.a' archive for static linking (except MSVC,
7718# which needs '.lib').
7719libext=a
7720
7721with_gnu_ld="$lt_cv_prog_gnu_ld"
7722
7723old_CC="$CC"
7724old_CFLAGS="$CFLAGS"
7725
7726# Set sane defaults for various variables
7727test -z "$CC" && CC=cc
7728test -z "$LTCC" && LTCC=$CC
7729test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7730test -z "$LD" && LD=ld
7731test -z "$ac_objext" && ac_objext=o
7732
7733for cc_temp in $compiler""; do
7734 case $cc_temp in
7735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7737 \-*) ;;
7738 *) break;;
7739 esac
7740done
7741cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7742
7743
7744# Only perform the check for file, if the check method requires it
7745test -z "$MAGIC_CMD" && MAGIC_CMD=file
7746case $deplibs_check_method in
7747file_magic*)
7748 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7750$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7751if ${lt_cv_path_MAGIC_CMD+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753else
7754 case $MAGIC_CMD in
7755[\\/*] | ?:[\\/]*)
7756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7757 ;;
7758*)
7759 lt_save_MAGIC_CMD="$MAGIC_CMD"
7760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7761 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7762 for ac_dir in $ac_dummy; do
7763 IFS="$lt_save_ifs"
7764 test -z "$ac_dir" && ac_dir=.
7765 if test -f $ac_dir/${ac_tool_prefix}file; then
7766 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7767 if test -n "$file_magic_test_file"; then
7768 case $deplibs_check_method in
7769 "file_magic "*)
7770 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7771 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7773 $EGREP "$file_magic_regex" > /dev/null; then
7774 :
7775 else
7776 cat <<_LT_EOF 1>&2
7777
7778*** Warning: the command libtool uses to detect shared libraries,
7779*** $file_magic_cmd, produces output that libtool cannot recognize.
7780*** The result is that libtool may fail to recognize shared libraries
7781*** as such. This will affect the creation of libtool libraries that
7782*** depend on shared libraries, but programs linked with such libtool
7783*** libraries will work regardless of this problem. Nevertheless, you
7784*** may want to report the problem to your system manager and/or to
7785*** bug-libtool@gnu.org
7786
7787_LT_EOF
7788 fi ;;
7789 esac
7790 fi
7791 break
7792 fi
7793 done
7794 IFS="$lt_save_ifs"
7795 MAGIC_CMD="$lt_save_MAGIC_CMD"
7796 ;;
7797esac
7798fi
7799
7800MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7801if test -n "$MAGIC_CMD"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7803$as_echo "$MAGIC_CMD" >&6; }
7804else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807fi
7808
7809
7810
7811
7812
7813if test -z "$lt_cv_path_MAGIC_CMD"; then
7814 if test -n "$ac_tool_prefix"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7816$as_echo_n "checking for file... " >&6; }
7817if ${lt_cv_path_MAGIC_CMD+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819else
7820 case $MAGIC_CMD in
7821[\\/*] | ?:[\\/]*)
7822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7823 ;;
7824*)
7825 lt_save_MAGIC_CMD="$MAGIC_CMD"
7826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7828 for ac_dir in $ac_dummy; do
7829 IFS="$lt_save_ifs"
7830 test -z "$ac_dir" && ac_dir=.
7831 if test -f $ac_dir/file; then
7832 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7833 if test -n "$file_magic_test_file"; then
7834 case $deplibs_check_method in
7835 "file_magic "*)
7836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7839 $EGREP "$file_magic_regex" > /dev/null; then
7840 :
7841 else
7842 cat <<_LT_EOF 1>&2
7843
7844*** Warning: the command libtool uses to detect shared libraries,
7845*** $file_magic_cmd, produces output that libtool cannot recognize.
7846*** The result is that libtool may fail to recognize shared libraries
7847*** as such. This will affect the creation of libtool libraries that
7848*** depend on shared libraries, but programs linked with such libtool
7849*** libraries will work regardless of this problem. Nevertheless, you
7850*** may want to report the problem to your system manager and/or to
7851*** bug-libtool@gnu.org
7852
7853_LT_EOF
7854 fi ;;
7855 esac
7856 fi
7857 break
7858 fi
7859 done
7860 IFS="$lt_save_ifs"
7861 MAGIC_CMD="$lt_save_MAGIC_CMD"
7862 ;;
7863esac
7864fi
7865
7866MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867if test -n "$MAGIC_CMD"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7869$as_echo "$MAGIC_CMD" >&6; }
7870else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873fi
7874
7875
7876 else
7877 MAGIC_CMD=:
7878 fi
7879fi
7880
7881 fi
7882 ;;
7883esac
7884
7885# Use C for the default configuration in the libtool script
7886
7887lt_save_CC="$CC"
7888ac_ext=c
7889ac_cpp='$CPP $CPPFLAGS'
7890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894
7895# Source file extension for C test sources.
7896ac_ext=c
7897
7898# Object file extension for compiled C test sources.
7899objext=o
7900objext=$objext
7901
7902# Code to be used in simple compile tests
7903lt_simple_compile_test_code="int some_variable = 0;"
7904
7905# Code to be used in simple link tests
7906lt_simple_link_test_code='int main(){return(0);}'
7907
7908
7909
7910
7911
7912
7913
7914# If no C compiler was specified, use CC.
7915LTCC=${LTCC-"$CC"}
7916
7917# If no C compiler flags were specified, use CFLAGS.
7918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7919
7920# Allow CC to be a program name with arguments.
7921compiler=$CC
7922
7923# Save the default compiler, since it gets overwritten when the other
7924# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7925compiler_DEFAULT=$CC
7926
7927# save warnings/boilerplate of simple test code
7928ac_outfile=conftest.$ac_objext
7929echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7930eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7931_lt_compiler_boilerplate=`cat conftest.err`
7932$RM conftest*
7933
7934ac_outfile=conftest.$ac_objext
7935echo "$lt_simple_link_test_code" >conftest.$ac_ext
7936eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7937_lt_linker_boilerplate=`cat conftest.err`
7938$RM -r conftest*
7939
7940
7941## CAVEAT EMPTOR:
7942## There is no encapsulation within the following macros, do not change
7943## the running order or otherwise move them around unless you know exactly
7944## what you are doing...
7945if test -n "$compiler"; then
7946
7947lt_prog_compiler_no_builtin_flag=
7948
7949if test "$GCC" = yes; then
7950 case $cc_basename in
7951 nvcc*)
7952 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7953 *)
7954 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7955 esac
7956
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7958$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7959if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961else
7962 lt_cv_prog_compiler_rtti_exceptions=no
7963 ac_outfile=conftest.$ac_objext
7964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7965 lt_compiler_flag="-fno-rtti -fno-exceptions"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 # The option is referenced via a variable to avoid confusing sed.
7971 lt_compile=`echo "$ac_compile" | $SED \
7972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7974 -e 's:$: $lt_compiler_flag:'`
7975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7976 (eval "$lt_compile" 2>conftest.err)
7977 ac_status=$?
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 if (exit $ac_status) && test -s "$ac_outfile"; then
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings other than the usual output.
7983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_rtti_exceptions=yes
7987 fi
7988 fi
7989 $RM conftest*
7990
7991fi
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7993$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7994
7995if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7996 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7997else
7998 :
7999fi
8000
8001fi
8002
8003
8004
8005
8006
8007
8008 lt_prog_compiler_wl=
8009lt_prog_compiler_pic=
8010lt_prog_compiler_static=
8011
8012
8013 if test "$GCC" = yes; then
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_static='-static'
8016
8017 case $host_os in
8018 aix*)
8019 # All AIX code is PIC.
8020 if test "$host_cpu" = ia64; then
8021 # AIX 5 now supports IA64 processor
8022 lt_prog_compiler_static='-Bstatic'
8023 fi
8024 ;;
8025
8026 amigaos*)
8027 case $host_cpu in
8028 powerpc)
8029 # see comment about AmigaOS4 .so support
8030 lt_prog_compiler_pic='-fPIC'
8031 ;;
8032 m68k)
8033 # FIXME: we need at least 68020 code to build shared libraries, but
8034 # adding the `-m68020' flag to GCC prevents building anything better,
8035 # like `-m68040'.
8036 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8037 ;;
8038 esac
8039 ;;
8040
8041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8042 # PIC is the default for these OSes.
8043 ;;
8044
8045 mingw* | cygwin* | pw32* | os2* | cegcc*)
8046 # This hack is so that the source file can tell whether it is being
8047 # built for inclusion in a dll (and should export symbols for example).
8048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8049 # (--disable-auto-import) libraries
8050 lt_prog_compiler_pic='-DDLL_EXPORT'
8051 ;;
8052
8053 darwin* | rhapsody*)
8054 # PIC is the default on this platform
8055 # Common symbols not allowed in MH_DYLIB files
8056 lt_prog_compiler_pic='-fno-common'
8057 ;;
8058
8059 haiku*)
8060 # PIC is the default for Haiku.
8061 # The "-static" flag exists, but is broken.
8062 lt_prog_compiler_static=
8063 ;;
8064
8065 hpux*)
8066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8068 # sets the default TLS model and affects inlining.
8069 case $host_cpu in
8070 hppa*64*)
8071 # +Z the default
8072 ;;
8073 *)
8074 lt_prog_compiler_pic='-fPIC'
8075 ;;
8076 esac
8077 ;;
8078
8079 interix[3-9]*)
8080 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8081 # Instead, we relocate shared libraries at runtime.
8082 ;;
8083
8084 msdosdjgpp*)
8085 # Just because we use GCC doesn't mean we suddenly get shared libraries
8086 # on systems that don't support them.
8087 lt_prog_compiler_can_build_shared=no
8088 enable_shared=no
8089 ;;
8090
8091 *nto* | *qnx*)
8092 # QNX uses GNU C++, but need to define -shared option too, otherwise
8093 # it will coredump.
8094 lt_prog_compiler_pic='-fPIC -shared'
8095 ;;
8096
8097 sysv4*MP*)
8098 if test -d /usr/nec; then
8099 lt_prog_compiler_pic=-Kconform_pic
8100 fi
8101 ;;
8102
8103 *)
8104 lt_prog_compiler_pic='-fPIC'
8105 ;;
8106 esac
8107
8108 case $cc_basename in
8109 nvcc*) # Cuda Compiler Driver 2.2
8110 lt_prog_compiler_wl='-Xlinker '
8111 lt_prog_compiler_pic='-Xcompiler -fPIC'
8112 ;;
8113 esac
8114 else
8115 # PORTME Check for flag to pass linker flags through the system compiler.
8116 case $host_os in
8117 aix*)
8118 lt_prog_compiler_wl='-Wl,'
8119 if test "$host_cpu" = ia64; then
8120 # AIX 5 now supports IA64 processor
8121 lt_prog_compiler_static='-Bstatic'
8122 else
8123 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8124 fi
8125 ;;
8126
8127 mingw* | cygwin* | pw32* | os2* | cegcc*)
8128 # This hack is so that the source file can tell whether it is being
8129 # built for inclusion in a dll (and should export symbols for example).
8130 lt_prog_compiler_pic='-DDLL_EXPORT'
8131 ;;
8132
8133 hpux9* | hpux10* | hpux11*)
8134 lt_prog_compiler_wl='-Wl,'
8135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8136 # not for PA HP-UX.
8137 case $host_cpu in
8138 hppa*64*|ia64*)
8139 # +Z the default
8140 ;;
8141 *)
8142 lt_prog_compiler_pic='+Z'
8143 ;;
8144 esac
8145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8146 lt_prog_compiler_static='${wl}-a ${wl}archive'
8147 ;;
8148
8149 irix5* | irix6* | nonstopux*)
8150 lt_prog_compiler_wl='-Wl,'
8151 # PIC (with -KPIC) is the default.
8152 lt_prog_compiler_static='-non_shared'
8153 ;;
8154
8155 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8156 case $cc_basename in
8157 # old Intel for x86_64 which still supported -KPIC.
8158 ecc*)
8159 lt_prog_compiler_wl='-Wl,'
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-static'
8162 ;;
8163 # icc used to be incompatible with GCC.
8164 # ICC 10 doesn't accept -KPIC any more.
8165 icc* | ifort*)
8166 lt_prog_compiler_wl='-Wl,'
8167 lt_prog_compiler_pic='-fPIC'
8168 lt_prog_compiler_static='-static'
8169 ;;
8170 # Lahey Fortran 8.1.
8171 lf95*)
8172 lt_prog_compiler_wl='-Wl,'
8173 lt_prog_compiler_pic='--shared'
8174 lt_prog_compiler_static='--static'
8175 ;;
8176 nagfor*)
8177 # NAG Fortran compiler
8178 lt_prog_compiler_wl='-Wl,-Wl,,'
8179 lt_prog_compiler_pic='-PIC'
8180 lt_prog_compiler_static='-Bstatic'
8181 ;;
8182 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8183 # Portland Group compilers (*not* the Pentium gcc compiler,
8184 # which looks to be a dead project)
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-fpic'
8187 lt_prog_compiler_static='-Bstatic'
8188 ;;
8189 ccc*)
8190 lt_prog_compiler_wl='-Wl,'
8191 # All Alpha code is PIC.
8192 lt_prog_compiler_static='-non_shared'
8193 ;;
8194 xl* | bgxl* | bgf* | mpixl*)
8195 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-qpic'
8198 lt_prog_compiler_static='-qstaticlink'
8199 ;;
8200 *)
8201 case `$CC -V 2>&1 | sed 5q` in
8202 *Sun\ F* | *Sun*Fortran*)
8203 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8204 lt_prog_compiler_pic='-KPIC'
8205 lt_prog_compiler_static='-Bstatic'
8206 lt_prog_compiler_wl=''
8207 ;;
8208 *Sun\ C*)
8209 # Sun C 5.9
8210 lt_prog_compiler_pic='-KPIC'
8211 lt_prog_compiler_static='-Bstatic'
8212 lt_prog_compiler_wl='-Wl,'
8213 ;;
8214 esac
8215 ;;
8216 esac
8217 ;;
8218
8219 newsos6)
8220 lt_prog_compiler_pic='-KPIC'
8221 lt_prog_compiler_static='-Bstatic'
8222 ;;
8223
8224 *nto* | *qnx*)
8225 # QNX uses GNU C++, but need to define -shared option too, otherwise
8226 # it will coredump.
8227 lt_prog_compiler_pic='-fPIC -shared'
8228 ;;
8229
8230 osf3* | osf4* | osf5*)
8231 lt_prog_compiler_wl='-Wl,'
8232 # All OSF/1 code is PIC.
8233 lt_prog_compiler_static='-non_shared'
8234 ;;
8235
8236 rdos*)
8237 lt_prog_compiler_static='-non_shared'
8238 ;;
8239
8240 solaris*)
8241 lt_prog_compiler_pic='-KPIC'
8242 lt_prog_compiler_static='-Bstatic'
8243 case $cc_basename in
8244 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8245 lt_prog_compiler_wl='-Qoption ld ';;
8246 *)
8247 lt_prog_compiler_wl='-Wl,';;
8248 esac
8249 ;;
8250
8251 sunos4*)
8252 lt_prog_compiler_wl='-Qoption ld '
8253 lt_prog_compiler_pic='-PIC'
8254 lt_prog_compiler_static='-Bstatic'
8255 ;;
8256
8257 sysv4 | sysv4.2uw2* | sysv4.3*)
8258 lt_prog_compiler_wl='-Wl,'
8259 lt_prog_compiler_pic='-KPIC'
8260 lt_prog_compiler_static='-Bstatic'
8261 ;;
8262
8263 sysv4*MP*)
8264 if test -d /usr/nec ;then
8265 lt_prog_compiler_pic='-Kconform_pic'
8266 lt_prog_compiler_static='-Bstatic'
8267 fi
8268 ;;
8269
8270 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_pic='-KPIC'
8273 lt_prog_compiler_static='-Bstatic'
8274 ;;
8275
8276 unicos*)
8277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_can_build_shared=no
8279 ;;
8280
8281 uts4*)
8282 lt_prog_compiler_pic='-pic'
8283 lt_prog_compiler_static='-Bstatic'
8284 ;;
8285
8286 *)
8287 lt_prog_compiler_can_build_shared=no
8288 ;;
8289 esac
8290 fi
8291
8292case $host_os in
8293 # For platforms which do not support PIC, -DPIC is meaningless:
8294 *djgpp*)
8295 lt_prog_compiler_pic=
8296 ;;
8297 *)
8298 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8299 ;;
8300esac
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8303$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8304if ${lt_cv_prog_compiler_pic+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306else
8307 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8310$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8311lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8312
8313#
8314# Check to make sure the PIC flag actually works.
8315#
8316if test -n "$lt_prog_compiler_pic"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8318$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8319if ${lt_cv_prog_compiler_pic_works+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321else
8322 lt_cv_prog_compiler_pic_works=no
8323 ac_outfile=conftest.$ac_objext
8324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8325 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 # The option is referenced via a variable to avoid confusing sed.
8331 lt_compile=`echo "$ac_compile" | $SED \
8332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8334 -e 's:$: $lt_compiler_flag:'`
8335 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8336 (eval "$lt_compile" 2>conftest.err)
8337 ac_status=$?
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 if (exit $ac_status) && test -s "$ac_outfile"; then
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings other than the usual output.
8343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8345 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8346 lt_cv_prog_compiler_pic_works=yes
8347 fi
8348 fi
8349 $RM conftest*
8350
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8353$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8354
8355if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8356 case $lt_prog_compiler_pic in
8357 "" | " "*) ;;
8358 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8359 esac
8360else
8361 lt_prog_compiler_pic=
8362 lt_prog_compiler_can_build_shared=no
8363fi
8364
8365fi
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377#
8378# Check to make sure the static flag actually works.
8379#
8380wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8382$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8383if ${lt_cv_prog_compiler_static_works+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385else
8386 lt_cv_prog_compiler_static_works=no
8387 save_LDFLAGS="$LDFLAGS"
8388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8391 # The linker can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 if test -s conftest.err; then
8394 # Append any errors to the config.log.
8395 cat conftest.err 1>&5
8396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398 if diff conftest.exp conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_static_works=yes
8400 fi
8401 else
8402 lt_cv_prog_compiler_static_works=yes
8403 fi
8404 fi
8405 $RM -r conftest*
8406 LDFLAGS="$save_LDFLAGS"
8407
8408fi
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8410$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8411
8412if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8413 :
8414else
8415 lt_prog_compiler_static=
8416fi
8417
8418
8419
8420
8421
8422
8423
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8426if ${lt_cv_prog_compiler_c_o+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428else
8429 lt_cv_prog_compiler_c_o=no
8430 $RM -r conftest 2>/dev/null
8431 mkdir conftest
8432 cd conftest
8433 mkdir out
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8435
8436 lt_compiler_flag="-o out/conftest2.$ac_objext"
8437 # Insert the option either (1) after the last *FLAGS variable, or
8438 # (2) before a word containing "conftest.", or (3) at the end.
8439 # Note that $ac_compile itself does not contain backslashes and begins
8440 # with a dollar sign (not a hyphen), so the echo should work correctly.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8446 (eval "$lt_compile" 2>out/conftest.err)
8447 ac_status=$?
8448 cat out/conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8451 then
8452 # The compiler can only warn and ignore the option if not recognized
8453 # So say no if there are warnings
8454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8457 lt_cv_prog_compiler_c_o=yes
8458 fi
8459 fi
8460 chmod u+w . 2>&5
8461 $RM conftest*
8462 # SGI C++ compiler will create directory out/ii_files/ for
8463 # template instantiation
8464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8465 $RM out/* && rmdir out
8466 cd ..
8467 $RM -r conftest
8468 $RM conftest*
8469
8470fi
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8472$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8473
8474
8475
8476
8477
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8480$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8481if ${lt_cv_prog_compiler_c_o+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 lt_cv_prog_compiler_c_o=no
8485 $RM -r conftest 2>/dev/null
8486 mkdir conftest
8487 cd conftest
8488 mkdir out
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8490
8491 lt_compiler_flag="-o out/conftest2.$ac_objext"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8501 (eval "$lt_compile" 2>out/conftest.err)
8502 ac_status=$?
8503 cat out/conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8506 then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings
8509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_c_o=yes
8513 fi
8514 fi
8515 chmod u+w . 2>&5
8516 $RM conftest*
8517 # SGI C++ compiler will create directory out/ii_files/ for
8518 # template instantiation
8519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8520 $RM out/* && rmdir out
8521 cd ..
8522 $RM -r conftest
8523 $RM conftest*
8524
8525fi
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8527$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8528
8529
8530
8531
8532hard_links="nottested"
8533if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8534 # do not overwrite the value of need_locks provided by the user
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8536$as_echo_n "checking if we can lock with hard links... " >&6; }
8537 hard_links=yes
8538 $RM conftest*
8539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8540 touch conftest.a
8541 ln conftest.a conftest.b 2>&5 || hard_links=no
8542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8544$as_echo "$hard_links" >&6; }
8545 if test "$hard_links" = no; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8547$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8548 need_locks=warn
8549 fi
8550else
8551 need_locks=no
8552fi
8553
8554
8555
8556
8557
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8560$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8561
8562 runpath_var=
8563 allow_undefined_flag=
8564 always_export_symbols=no
8565 archive_cmds=
8566 archive_expsym_cmds=
8567 compiler_needs_object=no
8568 enable_shared_with_static_runtimes=no
8569 export_dynamic_flag_spec=
8570 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8571 hardcode_automatic=no
8572 hardcode_direct=no
8573 hardcode_direct_absolute=no
8574 hardcode_libdir_flag_spec=
8575 hardcode_libdir_flag_spec_ld=
8576 hardcode_libdir_separator=
8577 hardcode_minus_L=no
8578 hardcode_shlibpath_var=unsupported
8579 inherit_rpath=no
8580 link_all_deplibs=unknown
8581 module_cmds=
8582 module_expsym_cmds=
8583 old_archive_from_new_cmds=
8584 old_archive_from_expsyms_cmds=
8585 thread_safe_flag_spec=
8586 whole_archive_flag_spec=
8587 # include_expsyms should be a list of space-separated symbols to be *always*
8588 # included in the symbol list
8589 include_expsyms=
8590 # exclude_expsyms can be an extended regexp of symbols to exclude
8591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8593 # as well as any symbol that contains `d'.
8594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8596 # platforms (ab)use it in PIC code, but their linkers get confused if
8597 # the symbol is explicitly referenced. Since portable code cannot
8598 # rely on this symbol name, it's probably fine to never include it in
8599 # preloaded symbol tables.
8600 # Exclude shared library initialization/finalization symbols.
8601 extract_expsyms_cmds=
8602
8603 case $host_os in
8604 cygwin* | mingw* | pw32* | cegcc*)
8605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8606 # When not using gcc, we currently assume that we are using
8607 # Microsoft Visual C++.
8608 if test "$GCC" != yes; then
8609 with_gnu_ld=no
8610 fi
8611 ;;
8612 interix*)
8613 # we just hope/assume this is gcc and not c89 (= MSVC++)
8614 with_gnu_ld=yes
8615 ;;
8616 openbsd*)
8617 with_gnu_ld=no
8618 ;;
8619 linux* | k*bsd*-gnu | gnu*)
8620 link_all_deplibs=no
8621 ;;
8622 esac
8623
8624 ld_shlibs=yes
8625
8626 # On some targets, GNU ld is compatible enough with the native linker
8627 # that we're better off using the native interface for both.
8628 lt_use_gnu_ld_interface=no
8629 if test "$with_gnu_ld" = yes; then
8630 case $host_os in
8631 aix*)
8632 # The AIX port of GNU ld has always aspired to compatibility
8633 # with the native linker. However, as the warning in the GNU ld
8634 # block says, versions before 2.19.5* couldn't really create working
8635 # shared libraries, regardless of the interface used.
8636 case `$LD -v 2>&1` in
8637 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8638 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8639 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8640 *)
8641 lt_use_gnu_ld_interface=yes
8642 ;;
8643 esac
8644 ;;
8645 *)
8646 lt_use_gnu_ld_interface=yes
8647 ;;
8648 esac
8649 fi
8650
8651 if test "$lt_use_gnu_ld_interface" = yes; then
8652 # If archive_cmds runs LD, not CC, wlarc should be empty
8653 wlarc='${wl}'
8654
8655 # Set some defaults for GNU ld with shared library support. These
8656 # are reset later if shared libraries are not supported. Putting them
8657 # here allows them to be overridden if necessary.
8658 runpath_var=LD_RUN_PATH
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660 export_dynamic_flag_spec='${wl}--export-dynamic'
8661 # ancient GNU ld didn't support --whole-archive et. al.
8662 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8663 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8664 else
8665 whole_archive_flag_spec=
8666 fi
8667 supports_anon_versioning=no
8668 case `$LD -v 2>&1` in
8669 *GNU\ gold*) supports_anon_versioning=yes ;;
8670 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8673 *\ 2.11.*) ;; # other 2.11 versions
8674 *) supports_anon_versioning=yes ;;
8675 esac
8676
8677 # See if GNU ld supports shared libraries.
8678 case $host_os in
8679 aix[3-9]*)
8680 # On AIX/PPC, the GNU linker is very broken
8681 if test "$host_cpu" != ia64; then
8682 ld_shlibs=no
8683 cat <<_LT_EOF 1>&2
8684
8685*** Warning: the GNU linker, at least up to release 2.19, is reported
8686*** to be unable to reliably create shared libraries on AIX.
8687*** Therefore, libtool is disabling shared libraries support. If you
8688*** really care for shared libraries, you may want to install binutils
8689*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8690*** You will then need to restart the configuration process.
8691
8692_LT_EOF
8693 fi
8694 ;;
8695
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds=''
8702 ;;
8703 m68k)
8704 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)'
8705 hardcode_libdir_flag_spec='-L$libdir'
8706 hardcode_minus_L=yes
8707 ;;
8708 esac
8709 ;;
8710
8711 beos*)
8712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713 allow_undefined_flag=unsupported
8714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8715 # support --undefined. This deserves some investigation. FIXME
8716 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 else
8718 ld_shlibs=no
8719 fi
8720 ;;
8721
8722 cygwin* | mingw* | pw32* | cegcc*)
8723 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8724 # as there is no search path for DLLs.
8725 hardcode_libdir_flag_spec='-L$libdir'
8726 export_dynamic_flag_spec='${wl}--export-all-symbols'
8727 allow_undefined_flag=unsupported
8728 always_export_symbols=no
8729 enable_shared_with_static_runtimes=yes
8730 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'
8731 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8732
8733 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8735 # If the export-symbols file already is a .def file (1st line
8736 # is EXPORTS), use it as is; otherwise, prepend...
8737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8738 cp $export_symbols $output_objdir/$soname.def;
8739 else
8740 echo EXPORTS > $output_objdir/$soname.def;
8741 cat $export_symbols >> $output_objdir/$soname.def;
8742 fi~
8743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8744 else
8745 ld_shlibs=no
8746 fi
8747 ;;
8748
8749 haiku*)
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 link_all_deplibs=yes
8752 ;;
8753
8754 interix[3-9]*)
8755 hardcode_direct=no
8756 hardcode_shlibpath_var=no
8757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8758 export_dynamic_flag_spec='${wl}-E'
8759 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8760 # Instead, shared libraries are loaded at an image base (0x10000000 by
8761 # default) and relocated if they conflict, which is a slow very memory
8762 # consuming and fragmenting process. To avoid this, we pick a random,
8763 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8764 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8766 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'
8767 ;;
8768
8769 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8770 tmp_diet=no
8771 if test "$host_os" = linux-dietlibc; then
8772 case $cc_basename in
8773 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8774 esac
8775 fi
8776 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8777 && test "$tmp_diet" = no
8778 then
8779 tmp_addflag=' $pic_flag'
8780 tmp_sharedflag='-shared'
8781 case $cc_basename,$host_cpu in
8782 pgcc*) # Portland Group C compiler
8783 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'
8784 tmp_addflag=' $pic_flag'
8785 ;;
8786 pgf77* | pgf90* | pgf95* | pgfortran*)
8787 # Portland Group f77 and f90 compilers
8788 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'
8789 tmp_addflag=' $pic_flag -Mnomain' ;;
8790 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8791 tmp_addflag=' -i_dynamic' ;;
8792 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8793 tmp_addflag=' -i_dynamic -nofor_main' ;;
8794 ifc* | ifort*) # Intel Fortran compiler
8795 tmp_addflag=' -nofor_main' ;;
8796 lf95*) # Lahey Fortran 8.1
8797 whole_archive_flag_spec=
8798 tmp_sharedflag='--shared' ;;
8799 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8800 tmp_sharedflag='-qmkshrobj'
8801 tmp_addflag= ;;
8802 nvcc*) # Cuda Compiler Driver 2.2
8803 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'
8804 compiler_needs_object=yes
8805 ;;
8806 esac
8807 case `$CC -V 2>&1 | sed 5q` in
8808 *Sun\ C*) # Sun C 5.9
8809 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'
8810 compiler_needs_object=yes
8811 tmp_sharedflag='-G' ;;
8812 *Sun\ F*) # Sun Fortran 8.3
8813 tmp_sharedflag='-G' ;;
8814 esac
8815 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816
8817 if test "x$supports_anon_versioning" = xyes; then
8818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8820 echo "local: *; };" >> $output_objdir/$libname.ver~
8821 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8822 fi
8823
8824 case $cc_basename in
8825 xlf* | bgf* | bgxlf* | mpixlf*)
8826 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8827 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8828 hardcode_libdir_flag_spec=
8829 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8830 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8831 if test "x$supports_anon_versioning" = xyes; then
8832 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8833 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8834 echo "local: *; };" >> $output_objdir/$libname.ver~
8835 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8836 fi
8837 ;;
8838 esac
8839 else
8840 ld_shlibs=no
8841 fi
8842 ;;
8843
8844 netbsd* | netbsdelf*-gnu)
8845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8846 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8847 wlarc=
8848 else
8849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851 fi
8852 ;;
8853
8854 solaris*)
8855 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8856 ld_shlibs=no
8857 cat <<_LT_EOF 1>&2
8858
8859*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8860*** create shared libraries on Solaris systems. Therefore, libtool
8861*** is disabling shared libraries support. We urge you to upgrade GNU
8862*** binutils to release 2.9.1 or newer. Another option is to modify
8863*** your PATH or compiler configuration so that the native linker is
8864*** used, and then restart.
8865
8866_LT_EOF
8867 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8870 else
8871 ld_shlibs=no
8872 fi
8873 ;;
8874
8875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8876 case `$LD -v 2>&1` in
8877 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8878 ld_shlibs=no
8879 cat <<_LT_EOF 1>&2
8880
8881*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8882*** reliably create shared libraries on SCO systems. Therefore, libtool
8883*** is disabling shared libraries support. We urge you to upgrade GNU
8884*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8885*** your PATH or compiler configuration so that the native linker is
8886*** used, and then restart.
8887
8888_LT_EOF
8889 ;;
8890 *)
8891 # For security reasons, it is highly recommended that you always
8892 # use absolute paths for naming shared libraries, and exclude the
8893 # DT_RUNPATH tag from executables and libraries. But doing so
8894 # requires that you compile everything twice, which is a pain.
8895 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903 esac
8904 ;;
8905
8906 sunos4*)
8907 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8908 wlarc=
8909 hardcode_direct=yes
8910 hardcode_shlibpath_var=no
8911 ;;
8912
8913 *)
8914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8917 else
8918 ld_shlibs=no
8919 fi
8920 ;;
8921 esac
8922
8923 if test "$ld_shlibs" = no; then
8924 runpath_var=
8925 hardcode_libdir_flag_spec=
8926 export_dynamic_flag_spec=
8927 whole_archive_flag_spec=
8928 fi
8929 else
8930 # PORTME fill in a description of your system's linker (not GNU ld)
8931 case $host_os in
8932 aix3*)
8933 allow_undefined_flag=unsupported
8934 always_export_symbols=yes
8935 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'
8936 # Note: this linker hardcodes the directories in LIBPATH if there
8937 # are no directories specified by -L.
8938 hardcode_minus_L=yes
8939 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8940 # Neither direct hardcoding nor static linking is supported with a
8941 # broken collect2.
8942 hardcode_direct=unsupported
8943 fi
8944 ;;
8945
8946 aix[4-9]*)
8947 if test "$host_cpu" = ia64; then
8948 # On IA64, the linker does run time linking by default, so we don't
8949 # have to do anything special.
8950 aix_use_runtimelinking=no
8951 exp_sym_flag='-Bexport'
8952 no_entry_flag=""
8953 else
8954 # If we're using GNU nm, then we don't want the "-C" option.
8955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8956 # Also, AIX nm treats weak defined symbols like other global
8957 # defined symbols, whereas GNU nm marks them as "W".
8958 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8959 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'
8960 else
8961 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'
8962 fi
8963 aix_use_runtimelinking=no
8964
8965 # Test if we are trying to use run time linking or normal
8966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8967 # need to do runtime linking.
8968 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8969 for ld_flag in $LDFLAGS; do
8970 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8971 aix_use_runtimelinking=yes
8972 break
8973 fi
8974 done
8975 ;;
8976 esac
8977
8978 exp_sym_flag='-bexport'
8979 no_entry_flag='-bnoentry'
8980 fi
8981
8982 # When large executables or shared objects are built, AIX ld can
8983 # have problems creating the table of contents. If linking a library
8984 # or program results in "error TOC overflow" add -mminimal-toc to
8985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8987
8988 archive_cmds=''
8989 hardcode_direct=yes
8990 hardcode_direct_absolute=yes
8991 hardcode_libdir_separator=':'
8992 link_all_deplibs=yes
8993 file_list_spec='${wl}-f,'
8994
8995 if test "$GCC" = yes; then
8996 case $host_os in aix4.[012]|aix4.[012].*)
8997 # We only want to do this on AIX 4.2 and lower, the check
8998 # below for broken collect2 doesn't work under 4.3+
8999 collect2name=`${CC} -print-prog-name=collect2`
9000 if test -f "$collect2name" &&
9001 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9002 then
9003 # We have reworked collect2
9004 :
9005 else
9006 # We have old collect2
9007 hardcode_direct=unsupported
9008 # It fails to find uninstalled libraries when the uninstalled
9009 # path is not listed in the libpath. Setting hardcode_minus_L
9010 # to unsupported forces relinking
9011 hardcode_minus_L=yes
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_libdir_separator=
9014 fi
9015 ;;
9016 esac
9017 shared_flag='-shared'
9018 if test "$aix_use_runtimelinking" = yes; then
9019 shared_flag="$shared_flag "'${wl}-G'
9020 fi
9021 link_all_deplibs=no
9022 else
9023 # not using gcc
9024 if test "$host_cpu" = ia64; then
9025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9026 # chokes on -Wl,-G. The following line is correct:
9027 shared_flag='-G'
9028 else
9029 if test "$aix_use_runtimelinking" = yes; then
9030 shared_flag='${wl}-G'
9031 else
9032 shared_flag='${wl}-bM:SRE'
9033 fi
9034 fi
9035 fi
9036
9037 export_dynamic_flag_spec='${wl}-bexpall'
9038 # It seems that -bexpall does not export symbols beginning with
9039 # underscore (_), so it is better to generate a list of symbols to export.
9040 always_export_symbols=yes
9041 if test "$aix_use_runtimelinking" = yes; then
9042 # Warning - without using the other runtime loading flags (-brtl),
9043 # -berok will link without error, but may produce a broken library.
9044 allow_undefined_flag='-berok'
9045 # Determine the default libpath from the value encoded in an
9046 # empty executable.
9047 if test "${lt_cv_aix_libpath+set}" = set; then
9048 aix_libpath=$lt_cv_aix_libpath
9049else
9050 if ${lt_cv_aix_libpath_+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052else
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054/* end confdefs.h. */
9055
9056int
9057main ()
9058{
9059
9060 ;
9061 return 0;
9062}
9063_ACEOF
9064if ac_fn_c_try_link "$LINENO"; then :
9065
9066 lt_aix_libpath_sed='
9067 /Import File Strings/,/^$/ {
9068 /^0/ {
9069 s/^0 *\([^ ]*\) *$/\1/
9070 p
9071 }
9072 }'
9073 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9074 # Check for a 64-bit object if we didn't find anything.
9075 if test -z "$lt_cv_aix_libpath_"; then
9076 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9077 fi
9078fi
9079rm -f core conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 if test -z "$lt_cv_aix_libpath_"; then
9082 lt_cv_aix_libpath_="/usr/lib:/lib"
9083 fi
9084
9085fi
9086
9087 aix_libpath=$lt_cv_aix_libpath_
9088fi
9089
9090 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9091 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"
9092 else
9093 if test "$host_cpu" = ia64; then
9094 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9095 allow_undefined_flag="-z nodefs"
9096 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"
9097 else
9098 # Determine the default libpath from the value encoded in an
9099 # empty executable.
9100 if test "${lt_cv_aix_libpath+set}" = set; then
9101 aix_libpath=$lt_cv_aix_libpath
9102else
9103 if ${lt_cv_aix_libpath_+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107/* end confdefs.h. */
9108
9109int
9110main ()
9111{
9112
9113 ;
9114 return 0;
9115}
9116_ACEOF
9117if ac_fn_c_try_link "$LINENO"; then :
9118
9119 lt_aix_libpath_sed='
9120 /Import File Strings/,/^$/ {
9121 /^0/ {
9122 s/^0 *\([^ ]*\) *$/\1/
9123 p
9124 }
9125 }'
9126 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9127 # Check for a 64-bit object if we didn't find anything.
9128 if test -z "$lt_cv_aix_libpath_"; then
9129 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130 fi
9131fi
9132rm -f core conftest.err conftest.$ac_objext \
9133 conftest$ac_exeext conftest.$ac_ext
9134 if test -z "$lt_cv_aix_libpath_"; then
9135 lt_cv_aix_libpath_="/usr/lib:/lib"
9136 fi
9137
9138fi
9139
9140 aix_libpath=$lt_cv_aix_libpath_
9141fi
9142
9143 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9144 # Warning - without using the other run time loading flags,
9145 # -berok will link without error, but may produce a broken library.
9146 no_undefined_flag=' ${wl}-bernotok'
9147 allow_undefined_flag=' ${wl}-berok'
9148 if test "$with_gnu_ld" = yes; then
9149 # We only use this code for GNU lds that support --whole-archive.
9150 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9151 else
9152 # Exported symbols can be pulled into shared objects from archives
9153 whole_archive_flag_spec='$convenience'
9154 fi
9155 archive_cmds_need_lc=yes
9156 # This is similar to how AIX traditionally builds its shared libraries.
9157 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'
9158 fi
9159 fi
9160 ;;
9161
9162 amigaos*)
9163 case $host_cpu in
9164 powerpc)
9165 # see comment about AmigaOS4 .so support
9166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167 archive_expsym_cmds=''
9168 ;;
9169 m68k)
9170 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)'
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_minus_L=yes
9173 ;;
9174 esac
9175 ;;
9176
9177 bsdi[45]*)
9178 export_dynamic_flag_spec=-rdynamic
9179 ;;
9180
9181 cygwin* | mingw* | pw32* | cegcc*)
9182 # When not using gcc, we currently assume that we are using
9183 # Microsoft Visual C++.
9184 # hardcode_libdir_flag_spec is actually meaningless, as there is
9185 # no search path for DLLs.
9186 case $cc_basename in
9187 cl*)
9188 # Native MSVC
9189 hardcode_libdir_flag_spec=' '
9190 allow_undefined_flag=unsupported
9191 always_export_symbols=yes
9192 file_list_spec='@'
9193 # Tell ltmain to make .lib files, not .a files.
9194 libext=lib
9195 # Tell ltmain to make .dll files, not .so files.
9196 shrext_cmds=".dll"
9197 # FIXME: Setting linknames here is a bad hack.
9198 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9199 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9200 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9201 else
9202 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9203 fi~
9204 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9205 linknames='
9206 # The linker will not automatically build a static lib if we build a DLL.
9207 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9208 enable_shared_with_static_runtimes=yes
9209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9210 # Don't use ranlib
9211 old_postinstall_cmds='chmod 644 $oldlib'
9212 postlink_cmds='lt_outputfile="@OUTPUT@"~
9213 lt_tool_outputfile="@TOOL_OUTPUT@"~
9214 case $lt_outputfile in
9215 *.exe|*.EXE) ;;
9216 *)
9217 lt_outputfile="$lt_outputfile.exe"
9218 lt_tool_outputfile="$lt_tool_outputfile.exe"
9219 ;;
9220 esac~
9221 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9222 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9223 $RM "$lt_outputfile.manifest";
9224 fi'
9225 ;;
9226 *)
9227 # Assume MSVC wrapper
9228 hardcode_libdir_flag_spec=' '
9229 allow_undefined_flag=unsupported
9230 # Tell ltmain to make .lib files, not .a files.
9231 libext=lib
9232 # Tell ltmain to make .dll files, not .so files.
9233 shrext_cmds=".dll"
9234 # FIXME: Setting linknames here is a bad hack.
9235 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9236 # The linker will automatically build a .lib file if we build a DLL.
9237 old_archive_from_new_cmds='true'
9238 # FIXME: Should let the user specify the lib program.
9239 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9240 enable_shared_with_static_runtimes=yes
9241 ;;
9242 esac
9243 ;;
9244
9245 darwin* | rhapsody*)
9246
9247
9248 archive_cmds_need_lc=no
9249 hardcode_direct=no
9250 hardcode_automatic=yes
9251 hardcode_shlibpath_var=unsupported
9252 if test "$lt_cv_ld_force_load" = "yes"; then
9253 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\"`'
9254 else
9255 whole_archive_flag_spec=''
9256 fi
9257 link_all_deplibs=yes
9258 allow_undefined_flag="$_lt_dar_allow_undefined"
9259 case $cc_basename in
9260 ifort*) _lt_dar_can_shared=yes ;;
9261 *) _lt_dar_can_shared=$GCC ;;
9262 esac
9263 if test "$_lt_dar_can_shared" = "yes"; then
9264 output_verbose_link_cmd=func_echo_all
9265 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9266 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9267 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}"
9268 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}"
9269
9270 else
9271 ld_shlibs=no
9272 fi
9273
9274 ;;
9275
9276 dgux*)
9277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_shlibpath_var=no
9280 ;;
9281
9282 freebsd1*)
9283 ld_shlibs=no
9284 ;;
9285
9286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9287 # support. Future versions do this automatically, but an explicit c++rt0.o
9288 # does not break anything, and helps significantly (at the cost of a little
9289 # extra space).
9290 freebsd2.2*)
9291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9292 hardcode_libdir_flag_spec='-R$libdir'
9293 hardcode_direct=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9298 freebsd2*)
9299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_direct=yes
9301 hardcode_minus_L=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9306 freebsd* | dragonfly*)
9307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9308 hardcode_libdir_flag_spec='-R$libdir'
9309 hardcode_direct=yes
9310 hardcode_shlibpath_var=no
9311 ;;
9312
9313 hpux9*)
9314 if test "$GCC" = yes; then
9315 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'
9316 else
9317 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'
9318 fi
9319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320 hardcode_libdir_separator=:
9321 hardcode_direct=yes
9322
9323 # hardcode_minus_L: Not really in the search PATH,
9324 # but as the default location of the library.
9325 hardcode_minus_L=yes
9326 export_dynamic_flag_spec='${wl}-E'
9327 ;;
9328
9329 hpux10*)
9330 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9332 else
9333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9334 fi
9335 if test "$with_gnu_ld" = no; then
9336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9337 hardcode_libdir_flag_spec_ld='+b $libdir'
9338 hardcode_libdir_separator=:
9339 hardcode_direct=yes
9340 hardcode_direct_absolute=yes
9341 export_dynamic_flag_spec='${wl}-E'
9342 # hardcode_minus_L: Not really in the search PATH,
9343 # but as the default location of the library.
9344 hardcode_minus_L=yes
9345 fi
9346 ;;
9347
9348 hpux11*)
9349 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9350 case $host_cpu in
9351 hppa*64*)
9352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 ;;
9354 ia64*)
9355 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356 ;;
9357 *)
9358 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359 ;;
9360 esac
9361 else
9362 case $host_cpu in
9363 hppa*64*)
9364 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 ;;
9366 ia64*)
9367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9368 ;;
9369 *)
9370
9371 # Older versions of the 11.00 compiler do not understand -b yet
9372 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9374$as_echo_n "checking if $CC understands -b... " >&6; }
9375if ${lt_cv_prog_compiler__b+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377else
9378 lt_cv_prog_compiler__b=no
9379 save_LDFLAGS="$LDFLAGS"
9380 LDFLAGS="$LDFLAGS -b"
9381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9383 # The linker can only warn and ignore the option if not recognized
9384 # So say no if there are warnings
9385 if test -s conftest.err; then
9386 # Append any errors to the config.log.
9387 cat conftest.err 1>&5
9388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390 if diff conftest.exp conftest.er2 >/dev/null; then
9391 lt_cv_prog_compiler__b=yes
9392 fi
9393 else
9394 lt_cv_prog_compiler__b=yes
9395 fi
9396 fi
9397 $RM -r conftest*
9398 LDFLAGS="$save_LDFLAGS"
9399
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9402$as_echo "$lt_cv_prog_compiler__b" >&6; }
9403
9404if test x"$lt_cv_prog_compiler__b" = xyes; then
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406else
9407 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9408fi
9409
9410 ;;
9411 esac
9412 fi
9413 if test "$with_gnu_ld" = no; then
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416
9417 case $host_cpu in
9418 hppa*64*|ia64*)
9419 hardcode_direct=no
9420 hardcode_shlibpath_var=no
9421 ;;
9422 *)
9423 hardcode_direct=yes
9424 hardcode_direct_absolute=yes
9425 export_dynamic_flag_spec='${wl}-E'
9426
9427 # hardcode_minus_L: Not really in the search PATH,
9428 # but as the default location of the library.
9429 hardcode_minus_L=yes
9430 ;;
9431 esac
9432 fi
9433 ;;
9434
9435 irix5* | irix6* | nonstopux*)
9436 if test "$GCC" = yes; then
9437 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'
9438 # Try to use the -exported_symbol ld option, if it does not
9439 # work, assume that -exports_file does not work either and
9440 # implicitly export all symbols.
9441 # This should be the same for all languages, so no per-tag cache variable.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9443$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9444if ${lt_cv_irix_exported_symbol+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446else
9447 save_LDFLAGS="$LDFLAGS"
9448 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450/* end confdefs.h. */
9451int foo (void) { return 0; }
9452_ACEOF
9453if ac_fn_c_try_link "$LINENO"; then :
9454 lt_cv_irix_exported_symbol=yes
9455else
9456 lt_cv_irix_exported_symbol=no
9457fi
9458rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LDFLAGS="$save_LDFLAGS"
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9463$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9464 if test "$lt_cv_irix_exported_symbol" = yes; then
9465 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'
9466 fi
9467 else
9468 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'
9469 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'
9470 fi
9471 archive_cmds_need_lc='no'
9472 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9473 hardcode_libdir_separator=:
9474 inherit_rpath=yes
9475 link_all_deplibs=yes
9476 ;;
9477
9478 netbsd* | netbsdelf*-gnu)
9479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9481 else
9482 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9483 fi
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 hardcode_direct=yes
9486 hardcode_shlibpath_var=no
9487 ;;
9488
9489 newsos6)
9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_direct=yes
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 hardcode_libdir_separator=:
9494 hardcode_shlibpath_var=no
9495 ;;
9496
9497 *nto* | *qnx*)
9498 ;;
9499
9500 openbsd*)
9501 if test -f /usr/libexec/ld.so; then
9502 hardcode_direct=yes
9503 hardcode_shlibpath_var=no
9504 hardcode_direct_absolute=yes
9505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9506 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509 export_dynamic_flag_spec='${wl}-E'
9510 else
9511 case $host_os in
9512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_libdir_flag_spec='-R$libdir'
9515 ;;
9516 *)
9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519 ;;
9520 esac
9521 fi
9522 else
9523 ld_shlibs=no
9524 fi
9525 ;;
9526
9527 os2*)
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_minus_L=yes
9530 allow_undefined_flag=unsupported
9531 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'
9532 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9533 ;;
9534
9535 osf3*)
9536 if test "$GCC" = yes; then
9537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9538 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'
9539 else
9540 allow_undefined_flag=' -expect_unresolved \*'
9541 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'
9542 fi
9543 archive_cmds_need_lc='no'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 ;;
9547
9548 osf4* | osf5*) # as osf3* with the addition of -msym flag
9549 if test "$GCC" = yes; then
9550 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9551 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'
9552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553 else
9554 allow_undefined_flag=' -expect_unresolved \*'
9555 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'
9556 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~
9557 $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'
9558
9559 # Both c and cxx compiler support -rpath directly
9560 hardcode_libdir_flag_spec='-rpath $libdir'
9561 fi
9562 archive_cmds_need_lc='no'
9563 hardcode_libdir_separator=:
9564 ;;
9565
9566 solaris*)
9567 no_undefined_flag=' -z defs'
9568 if test "$GCC" = yes; then
9569 wlarc='${wl}'
9570 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9572 $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'
9573 else
9574 case `$CC -V 2>&1` in
9575 *"Compilers 5.0"*)
9576 wlarc=''
9577 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9580 ;;
9581 *)
9582 wlarc='${wl}'
9583 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9586 ;;
9587 esac
9588 fi
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_shlibpath_var=no
9591 case $host_os in
9592 solaris2.[0-5] | solaris2.[0-5].*) ;;
9593 *)
9594 # The compiler driver will combine and reorder linker options,
9595 # but understands `-z linker_flag'. GCC discards it without `$wl',
9596 # but is careful enough not to reorder.
9597 # Supported since Solaris 2.6 (maybe 2.5.1?)
9598 if test "$GCC" = yes; then
9599 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9600 else
9601 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9602 fi
9603 ;;
9604 esac
9605 link_all_deplibs=yes
9606 ;;
9607
9608 sunos4*)
9609 if test "x$host_vendor" = xsequent; then
9610 # Use $CC to link under sequent, because it throws in some extra .o
9611 # files that make .init and .fini sections work.
9612 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9613 else
9614 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9615 fi
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_direct=yes
9618 hardcode_minus_L=yes
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 sysv4)
9623 case $host_vendor in
9624 sni)
9625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 hardcode_direct=yes # is this really true???
9627 ;;
9628 siemens)
9629 ## LD is ld it makes a PLAMLIB
9630 ## CC just makes a GrossModule.
9631 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9632 reload_cmds='$CC -r -o $output$reload_objs'
9633 hardcode_direct=no
9634 ;;
9635 motorola)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9638 ;;
9639 esac
9640 runpath_var='LD_RUN_PATH'
9641 hardcode_shlibpath_var=no
9642 ;;
9643
9644 sysv4.3*)
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_shlibpath_var=no
9647 export_dynamic_flag_spec='-Bexport'
9648 ;;
9649
9650 sysv4*MP*)
9651 if test -d /usr/nec; then
9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_shlibpath_var=no
9654 runpath_var=LD_RUN_PATH
9655 hardcode_runpath_var=yes
9656 ld_shlibs=yes
9657 fi
9658 ;;
9659
9660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9661 no_undefined_flag='${wl}-z,text'
9662 archive_cmds_need_lc=no
9663 hardcode_shlibpath_var=no
9664 runpath_var='LD_RUN_PATH'
9665
9666 if test "$GCC" = yes; then
9667 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669 else
9670 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 fi
9673 ;;
9674
9675 sysv5* | sco3.2v5* | sco5v6*)
9676 # Note: We can NOT use -z defs as we might desire, because we do not
9677 # link with -lc, and that would cause any symbols used from libc to
9678 # always be unresolved, which means just about no library would
9679 # ever link correctly. If we're not using GNU ld we use -z text
9680 # though, which does catch some bad symbols but isn't as heavy-handed
9681 # as -z defs.
9682 no_undefined_flag='${wl}-z,text'
9683 allow_undefined_flag='${wl}-z,nodefs'
9684 archive_cmds_need_lc=no
9685 hardcode_shlibpath_var=no
9686 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9687 hardcode_libdir_separator=':'
9688 link_all_deplibs=yes
9689 export_dynamic_flag_spec='${wl}-Bexport'
9690 runpath_var='LD_RUN_PATH'
9691
9692 if test "$GCC" = yes; then
9693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 else
9696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 fi
9699 ;;
9700
9701 uts4*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_shlibpath_var=no
9705 ;;
9706
9707 *)
9708 ld_shlibs=no
9709 ;;
9710 esac
9711
9712 if test x$host_vendor = xsni; then
9713 case $host in
9714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9715 export_dynamic_flag_spec='${wl}-Blargedynsym'
9716 ;;
9717 esac
9718 fi
9719 fi
9720
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9722$as_echo "$ld_shlibs" >&6; }
9723test "$ld_shlibs" = no && can_build_shared=no
9724
9725with_gnu_ld=$with_gnu_ld
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741#
9742# Do we need to explicitly link libc?
9743#
9744case "x$archive_cmds_need_lc" in
9745x|xyes)
9746 # Assume -lc should be added
9747 archive_cmds_need_lc=yes
9748
9749 if test "$enable_shared" = yes && test "$GCC" = yes; then
9750 case $archive_cmds in
9751 *'~'*)
9752 # FIXME: we may have to deal with multi-command sequences.
9753 ;;
9754 '$CC '*)
9755 # Test whether the compiler implicitly links with -lc since on some
9756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9757 # to ld, don't add -lc before -lgcc.
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9759$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9760if ${lt_cv_archive_cmds_need_lc+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762else
9763 $RM conftest*
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765
9766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9767 (eval $ac_compile) 2>&5
9768 ac_status=$?
9769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9770 test $ac_status = 0; } 2>conftest.err; then
9771 soname=conftest
9772 lib=conftest
9773 libobjs=conftest.$ac_objext
9774 deplibs=
9775 wl=$lt_prog_compiler_wl
9776 pic_flag=$lt_prog_compiler_pic
9777 compiler_flags=-v
9778 linker_flags=-v
9779 verstring=
9780 output_objdir=.
9781 libname=conftest
9782 lt_save_allow_undefined_flag=$allow_undefined_flag
9783 allow_undefined_flag=
9784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9785 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9786 ac_status=$?
9787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788 test $ac_status = 0; }
9789 then
9790 lt_cv_archive_cmds_need_lc=no
9791 else
9792 lt_cv_archive_cmds_need_lc=yes
9793 fi
9794 allow_undefined_flag=$lt_save_allow_undefined_flag
9795 else
9796 cat conftest.err 1>&5
9797 fi
9798 $RM conftest*
9799
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9802$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9803 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9804 ;;
9805 esac
9806 fi
9807 ;;
9808esac
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9967$as_echo_n "checking dynamic linker characteristics... " >&6; }
9968
9969if test "$GCC" = yes; then
9970 case $host_os in
9971 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9972 *) lt_awk_arg="/^libraries:/" ;;
9973 esac
9974 case $host_os in
9975 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9976 *) lt_sed_strip_eq="s,=/,/,g" ;;
9977 esac
9978 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9979 case $lt_search_path_spec in
9980 *\;*)
9981 # if the path contains ";" then we assume it to be the separator
9982 # otherwise default to the standard path separator (i.e. ":") - it is
9983 # assumed that no part of a normal pathname contains ";" but that should
9984 # okay in the real world where ";" in dirpaths is itself problematic.
9985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9986 ;;
9987 *)
9988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9989 ;;
9990 esac
9991 # Ok, now we have the path, separated by spaces, we can step through it
9992 # and add multilib dir if necessary.
9993 lt_tmp_lt_search_path_spec=
9994 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9995 for lt_sys_path in $lt_search_path_spec; do
9996 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9997 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9998 else
9999 test -d "$lt_sys_path" && \
10000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10001 fi
10002 done
10003 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10004BEGIN {RS=" "; FS="/|\n";} {
10005 lt_foo="";
10006 lt_count=0;
10007 for (lt_i = NF; lt_i > 0; lt_i--) {
10008 if ($lt_i != "" && $lt_i != ".") {
10009 if ($lt_i == "..") {
10010 lt_count++;
10011 } else {
10012 if (lt_count == 0) {
10013 lt_foo="/" $lt_i lt_foo;
10014 } else {
10015 lt_count--;
10016 }
10017 }
10018 }
10019 }
10020 if (lt_foo != "") { lt_freq[lt_foo]++; }
10021 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10022}'`
10023 # AWK program above erroneously prepends '/' to C:/dos/paths
10024 # for these hosts.
10025 case $host_os in
10026 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10027 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10028 esac
10029 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10030else
10031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10032fi
10033library_names_spec=
10034libname_spec='lib$name'
10035soname_spec=
10036shrext_cmds=".so"
10037postinstall_cmds=
10038postuninstall_cmds=
10039finish_cmds=
10040finish_eval=
10041shlibpath_var=
10042shlibpath_overrides_runpath=unknown
10043version_type=none
10044dynamic_linker="$host_os ld.so"
10045sys_lib_dlsearch_path_spec="/lib /usr/lib"
10046need_lib_prefix=unknown
10047hardcode_into_libs=no
10048
10049# when you set need_version to no, make sure it does not cause -set_version
10050# flags to be left without arguments
10051need_version=unknown
10052
10053case $host_os in
10054aix3*)
10055 version_type=linux
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10057 shlibpath_var=LIBPATH
10058
10059 # AIX 3 has no versioning support, so we append a major version to the name.
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 ;;
10062
10063aix[4-9]*)
10064 version_type=linux
10065 need_lib_prefix=no
10066 need_version=no
10067 hardcode_into_libs=yes
10068 if test "$host_cpu" = ia64; then
10069 # AIX 5 supports IA64
10070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10071 shlibpath_var=LD_LIBRARY_PATH
10072 else
10073 # With GCC up to 2.95.x, collect2 would create an import file
10074 # for dependence libraries. The import file would start with
10075 # the line `#! .'. This would cause the generated library to
10076 # depend on `.', always an invalid library. This was fixed in
10077 # development snapshots of GCC prior to 3.0.
10078 case $host_os in
10079 aix4 | aix4.[01] | aix4.[01].*)
10080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10081 echo ' yes '
10082 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10083 :
10084 else
10085 can_build_shared=no
10086 fi
10087 ;;
10088 esac
10089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10090 # soname into executable. Probably we can add versioning support to
10091 # collect2, so additional links can be useful in future.
10092 if test "$aix_use_runtimelinking" = yes; then
10093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10094 # instead of lib<name>.a to let people know that these are not
10095 # typical AIX shared libraries.
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 else
10098 # We preserve .a as extension for shared libraries through AIX4.2
10099 # and later when we are not doing run time linking.
10100 library_names_spec='${libname}${release}.a $libname.a'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 fi
10103 shlibpath_var=LIBPATH
10104 fi
10105 ;;
10106
10107amigaos*)
10108 case $host_cpu in
10109 powerpc)
10110 # Since July 2007 AmigaOS4 officially supports .so libraries.
10111 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 ;;
10114 m68k)
10115 library_names_spec='$libname.ixlibrary $libname.a'
10116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10117 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'
10118 ;;
10119 esac
10120 ;;
10121
10122beos*)
10123 library_names_spec='${libname}${shared_ext}'
10124 dynamic_linker="$host_os ld.so"
10125 shlibpath_var=LIBRARY_PATH
10126 ;;
10127
10128bsdi[45]*)
10129 version_type=linux
10130 need_version=no
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10137 # the default ld.so.conf also contains /usr/contrib/lib and
10138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10139 # libtool to hard-code these into programs
10140 ;;
10141
10142cygwin* | mingw* | pw32* | cegcc*)
10143 version_type=windows
10144 shrext_cmds=".dll"
10145 need_version=no
10146 need_lib_prefix=no
10147
10148 case $GCC,$cc_basename in
10149 yes,*)
10150 # gcc
10151 library_names_spec='$libname.dll.a'
10152 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10153 postinstall_cmds='base_file=`basename \${file}`~
10154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10155 dldir=$destdir/`dirname \$dlpath`~
10156 test -d \$dldir || mkdir -p \$dldir~
10157 $install_prog $dir/$dlname \$dldir/$dlname~
10158 chmod a+x \$dldir/$dlname~
10159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10161 fi'
10162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10163 dlpath=$dir/\$dldll~
10164 $RM \$dlpath'
10165 shlibpath_overrides_runpath=yes
10166
10167 case $host_os in
10168 cygwin*)
10169 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10170 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10171
10172 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10173 ;;
10174 mingw* | cegcc*)
10175 # MinGW DLLs use traditional 'lib' prefix
10176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10177 ;;
10178 pw32*)
10179 # pw32 DLLs use 'pw' prefix rather than 'lib'
10180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10181 ;;
10182 esac
10183 dynamic_linker='Win32 ld.exe'
10184 ;;
10185
10186 *,cl*)
10187 # Native MSVC
10188 libname_spec='$name'
10189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10190 library_names_spec='${libname}.dll.lib'
10191
10192 case $build_os in
10193 mingw*)
10194 sys_lib_search_path_spec=
10195 lt_save_ifs=$IFS
10196 IFS=';'
10197 for lt_path in $LIB
10198 do
10199 IFS=$lt_save_ifs
10200 # Let DOS variable expansion print the short 8.3 style file name.
10201 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10203 done
10204 IFS=$lt_save_ifs
10205 # Convert to MSYS style.
10206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10207 ;;
10208 cygwin*)
10209 # Convert to unix form, then to dos form, then back to unix form
10210 # but this time dos style (no spaces!) so that the unix form looks
10211 # like /cygdrive/c/PROGRA~1:/cygdr...
10212 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10213 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10214 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10215 ;;
10216 *)
10217 sys_lib_search_path_spec="$LIB"
10218 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10219 # It is most probably a Windows format PATH.
10220 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10221 else
10222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10223 fi
10224 # FIXME: find the short name or the path components, as spaces are
10225 # common. (e.g. "Program Files" -> "PROGRA~1")
10226 ;;
10227 esac
10228
10229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10230 postinstall_cmds='base_file=`basename \${file}`~
10231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10232 dldir=$destdir/`dirname \$dlpath`~
10233 test -d \$dldir || mkdir -p \$dldir~
10234 $install_prog $dir/$dlname \$dldir/$dlname'
10235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10236 dlpath=$dir/\$dldll~
10237 $RM \$dlpath'
10238 shlibpath_overrides_runpath=yes
10239 dynamic_linker='Win32 link.exe'
10240 ;;
10241
10242 *)
10243 # Assume MSVC wrapper
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 dynamic_linker='Win32 ld.exe'
10246 ;;
10247 esac
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10250 ;;
10251
10252darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 ;;
10266
10267dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 ;;
10275
10276freebsd1*)
10277 dynamic_linker=no
10278 ;;
10279
10280freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[123]*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10290 fi
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10297 ;;
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10301 ;;
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2*)
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 ;;
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10316 ;;
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 esac
10322 ;;
10323
10324gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=no
10332 hardcode_into_libs=yes
10333 ;;
10334
10335haiku*)
10336 version_type=linux
10337 need_lib_prefix=no
10338 need_version=no
10339 dynamic_linker="$host_os runtime_loader"
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10345 hardcode_into_libs=yes
10346 ;;
10347
10348hpux9* | hpux10* | hpux11*)
10349 # Give a soname corresponding to the major version so that dld.sl refuses to
10350 # link against other versions.
10351 version_type=sunos
10352 need_lib_prefix=no
10353 need_version=no
10354 case $host_cpu in
10355 ia64*)
10356 shrext_cmds='.so'
10357 hardcode_into_libs=yes
10358 dynamic_linker="$host_os dld.so"
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 if test "X$HPUX_IA64_MODE" = X32; then
10364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10365 else
10366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10367 fi
10368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10369 ;;
10370 hppa*64*)
10371 shrext_cmds='.sl'
10372 hardcode_into_libs=yes
10373 dynamic_linker="$host_os dld.sl"
10374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10380 ;;
10381 *)
10382 shrext_cmds='.sl'
10383 dynamic_linker="$host_os dld.sl"
10384 shlibpath_var=SHLIB_PATH
10385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 ;;
10389 esac
10390 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10391 postinstall_cmds='chmod 555 $lib'
10392 # or fails outright, so override atomically:
10393 install_override_mode=555
10394 ;;
10395
10396interix[3-9]*)
10397 version_type=linux
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=no
10405 hardcode_into_libs=yes
10406 ;;
10407
10408irix5* | irix6* | nonstopux*)
10409 case $host_os in
10410 nonstopux*) version_type=nonstopux ;;
10411 *)
10412 if test "$lt_cv_prog_gnu_ld" = yes; then
10413 version_type=linux
10414 else
10415 version_type=irix
10416 fi ;;
10417 esac
10418 need_lib_prefix=no
10419 need_version=no
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 case $host_os in
10423 irix5* | nonstopux*)
10424 libsuff= shlibsuff=
10425 ;;
10426 *)
10427 case $LD in # libtool.m4 will add one of these switches to LD
10428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10429 libsuff= shlibsuff= libmagic=32-bit;;
10430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10431 libsuff=32 shlibsuff=N32 libmagic=N32;;
10432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10434 *) libsuff= shlibsuff= libmagic=never-match;;
10435 esac
10436 ;;
10437 esac
10438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10439 shlibpath_overrides_runpath=no
10440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10442 hardcode_into_libs=yes
10443 ;;
10444
10445# No shared lib support for Linux oldld, aout, or coff.
10446linux*oldld* | linux*aout* | linux*coff*)
10447 dynamic_linker=no
10448 ;;
10449
10450# This must be Linux ELF.
10451linux* | k*bsd*-gnu | kopensolaris*-gnu)
10452 version_type=linux
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=no
10460
10461 # Some binutils ld are patched to set DT_RUNPATH
10462 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464else
10465 lt_cv_shlibpath_overrides_runpath=no
10466 save_LDFLAGS=$LDFLAGS
10467 save_libdir=$libdir
10468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h. */
10472
10473int
10474main ()
10475{
10476
10477 ;
10478 return 0;
10479}
10480_ACEOF
10481if ac_fn_c_try_link "$LINENO"; then :
10482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10483 lt_cv_shlibpath_overrides_runpath=yes
10484fi
10485fi
10486rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LDFLAGS=$save_LDFLAGS
10489 libdir=$save_libdir
10490
10491fi
10492
10493 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10494
10495 # This implies no fast_install, which is unacceptable.
10496 # Some rework will be needed to allow for fast_install
10497 # before this can be enabled.
10498 hardcode_into_libs=yes
10499
10500 # Append ld.so.conf contents to the search path
10501 if test -f /etc/ld.so.conf; then
10502 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' ' '`
10503 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10504 fi
10505
10506 # We used to test for /lib/ld.so.1 and disable shared libraries on
10507 # powerpc, because MkLinux only supported shared libraries with the
10508 # GNU dynamic linker. Since this was broken with cross compilers,
10509 # most powerpc-linux boxes support dynamic linking these days and
10510 # people can always --disable-shared, the test was removed, and we
10511 # assume the GNU/Linux dynamic linker is in use.
10512 dynamic_linker='GNU/Linux ld.so'
10513 ;;
10514
10515netbsdelf*-gnu)
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 dynamic_linker='NetBSD ld.elf_so'
10525 ;;
10526
10527netbsd*)
10528 version_type=sunos
10529 need_lib_prefix=no
10530 need_version=no
10531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10534 dynamic_linker='NetBSD (a.out) ld.so'
10535 else
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 dynamic_linker='NetBSD ld.elf_so'
10539 fi
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10542 hardcode_into_libs=yes
10543 ;;
10544
10545newsos6)
10546 version_type=linux
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 ;;
10551
10552*nto* | *qnx*)
10553 version_type=qnx
10554 need_lib_prefix=no
10555 need_version=no
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=no
10560 hardcode_into_libs=yes
10561 dynamic_linker='ldqnx.so'
10562 ;;
10563
10564openbsd*)
10565 version_type=sunos
10566 sys_lib_dlsearch_path_spec="/usr/lib"
10567 need_lib_prefix=no
10568 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10569 case $host_os in
10570 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10571 *) need_version=no ;;
10572 esac
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10577 case $host_os in
10578 openbsd2.[89] | openbsd2.[89].*)
10579 shlibpath_overrides_runpath=no
10580 ;;
10581 *)
10582 shlibpath_overrides_runpath=yes
10583 ;;
10584 esac
10585 else
10586 shlibpath_overrides_runpath=yes
10587 fi
10588 ;;
10589
10590os2*)
10591 libname_spec='$name'
10592 shrext_cmds=".dll"
10593 need_lib_prefix=no
10594 library_names_spec='$libname${shared_ext} $libname.a'
10595 dynamic_linker='OS/2 ld.exe'
10596 shlibpath_var=LIBPATH
10597 ;;
10598
10599osf3* | osf4* | osf5*)
10600 version_type=osf
10601 need_lib_prefix=no
10602 need_version=no
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10608 ;;
10609
10610rdos*)
10611 dynamic_linker=no
10612 ;;
10613
10614solaris*)
10615 version_type=linux
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes
10622 hardcode_into_libs=yes
10623 # ldd complains unless libraries are executable
10624 postinstall_cmds='chmod +x $lib'
10625 ;;
10626
10627sunos4*)
10628 version_type=sunos
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 if test "$with_gnu_ld" = yes; then
10634 need_lib_prefix=no
10635 fi
10636 need_version=yes
10637 ;;
10638
10639sysv4 | sysv4.3*)
10640 version_type=linux
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 case $host_vendor in
10645 sni)
10646 shlibpath_overrides_runpath=no
10647 need_lib_prefix=no
10648 runpath_var=LD_RUN_PATH
10649 ;;
10650 siemens)
10651 need_lib_prefix=no
10652 ;;
10653 motorola)
10654 need_lib_prefix=no
10655 need_version=no
10656 shlibpath_overrides_runpath=no
10657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10658 ;;
10659 esac
10660 ;;
10661
10662sysv4*MP*)
10663 if test -d /usr/nec ;then
10664 version_type=linux
10665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10666 soname_spec='$libname${shared_ext}.$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 fi
10669 ;;
10670
10671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10672 version_type=freebsd-elf
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10680 if test "$with_gnu_ld" = yes; then
10681 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10682 else
10683 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10684 case $host_os in
10685 sco3.2v5*)
10686 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10687 ;;
10688 esac
10689 fi
10690 sys_lib_dlsearch_path_spec='/usr/lib'
10691 ;;
10692
10693tpf*)
10694 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10695 version_type=linux
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=no
10701 hardcode_into_libs=yes
10702 ;;
10703
10704uts4*)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 ;;
10710
10711*)
10712 dynamic_linker=no
10713 ;;
10714esac
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10716$as_echo "$dynamic_linker" >&6; }
10717test "$dynamic_linker" = no && can_build_shared=no
10718
10719variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10720if test "$GCC" = yes; then
10721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10722fi
10723
10724if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10725 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10726fi
10727if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10728 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10729fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10823$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10824hardcode_action=
10825if test -n "$hardcode_libdir_flag_spec" ||
10826 test -n "$runpath_var" ||
10827 test "X$hardcode_automatic" = "Xyes" ; then
10828
10829 # We can hardcode non-existent directories.
10830 if test "$hardcode_direct" != no &&
10831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10832 # have to relink, otherwise we might link with an installed library
10833 # when we should be linking with a yet-to-be-installed one
10834 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10835 test "$hardcode_minus_L" != no; then
10836 # Linking always hardcodes the temporary library directory.
10837 hardcode_action=relink
10838 else
10839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10840 hardcode_action=immediate
10841 fi
10842else
10843 # We cannot hardcode anything, or else we can only hardcode existing
10844 # directories.
10845 hardcode_action=unsupported
10846fi
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10848$as_echo "$hardcode_action" >&6; }
10849
10850if test "$hardcode_action" = relink ||
10851 test "$inherit_rpath" = yes; then
10852 # Fast installation is not supported
10853 enable_fast_install=no
10854elif test "$shlibpath_overrides_runpath" = yes ||
10855 test "$enable_shared" = no; then
10856 # Fast installation is not necessary
10857 enable_fast_install=needless
10858fi
10859
10860
10861
10862
10863
10864
10865 if test "x$enable_dlopen" != xyes; then
10866 enable_dlopen=unknown
10867 enable_dlopen_self=unknown
10868 enable_dlopen_self_static=unknown
10869else
10870 lt_cv_dlopen=no
10871 lt_cv_dlopen_libs=
10872
10873 case $host_os in
10874 beos*)
10875 lt_cv_dlopen="load_add_on"
10876 lt_cv_dlopen_libs=
10877 lt_cv_dlopen_self=yes
10878 ;;
10879
10880 mingw* | pw32* | cegcc*)
10881 lt_cv_dlopen="LoadLibrary"
10882 lt_cv_dlopen_libs=
10883 ;;
10884
10885 cygwin*)
10886 lt_cv_dlopen="dlopen"
10887 lt_cv_dlopen_libs=
10888 ;;
10889
10890 darwin*)
10891 # if libdl is installed we need to link against it
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10893$as_echo_n "checking for dlopen in -ldl... " >&6; }
10894if ${ac_cv_lib_dl_dlopen+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896else
10897 ac_check_lib_save_LIBS=$LIBS
10898LIBS="-ldl $LIBS"
10899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h. */
10901
10902/* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905#ifdef __cplusplus
10906extern "C"
10907#endif
10908char dlopen ();
10909int
10910main ()
10911{
10912return dlopen ();
10913 ;
10914 return 0;
10915}
10916_ACEOF
10917if ac_fn_c_try_link "$LINENO"; then :
10918 ac_cv_lib_dl_dlopen=yes
10919else
10920 ac_cv_lib_dl_dlopen=no
10921fi
10922rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924LIBS=$ac_check_lib_save_LIBS
10925fi
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10927$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10928if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930else
10931
10932 lt_cv_dlopen="dyld"
10933 lt_cv_dlopen_libs=
10934 lt_cv_dlopen_self=yes
10935
10936fi
10937
10938 ;;
10939
10940 *)
10941 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10942if test "x$ac_cv_func_shl_load" = xyes; then :
10943 lt_cv_dlopen="shl_load"
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10946$as_echo_n "checking for shl_load in -ldld... " >&6; }
10947if ${ac_cv_lib_dld_shl_load+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949else
10950 ac_check_lib_save_LIBS=$LIBS
10951LIBS="-ldld $LIBS"
10952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953/* end confdefs.h. */
10954
10955/* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958#ifdef __cplusplus
10959extern "C"
10960#endif
10961char shl_load ();
10962int
10963main ()
10964{
10965return shl_load ();
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970if ac_fn_c_try_link "$LINENO"; then :
10971 ac_cv_lib_dld_shl_load=yes
10972else
10973 ac_cv_lib_dld_shl_load=no
10974fi
10975rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977LIBS=$ac_check_lib_save_LIBS
10978fi
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10980$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10981if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10982 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10983else
10984 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10985if test "x$ac_cv_func_dlopen" = xyes; then :
10986 lt_cv_dlopen="dlopen"
10987else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10989$as_echo_n "checking for dlopen in -ldl... " >&6; }
10990if ${ac_cv_lib_dl_dlopen+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992else
10993 ac_check_lib_save_LIBS=$LIBS
10994LIBS="-ldl $LIBS"
10995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h. */
10997
10998/* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001#ifdef __cplusplus
11002extern "C"
11003#endif
11004char dlopen ();
11005int
11006main ()
11007{
11008return dlopen ();
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"; then :
11014 ac_cv_lib_dl_dlopen=yes
11015else
11016 ac_cv_lib_dl_dlopen=no
11017fi
11018rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020LIBS=$ac_check_lib_save_LIBS
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11023$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11024if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11026else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11028$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11029if ${ac_cv_lib_svld_dlopen+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031else
11032 ac_check_lib_save_LIBS=$LIBS
11033LIBS="-lsvld $LIBS"
11034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h. */
11036
11037/* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040#ifdef __cplusplus
11041extern "C"
11042#endif
11043char dlopen ();
11044int
11045main ()
11046{
11047return dlopen ();
11048 ;
11049 return 0;
11050}
11051_ACEOF
11052if ac_fn_c_try_link "$LINENO"; then :
11053 ac_cv_lib_svld_dlopen=yes
11054else
11055 ac_cv_lib_svld_dlopen=no
11056fi
11057rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059LIBS=$ac_check_lib_save_LIBS
11060fi
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11062$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11063if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11065else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11067$as_echo_n "checking for dld_link in -ldld... " >&6; }
11068if ${ac_cv_lib_dld_dld_link+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070else
11071 ac_check_lib_save_LIBS=$LIBS
11072LIBS="-ldld $LIBS"
11073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h. */
11075
11076/* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11079#ifdef __cplusplus
11080extern "C"
11081#endif
11082char dld_link ();
11083int
11084main ()
11085{
11086return dld_link ();
11087 ;
11088 return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_link "$LINENO"; then :
11092 ac_cv_lib_dld_dld_link=yes
11093else
11094 ac_cv_lib_dld_dld_link=no
11095fi
11096rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098LIBS=$ac_check_lib_save_LIBS
11099fi
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11101$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11102if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11103 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11104fi
11105
11106
11107fi
11108
11109
11110fi
11111
11112
11113fi
11114
11115
11116fi
11117
11118
11119fi
11120
11121 ;;
11122 esac
11123
11124 if test "x$lt_cv_dlopen" != xno; then
11125 enable_dlopen=yes
11126 else
11127 enable_dlopen=no
11128 fi
11129
11130 case $lt_cv_dlopen in
11131 dlopen)
11132 save_CPPFLAGS="$CPPFLAGS"
11133 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11134
11135 save_LDFLAGS="$LDFLAGS"
11136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11137
11138 save_LIBS="$LIBS"
11139 LIBS="$lt_cv_dlopen_libs $LIBS"
11140
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11142$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11143if ${lt_cv_dlopen_self+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145else
11146 if test "$cross_compiling" = yes; then :
11147 lt_cv_dlopen_self=cross
11148else
11149 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11150 lt_status=$lt_dlunknown
11151 cat > conftest.$ac_ext <<_LT_EOF
11152#line $LINENO "configure"
11153#include "confdefs.h"
11154
11155#if HAVE_DLFCN_H
11156#include <dlfcn.h>
11157#endif
11158
11159#include <stdio.h>
11160
11161#ifdef RTLD_GLOBAL
11162# define LT_DLGLOBAL RTLD_GLOBAL
11163#else
11164# ifdef DL_GLOBAL
11165# define LT_DLGLOBAL DL_GLOBAL
11166# else
11167# define LT_DLGLOBAL 0
11168# endif
11169#endif
11170
11171/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11172 find out it does not work in some platform. */
11173#ifndef LT_DLLAZY_OR_NOW
11174# ifdef RTLD_LAZY
11175# define LT_DLLAZY_OR_NOW RTLD_LAZY
11176# else
11177# ifdef DL_LAZY
11178# define LT_DLLAZY_OR_NOW DL_LAZY
11179# else
11180# ifdef RTLD_NOW
11181# define LT_DLLAZY_OR_NOW RTLD_NOW
11182# else
11183# ifdef DL_NOW
11184# define LT_DLLAZY_OR_NOW DL_NOW
11185# else
11186# define LT_DLLAZY_OR_NOW 0
11187# endif
11188# endif
11189# endif
11190# endif
11191#endif
11192
11193/* When -fvisbility=hidden is used, assume the code has been annotated
11194 correspondingly for the symbols needed. */
11195#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11196int fnord () __attribute__((visibility("default")));
11197#endif
11198
11199int fnord () { return 42; }
11200int main ()
11201{
11202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11203 int status = $lt_dlunknown;
11204
11205 if (self)
11206 {
11207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11208 else
11209 {
11210 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11211 else puts (dlerror ());
11212 }
11213 /* dlclose (self); */
11214 }
11215 else
11216 puts (dlerror ());
11217
11218 return status;
11219}
11220_LT_EOF
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11222 (eval $ac_link) 2>&5
11223 ac_status=$?
11224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11226 (./conftest; exit; ) >&5 2>/dev/null
11227 lt_status=$?
11228 case x$lt_status in
11229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11231 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11232 esac
11233 else :
11234 # compilation failed
11235 lt_cv_dlopen_self=no
11236 fi
11237fi
11238rm -fr conftest*
11239
11240
11241fi
11242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11243$as_echo "$lt_cv_dlopen_self" >&6; }
11244
11245 if test "x$lt_cv_dlopen_self" = xyes; then
11246 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11248$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11249if ${lt_cv_dlopen_self_static+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test "$cross_compiling" = yes; then :
11253 lt_cv_dlopen_self_static=cross
11254else
11255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11256 lt_status=$lt_dlunknown
11257 cat > conftest.$ac_ext <<_LT_EOF
11258#line $LINENO "configure"
11259#include "confdefs.h"
11260
11261#if HAVE_DLFCN_H
11262#include <dlfcn.h>
11263#endif
11264
11265#include <stdio.h>
11266
11267#ifdef RTLD_GLOBAL
11268# define LT_DLGLOBAL RTLD_GLOBAL
11269#else
11270# ifdef DL_GLOBAL
11271# define LT_DLGLOBAL DL_GLOBAL
11272# else
11273# define LT_DLGLOBAL 0
11274# endif
11275#endif
11276
11277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11278 find out it does not work in some platform. */
11279#ifndef LT_DLLAZY_OR_NOW
11280# ifdef RTLD_LAZY
11281# define LT_DLLAZY_OR_NOW RTLD_LAZY
11282# else
11283# ifdef DL_LAZY
11284# define LT_DLLAZY_OR_NOW DL_LAZY
11285# else
11286# ifdef RTLD_NOW
11287# define LT_DLLAZY_OR_NOW RTLD_NOW
11288# else
11289# ifdef DL_NOW
11290# define LT_DLLAZY_OR_NOW DL_NOW
11291# else
11292# define LT_DLLAZY_OR_NOW 0
11293# endif
11294# endif
11295# endif
11296# endif
11297#endif
11298
11299/* When -fvisbility=hidden is used, assume the code has been annotated
11300 correspondingly for the symbols needed. */
11301#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11302int fnord () __attribute__((visibility("default")));
11303#endif
11304
11305int fnord () { return 42; }
11306int main ()
11307{
11308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309 int status = $lt_dlunknown;
11310
11311 if (self)
11312 {
11313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11314 else
11315 {
11316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11317 else puts (dlerror ());
11318 }
11319 /* dlclose (self); */
11320 }
11321 else
11322 puts (dlerror ());
11323
11324 return status;
11325}
11326_LT_EOF
11327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11328 (eval $ac_link) 2>&5
11329 ac_status=$?
11330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11331 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11332 (./conftest; exit; ) >&5 2>/dev/null
11333 lt_status=$?
11334 case x$lt_status in
11335 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11336 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11337 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11338 esac
11339 else :
11340 # compilation failed
11341 lt_cv_dlopen_self_static=no
11342 fi
11343fi
11344rm -fr conftest*
11345
11346
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11349$as_echo "$lt_cv_dlopen_self_static" >&6; }
11350 fi
11351
11352 CPPFLAGS="$save_CPPFLAGS"
11353 LDFLAGS="$save_LDFLAGS"
11354 LIBS="$save_LIBS"
11355 ;;
11356 esac
11357
11358 case $lt_cv_dlopen_self in
11359 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11360 *) enable_dlopen_self=unknown ;;
11361 esac
11362
11363 case $lt_cv_dlopen_self_static in
11364 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11365 *) enable_dlopen_self_static=unknown ;;
11366 esac
11367fi
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385striplib=
11386old_striplib=
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11388$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11389if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11390 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11391 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393$as_echo "yes" >&6; }
11394else
11395# FIXME - insert some real tests, host_os isn't really good enough
11396 case $host_os in
11397 darwin*)
11398 if test -n "$STRIP" ; then
11399 striplib="$STRIP -x"
11400 old_striplib="$STRIP -S"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402$as_echo "yes" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
11406 fi
11407 ;;
11408 *)
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
11411 ;;
11412 esac
11413fi
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426 # Report which library types will actually be built
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11428$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11430$as_echo "$can_build_shared" >&6; }
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11433$as_echo_n "checking whether to build shared libraries... " >&6; }
11434 test "$can_build_shared" = "no" && enable_shared=no
11435
11436 # On AIX, shared libraries and static libraries use the same namespace, and
11437 # are all built from PIC.
11438 case $host_os in
11439 aix3*)
11440 test "$enable_shared" = yes && enable_static=no
11441 if test -n "$RANLIB"; then
11442 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11443 postinstall_cmds='$RANLIB $lib'
11444 fi
11445 ;;
11446
11447 aix[4-9]*)
11448 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11449 test "$enable_shared" = yes && enable_static=no
11450 fi
11451 ;;
11452 esac
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11454$as_echo "$enable_shared" >&6; }
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11457$as_echo_n "checking whether to build static libraries... " >&6; }
11458 # Make sure either enable_shared or enable_static is yes.
11459 test "$enable_shared" = yes || enable_static=yes
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11461$as_echo "$enable_static" >&6; }
11462
11463
11464
11465
11466fi
11467ac_ext=c
11468ac_cpp='$CPP $CPPFLAGS'
11469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471ac_compiler_gnu=$ac_cv_c_compiler_gnu
11472
11473CC="$lt_save_CC"
11474
11475 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11476 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11477 (test "X$CXX" != "Xg++"))) ; then
11478 ac_ext=cpp
11479ac_cpp='$CXXCPP $CPPFLAGS'
11480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11484$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11485if test -z "$CXXCPP"; then
11486 if ${ac_cv_prog_CXXCPP+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488else
11489 # Double quotes because CXXCPP needs to be expanded
11490 for CXXCPP in "$CXX -E" "/lib/cpp"
11491 do
11492 ac_preproc_ok=false
11493for ac_cxx_preproc_warn_flag in '' yes
11494do
11495 # Use a header file that comes with gcc, so configuring glibc
11496 # with a fresh cross-compiler works.
11497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11498 # <limits.h> exists even on freestanding compilers.
11499 # On the NeXT, cc -E runs the code through the compiler's parser,
11500 # not just through cpp. "Syntax error" is here to catch this case.
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502/* end confdefs.h. */
11503#ifdef __STDC__
11504# include <limits.h>
11505#else
11506# include <assert.h>
11507#endif
11508 Syntax error
11509_ACEOF
11510if ac_fn_cxx_try_cpp "$LINENO"; then :
11511
11512else
11513 # Broken: fails on valid input.
11514continue
11515fi
11516rm -f conftest.err conftest.i conftest.$ac_ext
11517
11518 # OK, works on sane cases. Now check whether nonexistent headers
11519 # can be detected and how.
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521/* end confdefs.h. */
11522#include <ac_nonexistent.h>
11523_ACEOF
11524if ac_fn_cxx_try_cpp "$LINENO"; then :
11525 # Broken: success on invalid input.
11526continue
11527else
11528 # Passes both tests.
11529ac_preproc_ok=:
11530break
11531fi
11532rm -f conftest.err conftest.i conftest.$ac_ext
11533
11534done
11535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11536rm -f conftest.i conftest.err conftest.$ac_ext
11537if $ac_preproc_ok; then :
11538 break
11539fi
11540
11541 done
11542 ac_cv_prog_CXXCPP=$CXXCPP
11543
11544fi
11545 CXXCPP=$ac_cv_prog_CXXCPP
11546else
11547 ac_cv_prog_CXXCPP=$CXXCPP
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11550$as_echo "$CXXCPP" >&6; }
11551ac_preproc_ok=false
11552for ac_cxx_preproc_warn_flag in '' yes
11553do
11554 # Use a header file that comes with gcc, so configuring glibc
11555 # with a fresh cross-compiler works.
11556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11557 # <limits.h> exists even on freestanding compilers.
11558 # On the NeXT, cc -E runs the code through the compiler's parser,
11559 # not just through cpp. "Syntax error" is here to catch this case.
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h. */
11562#ifdef __STDC__
11563# include <limits.h>
11564#else
11565# include <assert.h>
11566#endif
11567 Syntax error
11568_ACEOF
11569if ac_fn_cxx_try_cpp "$LINENO"; then :
11570
11571else
11572 # Broken: fails on valid input.
11573continue
11574fi
11575rm -f conftest.err conftest.i conftest.$ac_ext
11576
11577 # OK, works on sane cases. Now check whether nonexistent headers
11578 # can be detected and how.
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h. */
11581#include <ac_nonexistent.h>
11582_ACEOF
11583if ac_fn_cxx_try_cpp "$LINENO"; then :
11584 # Broken: success on invalid input.
11585continue
11586else
11587 # Passes both tests.
11588ac_preproc_ok=:
11589break
11590fi
11591rm -f conftest.err conftest.i conftest.$ac_ext
11592
11593done
11594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11595rm -f conftest.i conftest.err conftest.$ac_ext
11596if $ac_preproc_ok; then :
11597
11598else
11599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11601as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11602See \`config.log' for more details" "$LINENO" 5; }
11603fi
11604
11605ac_ext=c
11606ac_cpp='$CPP $CPPFLAGS'
11607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11609ac_compiler_gnu=$ac_cv_c_compiler_gnu
11610
11611else
11612 _lt_caught_CXX_error=yes
11613fi
11614
11615ac_ext=cpp
11616ac_cpp='$CXXCPP $CPPFLAGS'
11617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11620
11621archive_cmds_need_lc_CXX=no
11622allow_undefined_flag_CXX=
11623always_export_symbols_CXX=no
11624archive_expsym_cmds_CXX=
11625compiler_needs_object_CXX=no
11626export_dynamic_flag_spec_CXX=
11627hardcode_direct_CXX=no
11628hardcode_direct_absolute_CXX=no
11629hardcode_libdir_flag_spec_CXX=
11630hardcode_libdir_flag_spec_ld_CXX=
11631hardcode_libdir_separator_CXX=
11632hardcode_minus_L_CXX=no
11633hardcode_shlibpath_var_CXX=unsupported
11634hardcode_automatic_CXX=no
11635inherit_rpath_CXX=no
11636module_cmds_CXX=
11637module_expsym_cmds_CXX=
11638link_all_deplibs_CXX=unknown
11639old_archive_cmds_CXX=$old_archive_cmds
11640reload_flag_CXX=$reload_flag
11641reload_cmds_CXX=$reload_cmds
11642no_undefined_flag_CXX=
11643whole_archive_flag_spec_CXX=
11644enable_shared_with_static_runtimes_CXX=no
11645
11646# Source file extension for C++ test sources.
11647ac_ext=cpp
11648
11649# Object file extension for compiled C++ test sources.
11650objext=o
11651objext_CXX=$objext
11652
11653# No sense in running all these tests if we already determined that
11654# the CXX compiler isn't working. Some variables (like enable_shared)
11655# are currently assumed to apply to all compilers on this platform,
11656# and will be corrupted by setting them based on a non-working compiler.
11657if test "$_lt_caught_CXX_error" != yes; then
11658 # Code to be used in simple compile tests
11659 lt_simple_compile_test_code="int some_variable = 0;"
11660
11661 # Code to be used in simple link tests
11662 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11663
11664 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11665
11666
11667
11668
11669
11670
11671# If no C compiler was specified, use CC.
11672LTCC=${LTCC-"$CC"}
11673
11674# If no C compiler flags were specified, use CFLAGS.
11675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11676
11677# Allow CC to be a program name with arguments.
11678compiler=$CC
11679
11680
11681 # save warnings/boilerplate of simple test code
11682 ac_outfile=conftest.$ac_objext
11683echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11685_lt_compiler_boilerplate=`cat conftest.err`
11686$RM conftest*
11687
11688 ac_outfile=conftest.$ac_objext
11689echo "$lt_simple_link_test_code" >conftest.$ac_ext
11690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11691_lt_linker_boilerplate=`cat conftest.err`
11692$RM -r conftest*
11693
11694
11695 # Allow CC to be a program name with arguments.
11696 lt_save_CC=$CC
11697 lt_save_CFLAGS=$CFLAGS
11698 lt_save_LD=$LD
11699 lt_save_GCC=$GCC
11700 GCC=$GXX
11701 lt_save_with_gnu_ld=$with_gnu_ld
11702 lt_save_path_LD=$lt_cv_path_LD
11703 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11704 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11705 else
11706 $as_unset lt_cv_prog_gnu_ld
11707 fi
11708 if test -n "${lt_cv_path_LDCXX+set}"; then
11709 lt_cv_path_LD=$lt_cv_path_LDCXX
11710 else
11711 $as_unset lt_cv_path_LD
11712 fi
11713 test -z "${LDCXX+set}" || LD=$LDCXX
11714 CC=${CXX-"c++"}
11715 CFLAGS=$CXXFLAGS
11716 compiler=$CC
11717 compiler_CXX=$CC
11718 for cc_temp in $compiler""; do
11719 case $cc_temp in
11720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11722 \-*) ;;
11723 *) break;;
11724 esac
11725done
11726cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11727
11728
11729 if test -n "$compiler"; then
11730 # We don't want -fno-exception when compiling C++ code, so set the
11731 # no_builtin_flag separately
11732 if test "$GXX" = yes; then
11733 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11734 else
11735 lt_prog_compiler_no_builtin_flag_CXX=
11736 fi
11737
11738 if test "$GXX" = yes; then
11739 # Set up default GNU C++ configuration
11740
11741
11742
11743# Check whether --with-gnu-ld was given.
11744if test "${with_gnu_ld+set}" = set; then :
11745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11746else
11747 with_gnu_ld=no
11748fi
11749
11750ac_prog=ld
11751if test "$GCC" = yes; then
11752 # Check if gcc -print-prog-name=ld gives a path.
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11754$as_echo_n "checking for ld used by $CC... " >&6; }
11755 case $host in
11756 *-*-mingw*)
11757 # gcc leaves a trailing carriage return which upsets mingw
11758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11759 *)
11760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11761 esac
11762 case $ac_prog in
11763 # Accept absolute paths.
11764 [\\/]* | ?:[\\/]*)
11765 re_direlt='/[^/][^/]*/\.\./'
11766 # Canonicalize the pathname of ld
11767 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11768 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11769 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11770 done
11771 test -z "$LD" && LD="$ac_prog"
11772 ;;
11773 "")
11774 # If it fails, then pretend we aren't using GCC.
11775 ac_prog=ld
11776 ;;
11777 *)
11778 # If it is relative, then search for the first ld in PATH.
11779 with_gnu_ld=unknown
11780 ;;
11781 esac
11782elif test "$with_gnu_ld" = yes; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11784$as_echo_n "checking for GNU ld... " >&6; }
11785else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11787$as_echo_n "checking for non-GNU ld... " >&6; }
11788fi
11789if ${lt_cv_path_LD+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791else
11792 if test -z "$LD"; then
11793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11794 for ac_dir in $PATH; do
11795 IFS="$lt_save_ifs"
11796 test -z "$ac_dir" && ac_dir=.
11797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11798 lt_cv_path_LD="$ac_dir/$ac_prog"
11799 # Check to see if the program is GNU ld. I'd rather use --version,
11800 # but apparently some variants of GNU ld only accept -v.
11801 # Break only if it was the GNU/non-GNU ld that we prefer.
11802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11803 *GNU* | *'with BFD'*)
11804 test "$with_gnu_ld" != no && break
11805 ;;
11806 *)
11807 test "$with_gnu_ld" != yes && break
11808 ;;
11809 esac
11810 fi
11811 done
11812 IFS="$lt_save_ifs"
11813else
11814 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11815fi
11816fi
11817
11818LD="$lt_cv_path_LD"
11819if test -n "$LD"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11821$as_echo "$LD" >&6; }
11822else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
11825fi
11826test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11828$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11829if ${lt_cv_prog_gnu_ld+:} false; then :
11830 $as_echo_n "(cached) " >&6
11831else
11832 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11833case `$LD -v 2>&1 </dev/null` in
11834*GNU* | *'with BFD'*)
11835 lt_cv_prog_gnu_ld=yes
11836 ;;
11837*)
11838 lt_cv_prog_gnu_ld=no
11839 ;;
11840esac
11841fi
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11843$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11844with_gnu_ld=$lt_cv_prog_gnu_ld
11845
11846
11847
11848
11849
11850
11851
11852 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11853 # archiving commands below assume that GNU ld is being used.
11854 if test "$with_gnu_ld" = yes; then
11855 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11856 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'
11857
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11860
11861 # If archive_cmds runs LD, not CC, wlarc should be empty
11862 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11863 # investigate it a little bit more. (MM)
11864 wlarc='${wl}'
11865
11866 # ancient GNU ld didn't support --whole-archive et. al.
11867 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11868 $GREP 'no-whole-archive' > /dev/null; then
11869 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11870 else
11871 whole_archive_flag_spec_CXX=
11872 fi
11873 else
11874 with_gnu_ld=no
11875 wlarc=
11876
11877 # A generic and very simple default shared library creation
11878 # command for GNU C++ for the case where it uses the native
11879 # linker, instead of GNU ld. If possible, this setting should
11880 # overridden to take advantage of the native linker features on
11881 # the platform it is being used on.
11882 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11883 fi
11884
11885 # Commands to make compiler produce verbose output that lists
11886 # what "hidden" libraries, object files and flags are used when
11887 # linking a shared library.
11888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11889
11890 else
11891 GXX=no
11892 with_gnu_ld=no
11893 wlarc=
11894 fi
11895
11896 # PORTME: fill in a description of your system's C++ link characteristics
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11898$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11899 ld_shlibs_CXX=yes
11900 case $host_os in
11901 aix3*)
11902 # FIXME: insert proper C++ library support
11903 ld_shlibs_CXX=no
11904 ;;
11905 aix[4-9]*)
11906 if test "$host_cpu" = ia64; then
11907 # On IA64, the linker does run time linking by default, so we don't
11908 # have to do anything special.
11909 aix_use_runtimelinking=no
11910 exp_sym_flag='-Bexport'
11911 no_entry_flag=""
11912 else
11913 aix_use_runtimelinking=no
11914
11915 # Test if we are trying to use run time linking or normal
11916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11917 # need to do runtime linking.
11918 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11919 for ld_flag in $LDFLAGS; do
11920 case $ld_flag in
11921 *-brtl*)
11922 aix_use_runtimelinking=yes
11923 break
11924 ;;
11925 esac
11926 done
11927 ;;
11928 esac
11929
11930 exp_sym_flag='-bexport'
11931 no_entry_flag='-bnoentry'
11932 fi
11933
11934 # When large executables or shared objects are built, AIX ld can
11935 # have problems creating the table of contents. If linking a library
11936 # or program results in "error TOC overflow" add -mminimal-toc to
11937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11939
11940 archive_cmds_CXX=''
11941 hardcode_direct_CXX=yes
11942 hardcode_direct_absolute_CXX=yes
11943 hardcode_libdir_separator_CXX=':'
11944 link_all_deplibs_CXX=yes
11945 file_list_spec_CXX='${wl}-f,'
11946
11947 if test "$GXX" = yes; then
11948 case $host_os in aix4.[012]|aix4.[012].*)
11949 # We only want to do this on AIX 4.2 and lower, the check
11950 # below for broken collect2 doesn't work under 4.3+
11951 collect2name=`${CC} -print-prog-name=collect2`
11952 if test -f "$collect2name" &&
11953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11954 then
11955 # We have reworked collect2
11956 :
11957 else
11958 # We have old collect2
11959 hardcode_direct_CXX=unsupported
11960 # It fails to find uninstalled libraries when the uninstalled
11961 # path is not listed in the libpath. Setting hardcode_minus_L
11962 # to unsupported forces relinking
11963 hardcode_minus_L_CXX=yes
11964 hardcode_libdir_flag_spec_CXX='-L$libdir'
11965 hardcode_libdir_separator_CXX=
11966 fi
11967 esac
11968 shared_flag='-shared'
11969 if test "$aix_use_runtimelinking" = yes; then
11970 shared_flag="$shared_flag "'${wl}-G'
11971 fi
11972 else
11973 # not using gcc
11974 if test "$host_cpu" = ia64; then
11975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11976 # chokes on -Wl,-G. The following line is correct:
11977 shared_flag='-G'
11978 else
11979 if test "$aix_use_runtimelinking" = yes; then
11980 shared_flag='${wl}-G'
11981 else
11982 shared_flag='${wl}-bM:SRE'
11983 fi
11984 fi
11985 fi
11986
11987 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11988 # It seems that -bexpall does not export symbols beginning with
11989 # underscore (_), so it is better to generate a list of symbols to
11990 # export.
11991 always_export_symbols_CXX=yes
11992 if test "$aix_use_runtimelinking" = yes; then
11993 # Warning - without using the other runtime loading flags (-brtl),
11994 # -berok will link without error, but may produce a broken library.
11995 allow_undefined_flag_CXX='-berok'
11996 # Determine the default libpath from the value encoded in an empty
11997 # executable.
11998 if test "${lt_cv_aix_libpath+set}" = set; then
11999 aix_libpath=$lt_cv_aix_libpath
12000else
12001 if ${lt_cv_aix_libpath__CXX+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003else
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005/* end confdefs.h. */
12006
12007int
12008main ()
12009{
12010
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015if ac_fn_cxx_try_link "$LINENO"; then :
12016
12017 lt_aix_libpath_sed='
12018 /Import File Strings/,/^$/ {
12019 /^0/ {
12020 s/^0 *\([^ ]*\) *$/\1/
12021 p
12022 }
12023 }'
12024 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12025 # Check for a 64-bit object if we didn't find anything.
12026 if test -z "$lt_cv_aix_libpath__CXX"; then
12027 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12028 fi
12029fi
12030rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 if test -z "$lt_cv_aix_libpath__CXX"; then
12033 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12034 fi
12035
12036fi
12037
12038 aix_libpath=$lt_cv_aix_libpath__CXX
12039fi
12040
12041 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12042
12043 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"
12044 else
12045 if test "$host_cpu" = ia64; then
12046 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12047 allow_undefined_flag_CXX="-z nodefs"
12048 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"
12049 else
12050 # Determine the default libpath from the value encoded in an
12051 # empty executable.
12052 if test "${lt_cv_aix_libpath+set}" = set; then
12053 aix_libpath=$lt_cv_aix_libpath
12054else
12055 if ${lt_cv_aix_libpath__CXX+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057else
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059/* end confdefs.h. */
12060
12061int
12062main ()
12063{
12064
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069if ac_fn_cxx_try_link "$LINENO"; then :
12070
12071 lt_aix_libpath_sed='
12072 /Import File Strings/,/^$/ {
12073 /^0/ {
12074 s/^0 *\([^ ]*\) *$/\1/
12075 p
12076 }
12077 }'
12078 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12079 # Check for a 64-bit object if we didn't find anything.
12080 if test -z "$lt_cv_aix_libpath__CXX"; then
12081 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12082 fi
12083fi
12084rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 if test -z "$lt_cv_aix_libpath__CXX"; then
12087 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12088 fi
12089
12090fi
12091
12092 aix_libpath=$lt_cv_aix_libpath__CXX
12093fi
12094
12095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12096 # Warning - without using the other run time loading flags,
12097 # -berok will link without error, but may produce a broken library.
12098 no_undefined_flag_CXX=' ${wl}-bernotok'
12099 allow_undefined_flag_CXX=' ${wl}-berok'
12100 if test "$with_gnu_ld" = yes; then
12101 # We only use this code for GNU lds that support --whole-archive.
12102 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12103 else
12104 # Exported symbols can be pulled into shared objects from archives
12105 whole_archive_flag_spec_CXX='$convenience'
12106 fi
12107 archive_cmds_need_lc_CXX=yes
12108 # This is similar to how AIX traditionally builds its shared
12109 # libraries.
12110 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'
12111 fi
12112 fi
12113 ;;
12114
12115 beos*)
12116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12117 allow_undefined_flag_CXX=unsupported
12118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12119 # support --undefined. This deserves some investigation. FIXME
12120 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12121 else
12122 ld_shlibs_CXX=no
12123 fi
12124 ;;
12125
12126 chorus*)
12127 case $cc_basename in
12128 *)
12129 # FIXME: insert proper C++ library support
12130 ld_shlibs_CXX=no
12131 ;;
12132 esac
12133 ;;
12134
12135 cygwin* | mingw* | pw32* | cegcc*)
12136 case $GXX,$cc_basename in
12137 ,cl* | no,cl*)
12138 # Native MSVC
12139 # hardcode_libdir_flag_spec is actually meaningless, as there is
12140 # no search path for DLLs.
12141 hardcode_libdir_flag_spec_CXX=' '
12142 allow_undefined_flag_CXX=unsupported
12143 always_export_symbols_CXX=yes
12144 file_list_spec_CXX='@'
12145 # Tell ltmain to make .lib files, not .a files.
12146 libext=lib
12147 # Tell ltmain to make .dll files, not .so files.
12148 shrext_cmds=".dll"
12149 # FIXME: Setting linknames here is a bad hack.
12150 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12151 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12152 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12153 else
12154 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12155 fi~
12156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12157 linknames='
12158 # The linker will not automatically build a static lib if we build a DLL.
12159 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12160 enable_shared_with_static_runtimes_CXX=yes
12161 # Don't use ranlib
12162 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12163 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12164 lt_tool_outputfile="@TOOL_OUTPUT@"~
12165 case $lt_outputfile in
12166 *.exe|*.EXE) ;;
12167 *)
12168 lt_outputfile="$lt_outputfile.exe"
12169 lt_tool_outputfile="$lt_tool_outputfile.exe"
12170 ;;
12171 esac~
12172 func_to_tool_file "$lt_outputfile"~
12173 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12174 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12175 $RM "$lt_outputfile.manifest";
12176 fi'
12177 ;;
12178 *)
12179 # g++
12180 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12181 # as there is no search path for DLLs.
12182 hardcode_libdir_flag_spec_CXX='-L$libdir'
12183 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12184 allow_undefined_flag_CXX=unsupported
12185 always_export_symbols_CXX=no
12186 enable_shared_with_static_runtimes_CXX=yes
12187
12188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12189 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'
12190 # If the export-symbols file already is a .def file (1st line
12191 # is EXPORTS), use it as is; otherwise, prepend...
12192 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12193 cp $export_symbols $output_objdir/$soname.def;
12194 else
12195 echo EXPORTS > $output_objdir/$soname.def;
12196 cat $export_symbols >> $output_objdir/$soname.def;
12197 fi~
12198 $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'
12199 else
12200 ld_shlibs_CXX=no
12201 fi
12202 ;;
12203 esac
12204 ;;
12205 darwin* | rhapsody*)
12206
12207
12208 archive_cmds_need_lc_CXX=no
12209 hardcode_direct_CXX=no
12210 hardcode_automatic_CXX=yes
12211 hardcode_shlibpath_var_CXX=unsupported
12212 if test "$lt_cv_ld_force_load" = "yes"; then
12213 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\"`'
12214 else
12215 whole_archive_flag_spec_CXX=''
12216 fi
12217 link_all_deplibs_CXX=yes
12218 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12219 case $cc_basename in
12220 ifort*) _lt_dar_can_shared=yes ;;
12221 *) _lt_dar_can_shared=$GCC ;;
12222 esac
12223 if test "$_lt_dar_can_shared" = "yes"; then
12224 output_verbose_link_cmd=func_echo_all
12225 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}"
12226 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12227 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}"
12228 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}"
12229 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12230 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}"
12231 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}"
12232 fi
12233
12234 else
12235 ld_shlibs_CXX=no
12236 fi
12237
12238 ;;
12239
12240 dgux*)
12241 case $cc_basename in
12242 ec++*)
12243 # FIXME: insert proper C++ library support
12244 ld_shlibs_CXX=no
12245 ;;
12246 ghcx*)
12247 # Green Hills C++ Compiler
12248 # FIXME: insert proper C++ library support
12249 ld_shlibs_CXX=no
12250 ;;
12251 *)
12252 # FIXME: insert proper C++ library support
12253 ld_shlibs_CXX=no
12254 ;;
12255 esac
12256 ;;
12257
12258 freebsd[12]*)
12259 # C++ shared libraries reported to be fairly broken before
12260 # switch to ELF
12261 ld_shlibs_CXX=no
12262 ;;
12263
12264 freebsd-elf*)
12265 archive_cmds_need_lc_CXX=no
12266 ;;
12267
12268 freebsd* | dragonfly*)
12269 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12270 # conventions
12271 ld_shlibs_CXX=yes
12272 ;;
12273
12274 gnu*)
12275 ;;
12276
12277 haiku*)
12278 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12279 link_all_deplibs_CXX=yes
12280 ;;
12281
12282 hpux9*)
12283 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12284 hardcode_libdir_separator_CXX=:
12285 export_dynamic_flag_spec_CXX='${wl}-E'
12286 hardcode_direct_CXX=yes
12287 hardcode_minus_L_CXX=yes # Not in the search PATH,
12288 # but as the default
12289 # location of the library.
12290
12291 case $cc_basename in
12292 CC*)
12293 # FIXME: insert proper C++ library support
12294 ld_shlibs_CXX=no
12295 ;;
12296 aCC*)
12297 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'
12298 # Commands to make compiler produce verbose output that lists
12299 # what "hidden" libraries, object files and flags are used when
12300 # linking a shared library.
12301 #
12302 # There doesn't appear to be a way to prevent this compiler from
12303 # explicitly linking system object files so we need to strip them
12304 # from the output so that they don't get included in the library
12305 # dependencies.
12306 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"'
12307 ;;
12308 *)
12309 if test "$GXX" = yes; then
12310 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'
12311 else
12312 # FIXME: insert proper C++ library support
12313 ld_shlibs_CXX=no
12314 fi
12315 ;;
12316 esac
12317 ;;
12318
12319 hpux10*|hpux11*)
12320 if test $with_gnu_ld = no; then
12321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12322 hardcode_libdir_separator_CXX=:
12323
12324 case $host_cpu in
12325 hppa*64*|ia64*)
12326 ;;
12327 *)
12328 export_dynamic_flag_spec_CXX='${wl}-E'
12329 ;;
12330 esac
12331 fi
12332 case $host_cpu in
12333 hppa*64*|ia64*)
12334 hardcode_direct_CXX=no
12335 hardcode_shlibpath_var_CXX=no
12336 ;;
12337 *)
12338 hardcode_direct_CXX=yes
12339 hardcode_direct_absolute_CXX=yes
12340 hardcode_minus_L_CXX=yes # Not in the search PATH,
12341 # but as the default
12342 # location of the library.
12343 ;;
12344 esac
12345
12346 case $cc_basename in
12347 CC*)
12348 # FIXME: insert proper C++ library support
12349 ld_shlibs_CXX=no
12350 ;;
12351 aCC*)
12352 case $host_cpu in
12353 hppa*64*)
12354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12355 ;;
12356 ia64*)
12357 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12358 ;;
12359 *)
12360 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12361 ;;
12362 esac
12363 # Commands to make compiler produce verbose output that lists
12364 # what "hidden" libraries, object files and flags are used when
12365 # linking a shared library.
12366 #
12367 # There doesn't appear to be a way to prevent this compiler from
12368 # explicitly linking system object files so we need to strip them
12369 # from the output so that they don't get included in the library
12370 # dependencies.
12371 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"'
12372 ;;
12373 *)
12374 if test "$GXX" = yes; then
12375 if test $with_gnu_ld = no; then
12376 case $host_cpu in
12377 hppa*64*)
12378 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12379 ;;
12380 ia64*)
12381 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12382 ;;
12383 *)
12384 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'
12385 ;;
12386 esac
12387 fi
12388 else
12389 # FIXME: insert proper C++ library support
12390 ld_shlibs_CXX=no
12391 fi
12392 ;;
12393 esac
12394 ;;
12395
12396 interix[3-9]*)
12397 hardcode_direct_CXX=no
12398 hardcode_shlibpath_var_CXX=no
12399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12400 export_dynamic_flag_spec_CXX='${wl}-E'
12401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12402 # Instead, shared libraries are loaded at an image base (0x10000000 by
12403 # default) and relocated if they conflict, which is a slow very memory
12404 # consuming and fragmenting process. To avoid this, we pick a random,
12405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12407 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'
12408 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'
12409 ;;
12410 irix5* | irix6*)
12411 case $cc_basename in
12412 CC*)
12413 # SGI C++
12414 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'
12415
12416 # Archives containing C++ object files must be created using
12417 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12418 # necessary to make sure instantiated templates are included
12419 # in the archive.
12420 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12421 ;;
12422 *)
12423 if test "$GXX" = yes; then
12424 if test "$with_gnu_ld" = no; then
12425 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'
12426 else
12427 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'
12428 fi
12429 fi
12430 link_all_deplibs_CXX=yes
12431 ;;
12432 esac
12433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12434 hardcode_libdir_separator_CXX=:
12435 inherit_rpath_CXX=yes
12436 ;;
12437
12438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12439 case $cc_basename in
12440 KCC*)
12441 # Kuck and Associates, Inc. (KAI) C++ Compiler
12442
12443 # KCC will only create a shared library if the output file
12444 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12445 # to its proper name (with version) after linking.
12446 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'
12447 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'
12448 # Commands to make compiler produce verbose output that lists
12449 # what "hidden" libraries, object files and flags are used when
12450 # linking a shared library.
12451 #
12452 # There doesn't appear to be a way to prevent this compiler from
12453 # explicitly linking system object files so we need to strip them
12454 # from the output so that they don't get included in the library
12455 # dependencies.
12456 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"'
12457
12458 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12460
12461 # Archives containing C++ object files must be created using
12462 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12463 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12464 ;;
12465 icpc* | ecpc* )
12466 # Intel C++
12467 with_gnu_ld=yes
12468 # version 8.0 and above of icpc choke on multiply defined symbols
12469 # if we add $predep_objects and $postdep_objects, however 7.1 and
12470 # earlier do not add the objects themselves.
12471 case `$CC -V 2>&1` in
12472 *"Version 7."*)
12473 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474 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'
12475 ;;
12476 *) # Version 8.0 or newer
12477 tmp_idyn=
12478 case $host_cpu in
12479 ia64*) tmp_idyn=' -i_dynamic';;
12480 esac
12481 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12482 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'
12483 ;;
12484 esac
12485 archive_cmds_need_lc_CXX=no
12486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12488 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12489 ;;
12490 pgCC* | pgcpp*)
12491 # Portland Group C++ compiler
12492 case `$CC -V` in
12493 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12494 prelink_cmds_CXX='tpldir=Template.dir~
12495 rm -rf $tpldir~
12496 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12497 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12498 old_archive_cmds_CXX='tpldir=Template.dir~
12499 rm -rf $tpldir~
12500 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12501 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12502 $RANLIB $oldlib'
12503 archive_cmds_CXX='tpldir=Template.dir~
12504 rm -rf $tpldir~
12505 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12506 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12507 archive_expsym_cmds_CXX='tpldir=Template.dir~
12508 rm -rf $tpldir~
12509 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12510 $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'
12511 ;;
12512 *) # Version 6 and above use weak symbols
12513 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12514 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'
12515 ;;
12516 esac
12517
12518 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12520 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'
12521 ;;
12522 cxx*)
12523 # Compaq C++
12524 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525 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'
12526
12527 runpath_var=LD_RUN_PATH
12528 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12529 hardcode_libdir_separator_CXX=:
12530
12531 # Commands to make compiler produce verbose output that lists
12532 # what "hidden" libraries, object files and flags are used when
12533 # linking a shared library.
12534 #
12535 # There doesn't appear to be a way to prevent this compiler from
12536 # explicitly linking system object files so we need to strip them
12537 # from the output so that they don't get included in the library
12538 # dependencies.
12539 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'
12540 ;;
12541 xl* | mpixl* | bgxl*)
12542 # IBM XL 8.0 on PPC, with GNU ld
12543 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12545 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12546 if test "x$supports_anon_versioning" = xyes; then
12547 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12549 echo "local: *; };" >> $output_objdir/$libname.ver~
12550 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12551 fi
12552 ;;
12553 *)
12554 case `$CC -V 2>&1 | sed 5q` in
12555 *Sun\ C*)
12556 # Sun C++ 5.9
12557 no_undefined_flag_CXX=' -zdefs'
12558 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12559 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'
12560 hardcode_libdir_flag_spec_CXX='-R$libdir'
12561 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'
12562 compiler_needs_object_CXX=yes
12563
12564 # Not sure whether something based on
12565 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12566 # would be better.
12567 output_verbose_link_cmd='func_echo_all'
12568
12569 # Archives containing C++ object files must be created using
12570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12571 # necessary to make sure instantiated templates are included
12572 # in the archive.
12573 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12574 ;;
12575 esac
12576 ;;
12577 esac
12578 ;;
12579
12580 lynxos*)
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12583 ;;
12584
12585 m88k*)
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12588 ;;
12589
12590 mvs*)
12591 case $cc_basename in
12592 cxx*)
12593 # FIXME: insert proper C++ library support
12594 ld_shlibs_CXX=no
12595 ;;
12596 *)
12597 # FIXME: insert proper C++ library support
12598 ld_shlibs_CXX=no
12599 ;;
12600 esac
12601 ;;
12602
12603 netbsd*)
12604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12605 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12606 wlarc=
12607 hardcode_libdir_flag_spec_CXX='-R$libdir'
12608 hardcode_direct_CXX=yes
12609 hardcode_shlibpath_var_CXX=no
12610 fi
12611 # Workaround some broken pre-1.5 toolchains
12612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12613 ;;
12614
12615 *nto* | *qnx*)
12616 ld_shlibs_CXX=yes
12617 ;;
12618
12619 openbsd2*)
12620 # C++ shared libraries are fairly broken
12621 ld_shlibs_CXX=no
12622 ;;
12623
12624 openbsd*)
12625 if test -f /usr/libexec/ld.so; then
12626 hardcode_direct_CXX=yes
12627 hardcode_shlibpath_var_CXX=no
12628 hardcode_direct_absolute_CXX=yes
12629 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12631 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12632 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12633 export_dynamic_flag_spec_CXX='${wl}-E'
12634 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12635 fi
12636 output_verbose_link_cmd=func_echo_all
12637 else
12638 ld_shlibs_CXX=no
12639 fi
12640 ;;
12641
12642 osf3* | osf4* | osf5*)
12643 case $cc_basename in
12644 KCC*)
12645 # Kuck and Associates, Inc. (KAI) C++ Compiler
12646
12647 # KCC will only create a shared library if the output file
12648 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12649 # to its proper name (with version) after linking.
12650 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'
12651
12652 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12653 hardcode_libdir_separator_CXX=:
12654
12655 # Archives containing C++ object files must be created using
12656 # the KAI C++ compiler.
12657 case $host in
12658 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12659 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12660 esac
12661 ;;
12662 RCC*)
12663 # Rational C++ 2.4.1
12664 # FIXME: insert proper C++ library support
12665 ld_shlibs_CXX=no
12666 ;;
12667 cxx*)
12668 case $host in
12669 osf3*)
12670 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12671 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'
12672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12673 ;;
12674 *)
12675 allow_undefined_flag_CXX=' -expect_unresolved \*'
12676 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'
12677 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12678 echo "-hidden">> $lib.exp~
12679 $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~
12680 $RM $lib.exp'
12681 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12682 ;;
12683 esac
12684
12685 hardcode_libdir_separator_CXX=:
12686
12687 # Commands to make compiler produce verbose output that lists
12688 # what "hidden" libraries, object files and flags are used when
12689 # linking a shared library.
12690 #
12691 # There doesn't appear to be a way to prevent this compiler from
12692 # explicitly linking system object files so we need to strip them
12693 # from the output so that they don't get included in the library
12694 # dependencies.
12695 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"'
12696 ;;
12697 *)
12698 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12699 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12700 case $host in
12701 osf3*)
12702 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'
12703 ;;
12704 *)
12705 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'
12706 ;;
12707 esac
12708
12709 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12710 hardcode_libdir_separator_CXX=:
12711
12712 # Commands to make compiler produce verbose output that lists
12713 # what "hidden" libraries, object files and flags are used when
12714 # linking a shared library.
12715 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12716
12717 else
12718 # FIXME: insert proper C++ library support
12719 ld_shlibs_CXX=no
12720 fi
12721 ;;
12722 esac
12723 ;;
12724
12725 psos*)
12726 # FIXME: insert proper C++ library support
12727 ld_shlibs_CXX=no
12728 ;;
12729
12730 sunos4*)
12731 case $cc_basename in
12732 CC*)
12733 # Sun C++ 4.x
12734 # FIXME: insert proper C++ library support
12735 ld_shlibs_CXX=no
12736 ;;
12737 lcc*)
12738 # Lucid
12739 # FIXME: insert proper C++ library support
12740 ld_shlibs_CXX=no
12741 ;;
12742 *)
12743 # FIXME: insert proper C++ library support
12744 ld_shlibs_CXX=no
12745 ;;
12746 esac
12747 ;;
12748
12749 solaris*)
12750 case $cc_basename in
12751 CC* | sunCC*)
12752 # Sun C++ 4.2, 5.x and Centerline C++
12753 archive_cmds_need_lc_CXX=yes
12754 no_undefined_flag_CXX=' -zdefs'
12755 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12757 $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'
12758
12759 hardcode_libdir_flag_spec_CXX='-R$libdir'
12760 hardcode_shlibpath_var_CXX=no
12761 case $host_os in
12762 solaris2.[0-5] | solaris2.[0-5].*) ;;
12763 *)
12764 # The compiler driver will combine and reorder linker options,
12765 # but understands `-z linker_flag'.
12766 # Supported since Solaris 2.6 (maybe 2.5.1?)
12767 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12768 ;;
12769 esac
12770 link_all_deplibs_CXX=yes
12771
12772 output_verbose_link_cmd='func_echo_all'
12773
12774 # Archives containing C++ object files must be created using
12775 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12776 # necessary to make sure instantiated templates are included
12777 # in the archive.
12778 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12779 ;;
12780 gcx*)
12781 # Green Hills C++ Compiler
12782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12783
12784 # The C++ compiler must be used to create the archive.
12785 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12786 ;;
12787 *)
12788 # GNU C++ compiler with Solaris linker
12789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12790 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12791 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12792 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12793 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12794 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12795
12796 # Commands to make compiler produce verbose output that lists
12797 # what "hidden" libraries, object files and flags are used when
12798 # linking a shared library.
12799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12800 else
12801 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12802 # platform.
12803 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12804 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12805 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12806
12807 # Commands to make compiler produce verbose output that lists
12808 # what "hidden" libraries, object files and flags are used when
12809 # linking a shared library.
12810 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12811 fi
12812
12813 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12814 case $host_os in
12815 solaris2.[0-5] | solaris2.[0-5].*) ;;
12816 *)
12817 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12818 ;;
12819 esac
12820 fi
12821 ;;
12822 esac
12823 ;;
12824
12825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12826 no_undefined_flag_CXX='${wl}-z,text'
12827 archive_cmds_need_lc_CXX=no
12828 hardcode_shlibpath_var_CXX=no
12829 runpath_var='LD_RUN_PATH'
12830
12831 case $cc_basename in
12832 CC*)
12833 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12834 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12835 ;;
12836 *)
12837 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12838 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12839 ;;
12840 esac
12841 ;;
12842
12843 sysv5* | sco3.2v5* | sco5v6*)
12844 # Note: We can NOT use -z defs as we might desire, because we do not
12845 # link with -lc, and that would cause any symbols used from libc to
12846 # always be unresolved, which means just about no library would
12847 # ever link correctly. If we're not using GNU ld we use -z text
12848 # though, which does catch some bad symbols but isn't as heavy-handed
12849 # as -z defs.
12850 no_undefined_flag_CXX='${wl}-z,text'
12851 allow_undefined_flag_CXX='${wl}-z,nodefs'
12852 archive_cmds_need_lc_CXX=no
12853 hardcode_shlibpath_var_CXX=no
12854 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12855 hardcode_libdir_separator_CXX=':'
12856 link_all_deplibs_CXX=yes
12857 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12858 runpath_var='LD_RUN_PATH'
12859
12860 case $cc_basename in
12861 CC*)
12862 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12863 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12864 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12865 '"$old_archive_cmds_CXX"
12866 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12867 '"$reload_cmds_CXX"
12868 ;;
12869 *)
12870 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12871 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 ;;
12873 esac
12874 ;;
12875
12876 tandem*)
12877 case $cc_basename in
12878 NCC*)
12879 # NonStop-UX NCC 3.20
12880 # FIXME: insert proper C++ library support
12881 ld_shlibs_CXX=no
12882 ;;
12883 *)
12884 # FIXME: insert proper C++ library support
12885 ld_shlibs_CXX=no
12886 ;;
12887 esac
12888 ;;
12889
12890 vxworks*)
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12893 ;;
12894
12895 *)
12896 # FIXME: insert proper C++ library support
12897 ld_shlibs_CXX=no
12898 ;;
12899 esac
12900
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12902$as_echo "$ld_shlibs_CXX" >&6; }
12903 test "$ld_shlibs_CXX" = no && can_build_shared=no
12904
12905 GCC_CXX="$GXX"
12906 LD_CXX="$LD"
12907
12908 ## CAVEAT EMPTOR:
12909 ## There is no encapsulation within the following macros, do not change
12910 ## the running order or otherwise move them around unless you know exactly
12911 ## what you are doing...
12912 # Dependencies to place before and after the object being linked:
12913predep_objects_CXX=
12914postdep_objects_CXX=
12915predeps_CXX=
12916postdeps_CXX=
12917compiler_lib_search_path_CXX=
12918
12919cat > conftest.$ac_ext <<_LT_EOF
12920class Foo
12921{
12922public:
12923 Foo (void) { a = 0; }
12924private:
12925 int a;
12926};
12927_LT_EOF
12928
12929
12930_lt_libdeps_save_CFLAGS=$CFLAGS
12931case "$CC $CFLAGS " in #(
12932*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
12933*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
12934esac
12935
12936if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12937 (eval $ac_compile) 2>&5
12938 ac_status=$?
12939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940 test $ac_status = 0; }; then
12941 # Parse the compiler output and extract the necessary
12942 # objects, libraries and library flags.
12943
12944 # Sentinel used to keep track of whether or not we are before
12945 # the conftest object file.
12946 pre_test_object_deps_done=no
12947
12948 for p in `eval "$output_verbose_link_cmd"`; do
12949 case ${prev}${p} in
12950
12951 -L* | -R* | -l*)
12952 # Some compilers place space between "-{L,R}" and the path.
12953 # Remove the space.
12954 if test $p = "-L" ||
12955 test $p = "-R"; then
12956 prev=$p
12957 continue
12958 fi
12959
12960 # Expand the sysroot to ease extracting the directories later.
12961 if test -z "$prev"; then
12962 case $p in
12963 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
12964 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
12965 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
12966 esac
12967 fi
12968 case $p in
12969 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
12970 esac
12971 if test "$pre_test_object_deps_done" = no; then
12972 case ${prev} in
12973 -L | -R)
12974 # Internal compiler library paths should come after those
12975 # provided the user. The postdeps already come after the
12976 # user supplied libs so there is no need to process them.
12977 if test -z "$compiler_lib_search_path_CXX"; then
12978 compiler_lib_search_path_CXX="${prev}${p}"
12979 else
12980 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12981 fi
12982 ;;
12983 # The "-l" case would never come before the object being
12984 # linked, so don't bother handling this case.
12985 esac
12986 else
12987 if test -z "$postdeps_CXX"; then
12988 postdeps_CXX="${prev}${p}"
12989 else
12990 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12991 fi
12992 fi
12993 prev=
12994 ;;
12995
12996 *.lto.$objext) ;; # Ignore GCC LTO objects
12997 *.$objext)
12998 # This assumes that the test object file only shows up
12999 # once in the compiler output.
13000 if test "$p" = "conftest.$objext"; then
13001 pre_test_object_deps_done=yes
13002 continue
13003 fi
13004
13005 if test "$pre_test_object_deps_done" = no; then
13006 if test -z "$predep_objects_CXX"; then
13007 predep_objects_CXX="$p"
13008 else
13009 predep_objects_CXX="$predep_objects_CXX $p"
13010 fi
13011 else
13012 if test -z "$postdep_objects_CXX"; then
13013 postdep_objects_CXX="$p"
13014 else
13015 postdep_objects_CXX="$postdep_objects_CXX $p"
13016 fi
13017 fi
13018 ;;
13019
13020 *) ;; # Ignore the rest.
13021
13022 esac
13023 done
13024
13025 # Clean up.
13026 rm -f a.out a.exe
13027else
13028 echo "libtool.m4: error: problem compiling CXX test program"
13029fi
13030
13031$RM -f confest.$objext
13032CFLAGS=$_lt_libdeps_save_CFLAGS
13033
13034# PORTME: override above test on systems where it is broken
13035case $host_os in
13036interix[3-9]*)
13037 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13038 # hack all around it, let's just trust "g++" to DTRT.
13039 predep_objects_CXX=
13040 postdep_objects_CXX=
13041 postdeps_CXX=
13042 ;;
13043
13044linux*)
13045 case `$CC -V 2>&1 | sed 5q` in
13046 *Sun\ C*)
13047 # Sun C++ 5.9
13048
13049 # The more standards-conforming stlport4 library is
13050 # incompatible with the Cstd library. Avoid specifying
13051 # it if it's in CXXFLAGS. Ignore libCrun as
13052 # -library=stlport4 depends on it.
13053 case " $CXX $CXXFLAGS " in
13054 *" -library=stlport4 "*)
13055 solaris_use_stlport4=yes
13056 ;;
13057 esac
13058
13059 if test "$solaris_use_stlport4" != yes; then
13060 postdeps_CXX='-library=Cstd -library=Crun'
13061 fi
13062 ;;
13063 esac
13064 ;;
13065
13066solaris*)
13067 case $cc_basename in
13068 CC* | sunCC*)
13069 # The more standards-conforming stlport4 library is
13070 # incompatible with the Cstd library. Avoid specifying
13071 # it if it's in CXXFLAGS. Ignore libCrun as
13072 # -library=stlport4 depends on it.
13073 case " $CXX $CXXFLAGS " in
13074 *" -library=stlport4 "*)
13075 solaris_use_stlport4=yes
13076 ;;
13077 esac
13078
13079 # Adding this requires a known-good setup of shared libraries for
13080 # Sun compiler versions before 5.6, else PIC objects from an old
13081 # archive will be linked into the output, leading to subtle bugs.
13082 if test "$solaris_use_stlport4" != yes; then
13083 postdeps_CXX='-library=Cstd -library=Crun'
13084 fi
13085 ;;
13086 esac
13087 ;;
13088esac
13089
13090
13091case " $postdeps_CXX " in
13092*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13093esac
13094 compiler_lib_search_dirs_CXX=
13095if test -n "${compiler_lib_search_path_CXX}"; then
13096 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13097fi
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129 lt_prog_compiler_wl_CXX=
13130lt_prog_compiler_pic_CXX=
13131lt_prog_compiler_static_CXX=
13132
13133
13134 # C++ specific cases for pic, static, wl, etc.
13135 if test "$GXX" = yes; then
13136 lt_prog_compiler_wl_CXX='-Wl,'
13137 lt_prog_compiler_static_CXX='-static'
13138
13139 case $host_os in
13140 aix*)
13141 # All AIX code is PIC.
13142 if test "$host_cpu" = ia64; then
13143 # AIX 5 now supports IA64 processor
13144 lt_prog_compiler_static_CXX='-Bstatic'
13145 fi
13146 ;;
13147
13148 amigaos*)
13149 case $host_cpu in
13150 powerpc)
13151 # see comment about AmigaOS4 .so support
13152 lt_prog_compiler_pic_CXX='-fPIC'
13153 ;;
13154 m68k)
13155 # FIXME: we need at least 68020 code to build shared libraries, but
13156 # adding the `-m68020' flag to GCC prevents building anything better,
13157 # like `-m68040'.
13158 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13159 ;;
13160 esac
13161 ;;
13162
13163 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13164 # PIC is the default for these OSes.
13165 ;;
13166 mingw* | cygwin* | os2* | pw32* | cegcc*)
13167 # This hack is so that the source file can tell whether it is being
13168 # built for inclusion in a dll (and should export symbols for example).
13169 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13170 # (--disable-auto-import) libraries
13171 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13172 ;;
13173 darwin* | rhapsody*)
13174 # PIC is the default on this platform
13175 # Common symbols not allowed in MH_DYLIB files
13176 lt_prog_compiler_pic_CXX='-fno-common'
13177 ;;
13178 *djgpp*)
13179 # DJGPP does not support shared libraries at all
13180 lt_prog_compiler_pic_CXX=
13181 ;;
13182 haiku*)
13183 # PIC is the default for Haiku.
13184 # The "-static" flag exists, but is broken.
13185 lt_prog_compiler_static_CXX=
13186 ;;
13187 interix[3-9]*)
13188 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13189 # Instead, we relocate shared libraries at runtime.
13190 ;;
13191 sysv4*MP*)
13192 if test -d /usr/nec; then
13193 lt_prog_compiler_pic_CXX=-Kconform_pic
13194 fi
13195 ;;
13196 hpux*)
13197 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13198 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13199 # sets the default TLS model and affects inlining.
13200 case $host_cpu in
13201 hppa*64*)
13202 ;;
13203 *)
13204 lt_prog_compiler_pic_CXX='-fPIC'
13205 ;;
13206 esac
13207 ;;
13208 *qnx* | *nto*)
13209 # QNX uses GNU C++, but need to define -shared option too, otherwise
13210 # it will coredump.
13211 lt_prog_compiler_pic_CXX='-fPIC -shared'
13212 ;;
13213 *)
13214 lt_prog_compiler_pic_CXX='-fPIC'
13215 ;;
13216 esac
13217 else
13218 case $host_os in
13219 aix[4-9]*)
13220 # All AIX code is PIC.
13221 if test "$host_cpu" = ia64; then
13222 # AIX 5 now supports IA64 processor
13223 lt_prog_compiler_static_CXX='-Bstatic'
13224 else
13225 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13226 fi
13227 ;;
13228 chorus*)
13229 case $cc_basename in
13230 cxch68*)
13231 # Green Hills C++ Compiler
13232 # _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"
13233 ;;
13234 esac
13235 ;;
13236 mingw* | cygwin* | os2* | pw32* | cegcc*)
13237 # This hack is so that the source file can tell whether it is being
13238 # built for inclusion in a dll (and should export symbols for example).
13239 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13240 ;;
13241 dgux*)
13242 case $cc_basename in
13243 ec++*)
13244 lt_prog_compiler_pic_CXX='-KPIC'
13245 ;;
13246 ghcx*)
13247 # Green Hills C++ Compiler
13248 lt_prog_compiler_pic_CXX='-pic'
13249 ;;
13250 *)
13251 ;;
13252 esac
13253 ;;
13254 freebsd* | dragonfly*)
13255 # FreeBSD uses GNU C++
13256 ;;
13257 hpux9* | hpux10* | hpux11*)
13258 case $cc_basename in
13259 CC*)
13260 lt_prog_compiler_wl_CXX='-Wl,'
13261 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13262 if test "$host_cpu" != ia64; then
13263 lt_prog_compiler_pic_CXX='+Z'
13264 fi
13265 ;;
13266 aCC*)
13267 lt_prog_compiler_wl_CXX='-Wl,'
13268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13269 case $host_cpu in
13270 hppa*64*|ia64*)
13271 # +Z the default
13272 ;;
13273 *)
13274 lt_prog_compiler_pic_CXX='+Z'
13275 ;;
13276 esac
13277 ;;
13278 *)
13279 ;;
13280 esac
13281 ;;
13282 interix*)
13283 # This is c89, which is MS Visual C++ (no shared libs)
13284 # Anyone wants to do a port?
13285 ;;
13286 irix5* | irix6* | nonstopux*)
13287 case $cc_basename in
13288 CC*)
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_static_CXX='-non_shared'
13291 # CC pic flag -KPIC is the default.
13292 ;;
13293 *)
13294 ;;
13295 esac
13296 ;;
13297 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13298 case $cc_basename in
13299 KCC*)
13300 # KAI C++ Compiler
13301 lt_prog_compiler_wl_CXX='--backend -Wl,'
13302 lt_prog_compiler_pic_CXX='-fPIC'
13303 ;;
13304 ecpc* )
13305 # old Intel C++ for x86_64 which still supported -KPIC.
13306 lt_prog_compiler_wl_CXX='-Wl,'
13307 lt_prog_compiler_pic_CXX='-KPIC'
13308 lt_prog_compiler_static_CXX='-static'
13309 ;;
13310 icpc* )
13311 # Intel C++, used to be incompatible with GCC.
13312 # ICC 10 doesn't accept -KPIC any more.
13313 lt_prog_compiler_wl_CXX='-Wl,'
13314 lt_prog_compiler_pic_CXX='-fPIC'
13315 lt_prog_compiler_static_CXX='-static'
13316 ;;
13317 pgCC* | pgcpp*)
13318 # Portland Group C++ compiler
13319 lt_prog_compiler_wl_CXX='-Wl,'
13320 lt_prog_compiler_pic_CXX='-fpic'
13321 lt_prog_compiler_static_CXX='-Bstatic'
13322 ;;
13323 cxx*)
13324 # Compaq C++
13325 # Make sure the PIC flag is empty. It appears that all Alpha
13326 # Linux and Compaq Tru64 Unix objects are PIC.
13327 lt_prog_compiler_pic_CXX=
13328 lt_prog_compiler_static_CXX='-non_shared'
13329 ;;
13330 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13331 # IBM XL 8.0, 9.0 on PPC and BlueGene
13332 lt_prog_compiler_wl_CXX='-Wl,'
13333 lt_prog_compiler_pic_CXX='-qpic'
13334 lt_prog_compiler_static_CXX='-qstaticlink'
13335 ;;
13336 *)
13337 case `$CC -V 2>&1 | sed 5q` in
13338 *Sun\ C*)
13339 # Sun C++ 5.9
13340 lt_prog_compiler_pic_CXX='-KPIC'
13341 lt_prog_compiler_static_CXX='-Bstatic'
13342 lt_prog_compiler_wl_CXX='-Qoption ld '
13343 ;;
13344 esac
13345 ;;
13346 esac
13347 ;;
13348 lynxos*)
13349 ;;
13350 m88k*)
13351 ;;
13352 mvs*)
13353 case $cc_basename in
13354 cxx*)
13355 lt_prog_compiler_pic_CXX='-W c,exportall'
13356 ;;
13357 *)
13358 ;;
13359 esac
13360 ;;
13361 netbsd* | netbsdelf*-gnu)
13362 ;;
13363 *qnx* | *nto*)
13364 # QNX uses GNU C++, but need to define -shared option too, otherwise
13365 # it will coredump.
13366 lt_prog_compiler_pic_CXX='-fPIC -shared'
13367 ;;
13368 osf3* | osf4* | osf5*)
13369 case $cc_basename in
13370 KCC*)
13371 lt_prog_compiler_wl_CXX='--backend -Wl,'
13372 ;;
13373 RCC*)
13374 # Rational C++ 2.4.1
13375 lt_prog_compiler_pic_CXX='-pic'
13376 ;;
13377 cxx*)
13378 # Digital/Compaq C++
13379 lt_prog_compiler_wl_CXX='-Wl,'
13380 # Make sure the PIC flag is empty. It appears that all Alpha
13381 # Linux and Compaq Tru64 Unix objects are PIC.
13382 lt_prog_compiler_pic_CXX=
13383 lt_prog_compiler_static_CXX='-non_shared'
13384 ;;
13385 *)
13386 ;;
13387 esac
13388 ;;
13389 psos*)
13390 ;;
13391 solaris*)
13392 case $cc_basename in
13393 CC* | sunCC*)
13394 # Sun C++ 4.2, 5.x and Centerline C++
13395 lt_prog_compiler_pic_CXX='-KPIC'
13396 lt_prog_compiler_static_CXX='-Bstatic'
13397 lt_prog_compiler_wl_CXX='-Qoption ld '
13398 ;;
13399 gcx*)
13400 # Green Hills C++ Compiler
13401 lt_prog_compiler_pic_CXX='-PIC'
13402 ;;
13403 *)
13404 ;;
13405 esac
13406 ;;
13407 sunos4*)
13408 case $cc_basename in
13409 CC*)
13410 # Sun C++ 4.x
13411 lt_prog_compiler_pic_CXX='-pic'
13412 lt_prog_compiler_static_CXX='-Bstatic'
13413 ;;
13414 lcc*)
13415 # Lucid
13416 lt_prog_compiler_pic_CXX='-pic'
13417 ;;
13418 *)
13419 ;;
13420 esac
13421 ;;
13422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13423 case $cc_basename in
13424 CC*)
13425 lt_prog_compiler_wl_CXX='-Wl,'
13426 lt_prog_compiler_pic_CXX='-KPIC'
13427 lt_prog_compiler_static_CXX='-Bstatic'
13428 ;;
13429 esac
13430 ;;
13431 tandem*)
13432 case $cc_basename in
13433 NCC*)
13434 # NonStop-UX NCC 3.20
13435 lt_prog_compiler_pic_CXX='-KPIC'
13436 ;;
13437 *)
13438 ;;
13439 esac
13440 ;;
13441 vxworks*)
13442 ;;
13443 *)
13444 lt_prog_compiler_can_build_shared_CXX=no
13445 ;;
13446 esac
13447 fi
13448
13449case $host_os in
13450 # For platforms which do not support PIC, -DPIC is meaningless:
13451 *djgpp*)
13452 lt_prog_compiler_pic_CXX=
13453 ;;
13454 *)
13455 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13456 ;;
13457esac
13458
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13460$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13461if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463else
13464 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13465fi
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13467$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13468lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13469
13470#
13471# Check to make sure the PIC flag actually works.
13472#
13473if test -n "$lt_prog_compiler_pic_CXX"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13475$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13476if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13477 $as_echo_n "(cached) " >&6
13478else
13479 lt_cv_prog_compiler_pic_works_CXX=no
13480 ac_outfile=conftest.$ac_objext
13481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13482 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13483 # Insert the option either (1) after the last *FLAGS variable, or
13484 # (2) before a word containing "conftest.", or (3) at the end.
13485 # Note that $ac_compile itself does not contain backslashes and begins
13486 # with a dollar sign (not a hyphen), so the echo should work correctly.
13487 # The option is referenced via a variable to avoid confusing sed.
13488 lt_compile=`echo "$ac_compile" | $SED \
13489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13491 -e 's:$: $lt_compiler_flag:'`
13492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13493 (eval "$lt_compile" 2>conftest.err)
13494 ac_status=$?
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 if (exit $ac_status) && test -s "$ac_outfile"; then
13498 # The compiler can only warn and ignore the option if not recognized
13499 # So say no if there are warnings other than the usual output.
13500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13503 lt_cv_prog_compiler_pic_works_CXX=yes
13504 fi
13505 fi
13506 $RM conftest*
13507
13508fi
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13510$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13511
13512if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13513 case $lt_prog_compiler_pic_CXX in
13514 "" | " "*) ;;
13515 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13516 esac
13517else
13518 lt_prog_compiler_pic_CXX=
13519 lt_prog_compiler_can_build_shared_CXX=no
13520fi
13521
13522fi
13523
13524
13525
13526
13527
13528#
13529# Check to make sure the static flag actually works.
13530#
13531wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13533$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13534if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536else
13537 lt_cv_prog_compiler_static_works_CXX=no
13538 save_LDFLAGS="$LDFLAGS"
13539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13540 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13542 # The linker can only warn and ignore the option if not recognized
13543 # So say no if there are warnings
13544 if test -s conftest.err; then
13545 # Append any errors to the config.log.
13546 cat conftest.err 1>&5
13547 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13549 if diff conftest.exp conftest.er2 >/dev/null; then
13550 lt_cv_prog_compiler_static_works_CXX=yes
13551 fi
13552 else
13553 lt_cv_prog_compiler_static_works_CXX=yes
13554 fi
13555 fi
13556 $RM -r conftest*
13557 LDFLAGS="$save_LDFLAGS"
13558
13559fi
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13561$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13562
13563if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13564 :
13565else
13566 lt_prog_compiler_static_CXX=
13567fi
13568
13569
13570
13571
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13573$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13574if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576else
13577 lt_cv_prog_compiler_c_o_CXX=no
13578 $RM -r conftest 2>/dev/null
13579 mkdir conftest
13580 cd conftest
13581 mkdir out
13582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13583
13584 lt_compiler_flag="-o out/conftest2.$ac_objext"
13585 # Insert the option either (1) after the last *FLAGS variable, or
13586 # (2) before a word containing "conftest.", or (3) at the end.
13587 # Note that $ac_compile itself does not contain backslashes and begins
13588 # with a dollar sign (not a hyphen), so the echo should work correctly.
13589 lt_compile=`echo "$ac_compile" | $SED \
13590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13592 -e 's:$: $lt_compiler_flag:'`
13593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13594 (eval "$lt_compile" 2>out/conftest.err)
13595 ac_status=$?
13596 cat out/conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13599 then
13600 # The compiler can only warn and ignore the option if not recognized
13601 # So say no if there are warnings
13602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13605 lt_cv_prog_compiler_c_o_CXX=yes
13606 fi
13607 fi
13608 chmod u+w . 2>&5
13609 $RM conftest*
13610 # SGI C++ compiler will create directory out/ii_files/ for
13611 # template instantiation
13612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13613 $RM out/* && rmdir out
13614 cd ..
13615 $RM -r conftest
13616 $RM conftest*
13617
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13620$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13621
13622
13623
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13625$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13626if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13627 $as_echo_n "(cached) " >&6
13628else
13629 lt_cv_prog_compiler_c_o_CXX=no
13630 $RM -r conftest 2>/dev/null
13631 mkdir conftest
13632 cd conftest
13633 mkdir out
13634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13635
13636 lt_compiler_flag="-o out/conftest2.$ac_objext"
13637 # Insert the option either (1) after the last *FLAGS variable, or
13638 # (2) before a word containing "conftest.", or (3) at the end.
13639 # Note that $ac_compile itself does not contain backslashes and begins
13640 # with a dollar sign (not a hyphen), so the echo should work correctly.
13641 lt_compile=`echo "$ac_compile" | $SED \
13642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13644 -e 's:$: $lt_compiler_flag:'`
13645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13646 (eval "$lt_compile" 2>out/conftest.err)
13647 ac_status=$?
13648 cat out/conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13651 then
13652 # The compiler can only warn and ignore the option if not recognized
13653 # So say no if there are warnings
13654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13657 lt_cv_prog_compiler_c_o_CXX=yes
13658 fi
13659 fi
13660 chmod u+w . 2>&5
13661 $RM conftest*
13662 # SGI C++ compiler will create directory out/ii_files/ for
13663 # template instantiation
13664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13665 $RM out/* && rmdir out
13666 cd ..
13667 $RM -r conftest
13668 $RM conftest*
13669
13670fi
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13672$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13673
13674
13675
13676
13677hard_links="nottested"
13678if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13679 # do not overwrite the value of need_locks provided by the user
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13681$as_echo_n "checking if we can lock with hard links... " >&6; }
13682 hard_links=yes
13683 $RM conftest*
13684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13685 touch conftest.a
13686 ln conftest.a conftest.b 2>&5 || hard_links=no
13687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13689$as_echo "$hard_links" >&6; }
13690 if test "$hard_links" = no; then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13692$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13693 need_locks=warn
13694 fi
13695else
13696 need_locks=no
13697fi
13698
13699
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13702$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13703
13704 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13705 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13706 case $host_os in
13707 aix[4-9]*)
13708 # If we're using GNU nm, then we don't want the "-C" option.
13709 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13710 # Also, AIX nm treats weak defined symbols like other global defined
13711 # symbols, whereas GNU nm marks them as "W".
13712 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13713 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'
13714 else
13715 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'
13716 fi
13717 ;;
13718 pw32*)
13719 export_symbols_cmds_CXX="$ltdll_cmds"
13720 ;;
13721 cygwin* | mingw* | cegcc*)
13722 case $cc_basename in
13723 cl*) ;;
13724 *)
13725 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'
13726 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13727 ;;
13728 esac
13729 ;;
13730 linux* | k*bsd*-gnu | gnu*)
13731 link_all_deplibs_CXX=no
13732 ;;
13733 *)
13734 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13735 ;;
13736 esac
13737
13738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13739$as_echo "$ld_shlibs_CXX" >&6; }
13740test "$ld_shlibs_CXX" = no && can_build_shared=no
13741
13742with_gnu_ld_CXX=$with_gnu_ld
13743
13744
13745
13746
13747
13748
13749#
13750# Do we need to explicitly link libc?
13751#
13752case "x$archive_cmds_need_lc_CXX" in
13753x|xyes)
13754 # Assume -lc should be added
13755 archive_cmds_need_lc_CXX=yes
13756
13757 if test "$enable_shared" = yes && test "$GCC" = yes; then
13758 case $archive_cmds_CXX in
13759 *'~'*)
13760 # FIXME: we may have to deal with multi-command sequences.
13761 ;;
13762 '$CC '*)
13763 # Test whether the compiler implicitly links with -lc since on some
13764 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13765 # to ld, don't add -lc before -lgcc.
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13767$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13768if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770else
13771 $RM conftest*
13772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13773
13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13775 (eval $ac_compile) 2>&5
13776 ac_status=$?
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 test $ac_status = 0; } 2>conftest.err; then
13779 soname=conftest
13780 lib=conftest
13781 libobjs=conftest.$ac_objext
13782 deplibs=
13783 wl=$lt_prog_compiler_wl_CXX
13784 pic_flag=$lt_prog_compiler_pic_CXX
13785 compiler_flags=-v
13786 linker_flags=-v
13787 verstring=
13788 output_objdir=.
13789 libname=conftest
13790 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13791 allow_undefined_flag_CXX=
13792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13793 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13794 ac_status=$?
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796 test $ac_status = 0; }
13797 then
13798 lt_cv_archive_cmds_need_lc_CXX=no
13799 else
13800 lt_cv_archive_cmds_need_lc_CXX=yes
13801 fi
13802 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13803 else
13804 cat conftest.err 1>&5
13805 fi
13806 $RM conftest*
13807
13808fi
13809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13810$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13811 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13812 ;;
13813 esac
13814 fi
13815 ;;
13816esac
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13882$as_echo_n "checking dynamic linker characteristics... " >&6; }
13883
13884library_names_spec=
13885libname_spec='lib$name'
13886soname_spec=
13887shrext_cmds=".so"
13888postinstall_cmds=
13889postuninstall_cmds=
13890finish_cmds=
13891finish_eval=
13892shlibpath_var=
13893shlibpath_overrides_runpath=unknown
13894version_type=none
13895dynamic_linker="$host_os ld.so"
13896sys_lib_dlsearch_path_spec="/lib /usr/lib"
13897need_lib_prefix=unknown
13898hardcode_into_libs=no
13899
13900# when you set need_version to no, make sure it does not cause -set_version
13901# flags to be left without arguments
13902need_version=unknown
13903
13904case $host_os in
13905aix3*)
13906 version_type=linux
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13908 shlibpath_var=LIBPATH
13909
13910 # AIX 3 has no versioning support, so we append a major version to the name.
13911 soname_spec='${libname}${release}${shared_ext}$major'
13912 ;;
13913
13914aix[4-9]*)
13915 version_type=linux
13916 need_lib_prefix=no
13917 need_version=no
13918 hardcode_into_libs=yes
13919 if test "$host_cpu" = ia64; then
13920 # AIX 5 supports IA64
13921 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 else
13924 # With GCC up to 2.95.x, collect2 would create an import file
13925 # for dependence libraries. The import file would start with
13926 # the line `#! .'. This would cause the generated library to
13927 # depend on `.', always an invalid library. This was fixed in
13928 # development snapshots of GCC prior to 3.0.
13929 case $host_os in
13930 aix4 | aix4.[01] | aix4.[01].*)
13931 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13932 echo ' yes '
13933 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13934 :
13935 else
13936 can_build_shared=no
13937 fi
13938 ;;
13939 esac
13940 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13941 # soname into executable. Probably we can add versioning support to
13942 # collect2, so additional links can be useful in future.
13943 if test "$aix_use_runtimelinking" = yes; then
13944 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13945 # instead of lib<name>.a to let people know that these are not
13946 # typical AIX shared libraries.
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13948 else
13949 # We preserve .a as extension for shared libraries through AIX4.2
13950 # and later when we are not doing run time linking.
13951 library_names_spec='${libname}${release}.a $libname.a'
13952 soname_spec='${libname}${release}${shared_ext}$major'
13953 fi
13954 shlibpath_var=LIBPATH
13955 fi
13956 ;;
13957
13958amigaos*)
13959 case $host_cpu in
13960 powerpc)
13961 # Since July 2007 AmigaOS4 officially supports .so libraries.
13962 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 ;;
13965 m68k)
13966 library_names_spec='$libname.ixlibrary $libname.a'
13967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13968 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'
13969 ;;
13970 esac
13971 ;;
13972
13973beos*)
13974 library_names_spec='${libname}${shared_ext}'
13975 dynamic_linker="$host_os ld.so"
13976 shlibpath_var=LIBRARY_PATH
13977 ;;
13978
13979bsdi[45]*)
13980 version_type=linux
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13985 shlibpath_var=LD_LIBRARY_PATH
13986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13988 # the default ld.so.conf also contains /usr/contrib/lib and
13989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13990 # libtool to hard-code these into programs
13991 ;;
13992
13993cygwin* | mingw* | pw32* | cegcc*)
13994 version_type=windows
13995 shrext_cmds=".dll"
13996 need_version=no
13997 need_lib_prefix=no
13998
13999 case $GCC,$cc_basename in
14000 yes,*)
14001 # gcc
14002 library_names_spec='$libname.dll.a'
14003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14004 postinstall_cmds='base_file=`basename \${file}`~
14005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14006 dldir=$destdir/`dirname \$dlpath`~
14007 test -d \$dldir || mkdir -p \$dldir~
14008 $install_prog $dir/$dlname \$dldir/$dlname~
14009 chmod a+x \$dldir/$dlname~
14010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14012 fi'
14013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14014 dlpath=$dir/\$dldll~
14015 $RM \$dlpath'
14016 shlibpath_overrides_runpath=yes
14017
14018 case $host_os in
14019 cygwin*)
14020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14021 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14022
14023 ;;
14024 mingw* | cegcc*)
14025 # MinGW DLLs use traditional 'lib' prefix
14026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14027 ;;
14028 pw32*)
14029 # pw32 DLLs use 'pw' prefix rather than 'lib'
14030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14031 ;;
14032 esac
14033 dynamic_linker='Win32 ld.exe'
14034 ;;
14035
14036 *,cl*)
14037 # Native MSVC
14038 libname_spec='$name'
14039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14040 library_names_spec='${libname}.dll.lib'
14041
14042 case $build_os in
14043 mingw*)
14044 sys_lib_search_path_spec=
14045 lt_save_ifs=$IFS
14046 IFS=';'
14047 for lt_path in $LIB
14048 do
14049 IFS=$lt_save_ifs
14050 # Let DOS variable expansion print the short 8.3 style file name.
14051 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14052 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14053 done
14054 IFS=$lt_save_ifs
14055 # Convert to MSYS style.
14056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14057 ;;
14058 cygwin*)
14059 # Convert to unix form, then to dos form, then back to unix form
14060 # but this time dos style (no spaces!) so that the unix form looks
14061 # like /cygdrive/c/PROGRA~1:/cygdr...
14062 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14063 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14064 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14065 ;;
14066 *)
14067 sys_lib_search_path_spec="$LIB"
14068 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14069 # It is most probably a Windows format PATH.
14070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14071 else
14072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14073 fi
14074 # FIXME: find the short name or the path components, as spaces are
14075 # common. (e.g. "Program Files" -> "PROGRA~1")
14076 ;;
14077 esac
14078
14079 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14080 postinstall_cmds='base_file=`basename \${file}`~
14081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14082 dldir=$destdir/`dirname \$dlpath`~
14083 test -d \$dldir || mkdir -p \$dldir~
14084 $install_prog $dir/$dlname \$dldir/$dlname'
14085 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14086 dlpath=$dir/\$dldll~
14087 $RM \$dlpath'
14088 shlibpath_overrides_runpath=yes
14089 dynamic_linker='Win32 link.exe'
14090 ;;
14091
14092 *)
14093 # Assume MSVC wrapper
14094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14095 dynamic_linker='Win32 ld.exe'
14096 ;;
14097 esac
14098 # FIXME: first we should search . and the directory the executable is in
14099 shlibpath_var=PATH
14100 ;;
14101
14102darwin* | rhapsody*)
14103 dynamic_linker="$host_os dyld"
14104 version_type=darwin
14105 need_lib_prefix=no
14106 need_version=no
14107 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14108 soname_spec='${libname}${release}${major}$shared_ext'
14109 shlibpath_overrides_runpath=yes
14110 shlibpath_var=DYLD_LIBRARY_PATH
14111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14112
14113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14114 ;;
14115
14116dgux*)
14117 version_type=linux
14118 need_lib_prefix=no
14119 need_version=no
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 ;;
14124
14125freebsd1*)
14126 dynamic_linker=no
14127 ;;
14128
14129freebsd* | dragonfly*)
14130 # DragonFly does not have aout. When/if they implement a new
14131 # versioning mechanism, adjust this.
14132 if test -x /usr/bin/objformat; then
14133 objformat=`/usr/bin/objformat`
14134 else
14135 case $host_os in
14136 freebsd[123]*) objformat=aout ;;
14137 *) objformat=elf ;;
14138 esac
14139 fi
14140 version_type=freebsd-$objformat
14141 case $version_type in
14142 freebsd-elf*)
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14144 need_version=no
14145 need_lib_prefix=no
14146 ;;
14147 freebsd-*)
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14149 need_version=yes
14150 ;;
14151 esac
14152 shlibpath_var=LD_LIBRARY_PATH
14153 case $host_os in
14154 freebsd2*)
14155 shlibpath_overrides_runpath=yes
14156 ;;
14157 freebsd3.[01]* | freebsdelf3.[01]*)
14158 shlibpath_overrides_runpath=yes
14159 hardcode_into_libs=yes
14160 ;;
14161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14163 shlibpath_overrides_runpath=no
14164 hardcode_into_libs=yes
14165 ;;
14166 *) # from 4.6 on, and DragonFly
14167 shlibpath_overrides_runpath=yes
14168 hardcode_into_libs=yes
14169 ;;
14170 esac
14171 ;;
14172
14173gnu*)
14174 version_type=linux
14175 need_lib_prefix=no
14176 need_version=no
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 shlibpath_overrides_runpath=no
14181 hardcode_into_libs=yes
14182 ;;
14183
14184haiku*)
14185 version_type=linux
14186 need_lib_prefix=no
14187 need_version=no
14188 dynamic_linker="$host_os runtime_loader"
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14191 shlibpath_var=LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14193 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14194 hardcode_into_libs=yes
14195 ;;
14196
14197hpux9* | hpux10* | hpux11*)
14198 # Give a soname corresponding to the major version so that dld.sl refuses to
14199 # link against other versions.
14200 version_type=sunos
14201 need_lib_prefix=no
14202 need_version=no
14203 case $host_cpu in
14204 ia64*)
14205 shrext_cmds='.so'
14206 hardcode_into_libs=yes
14207 dynamic_linker="$host_os dld.so"
14208 shlibpath_var=LD_LIBRARY_PATH
14209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 if test "X$HPUX_IA64_MODE" = X32; then
14213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14214 else
14215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14216 fi
14217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14218 ;;
14219 hppa*64*)
14220 shrext_cmds='.sl'
14221 hardcode_into_libs=yes
14222 dynamic_linker="$host_os dld.sl"
14223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14229 ;;
14230 *)
14231 shrext_cmds='.sl'
14232 dynamic_linker="$host_os dld.sl"
14233 shlibpath_var=SHLIB_PATH
14234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14236 soname_spec='${libname}${release}${shared_ext}$major'
14237 ;;
14238 esac
14239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14240 postinstall_cmds='chmod 555 $lib'
14241 # or fails outright, so override atomically:
14242 install_override_mode=555
14243 ;;
14244
14245interix[3-9]*)
14246 version_type=linux
14247 need_lib_prefix=no
14248 need_version=no
14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14250 soname_spec='${libname}${release}${shared_ext}$major'
14251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 shlibpath_overrides_runpath=no
14254 hardcode_into_libs=yes
14255 ;;
14256
14257irix5* | irix6* | nonstopux*)
14258 case $host_os in
14259 nonstopux*) version_type=nonstopux ;;
14260 *)
14261 if test "$lt_cv_prog_gnu_ld" = yes; then
14262 version_type=linux
14263 else
14264 version_type=irix
14265 fi ;;
14266 esac
14267 need_lib_prefix=no
14268 need_version=no
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14271 case $host_os in
14272 irix5* | nonstopux*)
14273 libsuff= shlibsuff=
14274 ;;
14275 *)
14276 case $LD in # libtool.m4 will add one of these switches to LD
14277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14278 libsuff= shlibsuff= libmagic=32-bit;;
14279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14280 libsuff=32 shlibsuff=N32 libmagic=N32;;
14281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14283 *) libsuff= shlibsuff= libmagic=never-match;;
14284 esac
14285 ;;
14286 esac
14287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14288 shlibpath_overrides_runpath=no
14289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14291 hardcode_into_libs=yes
14292 ;;
14293
14294# No shared lib support for Linux oldld, aout, or coff.
14295linux*oldld* | linux*aout* | linux*coff*)
14296 dynamic_linker=no
14297 ;;
14298
14299# This must be Linux ELF.
14300linux* | k*bsd*-gnu | kopensolaris*-gnu)
14301 version_type=linux
14302 need_lib_prefix=no
14303 need_version=no
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14307 shlibpath_var=LD_LIBRARY_PATH
14308 shlibpath_overrides_runpath=no
14309
14310 # Some binutils ld are patched to set DT_RUNPATH
14311 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313else
14314 lt_cv_shlibpath_overrides_runpath=no
14315 save_LDFLAGS=$LDFLAGS
14316 save_libdir=$libdir
14317 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14318 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320/* end confdefs.h. */
14321
14322int
14323main ()
14324{
14325
14326 ;
14327 return 0;
14328}
14329_ACEOF
14330if ac_fn_cxx_try_link "$LINENO"; then :
14331 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14332 lt_cv_shlibpath_overrides_runpath=yes
14333fi
14334fi
14335rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LDFLAGS=$save_LDFLAGS
14338 libdir=$save_libdir
14339
14340fi
14341
14342 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14343
14344 # This implies no fast_install, which is unacceptable.
14345 # Some rework will be needed to allow for fast_install
14346 # before this can be enabled.
14347 hardcode_into_libs=yes
14348
14349 # Append ld.so.conf contents to the search path
14350 if test -f /etc/ld.so.conf; then
14351 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' ' '`
14352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14353 fi
14354
14355 # We used to test for /lib/ld.so.1 and disable shared libraries on
14356 # powerpc, because MkLinux only supported shared libraries with the
14357 # GNU dynamic linker. Since this was broken with cross compilers,
14358 # most powerpc-linux boxes support dynamic linking these days and
14359 # people can always --disable-shared, the test was removed, and we
14360 # assume the GNU/Linux dynamic linker is in use.
14361 dynamic_linker='GNU/Linux ld.so'
14362 ;;
14363
14364netbsdelf*-gnu)
14365 version_type=linux
14366 need_lib_prefix=no
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 shlibpath_overrides_runpath=no
14372 hardcode_into_libs=yes
14373 dynamic_linker='NetBSD ld.elf_so'
14374 ;;
14375
14376netbsd*)
14377 version_type=sunos
14378 need_lib_prefix=no
14379 need_version=no
14380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14383 dynamic_linker='NetBSD (a.out) ld.so'
14384 else
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14386 soname_spec='${libname}${release}${shared_ext}$major'
14387 dynamic_linker='NetBSD ld.elf_so'
14388 fi
14389 shlibpath_var=LD_LIBRARY_PATH
14390 shlibpath_overrides_runpath=yes
14391 hardcode_into_libs=yes
14392 ;;
14393
14394newsos6)
14395 version_type=linux
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 shlibpath_var=LD_LIBRARY_PATH
14398 shlibpath_overrides_runpath=yes
14399 ;;
14400
14401*nto* | *qnx*)
14402 version_type=qnx
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 shlibpath_overrides_runpath=no
14409 hardcode_into_libs=yes
14410 dynamic_linker='ldqnx.so'
14411 ;;
14412
14413openbsd*)
14414 version_type=sunos
14415 sys_lib_dlsearch_path_spec="/usr/lib"
14416 need_lib_prefix=no
14417 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14418 case $host_os in
14419 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14420 *) need_version=no ;;
14421 esac
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14424 shlibpath_var=LD_LIBRARY_PATH
14425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14426 case $host_os in
14427 openbsd2.[89] | openbsd2.[89].*)
14428 shlibpath_overrides_runpath=no
14429 ;;
14430 *)
14431 shlibpath_overrides_runpath=yes
14432 ;;
14433 esac
14434 else
14435 shlibpath_overrides_runpath=yes
14436 fi
14437 ;;
14438
14439os2*)
14440 libname_spec='$name'
14441 shrext_cmds=".dll"
14442 need_lib_prefix=no
14443 library_names_spec='$libname${shared_ext} $libname.a'
14444 dynamic_linker='OS/2 ld.exe'
14445 shlibpath_var=LIBPATH
14446 ;;
14447
14448osf3* | osf4* | osf5*)
14449 version_type=osf
14450 need_lib_prefix=no
14451 need_version=no
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14457 ;;
14458
14459rdos*)
14460 dynamic_linker=no
14461 ;;
14462
14463solaris*)
14464 version_type=linux
14465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14471 hardcode_into_libs=yes
14472 # ldd complains unless libraries are executable
14473 postinstall_cmds='chmod +x $lib'
14474 ;;
14475
14476sunos4*)
14477 version_type=sunos
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14482 if test "$with_gnu_ld" = yes; then
14483 need_lib_prefix=no
14484 fi
14485 need_version=yes
14486 ;;
14487
14488sysv4 | sysv4.3*)
14489 version_type=linux
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 case $host_vendor in
14494 sni)
14495 shlibpath_overrides_runpath=no
14496 need_lib_prefix=no
14497 runpath_var=LD_RUN_PATH
14498 ;;
14499 siemens)
14500 need_lib_prefix=no
14501 ;;
14502 motorola)
14503 need_lib_prefix=no
14504 need_version=no
14505 shlibpath_overrides_runpath=no
14506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14507 ;;
14508 esac
14509 ;;
14510
14511sysv4*MP*)
14512 if test -d /usr/nec ;then
14513 version_type=linux
14514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14515 soname_spec='$libname${shared_ext}.$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 fi
14518 ;;
14519
14520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14521 version_type=freebsd-elf
14522 need_lib_prefix=no
14523 need_version=no
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=yes
14528 hardcode_into_libs=yes
14529 if test "$with_gnu_ld" = yes; then
14530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14531 else
14532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14533 case $host_os in
14534 sco3.2v5*)
14535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14536 ;;
14537 esac
14538 fi
14539 sys_lib_dlsearch_path_spec='/usr/lib'
14540 ;;
14541
14542tpf*)
14543 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14544 version_type=linux
14545 need_lib_prefix=no
14546 need_version=no
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550 hardcode_into_libs=yes
14551 ;;
14552
14553uts4*)
14554 version_type=linux
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 ;;
14559
14560*)
14561 dynamic_linker=no
14562 ;;
14563esac
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14565$as_echo "$dynamic_linker" >&6; }
14566test "$dynamic_linker" = no && can_build_shared=no
14567
14568variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14569if test "$GCC" = yes; then
14570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14571fi
14572
14573if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14575fi
14576if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14578fi
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14618$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14619hardcode_action_CXX=
14620if test -n "$hardcode_libdir_flag_spec_CXX" ||
14621 test -n "$runpath_var_CXX" ||
14622 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14623
14624 # We can hardcode non-existent directories.
14625 if test "$hardcode_direct_CXX" != no &&
14626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14627 # have to relink, otherwise we might link with an installed library
14628 # when we should be linking with a yet-to-be-installed one
14629 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14630 test "$hardcode_minus_L_CXX" != no; then
14631 # Linking always hardcodes the temporary library directory.
14632 hardcode_action_CXX=relink
14633 else
14634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14635 hardcode_action_CXX=immediate
14636 fi
14637else
14638 # We cannot hardcode anything, or else we can only hardcode existing
14639 # directories.
14640 hardcode_action_CXX=unsupported
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14643$as_echo "$hardcode_action_CXX" >&6; }
14644
14645if test "$hardcode_action_CXX" = relink ||
14646 test "$inherit_rpath_CXX" = yes; then
14647 # Fast installation is not supported
14648 enable_fast_install=no
14649elif test "$shlibpath_overrides_runpath" = yes ||
14650 test "$enable_shared" = no; then
14651 # Fast installation is not necessary
14652 enable_fast_install=needless
14653fi
14654
14655
14656
14657
14658
14659
14660
14661 fi # test -n "$compiler"
14662
14663 CC=$lt_save_CC
14664 CFLAGS=$lt_save_CFLAGS
14665 LDCXX=$LD
14666 LD=$lt_save_LD
14667 GCC=$lt_save_GCC
14668 with_gnu_ld=$lt_save_with_gnu_ld
14669 lt_cv_path_LDCXX=$lt_cv_path_LD
14670 lt_cv_path_LD=$lt_save_path_LD
14671 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14672 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14673fi # test "$_lt_caught_CXX_error" != yes
14674
14675ac_ext=c
14676ac_cpp='$CPP $CPPFLAGS'
14677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14679ac_compiler_gnu=$ac_cv_c_compiler_gnu
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693 ac_config_commands="$ac_config_commands libtool"
14694
14695
14696
14697
14698# Only expand once:
14699
14700
14701am__api_version='1.11'
14702
14703# Find a good install program. We prefer a C program (faster),
14704# so one script is as good as another. But avoid the broken or
14705# incompatible versions:
14706# SysV /etc/install, /usr/sbin/install
14707# SunOS /usr/etc/install
14708# IRIX /sbin/install
14709# AIX /bin/install
14710# AmigaOS /C/install, which installs bootblocks on floppy discs
14711# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14712# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14713# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14714# OS/2's system install, which has a completely different semantic
14715# ./install, which can be erroneously created by make from ./install.sh.
14716# Reject install programs that cannot install multiple files.
14717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14718$as_echo_n "checking for a BSD-compatible install... " >&6; }
14719if test -z "$INSTALL"; then
14720if ${ac_cv_path_install+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722else
14723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724for as_dir in $PATH
14725do
14726 IFS=$as_save_IFS
14727 test -z "$as_dir" && as_dir=.
14728 # Account for people who put trailing slashes in PATH elements.
14729case $as_dir/ in #((
14730 ./ | .// | /[cC]/* | \
14731 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14732 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14733 /usr/ucb/* ) ;;
14734 *)
14735 # OSF1 and SCO ODT 3.0 have their own names for install.
14736 # Don't use installbsd from OSF since it installs stuff as root
14737 # by default.
14738 for ac_prog in ginstall scoinst install; do
14739 for ac_exec_ext in '' $ac_executable_extensions; do
14740 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14741 if test $ac_prog = install &&
14742 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14743 # AIX install. It has an incompatible calling convention.
14744 :
14745 elif test $ac_prog = install &&
14746 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14747 # program-specific install script used by HP pwplus--don't use.
14748 :
14749 else
14750 rm -rf conftest.one conftest.two conftest.dir
14751 echo one > conftest.one
14752 echo two > conftest.two
14753 mkdir conftest.dir
14754 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14755 test -s conftest.one && test -s conftest.two &&
14756 test -s conftest.dir/conftest.one &&
14757 test -s conftest.dir/conftest.two
14758 then
14759 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14760 break 3
14761 fi
14762 fi
14763 fi
14764 done
14765 done
14766 ;;
14767esac
14768
14769 done
14770IFS=$as_save_IFS
14771
14772rm -rf conftest.one conftest.two conftest.dir
14773
14774fi
14775 if test "${ac_cv_path_install+set}" = set; then
14776 INSTALL=$ac_cv_path_install
14777 else
14778 # As a last resort, use the slow shell script. Don't cache a
14779 # value for INSTALL within a source directory, because that will
14780 # break other packages using the cache if that directory is
14781 # removed, or if the value is a relative name.
14782 INSTALL=$ac_install_sh
14783 fi
14784fi
14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14786$as_echo "$INSTALL" >&6; }
14787
14788# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14789# It thinks the first close brace ends the variable substitution.
14790test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14791
14792test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14793
14794test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14795
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14797$as_echo_n "checking whether build environment is sane... " >&6; }
14798# Just in case
14799sleep 1
14800echo timestamp > conftest.file
14801# Reject unsafe characters in $srcdir or the absolute working directory
14802# name. Accept space and tab only in the latter.
14803am_lf='
14804'
14805case `pwd` in
14806 *[\\\"\#\$\&\'\`$am_lf]*)
14807 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
14808esac
14809case $srcdir in
14810 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14811 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14812esac
14813
14814# Do `set' in a subshell so we don't clobber the current shell's
14815# arguments. Must try -L first in case configure is actually a
14816# symlink; some systems play weird games with the mod time of symlinks
14817# (eg FreeBSD returns the mod time of the symlink's containing
14818# directory).
14819if (
14820 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14821 if test "$*" = "X"; then
14822 # -L didn't work.
14823 set X `ls -t "$srcdir/configure" conftest.file`
14824 fi
14825 rm -f conftest.file
14826 if test "$*" != "X $srcdir/configure conftest.file" \
14827 && test "$*" != "X conftest.file $srcdir/configure"; then
14828
14829 # If neither matched, then we have a broken ls. This can happen
14830 # if, for instance, CONFIG_SHELL is bash and it inherits a
14831 # broken ls alias from the environment. This has actually
14832 # happened. Such a system could not be considered "sane".
14833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
14834alias in your environment" "$LINENO" 5
14835 fi
14836
14837 test "$2" = conftest.file
14838 )
14839then
14840 # Ok.
14841 :
14842else
14843 as_fn_error $? "newly created file is older than distributed files!
14844Check your system clock" "$LINENO" 5
14845fi
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14847$as_echo "yes" >&6; }
14848test "$program_prefix" != NONE &&
14849 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14850# Use a double $ so make ignores it.
14851test "$program_suffix" != NONE &&
14852 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14853# Double any \ or $.
14854# By default was `s,x,x', remove it if useless.
14855ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14856program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14857
14858# expand $ac_aux_dir to an absolute path
14859am_aux_dir=`cd $ac_aux_dir && pwd`
14860
14861if test x"${MISSING+set}" != xset; then
14862 case $am_aux_dir in
14863 *\ * | *\ *)
14864 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14865 *)
14866 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14867 esac
14868fi
14869# Use eval to expand $SHELL
14870if eval "$MISSING --run true"; then
14871 am_missing_run="$MISSING --run "
14872else
14873 am_missing_run=
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14875$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14876fi
14877
14878if test x"${install_sh}" != xset; then
14879 case $am_aux_dir in
14880 *\ * | *\ *)
14881 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14882 *)
14883 install_sh="\${SHELL} $am_aux_dir/install-sh"
14884 esac
14885fi
14886
14887# Installed binaries are usually stripped using `strip' when the user
14888# run `make install-strip'. However `strip' might not be the right
14889# tool to use in cross-compilation environments, therefore Automake
14890# will honor the `STRIP' environment variable to overrule this program.
14891if test "$cross_compiling" != no; then
14892 if test -n "$ac_tool_prefix"; then
14893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14894set dummy ${ac_tool_prefix}strip; ac_word=$2
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14896$as_echo_n "checking for $ac_word... " >&6; }
14897if ${ac_cv_prog_STRIP+:} false; then :
14898 $as_echo_n "(cached) " >&6
14899else
14900 if test -n "$STRIP"; then
14901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14902else
14903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904for as_dir in $PATH
14905do
14906 IFS=$as_save_IFS
14907 test -z "$as_dir" && as_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14912 break 2
14913 fi
14914done
14915 done
14916IFS=$as_save_IFS
14917
14918fi
14919fi
14920STRIP=$ac_cv_prog_STRIP
14921if test -n "$STRIP"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14923$as_echo "$STRIP" >&6; }
14924else
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14926$as_echo "no" >&6; }
14927fi
14928
14929
14930fi
14931if test -z "$ac_cv_prog_STRIP"; then
14932 ac_ct_STRIP=$STRIP
14933 # Extract the first word of "strip", so it can be a program name with args.
14934set dummy strip; ac_word=$2
14935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14936$as_echo_n "checking for $ac_word... " >&6; }
14937if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939else
14940 if test -n "$ac_ct_STRIP"; then
14941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14942else
14943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14944for as_dir in $PATH
14945do
14946 IFS=$as_save_IFS
14947 test -z "$as_dir" && as_dir=.
14948 for ac_exec_ext in '' $ac_executable_extensions; do
14949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14950 ac_cv_prog_ac_ct_STRIP="strip"
14951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14952 break 2
14953 fi
14954done
14955 done
14956IFS=$as_save_IFS
14957
14958fi
14959fi
14960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14961if test -n "$ac_ct_STRIP"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14963$as_echo "$ac_ct_STRIP" >&6; }
14964else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966$as_echo "no" >&6; }
14967fi
14968
14969 if test "x$ac_ct_STRIP" = x; then
14970 STRIP=":"
14971 else
14972 case $cross_compiling:$ac_tool_warned in
14973yes:)
14974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14976ac_tool_warned=yes ;;
14977esac
14978 STRIP=$ac_ct_STRIP
14979 fi
14980else
14981 STRIP="$ac_cv_prog_STRIP"
14982fi
14983
14984fi
14985INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14986
14987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14988$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14989if test -z "$MKDIR_P"; then
14990 if ${ac_cv_path_mkdir+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992else
14993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14995do
14996 IFS=$as_save_IFS
14997 test -z "$as_dir" && as_dir=.
14998 for ac_prog in mkdir gmkdir; do
14999 for ac_exec_ext in '' $ac_executable_extensions; do
15000 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
15001 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15002 'mkdir (GNU coreutils) '* | \
15003 'mkdir (coreutils) '* | \
15004 'mkdir (fileutils) '4.1*)
15005 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15006 break 3;;
15007 esac
15008 done
15009 done
15010 done
15011IFS=$as_save_IFS
15012
15013fi
15014
15015 test -d ./--version && rmdir ./--version
15016 if test "${ac_cv_path_mkdir+set}" = set; then
15017 MKDIR_P="$ac_cv_path_mkdir -p"
15018 else
15019 # As a last resort, use the slow shell script. Don't cache a
15020 # value for MKDIR_P within a source directory, because that will
15021 # break other packages using the cache if that directory is
15022 # removed, or if the value is a relative name.
15023 MKDIR_P="$ac_install_sh -d"
15024 fi
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
15027$as_echo "$MKDIR_P" >&6; }
15028
15029mkdir_p="$MKDIR_P"
15030case $mkdir_p in
15031 [\\/$]* | ?:[\\/]*) ;;
15032 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15033esac
15034
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15036$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15037set x ${MAKE-make}
15038ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15039if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15040 $as_echo_n "(cached) " >&6
15041else
15042 cat >conftest.make <<\_ACEOF
15043SHELL = /bin/sh
15044all:
15045 @echo '@@@%%%=$(MAKE)=@@@%%%'
15046_ACEOF
15047# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15048case `${MAKE-make} -f conftest.make 2>/dev/null` in
15049 *@@@%%%=?*=@@@%%%*)
15050 eval ac_cv_prog_make_${ac_make}_set=yes;;
15051 *)
15052 eval ac_cv_prog_make_${ac_make}_set=no;;
15053esac
15054rm -f conftest.make
15055fi
15056if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15058$as_echo "yes" >&6; }
15059 SET_MAKE=
15060else
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15062$as_echo "no" >&6; }
15063 SET_MAKE="MAKE=${MAKE-make}"
15064fi
15065
15066rm -rf .tst 2>/dev/null
15067mkdir .tst 2>/dev/null
15068if test -d .tst; then
15069 am__leading_dot=.
15070else
15071 am__leading_dot=_
15072fi
15073rmdir .tst 2>/dev/null
15074
15075DEPDIR="${am__leading_dot}deps"
15076
15077ac_config_commands="$ac_config_commands depfiles"
15078
15079
15080am_make=${MAKE-make}
15081cat > confinc << 'END'
15082am__doit:
15083 @echo this is the am__doit target
15084.PHONY: am__doit
15085END
15086# If we don't find an include directive, just comment out the code.
15087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15088$as_echo_n "checking for style of include used by $am_make... " >&6; }
15089am__include="#"
15090am__quote=
15091_am_result=none
15092# First try GNU make style include.
15093echo "include confinc" > confmf
15094# Ignore all kinds of additional output from `make'.
15095case `$am_make -s -f confmf 2> /dev/null` in #(
15096*the\ am__doit\ target*)
15097 am__include=include
15098 am__quote=
15099 _am_result=GNU
15100 ;;
15101esac
15102# Now try BSD make style include.
15103if test "$am__include" = "#"; then
15104 echo '.include "confinc"' > confmf
15105 case `$am_make -s -f confmf 2> /dev/null` in #(
15106 *the\ am__doit\ target*)
15107 am__include=.include
15108 am__quote="\""
15109 _am_result=BSD
15110 ;;
15111 esac
15112fi
15113
15114
15115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15116$as_echo "$_am_result" >&6; }
15117rm -f confinc confmf
15118
15119# Check whether --enable-dependency-tracking was given.
15120if test "${enable_dependency_tracking+set}" = set; then :
15121 enableval=$enable_dependency_tracking;
15122fi
15123
15124if test "x$enable_dependency_tracking" != xno; then
15125 am_depcomp="$ac_aux_dir/depcomp"
15126 AMDEPBACKSLASH='\'
15127fi
15128 if test "x$enable_dependency_tracking" != xno; then
15129 AMDEP_TRUE=
15130 AMDEP_FALSE='#'
15131else
15132 AMDEP_TRUE='#'
15133 AMDEP_FALSE=
15134fi
15135
15136
15137if test "`cd $srcdir && pwd`" != "`pwd`"; then
15138 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15139 # is not polluted with repeated "-I."
15140 am__isrc=' -I$(srcdir)'
15141 # test to see if srcdir already configured
15142 if test -f $srcdir/config.status; then
15143 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15144 fi
15145fi
15146
15147# test whether we have cygpath
15148if test -z "$CYGPATH_W"; then
15149 if (cygpath --version) >/dev/null 2>/dev/null; then
15150 CYGPATH_W='cygpath -w'
15151 else
15152 CYGPATH_W=echo
15153 fi
15154fi
15155
15156
15157# Define the identity of the package.
15158 PACKAGE=ccrtp
15159 VERSION=$VERSION
15160
15161
15162cat >>confdefs.h <<_ACEOF
15163#define PACKAGE "$PACKAGE"
15164_ACEOF
15165
15166
15167cat >>confdefs.h <<_ACEOF
15168#define VERSION "$VERSION"
15169_ACEOF
15170
15171# Some tools Automake needs.
15172
15173ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15174
15175
15176AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15177
15178
15179AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15180
15181
15182AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15183
15184
15185MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15186
15187# We need awk for the "check" target. The system "awk" is bad on
15188# some platforms.
15189# Always define AMTAR for backward compatibility.
15190
15191AMTAR=${AMTAR-"${am_missing_run}tar"}
15192
15193am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15194
15195
15196
15197
15198depcc="$CC" am_compiler_list=
15199
15200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15201$as_echo_n "checking dependency style of $depcc... " >&6; }
15202if ${am_cv_CC_dependencies_compiler_type+:} false; then :
15203 $as_echo_n "(cached) " >&6
15204else
15205 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15206 # We make a subdir and do the tests there. Otherwise we can end up
15207 # making bogus files that we don't know about and never remove. For
15208 # instance it was reported that on HP-UX the gcc test will end up
15209 # making a dummy file named `D' -- because `-MD' means `put the output
15210 # in D'.
15211 mkdir conftest.dir
15212 # Copy depcomp to subdir because otherwise we won't find it if we're
15213 # using a relative directory.
15214 cp "$am_depcomp" conftest.dir
15215 cd conftest.dir
15216 # We will build objects and dependencies in a subdirectory because
15217 # it helps to detect inapplicable dependency modes. For instance
15218 # both Tru64's cc and ICC support -MD to output dependencies as a
15219 # side effect of compilation, but ICC will put the dependencies in
15220 # the current directory while Tru64 will put them in the object
15221 # directory.
15222 mkdir sub
15223
15224 am_cv_CC_dependencies_compiler_type=none
15225 if test "$am_compiler_list" = ""; then
15226 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15227 fi
15228 am__universal=false
15229 case " $depcc " in #(
15230 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15231 esac
15232
15233 for depmode in $am_compiler_list; do
15234 # Setup a source with many dependencies, because some compilers
15235 # like to wrap large dependency lists on column 80 (with \), and
15236 # we should not choose a depcomp mode which is confused by this.
15237 #
15238 # We need to recreate these files for each test, as the compiler may
15239 # overwrite some of them when testing with obscure command lines.
15240 # This happens at least with the AIX C compiler.
15241 : > sub/conftest.c
15242 for i in 1 2 3 4 5 6; do
15243 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15244 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15245 # Solaris 8's {/usr,}/bin/sh.
15246 touch sub/conftst$i.h
15247 done
15248 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15249
15250 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15251 # mode. It turns out that the SunPro C++ compiler does not properly
15252 # handle `-M -o', and we need to detect this. Also, some Intel
15253 # versions had trouble with output in subdirs
15254 am__obj=sub/conftest.${OBJEXT-o}
15255 am__minus_obj="-o $am__obj"
15256 case $depmode in
15257 gcc)
15258 # This depmode causes a compiler race in universal mode.
15259 test "$am__universal" = false || continue
15260 ;;
15261 nosideeffect)
15262 # after this tag, mechanisms are not by side-effect, so they'll
15263 # only be used when explicitly requested
15264 if test "x$enable_dependency_tracking" = xyes; then
15265 continue
15266 else
15267 break
15268 fi
15269 ;;
15270 msvisualcpp | msvcmsys)
15271 # This compiler won't grok `-c -o', but also, the minuso test has
15272 # not run yet. These depmodes are late enough in the game, and
15273 # so weak that their functioning should not be impacted.
15274 am__obj=conftest.${OBJEXT-o}
15275 am__minus_obj=
15276 ;;
15277 none) break ;;
15278 esac
15279 if depmode=$depmode \
15280 source=sub/conftest.c object=$am__obj \
15281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15282 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15283 >/dev/null 2>conftest.err &&
15284 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15285 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15286 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15287 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15288 # icc doesn't choke on unknown options, it will just issue warnings
15289 # or remarks (even with -Werror). So we grep stderr for any message
15290 # that says an option was ignored or not supported.
15291 # When given -MP, icc 7.0 and 7.1 complain thusly:
15292 # icc: Command line warning: ignoring option '-M'; no argument required
15293 # The diagnosis changed in icc 8.0:
15294 # icc: Command line remark: option '-MP' not supported
15295 if (grep 'ignoring option' conftest.err ||
15296 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15297 am_cv_CC_dependencies_compiler_type=$depmode
15298 break
15299 fi
15300 fi
15301 done
15302
15303 cd ..
15304 rm -rf conftest.dir
15305else
15306 am_cv_CC_dependencies_compiler_type=none
15307fi
15308
15309fi
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15311$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15312CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15313
15314 if
15315 test "x$enable_dependency_tracking" != xno \
15316 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15317 am__fastdepCC_TRUE=
15318 am__fastdepCC_FALSE='#'
15319else
15320 am__fastdepCC_TRUE='#'
15321 am__fastdepCC_FALSE=
15322fi
15323
15324
15325depcc="$CXX" am_compiler_list=
15326
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15328$as_echo_n "checking dependency style of $depcc... " >&6; }
15329if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
15330 $as_echo_n "(cached) " >&6
15331else
15332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15333 # We make a subdir and do the tests there. Otherwise we can end up
15334 # making bogus files that we don't know about and never remove. For
15335 # instance it was reported that on HP-UX the gcc test will end up
15336 # making a dummy file named `D' -- because `-MD' means `put the output
15337 # in D'.
15338 mkdir conftest.dir
15339 # Copy depcomp to subdir because otherwise we won't find it if we're
15340 # using a relative directory.
15341 cp "$am_depcomp" conftest.dir
15342 cd conftest.dir
15343 # We will build objects and dependencies in a subdirectory because
15344 # it helps to detect inapplicable dependency modes. For instance
15345 # both Tru64's cc and ICC support -MD to output dependencies as a
15346 # side effect of compilation, but ICC will put the dependencies in
15347 # the current directory while Tru64 will put them in the object
15348 # directory.
15349 mkdir sub
15350
15351 am_cv_CXX_dependencies_compiler_type=none
15352 if test "$am_compiler_list" = ""; then
15353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15354 fi
15355 am__universal=false
15356 case " $depcc " in #(
15357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15358 esac
15359
15360 for depmode in $am_compiler_list; do
15361 # Setup a source with many dependencies, because some compilers
15362 # like to wrap large dependency lists on column 80 (with \), and
15363 # we should not choose a depcomp mode which is confused by this.
15364 #
15365 # We need to recreate these files for each test, as the compiler may
15366 # overwrite some of them when testing with obscure command lines.
15367 # This happens at least with the AIX C compiler.
15368 : > sub/conftest.c
15369 for i in 1 2 3 4 5 6; do
15370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15371 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15372 # Solaris 8's {/usr,}/bin/sh.
15373 touch sub/conftst$i.h
15374 done
15375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15376
15377 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15378 # mode. It turns out that the SunPro C++ compiler does not properly
15379 # handle `-M -o', and we need to detect this. Also, some Intel
15380 # versions had trouble with output in subdirs
15381 am__obj=sub/conftest.${OBJEXT-o}
15382 am__minus_obj="-o $am__obj"
15383 case $depmode in
15384 gcc)
15385 # This depmode causes a compiler race in universal mode.
15386 test "$am__universal" = false || continue
15387 ;;
15388 nosideeffect)
15389 # after this tag, mechanisms are not by side-effect, so they'll
15390 # only be used when explicitly requested
15391 if test "x$enable_dependency_tracking" = xyes; then
15392 continue
15393 else
15394 break
15395 fi
15396 ;;
15397 msvisualcpp | msvcmsys)
15398 # This compiler won't grok `-c -o', but also, the minuso test has
15399 # not run yet. These depmodes are late enough in the game, and
15400 # so weak that their functioning should not be impacted.
15401 am__obj=conftest.${OBJEXT-o}
15402 am__minus_obj=
15403 ;;
15404 none) break ;;
15405 esac
15406 if depmode=$depmode \
15407 source=sub/conftest.c object=$am__obj \
15408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15410 >/dev/null 2>conftest.err &&
15411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15415 # icc doesn't choke on unknown options, it will just issue warnings
15416 # or remarks (even with -Werror). So we grep stderr for any message
15417 # that says an option was ignored or not supported.
15418 # When given -MP, icc 7.0 and 7.1 complain thusly:
15419 # icc: Command line warning: ignoring option '-M'; no argument required
15420 # The diagnosis changed in icc 8.0:
15421 # icc: Command line remark: option '-MP' not supported
15422 if (grep 'ignoring option' conftest.err ||
15423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15424 am_cv_CXX_dependencies_compiler_type=$depmode
15425 break
15426 fi
15427 fi
15428 done
15429
15430 cd ..
15431 rm -rf conftest.dir
15432else
15433 am_cv_CXX_dependencies_compiler_type=none
15434fi
15435
15436fi
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15438$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15439CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15440
15441 if
15442 test "x$enable_dependency_tracking" != xno \
15443 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15444 am__fastdepCXX_TRUE=
15445 am__fastdepCXX_FALSE='#'
15446else
15447 am__fastdepCXX_TRUE='#'
15448 am__fastdepCXX_FALSE=
15449fi
15450
15451
15452
15453ac_config_headers="$ac_config_headers src/config.h"
15454
15455
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15457$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15458if ${ac_cv_c_restrict+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460else
15461 ac_cv_c_restrict=no
15462 # The order here caters to the fact that C++ does not require restrict.
15463 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465/* end confdefs.h. */
15466typedef int * int_ptr;
15467 int foo (int_ptr $ac_kw ip) {
15468 return ip[0];
15469 }
15470int
15471main ()
15472{
15473int s[1];
15474 int * $ac_kw t = s;
15475 t[0] = 0;
15476 return foo(t)
15477 ;
15478 return 0;
15479}
15480_ACEOF
15481if ac_fn_c_try_compile "$LINENO"; then :
15482 ac_cv_c_restrict=$ac_kw
15483fi
15484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485 test "$ac_cv_c_restrict" != no && break
15486 done
15487
15488fi
15489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15490$as_echo "$ac_cv_c_restrict" >&6; }
15491
15492 case $ac_cv_c_restrict in
15493 restrict) ;;
15494 no) $as_echo "#define restrict /**/" >>confdefs.h
15495 ;;
15496 *) cat >>confdefs.h <<_ACEOF
15497#define restrict $ac_cv_c_restrict
15498_ACEOF
15499 ;;
15500 esac
15501
15502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15503$as_echo_n "checking for working volatile... " >&6; }
15504if ${ac_cv_c_volatile+:} false; then :
15505 $as_echo_n "(cached) " >&6
15506else
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h. */
15509
15510int
15511main ()
15512{
15513
15514volatile int x;
15515int * volatile y = (int *) 0;
15516return !x && !y;
15517 ;
15518 return 0;
15519}
15520_ACEOF
15521if ac_fn_c_try_compile "$LINENO"; then :
15522 ac_cv_c_volatile=yes
15523else
15524 ac_cv_c_volatile=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527fi
15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15529$as_echo "$ac_cv_c_volatile" >&6; }
15530if test $ac_cv_c_volatile = no; then
15531
15532$as_echo "#define volatile /**/" >>confdefs.h
15533
15534fi
15535
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15537$as_echo_n "checking for inline... " >&6; }
15538if ${ac_cv_c_inline+:} false; then :
15539 $as_echo_n "(cached) " >&6
15540else
15541 ac_cv_c_inline=no
15542for ac_kw in inline __inline__ __inline; do
15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544/* end confdefs.h. */
15545#ifndef __cplusplus
15546typedef int foo_t;
15547static $ac_kw foo_t static_foo () {return 0; }
15548$ac_kw foo_t foo () {return 0; }
15549#endif
15550
15551_ACEOF
15552if ac_fn_c_try_compile "$LINENO"; then :
15553 ac_cv_c_inline=$ac_kw
15554fi
15555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15556 test "$ac_cv_c_inline" != no && break
15557done
15558
15559fi
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15561$as_echo "$ac_cv_c_inline" >&6; }
15562
15563case $ac_cv_c_inline in
15564 inline | yes) ;;
15565 *)
15566 case $ac_cv_c_inline in
15567 no) ac_val=;;
15568 *) ac_val=$ac_cv_c_inline;;
15569 esac
15570 cat >>confdefs.h <<_ACEOF
15571#ifndef __cplusplus
15572#define inline $ac_val
15573#endif
15574_ACEOF
15575 ;;
15576esac
15577
15578
15579if test -z "$PKG_CONFIG_PATH" ; then
15580 PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
15581fi
15582
15583if test "$prefix" != "NONE" ; then
15584 PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
15585fi
15586
15587export PKG_CONFIG_PATH
15588
15589# use "-no-undefined" on Cygwin to force (trigger) libtool to create
15590# the shared lib. If this is not set this library
15591# is not created. Be sure that the LIBS variable above contains _all_
15592# libraries necessary to build ours, Cygwin does not allow undefined
15593# symbols.
15594case $host in
15595# *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15596 *-*-cygwin*)
15597 LDFLAGS="$LDFLAGS -no-undefined"
15598 ;;
15599 *)
15600 ;;
15601esac
15602
15603# SRTP support
15604# Check whether --enable-srtp was given.
15605if test "${enable_srtp+set}" = set; then :
15606 enableval=$enable_srtp;
15607fi
15608
15609if test -z "$enable_srtp"; then
15610 enable_srtp="yes"
15611
15612$as_echo "#define SRTP_SUPPORT /**/" >>confdefs.h
15613
15614fi
15615
15616 if test "$openssl" = "true"; then
15617 SRTP_OPENSSL_TRUE=
15618 SRTP_OPENSSL_FALSE='#'
15619else
15620 SRTP_OPENSSL_TRUE='#'
15621 SRTP_OPENSSL_FALSE=
15622fi
15623
15624 if test "$gcrypt" = "true"; then
15625 SRTP_GCRYPT_TRUE=
15626 SRTP_GCRYPT_FALSE='#'
15627else
15628 SRTP_GCRYPT_TRUE='#'
15629 SRTP_GCRYPT_FALSE=
15630fi
15631
15632# availability of gcrypt or openSSL crypto library if SRTP support is enabled
15633if test "${enable_srtp}" = "yes"
15634then
15635 openssl="false"
15636 gcrypt="false"
15637
15638# Check whether --with-libgcrypt-prefix was given.
15639if test "${with_libgcrypt_prefix+set}" = set; then :
15640 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
15641else
15642 libgcrypt_config_prefix=""
15643fi
15644
15645 if test x$libgcrypt_config_prefix != x ; then
15646 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
15647 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
15648 fi
15649 fi
15650
15651 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
15652set dummy libgcrypt-config; ac_word=$2
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15654$as_echo_n "checking for $ac_word... " >&6; }
15655if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
15656 $as_echo_n "(cached) " >&6
15657else
15658 case $LIBGCRYPT_CONFIG in
15659 [\\/]* | ?:[\\/]*)
15660 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
15661 ;;
15662 *)
15663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664for as_dir in $PATH
15665do
15666 IFS=$as_save_IFS
15667 test -z "$as_dir" && as_dir=.
15668 for ac_exec_ext in '' $ac_executable_extensions; do
15669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15670 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15672 break 2
15673 fi
15674done
15675 done
15676IFS=$as_save_IFS
15677
15678 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
15679 ;;
15680esac
15681fi
15682LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
15683if test -n "$LIBGCRYPT_CONFIG"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
15685$as_echo "$LIBGCRYPT_CONFIG" >&6; }
15686else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688$as_echo "no" >&6; }
15689fi
15690
15691
15692 tmp=1:1.2.3
15693 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
15694 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
15695 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
15696 else
15697 req_libgcrypt_api=0
15698 min_libgcrypt_version="$tmp"
15699 fi
15700
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
15702$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
15703 ok=no
15704 if test "$LIBGCRYPT_CONFIG" != "no" ; then
15705 req_major=`echo $min_libgcrypt_version | \
15706 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
15707 req_minor=`echo $min_libgcrypt_version | \
15708 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
15709 req_micro=`echo $min_libgcrypt_version | \
15710 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
15711 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
15712 major=`echo $libgcrypt_config_version | \
15713 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
15714 minor=`echo $libgcrypt_config_version | \
15715 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
15716 micro=`echo $libgcrypt_config_version | \
15717 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
15718 if test "$major" -gt "$req_major"; then
15719 ok=yes
15720 else
15721 if test "$major" -eq "$req_major"; then
15722 if test "$minor" -gt "$req_minor"; then
15723 ok=yes
15724 else
15725 if test "$minor" -eq "$req_minor"; then
15726 if test "$micro" -ge "$req_micro"; then
15727 ok=yes
15728 fi
15729 fi
15730 fi
15731 fi
15732 fi
15733 fi
15734 if test $ok = yes; then
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
15736$as_echo "yes ($libgcrypt_config_version)" >&6; }
15737 else
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15739$as_echo "no" >&6; }
15740 fi
15741 if test $ok = yes; then
15742 # If we have a recent libgcrypt, we should also check that the
15743 # API is compatible
15744 if test "$req_libgcrypt_api" -gt 0 ; then
15745 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
15746 if test "$tmp" -gt 0 ; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
15748$as_echo_n "checking LIBGCRYPT API version... " >&6; }
15749 if test "$req_libgcrypt_api" -eq "$tmp" ; then
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
15751$as_echo "okay" >&6; }
15752 else
15753 ok=no
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
15755$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
15756 fi
15757 fi
15758 fi
15759 fi
15760 if test $ok = yes; then
15761 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
15762 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
15763 for ac_header in gcrypt.h
15764do :
15765 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
15766if test "x$ac_cv_header_gcrypt_h" = xyes; then :
15767 cat >>confdefs.h <<_ACEOF
15768#define HAVE_GCRYPT_H 1
15769_ACEOF
15770
15771else
15772 as_fn_error $? "libgcrypt headers not found." "$LINENO" 5
15773fi
15774
15775done
15776
15777 LIBS="$LIBGCRYPT_LIBS $LIBS"
15778 gcrypt="true"
15779
15780 else
15781 LIBGCRYPT_CFLAGS=""
15782 LIBGCRYPT_LIBS=""
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5
15784$as_echo_n "checking for EVP_CipherInit_ex in -lcrypto... " >&6; }
15785if ${ac_cv_lib_crypto_EVP_CipherInit_ex+:} false; then :
15786 $as_echo_n "(cached) " >&6
15787else
15788 ac_check_lib_save_LIBS=$LIBS
15789LIBS="-lcrypto $LIBS"
15790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791/* end confdefs.h. */
15792
15793/* Override any GCC internal prototype to avoid an error.
15794 Use char because int might match the return type of a GCC
15795 builtin and then its argument prototype would still apply. */
15796#ifdef __cplusplus
15797extern "C"
15798#endif
15799char EVP_CipherInit_ex ();
15800int
15801main ()
15802{
15803return EVP_CipherInit_ex ();
15804 ;
15805 return 0;
15806}
15807_ACEOF
15808if ac_fn_c_try_link "$LINENO"; then :
15809 ac_cv_lib_crypto_EVP_CipherInit_ex=yes
15810else
15811 ac_cv_lib_crypto_EVP_CipherInit_ex=no
15812fi
15813rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15815LIBS=$ac_check_lib_save_LIBS
15816fi
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CipherInit_ex" >&5
15818$as_echo "$ac_cv_lib_crypto_EVP_CipherInit_ex" >&6; }
15819if test "x$ac_cv_lib_crypto_EVP_CipherInit_ex" = xyes; then :
15820 for ac_header in openssl/bn.h openssl/aes.h openssl/sha.h
15821do :
15822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15823ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15825 cat >>confdefs.h <<_ACEOF
15826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15827_ACEOF
15828
15829else
15830 as_fn_error $? "OpenSSL headers not found." "$LINENO" 5
15831fi
15832
15833done
15834
15835 LIBS="-lcrypto $LIBS"
15836 openssl="true"
15837
15838else
15839 as_fn_error $? "Cannot find libgcrypt or OpenSSL crypto library." "$LINENO" 5
15840
15841fi
15842
15843
15844
15845 fi
15846
15847
15848
15849 if test "$openssl" = "true"; then
15850 SRTP_OPENSSL_TRUE=
15851 SRTP_OPENSSL_FALSE='#'
15852else
15853 SRTP_OPENSSL_TRUE='#'
15854 SRTP_OPENSSL_FALSE=
15855fi
15856
15857 if test "$gcrypt" = "true"; then
15858 SRTP_GCRYPT_TRUE=
15859 SRTP_GCRYPT_FALSE='#'
15860else
15861 SRTP_GCRYPT_TRUE='#'
15862 SRTP_GCRYPT_FALSE=
15863fi
15864
15865
15866fi
15867
15868
15869
15870
15871
15872
15873 LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`"
15874 LT_MINOR="`echo $LT_VERSION | sed s/.*://`"
15875 LT_SUBVER="$LT_MAJOR.$LT_MINOR"
15876
15877
15878
15879
15880
15881if test -n "$ac_tool_prefix"; then
15882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15883set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885$as_echo_n "checking for $ac_word... " >&6; }
15886if ${ac_cv_prog_RANLIB+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888else
15889 if test -n "$RANLIB"; then
15890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15891else
15892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893for as_dir in $PATH
15894do
15895 IFS=$as_save_IFS
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
15898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15901 break 2
15902 fi
15903done
15904 done
15905IFS=$as_save_IFS
15906
15907fi
15908fi
15909RANLIB=$ac_cv_prog_RANLIB
15910if test -n "$RANLIB"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15912$as_echo "$RANLIB" >&6; }
15913else
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915$as_echo "no" >&6; }
15916fi
15917
15918
15919fi
15920if test -z "$ac_cv_prog_RANLIB"; then
15921 ac_ct_RANLIB=$RANLIB
15922 # Extract the first word of "ranlib", so it can be a program name with args.
15923set dummy ranlib; ac_word=$2
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15925$as_echo_n "checking for $ac_word... " >&6; }
15926if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15927 $as_echo_n "(cached) " >&6
15928else
15929 if test -n "$ac_ct_RANLIB"; then
15930 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15931else
15932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15933for as_dir in $PATH
15934do
15935 IFS=$as_save_IFS
15936 test -z "$as_dir" && as_dir=.
15937 for ac_exec_ext in '' $ac_executable_extensions; do
15938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15939 ac_cv_prog_ac_ct_RANLIB="ranlib"
15940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15941 break 2
15942 fi
15943done
15944 done
15945IFS=$as_save_IFS
15946
15947fi
15948fi
15949ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15950if test -n "$ac_ct_RANLIB"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15952$as_echo "$ac_ct_RANLIB" >&6; }
15953else
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15955$as_echo "no" >&6; }
15956fi
15957
15958 if test "x$ac_ct_RANLIB" = x; then
15959 RANLIB=":"
15960 else
15961 case $cross_compiling:$ac_tool_warned in
15962yes:)
15963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15965ac_tool_warned=yes ;;
15966esac
15967 RANLIB=$ac_ct_RANLIB
15968 fi
15969else
15970 RANLIB="$ac_cv_prog_RANLIB"
15971fi
15972
15973
15974
15975
15976 if test ! -z "$LT_VERSION" ; then
15977 LT_CCXX_VERSION="-version-info $LT_VERSION"
15978
15979 fi
15980
15981
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genorated automake files" >&5
15983$as_echo_n "checking for genorated automake files... " >&6; }
15984 if test -z "" ; then
15985 ost_AUTOMAKE_TEST=Makefile.in
15986 else
15987 ost_AUTOMAKE_TEST=
15988 fi
15989 if test ! -f $ost_AUTOMAKE_TEST ; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
15991$as_echo "missing" >&6; }
15992 automake -a
15993 else
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15995$as_echo "found" >&6; }
15996 fi
15997
15998
15999
16000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16001$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16002 # Check whether --enable-maintainer-mode was given.
16003if test "${enable_maintainer_mode+set}" = set; then :
16004 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16005else
16006 USE_MAINTAINER_MODE=no
16007fi
16008
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16010$as_echo "$USE_MAINTAINER_MODE" >&6; }
16011 if test $USE_MAINTAINER_MODE = yes; then
16012 MAINTAINER_MODE_TRUE=
16013 MAINTAINER_MODE_FALSE='#'
16014else
16015 MAINTAINER_MODE_TRUE='#'
16016 MAINTAINER_MODE_FALSE=
16017fi
16018
16019 MAINT=$MAINTAINER_MODE_TRUE
16020
16021
16022 if test -z "$MAINT" ; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maintainer ftp distribution directory" >&5
16024$as_echo_n "checking for maintainer ftp distribution directory... " >&6; }
16025 if test -d ~ftp/pub ; then
16026 FTPDIR=~ftp/pub
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16028$as_echo "found" >&6; }
16029 else
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
16031$as_echo "missing" >&6; }
16032 fi
16033 fi
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16044 if test -n "$ac_tool_prefix"; then
16045 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16046set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048$as_echo_n "checking for $ac_word... " >&6; }
16049if ${ac_cv_path_PKG_CONFIG+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051else
16052 case $PKG_CONFIG in
16053 [\\/]* | ?:[\\/]*)
16054 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16055 ;;
16056 *)
16057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16058for as_dir in $PATH
16059do
16060 IFS=$as_save_IFS
16061 test -z "$as_dir" && as_dir=.
16062 for ac_exec_ext in '' $ac_executable_extensions; do
16063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16064 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16066 break 2
16067 fi
16068done
16069 done
16070IFS=$as_save_IFS
16071
16072 ;;
16073esac
16074fi
16075PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16076if test -n "$PKG_CONFIG"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16078$as_echo "$PKG_CONFIG" >&6; }
16079else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081$as_echo "no" >&6; }
16082fi
16083
16084
16085fi
16086if test -z "$ac_cv_path_PKG_CONFIG"; then
16087 ac_pt_PKG_CONFIG=$PKG_CONFIG
16088 # Extract the first word of "pkg-config", so it can be a program name with args.
16089set dummy pkg-config; ac_word=$2
16090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091$as_echo_n "checking for $ac_word... " >&6; }
16092if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16093 $as_echo_n "(cached) " >&6
16094else
16095 case $ac_pt_PKG_CONFIG in
16096 [\\/]* | ?:[\\/]*)
16097 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16098 ;;
16099 *)
16100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16101for as_dir in $PATH
16102do
16103 IFS=$as_save_IFS
16104 test -z "$as_dir" && as_dir=.
16105 for ac_exec_ext in '' $ac_executable_extensions; do
16106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16107 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16109 break 2
16110 fi
16111done
16112 done
16113IFS=$as_save_IFS
16114
16115 ;;
16116esac
16117fi
16118ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16119if test -n "$ac_pt_PKG_CONFIG"; then
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16121$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16122else
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16124$as_echo "no" >&6; }
16125fi
16126
16127 if test "x$ac_pt_PKG_CONFIG" = x; then
16128 PKG_CONFIG=""
16129 else
16130 case $cross_compiling:$ac_tool_warned in
16131yes:)
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16134ac_tool_warned=yes ;;
16135esac
16136 PKG_CONFIG=$ac_pt_PKG_CONFIG
16137 fi
16138else
16139 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16140fi
16141
16142fi
16143if test -n "$PKG_CONFIG"; then
16144 _pkg_min_version=0.9.0
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16146$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16147 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16149$as_echo "yes" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152$as_echo "no" >&6; }
16153 PKG_CONFIG=""
16154 fi
16155fi
16156
16157pkg_failed=no
16158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMMON" >&5
16159$as_echo_n "checking for COMMON... " >&6; }
16160
16161if test -n "$COMMON_CFLAGS"; then
16162 pkg_cv_COMMON_CFLAGS="$COMMON_CFLAGS"
16163 elif test -n "$PKG_CONFIG"; then
16164 if test -n "$PKG_CONFIG" && \
16165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \$REQUIRES\""; } >&5
16166 ($PKG_CONFIG --exists --print-errors "libccgnu2 >= $REQUIRES") 2>&5
16167 ac_status=$?
16168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16169 test $ac_status = 0; }; then
16170 pkg_cv_COMMON_CFLAGS=`$PKG_CONFIG --cflags "libccgnu2 >= $REQUIRES" 2>/dev/null`
16171 test "x$?" != "x0" && pkg_failed=yes
16172else
16173 pkg_failed=yes
16174fi
16175 else
16176 pkg_failed=untried
16177fi
16178if test -n "$COMMON_LIBS"; then
16179 pkg_cv_COMMON_LIBS="$COMMON_LIBS"
16180 elif test -n "$PKG_CONFIG"; then
16181 if test -n "$PKG_CONFIG" && \
16182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \$REQUIRES\""; } >&5
16183 ($PKG_CONFIG --exists --print-errors "libccgnu2 >= $REQUIRES") 2>&5
16184 ac_status=$?
16185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16186 test $ac_status = 0; }; then
16187 pkg_cv_COMMON_LIBS=`$PKG_CONFIG --libs "libccgnu2 >= $REQUIRES" 2>/dev/null`
16188 test "x$?" != "x0" && pkg_failed=yes
16189else
16190 pkg_failed=yes
16191fi
16192 else
16193 pkg_failed=untried
16194fi
16195
16196
16197
16198if test $pkg_failed = yes; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200$as_echo "no" >&6; }
16201
16202if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16203 _pkg_short_errors_supported=yes
16204else
16205 _pkg_short_errors_supported=no
16206fi
16207 if test $_pkg_short_errors_supported = yes; then
16208 COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libccgnu2 >= $REQUIRES" 2>&1`
16209 else
16210 COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libccgnu2 >= $REQUIRES" 2>&1`
16211 fi
16212 # Put the nasty error message in config.log where it belongs
16213 echo "$COMMON_PKG_ERRORS" >&5
16214
16215 as_fn_error $? "Package requirements (libccgnu2 >= $REQUIRES) were not met:
16216
16217$COMMON_PKG_ERRORS
16218
16219Consider adjusting the PKG_CONFIG_PATH environment variable if you
16220installed software in a non-standard prefix.
16221
16222Alternatively, you may set the environment variables COMMON_CFLAGS
16223and COMMON_LIBS to avoid the need to call pkg-config.
16224See the pkg-config man page for more details." "$LINENO" 5
16225elif test $pkg_failed = untried; then
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16227$as_echo "no" >&6; }
16228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16230as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16231is in your PATH or set the PKG_CONFIG environment variable to the full
16232path to pkg-config.
16233
16234Alternatively, you may set the environment variables COMMON_CFLAGS
16235and COMMON_LIBS to avoid the need to call pkg-config.
16236See the pkg-config man page for more details.
16237
16238To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16239See \`config.log' for more details" "$LINENO" 5; }
16240else
16241 COMMON_CFLAGS=$pkg_cv_COMMON_CFLAGS
16242 COMMON_LIBS=$pkg_cv_COMMON_LIBS
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244$as_echo "yes" >&6; }
16245
16246fi
16247CXXFLAGS="$CXXFLAGS $COMMON_CFLAGS"
16248COMMON_LIBPATH=`pkg-config --variable=libdir libccgnu2`
16249GNULIBS="-L$COMMON_LIBPATH $COMMON_LIBS $LIBS"
16250
16251# OST_CC_ENDIAN - now in Common C++
16252# Are we using the GNU compiler?
16253if test $GCC = yes ; then
16254 WARN_FLAGS="-fno-strict-aliasing -Wall -ansi -pedantic"
16255else
16256 WARN_FLAGS=""
16257fi
16258
16259
16260
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5
16262$as_echo_n "checking for debugging... " >&6; }
16263 # Check whether --enable-debug was given.
16264if test "${enable_debug+set}" = set; then :
16265 enableval=$enable_debug;
16266fi
16267
16268 if test -z "$enable_debug" ; then
16269 enable_debug="no"
16270 elif test $enable_debug = "yes" ; then
16271 CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
16272# CXXFLAGS=`echo $CFLAGS | sed 's/-O.//'`
16273 fi
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16275$as_echo "$enable_debug" >&6; }
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
16277$as_echo_n "checking for profiling... " >&6; }
16278 # Check whether --enable-profiling was given.
16279if test "${enable_profiling+set}" = set; then :
16280 enableval=$enable_profiling;
16281fi
16282
16283 if test -z "$enable_profiling" ; then
16284 enable_profiling="no"
16285 elif test "$enable_profiling" = "yes" ; then
16286 CXXFLAGS="${CXXFLAGS} -p"
16287 fi
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
16289$as_echo "$enable_profiling" >&6; }
16290
16291
16292
16293# Check whether --with-nana was given.
16294if test "${with_nana+set}" = set; then :
16295 withval=$with_nana;
16296 ac_fn_c_check_header_mongrel "$LINENO" "nana.h" "ac_cv_header_nana_h" "$ac_includes_default"
16297if test "x$ac_cv_header_nana_h" = xyes; then :
16298
16299 for ac_header in DL.h
16300do :
16301 ac_fn_c_check_header_mongrel "$LINENO" "DL.h" "ac_cv_header_DL_h" "$ac_includes_default"
16302if test "x$ac_cv_header_DL_h" = xyes; then :
16303 cat >>confdefs.h <<_ACEOF
16304#define HAVE_DL_H 1
16305_ACEOF
16306
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnana" >&5
16308$as_echo_n "checking for main in -lnana... " >&6; }
16309if ${ac_cv_lib_nana_main+:} false; then :
16310 $as_echo_n "(cached) " >&6
16311else
16312 ac_check_lib_save_LIBS=$LIBS
16313LIBS="-lnana $LIBS"
16314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h. */
16316
16317
16318int
16319main ()
16320{
16321return main ();
16322 ;
16323 return 0;
16324}
16325_ACEOF
16326if ac_fn_c_try_link "$LINENO"; then :
16327 ac_cv_lib_nana_main=yes
16328else
16329 ac_cv_lib_nana_main=no
16330fi
16331rm -f core conftest.err conftest.$ac_objext \
16332 conftest$ac_exeext conftest.$ac_ext
16333LIBS=$ac_check_lib_save_LIBS
16334fi
16335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nana_main" >&5
16336$as_echo "$ac_cv_lib_nana_main" >&6; }
16337if test "x$ac_cv_lib_nana_main" = xyes; then :
16338 cat >>confdefs.h <<_ACEOF
16339#define HAVE_LIBNANA 1
16340_ACEOF
16341
16342 LIBS="-lnana $LIBS"
16343
16344fi
16345
16346
16347fi
16348
16349done
16350
16351
16352fi
16353
16354
16355
16356fi
16357
16358
16359KDOC_DIR="\$(top_srcdir)/doc"
16360
16361
16362
16363# Extract the first word of "doxygen", so it can be a program name with args.
16364set dummy doxygen; ac_word=$2
16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16366$as_echo_n "checking for $ac_word... " >&6; }
16367if ${ac_cv_path_DOXYGEN+:} false; then :
16368 $as_echo_n "(cached) " >&6
16369else
16370 case $DOXYGEN in
16371 [\\/]* | ?:[\\/]*)
16372 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16373 ;;
16374 *)
16375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16376for as_dir in $PATH
16377do
16378 IFS=$as_save_IFS
16379 test -z "$as_dir" && as_dir=.
16380 for ac_exec_ext in '' $ac_executable_extensions; do
16381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16382 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16384 break 2
16385 fi
16386done
16387 done
16388IFS=$as_save_IFS
16389
16390 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
16391 ;;
16392esac
16393fi
16394DOXYGEN=$ac_cv_path_DOXYGEN
16395if test -n "$DOXYGEN"; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16397$as_echo "$DOXYGEN" >&6; }
16398else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400$as_echo "no" >&6; }
16401fi
16402
16403
16404
16405 if test "$DOXYGEN" != "no"; then
16406 DOXY_TRUE=
16407 DOXY_FALSE='#'
16408else
16409 DOXY_TRUE='#'
16410 DOXY_FALSE=
16411fi
16412
16413
16414LIB_VERSION=`echo $LT_RELEASE | sed -e 's/\./_/'`
16415LIB_MAJOR=`echo $LT_VERSION | sed -e 's/:.*$//'`
16416
16417
16418
16419
16420ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile src/ccrtp/Makefile doc/Makefile demo/Makefile phone/Makefile w32/Makefile ccrtp.spec libccrtp.spec ccrtp.list libccrtp1.pc src/ccrtp/crypto/Makefile"
16421
16422cat >confcache <<\_ACEOF
16423# This file is a shell script that caches the results of configure
16424# tests run on this system so they can be shared between configure
16425# scripts and configure runs, see configure's option --config-cache.
16426# It is not useful on other systems. If it contains results you don't
16427# want to keep, you may remove or edit it.
16428#
16429# config.status only pays attention to the cache file if you give it
16430# the --recheck option to rerun configure.
16431#
16432# `ac_cv_env_foo' variables (set or unset) will be overridden when
16433# loading this file, other *unset* `ac_cv_foo' will be assigned the
16434# following values.
16435
16436_ACEOF
16437
16438# The following way of writing the cache mishandles newlines in values,
16439# but we know of no workaround that is simple, portable, and efficient.
16440# So, we kill variables containing newlines.
16441# Ultrix sh set writes to stderr and can't be redirected directly,
16442# and sets the high bit in the cache file unless we assign to the vars.
16443(
16444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16445 eval ac_val=\$$ac_var
16446 case $ac_val in #(
16447 *${as_nl}*)
16448 case $ac_var in #(
16449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16451 esac
16452 case $ac_var in #(
16453 _ | IFS | as_nl) ;; #(
16454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16455 *) { eval $ac_var=; unset $ac_var;} ;;
16456 esac ;;
16457 esac
16458 done
16459
16460 (set) 2>&1 |
16461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16462 *${as_nl}ac_space=\ *)
16463 # `set' does not quote correctly, so add quotes: double-quote
16464 # substitution turns \\\\ into \\, and sed turns \\ into \.
16465 sed -n \
16466 "s/'/'\\\\''/g;
16467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16468 ;; #(
16469 *)
16470 # `set' quotes correctly as required by POSIX, so do not add quotes.
16471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16472 ;;
16473 esac |
16474 sort
16475) |
16476 sed '
16477 /^ac_cv_env_/b end
16478 t clear
16479 :clear
16480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16481 t end
16482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16483 :end' >>confcache
16484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16485 if test -w "$cache_file"; then
16486 if test "x$cache_file" != "x/dev/null"; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16488$as_echo "$as_me: updating cache $cache_file" >&6;}
16489 if test ! -f "$cache_file" || test -h "$cache_file"; then
16490 cat confcache >"$cache_file"
16491 else
16492 case $cache_file in #(
16493 */* | ?:*)
16494 mv -f confcache "$cache_file"$$ &&
16495 mv -f "$cache_file"$$ "$cache_file" ;; #(
16496 *)
16497 mv -f confcache "$cache_file" ;;
16498 esac
16499 fi
16500 fi
16501 else
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16503$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16504 fi
16505fi
16506rm -f confcache
16507
16508test "x$prefix" = xNONE && prefix=$ac_default_prefix
16509# Let make expand exec_prefix.
16510test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16511
16512DEFS=-DHAVE_CONFIG_H
16513
16514ac_libobjs=
16515ac_ltlibobjs=
16516U=
16517for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16518 # 1. Remove the extension, and $U if already installed.
16519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16520 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16522 # will be set to the directory where LIBOBJS objects are built.
16523 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16524 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16525done
16526LIBOBJS=$ac_libobjs
16527
16528LTLIBOBJS=$ac_ltlibobjs
16529
16530
16531if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16532 as_fn_error $? "conditional \"AMDEP\" was never defined.
16533Usually this means the macro was only invoked conditionally." "$LINENO" 5
16534fi
16535if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16536 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16537Usually this means the macro was only invoked conditionally." "$LINENO" 5
16538fi
16539if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16540 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16541Usually this means the macro was only invoked conditionally." "$LINENO" 5
16542fi
16543 if test -n "$EXEEXT"; then
16544 am__EXEEXT_TRUE=
16545 am__EXEEXT_FALSE='#'
16546else
16547 am__EXEEXT_TRUE='#'
16548 am__EXEEXT_FALSE=
16549fi
16550
16551if test -z "${SRTP_OPENSSL_TRUE}" && test -z "${SRTP_OPENSSL_FALSE}"; then
16552 as_fn_error $? "conditional \"SRTP_OPENSSL\" was never defined.
16553Usually this means the macro was only invoked conditionally." "$LINENO" 5
16554fi
16555if test -z "${SRTP_GCRYPT_TRUE}" && test -z "${SRTP_GCRYPT_FALSE}"; then
16556 as_fn_error $? "conditional \"SRTP_GCRYPT\" was never defined.
16557Usually this means the macro was only invoked conditionally." "$LINENO" 5
16558fi
16559if test -z "${SRTP_OPENSSL_TRUE}" && test -z "${SRTP_OPENSSL_FALSE}"; then
16560 as_fn_error $? "conditional \"SRTP_OPENSSL\" was never defined.
16561Usually this means the macro was only invoked conditionally." "$LINENO" 5
16562fi
16563if test -z "${SRTP_GCRYPT_TRUE}" && test -z "${SRTP_GCRYPT_FALSE}"; then
16564 as_fn_error $? "conditional \"SRTP_GCRYPT\" was never defined.
16565Usually this means the macro was only invoked conditionally." "$LINENO" 5
16566fi
16567if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16568 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16569Usually this means the macro was only invoked conditionally." "$LINENO" 5
16570fi
16571if test -z "${DOXY_TRUE}" && test -z "${DOXY_FALSE}"; then
16572 as_fn_error $? "conditional \"DOXY\" was never defined.
16573Usually this means the macro was only invoked conditionally." "$LINENO" 5
16574fi
16575
16576: "${CONFIG_STATUS=./config.status}"
16577ac_write_fail=0
16578ac_clean_files_save=$ac_clean_files
16579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16580{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16581$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16582as_write_fail=0
16583cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16584#! $SHELL
16585# Generated by $as_me.
16586# Run this file to recreate the current configuration.
16587# Compiler output produced by configure, useful for debugging
16588# configure, is in config.log if it exists.
16589
16590debug=false
16591ac_cs_recheck=false
16592ac_cs_silent=false
16593
16594SHELL=\${CONFIG_SHELL-$SHELL}
16595export SHELL
16596_ASEOF
16597cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16598## -------------------- ##
16599## M4sh Initialization. ##
16600## -------------------- ##
16601
16602# Be more Bourne compatible
16603DUALCASE=1; export DUALCASE # for MKS sh
16604if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16605 emulate sh
16606 NULLCMD=:
16607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16608 # is contrary to our usage. Disable this feature.
16609 alias -g '${1+"$@"}'='"$@"'
16610 setopt NO_GLOB_SUBST
16611else
16612 case `(set -o) 2>/dev/null` in #(
16613 *posix*) :
16614 set -o posix ;; #(
16615 *) :
16616 ;;
16617esac
16618fi
16619
16620
16621as_nl='
16622'
16623export as_nl
16624# Printing a long string crashes Solaris 7 /usr/bin/printf.
16625as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16626as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16628# Prefer a ksh shell builtin over an external printf program on Solaris,
16629# but without wasting forks for bash or zsh.
16630if test -z "$BASH_VERSION$ZSH_VERSION" \
16631 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16632 as_echo='print -r --'
16633 as_echo_n='print -rn --'
16634elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16635 as_echo='printf %s\n'
16636 as_echo_n='printf %s'
16637else
16638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16640 as_echo_n='/usr/ucb/echo -n'
16641 else
16642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16643 as_echo_n_body='eval
16644 arg=$1;
16645 case $arg in #(
16646 *"$as_nl"*)
16647 expr "X$arg" : "X\\(.*\\)$as_nl";
16648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16649 esac;
16650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16651 '
16652 export as_echo_n_body
16653 as_echo_n='sh -c $as_echo_n_body as_echo'
16654 fi
16655 export as_echo_body
16656 as_echo='sh -c $as_echo_body as_echo'
16657fi
16658
16659# The user is always right.
16660if test "${PATH_SEPARATOR+set}" != set; then
16661 PATH_SEPARATOR=:
16662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16664 PATH_SEPARATOR=';'
16665 }
16666fi
16667
16668
16669# IFS
16670# We need space, tab and new line, in precisely that order. Quoting is
16671# there to prevent editors from complaining about space-tab.
16672# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16673# splitting by setting IFS to empty value.)
16674IFS=" "" $as_nl"
16675
16676# Find who we are. Look in the path if we contain no directory separator.
16677as_myself=
16678case $0 in #((
16679 *[\\/]* ) as_myself=$0 ;;
16680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16681for as_dir in $PATH
16682do
16683 IFS=$as_save_IFS
16684 test -z "$as_dir" && as_dir=.
16685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16686 done
16687IFS=$as_save_IFS
16688
16689 ;;
16690esac
16691# We did not find ourselves, most probably we were run as `sh COMMAND'
16692# in which case we are not to be found in the path.
16693if test "x$as_myself" = x; then
16694 as_myself=$0
16695fi
16696if test ! -f "$as_myself"; then
16697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16698 exit 1
16699fi
16700
16701# Unset variables that we do not need and which cause bugs (e.g. in
16702# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16703# suppresses any "Segmentation fault" message there. '((' could
16704# trigger a bug in pdksh 5.2.14.
16705for as_var in BASH_ENV ENV MAIL MAILPATH
16706do eval test x\${$as_var+set} = xset \
16707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16708done
16709PS1='$ '
16710PS2='> '
16711PS4='+ '
16712
16713# NLS nuisances.
16714LC_ALL=C
16715export LC_ALL
16716LANGUAGE=C
16717export LANGUAGE
16718
16719# CDPATH.
16720(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16721
16722
16723# as_fn_error STATUS ERROR [LINENO LOG_FD]
16724# ----------------------------------------
16725# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16726# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16727# script with STATUS, using 1 if that was 0.
16728as_fn_error ()
16729{
16730 as_status=$1; test $as_status -eq 0 && as_status=1
16731 if test "$4"; then
16732 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16734 fi
16735 $as_echo "$as_me: error: $2" >&2
16736 as_fn_exit $as_status
16737} # as_fn_error
16738
16739
16740# as_fn_set_status STATUS
16741# -----------------------
16742# Set $? to STATUS, without forking.
16743as_fn_set_status ()
16744{
16745 return $1
16746} # as_fn_set_status
16747
16748# as_fn_exit STATUS
16749# -----------------
16750# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16751as_fn_exit ()
16752{
16753 set +e
16754 as_fn_set_status $1
16755 exit $1
16756} # as_fn_exit
16757
16758# as_fn_unset VAR
16759# ---------------
16760# Portably unset VAR.
16761as_fn_unset ()
16762{
16763 { eval $1=; unset $1;}
16764}
16765as_unset=as_fn_unset
16766# as_fn_append VAR VALUE
16767# ----------------------
16768# Append the text in VALUE to the end of the definition contained in VAR. Take
16769# advantage of any shell optimizations that allow amortized linear growth over
16770# repeated appends, instead of the typical quadratic growth present in naive
16771# implementations.
16772if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16773 eval 'as_fn_append ()
16774 {
16775 eval $1+=\$2
16776 }'
16777else
16778 as_fn_append ()
16779 {
16780 eval $1=\$$1\$2
16781 }
16782fi # as_fn_append
16783
16784# as_fn_arith ARG...
16785# ------------------
16786# Perform arithmetic evaluation on the ARGs, and store the result in the
16787# global $as_val. Take advantage of shells that can avoid forks. The arguments
16788# must be portable across $(()) and expr.
16789if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16790 eval 'as_fn_arith ()
16791 {
16792 as_val=$(( $* ))
16793 }'
16794else
16795 as_fn_arith ()
16796 {
16797 as_val=`expr "$@" || test $? -eq 1`
16798 }
16799fi # as_fn_arith
16800
16801
16802if expr a : '\(a\)' >/dev/null 2>&1 &&
16803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16804 as_expr=expr
16805else
16806 as_expr=false
16807fi
16808
16809if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16810 as_basename=basename
16811else
16812 as_basename=false
16813fi
16814
16815if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16816 as_dirname=dirname
16817else
16818 as_dirname=false
16819fi
16820
16821as_me=`$as_basename -- "$0" ||
16822$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16823 X"$0" : 'X\(//\)$' \| \
16824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16825$as_echo X/"$0" |
16826 sed '/^.*\/\([^/][^/]*\)\/*$/{
16827 s//\1/
16828 q
16829 }
16830 /^X\/\(\/\/\)$/{
16831 s//\1/
16832 q
16833 }
16834 /^X\/\(\/\).*/{
16835 s//\1/
16836 q
16837 }
16838 s/.*/./; q'`
16839
16840# Avoid depending upon Character Ranges.
16841as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16843as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16844as_cr_digits='0123456789'
16845as_cr_alnum=$as_cr_Letters$as_cr_digits
16846
16847ECHO_C= ECHO_N= ECHO_T=
16848case `echo -n x` in #(((((
16849-n*)
16850 case `echo 'xy\c'` in
16851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16852 xy) ECHO_C='\c';;
16853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16854 ECHO_T=' ';;
16855 esac;;
16856*)
16857 ECHO_N='-n';;
16858esac
16859
16860rm -f conf$$ conf$$.exe conf$$.file
16861if test -d conf$$.dir; then
16862 rm -f conf$$.dir/conf$$.file
16863else
16864 rm -f conf$$.dir
16865 mkdir conf$$.dir 2>/dev/null
16866fi
16867if (echo >conf$$.file) 2>/dev/null; then
16868 if ln -s conf$$.file conf$$ 2>/dev/null; then
16869 as_ln_s='ln -s'
16870 # ... but there are two gotchas:
16871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16873 # In both cases, we have to default to `cp -p'.
16874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16875 as_ln_s='cp -p'
16876 elif ln conf$$.file conf$$ 2>/dev/null; then
16877 as_ln_s=ln
16878 else
16879 as_ln_s='cp -p'
16880 fi
16881else
16882 as_ln_s='cp -p'
16883fi
16884rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16885rmdir conf$$.dir 2>/dev/null
16886
16887
16888# as_fn_mkdir_p
16889# -------------
16890# Create "$as_dir" as a directory, including parents if necessary.
16891as_fn_mkdir_p ()
16892{
16893
16894 case $as_dir in #(
16895 -*) as_dir=./$as_dir;;
16896 esac
16897 test -d "$as_dir" || eval $as_mkdir_p || {
16898 as_dirs=
16899 while :; do
16900 case $as_dir in #(
16901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16902 *) as_qdir=$as_dir;;
16903 esac
16904 as_dirs="'$as_qdir' $as_dirs"
16905 as_dir=`$as_dirname -- "$as_dir" ||
16906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16907 X"$as_dir" : 'X\(//\)[^/]' \| \
16908 X"$as_dir" : 'X\(//\)$' \| \
16909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16910$as_echo X"$as_dir" |
16911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16912 s//\1/
16913 q
16914 }
16915 /^X\(\/\/\)[^/].*/{
16916 s//\1/
16917 q
16918 }
16919 /^X\(\/\/\)$/{
16920 s//\1/
16921 q
16922 }
16923 /^X\(\/\).*/{
16924 s//\1/
16925 q
16926 }
16927 s/.*/./; q'`
16928 test -d "$as_dir" && break
16929 done
16930 test -z "$as_dirs" || eval "mkdir $as_dirs"
16931 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16932
16933
16934} # as_fn_mkdir_p
16935if mkdir -p . 2>/dev/null; then
16936 as_mkdir_p='mkdir -p "$as_dir"'
16937else
16938 test -d ./-p && rmdir ./-p
16939 as_mkdir_p=false
16940fi
16941
16942if test -x / >/dev/null 2>&1; then
16943 as_test_x='test -x'
16944else
16945 if ls -dL / >/dev/null 2>&1; then
16946 as_ls_L_option=L
16947 else
16948 as_ls_L_option=
16949 fi
16950 as_test_x='
16951 eval sh -c '\''
16952 if test -d "$1"; then
16953 test -d "$1/.";
16954 else
16955 case $1 in #(
16956 -*)set "./$1";;
16957 esac;
16958 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16959 ???[sx]*):;;*)false;;esac;fi
16960 '\'' sh
16961 '
16962fi
16963as_executable_p=$as_test_x
16964
16965# Sed expression to map a string onto a valid CPP name.
16966as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16967
16968# Sed expression to map a string onto a valid variable name.
16969as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16970
16971
16972exec 6>&1
16973## ----------------------------------- ##
16974## Main body of $CONFIG_STATUS script. ##
16975## ----------------------------------- ##
16976_ASEOF
16977test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16978
16979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16980# Save the log message, to keep $0 and so on meaningful, and to
16981# report actual input values of CONFIG_FILES etc. instead of their
16982# values after options handling.
16983ac_log="
16984This file was extended by $as_me, which was
16985generated by GNU Autoconf 2.68. Invocation command line was
16986
16987 CONFIG_FILES = $CONFIG_FILES
16988 CONFIG_HEADERS = $CONFIG_HEADERS
16989 CONFIG_LINKS = $CONFIG_LINKS
16990 CONFIG_COMMANDS = $CONFIG_COMMANDS
16991 $ $0 $@
16992
16993on `(hostname || uname -n) 2>/dev/null | sed 1q`
16994"
16995
16996_ACEOF
16997
16998case $ac_config_files in *"
16999"*) set x $ac_config_files; shift; ac_config_files=$*;;
17000esac
17001
17002case $ac_config_headers in *"
17003"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17004esac
17005
17006
17007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17008# Files that config.status was made for.
17009config_files="$ac_config_files"
17010config_headers="$ac_config_headers"
17011config_commands="$ac_config_commands"
17012
17013_ACEOF
17014
17015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17016ac_cs_usage="\
17017\`$as_me' instantiates files and other configuration actions
17018from templates according to the current configuration. Unless the files
17019and actions are specified as TAGs, all are instantiated by default.
17020
17021Usage: $0 [OPTION]... [TAG]...
17022
17023 -h, --help print this help, then exit
17024 -V, --version print version number and configuration settings, then exit
17025 --config print configuration, then exit
17026 -q, --quiet, --silent
17027 do not print progress messages
17028 -d, --debug don't remove temporary files
17029 --recheck update $as_me by reconfiguring in the same conditions
17030 --file=FILE[:TEMPLATE]
17031 instantiate the configuration file FILE
17032 --header=FILE[:TEMPLATE]
17033 instantiate the configuration header FILE
17034
17035Configuration files:
17036$config_files
17037
17038Configuration headers:
17039$config_headers
17040
17041Configuration commands:
17042$config_commands
17043
17044Report bugs to the package provider."
17045
17046_ACEOF
17047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17048ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17049ac_cs_version="\\
17050config.status
17051configured by $0, generated by GNU Autoconf 2.68,
17052 with options \\"\$ac_cs_config\\"
17053
17054Copyright (C) 2010 Free Software Foundation, Inc.
17055This config.status script is free software; the Free Software Foundation
17056gives unlimited permission to copy, distribute and modify it."
17057
17058ac_pwd='$ac_pwd'
17059srcdir='$srcdir'
17060INSTALL='$INSTALL'
17061MKDIR_P='$MKDIR_P'
17062AWK='$AWK'
17063test -n "\$AWK" || AWK=awk
17064_ACEOF
17065
17066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17067# The default lists apply if the user does not specify any file.
17068ac_need_defaults=:
17069while test $# != 0
17070do
17071 case $1 in
17072 --*=?*)
17073 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17074 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17075 ac_shift=:
17076 ;;
17077 --*=)
17078 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17079 ac_optarg=
17080 ac_shift=:
17081 ;;
17082 *)
17083 ac_option=$1
17084 ac_optarg=$2
17085 ac_shift=shift
17086 ;;
17087 esac
17088
17089 case $ac_option in
17090 # Handling of the options.
17091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17092 ac_cs_recheck=: ;;
17093 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17094 $as_echo "$ac_cs_version"; exit ;;
17095 --config | --confi | --conf | --con | --co | --c )
17096 $as_echo "$ac_cs_config"; exit ;;
17097 --debug | --debu | --deb | --de | --d | -d )
17098 debug=: ;;
17099 --file | --fil | --fi | --f )
17100 $ac_shift
17101 case $ac_optarg in
17102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17103 '') as_fn_error $? "missing file argument" ;;
17104 esac
17105 as_fn_append CONFIG_FILES " '$ac_optarg'"
17106 ac_need_defaults=false;;
17107 --header | --heade | --head | --hea )
17108 $ac_shift
17109 case $ac_optarg in
17110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17111 esac
17112 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17113 ac_need_defaults=false;;
17114 --he | --h)
17115 # Conflict between --help and --header
17116 as_fn_error $? "ambiguous option: \`$1'
17117Try \`$0 --help' for more information.";;
17118 --help | --hel | -h )
17119 $as_echo "$ac_cs_usage"; exit ;;
17120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17122 ac_cs_silent=: ;;
17123
17124 # This is an error.
17125 -*) as_fn_error $? "unrecognized option: \`$1'
17126Try \`$0 --help' for more information." ;;
17127
17128 *) as_fn_append ac_config_targets " $1"
17129 ac_need_defaults=false ;;
17130
17131 esac
17132 shift
17133done
17134
17135ac_configure_extra_args=
17136
17137if $ac_cs_silent; then
17138 exec 6>/dev/null
17139 ac_configure_extra_args="$ac_configure_extra_args --silent"
17140fi
17141
17142_ACEOF
17143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17144if \$ac_cs_recheck; then
17145 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17146 shift
17147 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17148 CONFIG_SHELL='$SHELL'
17149 export CONFIG_SHELL
17150 exec "\$@"
17151fi
17152
17153_ACEOF
17154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17155exec 5>>config.log
17156{
17157 echo
17158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17159## Running $as_me. ##
17160_ASBOX
17161 $as_echo "$ac_log"
17162} >&5
17163
17164_ACEOF
17165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17166#
17167# INIT-COMMANDS
17168#
17169
17170
17171# The HP-UX ksh and POSIX shell print the target directory to stdout
17172# if CDPATH is set.
17173(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17174
17175sed_quote_subst='$sed_quote_subst'
17176double_quote_subst='$double_quote_subst'
17177delay_variable_subst='$delay_variable_subst'
17178macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17179macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17180enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17181enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17182pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17183enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17184SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17185ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17186host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17187host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17188host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17189build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17190build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17191build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17192SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17193Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17194GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17195EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17196FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17197LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17198NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17199LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17200max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17201ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17202exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17203lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17204lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17205lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17206lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17207lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17208reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17209reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17210OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17211deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17212file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17213file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17214want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17215DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17216sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17217AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17218AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17219archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17220STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17221RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17222old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17223old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17224old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17225lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17226CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17227CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17228compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17229GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17230lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17231lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17232lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17233lt_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"`'
17234nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17235lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17236objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17237MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17238lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17239lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17240lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17241lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17242lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17243need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17244MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17245DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17246NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17247LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17248OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17249OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17250libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17251shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17252extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17253archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17254enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17255export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17256whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17257compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17258old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17259old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17260archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17261archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17262module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17263module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17264with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17265allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17266no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17267hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17268hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17269hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17270hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17271hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17272hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17273hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17274hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17275inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17276link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17277always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17278export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17279exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17280include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17281prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17282postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17283file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17284variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17285need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17286need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17287version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17288runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17289shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17290shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17291libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17292library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17293soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17294install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17295postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17296postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17297finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17298finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17299hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17300sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17301sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17302hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17303enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17304enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17305enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17306old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17307striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17308compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17309predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17310postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17311predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17312postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17313compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17314LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17315reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17316reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17317old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17318compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17319GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17320lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17321lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17322lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17323lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17324lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17325archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17326enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17327export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17328whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17329compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17330old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17331old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17332archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17333archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17334module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17335module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17336with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17337allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17338no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17339hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17340hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17341hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17342hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17343hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17344hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17345hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17346hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17347inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17348link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17349always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17350export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17351exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17352include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17353prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17354postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17355file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17356hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17357compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17358predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17359postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17360predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17361postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17362compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17363
17364LTCC='$LTCC'
17365LTCFLAGS='$LTCFLAGS'
17366compiler='$compiler_DEFAULT'
17367
17368# A function that is used when there is no print builtin or printf.
17369func_fallback_echo ()
17370{
17371 eval 'cat <<_LTECHO_EOF
17372\$1
17373_LTECHO_EOF'
17374}
17375
17376# Quote evaled strings.
17377for var in SHELL \
17378ECHO \
17379SED \
17380GREP \
17381EGREP \
17382FGREP \
17383LD \
17384NM \
17385LN_S \
17386lt_SP2NL \
17387lt_NL2SP \
17388reload_flag \
17389OBJDUMP \
17390deplibs_check_method \
17391file_magic_cmd \
17392file_magic_glob \
17393want_nocaseglob \
17394DLLTOOL \
17395sharedlib_from_linklib_cmd \
17396AR \
17397AR_FLAGS \
17398archiver_list_spec \
17399STRIP \
17400RANLIB \
17401CC \
17402CFLAGS \
17403compiler \
17404lt_cv_sys_global_symbol_pipe \
17405lt_cv_sys_global_symbol_to_cdecl \
17406lt_cv_sys_global_symbol_to_c_name_address \
17407lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17408nm_file_list_spec \
17409lt_prog_compiler_no_builtin_flag \
17410lt_prog_compiler_pic \
17411lt_prog_compiler_wl \
17412lt_prog_compiler_static \
17413lt_cv_prog_compiler_c_o \
17414need_locks \
17415MANIFEST_TOOL \
17416DSYMUTIL \
17417NMEDIT \
17418LIPO \
17419OTOOL \
17420OTOOL64 \
17421shrext_cmds \
17422export_dynamic_flag_spec \
17423whole_archive_flag_spec \
17424compiler_needs_object \
17425with_gnu_ld \
17426allow_undefined_flag \
17427no_undefined_flag \
17428hardcode_libdir_flag_spec \
17429hardcode_libdir_flag_spec_ld \
17430hardcode_libdir_separator \
17431exclude_expsyms \
17432include_expsyms \
17433file_list_spec \
17434variables_saved_for_relink \
17435libname_spec \
17436library_names_spec \
17437soname_spec \
17438install_override_mode \
17439finish_eval \
17440old_striplib \
17441striplib \
17442compiler_lib_search_dirs \
17443predep_objects \
17444postdep_objects \
17445predeps \
17446postdeps \
17447compiler_lib_search_path \
17448LD_CXX \
17449reload_flag_CXX \
17450compiler_CXX \
17451lt_prog_compiler_no_builtin_flag_CXX \
17452lt_prog_compiler_pic_CXX \
17453lt_prog_compiler_wl_CXX \
17454lt_prog_compiler_static_CXX \
17455lt_cv_prog_compiler_c_o_CXX \
17456export_dynamic_flag_spec_CXX \
17457whole_archive_flag_spec_CXX \
17458compiler_needs_object_CXX \
17459with_gnu_ld_CXX \
17460allow_undefined_flag_CXX \
17461no_undefined_flag_CXX \
17462hardcode_libdir_flag_spec_CXX \
17463hardcode_libdir_flag_spec_ld_CXX \
17464hardcode_libdir_separator_CXX \
17465exclude_expsyms_CXX \
17466include_expsyms_CXX \
17467file_list_spec_CXX \
17468compiler_lib_search_dirs_CXX \
17469predep_objects_CXX \
17470postdep_objects_CXX \
17471predeps_CXX \
17472postdeps_CXX \
17473compiler_lib_search_path_CXX; do
17474 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17475 *[\\\\\\\`\\"\\\$]*)
17476 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17477 ;;
17478 *)
17479 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17480 ;;
17481 esac
17482done
17483
17484# Double-quote double-evaled strings.
17485for var in reload_cmds \
17486old_postinstall_cmds \
17487old_postuninstall_cmds \
17488old_archive_cmds \
17489extract_expsyms_cmds \
17490old_archive_from_new_cmds \
17491old_archive_from_expsyms_cmds \
17492archive_cmds \
17493archive_expsym_cmds \
17494module_cmds \
17495module_expsym_cmds \
17496export_symbols_cmds \
17497prelink_cmds \
17498postlink_cmds \
17499postinstall_cmds \
17500postuninstall_cmds \
17501finish_cmds \
17502sys_lib_search_path_spec \
17503sys_lib_dlsearch_path_spec \
17504reload_cmds_CXX \
17505old_archive_cmds_CXX \
17506old_archive_from_new_cmds_CXX \
17507old_archive_from_expsyms_cmds_CXX \
17508archive_cmds_CXX \
17509archive_expsym_cmds_CXX \
17510module_cmds_CXX \
17511module_expsym_cmds_CXX \
17512export_symbols_cmds_CXX \
17513prelink_cmds_CXX \
17514postlink_cmds_CXX; do
17515 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17516 *[\\\\\\\`\\"\\\$]*)
17517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17518 ;;
17519 *)
17520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17521 ;;
17522 esac
17523done
17524
17525ac_aux_dir='$ac_aux_dir'
17526xsi_shell='$xsi_shell'
17527lt_shell_append='$lt_shell_append'
17528
17529# See if we are running on zsh, and set the options which allow our
17530# commands through without removal of \ escapes INIT.
17531if test -n "\${ZSH_VERSION+set}" ; then
17532 setopt NO_GLOB_SUBST
17533fi
17534
17535
17536 PACKAGE='$PACKAGE'
17537 VERSION='$VERSION'
17538 TIMESTAMP='$TIMESTAMP'
17539 RM='$RM'
17540 ofile='$ofile'
17541
17542
17543
17544
17545
17546AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17547
17548_ACEOF
17549
17550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551
17552# Handling of arguments.
17553for ac_config_target in $ac_config_targets
17554do
17555 case $ac_config_target in
17556 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17558 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17560 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17561 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17562 "src/ccrtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccrtp/Makefile" ;;
17563 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17564 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
17565 "phone/Makefile") CONFIG_FILES="$CONFIG_FILES phone/Makefile" ;;
17566 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
17567 "ccrtp.spec") CONFIG_FILES="$CONFIG_FILES ccrtp.spec" ;;
17568 "libccrtp.spec") CONFIG_FILES="$CONFIG_FILES libccrtp.spec" ;;
17569 "ccrtp.list") CONFIG_FILES="$CONFIG_FILES ccrtp.list" ;;
17570 "libccrtp1.pc") CONFIG_FILES="$CONFIG_FILES libccrtp1.pc" ;;
17571 "src/ccrtp/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccrtp/crypto/Makefile" ;;
17572
17573 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17574 esac
17575done
17576
17577
17578# If the user did not use the arguments to specify the items to instantiate,
17579# then the envvar interface is used. Set only those that are not.
17580# We use the long form for the default assignment because of an extremely
17581# bizarre bug on SunOS 4.1.3.
17582if $ac_need_defaults; then
17583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17586fi
17587
17588# Have a temporary directory for convenience. Make it in the build tree
17589# simply because there is no reason against having it here, and in addition,
17590# creating and moving files from /tmp can sometimes cause problems.
17591# Hook for its removal unless debugging.
17592# Note that there is a small window in which the directory will not be cleaned:
17593# after its creation but before its name has been assigned to `$tmp'.
17594$debug ||
17595{
17596 tmp= ac_tmp=
17597 trap 'exit_status=$?
17598 : "${ac_tmp:=$tmp}"
17599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17600' 0
17601 trap 'as_fn_exit 1' 1 2 13 15
17602}
17603# Create a (secure) tmp directory for tmp files.
17604
17605{
17606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17607 test -d "$tmp"
17608} ||
17609{
17610 tmp=./conf$$-$RANDOM
17611 (umask 077 && mkdir "$tmp")
17612} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17613ac_tmp=$tmp
17614
17615# Set up the scripts for CONFIG_FILES section.
17616# No need to generate them if there are no CONFIG_FILES.
17617# This happens for instance with `./config.status config.h'.
17618if test -n "$CONFIG_FILES"; then
17619
17620
17621ac_cr=`echo X | tr X '\015'`
17622# On cygwin, bash can eat \r inside `` if the user requested igncr.
17623# But we know of no other shell where ac_cr would be empty at this
17624# point, so we can use a bashism as a fallback.
17625if test "x$ac_cr" = x; then
17626 eval ac_cr=\$\'\\r\'
17627fi
17628ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17629if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17630 ac_cs_awk_cr='\\r'
17631else
17632 ac_cs_awk_cr=$ac_cr
17633fi
17634
17635echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17636_ACEOF
17637
17638
17639{
17640 echo "cat >conf$$subs.awk <<_ACEOF" &&
17641 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17642 echo "_ACEOF"
17643} >conf$$subs.sh ||
17644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17645ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17646ac_delim='%!_!# '
17647for ac_last_try in false false false false false :; do
17648 . ./conf$$subs.sh ||
17649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17650
17651 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17652 if test $ac_delim_n = $ac_delim_num; then
17653 break
17654 elif $ac_last_try; then
17655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17656 else
17657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17658 fi
17659done
17660rm -f conf$$subs.sh
17661
17662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17663cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17664_ACEOF
17665sed -n '
17666h
17667s/^/S["/; s/!.*/"]=/
17668p
17669g
17670s/^[^!]*!//
17671:repl
17672t repl
17673s/'"$ac_delim"'$//
17674t delim
17675:nl
17676h
17677s/\(.\{148\}\)..*/\1/
17678t more1
17679s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17680p
17681n
17682b repl
17683:more1
17684s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17685p
17686g
17687s/.\{148\}//
17688t nl
17689:delim
17690h
17691s/\(.\{148\}\)..*/\1/
17692t more2
17693s/["\\]/\\&/g; s/^/"/; s/$/"/
17694p
17695b
17696:more2
17697s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17698p
17699g
17700s/.\{148\}//
17701t delim
17702' <conf$$subs.awk | sed '
17703/^[^""]/{
17704 N
17705 s/\n//
17706}
17707' >>$CONFIG_STATUS || ac_write_fail=1
17708rm -f conf$$subs.awk
17709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17710_ACAWK
17711cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17712 for (key in S) S_is_set[key] = 1
17713 FS = ""
17714
17715}
17716{
17717 line = $ 0
17718 nfields = split(line, field, "@")
17719 substed = 0
17720 len = length(field[1])
17721 for (i = 2; i < nfields; i++) {
17722 key = field[i]
17723 keylen = length(key)
17724 if (S_is_set[key]) {
17725 value = S[key]
17726 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17727 len += length(value) + length(field[++i])
17728 substed = 1
17729 } else
17730 len += 1 + keylen
17731 }
17732
17733 print line
17734}
17735
17736_ACAWK
17737_ACEOF
17738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17739if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17740 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17741else
17742 cat
17743fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17744 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17745_ACEOF
17746
17747# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17748# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17749# trailing colons and then remove the whole line if VPATH becomes empty
17750# (actually we leave an empty line to preserve line numbers).
17751if test "x$srcdir" = x.; then
17752 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17753h
17754s///
17755s/^/:/
17756s/[ ]*$/:/
17757s/:\$(srcdir):/:/g
17758s/:\${srcdir}:/:/g
17759s/:@srcdir@:/:/g
17760s/^:*//
17761s/:*$//
17762x
17763s/\(=[ ]*\).*/\1/
17764G
17765s/\n//
17766s/^[^=]*=[ ]*$//
17767}'
17768fi
17769
17770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771fi # test -n "$CONFIG_FILES"
17772
17773# Set up the scripts for CONFIG_HEADERS section.
17774# No need to generate them if there are no CONFIG_HEADERS.
17775# This happens for instance with `./config.status Makefile'.
17776if test -n "$CONFIG_HEADERS"; then
17777cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17778BEGIN {
17779_ACEOF
17780
17781# Transform confdefs.h into an awk script `defines.awk', embedded as
17782# here-document in config.status, that substitutes the proper values into
17783# config.h.in to produce config.h.
17784
17785# Create a delimiter string that does not exist in confdefs.h, to ease
17786# handling of long lines.
17787ac_delim='%!_!# '
17788for ac_last_try in false false :; do
17789 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17790 if test -z "$ac_tt"; then
17791 break
17792 elif $ac_last_try; then
17793 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17794 else
17795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17796 fi
17797done
17798
17799# For the awk script, D is an array of macro values keyed by name,
17800# likewise P contains macro parameters if any. Preserve backslash
17801# newline sequences.
17802
17803ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17804sed -n '
17805s/.\{148\}/&'"$ac_delim"'/g
17806t rset
17807:rset
17808s/^[ ]*#[ ]*define[ ][ ]*/ /
17809t def
17810d
17811:def
17812s/\\$//
17813t bsnl
17814s/["\\]/\\&/g
17815s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17816D["\1"]=" \3"/p
17817s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17818d
17819:bsnl
17820s/["\\]/\\&/g
17821s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17822D["\1"]=" \3\\\\\\n"\\/p
17823t cont
17824s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17825t cont
17826d
17827:cont
17828n
17829s/.\{148\}/&'"$ac_delim"'/g
17830t clear
17831:clear
17832s/\\$//
17833t bsnlc
17834s/["\\]/\\&/g; s/^/"/; s/$/"/p
17835d
17836:bsnlc
17837s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17838b cont
17839' <confdefs.h | sed '
17840s/'"$ac_delim"'/"\\\
17841"/g' >>$CONFIG_STATUS || ac_write_fail=1
17842
17843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17844 for (key in D) D_is_set[key] = 1
17845 FS = ""
17846}
17847/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17848 line = \$ 0
17849 split(line, arg, " ")
17850 if (arg[1] == "#") {
17851 defundef = arg[2]
17852 mac1 = arg[3]
17853 } else {
17854 defundef = substr(arg[1], 2)
17855 mac1 = arg[2]
17856 }
17857 split(mac1, mac2, "(") #)
17858 macro = mac2[1]
17859 prefix = substr(line, 1, index(line, defundef) - 1)
17860 if (D_is_set[macro]) {
17861 # Preserve the white space surrounding the "#".
17862 print prefix "define", macro P[macro] D[macro]
17863 next
17864 } else {
17865 # Replace #undef with comments. This is necessary, for example,
17866 # in the case of _POSIX_SOURCE, which is predefined and required
17867 # on some systems where configure will not decide to define it.
17868 if (defundef == "undef") {
17869 print "/*", prefix defundef, macro, "*/"
17870 next
17871 }
17872 }
17873}
17874{ print }
17875_ACAWK
17876_ACEOF
17877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17878 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17879fi # test -n "$CONFIG_HEADERS"
17880
17881
17882eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17883shift
17884for ac_tag
17885do
17886 case $ac_tag in
17887 :[FHLC]) ac_mode=$ac_tag; continue;;
17888 esac
17889 case $ac_mode$ac_tag in
17890 :[FHL]*:*);;
17891 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17892 :[FH]-) ac_tag=-:-;;
17893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17894 esac
17895 ac_save_IFS=$IFS
17896 IFS=:
17897 set x $ac_tag
17898 IFS=$ac_save_IFS
17899 shift
17900 ac_file=$1
17901 shift
17902
17903 case $ac_mode in
17904 :L) ac_source=$1;;
17905 :[FH])
17906 ac_file_inputs=
17907 for ac_f
17908 do
17909 case $ac_f in
17910 -) ac_f="$ac_tmp/stdin";;
17911 *) # Look for the file first in the build tree, then in the source tree
17912 # (if the path is not absolute). The absolute path cannot be DOS-style,
17913 # because $ac_f cannot contain `:'.
17914 test -f "$ac_f" ||
17915 case $ac_f in
17916 [\\/$]*) false;;
17917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17918 esac ||
17919 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17920 esac
17921 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17922 as_fn_append ac_file_inputs " '$ac_f'"
17923 done
17924
17925 # Let's still pretend it is `configure' which instantiates (i.e., don't
17926 # use $as_me), people would be surprised to read:
17927 # /* config.h. Generated by config.status. */
17928 configure_input='Generated from '`
17929 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17930 `' by configure.'
17931 if test x"$ac_file" != x-; then
17932 configure_input="$ac_file. $configure_input"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17934$as_echo "$as_me: creating $ac_file" >&6;}
17935 fi
17936 # Neutralize special characters interpreted by sed in replacement strings.
17937 case $configure_input in #(
17938 *\&* | *\|* | *\\* )
17939 ac_sed_conf_input=`$as_echo "$configure_input" |
17940 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17941 *) ac_sed_conf_input=$configure_input;;
17942 esac
17943
17944 case $ac_tag in
17945 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17947 esac
17948 ;;
17949 esac
17950
17951 ac_dir=`$as_dirname -- "$ac_file" ||
17952$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17953 X"$ac_file" : 'X\(//\)[^/]' \| \
17954 X"$ac_file" : 'X\(//\)$' \| \
17955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17956$as_echo X"$ac_file" |
17957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17958 s//\1/
17959 q
17960 }
17961 /^X\(\/\/\)[^/].*/{
17962 s//\1/
17963 q
17964 }
17965 /^X\(\/\/\)$/{
17966 s//\1/
17967 q
17968 }
17969 /^X\(\/\).*/{
17970 s//\1/
17971 q
17972 }
17973 s/.*/./; q'`
17974 as_dir="$ac_dir"; as_fn_mkdir_p
17975 ac_builddir=.
17976
17977case "$ac_dir" in
17978.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17979*)
17980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17981 # A ".." for each directory in $ac_dir_suffix.
17982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17983 case $ac_top_builddir_sub in
17984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17986 esac ;;
17987esac
17988ac_abs_top_builddir=$ac_pwd
17989ac_abs_builddir=$ac_pwd$ac_dir_suffix
17990# for backward compatibility:
17991ac_top_builddir=$ac_top_build_prefix
17992
17993case $srcdir in
17994 .) # We are building in place.
17995 ac_srcdir=.
17996 ac_top_srcdir=$ac_top_builddir_sub
17997 ac_abs_top_srcdir=$ac_pwd ;;
17998 [\\/]* | ?:[\\/]* ) # Absolute name.
17999 ac_srcdir=$srcdir$ac_dir_suffix;
18000 ac_top_srcdir=$srcdir
18001 ac_abs_top_srcdir=$srcdir ;;
18002 *) # Relative name.
18003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18004 ac_top_srcdir=$ac_top_build_prefix$srcdir
18005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18006esac
18007ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18008
18009
18010 case $ac_mode in
18011 :F)
18012 #
18013 # CONFIG_FILE
18014 #
18015
18016 case $INSTALL in
18017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18018 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18019 esac
18020 ac_MKDIR_P=$MKDIR_P
18021 case $MKDIR_P in
18022 [\\/$]* | ?:[\\/]* ) ;;
18023 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18024 esac
18025_ACEOF
18026
18027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18028# If the template does not know about datarootdir, expand it.
18029# FIXME: This hack should be removed a few years after 2.60.
18030ac_datarootdir_hack=; ac_datarootdir_seen=
18031ac_sed_dataroot='
18032/datarootdir/ {
18033 p
18034 q
18035}
18036/@datadir@/p
18037/@docdir@/p
18038/@infodir@/p
18039/@localedir@/p
18040/@mandir@/p'
18041case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18042*datarootdir*) ac_datarootdir_seen=yes;;
18043*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18045$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18046_ACEOF
18047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 ac_datarootdir_hack='
18049 s&@datadir@&$datadir&g
18050 s&@docdir@&$docdir&g
18051 s&@infodir@&$infodir&g
18052 s&@localedir@&$localedir&g
18053 s&@mandir@&$mandir&g
18054 s&\\\${datarootdir}&$datarootdir&g' ;;
18055esac
18056_ACEOF
18057
18058# Neutralize VPATH when `$srcdir' = `.'.
18059# Shell code in configure.ac might set extrasub.
18060# FIXME: do we really want to maintain this feature?
18061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18062ac_sed_extra="$ac_vpsub
18063$extrasub
18064_ACEOF
18065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18066:t
18067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18068s|@configure_input@|$ac_sed_conf_input|;t t
18069s&@top_builddir@&$ac_top_builddir_sub&;t t
18070s&@top_build_prefix@&$ac_top_build_prefix&;t t
18071s&@srcdir@&$ac_srcdir&;t t
18072s&@abs_srcdir@&$ac_abs_srcdir&;t t
18073s&@top_srcdir@&$ac_top_srcdir&;t t
18074s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18075s&@builddir@&$ac_builddir&;t t
18076s&@abs_builddir@&$ac_abs_builddir&;t t
18077s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18078s&@INSTALL@&$ac_INSTALL&;t t
18079s&@MKDIR_P@&$ac_MKDIR_P&;t t
18080$ac_datarootdir_hack
18081"
18082eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18083 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18084
18085test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18086 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18087 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18088 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18090which seems to be undefined. Please make sure it is defined" >&5
18091$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18092which seems to be undefined. Please make sure it is defined" >&2;}
18093
18094 rm -f "$ac_tmp/stdin"
18095 case $ac_file in
18096 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18097 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18098 esac \
18099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18100 ;;
18101 :H)
18102 #
18103 # CONFIG_HEADER
18104 #
18105 if test x"$ac_file" != x-; then
18106 {
18107 $as_echo "/* $configure_input */" \
18108 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18109 } >"$ac_tmp/config.h" \
18110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18111 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18113$as_echo "$as_me: $ac_file is unchanged" >&6;}
18114 else
18115 rm -f "$ac_file"
18116 mv "$ac_tmp/config.h" "$ac_file" \
18117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18118 fi
18119 else
18120 $as_echo "/* $configure_input */" \
18121 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18122 || as_fn_error $? "could not create -" "$LINENO" 5
18123 fi
18124# Compute "$ac_file"'s index in $config_headers.
18125_am_arg="$ac_file"
18126_am_stamp_count=1
18127for _am_header in $config_headers :; do
18128 case $_am_header in
18129 $_am_arg | $_am_arg:* )
18130 break ;;
18131 * )
18132 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18133 esac
18134done
18135echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18136$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18137 X"$_am_arg" : 'X\(//\)[^/]' \| \
18138 X"$_am_arg" : 'X\(//\)$' \| \
18139 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18140$as_echo X"$_am_arg" |
18141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18142 s//\1/
18143 q
18144 }
18145 /^X\(\/\/\)[^/].*/{
18146 s//\1/
18147 q
18148 }
18149 /^X\(\/\/\)$/{
18150 s//\1/
18151 q
18152 }
18153 /^X\(\/\).*/{
18154 s//\1/
18155 q
18156 }
18157 s/.*/./; q'`/stamp-h$_am_stamp_count
18158 ;;
18159
18160 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18161$as_echo "$as_me: executing $ac_file commands" >&6;}
18162 ;;
18163 esac
18164
18165
18166 case $ac_file$ac_mode in
18167 "libtool":C)
18168
18169 # See if we are running on zsh, and set the options which allow our
18170 # commands through without removal of \ escapes.
18171 if test -n "${ZSH_VERSION+set}" ; then
18172 setopt NO_GLOB_SUBST
18173 fi
18174
18175 cfgfile="${ofile}T"
18176 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18177 $RM "$cfgfile"
18178
18179 cat <<_LT_EOF >> "$cfgfile"
18180#! $SHELL
18181
18182# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18183# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18184# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18185# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18186#
18187# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18188# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18189# Inc.
18190# Written by Gordon Matzigkeit, 1996
18191#
18192# This file is part of GNU Libtool.
18193#
18194# GNU Libtool is free software; you can redistribute it and/or
18195# modify it under the terms of the GNU General Public License as
18196# published by the Free Software Foundation; either version 2 of
18197# the License, or (at your option) any later version.
18198#
18199# As a special exception to the GNU General Public License,
18200# if you distribute this file as part of a program or library that
18201# is built using GNU Libtool, you may include this file under the
18202# same distribution terms that you use for the rest of that program.
18203#
18204# GNU Libtool is distributed in the hope that it will be useful,
18205# but WITHOUT ANY WARRANTY; without even the implied warranty of
18206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18207# GNU General Public License for more details.
18208#
18209# You should have received a copy of the GNU General Public License
18210# along with GNU Libtool; see the file COPYING. If not, a copy
18211# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18212# obtained by writing to the Free Software Foundation, Inc.,
18213# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18214
18215
18216# The names of the tagged configurations supported by this script.
18217available_tags="CXX "
18218
18219# ### BEGIN LIBTOOL CONFIG
18220
18221# Which release of libtool.m4 was used?
18222macro_version=$macro_version
18223macro_revision=$macro_revision
18224
18225# Whether or not to build shared libraries.
18226build_libtool_libs=$enable_shared
18227
18228# Whether or not to build static libraries.
18229build_old_libs=$enable_static
18230
18231# What type of objects to build.
18232pic_mode=$pic_mode
18233
18234# Whether or not to optimize for fast installation.
18235fast_install=$enable_fast_install
18236
18237# Shell to use when invoking shell scripts.
18238SHELL=$lt_SHELL
18239
18240# An echo program that protects backslashes.
18241ECHO=$lt_ECHO
18242
18243# The host system.
18244host_alias=$host_alias
18245host=$host
18246host_os=$host_os
18247
18248# The build system.
18249build_alias=$build_alias
18250build=$build
18251build_os=$build_os
18252
18253# A sed program that does not truncate output.
18254SED=$lt_SED
18255
18256# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18257Xsed="\$SED -e 1s/^X//"
18258
18259# A grep program that handles long lines.
18260GREP=$lt_GREP
18261
18262# An ERE matcher.
18263EGREP=$lt_EGREP
18264
18265# A literal string matcher.
18266FGREP=$lt_FGREP
18267
18268# A BSD- or MS-compatible name lister.
18269NM=$lt_NM
18270
18271# Whether we need soft or hard links.
18272LN_S=$lt_LN_S
18273
18274# What is the maximum length of a command?
18275max_cmd_len=$max_cmd_len
18276
18277# Object file suffix (normally "o").
18278objext=$ac_objext
18279
18280# Executable file suffix (normally "").
18281exeext=$exeext
18282
18283# whether the shell understands "unset".
18284lt_unset=$lt_unset
18285
18286# turn spaces into newlines.
18287SP2NL=$lt_lt_SP2NL
18288
18289# turn newlines into spaces.
18290NL2SP=$lt_lt_NL2SP
18291
18292# convert \$build file names to \$host format.
18293to_host_file_cmd=$lt_cv_to_host_file_cmd
18294
18295# convert \$build files to toolchain format.
18296to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18297
18298# An object symbol dumper.
18299OBJDUMP=$lt_OBJDUMP
18300
18301# Method to check whether dependent libraries are shared objects.
18302deplibs_check_method=$lt_deplibs_check_method
18303
18304# Command to use when deplibs_check_method = "file_magic".
18305file_magic_cmd=$lt_file_magic_cmd
18306
18307# How to find potential files when deplibs_check_method = "file_magic".
18308file_magic_glob=$lt_file_magic_glob
18309
18310# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18311want_nocaseglob=$lt_want_nocaseglob
18312
18313# DLL creation program.
18314DLLTOOL=$lt_DLLTOOL
18315
18316# Command to associate shared and link libraries.
18317sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18318
18319# The archiver.
18320AR=$lt_AR
18321
18322# Flags to create an archive.
18323AR_FLAGS=$lt_AR_FLAGS
18324
18325# How to feed a file listing to the archiver.
18326archiver_list_spec=$lt_archiver_list_spec
18327
18328# A symbol stripping program.
18329STRIP=$lt_STRIP
18330
18331# Commands used to install an old-style archive.
18332RANLIB=$lt_RANLIB
18333old_postinstall_cmds=$lt_old_postinstall_cmds
18334old_postuninstall_cmds=$lt_old_postuninstall_cmds
18335
18336# Whether to use a lock for old archive extraction.
18337lock_old_archive_extraction=$lock_old_archive_extraction
18338
18339# A C compiler.
18340LTCC=$lt_CC
18341
18342# LTCC compiler flags.
18343LTCFLAGS=$lt_CFLAGS
18344
18345# Take the output of nm and produce a listing of raw symbols and C names.
18346global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18347
18348# Transform the output of nm in a proper C declaration.
18349global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18350
18351# Transform the output of nm in a C name address pair.
18352global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18353
18354# Transform the output of nm in a C name address pair when lib prefix is needed.
18355global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18356
18357# Specify filename containing input files for \$NM.
18358nm_file_list_spec=$lt_nm_file_list_spec
18359
18360# The root where to search for dependent libraries,and in which our libraries should be installed.
18361lt_sysroot=$lt_sysroot
18362
18363# The name of the directory that contains temporary libtool files.
18364objdir=$objdir
18365
18366# Used to examine libraries when file_magic_cmd begins with "file".
18367MAGIC_CMD=$MAGIC_CMD
18368
18369# Must we lock files when doing compilation?
18370need_locks=$lt_need_locks
18371
18372# Manifest tool.
18373MANIFEST_TOOL=$lt_MANIFEST_TOOL
18374
18375# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18376DSYMUTIL=$lt_DSYMUTIL
18377
18378# Tool to change global to local symbols on Mac OS X.
18379NMEDIT=$lt_NMEDIT
18380
18381# Tool to manipulate fat objects and archives on Mac OS X.
18382LIPO=$lt_LIPO
18383
18384# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18385OTOOL=$lt_OTOOL
18386
18387# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18388OTOOL64=$lt_OTOOL64
18389
18390# Old archive suffix (normally "a").
18391libext=$libext
18392
18393# Shared library suffix (normally ".so").
18394shrext_cmds=$lt_shrext_cmds
18395
18396# The commands to extract the exported symbol list from a shared archive.
18397extract_expsyms_cmds=$lt_extract_expsyms_cmds
18398
18399# Variables whose values should be saved in libtool wrapper scripts and
18400# restored at link time.
18401variables_saved_for_relink=$lt_variables_saved_for_relink
18402
18403# Do we need the "lib" prefix for modules?
18404need_lib_prefix=$need_lib_prefix
18405
18406# Do we need a version for libraries?
18407need_version=$need_version
18408
18409# Library versioning type.
18410version_type=$version_type
18411
18412# Shared library runtime path variable.
18413runpath_var=$runpath_var
18414
18415# Shared library path variable.
18416shlibpath_var=$shlibpath_var
18417
18418# Is shlibpath searched before the hard-coded library search path?
18419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18420
18421# Format of library name prefix.
18422libname_spec=$lt_libname_spec
18423
18424# List of archive names. First name is the real one, the rest are links.
18425# The last name is the one that the linker finds with -lNAME
18426library_names_spec=$lt_library_names_spec
18427
18428# The coded name of the library, if different from the real name.
18429soname_spec=$lt_soname_spec
18430
18431# Permission mode override for installation of shared libraries.
18432install_override_mode=$lt_install_override_mode
18433
18434# Command to use after installation of a shared archive.
18435postinstall_cmds=$lt_postinstall_cmds
18436
18437# Command to use after uninstallation of a shared archive.
18438postuninstall_cmds=$lt_postuninstall_cmds
18439
18440# Commands used to finish a libtool library installation in a directory.
18441finish_cmds=$lt_finish_cmds
18442
18443# As "finish_cmds", except a single script fragment to be evaled but
18444# not shown.
18445finish_eval=$lt_finish_eval
18446
18447# Whether we should hardcode library paths into libraries.
18448hardcode_into_libs=$hardcode_into_libs
18449
18450# Compile-time system search path for libraries.
18451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18452
18453# Run-time system search path for libraries.
18454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18455
18456# Whether dlopen is supported.
18457dlopen_support=$enable_dlopen
18458
18459# Whether dlopen of programs is supported.
18460dlopen_self=$enable_dlopen_self
18461
18462# Whether dlopen of statically linked programs is supported.
18463dlopen_self_static=$enable_dlopen_self_static
18464
18465# Commands to strip libraries.
18466old_striplib=$lt_old_striplib
18467striplib=$lt_striplib
18468
18469
18470# The linker used to build libraries.
18471LD=$lt_LD
18472
18473# How to create reloadable object files.
18474reload_flag=$lt_reload_flag
18475reload_cmds=$lt_reload_cmds
18476
18477# Commands used to build an old-style archive.
18478old_archive_cmds=$lt_old_archive_cmds
18479
18480# A language specific compiler.
18481CC=$lt_compiler
18482
18483# Is the compiler the GNU compiler?
18484with_gcc=$GCC
18485
18486# Compiler flag to turn off builtin functions.
18487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18488
18489# Additional compiler flags for building library objects.
18490pic_flag=$lt_lt_prog_compiler_pic
18491
18492# How to pass a linker flag through the compiler.
18493wl=$lt_lt_prog_compiler_wl
18494
18495# Compiler flag to prevent dynamic linking.
18496link_static_flag=$lt_lt_prog_compiler_static
18497
18498# Does compiler simultaneously support -c and -o options?
18499compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18500
18501# Whether or not to add -lc for building shared libraries.
18502build_libtool_need_lc=$archive_cmds_need_lc
18503
18504# Whether or not to disallow shared libs when runtime libs are static.
18505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18506
18507# Compiler flag to allow reflexive dlopens.
18508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18509
18510# Compiler flag to generate shared objects directly from archives.
18511whole_archive_flag_spec=$lt_whole_archive_flag_spec
18512
18513# Whether the compiler copes with passing no objects directly.
18514compiler_needs_object=$lt_compiler_needs_object
18515
18516# Create an old-style archive from a shared archive.
18517old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18518
18519# Create a temporary old-style archive to link instead of a shared archive.
18520old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18521
18522# Commands used to build a shared archive.
18523archive_cmds=$lt_archive_cmds
18524archive_expsym_cmds=$lt_archive_expsym_cmds
18525
18526# Commands used to build a loadable module if different from building
18527# a shared archive.
18528module_cmds=$lt_module_cmds
18529module_expsym_cmds=$lt_module_expsym_cmds
18530
18531# Whether we are building with GNU ld or not.
18532with_gnu_ld=$lt_with_gnu_ld
18533
18534# Flag that allows shared libraries with undefined symbols to be built.
18535allow_undefined_flag=$lt_allow_undefined_flag
18536
18537# Flag that enforces no undefined symbols.
18538no_undefined_flag=$lt_no_undefined_flag
18539
18540# Flag to hardcode \$libdir into a binary during linking.
18541# This must work even if \$libdir does not exist
18542hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18543
18544# If ld is used when linking, flag to hardcode \$libdir into a binary
18545# during linking. This must work even if \$libdir does not exist.
18546hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18547
18548# Whether we need a single "-rpath" flag with a separated argument.
18549hardcode_libdir_separator=$lt_hardcode_libdir_separator
18550
18551# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18552# DIR into the resulting binary.
18553hardcode_direct=$hardcode_direct
18554
18555# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18556# DIR into the resulting binary and the resulting library dependency is
18557# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18558# library is relocated.
18559hardcode_direct_absolute=$hardcode_direct_absolute
18560
18561# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18562# into the resulting binary.
18563hardcode_minus_L=$hardcode_minus_L
18564
18565# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18566# into the resulting binary.
18567hardcode_shlibpath_var=$hardcode_shlibpath_var
18568
18569# Set to "yes" if building a shared library automatically hardcodes DIR
18570# into the library and all subsequent libraries and executables linked
18571# against it.
18572hardcode_automatic=$hardcode_automatic
18573
18574# Set to yes if linker adds runtime paths of dependent libraries
18575# to runtime path list.
18576inherit_rpath=$inherit_rpath
18577
18578# Whether libtool must link a program against all its dependency libraries.
18579link_all_deplibs=$link_all_deplibs
18580
18581# Set to "yes" if exported symbols are required.
18582always_export_symbols=$always_export_symbols
18583
18584# The commands to list exported symbols.
18585export_symbols_cmds=$lt_export_symbols_cmds
18586
18587# Symbols that should not be listed in the preloaded symbols.
18588exclude_expsyms=$lt_exclude_expsyms
18589
18590# Symbols that must always be exported.
18591include_expsyms=$lt_include_expsyms
18592
18593# Commands necessary for linking programs (against libraries) with templates.
18594prelink_cmds=$lt_prelink_cmds
18595
18596# Commands necessary for finishing linking programs.
18597postlink_cmds=$lt_postlink_cmds
18598
18599# Specify filename containing input files.
18600file_list_spec=$lt_file_list_spec
18601
18602# How to hardcode a shared library path into an executable.
18603hardcode_action=$hardcode_action
18604
18605# The directories searched by this compiler when creating a shared library.
18606compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18607
18608# Dependencies to place before and after the objects being linked to
18609# create a shared library.
18610predep_objects=$lt_predep_objects
18611postdep_objects=$lt_postdep_objects
18612predeps=$lt_predeps
18613postdeps=$lt_postdeps
18614
18615# The library search path used internally by the compiler when linking
18616# a shared library.
18617compiler_lib_search_path=$lt_compiler_lib_search_path
18618
18619# ### END LIBTOOL CONFIG
18620
18621_LT_EOF
18622
18623 case $host_os in
18624 aix3*)
18625 cat <<\_LT_EOF >> "$cfgfile"
18626# AIX sometimes has problems with the GCC collect2 program. For some
18627# reason, if we set the COLLECT_NAMES environment variable, the problems
18628# vanish in a puff of smoke.
18629if test "X${COLLECT_NAMES+set}" != Xset; then
18630 COLLECT_NAMES=
18631 export COLLECT_NAMES
18632fi
18633_LT_EOF
18634 ;;
18635 esac
18636
18637
18638ltmain="$ac_aux_dir/ltmain.sh"
18639
18640
18641 # We use sed instead of cat because bash on DJGPP gets confused if
18642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18643 # text mode, it properly converts lines to CR/LF. This bash problem
18644 # is reportedly fixed, but why not run on old versions too?
18645 sed '$q' "$ltmain" >> "$cfgfile" \
18646 || (rm -f "$cfgfile"; exit 1)
18647
18648 if test x"$xsi_shell" = xyes; then
18649 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18650func_dirname ()\
18651{\
18652\ case ${1} in\
18653\ */*) func_dirname_result="${1%/*}${2}" ;;\
18654\ * ) func_dirname_result="${3}" ;;\
18655\ esac\
18656} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18657 && mv -f "$cfgfile.tmp" "$cfgfile" \
18658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18659test 0 -eq $? || _lt_function_replace_fail=:
18660
18661
18662 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18663func_basename ()\
18664{\
18665\ func_basename_result="${1##*/}"\
18666} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18667 && mv -f "$cfgfile.tmp" "$cfgfile" \
18668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18669test 0 -eq $? || _lt_function_replace_fail=:
18670
18671
18672 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18673func_dirname_and_basename ()\
18674{\
18675\ case ${1} in\
18676\ */*) func_dirname_result="${1%/*}${2}" ;;\
18677\ * ) func_dirname_result="${3}" ;;\
18678\ esac\
18679\ func_basename_result="${1##*/}"\
18680} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18681 && mv -f "$cfgfile.tmp" "$cfgfile" \
18682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18683test 0 -eq $? || _lt_function_replace_fail=:
18684
18685
18686 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18687func_stripname ()\
18688{\
18689\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18690\ # positional parameters, so assign one to ordinary parameter first.\
18691\ func_stripname_result=${3}\
18692\ func_stripname_result=${func_stripname_result#"${1}"}\
18693\ func_stripname_result=${func_stripname_result%"${2}"}\
18694} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18695 && mv -f "$cfgfile.tmp" "$cfgfile" \
18696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18697test 0 -eq $? || _lt_function_replace_fail=:
18698
18699
18700 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18701func_split_long_opt ()\
18702{\
18703\ func_split_long_opt_name=${1%%=*}\
18704\ func_split_long_opt_arg=${1#*=}\
18705} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18706 && mv -f "$cfgfile.tmp" "$cfgfile" \
18707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18708test 0 -eq $? || _lt_function_replace_fail=:
18709
18710
18711 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18712func_split_short_opt ()\
18713{\
18714\ func_split_short_opt_arg=${1#??}\
18715\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18716} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18717 && mv -f "$cfgfile.tmp" "$cfgfile" \
18718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18719test 0 -eq $? || _lt_function_replace_fail=:
18720
18721
18722 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18723func_lo2o ()\
18724{\
18725\ case ${1} in\
18726\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18727\ *) func_lo2o_result=${1} ;;\
18728\ esac\
18729} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18730 && mv -f "$cfgfile.tmp" "$cfgfile" \
18731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18732test 0 -eq $? || _lt_function_replace_fail=:
18733
18734
18735 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18736func_xform ()\
18737{\
18738 func_xform_result=${1%.*}.lo\
18739} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18740 && mv -f "$cfgfile.tmp" "$cfgfile" \
18741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18742test 0 -eq $? || _lt_function_replace_fail=:
18743
18744
18745 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18746func_arith ()\
18747{\
18748 func_arith_result=$(( $* ))\
18749} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18750 && mv -f "$cfgfile.tmp" "$cfgfile" \
18751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18752test 0 -eq $? || _lt_function_replace_fail=:
18753
18754
18755 sed -e '/^func_len ()$/,/^} # func_len /c\
18756func_len ()\
18757{\
18758 func_len_result=${#1}\
18759} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18760 && mv -f "$cfgfile.tmp" "$cfgfile" \
18761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18762test 0 -eq $? || _lt_function_replace_fail=:
18763
18764fi
18765
18766if test x"$lt_shell_append" = xyes; then
18767 sed -e '/^func_append ()$/,/^} # func_append /c\
18768func_append ()\
18769{\
18770 eval "${1}+=\\${2}"\
18771} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18772 && mv -f "$cfgfile.tmp" "$cfgfile" \
18773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18774test 0 -eq $? || _lt_function_replace_fail=:
18775
18776
18777 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18778func_append_quoted ()\
18779{\
18780\ func_quote_for_eval "${2}"\
18781\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18782} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18783 && mv -f "$cfgfile.tmp" "$cfgfile" \
18784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18785test 0 -eq $? || _lt_function_replace_fail=:
18786
18787
18788 # Save a `func_append' function call where possible by direct use of '+='
18789 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18790 && mv -f "$cfgfile.tmp" "$cfgfile" \
18791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18792 test 0 -eq $? || _lt_function_replace_fail=:
18793else
18794 # Save a `func_append' function call even when '+=' is not available
18795 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18796 && mv -f "$cfgfile.tmp" "$cfgfile" \
18797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18798 test 0 -eq $? || _lt_function_replace_fail=:
18799fi
18800
18801if test x"$_lt_function_replace_fail" = x":"; then
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18803$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18804fi
18805
18806
18807 mv -f "$cfgfile" "$ofile" ||
18808 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18809 chmod +x "$ofile"
18810
18811
18812 cat <<_LT_EOF >> "$ofile"
18813
18814# ### BEGIN LIBTOOL TAG CONFIG: CXX
18815
18816# The linker used to build libraries.
18817LD=$lt_LD_CXX
18818
18819# How to create reloadable object files.
18820reload_flag=$lt_reload_flag_CXX
18821reload_cmds=$lt_reload_cmds_CXX
18822
18823# Commands used to build an old-style archive.
18824old_archive_cmds=$lt_old_archive_cmds_CXX
18825
18826# A language specific compiler.
18827CC=$lt_compiler_CXX
18828
18829# Is the compiler the GNU compiler?
18830with_gcc=$GCC_CXX
18831
18832# Compiler flag to turn off builtin functions.
18833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18834
18835# Additional compiler flags for building library objects.
18836pic_flag=$lt_lt_prog_compiler_pic_CXX
18837
18838# How to pass a linker flag through the compiler.
18839wl=$lt_lt_prog_compiler_wl_CXX
18840
18841# Compiler flag to prevent dynamic linking.
18842link_static_flag=$lt_lt_prog_compiler_static_CXX
18843
18844# Does compiler simultaneously support -c and -o options?
18845compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18846
18847# Whether or not to add -lc for building shared libraries.
18848build_libtool_need_lc=$archive_cmds_need_lc_CXX
18849
18850# Whether or not to disallow shared libs when runtime libs are static.
18851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18852
18853# Compiler flag to allow reflexive dlopens.
18854export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18855
18856# Compiler flag to generate shared objects directly from archives.
18857whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18858
18859# Whether the compiler copes with passing no objects directly.
18860compiler_needs_object=$lt_compiler_needs_object_CXX
18861
18862# Create an old-style archive from a shared archive.
18863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18864
18865# Create a temporary old-style archive to link instead of a shared archive.
18866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18867
18868# Commands used to build a shared archive.
18869archive_cmds=$lt_archive_cmds_CXX
18870archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18871
18872# Commands used to build a loadable module if different from building
18873# a shared archive.
18874module_cmds=$lt_module_cmds_CXX
18875module_expsym_cmds=$lt_module_expsym_cmds_CXX
18876
18877# Whether we are building with GNU ld or not.
18878with_gnu_ld=$lt_with_gnu_ld_CXX
18879
18880# Flag that allows shared libraries with undefined symbols to be built.
18881allow_undefined_flag=$lt_allow_undefined_flag_CXX
18882
18883# Flag that enforces no undefined symbols.
18884no_undefined_flag=$lt_no_undefined_flag_CXX
18885
18886# Flag to hardcode \$libdir into a binary during linking.
18887# This must work even if \$libdir does not exist
18888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18889
18890# If ld is used when linking, flag to hardcode \$libdir into a binary
18891# during linking. This must work even if \$libdir does not exist.
18892hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18893
18894# Whether we need a single "-rpath" flag with a separated argument.
18895hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18896
18897# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18898# DIR into the resulting binary.
18899hardcode_direct=$hardcode_direct_CXX
18900
18901# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18902# DIR into the resulting binary and the resulting library dependency is
18903# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18904# library is relocated.
18905hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18906
18907# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18908# into the resulting binary.
18909hardcode_minus_L=$hardcode_minus_L_CXX
18910
18911# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18912# into the resulting binary.
18913hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18914
18915# Set to "yes" if building a shared library automatically hardcodes DIR
18916# into the library and all subsequent libraries and executables linked
18917# against it.
18918hardcode_automatic=$hardcode_automatic_CXX
18919
18920# Set to yes if linker adds runtime paths of dependent libraries
18921# to runtime path list.
18922inherit_rpath=$inherit_rpath_CXX
18923
18924# Whether libtool must link a program against all its dependency libraries.
18925link_all_deplibs=$link_all_deplibs_CXX
18926
18927# Set to "yes" if exported symbols are required.
18928always_export_symbols=$always_export_symbols_CXX
18929
18930# The commands to list exported symbols.
18931export_symbols_cmds=$lt_export_symbols_cmds_CXX
18932
18933# Symbols that should not be listed in the preloaded symbols.
18934exclude_expsyms=$lt_exclude_expsyms_CXX
18935
18936# Symbols that must always be exported.
18937include_expsyms=$lt_include_expsyms_CXX
18938
18939# Commands necessary for linking programs (against libraries) with templates.
18940prelink_cmds=$lt_prelink_cmds_CXX
18941
18942# Commands necessary for finishing linking programs.
18943postlink_cmds=$lt_postlink_cmds_CXX
18944
18945# Specify filename containing input files.
18946file_list_spec=$lt_file_list_spec_CXX
18947
18948# How to hardcode a shared library path into an executable.
18949hardcode_action=$hardcode_action_CXX
18950
18951# The directories searched by this compiler when creating a shared library.
18952compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18953
18954# Dependencies to place before and after the objects being linked to
18955# create a shared library.
18956predep_objects=$lt_predep_objects_CXX
18957postdep_objects=$lt_postdep_objects_CXX
18958predeps=$lt_predeps_CXX
18959postdeps=$lt_postdeps_CXX
18960
18961# The library search path used internally by the compiler when linking
18962# a shared library.
18963compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18964
18965# ### END LIBTOOL TAG CONFIG: CXX
18966_LT_EOF
18967
18968 ;;
18969 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18970 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18971 # are listed without --file. Let's play safe and only enable the eval
18972 # if we detect the quoting.
18973 case $CONFIG_FILES in
18974 *\'*) eval set x "$CONFIG_FILES" ;;
18975 *) set x $CONFIG_FILES ;;
18976 esac
18977 shift
18978 for mf
18979 do
18980 # Strip MF so we end up with the name of the file.
18981 mf=`echo "$mf" | sed -e 's/:.*$//'`
18982 # Check whether this is an Automake generated Makefile or not.
18983 # We used to match only the files named `Makefile.in', but
18984 # some people rename them; so instead we look at the file content.
18985 # Grep'ing the first line is not enough: some people post-process
18986 # each Makefile.in and add a new line on top of each file to say so.
18987 # Grep'ing the whole file is not good either: AIX grep has a line
18988 # limit of 2048, but all sed's we know have understand at least 4000.
18989 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18990 dirpart=`$as_dirname -- "$mf" ||
18991$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18992 X"$mf" : 'X\(//\)[^/]' \| \
18993 X"$mf" : 'X\(//\)$' \| \
18994 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18995$as_echo X"$mf" |
18996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18997 s//\1/
18998 q
18999 }
19000 /^X\(\/\/\)[^/].*/{
19001 s//\1/
19002 q
19003 }
19004 /^X\(\/\/\)$/{
19005 s//\1/
19006 q
19007 }
19008 /^X\(\/\).*/{
19009 s//\1/
19010 q
19011 }
19012 s/.*/./; q'`
19013 else
19014 continue
19015 fi
19016 # Extract the definition of DEPDIR, am__include, and am__quote
19017 # from the Makefile without running `make'.
19018 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19019 test -z "$DEPDIR" && continue
19020 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19021 test -z "am__include" && continue
19022 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19023 # When using ansi2knr, U may be empty or an underscore; expand it
19024 U=`sed -n 's/^U = //p' < "$mf"`
19025 # Find all dependency output files, they are included files with
19026 # $(DEPDIR) in their names. We invoke sed twice because it is the
19027 # simplest approach to changing $(DEPDIR) to its actual value in the
19028 # expansion.
19029 for file in `sed -n "
19030 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19031 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19032 # Make sure the directory exists.
19033 test -f "$dirpart/$file" && continue
19034 fdir=`$as_dirname -- "$file" ||
19035$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$file" : 'X\(//\)[^/]' \| \
19037 X"$file" : 'X\(//\)$' \| \
19038 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19039$as_echo X"$file" |
19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19041 s//\1/
19042 q
19043 }
19044 /^X\(\/\/\)[^/].*/{
19045 s//\1/
19046 q
19047 }
19048 /^X\(\/\/\)$/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\).*/{
19053 s//\1/
19054 q
19055 }
19056 s/.*/./; q'`
19057 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19058 # echo "creating $dirpart/$file"
19059 echo '# dummy' > "$dirpart/$file"
19060 done
19061 done
19062}
19063 ;;
19064
19065 esac
19066done # for ac_tag
19067
19068
19069as_fn_exit 0
19070_ACEOF
19071ac_clean_files=$ac_clean_files_save
19072
19073test $ac_write_fail = 0 ||
19074 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19075
19076
19077# configure is writing to config.log, and then calls config.status.
19078# config.status does its own redirection, appending to config.log.
19079# Unfortunately, on DOS this fails, as config.log is still kept open
19080# by configure, so config.status won't be able to write to it; its
19081# output is simply discarded. So we exec the FD to /dev/null,
19082# effectively closing config.log, so it can be properly (re)opened and
19083# appended to by config.status. When coming back to configure, we
19084# need to make the FD available again.
19085if test "$no_create" != yes; then
19086 ac_cs_success=:
19087 ac_config_status_args=
19088 test "$silent" = yes &&
19089 ac_config_status_args="$ac_config_status_args --quiet"
19090 exec 5>/dev/null
19091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19092 exec 5>>config.log
19093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19094 # would make configure fail if this is the last instruction.
19095 $ac_cs_success || as_fn_exit 1
19096fi
19097if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19099$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19100fi
19101