]> git.ipfire.org Git - thirdparty/gcc.git/blame - liboffloadmic/configure
re PR other/66259 (Combined gcc and binutils build from git-master fails, with gas...
[thirdparty/gcc.git] / liboffloadmic / configure
CommitLineData
5f520819
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for MIC Offload Runtime Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='MIC Offload Runtime Library'
558PACKAGE_TARNAME='liboffloadmic'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='MIC Offload Runtime Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
9d73ec14 564enable_option_checking=no
5f520819
KY
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579# include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605link_offloadmic_target
606link_offloadmic_host
607lt_cv_dlopen_libs
608toolexeclibdir
609toolexecdir
610CXXCPP
611OTOOL64
612OTOOL
613LIPO
614NMEDIT
615DSYMUTIL
616RANLIB
617AR
618OBJDUMP
619LN_S
620NM
621ac_ct_DUMPBIN
622DUMPBIN
623LD
624FGREP
625SED
626LIBTOOL
627LIBOFFLOADMIC_HOST_FALSE
628LIBOFFLOADMIC_HOST_TRUE
629EGREP
630GREP
631CPP
632ALLOCA
9d73ec14 633subdirs
5f520819
KY
634multi_basedir
635am__fastdepCXX_FALSE
636am__fastdepCXX_TRUE
637CXXDEPMODE
638ac_ct_CXX
639CXXFLAGS
640CXX
641am__fastdepCC_FALSE
642am__fastdepCC_TRUE
643CCDEPMODE
735aacba 644am__nodep
5f520819
KY
645AMDEPBACKSLASH
646AMDEP_FALSE
647AMDEP_TRUE
648am__quote
649am__include
650DEPDIR
651OBJEXT
652EXEEXT
653ac_ct_CC
654CPPFLAGS
655LDFLAGS
656CFLAGS
657CC
658MAINT
659MAINTAINER_MODE_FALSE
660MAINTAINER_MODE_TRUE
661am__untar
662am__tar
663AMTAR
664am__leading_dot
665SET_MAKE
666AWK
667mkdir_p
668MKDIR_P
669INSTALL_STRIP_PROGRAM
670STRIP
671install_sh
672MAKEINFO
673AUTOHEADER
674AUTOMAKE
675AUTOCONF
676ACLOCAL
677VERSION
678PACKAGE
679CYGPATH_W
680am__isrc
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files=''
735ac_user_opts='
736enable_option_checking
737enable_maintainer_mode
738enable_dependency_tracking
739enable_multilib
740enable_version_specific_runtime_libs
741enable_shared
742enable_static
743with_pic
744enable_fast_install
745with_gnu_ld
746enable_libtool_lock
747'
748 ac_precious_vars='build_alias
749host_alias
750target_alias
751CC
752CFLAGS
753LDFLAGS
754LIBS
755CPPFLAGS
756CXX
757CXXFLAGS
758CCC
759CPP
760CXXCPP'
9d73ec14 761ac_subdirs_all='plugin'
5f520819
KY
762
763# Initialize some variables set by options.
764ac_init_help=
765ac_init_version=false
766ac_unrecognized_opts=
767ac_unrecognized_sep=
768# The variables have the same names as the options, with
769# dashes changed to underlines.
770cache_file=/dev/null
771exec_prefix=NONE
772no_create=
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
781verbose=
782x_includes=NONE
783x_libraries=NONE
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
790# (The list follows the same order as the GNU Coding Standards.)
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
801docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
810
811ac_prev=
812ac_dashdash=
813for ac_option
814do
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
820 fi
821
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874"enable_$ac_useropt"
875"*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900"enable_$ac_useropt"
901"*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"with_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"with_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error "unrecognized option: \`$ac_option'
1146Try \`$0 --help' for more information."
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 ;;
1166
1167 esac
1168done
1169
1170if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error "missing argument to $ac_option"
1173fi
1174
1175if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181fi
1182
1183# Check all directory arguments for consistency.
1184for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202done
1203
1204# There might be people who depend on the old broken behavior: `$host'
1205# used to hold the argument of --host etc.
1206# FIXME: To remove some day.
1207build=$build_alias
1208host=$host_alias
1209target=$target_alias
1210
1211# FIXME: To remove some day.
1212if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used." >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220fi
1221
1222ac_tool_prefix=
1223test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225test "$silent" = yes && exec 6>/dev/null
1226
1227
1228ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229ac_ls_di=`ls -di .` &&
1230ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error "working directory cannot be determined"
1232test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error "pwd does not report name of working directory"
1234
1235
1236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245$as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
1270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273fi
1274ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
1294
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302\`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1303
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355_ACEOF
1356
1357 cat <<\_ACEOF
1358
1359Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 --target=TARGET configure for building compilers for TARGET [HOST]
1368_ACEOF
1369fi
1370
1371if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1374 esac
1375 cat <<\_ACEOF
1376
1377Optional Features:
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --enable-maintainer-mode enable make rules and dependencies not useful
1382 (and sometimes confusing) to the casual installer
1383 --disable-dependency-tracking speeds up one-time build
1384 --enable-dependency-tracking do not reject slow dependency extractors
1385 --enable-multilib build many library versions (default)
1386 --enable-version-specific-runtime-libs
1387 Specify that runtime libraries should be installed
1388 in a compiler-specific directory
1389 --enable-shared[=PKGS] build shared libraries [default=yes]
1390 --enable-static[=PKGS] build static libraries [default=yes]
1391 --enable-fast-install[=PKGS]
1392 optimize for fast installation [default=yes]
1393 --disable-libtool-lock avoid locking (might break parallel builds)
1394
1395Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-pic try to use only PIC/non-PIC objects [default=use
1399 both]
1400 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1401
1402Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1412 CPP C preprocessor
1413 CXXCPP C++ preprocessor
1414
1415Use these variables to override the choices made by `configure' or to help
1416it to find libraries and programs with nonstandard names/locations.
1417
1418Report bugs to the package provider.
1419_ACEOF
1420ac_status=$?
1421fi
1422
1423if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 continue
1429 ac_builddir=.
1430
1431case "$ac_dir" in
1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433*)
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440 esac ;;
1441esac
1442ac_abs_top_builddir=$ac_pwd
1443ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444# for backward compatibility:
1445ac_top_builddir=$ac_top_build_prefix
1446
1447case $srcdir in
1448 .) # We are building in place.
1449 ac_srcdir=.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1456 *) # Relative name.
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460esac
1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1471 else
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 fi || ac_status=$?
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1475 done
1476fi
1477
1478test -n "$ac_init_help" && exit $ac_status
1479if $ac_init_version; then
1480 cat <<\_ACEOF
1481MIC Offload Runtime Library configure 1.0
1482generated by GNU Autoconf 2.64
1483
1484Copyright (C) 2009 Free Software Foundation, Inc.
1485This configure script is free software; the Free Software Foundation
1486gives unlimited permission to copy, distribute and modify it.
1487_ACEOF
1488 exit
1489fi
1490
1491## ------------------------ ##
1492## Autoconf initialization. ##
1493## ------------------------ ##
1494
1495# ac_fn_c_try_compile LINENO
1496# --------------------------
1497# Try to compile conftest.$ac_ext, and return whether this succeeded.
1498ac_fn_c_try_compile ()
1499{
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1503case "(($ac_try" in
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1510 ac_status=$?
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1515 fi
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1521 ac_retval=0
1522else
1523 $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526 ac_retval=1
1527fi
1528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1529 return $ac_retval
1530
1531} # ac_fn_c_try_compile
1532
1533# ac_fn_cxx_try_compile LINENO
1534# ----------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_cxx_try_compile ()
1537{
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_cxx_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565fi
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
1568
1569} # ac_fn_cxx_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_try_cpp LINENO
1618# ----------------------
1619# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } >/dev/null && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1651
1652} # ac_fn_c_try_cpp
1653
1654# ac_fn_c_check_func LINENO FUNC VAR
1655# ----------------------------------
1656# Tests whether FUNC exists, setting the cache variable VAR accordingly
1657ac_fn_c_check_func ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1664else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h. */
1667/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1669#define $2 innocuous_$2
1670
1671/* System header to define __stub macros and hopefully few prototypes,
1672 which can conflict with char $2 (); below.
1673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1674 <limits.h> exists even on freestanding compilers. */
1675
1676#ifdef __STDC__
1677# include <limits.h>
1678#else
1679# include <assert.h>
1680#endif
1681
1682#undef $2
1683
1684/* Override any GCC internal prototype to avoid an error.
1685 Use char because int might match the return type of a GCC
1686 builtin and then its argument prototype would still apply. */
1687#ifdef __cplusplus
1688extern "C"
1689#endif
1690char $2 ();
1691/* The GNU C library defines this for functions which it implements
1692 to always fail with ENOSYS. Some functions are actually named
1693 something starting with __ and the normal name is an alias. */
1694#if defined __stub_$2 || defined __stub___$2
1695choke me
1696#endif
1697
1698int
1699main ()
1700{
1701return $2 ();
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_link "$LINENO"; then :
1707 eval "$3=yes"
1708else
1709 eval "$3=no"
1710fi
1711rm -f core conftest.err conftest.$ac_objext \
1712 conftest$ac_exeext conftest.$ac_ext
1713fi
1714eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716$as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718
1719} # ac_fn_c_check_func
1720
1721# ac_fn_c_try_run LINENO
1722# ----------------------
1723# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724# that executables *can* be run.
1725ac_fn_c_try_run ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_c_try_run
1762
1763# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764# -------------------------------------------------------
1765# Tests whether HEADER exists and can be compiled using the include files in
1766# INCLUDES, setting the cache variable VAR accordingly.
1767ac_fn_c_check_header_compile ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771$as_echo_n "checking for $2... " >&6; }
1772if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1773 $as_echo_n "(cached) " >&6
1774else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782else
1783 eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791
1792} # ac_fn_c_check_header_compile
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812 # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h. */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822else
1823 ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838else
1839 ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So? What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ;;
1865esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870else
1871 eval "$3=\$ac_header_compiler"
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876fi
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} # ac_fn_c_check_header_mongrel
1880
1881# ac_fn_cxx_try_cpp LINENO
1882# ------------------------
1883# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884ac_fn_cxx_try_cpp ()
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 }; then :
1906 ac_retval=0
1907else
1908 $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912fi
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 return $ac_retval
1915
1916} # ac_fn_cxx_try_cpp
1917
1918# ac_fn_cxx_try_link LINENO
1919# -------------------------
1920# Try to link conftest.$ac_ext, and return whether this succeeded.
1921ac_fn_cxx_try_link ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext conftest$ac_exeext
1925 if { { ac_try="$ac_link"
1926case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_link") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_cxx_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest$ac_exeext && {
1944 test "$cross_compiling" = yes ||
1945 $as_test_x conftest$ac_exeext
1946 }; then :
1947 ac_retval=0
1948else
1949 $as_echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 ac_retval=1
1953fi
1954 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1955 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1956 # interfere with the next link command; also delete a directory that is
1957 # left behind by Apple's compiler. We do this before executing the actions.
1958 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 return $ac_retval
1961
1962} # ac_fn_cxx_try_link
1963cat >config.log <<_ACEOF
1964This file contains any messages produced by compilers while
1965running configure, to aid debugging if configure makes a mistake.
1966
1967It was created by MIC Offload Runtime Library $as_me 1.0, which was
1968generated by GNU Autoconf 2.64. Invocation command line was
1969
1970 $ $0 $@
1971
1972_ACEOF
1973exec 5>>config.log
1974{
1975cat <<_ASUNAME
1976## --------- ##
1977## Platform. ##
1978## --------- ##
1979
1980hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1981uname -m = `(uname -m) 2>/dev/null || echo unknown`
1982uname -r = `(uname -r) 2>/dev/null || echo unknown`
1983uname -s = `(uname -s) 2>/dev/null || echo unknown`
1984uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985
1986/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1987/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988
1989/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1990/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1991/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1992/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1993/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1994/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1995/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996
1997_ASUNAME
1998
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=.
2004 $as_echo "PATH: $as_dir"
2005 done
2006IFS=$as_save_IFS
2007
2008} >&5
2009
2010cat >&5 <<_ACEOF
2011
2012
2013## ----------- ##
2014## Core tests. ##
2015## ----------- ##
2016
2017_ACEOF
2018
2019
2020# Keep a trace of the command line.
2021# Strip out --no-create and --no-recursion so they do not pile up.
2022# Strip out --silent because we don't want to record it for future runs.
2023# Also quote any args containing shell meta-characters.
2024# Make two passes to allow for proper duplicate-argument suppression.
2025ac_configure_args=
2026ac_configure_args0=
2027ac_configure_args1=
2028ac_must_keep_next=false
2029for ac_pass in 1 2
2030do
2031 for ac_arg
2032 do
2033 case $ac_arg in
2034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2036 | -silent | --silent | --silen | --sile | --sil)
2037 continue ;;
2038 *\'*)
2039 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2040 esac
2041 case $ac_pass in
2042 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043 2)
2044 as_fn_append ac_configure_args1 " '$ac_arg'"
2045 if test $ac_must_keep_next = true; then
2046 ac_must_keep_next=false # Got value, back to normal.
2047 else
2048 case $ac_arg in
2049 *=* | --config-cache | -C | -disable-* | --disable-* \
2050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2052 | -with-* | --with-* | -without-* | --without-* | --x)
2053 case "$ac_configure_args0 " in
2054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055 esac
2056 ;;
2057 -* ) ac_must_keep_next=true ;;
2058 esac
2059 fi
2060 as_fn_append ac_configure_args " '$ac_arg'"
2061 ;;
2062 esac
2063 done
2064done
2065{ ac_configure_args0=; unset ac_configure_args0;}
2066{ ac_configure_args1=; unset ac_configure_args1;}
2067
2068# When interrupted or exit'd, cleanup temporary files, and complete
2069# config.log. We remove comments because anyway the quotes in there
2070# would cause problems or look ugly.
2071# WARNING: Use '\'' to represent an apostrophe within the trap.
2072# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2073trap 'exit_status=$?
2074 # Save into config.log some information that might help in debugging.
2075 {
2076 echo
2077
2078 cat <<\_ASBOX
2079## ---------------- ##
2080## Cache variables. ##
2081## ---------------- ##
2082_ASBOX
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
2085(
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in #(
2089 *${as_nl}*)
2090 case $ac_var in #(
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 esac
2094 case $ac_var in #(
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2098 esac ;;
2099 esac
2100 done
2101 (set) 2>&1 |
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
2104 sed -n \
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
2108 *)
2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110 ;;
2111 esac |
2112 sort
2113)
2114 echo
2115
2116 cat <<\_ASBOX
2117## ----------------- ##
2118## Output variables. ##
2119## ----------------- ##
2120_ASBOX
2121 echo
2122 for ac_var in $ac_subst_vars
2123 do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2131
2132 if test -n "$ac_subst_files"; then
2133 cat <<\_ASBOX
2134## ------------------- ##
2135## File substitutions. ##
2136## ------------------- ##
2137_ASBOX
2138 echo
2139 for ac_var in $ac_subst_files
2140 do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 esac
2145 $as_echo "$ac_var='\''$ac_val'\''"
2146 done | sort
2147 echo
2148 fi
2149
2150 if test -s confdefs.h; then
2151 cat <<\_ASBOX
2152## ----------- ##
2153## confdefs.h. ##
2154## ----------- ##
2155_ASBOX
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167' 0
2168for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170done
2171ac_signal=0
2172
2173# confdefs.h avoids OS command line length limits that DEFS can exceed.
2174rm -f -r conftest* confdefs.h
2175
2176$as_echo "/* confdefs.h */" > confdefs.h
2177
2178# Predefined preprocessor variables.
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_NAME "$PACKAGE_NAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_VERSION "$PACKAGE_VERSION"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_STRING "$PACKAGE_STRING"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_URL "$PACKAGE_URL"
2202_ACEOF
2203
2204
2205# Let the site file select an alternate cache file if it wants to.
2206# Prefer an explicitly selected file to automatically selected ones.
2207ac_site_file1=NONE
2208ac_site_file2=NONE
2209if test -n "$CONFIG_SITE"; then
2210 ac_site_file1=$CONFIG_SITE
2211elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2214else
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2217fi
2218for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219do
2220 test "x$ac_site_file" = xNONE && continue
2221 if test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2225 . "$ac_site_file"
2226 fi
2227done
2228
2229if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special
2231 # files actually), so we avoid doing that.
2232 if test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234$as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2239 fi
2240else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242$as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2244fi
2245
2246# Check that the precious variables saved in the cache have kept the same
2247# value.
2248ac_cache_corrupted=false
2249for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2264 *)
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2294 fi
2295done
2296if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302fi
2303## -------------------- ##
2304## Main body of script. ##
2305## -------------------- ##
2306
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
2313
2314
2315
2316
2317
2318ac_aux_dir=
2319for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2320 for ac_t in install-sh install.sh shtool; do
2321 if test -f "$ac_dir/$ac_t"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/$ac_t -c"
2324 break 2
2325 fi
2326 done
2327done
2328if test -z "$ac_aux_dir"; then
2329 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2330fi
2331
2332# These three variables are undocumented and unsupported,
2333# and are intended to be withdrawn in a future Autoconf release.
2334# They can cause serious problems if a builder's source tree is in a directory
2335# whose full name contains unusual characters.
2336ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2339
2340
2341# Make sure we can run config.sub.
2342$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2343 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344
2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2346$as_echo_n "checking build system type... " >&6; }
2347if test "${ac_cv_build+set}" = set; then :
2348 $as_echo_n "(cached) " >&6
2349else
2350 ac_build_alias=$build_alias
2351test "x$ac_build_alias" = x &&
2352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2353test "x$ac_build_alias" = x &&
2354 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2355ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2357
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2360$as_echo "$ac_cv_build" >&6; }
2361case $ac_cv_build in
2362*-*-*) ;;
2363*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2364esac
2365build=$ac_cv_build
2366ac_save_IFS=$IFS; IFS='-'
2367set x $ac_cv_build
2368shift
2369build_cpu=$1
2370build_vendor=$2
2371shift; shift
2372# Remember, the first character of IFS is used to create $*,
2373# except with old shells:
2374build_os=$*
2375IFS=$ac_save_IFS
2376case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2377
2378
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2380$as_echo_n "checking host system type... " >&6; }
2381if test "${ac_cv_host+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383else
2384 if test "x$host_alias" = x; then
2385 ac_cv_host=$ac_cv_build
2386else
2387 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2388 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2389fi
2390
2391fi
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2393$as_echo "$ac_cv_host" >&6; }
2394case $ac_cv_host in
2395*-*-*) ;;
2396*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2397esac
2398host=$ac_cv_host
2399ac_save_IFS=$IFS; IFS='-'
2400set x $ac_cv_host
2401shift
2402host_cpu=$1
2403host_vendor=$2
2404shift; shift
2405# Remember, the first character of IFS is used to create $*,
2406# except with old shells:
2407host_os=$*
2408IFS=$ac_save_IFS
2409case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2410
2411
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2413$as_echo_n "checking target system type... " >&6; }
2414if test "${ac_cv_target+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416else
2417 if test "x$target_alias" = x; then
2418 ac_cv_target=$ac_cv_host
2419else
2420 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2422fi
2423
2424fi
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2426$as_echo "$ac_cv_target" >&6; }
2427case $ac_cv_target in
2428*-*-*) ;;
2429*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2430esac
2431target=$ac_cv_target
2432ac_save_IFS=$IFS; IFS='-'
2433set x $ac_cv_target
2434shift
2435target_cpu=$1
2436target_vendor=$2
2437shift; shift
2438# Remember, the first character of IFS is used to create $*,
2439# except with old shells:
2440target_os=$*
2441IFS=$ac_save_IFS
2442case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2443
2444
2445# The aliases save the names the user supplied, while $host etc.
2446# will get canonicalized.
2447test -n "$target_alias" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_prefix=${target_alias}-
2451
2452target_alias=${target_alias-$host_alias}
2453
2454
2455am__api_version='1.11'
2456
2457# Find a good install program. We prefer a C program (faster),
2458# so one script is as good as another. But avoid the broken or
2459# incompatible versions:
2460# SysV /etc/install, /usr/sbin/install
2461# SunOS /usr/etc/install
2462# IRIX /sbin/install
2463# AIX /bin/install
2464# AmigaOS /C/install, which installs bootblocks on floppy discs
2465# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2466# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2467# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2468# OS/2's system install, which has a completely different semantic
2469# ./install, which can be erroneously created by make from ./install.sh.
2470# Reject install programs that cannot install multiple files.
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2472$as_echo_n "checking for a BSD-compatible install... " >&6; }
2473if test -z "$INSTALL"; then
2474if test "${ac_cv_path_install+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2476else
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478for as_dir in $PATH
2479do
2480 IFS=$as_save_IFS
2481 test -z "$as_dir" && as_dir=.
2482 # Account for people who put trailing slashes in PATH elements.
2483case $as_dir/ in #((
2484 ./ | .// | /[cC]/* | \
2485 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2486 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2487 /usr/ucb/* ) ;;
2488 *)
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2491 # by default.
2492 for ac_prog in ginstall scoinst install; do
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2495 if test $ac_prog = install &&
2496 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # AIX install. It has an incompatible calling convention.
2498 :
2499 elif test $ac_prog = install &&
2500 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # program-specific install script used by HP pwplus--don't use.
2502 :
2503 else
2504 rm -rf conftest.one conftest.two conftest.dir
2505 echo one > conftest.one
2506 echo two > conftest.two
2507 mkdir conftest.dir
2508 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2509 test -s conftest.one && test -s conftest.two &&
2510 test -s conftest.dir/conftest.one &&
2511 test -s conftest.dir/conftest.two
2512 then
2513 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2514 break 3
2515 fi
2516 fi
2517 fi
2518 done
2519 done
2520 ;;
2521esac
2522
2523 done
2524IFS=$as_save_IFS
2525
2526rm -rf conftest.one conftest.two conftest.dir
2527
2528fi
2529 if test "${ac_cv_path_install+set}" = set; then
2530 INSTALL=$ac_cv_path_install
2531 else
2532 # As a last resort, use the slow shell script. Don't cache a
2533 # value for INSTALL within a source directory, because that will
2534 # break other packages using the cache if that directory is
2535 # removed, or if the value is a relative name.
2536 INSTALL=$ac_install_sh
2537 fi
2538fi
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2540$as_echo "$INSTALL" >&6; }
2541
2542# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2543# It thinks the first close brace ends the variable substitution.
2544test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545
2546test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547
2548test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2551$as_echo_n "checking whether build environment is sane... " >&6; }
2552# Just in case
2553sleep 1
2554echo timestamp > conftest.file
2555# Reject unsafe characters in $srcdir or the absolute working directory
2556# name. Accept space and tab only in the latter.
2557am_lf='
2558'
2559case `pwd` in
2560 *[\\\"\#\$\&\'\`$am_lf]*)
2561 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2562esac
2563case $srcdir in
2564 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2565 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2566esac
2567
2568# Do `set' in a subshell so we don't clobber the current shell's
2569# arguments. Must try -L first in case configure is actually a
2570# symlink; some systems play weird games with the mod time of symlinks
2571# (eg FreeBSD returns the mod time of the symlink's containing
2572# directory).
2573if (
2574 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2575 if test "$*" = "X"; then
2576 # -L didn't work.
2577 set X `ls -t "$srcdir/configure" conftest.file`
2578 fi
2579 rm -f conftest.file
2580 if test "$*" != "X $srcdir/configure conftest.file" \
2581 && test "$*" != "X conftest.file $srcdir/configure"; then
2582
2583 # If neither matched, then we have a broken ls. This can happen
2584 # if, for instance, CONFIG_SHELL is bash and it inherits a
2585 # broken ls alias from the environment. This has actually
2586 # happened. Such a system could not be considered "sane".
2587 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2588alias in your environment" "$LINENO" 5
2589 fi
2590
2591 test "$2" = conftest.file
2592 )
2593then
2594 # Ok.
2595 :
2596else
2597 as_fn_error "newly created file is older than distributed files!
2598Check your system clock" "$LINENO" 5
2599fi
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601$as_echo "yes" >&6; }
2602test "$program_prefix" != NONE &&
2603 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2604# Use a double $ so make ignores it.
2605test "$program_suffix" != NONE &&
2606 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2607# Double any \ or $.
2608# By default was `s,x,x', remove it if useless.
2609ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2610program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2611
2612# expand $ac_aux_dir to an absolute path
2613am_aux_dir=`cd $ac_aux_dir && pwd`
2614
2615if test x"${MISSING+set}" != xset; then
2616 case $am_aux_dir in
2617 *\ * | *\ *)
2618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2619 *)
2620 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2621 esac
2622fi
2623# Use eval to expand $SHELL
2624if eval "$MISSING --run true"; then
2625 am_missing_run="$MISSING --run "
2626else
2627 am_missing_run=
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2629$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2630fi
2631
2632if test x"${install_sh}" != xset; then
2633 case $am_aux_dir in
2634 *\ * | *\ *)
2635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2636 *)
2637 install_sh="\${SHELL} $am_aux_dir/install-sh"
2638 esac
2639fi
2640
2641# Installed binaries are usually stripped using `strip' when the user
2642# run `make install-strip'. However `strip' might not be the right
2643# tool to use in cross-compilation environments, therefore Automake
2644# will honor the `STRIP' environment variable to overrule this program.
2645if test "$cross_compiling" != no; then
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2648set dummy ${ac_tool_prefix}strip; ac_word=$2
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
2651if test "${ac_cv_prog_STRIP+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653else
2654 if test -n "$STRIP"; then
2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668done
2669 done
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674STRIP=$ac_cv_prog_STRIP
2675if test -n "$STRIP"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2677$as_echo "$STRIP" >&6; }
2678else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
2681fi
2682
2683
2684fi
2685if test -z "$ac_cv_prog_STRIP"; then
2686 ac_ct_STRIP=$STRIP
2687 # Extract the first word of "strip", so it can be a program name with args.
2688set dummy strip; ac_word=$2
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690$as_echo_n "checking for $ac_word... " >&6; }
2691if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693else
2694 if test -n "$ac_ct_STRIP"; then
2695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_ac_ct_STRIP="strip"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708done
2709 done
2710IFS=$as_save_IFS
2711
2712fi
2713fi
2714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2715if test -n "$ac_ct_STRIP"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2717$as_echo "$ac_ct_STRIP" >&6; }
2718else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720$as_echo "no" >&6; }
2721fi
2722
2723 if test "x$ac_ct_STRIP" = x; then
2724 STRIP=":"
2725 else
2726 case $cross_compiling:$ac_tool_warned in
2727yes:)
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730ac_tool_warned=yes ;;
2731esac
2732 STRIP=$ac_ct_STRIP
2733 fi
2734else
2735 STRIP="$ac_cv_prog_STRIP"
2736fi
2737
2738fi
2739INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2740
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2742$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2743if test -z "$MKDIR_P"; then
2744 if test "${ac_cv_path_mkdir+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2749do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_prog in mkdir gmkdir; do
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2756 'mkdir (GNU coreutils) '* | \
2757 'mkdir (coreutils) '* | \
2758 'mkdir (fileutils) '4.1*)
2759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2760 break 3;;
2761 esac
2762 done
2763 done
2764 done
2765IFS=$as_save_IFS
2766
2767fi
2768
2769 if test "${ac_cv_path_mkdir+set}" = set; then
2770 MKDIR_P="$ac_cv_path_mkdir -p"
2771 else
2772 # As a last resort, use the slow shell script. Don't cache a
2773 # value for MKDIR_P within a source directory, because that will
2774 # break other packages using the cache if that directory is
2775 # removed, or if the value is a relative name.
2776 test -d ./--version && rmdir ./--version
2777 MKDIR_P="$ac_install_sh -d"
2778 fi
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2781$as_echo "$MKDIR_P" >&6; }
2782
2783mkdir_p="$MKDIR_P"
2784case $mkdir_p in
2785 [\\/$]* | ?:[\\/]*) ;;
2786 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2787esac
2788
2789for ac_prog in gawk mawk nawk awk
2790do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792set dummy $ac_prog; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if test "${ac_cv_prog_AWK+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812done
2813 done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818AWK=$ac_cv_prog_AWK
2819if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821$as_echo "$AWK" >&6; }
2822else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828 test -n "$AWK" && break
2829done
2830
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2833set x ${MAKE-make}
2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2835if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2836 $as_echo_n "(cached) " >&6
2837else
2838 cat >conftest.make <<\_ACEOF
2839SHELL = /bin/sh
2840all:
2841 @echo '@@@%%%=$(MAKE)=@@@%%%'
2842_ACEOF
2843# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2844case `${MAKE-make} -f conftest.make 2>/dev/null` in
2845 *@@@%%%=?*=@@@%%%*)
2846 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 *)
2848 eval ac_cv_prog_make_${ac_make}_set=no;;
2849esac
2850rm -f conftest.make
2851fi
2852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2854$as_echo "yes" >&6; }
2855 SET_MAKE=
2856else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859 SET_MAKE="MAKE=${MAKE-make}"
2860fi
2861
2862rm -rf .tst 2>/dev/null
2863mkdir .tst 2>/dev/null
2864if test -d .tst; then
2865 am__leading_dot=.
2866else
2867 am__leading_dot=_
2868fi
2869rmdir .tst 2>/dev/null
2870
2871if test "`cd $srcdir && pwd`" != "`pwd`"; then
2872 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2873 # is not polluted with repeated "-I."
2874 am__isrc=' -I$(srcdir)'
2875 # test to see if srcdir already configured
2876 if test -f $srcdir/config.status; then
2877 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2878 fi
2879fi
2880
2881# test whether we have cygpath
2882if test -z "$CYGPATH_W"; then
2883 if (cygpath --version) >/dev/null 2>/dev/null; then
2884 CYGPATH_W='cygpath -w'
2885 else
2886 CYGPATH_W=echo
2887 fi
2888fi
2889
2890
2891# Define the identity of the package.
2892 PACKAGE='liboffloadmic'
2893 VERSION='1.0'
2894
2895
2896cat >>confdefs.h <<_ACEOF
2897#define PACKAGE "$PACKAGE"
2898_ACEOF
2899
2900
2901cat >>confdefs.h <<_ACEOF
2902#define VERSION "$VERSION"
2903_ACEOF
2904
2905# Some tools Automake needs.
2906
2907ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2908
2909
2910AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2911
2912
2913AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2914
2915
2916AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2917
2918
2919MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920
2921# We need awk for the "check" target. The system "awk" is bad on
2922# some platforms.
735aacba
MH
2923# Always define AMTAR for backward compatibility. Yes, it's still used
2924# in the wild :-( We should find a proper way to deprecate it ...
2925AMTAR='$${TAR-tar}'
5f520819 2926
735aacba 2927am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5f520819
KY
2928
2929
2930
2931
2932
2933
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2935$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2936 # Check whether --enable-maintainer-mode was given.
2937if test "${enable_maintainer_mode+set}" = set; then :
2938 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2939else
2940 USE_MAINTAINER_MODE=no
2941fi
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2944$as_echo "$USE_MAINTAINER_MODE" >&6; }
2945 if test $USE_MAINTAINER_MODE = yes; then
2946 MAINTAINER_MODE_TRUE=
2947 MAINTAINER_MODE_FALSE='#'
2948else
2949 MAINTAINER_MODE_TRUE='#'
2950 MAINTAINER_MODE_FALSE=
2951fi
2952
2953 MAINT=$MAINTAINER_MODE_TRUE
2954
2955
2956
2957ac_ext=c
2958ac_cpp='$CPP $CPPFLAGS'
2959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if test "${ac_cv_prog_CC+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984done
2985 done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993$as_echo "$CC" >&6; }
2994else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_CC"; then
3002 ac_ct_CC=$CC
3003 # Extract the first word of "gcc", so it can be a program name with args.
3004set dummy gcc; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009else
3010 if test -n "$ac_ct_CC"; then
3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_ac_ct_CC="gcc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024done
3025 done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031if test -n "$ac_ct_CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033$as_echo "$ac_ct_CC" >&6; }
3034else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039 if test "x$ac_ct_CC" = x; then
3040 CC=""
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048 CC=$ac_ct_CC
3049 fi
3050else
3051 CC="$ac_cv_prog_CC"
3052fi
3053
3054if test -z "$CC"; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}cc; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if test "${ac_cv_prog_CC+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="${ac_tool_prefix}cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077done
3078 done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083CC=$ac_cv_prog_CC
3084if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086$as_echo "$CC" >&6; }
3087else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093 fi
3094fi
3095if test -z "$CC"; then
3096 # Extract the first word of "cc", so it can be a program name with args.
3097set dummy cc; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if test "${ac_cv_prog_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
3106 ac_prog_rejected=no
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115 ac_prog_rejected=yes
3116 continue
3117 fi
3118 ac_cv_prog_CC="cc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123 done
3124IFS=$as_save_IFS
3125
3126if test $ac_prog_rejected = yes; then
3127 # We found a bogon in the path, so make sure we never use it.
3128 set dummy $ac_cv_prog_CC
3129 shift
3130 if test $# != 0; then
3131 # We chose a different compiler from the bogus one.
3132 # However, it has the same basename, so the bogon will be chosen
3133 # first if we set CC to just the basename; use the full file name.
3134 shift
3135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136 fi
3137fi
3138fi
3139fi
3140CC=$ac_cv_prog_CC
3141if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143$as_echo "$CC" >&6; }
3144else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150fi
3151if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in cl.exe
3154 do
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if test "${ac_cv_prog_CC+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3161else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176done
3177 done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192 test -n "$CC" && break
3193 done
3194fi
3195if test -z "$CC"; then
3196 ac_ct_CC=$CC
3197 for ac_prog in cl.exe
3198do
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200set dummy $ac_prog; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3205else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220done
3221 done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229$as_echo "$ac_ct_CC" >&6; }
3230else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236 test -n "$ac_ct_CC" && break
3237done
3238
3239 if test "x$ac_ct_CC" = x; then
3240 CC=""
3241 else
3242 case $cross_compiling:$ac_tool_warned in
3243yes:)
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246ac_tool_warned=yes ;;
3247esac
3248 CC=$ac_ct_CC
3249 fi
3250fi
3251
3252fi
3253
3254
3255test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257as_fn_error "no acceptable C compiler found in \$PATH
3258See \`config.log' for more details." "$LINENO" 5; }
3259
3260# Provide some information about the compiler.
3261$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262set X $ac_compile
3263ac_compiler=$2
3264for ac_option in --version -v -V -qversion; do
3265 { { ac_try="$ac_compiler $ac_option >&5"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273 ac_status=$?
3274 if test -s conftest.err; then
3275 sed '10a\
3276... rest of stderr output deleted ...
3277 10q' conftest.err >conftest.er1
3278 cat conftest.er1 >&5
3279 rm -f conftest.er1 conftest.err
3280 fi
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }
3283done
3284
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h. */
3287
3288int
3289main ()
3290{
3291
3292 ;
3293 return 0;
3294}
3295_ACEOF
3296ac_clean_files_save=$ac_clean_files
3297ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3298# Try to create an executable without -o first, disregard a.out.
3299# It will help us diagnose broken compilers, and finding out an intuition
3300# of exeext.
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302$as_echo_n "checking for C compiler default output file name... " >&6; }
3303ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305# The possible output files:
3306ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308ac_rmfiles=
3309for ac_file in $ac_files
3310do
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 esac
3315done
3316rm -f $ac_rmfiles
3317
3318if { { ac_try="$ac_link_default"
3319case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324$as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link_default") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331# in a Makefile. We should not override ac_cv_exeext if it was cached,
3332# so that the user can short-circuit this test for compilers unknown to
3333# Autoconf.
3334for ac_file in $ac_files ''
3335do
3336 test -f "$ac_file" || continue
3337 case $ac_file in
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339 ;;
3340 [ab].out )
3341 # We found the default executable, but exeext='' is most
3342 # certainly right.
3343 break;;
3344 *.* )
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346 then :; else
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 fi
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3353 # actually working.
3354 break;;
3355 * )
3356 break;;
3357 esac
3358done
3359test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361else
3362 ac_file=''
3363fi
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365$as_echo "$ac_file" >&6; }
3366if test -z "$ac_file"; then :
3367 $as_echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372{ as_fn_set_status 77
3373as_fn_error "C compiler cannot create executables
3374See \`config.log' for more details." "$LINENO" 5; }; }
3375fi
3376ac_exeext=$ac_cv_exeext
3377
3378# Check that the compiler produces executables we can run. If not, either
3379# the compiler is broken, or we cross compile.
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3381$as_echo_n "checking whether the C compiler works... " >&6; }
3382# If not cross compiling, check that we can run a simple program.
3383if test "$cross_compiling" != yes; then
3384 if { ac_try='./$ac_file'
3385 { { case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390$as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_try") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; }; then
3395 cross_compiling=no
3396 else
3397 if test "$cross_compiling" = maybe; then
3398 cross_compiling=yes
3399 else
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error "cannot run C compiled programs.
3403If you meant to cross compile, use \`--host'.
3404See \`config.log' for more details." "$LINENO" 5; }
3405 fi
3406 fi
3407fi
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409$as_echo "yes" >&6; }
3410
3411rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3412ac_clean_files=$ac_clean_files_save
3413# Check that the compiler produces executables we can run. If not, either
3414# the compiler is broken, or we cross compile.
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416$as_echo_n "checking whether we are cross compiling... " >&6; }
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418$as_echo "$cross_compiling" >&6; }
3419
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3421$as_echo_n "checking for suffix of executables... " >&6; }
3422if { { ac_try="$ac_link"
3423case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426esac
3427eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428$as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_link") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3434# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3435# work properly (i.e., refer to `conftest.exe'), while it won't with
3436# `rm'.
3437for ac_file in conftest.exe conftest conftest.*; do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 break;;
3443 * ) break;;
3444 esac
3445done
3446else
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449as_fn_error "cannot compute suffix of executables: cannot compile and link
3450See \`config.log' for more details." "$LINENO" 5; }
3451fi
3452rm -f conftest$ac_cv_exeext
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3454$as_echo "$ac_cv_exeext" >&6; }
3455
3456rm -f conftest.$ac_ext
3457EXEEXT=$ac_cv_exeext
3458ac_exeext=$EXEEXT
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3460$as_echo_n "checking for suffix of object files... " >&6; }
3461if test "${ac_cv_objext+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463else
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475rm -f conftest.o conftest.obj
3476if { { ac_try="$ac_compile"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482$as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_compile") 2>&5
3484 ac_status=$?
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; then :
3487 for ac_file in conftest.o conftest.obj conftest.*; do
3488 test -f "$ac_file" || continue;
3489 case $ac_file in
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3492 break;;
3493 esac
3494done
3495else
3496 $as_echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501as_fn_error "cannot compute suffix of object files: cannot compile
3502See \`config.log' for more details." "$LINENO" 5; }
3503fi
3504rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505fi
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3507$as_echo "$ac_cv_objext" >&6; }
3508OBJEXT=$ac_cv_objext
3509ac_objext=$OBJEXT
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3511$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3512if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3514else
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h. */
3517
3518int
3519main ()
3520{
3521#ifndef __GNUC__
3522 choke me
3523#endif
3524
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_compiler_gnu=yes
3531else
3532 ac_compiler_gnu=no
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536
3537fi
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3539$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3540if test $ac_compiler_gnu = yes; then
3541 GCC=yes
3542else
3543 GCC=
3544fi
3545ac_test_CFLAGS=${CFLAGS+set}
3546ac_save_CFLAGS=$CFLAGS
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3548$as_echo_n "checking whether $CC accepts -g... " >&6; }
3549if test "${ac_cv_prog_cc_g+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551else
3552 ac_save_c_werror_flag=$ac_c_werror_flag
3553 ac_c_werror_flag=yes
3554 ac_cv_prog_cc_g=no
3555 CFLAGS="-g"
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h. */
3558
3559int
3560main ()
3561{
3562
3563 ;
3564 return 0;
3565}
3566_ACEOF
3567if ac_fn_c_try_compile "$LINENO"; then :
3568 ac_cv_prog_cc_g=yes
3569else
3570 CFLAGS=""
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582if ac_fn_c_try_compile "$LINENO"; then :
3583
3584else
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3586 CFLAGS="-g"
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h. */
3589
3590int
3591main ()
3592{
3593
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_g=yes
3600fi
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602fi
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607fi
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3609$as_echo "$ac_cv_prog_cc_g" >&6; }
3610if test "$ac_test_CFLAGS" = set; then
3611 CFLAGS=$ac_save_CFLAGS
3612elif test $ac_cv_prog_cc_g = yes; then
3613 if test "$GCC" = yes; then
3614 CFLAGS="-g -O2"
3615 else
3616 CFLAGS="-g"
3617 fi
3618else
3619 if test "$GCC" = yes; then
3620 CFLAGS="-O2"
3621 else
3622 CFLAGS=
3623 fi
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3626$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3627if test "${ac_cv_prog_cc_c89+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 ac_cv_prog_cc_c89=no
3631ac_save_CC=$CC
3632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h. */
3634#include <stdarg.h>
3635#include <stdio.h>
3636#include <sys/types.h>
3637#include <sys/stat.h>
3638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3639struct buf { int x; };
3640FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641static char *e (p, i)
3642 char **p;
3643 int i;
3644{
3645 return p[i];
3646}
3647static char *f (char * (*g) (char **, int), char **p, ...)
3648{
3649 char *s;
3650 va_list v;
3651 va_start (v,p);
3652 s = g (p, va_arg (v,int));
3653 va_end (v);
3654 return s;
3655}
3656
3657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3658 function prototypes and stuff, but not '\xHH' hex character constants.
3659 These don't provoke an error unfortunately, instead are silently treated
3660 as 'x'. The following induces an error, until -std is added to get
3661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3662 array size at least. It's necessary to write '\x00'==0 to get something
3663 that's true only with -std. */
3664int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665
3666/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667 inside strings and character constants. */
3668#define FOO(x) 'x'
3669int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670
3671int test (int i, double x);
3672struct s1 {int (*f) (int a);};
3673struct s2 {int (*f) (double a);};
3674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675int argc;
3676char **argv;
3677int
3678main ()
3679{
3680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3681 ;
3682 return 0;
3683}
3684_ACEOF
3685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687do
3688 CC="$ac_save_CC $ac_arg"
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690 ac_cv_prog_cc_c89=$ac_arg
3691fi
3692rm -f core conftest.err conftest.$ac_objext
3693 test "x$ac_cv_prog_cc_c89" != "xno" && break
3694done
3695rm -f conftest.$ac_ext
3696CC=$ac_save_CC
3697
3698fi
3699# AC_CACHE_VAL
3700case "x$ac_cv_prog_cc_c89" in
3701 x)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703$as_echo "none needed" >&6; } ;;
3704 xno)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706$as_echo "unsupported" >&6; } ;;
3707 *)
3708 CC="$CC $ac_cv_prog_cc_c89"
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711esac
3712if test "x$ac_cv_prog_cc_c89" != xno; then :
3713
3714fi
3715
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721DEPDIR="${am__leading_dot}deps"
3722
3723ac_config_commands="$ac_config_commands depfiles"
3724
3725
3726am_make=${MAKE-make}
3727cat > confinc << 'END'
3728am__doit:
3729 @echo this is the am__doit target
3730.PHONY: am__doit
3731END
3732# If we don't find an include directive, just comment out the code.
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3734$as_echo_n "checking for style of include used by $am_make... " >&6; }
3735am__include="#"
3736am__quote=
3737_am_result=none
3738# First try GNU make style include.
3739echo "include confinc" > confmf
3740# Ignore all kinds of additional output from `make'.
3741case `$am_make -s -f confmf 2> /dev/null` in #(
3742*the\ am__doit\ target*)
3743 am__include=include
3744 am__quote=
3745 _am_result=GNU
3746 ;;
3747esac
3748# Now try BSD make style include.
3749if test "$am__include" = "#"; then
3750 echo '.include "confinc"' > confmf
3751 case `$am_make -s -f confmf 2> /dev/null` in #(
3752 *the\ am__doit\ target*)
3753 am__include=.include
3754 am__quote="\""
3755 _am_result=BSD
3756 ;;
3757 esac
3758fi
3759
3760
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3762$as_echo "$_am_result" >&6; }
3763rm -f confinc confmf
3764
3765# Check whether --enable-dependency-tracking was given.
3766if test "${enable_dependency_tracking+set}" = set; then :
3767 enableval=$enable_dependency_tracking;
3768fi
3769
3770if test "x$enable_dependency_tracking" != xno; then
3771 am_depcomp="$ac_aux_dir/depcomp"
3772 AMDEPBACKSLASH='\'
735aacba 3773 am__nodep='_no'
5f520819
KY
3774fi
3775 if test "x$enable_dependency_tracking" != xno; then
3776 AMDEP_TRUE=
3777 AMDEP_FALSE='#'
3778else
3779 AMDEP_TRUE='#'
3780 AMDEP_FALSE=
3781fi
3782
3783
3784
3785depcc="$CC" am_compiler_list=
3786
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788$as_echo_n "checking dependency style of $depcc... " >&6; }
3789if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791else
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3797 # in D'.
735aacba 3798 rm -rf conftest.dir
5f520819
KY
3799 mkdir conftest.dir
3800 # Copy depcomp to subdir because otherwise we won't find it if we're
3801 # using a relative directory.
3802 cp "$am_depcomp" conftest.dir
3803 cd conftest.dir
3804 # We will build objects and dependencies in a subdirectory because
3805 # it helps to detect inapplicable dependency modes. For instance
3806 # both Tru64's cc and ICC support -MD to output dependencies as a
3807 # side effect of compilation, but ICC will put the dependencies in
3808 # the current directory while Tru64 will put them in the object
3809 # directory.
3810 mkdir sub
3811
3812 am_cv_CC_dependencies_compiler_type=none
3813 if test "$am_compiler_list" = ""; then
3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815 fi
3816 am__universal=false
3817 case " $depcc " in #(
3818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819 esac
3820
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3825 #
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3829 : > sub/conftest.c
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833 # Solaris 8's {/usr,}/bin/sh.
3834 touch sub/conftst$i.h
3835 done
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle `-M -o', and we need to detect this. Also, some Intel
3841 # versions had trouble with output in subdirs
3842 am__obj=sub/conftest.${OBJEXT-o}
3843 am__minus_obj="-o $am__obj"
3844 case $depmode in
3845 gcc)
3846 # This depmode causes a compiler race in universal mode.
3847 test "$am__universal" = false || continue
3848 ;;
3849 nosideeffect)
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3853 continue
3854 else
3855 break
3856 fi
3857 ;;
735aacba 3858 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5f520819
KY
3859 # This compiler won't grok `-c -o', but also, the minuso test has
3860 # not run yet. These depmodes are late enough in the game, and
3861 # so weak that their functioning should not be impacted.
3862 am__obj=conftest.${OBJEXT-o}
3863 am__minus_obj=
3864 ;;
3865 none) break ;;
3866 esac
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=$am__obj \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3886 break
3887 fi
3888 fi
3889 done
3890
3891 cd ..
3892 rm -rf conftest.dir
3893else
3894 am_cv_CC_dependencies_compiler_type=none
3895fi
3896
3897fi
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902 if
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905 am__fastdepCC_TRUE=
3906 am__fastdepCC_FALSE='#'
3907else
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3910fi
3911
3912
3913ac_ext=cpp
3914ac_cpp='$CXXCPP $CPPFLAGS'
3915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3918if test -z "$CXX"; then
3919 if test -n "$CCC"; then
3920 CXX=$CCC
3921 else
3922 if test -n "$ac_tool_prefix"; then
3923 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3924 do
3925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
3929if test "${ac_cv_prog_CXX+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931else
3932 if test -n "$CXX"; then
3933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947 done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952CXX=$ac_cv_prog_CXX
3953if test -n "$CXX"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3955$as_echo "$CXX" >&6; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961
3962 test -n "$CXX" && break
3963 done
3964fi
3965if test -z "$CXX"; then
3966 ac_ct_CXX=$CXX
3967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3968do
3969 # Extract the first word of "$ac_prog", so it can be a program name with args.
3970set dummy $ac_prog; ac_word=$2
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972$as_echo_n "checking for $ac_word... " >&6; }
3973if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975else
3976 if test -n "$ac_ct_CXX"; then
3977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3978else
3979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_prog_ac_ct_CXX="$ac_prog"
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991 done
3992IFS=$as_save_IFS
3993
3994fi
3995fi
3996ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3997if test -n "$ac_ct_CXX"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3999$as_echo "$ac_ct_CXX" >&6; }
4000else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003fi
4004
4005
4006 test -n "$ac_ct_CXX" && break
4007done
4008
4009 if test "x$ac_ct_CXX" = x; then
4010 CXX="g++"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013yes:)
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4016ac_tool_warned=yes ;;
4017esac
4018 CXX=$ac_ct_CXX
4019 fi
4020fi
4021
4022 fi
4023fi
4024# Provide some information about the compiler.
4025$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4026set X $ac_compile
4027ac_compiler=$2
4028for ac_option in --version -v -V -qversion; do
4029 { { ac_try="$ac_compiler $ac_option >&5"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035$as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4037 ac_status=$?
4038 if test -s conftest.err; then
4039 sed '10a\
4040... rest of stderr output deleted ...
4041 10q' conftest.err >conftest.er1
4042 cat conftest.er1 >&5
4043 rm -f conftest.er1 conftest.err
4044 fi
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }
4047done
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4050$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4051if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h. */
4056
4057int
4058main ()
4059{
4060#ifndef __GNUC__
4061 choke me
4062#endif
4063
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068if ac_fn_cxx_try_compile "$LINENO"; then :
4069 ac_compiler_gnu=yes
4070else
4071 ac_compiler_gnu=no
4072fi
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4075
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4078$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4079if test $ac_compiler_gnu = yes; then
4080 GXX=yes
4081else
4082 GXX=
4083fi
4084ac_test_CXXFLAGS=${CXXFLAGS+set}
4085ac_save_CXXFLAGS=$CXXFLAGS
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4087$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4088if test "${ac_cv_prog_cxx_g+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4092 ac_cxx_werror_flag=yes
4093 ac_cv_prog_cxx_g=no
4094 CXXFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096/* end confdefs.h. */
4097
4098int
4099main ()
4100{
4101
4102 ;
4103 return 0;
4104}
4105_ACEOF
4106if ac_fn_cxx_try_compile "$LINENO"; then :
4107 ac_cv_prog_cxx_g=yes
4108else
4109 CXXFLAGS=""
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h. */
4112
4113int
4114main ()
4115{
4116
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121if ac_fn_cxx_try_compile "$LINENO"; then :
4122
4123else
4124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4125 CXXFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h. */
4128
4129int
4130main ()
4131{
4132
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137if ac_fn_cxx_try_compile "$LINENO"; then :
4138 ac_cv_prog_cxx_g=yes
4139fi
4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141fi
4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143fi
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4148$as_echo "$ac_cv_prog_cxx_g" >&6; }
4149if test "$ac_test_CXXFLAGS" = set; then
4150 CXXFLAGS=$ac_save_CXXFLAGS
4151elif test $ac_cv_prog_cxx_g = yes; then
4152 if test "$GXX" = yes; then
4153 CXXFLAGS="-g -O2"
4154 else
4155 CXXFLAGS="-g"
4156 fi
4157else
4158 if test "$GXX" = yes; then
4159 CXXFLAGS="-O2"
4160 else
4161 CXXFLAGS=
4162 fi
4163fi
4164ac_ext=c
4165ac_cpp='$CPP $CPPFLAGS'
4166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169
4170depcc="$CXX" am_compiler_list=
4171
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4173$as_echo_n "checking dependency style of $depcc... " >&6; }
4174if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176else
4177 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4178 # We make a subdir and do the tests there. Otherwise we can end up
4179 # making bogus files that we don't know about and never remove. For
4180 # instance it was reported that on HP-UX the gcc test will end up
4181 # making a dummy file named `D' -- because `-MD' means `put the output
4182 # in D'.
735aacba 4183 rm -rf conftest.dir
5f520819
KY
4184 mkdir conftest.dir
4185 # Copy depcomp to subdir because otherwise we won't find it if we're
4186 # using a relative directory.
4187 cp "$am_depcomp" conftest.dir
4188 cd conftest.dir
4189 # We will build objects and dependencies in a subdirectory because
4190 # it helps to detect inapplicable dependency modes. For instance
4191 # both Tru64's cc and ICC support -MD to output dependencies as a
4192 # side effect of compilation, but ICC will put the dependencies in
4193 # the current directory while Tru64 will put them in the object
4194 # directory.
4195 mkdir sub
4196
4197 am_cv_CXX_dependencies_compiler_type=none
4198 if test "$am_compiler_list" = ""; then
4199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4200 fi
4201 am__universal=false
4202 case " $depcc " in #(
4203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4204 esac
4205
4206 for depmode in $am_compiler_list; do
4207 # Setup a source with many dependencies, because some compilers
4208 # like to wrap large dependency lists on column 80 (with \), and
4209 # we should not choose a depcomp mode which is confused by this.
4210 #
4211 # We need to recreate these files for each test, as the compiler may
4212 # overwrite some of them when testing with obscure command lines.
4213 # This happens at least with the AIX C compiler.
4214 : > sub/conftest.c
4215 for i in 1 2 3 4 5 6; do
4216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4218 # Solaris 8's {/usr,}/bin/sh.
4219 touch sub/conftst$i.h
4220 done
4221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4222
4223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4224 # mode. It turns out that the SunPro C++ compiler does not properly
4225 # handle `-M -o', and we need to detect this. Also, some Intel
4226 # versions had trouble with output in subdirs
4227 am__obj=sub/conftest.${OBJEXT-o}
4228 am__minus_obj="-o $am__obj"
4229 case $depmode in
4230 gcc)
4231 # This depmode causes a compiler race in universal mode.
4232 test "$am__universal" = false || continue
4233 ;;
4234 nosideeffect)
4235 # after this tag, mechanisms are not by side-effect, so they'll
4236 # only be used when explicitly requested
4237 if test "x$enable_dependency_tracking" = xyes; then
4238 continue
4239 else
4240 break
4241 fi
4242 ;;
735aacba 4243 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5f520819
KY
4244 # This compiler won't grok `-c -o', but also, the minuso test has
4245 # not run yet. These depmodes are late enough in the game, and
4246 # so weak that their functioning should not be impacted.
4247 am__obj=conftest.${OBJEXT-o}
4248 am__minus_obj=
4249 ;;
4250 none) break ;;
4251 esac
4252 if depmode=$depmode \
4253 source=sub/conftest.c object=$am__obj \
4254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4256 >/dev/null 2>conftest.err &&
4257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4261 # icc doesn't choke on unknown options, it will just issue warnings
4262 # or remarks (even with -Werror). So we grep stderr for any message
4263 # that says an option was ignored or not supported.
4264 # When given -MP, icc 7.0 and 7.1 complain thusly:
4265 # icc: Command line warning: ignoring option '-M'; no argument required
4266 # The diagnosis changed in icc 8.0:
4267 # icc: Command line remark: option '-MP' not supported
4268 if (grep 'ignoring option' conftest.err ||
4269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4270 am_cv_CXX_dependencies_compiler_type=$depmode
4271 break
4272 fi
4273 fi
4274 done
4275
4276 cd ..
4277 rm -rf conftest.dir
4278else
4279 am_cv_CXX_dependencies_compiler_type=none
4280fi
4281
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4284$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4285CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4286
4287 if
4288 test "x$enable_dependency_tracking" != xno \
4289 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4290 am__fastdepCXX_TRUE=
4291 am__fastdepCXX_FALSE='#'
4292else
4293 am__fastdepCXX_TRUE='#'
4294 am__fastdepCXX_FALSE=
4295fi
4296
4297
4298ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4299
4300# Default to --enable-multilib
4301# Check whether --enable-multilib was given.
4302if test "${enable_multilib+set}" = set; then :
4303 enableval=$enable_multilib; case "$enableval" in
4304 yes) multilib=yes ;;
4305 no) multilib=no ;;
4306 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4307 esac
4308else
4309 multilib=yes
4310fi
4311
4312
4313# We may get other options which we leave undocumented:
4314# --with-target-subdir, --with-multisrctop, --with-multisubdir
4315# See config-ml.in if you want the gory details.
4316
4317if test "$srcdir" = "."; then
4318 if test "$with_target_subdir" != "."; then
4319 multi_basedir="$srcdir/$with_multisrctop../.."
4320 else
4321 multi_basedir="$srcdir/$with_multisrctop.."
4322 fi
4323else
4324 multi_basedir="$srcdir/.."
4325fi
4326
4327
4328# Even if the default multilib is not a cross compilation,
4329# it may be that some of the other multilibs are.
4330if test $cross_compiling = no && test $multilib = yes \
4331 && test "x${with_multisubdir}" != x ; then
4332 cross_compiling=maybe
4333fi
4334
4335ac_config_commands="$ac_config_commands default-1"
4336
4337
9d73ec14
IV
4338
4339subdirs="$subdirs plugin"
4340
4341
5f520819
KY
4342ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4348$as_echo_n "checking how to run the C preprocessor... " >&6; }
4349# On Suns, sometimes $CPP names a directory.
4350if test -n "$CPP" && test -d "$CPP"; then
4351 CPP=
4352fi
4353if test -z "$CPP"; then
4354 if test "${ac_cv_prog_CPP+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356else
4357 # Double quotes because CPP needs to be expanded
4358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4359 do
4360 ac_preproc_ok=false
4361for ac_c_preproc_warn_flag in '' yes
4362do
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370/* end confdefs.h. */
4371#ifdef __STDC__
4372# include <limits.h>
4373#else
4374# include <assert.h>
4375#endif
4376 Syntax error
4377_ACEOF
4378if ac_fn_c_try_cpp "$LINENO"; then :
4379
4380else
4381 # Broken: fails on valid input.
4382continue
4383fi
4384rm -f conftest.err conftest.$ac_ext
4385
4386 # OK, works on sane cases. Now check whether nonexistent headers
4387 # can be detected and how.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389/* end confdefs.h. */
4390#include <ac_nonexistent.h>
4391_ACEOF
4392if ac_fn_c_try_cpp "$LINENO"; then :
4393 # Broken: success on invalid input.
4394continue
4395else
4396 # Passes both tests.
4397ac_preproc_ok=:
4398break
4399fi
4400rm -f conftest.err conftest.$ac_ext
4401
4402done
4403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404rm -f conftest.err conftest.$ac_ext
4405if $ac_preproc_ok; then :
4406 break
4407fi
4408
4409 done
4410 ac_cv_prog_CPP=$CPP
4411
4412fi
4413 CPP=$ac_cv_prog_CPP
4414else
4415 ac_cv_prog_CPP=$CPP
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4418$as_echo "$CPP" >&6; }
4419ac_preproc_ok=false
4420for ac_c_preproc_warn_flag in '' yes
4421do
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h. */
4430#ifdef __STDC__
4431# include <limits.h>
4432#else
4433# include <assert.h>
4434#endif
4435 Syntax error
4436_ACEOF
4437if ac_fn_c_try_cpp "$LINENO"; then :
4438
4439else
4440 # Broken: fails on valid input.
4441continue
4442fi
4443rm -f conftest.err conftest.$ac_ext
4444
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h. */
4449#include <ac_nonexistent.h>
4450_ACEOF
4451if ac_fn_c_try_cpp "$LINENO"; then :
4452 # Broken: success on invalid input.
4453continue
4454else
4455 # Passes both tests.
4456ac_preproc_ok=:
4457break
4458fi
4459rm -f conftest.err conftest.$ac_ext
4460
4461done
4462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463rm -f conftest.err conftest.$ac_ext
4464if $ac_preproc_ok; then :
4465
4466else
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469as_fn_error "C preprocessor \"$CPP\" fails sanity check
4470See \`config.log' for more details." "$LINENO" 5; }
4471fi
4472
4473ac_ext=c
4474ac_cpp='$CPP $CPPFLAGS'
4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
4479
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4481$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4482if test "${ac_cv_path_GREP+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484else
4485 if test -z "$GREP"; then
4486 ac_path_GREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_prog in grep ggrep; do
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4497# Check for GNU ac_path_GREP and select it if it is found.
4498 # Check for GNU $ac_path_GREP
4499case `"$ac_path_GREP" --version 2>&1` in
4500*GNU*)
4501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4502*)
4503 ac_count=0
4504 $as_echo_n 0123456789 >"conftest.in"
4505 while :
4506 do
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 $as_echo 'GREP' >> "conftest.nl"
4511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513 as_fn_arith $ac_count + 1 && ac_count=$as_val
4514 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_GREP="$ac_path_GREP"
4517 ac_path_GREP_max=$ac_count
4518 fi
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4521 done
4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523esac
4524
4525 $ac_path_GREP_found && break 3
4526 done
4527 done
4528 done
4529IFS=$as_save_IFS
4530 if test -z "$ac_cv_path_GREP"; then
4531 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4532 fi
4533else
4534 ac_cv_path_GREP=$GREP
4535fi
4536
4537fi
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4539$as_echo "$ac_cv_path_GREP" >&6; }
4540 GREP="$ac_cv_path_GREP"
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4544$as_echo_n "checking for egrep... " >&6; }
4545if test "${ac_cv_path_EGREP+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547else
4548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4549 then ac_cv_path_EGREP="$GREP -E"
4550 else
4551 if test -z "$EGREP"; then
4552 ac_path_EGREP_found=false
4553 # Loop through the user's path and test for each of PROGNAME-LIST
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_prog in egrep; do
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4562 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4563# Check for GNU ac_path_EGREP and select it if it is found.
4564 # Check for GNU $ac_path_EGREP
4565case `"$ac_path_EGREP" --version 2>&1` in
4566*GNU*)
4567 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4568*)
4569 ac_count=0
4570 $as_echo_n 0123456789 >"conftest.in"
4571 while :
4572 do
4573 cat "conftest.in" "conftest.in" >"conftest.tmp"
4574 mv "conftest.tmp" "conftest.in"
4575 cp "conftest.in" "conftest.nl"
4576 $as_echo 'EGREP' >> "conftest.nl"
4577 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579 as_fn_arith $ac_count + 1 && ac_count=$as_val
4580 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4581 # Best one so far, save it but keep looking for a better one
4582 ac_cv_path_EGREP="$ac_path_EGREP"
4583 ac_path_EGREP_max=$ac_count
4584 fi
4585 # 10*(2^10) chars as input seems more than enough
4586 test $ac_count -gt 10 && break
4587 done
4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589esac
4590
4591 $ac_path_EGREP_found && break 3
4592 done
4593 done
4594 done
4595IFS=$as_save_IFS
4596 if test -z "$ac_cv_path_EGREP"; then
4597 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4598 fi
4599else
4600 ac_cv_path_EGREP=$EGREP
4601fi
4602
4603 fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4606$as_echo "$ac_cv_path_EGREP" >&6; }
4607 EGREP="$ac_cv_path_EGREP"
4608
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4611$as_echo_n "checking for ANSI C header files... " >&6; }
4612if test "${ac_cv_header_stdc+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
4617#include <stdlib.h>
4618#include <stdarg.h>
4619#include <string.h>
4620#include <float.h>
4621
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_header_stdc=yes
4632else
4633 ac_cv_header_stdc=no
4634fi
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636
4637if test $ac_cv_header_stdc = yes; then
4638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641#include <string.h>
4642
4643_ACEOF
4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then :
4646
4647else
4648 ac_cv_header_stdc=no
4649fi
4650rm -f conftest*
4651
4652fi
4653
4654if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658#include <stdlib.h>
4659
4660_ACEOF
4661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662 $EGREP "free" >/dev/null 2>&1; then :
4663
4664else
4665 ac_cv_header_stdc=no
4666fi
4667rm -f conftest*
4668
4669fi
4670
4671if test $ac_cv_header_stdc = yes; then
4672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4673 if test "$cross_compiling" = yes; then :
4674 :
4675else
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h. */
4678#include <ctype.h>
4679#include <stdlib.h>
4680#if ((' ' & 0x0FF) == 0x020)
4681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683#else
4684# define ISLOWER(c) \
4685 (('a' <= (c) && (c) <= 'i') \
4686 || ('j' <= (c) && (c) <= 'r') \
4687 || ('s' <= (c) && (c) <= 'z'))
4688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4689#endif
4690
4691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4692int
4693main ()
4694{
4695 int i;
4696 for (i = 0; i < 256; i++)
4697 if (XOR (islower (i), ISLOWER (i))
4698 || toupper (i) != TOUPPER (i))
4699 return 2;
4700 return 0;
4701}
4702_ACEOF
4703if ac_fn_c_try_run "$LINENO"; then :
4704
4705else
4706 ac_cv_header_stdc=no
4707fi
4708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709 conftest.$ac_objext conftest.beam conftest.$ac_ext
4710fi
4711
4712fi
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4715$as_echo "$ac_cv_header_stdc" >&6; }
4716if test $ac_cv_header_stdc = yes; then
4717
4718$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4719
4720fi
4721
4722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4724 inttypes.h stdint.h unistd.h
4725do :
4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4728"
4729eval as_val=\$$as_ac_Header
4730 if test "x$as_val" = x""yes; then :
4731 cat >>confdefs.h <<_ACEOF
4732#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4733_ACEOF
4734
4735fi
4736
4737done
4738
4739
4740# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4741# for constant arguments. Useless!
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4743$as_echo_n "checking for working alloca.h... " >&6; }
4744if test "${ac_cv_working_alloca_h+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h. */
4749#include <alloca.h>
4750int
4751main ()
4752{
4753char *p = (char *) alloca (2 * sizeof (int));
4754 if (p) return 0;
4755 ;
4756 return 0;
4757}
4758_ACEOF
4759if ac_fn_c_try_link "$LINENO"; then :
4760 ac_cv_working_alloca_h=yes
4761else
4762 ac_cv_working_alloca_h=no
4763fi
4764rm -f core conftest.err conftest.$ac_objext \
4765 conftest$ac_exeext conftest.$ac_ext
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4768$as_echo "$ac_cv_working_alloca_h" >&6; }
4769if test $ac_cv_working_alloca_h = yes; then
4770
4771$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4772
4773fi
4774
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4776$as_echo_n "checking for alloca... " >&6; }
4777if test "${ac_cv_func_alloca_works+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779else
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h. */
4782#ifdef __GNUC__
4783# define alloca __builtin_alloca
4784#else
4785# ifdef _MSC_VER
4786# include <malloc.h>
4787# define alloca _alloca
4788# else
4789# ifdef HAVE_ALLOCA_H
4790# include <alloca.h>
4791# else
4792# ifdef _AIX
4793 #pragma alloca
4794# else
4795# ifndef alloca /* predefined by HP cc +Olibcalls */
4796char *alloca ();
4797# endif
4798# endif
4799# endif
4800# endif
4801#endif
4802
4803int
4804main ()
4805{
4806char *p = (char *) alloca (1);
4807 if (p) return 0;
4808 ;
4809 return 0;
4810}
4811_ACEOF
4812if ac_fn_c_try_link "$LINENO"; then :
4813 ac_cv_func_alloca_works=yes
4814else
4815 ac_cv_func_alloca_works=no
4816fi
4817rm -f core conftest.err conftest.$ac_objext \
4818 conftest$ac_exeext conftest.$ac_ext
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4821$as_echo "$ac_cv_func_alloca_works" >&6; }
4822
4823if test $ac_cv_func_alloca_works = yes; then
4824
4825$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4826
4827else
4828 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4829# that cause trouble. Some versions do not even contain alloca or
4830# contain a buggy version. If you still want to use their alloca,
4831# use ar to extract alloca.o from them instead of compiling alloca.c.
4832
4833ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4834
4835$as_echo "#define C_ALLOCA 1" >>confdefs.h
4836
4837
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4839$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4840if test "${ac_cv_os_cray+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844/* end confdefs.h. */
4845#if defined CRAY && ! defined CRAY2
4846webecray
4847#else
4848wenotbecray
4849#endif
4850
4851_ACEOF
4852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4853 $EGREP "webecray" >/dev/null 2>&1; then :
4854 ac_cv_os_cray=yes
4855else
4856 ac_cv_os_cray=no
4857fi
4858rm -f conftest*
4859
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4862$as_echo "$ac_cv_os_cray" >&6; }
4863if test $ac_cv_os_cray = yes; then
4864 for ac_func in _getb67 GETB67 getb67; do
4865 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4866ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4867eval as_val=\$$as_ac_var
4868 if test "x$as_val" = x""yes; then :
4869
4870cat >>confdefs.h <<_ACEOF
4871#define CRAY_STACKSEG_END $ac_func
4872_ACEOF
4873
4874 break
4875fi
4876
4877 done
4878fi
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4881$as_echo_n "checking stack direction for C alloca... " >&6; }
4882if test "${ac_cv_c_stack_direction+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884else
4885 if test "$cross_compiling" = yes; then :
4886 ac_cv_c_stack_direction=0
4887else
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889/* end confdefs.h. */
4890$ac_includes_default
4891int
4892find_stack_direction ()
4893{
4894 static char *addr = 0;
4895 auto char dummy;
4896 if (addr == 0)
4897 {
4898 addr = &dummy;
4899 return find_stack_direction ();
4900 }
4901 else
4902 return (&dummy > addr) ? 1 : -1;
4903}
4904
4905int
4906main ()
4907{
4908 return find_stack_direction () < 0;
4909}
4910_ACEOF
4911if ac_fn_c_try_run "$LINENO"; then :
4912 ac_cv_c_stack_direction=1
4913else
4914 ac_cv_c_stack_direction=-1
4915fi
4916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4917 conftest.$ac_objext conftest.beam conftest.$ac_ext
4918fi
4919
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4922$as_echo "$ac_cv_c_stack_direction" >&6; }
4923cat >>confdefs.h <<_ACEOF
4924#define STACK_DIRECTION $ac_cv_c_stack_direction
4925_ACEOF
4926
4927
4928fi
4929
4930for ac_header in mm_malloc.h
4931do :
4932 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
4933if test "x$ac_cv_header_mm_malloc_h" = x""yes; then :
4934 cat >>confdefs.h <<_ACEOF
4935#define HAVE_MM_MALLOC_H 1
4936_ACEOF
4937
4938else
4939 as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
4940fi
4941
4942done
4943
4944for ac_func in __secure_getenv secure_getenv
4945do :
4946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4948eval as_val=\$$as_ac_var
4949 if test "x$as_val" = x""yes; then :
4950 cat >>confdefs.h <<_ACEOF
4951#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4952_ACEOF
4953
4954fi
4955done
4956
4957
4958# Get target configure.
4959. ${srcdir}/configure.tgt
4960if test -n "$UNSUPPORTED"; then
4961 as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5
4962fi
4963
4964if test "${multilib}" = "yes"; then
4965 multilib_arg="--enable-multilib"
4966else
4967 multilib_arg=
4968fi
4969
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4971$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4972# Check whether --enable-version-specific-runtime-libs was given.
4973if test "${enable_version_specific_runtime_libs+set}" = set; then :
4974 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4975 yes) enable_version_specific_runtime_libs=yes ;;
4976 no) enable_version_specific_runtime_libs=no ;;
4977 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4978 esac
4979else
4980 enable_version_specific_runtime_libs=no
4981fi
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4984$as_echo "$enable_version_specific_runtime_libs" >&6; }
4985
4986# Make sure liboffloadmic is enabled
4987case "$enable_liboffloadmic" in
4988 host | target)
4989 ;;
4990 *)
4991 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4992esac
4993 if test x"$enable_liboffloadmic" = xhost; then
4994 LIBOFFLOADMIC_HOST_TRUE=
4995 LIBOFFLOADMIC_HOST_FALSE='#'
4996else
4997 LIBOFFLOADMIC_HOST_TRUE='#'
4998 LIBOFFLOADMIC_HOST_FALSE=
4999fi
5000
5001
5002# Calculate toolexeclibdir.
5003# Also toolexecdir, though it's only used in toolexeclibdir.
5004case ${enable_version_specific_runtime_libs} in
5005 yes)
5006 # Need the gcc compiler version to know where to install libraries
5007 # and header files if --enable-version-specific-runtime-libs option
5008 # is selected.
5009 toolexecdir='$(libdir)/gcc/$(target_alias)'
5010 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5011 ;;
5012 no)
5013 if test -n "$with_cross_host" &&
5014 test x"$with_cross_host" != x"no"; then
5015 # Install a library built with a cross compiler in tooldir, not libdir.
5016 toolexecdir='$(exec_prefix)/$(target_alias)'
5017 toolexeclibdir='$(toolexecdir)/lib'
5018 else
5019 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5020 toolexeclibdir='$(libdir)'
5021 fi
5022 multi_os_directory=`$CC -print-multi-os-directory`
5023 case $multi_os_directory in
5024 .) ;; # Avoid trailing /.
5025 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5026 esac
5027 ;;
5028esac
5029
5030enable_dlopen=yes
5031
5032
5033
5034case `pwd` in
5035 *\ * | *\ *)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5037$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5038esac
5039
5040
5041
5042macro_version='2.2.7a'
5043macro_revision='1.3134'
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057ltmain="$ac_aux_dir/ltmain.sh"
5058
5059# Backslashify metacharacters that are still active within
5060# double-quoted strings.
5061sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5062
5063# Same as above, but do not quote variable references.
5064double_quote_subst='s/\(["`\\]\)/\\\1/g'
5065
5066# Sed substitution to delay expansion of an escaped shell variable in a
5067# double_quote_subst'ed string.
5068delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5069
5070# Sed substitution to delay expansion of an escaped single quote.
5071delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5072
5073# Sed substitution to avoid accidental globbing in evaled expressions
5074no_glob_subst='s/\*/\\\*/g'
5075
5076ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5077ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5078ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5081$as_echo_n "checking how to print strings... " >&6; }
5082# Test print first, because it will be a builtin if present.
5083if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5085 ECHO='print -r --'
5086elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5087 ECHO='printf %s\n'
5088else
5089 # Use this function as a fallback that always works.
5090 func_fallback_echo ()
5091 {
5092 eval 'cat <<_LTECHO_EOF
5093$1
5094_LTECHO_EOF'
5095 }
5096 ECHO='func_fallback_echo'
5097fi
5098
5099# func_echo_all arg...
5100# Invoke $ECHO with all args, space-separated.
5101func_echo_all ()
5102{
5103 $ECHO ""
5104}
5105
5106case "$ECHO" in
5107 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5108$as_echo "printf" >&6; } ;;
5109 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5110$as_echo "print -r" >&6; } ;;
5111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5112$as_echo "cat" >&6; } ;;
5113esac
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5129$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5130if test "${ac_cv_path_SED+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132else
5133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5134 for ac_i in 1 2 3 4 5 6 7; do
5135 ac_script="$ac_script$as_nl$ac_script"
5136 done
5137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5138 { ac_script=; unset ac_script;}
5139 if test -z "$SED"; then
5140 ac_path_SED_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH
5144do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in sed gsed; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5150 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5151# Check for GNU ac_path_SED and select it if it is found.
5152 # Check for GNU $ac_path_SED
5153case `"$ac_path_SED" --version 2>&1` in
5154*GNU*)
5155 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5156*)
5157 ac_count=0
5158 $as_echo_n 0123456789 >"conftest.in"
5159 while :
5160 do
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 $as_echo '' >> "conftest.nl"
5165 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_SED_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_SED="$ac_path_SED"
5171 ac_path_SED_max=$ac_count
5172 fi
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177esac
5178
5179 $ac_path_SED_found && break 3
5180 done
5181 done
5182 done
5183IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_SED"; then
5185 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5186 fi
5187else
5188 ac_cv_path_SED=$SED
5189fi
5190
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5193$as_echo "$ac_cv_path_SED" >&6; }
5194 SED="$ac_cv_path_SED"
5195 rm -f conftest.sed
5196
5197test -z "$SED" && SED=sed
5198Xsed="$SED -e 1s/^X//"
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5211$as_echo_n "checking for fgrep... " >&6; }
5212if test "${ac_cv_path_FGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5216 then ac_cv_path_FGREP="$GREP -F"
5217 else
5218 if test -z "$FGREP"; then
5219 ac_path_FGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in fgrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5230# Check for GNU ac_path_FGREP and select it if it is found.
5231 # Check for GNU $ac_path_FGREP
5232case `"$ac_path_FGREP" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'FGREP' >> "conftest.nl"
5244 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_FGREP="$ac_path_FGREP"
5250 ac_path_FGREP_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_FGREP_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_FGREP"; then
5264 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5265 fi
5266else
5267 ac_cv_path_FGREP=$FGREP
5268fi
5269
5270 fi
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5273$as_echo "$ac_cv_path_FGREP" >&6; }
5274 FGREP="$ac_cv_path_FGREP"
5275
5276
5277test -z "$GREP" && GREP=grep
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297# Check whether --with-gnu-ld was given.
5298if test "${with_gnu_ld+set}" = set; then :
5299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5300else
5301 with_gnu_ld=no
5302fi
5303
5304ac_prog=ld
5305if test "$GCC" = yes; then
5306 # Check if gcc -print-prog-name=ld gives a path.
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5308$as_echo_n "checking for ld used by $CC... " >&6; }
5309 case $host in
5310 *-*-mingw*)
5311 # gcc leaves a trailing carriage return which upsets mingw
5312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5313 *)
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5315 esac
5316 case $ac_prog in
5317 # Accept absolute paths.
5318 [\\/]* | ?:[\\/]*)
5319 re_direlt='/[^/][^/]*/\.\./'
5320 # Canonicalize the pathname of ld
5321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5323 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5324 done
5325 test -z "$LD" && LD="$ac_prog"
5326 ;;
5327 "")
5328 # If it fails, then pretend we aren't using GCC.
5329 ac_prog=ld
5330 ;;
5331 *)
5332 # If it is relative, then search for the first ld in PATH.
5333 with_gnu_ld=unknown
5334 ;;
5335 esac
5336elif test "$with_gnu_ld" = yes; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5338$as_echo_n "checking for GNU ld... " >&6; }
5339else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5341$as_echo_n "checking for non-GNU ld... " >&6; }
5342fi
5343if test "${lt_cv_path_LD+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345else
5346 if test -z "$LD"; then
5347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH; do
5349 IFS="$lt_save_ifs"
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352 lt_cv_path_LD="$ac_dir/$ac_prog"
5353 # Check to see if the program is GNU ld. I'd rather use --version,
5354 # but apparently some variants of GNU ld only accept -v.
5355 # Break only if it was the GNU/non-GNU ld that we prefer.
5356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357 *GNU* | *'with BFD'*)
5358 test "$with_gnu_ld" != no && break
5359 ;;
5360 *)
5361 test "$with_gnu_ld" != yes && break
5362 ;;
5363 esac
5364 fi
5365 done
5366 IFS="$lt_save_ifs"
5367else
5368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5369fi
5370fi
5371
5372LD="$lt_cv_path_LD"
5373if test -n "$LD"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5375$as_echo "$LD" >&6; }
5376else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378$as_echo "no" >&6; }
5379fi
5380test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5382$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5383if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385else
5386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5387case `$LD -v 2>&1 </dev/null` in
5388*GNU* | *'with BFD'*)
5389 lt_cv_prog_gnu_ld=yes
5390 ;;
5391*)
5392 lt_cv_prog_gnu_ld=no
5393 ;;
5394esac
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5397$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5398with_gnu_ld=$lt_cv_prog_gnu_ld
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5409$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5410if test "${lt_cv_path_NM+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412else
5413 if test -n "$NM"; then
5414 # Let the user override the test.
5415 lt_cv_path_NM="$NM"
5416else
5417 lt_nm_to_check="${ac_tool_prefix}nm"
5418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5419 lt_nm_to_check="$lt_nm_to_check nm"
5420 fi
5421 for lt_tmp_nm in $lt_nm_to_check; do
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5424 IFS="$lt_save_ifs"
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/$lt_tmp_nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5435 break
5436 ;;
5437 *)
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439 */dev/null*)
5440 lt_cv_path_NM="$tmp_nm -p"
5441 break
5442 ;;
5443 *)
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5446 ;;
5447 esac
5448 ;;
5449 esac
5450 fi
5451 done
5452 IFS="$lt_save_ifs"
5453 done
5454 : ${lt_cv_path_NM=no}
5455fi
5456fi
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5458$as_echo "$lt_cv_path_NM" >&6; }
5459if test "$lt_cv_path_NM" != "no"; then
5460 NM="$lt_cv_path_NM"
5461else
5462 # Didn't find any BSD compatible name lister, look for dumpbin.
5463 if test -n "$DUMPBIN"; then :
5464 # Let the user override the test.
5465 else
5466 if test -n "$ac_tool_prefix"; then
5467 for ac_prog in dumpbin "link -dump"
5468 do
5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472$as_echo_n "checking for $ac_word... " >&6; }
5473if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475else
5476 if test -n "$DUMPBIN"; then
5477 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490done
5491 done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496DUMPBIN=$ac_cv_prog_DUMPBIN
5497if test -n "$DUMPBIN"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5499$as_echo "$DUMPBIN" >&6; }
5500else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502$as_echo "no" >&6; }
5503fi
5504
5505
5506 test -n "$DUMPBIN" && break
5507 done
5508fi
5509if test -z "$DUMPBIN"; then
5510 ac_ct_DUMPBIN=$DUMPBIN
5511 for ac_prog in dumpbin "link -dump"
5512do
5513 # Extract the first word of "$ac_prog", so it can be a program name with args.
5514set dummy $ac_prog; ac_word=$2
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516$as_echo_n "checking for $ac_word... " >&6; }
5517if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519else
5520 if test -n "$ac_ct_DUMPBIN"; then
5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534done
5535 done
5536IFS=$as_save_IFS
5537
5538fi
5539fi
5540ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5541if test -n "$ac_ct_DUMPBIN"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5543$as_echo "$ac_ct_DUMPBIN" >&6; }
5544else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }
5547fi
5548
5549
5550 test -n "$ac_ct_DUMPBIN" && break
5551done
5552
5553 if test "x$ac_ct_DUMPBIN" = x; then
5554 DUMPBIN=":"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557yes:)
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560ac_tool_warned=yes ;;
5561esac
5562 DUMPBIN=$ac_ct_DUMPBIN
5563 fi
5564fi
5565
5566 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5567 *COFF*)
5568 DUMPBIN="$DUMPBIN -symbols"
5569 ;;
5570 *)
5571 DUMPBIN=:
5572 ;;
5573 esac
5574 fi
5575
5576 if test "$DUMPBIN" != ":"; then
5577 NM="$DUMPBIN"
5578 fi
5579fi
5580test -z "$NM" && NM=nm
5581
5582
5583
5584
5585
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5588$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5589if test "${lt_cv_nm_interface+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591else
5592 lt_cv_nm_interface="BSD nm"
5593 echo "int some_variable = 0;" > conftest.$ac_ext
5594 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5595 (eval "$ac_compile" 2>conftest.err)
5596 cat conftest.err >&5
5597 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5598 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5599 cat conftest.err >&5
5600 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5601 cat conftest.out >&5
5602 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5603 lt_cv_nm_interface="MS dumpbin"
5604 fi
5605 rm -f conftest*
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5608$as_echo "$lt_cv_nm_interface" >&6; }
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5611$as_echo_n "checking whether ln -s works... " >&6; }
5612LN_S=$as_ln_s
5613if test "$LN_S" = "ln -s"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615$as_echo "yes" >&6; }
5616else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5618$as_echo "no, using $LN_S" >&6; }
5619fi
5620
5621# find the maximum length of command line arguments
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5623$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5624if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 i=0
5628 teststring="ABCD"
5629
5630 case $build_os in
5631 msdosdjgpp*)
5632 # On DJGPP, this test can blow up pretty badly due to problems in libc
5633 # (any single argument exceeding 2000 bytes causes a buffer overrun
5634 # during glob expansion). Even if it were fixed, the result of this
5635 # check would be larger than it should be.
5636 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5637 ;;
5638
5639 gnu*)
5640 # Under GNU Hurd, this test is not required because there is
5641 # no limit to the length of command line arguments.
5642 # Libtool will interpret -1 as no limit whatsoever
5643 lt_cv_sys_max_cmd_len=-1;
5644 ;;
5645
5646 cygwin* | mingw* | cegcc*)
5647 # On Win9x/ME, this test blows up -- it succeeds, but takes
5648 # about 5 minutes as the teststring grows exponentially.
5649 # Worse, since 9x/ME are not pre-emptively multitasking,
5650 # you end up with a "frozen" computer, even though with patience
5651 # the test eventually succeeds (with a max line length of 256k).
5652 # Instead, let's just punt: use the minimum linelength reported by
5653 # all of the supported platforms: 8192 (on NT/2K/XP).
5654 lt_cv_sys_max_cmd_len=8192;
5655 ;;
5656
5657 mint*)
5658 # On MiNT this can take a long time and run out of memory.
5659 lt_cv_sys_max_cmd_len=8192;
5660 ;;
5661
5662 amigaos*)
5663 # On AmigaOS with pdksh, this test takes hours, literally.
5664 # So we just punt and use a minimum line length of 8192.
5665 lt_cv_sys_max_cmd_len=8192;
5666 ;;
5667
5668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5669 # This has been around since 386BSD, at least. Likely further.
5670 if test -x /sbin/sysctl; then
5671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5672 elif test -x /usr/sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5674 else
5675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5676 fi
5677 # And add a safety zone
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5680 ;;
5681
5682 interix*)
5683 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5684 lt_cv_sys_max_cmd_len=196608
5685 ;;
5686
5687 osf*)
5688 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5689 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5690 # nice to cause kernel panics so lets avoid the loop below.
5691 # First set a reasonable default.
5692 lt_cv_sys_max_cmd_len=16384
5693 #
5694 if test -x /sbin/sysconfig; then
5695 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5696 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5697 esac
5698 fi
5699 ;;
5700 sco3.2v5*)
5701 lt_cv_sys_max_cmd_len=102400
5702 ;;
5703 sysv5* | sco5v6* | sysv4.2uw2*)
5704 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5705 if test -n "$kargmax"; then
5706 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5707 else
5708 lt_cv_sys_max_cmd_len=32768
5709 fi
5710 ;;
5711 *)
5712 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5713 if test -n "$lt_cv_sys_max_cmd_len"; then
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716 else
5717 # Make teststring a little bigger before we do anything with it.
5718 # a 1K string should be a reasonable start.
5719 for i in 1 2 3 4 5 6 7 8 ; do
5720 teststring=$teststring$teststring
5721 done
5722 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5723 # If test is not a shell built-in, we'll probably end up computing a
5724 # maximum length that is only half of the actual maximum length, but
5725 # we can't tell.
5726 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5727 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5728 test $i != 17 # 1/2 MB should be enough
5729 do
5730 i=`expr $i + 1`
5731 teststring=$teststring$teststring
5732 done
5733 # Only check the string length outside the loop.
5734 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5735 teststring=
5736 # Add a significant safety factor because C++ compilers can tack on
5737 # massive amounts of additional arguments before passing them to the
5738 # linker. It appears as though 1/2 is a usable value.
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5740 fi
5741 ;;
5742 esac
5743
5744fi
5745
5746if test -n $lt_cv_sys_max_cmd_len ; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5748$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5749else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5751$as_echo "none" >&6; }
5752fi
5753max_cmd_len=$lt_cv_sys_max_cmd_len
5754
5755
5756
5757
5758
5759
5760: ${CP="cp -f"}
5761: ${MV="mv -f"}
5762: ${RM="rm -f"}
5763
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5765$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5766# Try some XSI features
5767xsi_shell=no
5768( _lt_dummy="a/b/c"
5769 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5770 = c,a/b,, \
5771 && eval 'test $(( 1 + 1 )) -eq 2 \
5772 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5773 && xsi_shell=yes
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5775$as_echo "$xsi_shell" >&6; }
5776
5777
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5779$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5780lt_shell_append=no
5781( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5782 >/dev/null 2>&1 \
5783 && lt_shell_append=yes
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5785$as_echo "$lt_shell_append" >&6; }
5786
5787
5788if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5789 lt_unset=unset
5790else
5791 lt_unset=false
5792fi
5793
5794
5795
5796
5797
5798# test EBCDIC or ASCII
5799case `echo X|tr X '\101'` in
5800 A) # ASCII based system
5801 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5802 lt_SP2NL='tr \040 \012'
5803 lt_NL2SP='tr \015\012 \040\040'
5804 ;;
5805 *) # EBCDIC based system
5806 lt_SP2NL='tr \100 \n'
5807 lt_NL2SP='tr \r\n \100\100'
5808 ;;
5809esac
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5820$as_echo_n "checking for $LD option to reload object files... " >&6; }
5821if test "${lt_cv_ld_reload_flag+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823else
5824 lt_cv_ld_reload_flag='-r'
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5827$as_echo "$lt_cv_ld_reload_flag" >&6; }
5828reload_flag=$lt_cv_ld_reload_flag
5829case $reload_flag in
5830"" | " "*) ;;
5831*) reload_flag=" $reload_flag" ;;
5832esac
5833reload_cmds='$LD$reload_flag -o $output$reload_objs'
5834case $host_os in
5835 darwin*)
5836 if test "$GCC" = yes; then
5837 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5838 else
5839 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5840 fi
5841 ;;
5842esac
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5854set dummy ${ac_tool_prefix}objdump; ac_word=$2
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856$as_echo_n "checking for $ac_word... " >&6; }
5857if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859else
5860 if test -n "$OBJDUMP"; then
5861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875 done
5876IFS=$as_save_IFS
5877
5878fi
5879fi
5880OBJDUMP=$ac_cv_prog_OBJDUMP
5881if test -n "$OBJDUMP"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5883$as_echo "$OBJDUMP" >&6; }
5884else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886$as_echo "no" >&6; }
5887fi
5888
5889
5890fi
5891if test -z "$ac_cv_prog_OBJDUMP"; then
5892 ac_ct_OBJDUMP=$OBJDUMP
5893 # Extract the first word of "objdump", so it can be a program name with args.
5894set dummy objdump; ac_word=$2
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896$as_echo_n "checking for $ac_word... " >&6; }
5897if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899else
5900 if test -n "$ac_ct_OBJDUMP"; then
5901 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914done
5915 done
5916IFS=$as_save_IFS
5917
5918fi
5919fi
5920ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5921if test -n "$ac_ct_OBJDUMP"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5923$as_echo "$ac_ct_OBJDUMP" >&6; }
5924else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }
5927fi
5928
5929 if test "x$ac_ct_OBJDUMP" = x; then
5930 OBJDUMP="false"
5931 else
5932 case $cross_compiling:$ac_tool_warned in
5933yes:)
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936ac_tool_warned=yes ;;
5937esac
5938 OBJDUMP=$ac_ct_OBJDUMP
5939 fi
5940else
5941 OBJDUMP="$ac_cv_prog_OBJDUMP"
5942fi
5943
5944test -z "$OBJDUMP" && OBJDUMP=objdump
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5955$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5956if test "${lt_cv_deplibs_check_method+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958else
5959 lt_cv_file_magic_cmd='$MAGIC_CMD'
5960lt_cv_file_magic_test_file=
5961lt_cv_deplibs_check_method='unknown'
5962# Need to set the preceding variable on all platforms that support
5963# interlibrary dependencies.
5964# 'none' -- dependencies not supported.
5965# `unknown' -- same as none, but documents that we really don't know.
5966# 'pass_all' -- all dependencies passed with no checks.
5967# 'test_compile' -- check by making test program.
5968# 'file_magic [[regex]]' -- check by looking for files in library path
5969# which responds to the $file_magic_cmd with a given extended regex.
5970# If you have `file' or equivalent on your system and you're not sure
5971# whether `pass_all' will *always* work, you probably want this one.
5972
5973case $host_os in
5974aix[4-9]*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978beos*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982bsdi[45]*)
5983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5984 lt_cv_file_magic_cmd='/usr/bin/file -L'
5985 lt_cv_file_magic_test_file=/shlib/libc.so
5986 ;;
5987
5988cygwin*)
5989 # func_win32_libid is a shell function defined in ltmain.sh
5990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991 lt_cv_file_magic_cmd='func_win32_libid'
5992 ;;
5993
5994mingw* | pw32*)
5995 # Base MSYS/MinGW do not provide the 'file' command needed by
5996 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5997 # unless we find 'file', for example because we are cross-compiling.
5998 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5999 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6001 lt_cv_file_magic_cmd='func_win32_libid'
6002 else
6003 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6005 fi
6006 ;;
6007
6008cegcc*)
6009 # use the weaker test based on 'objdump'. See mingw*.
6010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6011 lt_cv_file_magic_cmd='$OBJDUMP -f'
6012 ;;
6013
6014darwin* | rhapsody*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018freebsd* | dragonfly*)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6020 case $host_cpu in
6021 i*86 )
6022 # Not sure whether the presence of OpenBSD here was a mistake.
6023 # Let's accept both of them until this is cleared up.
6024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6025 lt_cv_file_magic_cmd=/usr/bin/file
6026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6027 ;;
6028 esac
6029 else
6030 lt_cv_deplibs_check_method=pass_all
6031 fi
6032 ;;
6033
6034gnu*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038haiku*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6044 case $host_cpu in
6045 ia64*)
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6048 ;;
6049 hppa*64*)
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6052 ;;
6053 *)
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6056 ;;
6057 esac
6058 ;;
6059
6060interix[3-9]*)
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6063 ;;
6064
6065irix5* | irix6* | nonstopux*)
6066 case $LD in
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6071 esac
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075# This must be Linux ELF.
6076linux* | k*bsd*-gnu | kopensolaris*-gnu)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080netbsd*)
6081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6085 fi
6086 ;;
6087
6088newos6*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6092 ;;
6093
6094*nto* | *qnx*)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097
6098openbsd*)
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101 else
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103 fi
6104 ;;
6105
6106osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110rdos*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114solaris*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122sysv4 | sysv4.3*)
6123 case $host_vendor in
6124 motorola)
6125 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]'
6126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6127 ;;
6128 ncr)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131 sequent)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6134 ;;
6135 sni)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file=/lib/libc.so
6139 ;;
6140 siemens)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 pc)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146 esac
6147 ;;
6148
6149tpf*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152esac
6153
6154fi
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6156$as_echo "$lt_cv_deplibs_check_method" >&6; }
6157file_magic_cmd=$lt_cv_file_magic_cmd
6158deplibs_check_method=$lt_cv_deplibs_check_method
6159test -z "$deplibs_check_method" && deplibs_check_method=unknown
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6174set dummy ${ac_tool_prefix}ar; ac_word=$2
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176$as_echo_n "checking for $ac_word... " >&6; }
6177if test "${ac_cv_prog_AR+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179else
6180 if test -n "$AR"; then
6181 ac_cv_prog_AR="$AR" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_AR="${ac_tool_prefix}ar"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194done
6195 done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
6200AR=$ac_cv_prog_AR
6201if test -n "$AR"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6203$as_echo "$AR" >&6; }
6204else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206$as_echo "no" >&6; }
6207fi
6208
6209
6210fi
6211if test -z "$ac_cv_prog_AR"; then
6212 ac_ct_AR=$AR
6213 # Extract the first word of "ar", so it can be a program name with args.
6214set dummy ar; ac_word=$2
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216$as_echo_n "checking for $ac_word... " >&6; }
6217if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219else
6220 if test -n "$ac_ct_AR"; then
6221 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6222else
6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_ac_ct_AR="ar"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234done
6235 done
6236IFS=$as_save_IFS
6237
6238fi
6239fi
6240ac_ct_AR=$ac_cv_prog_ac_ct_AR
6241if test -n "$ac_ct_AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6243$as_echo "$ac_ct_AR" >&6; }
6244else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246$as_echo "no" >&6; }
6247fi
6248
6249 if test "x$ac_ct_AR" = x; then
6250 AR="false"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253yes:)
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256ac_tool_warned=yes ;;
6257esac
6258 AR=$ac_ct_AR
6259 fi
6260else
6261 AR="$ac_cv_prog_AR"
6262fi
6263
6264test -z "$AR" && AR=ar
6265test -z "$AR_FLAGS" && AR_FLAGS=cru
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6279set dummy ${ac_tool_prefix}strip; ac_word=$2
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if test "${ac_cv_prog_STRIP+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284else
6285 if test -n "$STRIP"; then
6286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300 done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305STRIP=$ac_cv_prog_STRIP
6306if test -n "$STRIP"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6308$as_echo "$STRIP" >&6; }
6309else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311$as_echo "no" >&6; }
6312fi
6313
6314
6315fi
6316if test -z "$ac_cv_prog_STRIP"; then
6317 ac_ct_STRIP=$STRIP
6318 # Extract the first word of "strip", so it can be a program name with args.
6319set dummy strip; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324else
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_STRIP="strip"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340 done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6346if test -n "$ac_ct_STRIP"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6348$as_echo "$ac_ct_STRIP" >&6; }
6349else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354 if test "x$ac_ct_STRIP" = x; then
6355 STRIP=":"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358yes:)
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361ac_tool_warned=yes ;;
6362esac
6363 STRIP=$ac_ct_STRIP
6364 fi
6365else
6366 STRIP="$ac_cv_prog_STRIP"
6367fi
6368
6369test -z "$STRIP" && STRIP=:
6370
6371
6372
6373
6374
6375
6376if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if test "${ac_cv_prog_RANLIB+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383else
6384 if test -n "$RANLIB"; then
6385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399 done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404RANLIB=$ac_cv_prog_RANLIB
6405if test -n "$RANLIB"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6407$as_echo "$RANLIB" >&6; }
6408else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414fi
6415if test -z "$ac_cv_prog_RANLIB"; then
6416 ac_ct_RANLIB=$RANLIB
6417 # Extract the first word of "ranlib", so it can be a program name with args.
6418set dummy ranlib; ac_word=$2
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423else
6424 if test -n "$ac_ct_RANLIB"; then
6425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_RANLIB="ranlib"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438done
6439 done
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6445if test -n "$ac_ct_RANLIB"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6447$as_echo "$ac_ct_RANLIB" >&6; }
6448else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450$as_echo "no" >&6; }
6451fi
6452
6453 if test "x$ac_ct_RANLIB" = x; then
6454 RANLIB=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457yes:)
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462 RANLIB=$ac_ct_RANLIB
6463 fi
6464else
6465 RANLIB="$ac_cv_prog_RANLIB"
6466fi
6467
6468test -z "$RANLIB" && RANLIB=:
6469
6470
6471
6472
6473
6474
6475# Determine commands to create old-style static archives.
6476old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6477old_postinstall_cmds='chmod 644 $oldlib'
6478old_postuninstall_cmds=
6479
6480if test -n "$RANLIB"; then
6481 case $host_os in
6482 openbsd*)
6483 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6484 ;;
6485 *)
6486 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6487 ;;
6488 esac
6489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6490fi
6491
6492case $host_os in
6493 darwin*)
6494 lock_old_archive_extraction=yes ;;
6495 *)
6496 lock_old_archive_extraction=no ;;
6497esac
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537# If no C compiler was specified, use CC.
6538LTCC=${LTCC-"$CC"}
6539
6540# If no C compiler flags were specified, use CFLAGS.
6541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6542
6543# Allow CC to be a program name with arguments.
6544compiler=$CC
6545
6546
6547# Check for command to grab the raw symbol name followed by C symbol from nm.
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6549$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6550if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552else
6553
6554# These are sane defaults that work on at least a few old systems.
6555# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6556
6557# Character class describing NM global symbol codes.
6558symcode='[BCDEGRST]'
6559
6560# Regexp to match symbols that can be accessed directly from C.
6561sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562
6563# Define system-specific variables.
6564case $host_os in
6565aix*)
6566 symcode='[BCDT]'
6567 ;;
6568cygwin* | mingw* | pw32* | cegcc*)
6569 symcode='[ABCDGISTW]'
6570 ;;
6571hpux*)
6572 if test "$host_cpu" = ia64; then
6573 symcode='[ABCDEGRST]'
6574 fi
6575 ;;
6576irix* | nonstopux*)
6577 symcode='[BCDEGRST]'
6578 ;;
6579osf*)
6580 symcode='[BCDEGQRST]'
6581 ;;
6582solaris*)
6583 symcode='[BDRT]'
6584 ;;
6585sco3.2v5*)
6586 symcode='[DT]'
6587 ;;
6588sysv4.2uw2*)
6589 symcode='[DT]'
6590 ;;
6591sysv5* | sco5v6* | unixware* | OpenUNIX*)
6592 symcode='[ABDT]'
6593 ;;
6594sysv4)
6595 symcode='[DFNSTU]'
6596 ;;
6597esac
6598
6599# If we're using GNU nm, then use its standard symbol codes.
6600case `$NM -V 2>&1` in
6601*GNU* | *'with BFD'*)
6602 symcode='[ABCDGIRSTW]' ;;
6603esac
6604
6605# Transform an extracted symbol line into a proper C declaration.
6606# Some systems (esp. on ia64) link data and code symbols differently,
6607# so use this general approach.
6608lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6609
6610# Transform an extracted symbol line into symbol name and symbol address
6611lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6612lt_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'"
6613
6614# Handle CRLF in mingw tool chain
6615opt_cr=
6616case $build_os in
6617mingw*)
6618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6619 ;;
6620esac
6621
6622# Try without a prefix underscore, then with it.
6623for ac_symprfx in "" "_"; do
6624
6625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626 symxfrm="\\1 $ac_symprfx\\2 \\2"
6627
6628 # Write the raw and C identifiers.
6629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6630 # Fake it for dumpbin and say T for any non-static function
6631 # and D for any global variable.
6632 # Also find C++ and __fastcall symbols from MSVC++,
6633 # which start with @ or ?.
6634 lt_cv_sys_global_symbol_pipe="$AWK '"\
6635" {last_section=section; section=\$ 3};"\
6636" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637" \$ 0!~/External *\|/{next};"\
6638" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639" {if(hide[section]) next};"\
6640" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644" ' prfx=^$ac_symprfx"
6645 else
6646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6647 fi
6648
6649 # Check to see that the pipe works correctly.
6650 pipe_works=no
6651
6652 rm -f conftest*
6653 cat > conftest.$ac_ext <<_LT_EOF
6654#ifdef __cplusplus
6655extern "C" {
6656#endif
6657char nm_test_var;
6658void nm_test_func(void);
6659void nm_test_func(void){}
6660#ifdef __cplusplus
6661}
6662#endif
6663int main(){nm_test_var='a';nm_test_func();return(0);}
6664_LT_EOF
6665
6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667 (eval $ac_compile) 2>&5
6668 ac_status=$?
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }; then
6671 # Now try to grab the symbols.
6672 nlist=conftest.nm
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6674 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; } && test -s "$nlist"; then
6678 # Try sorting and uniquifying the output.
6679 if sort "$nlist" | uniq > "$nlist"T; then
6680 mv -f "$nlist"T "$nlist"
6681 else
6682 rm -f "$nlist"T
6683 fi
6684
6685 # Make sure that we snagged all the symbols we need.
6686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6688 cat <<_LT_EOF > conftest.$ac_ext
6689#ifdef __cplusplus
6690extern "C" {
6691#endif
6692
6693_LT_EOF
6694 # Now generate the symbol file.
6695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6696
6697 cat <<_LT_EOF >> conftest.$ac_ext
6698
6699/* The mapping between symbol names and symbols. */
6700const struct {
6701 const char *name;
6702 void *address;
6703}
6704lt__PROGRAM__LTX_preloaded_symbols[] =
6705{
6706 { "@PROGRAM@", (void *) 0 },
6707_LT_EOF
6708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6709 cat <<\_LT_EOF >> conftest.$ac_ext
6710 {0, (void *) 0}
6711};
6712
6713/* This works around a problem in FreeBSD linker */
6714#ifdef FREEBSD_WORKAROUND
6715static const void *lt_preloaded_setup() {
6716 return lt__PROGRAM__LTX_preloaded_symbols;
6717}
6718#endif
6719
6720#ifdef __cplusplus
6721}
6722#endif
6723_LT_EOF
6724 # Now try linking the two files.
6725 mv conftest.$ac_objext conftstm.$ac_objext
6726 lt_save_LIBS="$LIBS"
6727 lt_save_CFLAGS="$CFLAGS"
6728 LIBS="conftstm.$ac_objext"
6729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6731 (eval $ac_link) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6735 pipe_works=yes
6736 fi
6737 LIBS="$lt_save_LIBS"
6738 CFLAGS="$lt_save_CFLAGS"
6739 else
6740 echo "cannot find nm_test_func in $nlist" >&5
6741 fi
6742 else
6743 echo "cannot find nm_test_var in $nlist" >&5
6744 fi
6745 else
6746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6747 fi
6748 else
6749 echo "$progname: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6751 fi
6752 rm -rf conftest* conftst*
6753
6754 # Do not use the global_symbol_pipe unless it works.
6755 if test "$pipe_works" = yes; then
6756 break
6757 else
6758 lt_cv_sys_global_symbol_pipe=
6759 fi
6760done
6761
6762fi
6763
6764if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765 lt_cv_sys_global_symbol_to_cdecl=
6766fi
6767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6769$as_echo "failed" >&6; }
6770else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6772$as_echo "ok" >&6; }
6773fi
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796# Check whether --enable-libtool-lock was given.
6797if test "${enable_libtool_lock+set}" = set; then :
6798 enableval=$enable_libtool_lock;
6799fi
6800
6801test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6802
6803# Some flags need to be propagated to the compiler or linker for good
6804# libtool support.
6805case $host in
6806ia64-*-hpux*)
6807 # Find out which ABI we are using.
6808 echo 'int i;' > conftest.$ac_ext
6809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810 (eval $ac_compile) 2>&5
6811 ac_status=$?
6812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813 test $ac_status = 0; }; then
6814 case `/usr/bin/file conftest.$ac_objext` in
6815 *ELF-32*)
6816 HPUX_IA64_MODE="32"
6817 ;;
6818 *ELF-64*)
6819 HPUX_IA64_MODE="64"
6820 ;;
6821 esac
6822 fi
6823 rm -rf conftest*
6824 ;;
6825*-*-irix6*)
6826 # Find out which ABI we are using.
6827 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829 (eval $ac_compile) 2>&5
6830 ac_status=$?
6831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832 test $ac_status = 0; }; then
6833 if test "$lt_cv_prog_gnu_ld" = yes; then
6834 case `/usr/bin/file conftest.$ac_objext` in
6835 *32-bit*)
6836 LD="${LD-ld} -melf32bsmip"
6837 ;;
6838 *N32*)
6839 LD="${LD-ld} -melf32bmipn32"
6840 ;;
6841 *64-bit*)
6842 LD="${LD-ld} -melf64bmip"
6843 ;;
6844 esac
6845 else
6846 case `/usr/bin/file conftest.$ac_objext` in
6847 *32-bit*)
6848 LD="${LD-ld} -32"
6849 ;;
6850 *N32*)
6851 LD="${LD-ld} -n32"
6852 ;;
6853 *64-bit*)
6854 LD="${LD-ld} -64"
6855 ;;
6856 esac
6857 fi
6858 fi
6859 rm -rf conftest*
6860 ;;
6861
6862x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6863s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6864 # Find out which ABI we are using.
6865 echo 'int i;' > conftest.$ac_ext
6866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867 (eval $ac_compile) 2>&5
6868 ac_status=$?
6869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870 test $ac_status = 0; }; then
6871 case `/usr/bin/file conftest.o` in
6872 *32-bit*)
6873 case $host in
6874 x86_64-*kfreebsd*-gnu)
6875 LD="${LD-ld} -m elf_i386_fbsd"
6876 ;;
6877 x86_64-*linux*)
6878 case `/usr/bin/file conftest.o` in
6879 *x86-64*)
6880 LD="${LD-ld} -m elf32_x86_64"
6881 ;;
6882 *)
6883 LD="${LD-ld} -m elf_i386"
6884 ;;
6885 esac
6886 ;;
6887 powerpc64le-*linux*)
6888 LD="${LD-ld} -m elf32lppclinux"
6889 ;;
6890 powerpc64-*linux*)
6891 LD="${LD-ld} -m elf32ppclinux"
6892 ;;
6893 s390x-*linux*)
6894 LD="${LD-ld} -m elf_s390"
6895 ;;
6896 sparc64-*linux*)
6897 LD="${LD-ld} -m elf32_sparc"
6898 ;;
6899 esac
6900 ;;
6901 *64-bit*)
6902 case $host in
6903 x86_64-*kfreebsd*-gnu)
6904 LD="${LD-ld} -m elf_x86_64_fbsd"
6905 ;;
6906 x86_64-*linux*)
6907 LD="${LD-ld} -m elf_x86_64"
6908 ;;
6909 powerpcle-*linux*)
6910 LD="${LD-ld} -m elf64lppc"
6911 ;;
6912 powerpc-*linux*)
6913 LD="${LD-ld} -m elf64ppc"
6914 ;;
6915 s390*-*linux*|s390*-*tpf*)
6916 LD="${LD-ld} -m elf64_s390"
6917 ;;
6918 sparc*-*linux*)
6919 LD="${LD-ld} -m elf64_sparc"
6920 ;;
6921 esac
6922 ;;
6923 esac
6924 fi
6925 rm -rf conftest*
6926 ;;
6927
6928*-*-sco3.2v5*)
6929 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6930 SAVE_CFLAGS="$CFLAGS"
6931 CFLAGS="$CFLAGS -belf"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6933$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6934if test "${lt_cv_cc_needs_belf+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936else
6937 ac_ext=c
6938ac_cpp='$CPP $CPPFLAGS'
6939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941ac_compiler_gnu=$ac_cv_c_compiler_gnu
6942
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h. */
6945
6946int
6947main ()
6948{
6949
6950 ;
6951 return 0;
6952}
6953_ACEOF
6954if ac_fn_c_try_link "$LINENO"; then :
6955 lt_cv_cc_needs_belf=yes
6956else
6957 lt_cv_cc_needs_belf=no
6958fi
6959rm -f core conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961 ac_ext=c
6962ac_cpp='$CPP $CPPFLAGS'
6963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967fi
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6969$as_echo "$lt_cv_cc_needs_belf" >&6; }
6970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6972 CFLAGS="$SAVE_CFLAGS"
6973 fi
6974 ;;
6975sparc*-*solaris*)
6976 # Find out which ABI we are using.
6977 echo 'int i;' > conftest.$ac_ext
6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6979 (eval $ac_compile) 2>&5
6980 ac_status=$?
6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; }; then
6983 case `/usr/bin/file conftest.o` in
6984 *64-bit*)
6985 case $lt_cv_prog_gnu_ld in
6986 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6987 *)
6988 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6989 LD="${LD-ld} -64"
6990 fi
6991 ;;
6992 esac
6993 ;;
6994 esac
6995 fi
6996 rm -rf conftest*
6997 ;;
6998esac
6999
7000need_locks="$enable_libtool_lock"
7001
7002
7003 case $host_os in
7004 rhapsody* | darwin*)
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7007set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7012else
7013 if test -n "$DSYMUTIL"; then
7014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028 done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033DSYMUTIL=$ac_cv_prog_DSYMUTIL
7034if test -n "$DSYMUTIL"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7036$as_echo "$DSYMUTIL" >&6; }
7037else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042
7043fi
7044if test -z "$ac_cv_prog_DSYMUTIL"; then
7045 ac_ct_DSYMUTIL=$DSYMUTIL
7046 # Extract the first word of "dsymutil", so it can be a program name with args.
7047set dummy dsymutil; ac_word=$2
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049$as_echo_n "checking for $ac_word... " >&6; }
7050if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052else
7053 if test -n "$ac_ct_DSYMUTIL"; then
7054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068 done
7069IFS=$as_save_IFS
7070
7071fi
7072fi
7073ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7074if test -n "$ac_ct_DSYMUTIL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7076$as_echo "$ac_ct_DSYMUTIL" >&6; }
7077else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080fi
7081
7082 if test "x$ac_ct_DSYMUTIL" = x; then
7083 DSYMUTIL=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086yes:)
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091 DSYMUTIL=$ac_ct_DSYMUTIL
7092 fi
7093else
7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7095fi
7096
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7099set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101$as_echo_n "checking for $ac_word... " >&6; }
7102if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7104else
7105 if test -n "$NMEDIT"; then
7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7107else
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120 done
7121IFS=$as_save_IFS
7122
7123fi
7124fi
7125NMEDIT=$ac_cv_prog_NMEDIT
7126if test -n "$NMEDIT"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7128$as_echo "$NMEDIT" >&6; }
7129else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132fi
7133
7134
7135fi
7136if test -z "$ac_cv_prog_NMEDIT"; then
7137 ac_ct_NMEDIT=$NMEDIT
7138 # Extract the first word of "nmedit", so it can be a program name with args.
7139set dummy nmedit; ac_word=$2
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141$as_echo_n "checking for $ac_word... " >&6; }
7142if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144else
7145 if test -n "$ac_ct_NMEDIT"; then
7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7147else
7148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160 done
7161IFS=$as_save_IFS
7162
7163fi
7164fi
7165ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7166if test -n "$ac_ct_NMEDIT"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7168$as_echo "$ac_ct_NMEDIT" >&6; }
7169else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171$as_echo "no" >&6; }
7172fi
7173
7174 if test "x$ac_ct_NMEDIT" = x; then
7175 NMEDIT=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178yes:)
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181ac_tool_warned=yes ;;
7182esac
7183 NMEDIT=$ac_ct_NMEDIT
7184 fi
7185else
7186 NMEDIT="$ac_cv_prog_NMEDIT"
7187fi
7188
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7191set dummy ${ac_tool_prefix}lipo; ac_word=$2
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193$as_echo_n "checking for $ac_word... " >&6; }
7194if test "${ac_cv_prog_LIPO+set}" = set; then :
7195 $as_echo_n "(cached) " >&6
7196else
7197 if test -n "$LIPO"; then
7198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7199else
7200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211done
7212 done
7213IFS=$as_save_IFS
7214
7215fi
7216fi
7217LIPO=$ac_cv_prog_LIPO
7218if test -n "$LIPO"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7220$as_echo "$LIPO" >&6; }
7221else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223$as_echo "no" >&6; }
7224fi
7225
7226
7227fi
7228if test -z "$ac_cv_prog_LIPO"; then
7229 ac_ct_LIPO=$LIPO
7230 # Extract the first word of "lipo", so it can be a program name with args.
7231set dummy lipo; ac_word=$2
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233$as_echo_n "checking for $ac_word... " >&6; }
7234if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236else
7237 if test -n "$ac_ct_LIPO"; then
7238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_LIPO="lipo"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251done
7252 done
7253IFS=$as_save_IFS
7254
7255fi
7256fi
7257ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7258if test -n "$ac_ct_LIPO"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7260$as_echo "$ac_ct_LIPO" >&6; }
7261else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263$as_echo "no" >&6; }
7264fi
7265
7266 if test "x$ac_ct_LIPO" = x; then
7267 LIPO=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270yes:)
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7273ac_tool_warned=yes ;;
7274esac
7275 LIPO=$ac_ct_LIPO
7276 fi
7277else
7278 LIPO="$ac_cv_prog_LIPO"
7279fi
7280
7281 if test -n "$ac_tool_prefix"; then
7282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7283set dummy ${ac_tool_prefix}otool; ac_word=$2
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285$as_echo_n "checking for $ac_word... " >&6; }
7286if test "${ac_cv_prog_OTOOL+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288else
7289 if test -n "$OTOOL"; then
7290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303done
7304 done
7305IFS=$as_save_IFS
7306
7307fi
7308fi
7309OTOOL=$ac_cv_prog_OTOOL
7310if test -n "$OTOOL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7312$as_echo "$OTOOL" >&6; }
7313else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318
7319fi
7320if test -z "$ac_cv_prog_OTOOL"; then
7321 ac_ct_OTOOL=$OTOOL
7322 # Extract the first word of "otool", so it can be a program name with args.
7323set dummy otool; ac_word=$2
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325$as_echo_n "checking for $ac_word... " >&6; }
7326if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328else
7329 if test -n "$ac_ct_OTOOL"; then
7330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7331else
7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333for as_dir in $PATH
7334do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_ac_ct_OTOOL="otool"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343done
7344 done
7345IFS=$as_save_IFS
7346
7347fi
7348fi
7349ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7350if test -n "$ac_ct_OTOOL"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7352$as_echo "$ac_ct_OTOOL" >&6; }
7353else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355$as_echo "no" >&6; }
7356fi
7357
7358 if test "x$ac_ct_OTOOL" = x; then
7359 OTOOL=":"
7360 else
7361 case $cross_compiling:$ac_tool_warned in
7362yes:)
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7365ac_tool_warned=yes ;;
7366esac
7367 OTOOL=$ac_ct_OTOOL
7368 fi
7369else
7370 OTOOL="$ac_cv_prog_OTOOL"
7371fi
7372
7373 if test -n "$ac_tool_prefix"; then
7374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7375set dummy ${ac_tool_prefix}otool64; ac_word=$2
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377$as_echo_n "checking for $ac_word... " >&6; }
7378if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380else
7381 if test -n "$OTOOL64"; then
7382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7383else
7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385for as_dir in $PATH
7386do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395done
7396 done
7397IFS=$as_save_IFS
7398
7399fi
7400fi
7401OTOOL64=$ac_cv_prog_OTOOL64
7402if test -n "$OTOOL64"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7404$as_echo "$OTOOL64" >&6; }
7405else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407$as_echo "no" >&6; }
7408fi
7409
7410
7411fi
7412if test -z "$ac_cv_prog_OTOOL64"; then
7413 ac_ct_OTOOL64=$OTOOL64
7414 # Extract the first word of "otool64", so it can be a program name with args.
7415set dummy otool64; ac_word=$2
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417$as_echo_n "checking for $ac_word... " >&6; }
7418if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420else
7421 if test -n "$ac_ct_OTOOL64"; then
7422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7423else
7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_ac_ct_OTOOL64="otool64"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435done
7436 done
7437IFS=$as_save_IFS
7438
7439fi
7440fi
7441ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7442if test -n "$ac_ct_OTOOL64"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7444$as_echo "$ac_ct_OTOOL64" >&6; }
7445else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447$as_echo "no" >&6; }
7448fi
7449
7450 if test "x$ac_ct_OTOOL64" = x; then
7451 OTOOL64=":"
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454yes:)
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457ac_tool_warned=yes ;;
7458esac
7459 OTOOL64=$ac_ct_OTOOL64
7460 fi
7461else
7462 OTOOL64="$ac_cv_prog_OTOOL64"
7463fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7492$as_echo_n "checking for -single_module linker flag... " >&6; }
7493if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495else
7496 lt_cv_apple_cc_single_mod=no
7497 if test -z "${LT_MULTI_MODULE}"; then
7498 # By default we will add the -single_module flag. You can override
7499 # by either setting the environment variable LT_MULTI_MODULE
7500 # non-empty at configure time, or by adding -multi_module to the
7501 # link flags.
7502 rm -rf libconftest.dylib*
7503 echo "int foo(void){return 1;}" > conftest.c
7504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505-dynamiclib -Wl,-single_module conftest.c" >&5
7506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7508 _lt_result=$?
7509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7510 lt_cv_apple_cc_single_mod=yes
7511 else
7512 cat conftest.err >&5
7513 fi
7514 rm -rf libconftest.dylib*
7515 rm -f conftest.*
7516 fi
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7519$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7521$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7522if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524else
7525 lt_cv_ld_exported_symbols_list=no
7526 save_LDFLAGS=$LDFLAGS
7527 echo "_main" > conftest.sym
7528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h. */
7531
7532int
7533main ()
7534{
7535
7536 ;
7537 return 0;
7538}
7539_ACEOF
7540if ac_fn_c_try_link "$LINENO"; then :
7541 lt_cv_ld_exported_symbols_list=yes
7542else
7543 lt_cv_ld_exported_symbols_list=no
7544fi
7545rm -f core conftest.err conftest.$ac_objext \
7546 conftest$ac_exeext conftest.$ac_ext
7547 LDFLAGS="$save_LDFLAGS"
7548
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7551$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7553$as_echo_n "checking for -force_load linker flag... " >&6; }
7554if test "${lt_cv_ld_force_load+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556else
7557 lt_cv_ld_force_load=no
7558 cat > conftest.c << _LT_EOF
7559int forced_loaded() { return 2;}
7560_LT_EOF
7561 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7562 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7563 echo "$AR cru libconftest.a conftest.o" >&5
7564 $AR cru libconftest.a conftest.o 2>&5
7565 cat > conftest.c << _LT_EOF
7566int main() { return 0;}
7567_LT_EOF
7568 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7569 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7570 _lt_result=$?
7571 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7572 lt_cv_ld_force_load=yes
7573 else
7574 cat conftest.err >&5
7575 fi
7576 rm -f conftest.err libconftest.a conftest conftest.c
7577 rm -rf conftest.dSYM
7578
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7581$as_echo "$lt_cv_ld_force_load" >&6; }
7582 case $host_os in
7583 rhapsody* | darwin1.[012])
7584 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7585 darwin1.*)
7586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7587 darwin*) # darwin 5.x on
7588 # if running on 10.5 or later, the deployment target defaults
7589 # to the OS version, if on x86, and 10.4, the deployment
7590 # target defaults to 10.4. Don't you love it?
7591 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7592 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
735aacba 7594 10.[012][,.]*)
5f520819
KY
7595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7596 10.*)
7597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7598 esac
7599 ;;
7600 esac
7601 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7602 _lt_dar_single_mod='$single_module'
7603 fi
7604 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7605 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7606 else
7607 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7608 fi
7609 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7610 _lt_dsymutil='~$DSYMUTIL $lib || :'
7611 else
7612 _lt_dsymutil=
7613 fi
7614 ;;
7615 esac
7616
7617for ac_header in dlfcn.h
7618do :
7619 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7620"
7621if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7622 cat >>confdefs.h <<_ACEOF
7623#define HAVE_DLFCN_H 1
7624_ACEOF
7625
7626fi
7627
7628done
7629
7630
7631
7632
7633
7634
7635# Set options
7636
7637
7638
7639
7640 enable_win32_dll=no
7641
7642
7643 # Check whether --enable-shared was given.
7644if test "${enable_shared+set}" = set; then :
7645 enableval=$enable_shared; p=${PACKAGE-default}
7646 case $enableval in
7647 yes) enable_shared=yes ;;
7648 no) enable_shared=no ;;
7649 *)
7650 enable_shared=no
7651 # Look at the argument we got. We use all the common list separators.
7652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7653 for pkg in $enableval; do
7654 IFS="$lt_save_ifs"
7655 if test "X$pkg" = "X$p"; then
7656 enable_shared=yes
7657 fi
7658 done
7659 IFS="$lt_save_ifs"
7660 ;;
7661 esac
7662else
7663 enable_shared=yes
7664fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 # Check whether --enable-static was given.
7675if test "${enable_static+set}" = set; then :
7676 enableval=$enable_static; p=${PACKAGE-default}
7677 case $enableval in
7678 yes) enable_static=yes ;;
7679 no) enable_static=no ;;
7680 *)
7681 enable_static=no
7682 # Look at the argument we got. We use all the common list separators.
7683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7684 for pkg in $enableval; do
7685 IFS="$lt_save_ifs"
7686 if test "X$pkg" = "X$p"; then
7687 enable_static=yes
7688 fi
7689 done
7690 IFS="$lt_save_ifs"
7691 ;;
7692 esac
7693else
7694 enable_static=yes
7695fi
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706# Check whether --with-pic was given.
7707if test "${with_pic+set}" = set; then :
7708 withval=$with_pic; pic_mode="$withval"
7709else
7710 pic_mode=default
7711fi
7712
7713
7714test -z "$pic_mode" && pic_mode=default
7715
7716
7717
7718
7719
7720
7721
7722 # Check whether --enable-fast-install was given.
7723if test "${enable_fast_install+set}" = set; then :
7724 enableval=$enable_fast_install; p=${PACKAGE-default}
7725 case $enableval in
7726 yes) enable_fast_install=yes ;;
7727 no) enable_fast_install=no ;;
7728 *)
7729 enable_fast_install=no
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7732 for pkg in $enableval; do
7733 IFS="$lt_save_ifs"
7734 if test "X$pkg" = "X$p"; then
7735 enable_fast_install=yes
7736 fi
7737 done
7738 IFS="$lt_save_ifs"
7739 ;;
7740 esac
7741else
7742 enable_fast_install=yes
7743fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755# This can be used to rebuild libtool when needed
7756LIBTOOL_DEPS="$ltmain"
7757
7758# Always use our own libtool.
7759LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786test -z "$LN_S" && LN_S="ln -s"
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801if test -n "${ZSH_VERSION+set}" ; then
7802 setopt NO_GLOB_SUBST
7803fi
7804
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7806$as_echo_n "checking for objdir... " >&6; }
7807if test "${lt_cv_objdir+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809else
7810 rm -f .libs 2>/dev/null
7811mkdir .libs 2>/dev/null
7812if test -d .libs; then
7813 lt_cv_objdir=.libs
7814else
7815 # MS-DOS does not allow filenames that begin with a dot.
7816 lt_cv_objdir=_libs
7817fi
7818rmdir .libs 2>/dev/null
7819fi
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7821$as_echo "$lt_cv_objdir" >&6; }
7822objdir=$lt_cv_objdir
7823
7824
7825
7826
7827
7828cat >>confdefs.h <<_ACEOF
7829#define LT_OBJDIR "$lt_cv_objdir/"
7830_ACEOF
7831
7832
7833
7834
7835case $host_os in
7836aix3*)
7837 # AIX sometimes has problems with the GCC collect2 program. For some
7838 # reason, if we set the COLLECT_NAMES environment variable, the problems
7839 # vanish in a puff of smoke.
7840 if test "X${COLLECT_NAMES+set}" != Xset; then
7841 COLLECT_NAMES=
7842 export COLLECT_NAMES
7843 fi
7844 ;;
7845esac
7846
7847# Global variables:
7848ofile=libtool
7849can_build_shared=yes
7850
7851# All known linkers require a `.a' archive for static linking (except MSVC,
7852# which needs '.lib').
7853libext=a
7854
7855with_gnu_ld="$lt_cv_prog_gnu_ld"
7856
7857old_CC="$CC"
7858old_CFLAGS="$CFLAGS"
7859
7860# Set sane defaults for various variables
7861test -z "$CC" && CC=cc
7862test -z "$LTCC" && LTCC=$CC
7863test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7864test -z "$LD" && LD=ld
7865test -z "$ac_objext" && ac_objext=o
7866
7867for cc_temp in $compiler""; do
7868 case $cc_temp in
7869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7871 \-*) ;;
7872 *) break;;
7873 esac
7874done
7875cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7876
7877
7878# Only perform the check for file, if the check method requires it
7879test -z "$MAGIC_CMD" && MAGIC_CMD=file
7880case $deplibs_check_method in
7881file_magic*)
7882 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7884$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7885if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7887else
7888 case $MAGIC_CMD in
7889[\\/*] | ?:[\\/]*)
7890 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7891 ;;
7892*)
7893 lt_save_MAGIC_CMD="$MAGIC_CMD"
7894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896 for ac_dir in $ac_dummy; do
7897 IFS="$lt_save_ifs"
7898 test -z "$ac_dir" && ac_dir=.
7899 if test -f $ac_dir/${ac_tool_prefix}file; then
7900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7901 if test -n "$file_magic_test_file"; then
7902 case $deplibs_check_method in
7903 "file_magic "*)
7904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907 $EGREP "$file_magic_regex" > /dev/null; then
7908 :
7909 else
7910 cat <<_LT_EOF 1>&2
7911
7912*** Warning: the command libtool uses to detect shared libraries,
7913*** $file_magic_cmd, produces output that libtool cannot recognize.
7914*** The result is that libtool may fail to recognize shared libraries
7915*** as such. This will affect the creation of libtool libraries that
7916*** depend on shared libraries, but programs linked with such libtool
7917*** libraries will work regardless of this problem. Nevertheless, you
7918*** may want to report the problem to your system manager and/or to
7919*** bug-libtool@gnu.org
7920
7921_LT_EOF
7922 fi ;;
7923 esac
7924 fi
7925 break
7926 fi
7927 done
7928 IFS="$lt_save_ifs"
7929 MAGIC_CMD="$lt_save_MAGIC_CMD"
7930 ;;
7931esac
7932fi
7933
7934MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935if test -n "$MAGIC_CMD"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7937$as_echo "$MAGIC_CMD" >&6; }
7938else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940$as_echo "no" >&6; }
7941fi
7942
7943
7944
7945
7946
7947if test -z "$lt_cv_path_MAGIC_CMD"; then
7948 if test -n "$ac_tool_prefix"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7950$as_echo_n "checking for file... " >&6; }
7951if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953else
7954 case $MAGIC_CMD in
7955[\\/*] | ?:[\\/]*)
7956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7957 ;;
7958*)
7959 lt_save_MAGIC_CMD="$MAGIC_CMD"
7960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7962 for ac_dir in $ac_dummy; do
7963 IFS="$lt_save_ifs"
7964 test -z "$ac_dir" && ac_dir=.
7965 if test -f $ac_dir/file; then
7966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7967 if test -n "$file_magic_test_file"; then
7968 case $deplibs_check_method in
7969 "file_magic "*)
7970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7973 $EGREP "$file_magic_regex" > /dev/null; then
7974 :
7975 else
7976 cat <<_LT_EOF 1>&2
7977
7978*** Warning: the command libtool uses to detect shared libraries,
7979*** $file_magic_cmd, produces output that libtool cannot recognize.
7980*** The result is that libtool may fail to recognize shared libraries
7981*** as such. This will affect the creation of libtool libraries that
7982*** depend on shared libraries, but programs linked with such libtool
7983*** libraries will work regardless of this problem. Nevertheless, you
7984*** may want to report the problem to your system manager and/or to
7985*** bug-libtool@gnu.org
7986
7987_LT_EOF
7988 fi ;;
7989 esac
7990 fi
7991 break
7992 fi
7993 done
7994 IFS="$lt_save_ifs"
7995 MAGIC_CMD="$lt_save_MAGIC_CMD"
7996 ;;
7997esac
7998fi
7999
8000MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001if test -n "$MAGIC_CMD"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8003$as_echo "$MAGIC_CMD" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010 else
8011 MAGIC_CMD=:
8012 fi
8013fi
8014
8015 fi
8016 ;;
8017esac
8018
8019# Use C for the default configuration in the libtool script
8020
8021lt_save_CC="$CC"
8022ac_ext=c
8023ac_cpp='$CPP $CPPFLAGS'
8024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8026ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027
8028
8029# Source file extension for C test sources.
8030ac_ext=c
8031
8032# Object file extension for compiled C test sources.
8033objext=o
8034objext=$objext
8035
8036# Code to be used in simple compile tests
8037lt_simple_compile_test_code="int some_variable = 0;"
8038
8039# Code to be used in simple link tests
8040lt_simple_link_test_code='int main(){return(0);}'
8041
8042
8043
8044
8045
8046
8047
8048# If no C compiler was specified, use CC.
8049LTCC=${LTCC-"$CC"}
8050
8051# If no C compiler flags were specified, use CFLAGS.
8052LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8053
8054# Allow CC to be a program name with arguments.
8055compiler=$CC
8056
8057# Save the default compiler, since it gets overwritten when the other
8058# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8059compiler_DEFAULT=$CC
8060
8061# save warnings/boilerplate of simple test code
8062ac_outfile=conftest.$ac_objext
8063echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8065_lt_compiler_boilerplate=`cat conftest.err`
8066$RM conftest*
8067
8068ac_outfile=conftest.$ac_objext
8069echo "$lt_simple_link_test_code" >conftest.$ac_ext
8070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8071_lt_linker_boilerplate=`cat conftest.err`
8072$RM -r conftest*
8073
8074
8075## CAVEAT EMPTOR:
8076## There is no encapsulation within the following macros, do not change
8077## the running order or otherwise move them around unless you know exactly
8078## what you are doing...
8079if test -n "$compiler"; then
8080
8081lt_prog_compiler_no_builtin_flag=
8082
8083if test "$GCC" = yes; then
8084 case $cc_basename in
8085 nvcc*)
8086 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8087 *)
8088 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8089 esac
8090
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8092$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8093if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096 lt_cv_prog_compiler_rtti_exceptions=no
8097 ac_outfile=conftest.$ac_objext
8098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099 lt_compiler_flag="-fno-rtti -fno-exceptions"
8100 # Insert the option either (1) after the last *FLAGS variable, or
8101 # (2) before a word containing "conftest.", or (3) at the end.
8102 # Note that $ac_compile itself does not contain backslashes and begins
8103 # with a dollar sign (not a hyphen), so the echo should work correctly.
8104 # The option is referenced via a variable to avoid confusing sed.
8105 lt_compile=`echo "$ac_compile" | $SED \
8106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108 -e 's:$: $lt_compiler_flag:'`
8109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8110 (eval "$lt_compile" 2>conftest.err)
8111 ac_status=$?
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 if (exit $ac_status) && test -s "$ac_outfile"; then
8115 # The compiler can only warn and ignore the option if not recognized
8116 # So say no if there are warnings other than the usual output.
8117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8120 lt_cv_prog_compiler_rtti_exceptions=yes
8121 fi
8122 fi
8123 $RM conftest*
8124
8125fi
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8127$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8128
8129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8131else
8132 :
8133fi
8134
8135fi
8136
8137
8138
8139
8140
8141
8142 lt_prog_compiler_wl=
8143lt_prog_compiler_pic=
8144lt_prog_compiler_static=
8145
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8147$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8148
8149 if test "$GCC" = yes; then
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_static='-static'
8152
8153 case $host_os in
8154 aix*)
8155 # All AIX code is PIC.
8156 if test "$host_cpu" = ia64; then
8157 # AIX 5 now supports IA64 processor
8158 lt_prog_compiler_static='-Bstatic'
8159 fi
8160 lt_prog_compiler_pic='-fPIC'
8161 ;;
8162
8163 amigaos*)
8164 case $host_cpu in
8165 powerpc)
8166 # see comment about AmigaOS4 .so support
8167 lt_prog_compiler_pic='-fPIC'
8168 ;;
8169 m68k)
8170 # FIXME: we need at least 68020 code to build shared libraries, but
8171 # adding the `-m68020' flag to GCC prevents building anything better,
8172 # like `-m68040'.
8173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8174 ;;
8175 esac
8176 ;;
8177
8178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179 # PIC is the default for these OSes.
8180 ;;
8181
8182 mingw* | cygwin* | pw32* | os2* | cegcc*)
8183 # This hack is so that the source file can tell whether it is being
8184 # built for inclusion in a dll (and should export symbols for example).
8185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186 # (--disable-auto-import) libraries
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8188 ;;
8189
8190 darwin* | rhapsody*)
8191 # PIC is the default on this platform
8192 # Common symbols not allowed in MH_DYLIB files
8193 lt_prog_compiler_pic='-fno-common'
8194 ;;
8195
8196 haiku*)
8197 # PIC is the default for Haiku.
8198 # The "-static" flag exists, but is broken.
8199 lt_prog_compiler_static=
8200 ;;
8201
8202 hpux*)
8203 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8204 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8205 # sets the default TLS model and affects inlining.
8206 case $host_cpu in
8207 hppa*64*)
8208 # +Z the default
8209 ;;
8210 *)
8211 lt_prog_compiler_pic='-fPIC'
8212 ;;
8213 esac
8214 ;;
8215
8216 interix[3-9]*)
8217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8218 # Instead, we relocate shared libraries at runtime.
8219 ;;
8220
8221 msdosdjgpp*)
8222 # Just because we use GCC doesn't mean we suddenly get shared libraries
8223 # on systems that don't support them.
8224 lt_prog_compiler_can_build_shared=no
8225 enable_shared=no
8226 ;;
8227
8228 *nto* | *qnx*)
8229 # QNX uses GNU C++, but need to define -shared option too, otherwise
8230 # it will coredump.
8231 lt_prog_compiler_pic='-fPIC -shared'
8232 ;;
8233
8234 sysv4*MP*)
8235 if test -d /usr/nec; then
8236 lt_prog_compiler_pic=-Kconform_pic
8237 fi
8238 ;;
8239
8240 *)
8241 lt_prog_compiler_pic='-fPIC'
8242 ;;
8243 esac
8244
8245 case $cc_basename in
8246 nvcc*) # Cuda Compiler Driver 2.2
8247 lt_prog_compiler_wl='-Xlinker '
8248 lt_prog_compiler_pic='-Xcompiler -fPIC'
8249 ;;
8250 esac
8251 else
8252 # PORTME Check for flag to pass linker flags through the system compiler.
8253 case $host_os in
8254 aix*)
8255 lt_prog_compiler_wl='-Wl,'
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 else
8260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8261 fi
8262 ;;
8263
8264 mingw* | cygwin* | pw32* | os2* | cegcc*)
8265 # This hack is so that the source file can tell whether it is being
8266 # built for inclusion in a dll (and should export symbols for example).
8267 lt_prog_compiler_pic='-DDLL_EXPORT'
8268 ;;
8269
8270 hpux9* | hpux10* | hpux11*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8273 # not for PA HP-UX.
8274 case $host_cpu in
8275 hppa*64*|ia64*)
8276 # +Z the default
8277 ;;
8278 *)
8279 lt_prog_compiler_pic='+Z'
8280 ;;
8281 esac
8282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8283 lt_prog_compiler_static='${wl}-a ${wl}archive'
8284 ;;
8285
8286 irix5* | irix6* | nonstopux*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # PIC (with -KPIC) is the default.
8289 lt_prog_compiler_static='-non_shared'
8290 ;;
8291
8292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8293 case $cc_basename in
8294 # old Intel for x86_64 which still supported -KPIC.
8295 ecc*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-static'
8299 ;;
8300 # icc used to be incompatible with GCC.
8301 # ICC 10 doesn't accept -KPIC any more.
8302 icc* | ifort*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fPIC'
8305 lt_prog_compiler_static='-static'
8306 ;;
8307 # Lahey Fortran 8.1.
8308 lf95*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='--shared'
8311 lt_prog_compiler_static='--static'
8312 ;;
8313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8314 # Portland Group compilers (*not* the Pentium gcc compiler,
8315 # which looks to be a dead project)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-fpic'
8318 lt_prog_compiler_static='-Bstatic'
8319 ;;
8320 ccc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 # All Alpha code is PIC.
8323 lt_prog_compiler_static='-non_shared'
8324 ;;
8325 xl* | bgxl* | bgf* | mpixl*)
8326 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-qpic'
8329 lt_prog_compiler_static='-qstaticlink'
8330 ;;
8331 *)
8332 case `$CC -V 2>&1 | sed 5q` in
8333 *Sun\ F* | *Sun*Fortran*)
8334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl=''
8338 ;;
8339 *Sun\ C*)
8340 # Sun C 5.9
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 lt_prog_compiler_wl='-Wl,'
8344 ;;
8345 esac
8346 ;;
8347 esac
8348 ;;
8349
8350 newsos6)
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 ;;
8354
8355 *nto* | *qnx*)
8356 # QNX uses GNU C++, but need to define -shared option too, otherwise
8357 # it will coredump.
8358 lt_prog_compiler_pic='-fPIC -shared'
8359 ;;
8360
8361 osf3* | osf4* | osf5*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All OSF/1 code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8365 ;;
8366
8367 rdos*)
8368 lt_prog_compiler_static='-non_shared'
8369 ;;
8370
8371 solaris*)
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 case $cc_basename in
8375 f77* | f90* | f95*)
8376 lt_prog_compiler_wl='-Qoption ld ';;
8377 *)
8378 lt_prog_compiler_wl='-Wl,';;
8379 esac
8380 ;;
8381
8382 sunos4*)
8383 lt_prog_compiler_wl='-Qoption ld '
8384 lt_prog_compiler_pic='-PIC'
8385 lt_prog_compiler_static='-Bstatic'
8386 ;;
8387
8388 sysv4 | sysv4.2uw2* | sysv4.3*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 sysv4*MP*)
8395 if test -d /usr/nec ;then
8396 lt_prog_compiler_pic='-Kconform_pic'
8397 lt_prog_compiler_static='-Bstatic'
8398 fi
8399 ;;
8400
8401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 unicos*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_can_build_shared=no
8410 ;;
8411
8412 uts4*)
8413 lt_prog_compiler_pic='-pic'
8414 lt_prog_compiler_static='-Bstatic'
8415 ;;
8416
8417 *)
8418 lt_prog_compiler_can_build_shared=no
8419 ;;
8420 esac
8421 fi
8422
8423case $host_os in
8424 # For platforms which do not support PIC, -DPIC is meaningless:
8425 *djgpp*)
8426 lt_prog_compiler_pic=
8427 ;;
8428 *)
8429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8430 ;;
8431esac
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8433$as_echo "$lt_prog_compiler_pic" >&6; }
8434
8435
8436
8437
8438
8439
8440#
8441# Check to make sure the PIC flag actually works.
8442#
8443if test -n "$lt_prog_compiler_pic"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8446if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448else
8449 lt_cv_prog_compiler_pic_works=no
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453 # Insert the option either (1) after the last *FLAGS variable, or
8454 # (2) before a word containing "conftest.", or (3) at the end.
8455 # Note that $ac_compile itself does not contain backslashes and begins
8456 # with a dollar sign (not a hyphen), so the echo should work correctly.
8457 # The option is referenced via a variable to avoid confusing sed.
8458 lt_compile=`echo "$ac_compile" | $SED \
8459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461 -e 's:$: $lt_compiler_flag:'`
8462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8463 (eval "$lt_compile" 2>conftest.err)
8464 ac_status=$?
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 if (exit $ac_status) && test -s "$ac_outfile"; then
8468 # The compiler can only warn and ignore the option if not recognized
8469 # So say no if there are warnings other than the usual output.
8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473 lt_cv_prog_compiler_pic_works=yes
8474 fi
8475 fi
8476 $RM conftest*
8477
8478fi
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8480$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8481
8482if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8483 case $lt_prog_compiler_pic in
8484 "" | " "*) ;;
8485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8486 esac
8487else
8488 lt_prog_compiler_pic=
8489 lt_prog_compiler_can_build_shared=no
8490fi
8491
8492fi
8493
8494
8495
8496
8497
8498
8499#
8500# Check to make sure the static flag actually works.
8501#
8502wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8504$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8505if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8507else
8508 lt_cv_prog_compiler_static_works=no
8509 save_LDFLAGS="$LDFLAGS"
8510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8513 # The linker can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 if test -s conftest.err; then
8516 # Append any errors to the config.log.
8517 cat conftest.err 1>&5
8518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8520 if diff conftest.exp conftest.er2 >/dev/null; then
8521 lt_cv_prog_compiler_static_works=yes
8522 fi
8523 else
8524 lt_cv_prog_compiler_static_works=yes
8525 fi
8526 fi
8527 $RM -r conftest*
8528 LDFLAGS="$save_LDFLAGS"
8529
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8532$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8533
8534if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8535 :
8536else
8537 lt_prog_compiler_static=
8538fi
8539
8540
8541
8542
8543
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8547$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8548if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551 lt_cv_prog_compiler_c_o=no
8552 $RM -r conftest 2>/dev/null
8553 mkdir conftest
8554 cd conftest
8555 mkdir out
8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8557
8558 lt_compiler_flag="-o out/conftest2.$ac_objext"
8559 # Insert the option either (1) after the last *FLAGS variable, or
8560 # (2) before a word containing "conftest.", or (3) at the end.
8561 # Note that $ac_compile itself does not contain backslashes and begins
8562 # with a dollar sign (not a hyphen), so the echo should work correctly.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>out/conftest.err)
8569 ac_status=$?
8570 cat out/conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8573 then
8574 # The compiler can only warn and ignore the option if not recognized
8575 # So say no if there are warnings
8576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8579 lt_cv_prog_compiler_c_o=yes
8580 fi
8581 fi
8582 chmod u+w . 2>&5
8583 $RM conftest*
8584 # SGI C++ compiler will create directory out/ii_files/ for
8585 # template instantiation
8586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8587 $RM out/* && rmdir out
8588 cd ..
8589 $RM -r conftest
8590 $RM conftest*
8591
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8594$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8595
8596
8597
8598
8599
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8603if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8605else
8606 lt_cv_prog_compiler_c_o=no
8607 $RM -r conftest 2>/dev/null
8608 mkdir conftest
8609 cd conftest
8610 mkdir out
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612
8613 lt_compiler_flag="-o out/conftest2.$ac_objext"
8614 # Insert the option either (1) after the last *FLAGS variable, or
8615 # (2) before a word containing "conftest.", or (3) at the end.
8616 # Note that $ac_compile itself does not contain backslashes and begins
8617 # with a dollar sign (not a hyphen), so the echo should work correctly.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>out/conftest.err)
8624 ac_status=$?
8625 cat out/conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8628 then
8629 # The compiler can only warn and ignore the option if not recognized
8630 # So say no if there are warnings
8631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_c_o=yes
8635 fi
8636 fi
8637 chmod u+w . 2>&5
8638 $RM conftest*
8639 # SGI C++ compiler will create directory out/ii_files/ for
8640 # template instantiation
8641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8642 $RM out/* && rmdir out
8643 cd ..
8644 $RM -r conftest
8645 $RM conftest*
8646
8647fi
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8649$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8650
8651
8652
8653
8654hard_links="nottested"
8655if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8656 # do not overwrite the value of need_locks provided by the user
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8658$as_echo_n "checking if we can lock with hard links... " >&6; }
8659 hard_links=yes
8660 $RM conftest*
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 touch conftest.a
8663 ln conftest.a conftest.b 2>&5 || hard_links=no
8664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8666$as_echo "$hard_links" >&6; }
8667 if test "$hard_links" = no; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8669$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8670 need_locks=warn
8671 fi
8672else
8673 need_locks=no
8674fi
8675
8676
8677
8678
8679
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8682$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8683
8684 runpath_var=
8685 allow_undefined_flag=
8686 always_export_symbols=no
8687 archive_cmds=
8688 archive_expsym_cmds=
8689 compiler_needs_object=no
8690 enable_shared_with_static_runtimes=no
8691 export_dynamic_flag_spec=
8692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8693 hardcode_automatic=no
8694 hardcode_direct=no
8695 hardcode_direct_absolute=no
8696 hardcode_libdir_flag_spec=
8697 hardcode_libdir_flag_spec_ld=
8698 hardcode_libdir_separator=
8699 hardcode_minus_L=no
8700 hardcode_shlibpath_var=unsupported
8701 inherit_rpath=no
8702 link_all_deplibs=unknown
8703 module_cmds=
8704 module_expsym_cmds=
8705 old_archive_from_new_cmds=
8706 old_archive_from_expsyms_cmds=
8707 thread_safe_flag_spec=
8708 whole_archive_flag_spec=
8709 # include_expsyms should be a list of space-separated symbols to be *always*
8710 # included in the symbol list
8711 include_expsyms=
8712 # exclude_expsyms can be an extended regexp of symbols to exclude
8713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8715 # as well as any symbol that contains `d'.
8716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8718 # platforms (ab)use it in PIC code, but their linkers get confused if
8719 # the symbol is explicitly referenced. Since portable code cannot
8720 # rely on this symbol name, it's probably fine to never include it in
8721 # preloaded symbol tables.
8722 # Exclude shared library initialization/finalization symbols.
8723 extract_expsyms_cmds=
8724
8725 case $host_os in
8726 cygwin* | mingw* | pw32* | cegcc*)
8727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8728 # When not using gcc, we currently assume that we are using
8729 # Microsoft Visual C++.
8730 if test "$GCC" != yes; then
8731 with_gnu_ld=no
8732 fi
8733 ;;
8734 interix*)
8735 # we just hope/assume this is gcc and not c89 (= MSVC++)
8736 with_gnu_ld=yes
8737 ;;
8738 openbsd*)
8739 with_gnu_ld=no
8740 ;;
8741 esac
8742
8743 ld_shlibs=yes
8744
8745 # On some targets, GNU ld is compatible enough with the native linker
8746 # that we're better off using the native interface for both.
8747 lt_use_gnu_ld_interface=no
8748 if test "$with_gnu_ld" = yes; then
8749 case $host_os in
8750 aix*)
8751 # The AIX port of GNU ld has always aspired to compatibility
8752 # with the native linker. However, as the warning in the GNU ld
8753 # block says, versions before 2.19.5* couldn't really create working
8754 # shared libraries, regardless of the interface used.
8755 case `$LD -v 2>&1` in
8756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8759 *)
8760 lt_use_gnu_ld_interface=yes
8761 ;;
8762 esac
8763 ;;
8764 *)
8765 lt_use_gnu_ld_interface=yes
8766 ;;
8767 esac
8768 fi
8769
8770 if test "$lt_use_gnu_ld_interface" = yes; then
8771 # If archive_cmds runs LD, not CC, wlarc should be empty
8772 wlarc='${wl}'
8773
8774 # Set some defaults for GNU ld with shared library support. These
8775 # are reset later if shared libraries are not supported. Putting them
8776 # here allows them to be overridden if necessary.
8777 runpath_var=LD_RUN_PATH
8778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779 export_dynamic_flag_spec='${wl}--export-dynamic'
8780 # ancient GNU ld didn't support --whole-archive et. al.
8781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8783 else
8784 whole_archive_flag_spec=
8785 fi
8786 supports_anon_versioning=no
8787 case `$LD -v 2>&1` in
8788 *GNU\ gold*) supports_anon_versioning=yes ;;
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8792 *\ 2.11.*) ;; # other 2.11 versions
8793 *) supports_anon_versioning=yes ;;
8794 esac
8795
8796 # See if GNU ld supports shared libraries.
8797 case $host_os in
8798 aix[3-9]*)
8799 # On AIX/PPC, the GNU linker is very broken
8800 if test "$host_cpu" != ia64; then
8801 ld_shlibs=no
8802 cat <<_LT_EOF 1>&2
8803
8804*** Warning: the GNU linker, at least up to release 2.19, is reported
8805*** to be unable to reliably create shared libraries on AIX.
8806*** Therefore, libtool is disabling shared libraries support. If you
8807*** really care for shared libraries, you may want to install binutils
8808*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8809*** You will then need to restart the configuration process.
8810
8811_LT_EOF
8812 fi
8813 ;;
8814
8815 amigaos*)
8816 case $host_cpu in
8817 powerpc)
8818 # see comment about AmigaOS4 .so support
8819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820 archive_expsym_cmds=''
8821 ;;
8822 m68k)
8823 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)'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_minus_L=yes
8826 ;;
8827 esac
8828 ;;
8829
8830 beos*)
8831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8832 allow_undefined_flag=unsupported
8833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8834 # support --undefined. This deserves some investigation. FIXME
8835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 else
8837 ld_shlibs=no
8838 fi
8839 ;;
8840
8841 cygwin* | mingw* | pw32* | cegcc*)
8842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8843 # as there is no search path for DLLs.
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 export_dynamic_flag_spec='${wl}--export-all-symbols'
8846 allow_undefined_flag=unsupported
8847 always_export_symbols=no
8848 enable_shared_with_static_runtimes=yes
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8850
8851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853 # If the export-symbols file already is a .def file (1st line
8854 # is EXPORTS), use it as is; otherwise, prepend...
8855 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8856 cp $export_symbols $output_objdir/$soname.def;
8857 else
8858 echo EXPORTS > $output_objdir/$soname.def;
8859 cat $export_symbols >> $output_objdir/$soname.def;
8860 fi~
8861 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
8866
8867 haiku*)
8868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869 link_all_deplibs=yes
8870 ;;
8871
8872 interix[3-9]*)
8873 hardcode_direct=no
8874 hardcode_shlibpath_var=no
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876 export_dynamic_flag_spec='${wl}-E'
8877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8878 # Instead, shared libraries are loaded at an image base (0x10000000 by
8879 # default) and relocated if they conflict, which is a slow very memory
8880 # consuming and fragmenting process. To avoid this, we pick a random,
8881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8884 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'
8885 ;;
8886
8887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8888 tmp_diet=no
8889 if test "$host_os" = linux-dietlibc; then
8890 case $cc_basename in
8891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8892 esac
8893 fi
8894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8895 && test "$tmp_diet" = no
8896 then
735aacba 8897 tmp_addflag=' $pic_flag'
5f520819
KY
8898 tmp_sharedflag='-shared'
8899 case $cc_basename,$host_cpu in
8900 pgcc*) # Portland Group C compiler
8901 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'
8902 tmp_addflag=' $pic_flag'
8903 ;;
8904 pgf77* | pgf90* | pgf95* | pgfortran*)
8905 # Portland Group f77 and f90 compilers
8906 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'
8907 tmp_addflag=' $pic_flag -Mnomain' ;;
8908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8909 tmp_addflag=' -i_dynamic' ;;
8910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8911 tmp_addflag=' -i_dynamic -nofor_main' ;;
8912 ifc* | ifort*) # Intel Fortran compiler
8913 tmp_addflag=' -nofor_main' ;;
8914 lf95*) # Lahey Fortran 8.1
8915 whole_archive_flag_spec=
8916 tmp_sharedflag='--shared' ;;
8917 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8918 tmp_sharedflag='-qmkshrobj'
8919 tmp_addflag= ;;
8920 nvcc*) # Cuda Compiler Driver 2.2
8921 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'
8922 compiler_needs_object=yes
8923 ;;
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 fi
8941
8942 case $cc_basename in
8943 xlf* | bgf* | bgxlf* | mpixlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 fi
8955 ;;
8956 esac
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 fi
8970 ;;
8971
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8976
8977*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978*** create shared libraries on Solaris systems. Therefore, libtool
8979*** is disabling shared libraries support. We urge you to upgrade GNU
8980*** binutils to release 2.9.1 or newer. Another option is to modify
8981*** your PATH or compiler configuration so that the native linker is
8982*** used, and then restart.
8983
8984_LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8998
8999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000*** reliably create shared libraries on SCO systems. Therefore, libtool
9001*** is disabling shared libraries support. We urge you to upgrade GNU
9002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003*** your PATH or compiler configuration so that the native linker is
9004*** used, and then restart.
9005
9006_LT_EOF
9007 ;;
9008 *)
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022 ;;
9023
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 *)
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039 esac
9040
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9046 fi
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9061 fi
9062 ;;
9063
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 # Also, AIX nm treats weak defined symbols like other global
9075 # defined symbols, whereas GNU nm marks them as "W".
9076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9077 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'
9078 else
9079 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'
9080 fi
9081 aix_use_runtimelinking=no
9082
9083 # Test if we are trying to use run time linking or normal
9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085 # need to do runtime linking.
9086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9087 for ld_flag in $LDFLAGS; do
9088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9089 aix_use_runtimelinking=yes
9090 break
9091 fi
9092 done
9093 ;;
9094 esac
9095
9096 exp_sym_flag='-bexport'
9097 no_entry_flag='-bnoentry'
9098 fi
9099
9100 # When large executables or shared objects are built, AIX ld can
9101 # have problems creating the table of contents. If linking a library
9102 # or program results in "error TOC overflow" add -mminimal-toc to
9103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9105
9106 archive_cmds=''
9107 hardcode_direct=yes
9108 hardcode_direct_absolute=yes
9109 hardcode_libdir_separator=':'
9110 link_all_deplibs=yes
9111 file_list_spec='${wl}-f,'
9112
9113 if test "$GCC" = yes; then
9114 case $host_os in aix4.[012]|aix4.[012].*)
9115 # We only want to do this on AIX 4.2 and lower, the check
9116 # below for broken collect2 doesn't work under 4.3+
9117 collect2name=`${CC} -print-prog-name=collect2`
9118 if test -f "$collect2name" &&
9119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9120 then
9121 # We have reworked collect2
9122 :
9123 else
9124 # We have old collect2
9125 hardcode_direct=unsupported
9126 # It fails to find uninstalled libraries when the uninstalled
9127 # path is not listed in the libpath. Setting hardcode_minus_L
9128 # to unsupported forces relinking
9129 hardcode_minus_L=yes
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_libdir_separator=
9132 fi
9133 ;;
9134 esac
9135 shared_flag='-shared'
9136 if test "$aix_use_runtimelinking" = yes; then
9137 shared_flag="$shared_flag "'${wl}-G'
9138 fi
9139 else
9140 # not using gcc
9141 if test "$host_cpu" = ia64; then
9142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143 # chokes on -Wl,-G. The following line is correct:
9144 shared_flag='-G'
9145 else
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag='${wl}-G'
9148 else
9149 shared_flag='${wl}-bM:SRE'
9150 fi
9151 fi
9152 fi
9153
9154 export_dynamic_flag_spec='${wl}-bexpall'
9155 # It seems that -bexpall does not export symbols beginning with
9156 # underscore (_), so it is better to generate a list of symbols to export.
9157 always_export_symbols=yes
9158 if test "$aix_use_runtimelinking" = yes; then
9159 # Warning - without using the other runtime loading flags (-brtl),
9160 # -berok will link without error, but may produce a broken library.
9161 allow_undefined_flag='-berok'
9162 # Determine the default libpath from the value encoded in an
9163 # empty executable.
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h. */
9166
9167int
9168main ()
9169{
9170
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176
9177lt_aix_libpath_sed='
9178 /Import File Strings/,/^$/ {
9179 /^0/ {
9180 s/^0 *\(.*\)$/\1/
9181 p
9182 }
9183 }'
9184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185# Check for a 64-bit object if we didn't find anything.
9186if test -z "$aix_libpath"; then
9187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188fi
9189fi
9190rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9193
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 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"
9196 else
9197 if test "$host_cpu" = ia64; then
9198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9199 allow_undefined_flag="-z nodefs"
9200 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"
9201 else
9202 # Determine the default libpath from the value encoded in an
9203 # empty executable.
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h. */
9206
9207int
9208main ()
9209{
9210
9211 ;
9212 return 0;
9213}
9214_ACEOF
9215if ac_fn_c_try_link "$LINENO"; then :
9216
9217lt_aix_libpath_sed='
9218 /Import File Strings/,/^$/ {
9219 /^0/ {
9220 s/^0 *\(.*\)$/\1/
9221 p
9222 }
9223 }'
9224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225# Check for a 64-bit object if we didn't find anything.
9226if test -z "$aix_libpath"; then
9227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228fi
9229fi
9230rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9233
9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 # Warning - without using the other run time loading flags,
9236 # -berok will link without error, but may produce a broken library.
9237 no_undefined_flag=' ${wl}-bernotok'
9238 allow_undefined_flag=' ${wl}-berok'
9239 if test "$with_gnu_ld" = yes; then
9240 # We only use this code for GNU lds that support --whole-archive.
9241 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242 else
9243 # Exported symbols can be pulled into shared objects from archives
9244 whole_archive_flag_spec='$convenience'
9245 fi
9246 archive_cmds_need_lc=yes
9247 # This is similar to how AIX traditionally builds its shared libraries.
9248 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'
9249 fi
9250 fi
9251 ;;
9252
9253 amigaos*)
9254 case $host_cpu in
9255 powerpc)
9256 # see comment about AmigaOS4 .so support
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds=''
9259 ;;
9260 m68k)
9261 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)'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9264 ;;
9265 esac
9266 ;;
9267
9268 bsdi[45]*)
9269 export_dynamic_flag_spec=-rdynamic
9270 ;;
9271
9272 cygwin* | mingw* | pw32* | cegcc*)
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 # hardcode_libdir_flag_spec is actually meaningless, as there is
9276 # no search path for DLLs.
9277 hardcode_libdir_flag_spec=' '
9278 allow_undefined_flag=unsupported
9279 # Tell ltmain to make .lib files, not .a files.
9280 libext=lib
9281 # Tell ltmain to make .dll files, not .so files.
9282 shrext_cmds=".dll"
9283 # FIXME: Setting linknames here is a bad hack.
9284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9285 # The linker will automatically build a .lib file if we build a DLL.
9286 old_archive_from_new_cmds='true'
9287 # FIXME: Should let the user specify the lib program.
9288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9289 fix_srcfile_path='`cygpath -w "$srcfile"`'
9290 enable_shared_with_static_runtimes=yes
9291 ;;
9292
9293 darwin* | rhapsody*)
9294
9295
9296 archive_cmds_need_lc=no
9297 hardcode_direct=no
9298 hardcode_automatic=yes
9299 hardcode_shlibpath_var=unsupported
9300 if test "$lt_cv_ld_force_load" = "yes"; then
9301 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\"`'
9302 else
9303 whole_archive_flag_spec=''
9304 fi
9305 link_all_deplibs=yes
9306 allow_undefined_flag="$_lt_dar_allow_undefined"
9307 case $cc_basename in
9308 ifort*) _lt_dar_can_shared=yes ;;
9309 *) _lt_dar_can_shared=$GCC ;;
9310 esac
9311 if test "$_lt_dar_can_shared" = "yes"; then
9312 output_verbose_link_cmd=func_echo_all
9313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9315 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}"
9316 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}"
9317
9318 else
9319 ld_shlibs=no
9320 fi
9321
9322 ;;
9323
9324 dgux*)
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_shlibpath_var=no
9328 ;;
9329
9330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9331 # support. Future versions do this automatically, but an explicit c++rt0.o
9332 # does not break anything, and helps significantly (at the cost of a little
9333 # extra space).
9334 freebsd2.2*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
9339 ;;
9340
9341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9342 freebsd2.*)
9343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes
9345 hardcode_minus_L=yes
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9350 freebsd* | dragonfly*)
9351 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 hpux9*)
9358 if test "$GCC" = yes; then
9359 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9360 else
9361 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'
9362 fi
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9365 hardcode_direct=yes
9366
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 export_dynamic_flag_spec='${wl}-E'
9371 ;;
9372
9373 hpux10*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376 else
9377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9378 fi
9379 if test "$with_gnu_ld" = no; then
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_flag_spec_ld='+b $libdir'
9382 hardcode_libdir_separator=:
9383 hardcode_direct=yes
9384 hardcode_direct_absolute=yes
9385 export_dynamic_flag_spec='${wl}-E'
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9389 fi
9390 ;;
9391
9392 hpux11*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 case $host_cpu in
9395 hppa*64*)
9396 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 ;;
9398 ia64*)
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9400 ;;
9401 *)
9402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9403 ;;
9404 esac
9405 else
9406 case $host_cpu in
9407 hppa*64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 ;;
9410 ia64*)
9411 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412 ;;
9413 *)
9414
9415 # Older versions of the 11.00 compiler do not understand -b yet
9416 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9418$as_echo_n "checking if $CC understands -b... " >&6; }
9419if test "${lt_cv_prog_compiler__b+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421else
9422 lt_cv_prog_compiler__b=no
9423 save_LDFLAGS="$LDFLAGS"
9424 LDFLAGS="$LDFLAGS -b"
9425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9427 # The linker can only warn and ignore the option if not recognized
9428 # So say no if there are warnings
9429 if test -s conftest.err; then
9430 # Append any errors to the config.log.
9431 cat conftest.err 1>&5
9432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler__b=yes
9436 fi
9437 else
9438 lt_cv_prog_compiler__b=yes
9439 fi
9440 fi
9441 $RM -r conftest*
9442 LDFLAGS="$save_LDFLAGS"
9443
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9446$as_echo "$lt_cv_prog_compiler__b" >&6; }
9447
9448if test x"$lt_cv_prog_compiler__b" = xyes; then
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450else
9451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9452fi
9453
9454 ;;
9455 esac
9456 fi
9457 if test "$with_gnu_ld" = no; then
9458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459 hardcode_libdir_separator=:
9460
9461 case $host_cpu in
9462 hppa*64*|ia64*)
9463 hardcode_direct=no
9464 hardcode_shlibpath_var=no
9465 ;;
9466 *)
9467 hardcode_direct=yes
9468 hardcode_direct_absolute=yes
9469 export_dynamic_flag_spec='${wl}-E'
9470
9471 # hardcode_minus_L: Not really in the search PATH,
9472 # but as the default location of the library.
9473 hardcode_minus_L=yes
9474 ;;
9475 esac
9476 fi
9477 ;;
9478
9479 irix5* | irix6* | nonstopux*)
9480 if test "$GCC" = yes; then
9481 archive_cmds='$CC -shared $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'
9482 # Try to use the -exported_symbol ld option, if it does not
9483 # work, assume that -exports_file does not work either and
9484 # implicitly export all symbols.
9485 save_LDFLAGS="$LDFLAGS"
9486 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h. */
9489int foo(void) {}
9490_ACEOF
9491if ac_fn_c_try_link "$LINENO"; then :
9492 archive_expsym_cmds='$CC -shared $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'
9493
9494fi
9495rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LDFLAGS="$save_LDFLAGS"
9498 else
9499 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'
9500 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'
9501 fi
9502 archive_cmds_need_lc='no'
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 inherit_rpath=yes
9506 link_all_deplibs=yes
9507 ;;
9508
9509 netbsd*)
9510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9512 else
9513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9514 fi
9515 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9518 ;;
9519
9520 newsos6)
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 hardcode_shlibpath_var=no
9526 ;;
9527
9528 *nto* | *qnx*)
9529 ;;
9530
9531 openbsd*)
9532 if test -f /usr/libexec/ld.so; then
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9535 hardcode_direct_absolute=yes
9536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9540 export_dynamic_flag_spec='${wl}-E'
9541 else
9542 case $host_os in
9543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_libdir_flag_spec='-R$libdir'
9546 ;;
9547 *)
9548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9550 ;;
9551 esac
9552 fi
9553 else
9554 ld_shlibs=no
9555 fi
9556 ;;
9557
9558 os2*)
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_minus_L=yes
9561 allow_undefined_flag=unsupported
9562 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'
9563 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9564 ;;
9565
9566 osf3*)
9567 if test "$GCC" = yes; then
9568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9569 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'
9570 else
9571 allow_undefined_flag=' -expect_unresolved \*'
9572 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'
9573 fi
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577 ;;
9578
9579 osf4* | osf5*) # as osf3* with the addition of -msym flag
9580 if test "$GCC" = yes; then
9581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9582 archive_cmds='$CC -shared${allow_undefined_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'
9583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 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~
9588 $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'
9589
9590 # Both c and cxx compiler support -rpath directly
9591 hardcode_libdir_flag_spec='-rpath $libdir'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_separator=:
9595 ;;
9596
9597 solaris*)
9598 no_undefined_flag=' -z defs'
9599 if test "$GCC" = yes; then
9600 wlarc='${wl}'
9601 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9604 else
9605 case `$CC -V 2>&1` in
9606 *"Compilers 5.0"*)
9607 wlarc=''
9608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9611 ;;
9612 *)
9613 wlarc='${wl}'
9614 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9617 ;;
9618 esac
9619 fi
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 hardcode_shlibpath_var=no
9622 case $host_os in
9623 solaris2.[0-5] | solaris2.[0-5].*) ;;
9624 *)
9625 # The compiler driver will combine and reorder linker options,
9626 # but understands `-z linker_flag'. GCC discards it without `$wl',
9627 # but is careful enough not to reorder.
9628 # Supported since Solaris 2.6 (maybe 2.5.1?)
9629 if test "$GCC" = yes; then
9630 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9631 else
9632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9633 fi
9634 ;;
9635 esac
9636 link_all_deplibs=yes
9637 ;;
9638
9639 sunos4*)
9640 if test "x$host_vendor" = xsequent; then
9641 # Use $CC to link under sequent, because it throws in some extra .o
9642 # files that make .init and .fini sections work.
9643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9644 else
9645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9646 fi
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_direct=yes
9649 hardcode_minus_L=yes
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 sysv4)
9654 case $host_vendor in
9655 sni)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes # is this really true???
9658 ;;
9659 siemens)
9660 ## LD is ld it makes a PLAMLIB
9661 ## CC just makes a GrossModule.
9662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9663 reload_cmds='$CC -r -o $output$reload_objs'
9664 hardcode_direct=no
9665 ;;
9666 motorola)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9669 ;;
9670 esac
9671 runpath_var='LD_RUN_PATH'
9672 hardcode_shlibpath_var=no
9673 ;;
9674
9675 sysv4.3*)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var=no
9678 export_dynamic_flag_spec='-Bexport'
9679 ;;
9680
9681 sysv4*MP*)
9682 if test -d /usr/nec; then
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var=no
9685 runpath_var=LD_RUN_PATH
9686 hardcode_runpath_var=yes
9687 ld_shlibs=yes
9688 fi
9689 ;;
9690
9691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9692 no_undefined_flag='${wl}-z,text'
9693 archive_cmds_need_lc=no
9694 hardcode_shlibpath_var=no
9695 runpath_var='LD_RUN_PATH'
9696
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 fi
9704 ;;
9705
9706 sysv5* | sco3.2v5* | sco5v6*)
9707 # Note: We can NOT use -z defs as we might desire, because we do not
9708 # link with -lc, and that would cause any symbols used from libc to
9709 # always be unresolved, which means just about no library would
9710 # ever link correctly. If we're not using GNU ld we use -z text
9711 # though, which does catch some bad symbols but isn't as heavy-handed
9712 # as -z defs.
9713 no_undefined_flag='${wl}-z,text'
9714 allow_undefined_flag='${wl}-z,nodefs'
9715 archive_cmds_need_lc=no
9716 hardcode_shlibpath_var=no
9717 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9718 hardcode_libdir_separator=':'
9719 link_all_deplibs=yes
9720 export_dynamic_flag_spec='${wl}-Bexport'
9721 runpath_var='LD_RUN_PATH'
9722
9723 if test "$GCC" = yes; then
9724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 fi
9730 ;;
9731
9732 uts4*)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 *)
9739 ld_shlibs=no
9740 ;;
9741 esac
9742
9743 if test x$host_vendor = xsni; then
9744 case $host in
9745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9746 export_dynamic_flag_spec='${wl}-Blargedynsym'
9747 ;;
9748 esac
9749 fi
9750 fi
9751
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9753$as_echo "$ld_shlibs" >&6; }
9754test "$ld_shlibs" = no && can_build_shared=no
9755
9756with_gnu_ld=$with_gnu_ld
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772#
9773# Do we need to explicitly link libc?
9774#
9775case "x$archive_cmds_need_lc" in
9776x|xyes)
9777 # Assume -lc should be added
9778 archive_cmds_need_lc=yes
9779
9780 if test "$enable_shared" = yes && test "$GCC" = yes; then
9781 case $archive_cmds in
9782 *'~'*)
9783 # FIXME: we may have to deal with multi-command sequences.
9784 ;;
9785 '$CC '*)
9786 # Test whether the compiler implicitly links with -lc since on some
9787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9788 # to ld, don't add -lc before -lgcc.
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9790$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9791if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793else
9794 $RM conftest*
9795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9796
9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9798 (eval $ac_compile) 2>&5
9799 ac_status=$?
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; } 2>conftest.err; then
9802 soname=conftest
9803 lib=conftest
9804 libobjs=conftest.$ac_objext
9805 deplibs=
9806 wl=$lt_prog_compiler_wl
9807 pic_flag=$lt_prog_compiler_pic
9808 compiler_flags=-v
9809 linker_flags=-v
9810 verstring=
9811 output_objdir=.
9812 libname=conftest
9813 lt_save_allow_undefined_flag=$allow_undefined_flag
9814 allow_undefined_flag=
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9816 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9817 ac_status=$?
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; }
9820 then
9821 lt_cv_archive_cmds_need_lc=no
9822 else
9823 lt_cv_archive_cmds_need_lc=yes
9824 fi
9825 allow_undefined_flag=$lt_save_allow_undefined_flag
9826 else
9827 cat conftest.err 1>&5
9828 fi
9829 $RM conftest*
9830
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9833$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9834 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9835 ;;
9836 esac
9837 fi
9838 ;;
9839esac
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
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9998$as_echo_n "checking dynamic linker characteristics... " >&6; }
9999
10000if test "$GCC" = yes; then
10001 case $host_os in
10002 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10003 *) lt_awk_arg="/^libraries:/" ;;
10004 esac
10005 case $host_os in
10006 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10007 *) lt_sed_strip_eq="s,=/,/,g" ;;
10008 esac
10009 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10010 case $lt_search_path_spec in
10011 *\;*)
10012 # if the path contains ";" then we assume it to be the separator
10013 # otherwise default to the standard path separator (i.e. ":") - it is
10014 # assumed that no part of a normal pathname contains ";" but that should
10015 # okay in the real world where ";" in dirpaths is itself problematic.
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10017 ;;
10018 *)
10019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10020 ;;
10021 esac
10022 # Ok, now we have the path, separated by spaces, we can step through it
10023 # and add multilib dir if necessary.
10024 lt_tmp_lt_search_path_spec=
10025 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10026 for lt_sys_path in $lt_search_path_spec; do
10027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10029 else
10030 test -d "$lt_sys_path" && \
10031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10032 fi
10033 done
10034 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10035BEGIN {RS=" "; FS="/|\n";} {
10036 lt_foo="";
10037 lt_count=0;
10038 for (lt_i = NF; lt_i > 0; lt_i--) {
10039 if ($lt_i != "" && $lt_i != ".") {
10040 if ($lt_i == "..") {
10041 lt_count++;
10042 } else {
10043 if (lt_count == 0) {
10044 lt_foo="/" $lt_i lt_foo;
10045 } else {
10046 lt_count--;
10047 }
10048 }
10049 }
10050 }
10051 if (lt_foo != "") { lt_freq[lt_foo]++; }
10052 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10053}'`
10054 # AWK program above erroneously prepends '/' to C:/dos/paths
10055 # for these hosts.
10056 case $host_os in
10057 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10058 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10059 esac
10060 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10061else
10062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10063fi
10064library_names_spec=
10065libname_spec='lib$name'
10066soname_spec=
10067shrext_cmds=".so"
10068postinstall_cmds=
10069postuninstall_cmds=
10070finish_cmds=
10071finish_eval=
10072shlibpath_var=
10073shlibpath_overrides_runpath=unknown
10074version_type=none
10075dynamic_linker="$host_os ld.so"
10076sys_lib_dlsearch_path_spec="/lib /usr/lib"
10077need_lib_prefix=unknown
10078hardcode_into_libs=no
10079
10080# when you set need_version to no, make sure it does not cause -set_version
10081# flags to be left without arguments
10082need_version=unknown
10083
10084case $host_os in
10085aix3*)
10086 version_type=linux
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10088 shlibpath_var=LIBPATH
10089
10090 # AIX 3 has no versioning support, so we append a major version to the name.
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 ;;
10093
10094aix[4-9]*)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 hardcode_into_libs=yes
10099 if test "$host_cpu" = ia64; then
10100 # AIX 5 supports IA64
10101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 else
10104 # With GCC up to 2.95.x, collect2 would create an import file
10105 # for dependence libraries. The import file would start with
10106 # the line `#! .'. This would cause the generated library to
10107 # depend on `.', always an invalid library. This was fixed in
10108 # development snapshots of GCC prior to 3.0.
10109 case $host_os in
10110 aix4 | aix4.[01] | aix4.[01].*)
10111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10112 echo ' yes '
10113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10114 :
10115 else
10116 can_build_shared=no
10117 fi
10118 ;;
10119 esac
10120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10121 # soname into executable. Probably we can add versioning support to
10122 # collect2, so additional links can be useful in future.
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10125 # instead of lib<name>.a to let people know that these are not
10126 # typical AIX shared libraries.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 else
10129 # We preserve .a as extension for shared libraries through AIX4.2
10130 # and later when we are not doing run time linking.
10131 library_names_spec='${libname}${release}.a $libname.a'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 fi
10134 shlibpath_var=LIBPATH
10135 fi
10136 ;;
10137
10138amigaos*)
10139 case $host_cpu in
10140 powerpc)
10141 # Since July 2007 AmigaOS4 officially supports .so libraries.
10142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 ;;
10145 m68k)
10146 library_names_spec='$libname.ixlibrary $libname.a'
10147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10148 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'
10149 ;;
10150 esac
10151 ;;
10152
10153beos*)
10154 library_names_spec='${libname}${shared_ext}'
10155 dynamic_linker="$host_os ld.so"
10156 shlibpath_var=LIBRARY_PATH
10157 ;;
10158
10159bsdi[45]*)
10160 version_type=linux
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10168 # the default ld.so.conf also contains /usr/contrib/lib and
10169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10170 # libtool to hard-code these into programs
10171 ;;
10172
10173cygwin* | mingw* | pw32* | cegcc*)
10174 version_type=windows
10175 shrext_cmds=".dll"
10176 need_version=no
10177 need_lib_prefix=no
10178
10179 case $GCC,$host_os in
10180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10181 library_names_spec='$libname.dll.a'
10182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10183 postinstall_cmds='base_file=`basename \${file}`~
10184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10185 dldir=$destdir/`dirname \$dlpath`~
10186 test -d \$dldir || mkdir -p \$dldir~
10187 $install_prog $dir/$dlname \$dldir/$dlname~
10188 chmod a+x \$dldir/$dlname~
10189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10191 fi'
10192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10193 dlpath=$dir/\$dldll~
10194 $RM \$dlpath'
10195 shlibpath_overrides_runpath=yes
10196
10197 case $host_os in
10198 cygwin*)
10199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10203 ;;
10204 mingw* | cegcc*)
10205 # MinGW DLLs use traditional 'lib' prefix
10206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 ;;
10208 pw32*)
10209 # pw32 DLLs use 'pw' prefix rather than 'lib'
10210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 ;;
10212 esac
10213 ;;
10214
10215 *)
10216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10217 ;;
10218 esac
10219 dynamic_linker='Win32 ld.exe'
10220 # FIXME: first we should search . and the directory the executable is in
10221 shlibpath_var=PATH
10222 ;;
10223
10224darwin* | rhapsody*)
10225 dynamic_linker="$host_os dyld"
10226 version_type=darwin
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230 soname_spec='${libname}${release}${major}$shared_ext'
10231 shlibpath_overrides_runpath=yes
10232 shlibpath_var=DYLD_LIBRARY_PATH
10233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10234
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237 ;;
10238
10239dgux*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 ;;
10247
10248freebsd* | dragonfly*)
10249 # DragonFly does not have aout. When/if they implement a new
10250 # versioning mechanism, adjust this.
10251 if test -x /usr/bin/objformat; then
10252 objformat=`/usr/bin/objformat`
10253 else
10254 case $host_os in
10255 freebsd[23].*) objformat=aout ;;
10256 *) objformat=elf ;;
10257 esac
10258 fi
10259 version_type=freebsd-$objformat
10260 case $version_type in
10261 freebsd-elf*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 need_version=no
10264 need_lib_prefix=no
10265 ;;
10266 freebsd-*)
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268 need_version=yes
10269 ;;
10270 esac
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_os in
10273 freebsd2.*)
10274 shlibpath_overrides_runpath=yes
10275 ;;
10276 freebsd3.[01]* | freebsdelf3.[01]*)
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10279 ;;
10280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10284 ;;
10285 *) # from 4.6 on, and DragonFly
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 ;;
10289 esac
10290 ;;
10291
10292gnu*)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 hardcode_into_libs=yes
10300 ;;
10301
10302haiku*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 dynamic_linker="$host_os runtime_loader"
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10312 hardcode_into_libs=yes
10313 ;;
10314
10315hpux9* | hpux10* | hpux11*)
10316 # Give a soname corresponding to the major version so that dld.sl refuses to
10317 # link against other versions.
10318 version_type=sunos
10319 need_lib_prefix=no
10320 need_version=no
10321 case $host_cpu in
10322 ia64*)
10323 shrext_cmds='.so'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.so"
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
10331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10332 else
10333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10334 fi
10335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336 ;;
10337 hppa*64*)
10338 shrext_cmds='.sl'
10339 hardcode_into_libs=yes
10340 dynamic_linker="$host_os dld.sl"
10341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347 ;;
10348 *)
10349 shrext_cmds='.sl'
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=SHLIB_PATH
10352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 ;;
10356 esac
10357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10358 postinstall_cmds='chmod 555 $lib'
10359 # or fails outright, so override atomically:
10360 install_override_mode=555
10361 ;;
10362
10363interix[3-9]*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10373 ;;
10374
10375irix5* | irix6* | nonstopux*)
10376 case $host_os in
10377 nonstopux*) version_type=nonstopux ;;
10378 *)
10379 if test "$lt_cv_prog_gnu_ld" = yes; then
10380 version_type=linux
10381 else
10382 version_type=irix
10383 fi ;;
10384 esac
10385 need_lib_prefix=no
10386 need_version=no
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10389 case $host_os in
10390 irix5* | nonstopux*)
10391 libsuff= shlibsuff=
10392 ;;
10393 *)
10394 case $LD in # libtool.m4 will add one of these switches to LD
10395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10396 libsuff= shlibsuff= libmagic=32-bit;;
10397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10398 libsuff=32 shlibsuff=N32 libmagic=N32;;
10399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10401 *) libsuff= shlibsuff= libmagic=never-match;;
10402 esac
10403 ;;
10404 esac
10405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10406 shlibpath_overrides_runpath=no
10407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10409 hardcode_into_libs=yes
10410 ;;
10411
10412# No shared lib support for Linux oldld, aout, or coff.
10413linux*oldld* | linux*aout* | linux*coff*)
10414 dynamic_linker=no
10415 ;;
10416
10417# This must be Linux ELF.
10418linux* | k*bsd*-gnu | kopensolaris*-gnu)
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=no
10427
10428 # Some binutils ld are patched to set DT_RUNPATH
10429 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431else
10432 lt_cv_shlibpath_overrides_runpath=no
10433 save_LDFLAGS=$LDFLAGS
10434 save_libdir=$libdir
10435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h. */
10439
10440int
10441main ()
10442{
10443
10444 ;
10445 return 0;
10446}
10447_ACEOF
10448if ac_fn_c_try_link "$LINENO"; then :
10449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10450 lt_cv_shlibpath_overrides_runpath=yes
10451fi
10452fi
10453rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LDFLAGS=$save_LDFLAGS
10456 libdir=$save_libdir
10457
10458fi
10459
10460 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10461
10462 # This implies no fast_install, which is unacceptable.
10463 # Some rework will be needed to allow for fast_install
10464 # before this can be enabled.
10465 hardcode_into_libs=yes
10466
10467 # Append ld.so.conf contents to the search path
10468 if test -f /etc/ld.so.conf; then
10469 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' ' '`
10470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10471 fi
10472
10473 # We used to test for /lib/ld.so.1 and disable shared libraries on
10474 # powerpc, because MkLinux only supported shared libraries with the
10475 # GNU dynamic linker. Since this was broken with cross compilers,
10476 # most powerpc-linux boxes support dynamic linking these days and
10477 # people can always --disable-shared, the test was removed, and we
10478 # assume the GNU/Linux dynamic linker is in use.
10479 dynamic_linker='GNU/Linux ld.so'
10480 ;;
10481
10482netbsd*)
10483 version_type=sunos
10484 need_lib_prefix=no
10485 need_version=no
10486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 dynamic_linker='NetBSD (a.out) ld.so'
10490 else
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 dynamic_linker='NetBSD ld.elf_so'
10494 fi
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 ;;
10499
10500newsos6)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes
10505 ;;
10506
10507*nto* | *qnx*)
10508 version_type=qnx
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 dynamic_linker='ldqnx.so'
10517 ;;
10518
10519openbsd*)
10520 version_type=sunos
10521 sys_lib_dlsearch_path_spec="/usr/lib"
10522 need_lib_prefix=no
10523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524 case $host_os in
10525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10526 *) need_version=no ;;
10527 esac
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532 case $host_os in
10533 openbsd2.[89] | openbsd2.[89].*)
10534 shlibpath_overrides_runpath=no
10535 ;;
10536 *)
10537 shlibpath_overrides_runpath=yes
10538 ;;
10539 esac
10540 else
10541 shlibpath_overrides_runpath=yes
10542 fi
10543 ;;
10544
10545os2*)
10546 libname_spec='$name'
10547 shrext_cmds=".dll"
10548 need_lib_prefix=no
10549 library_names_spec='$libname${shared_ext} $libname.a'
10550 dynamic_linker='OS/2 ld.exe'
10551 shlibpath_var=LIBPATH
10552 ;;
10553
10554osf3* | osf4* | osf5*)
10555 version_type=osf
10556 need_lib_prefix=no
10557 need_version=no
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10563 ;;
10564
10565rdos*)
10566 dynamic_linker=no
10567 ;;
10568
10569solaris*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 # ldd complains unless libraries are executable
10579 postinstall_cmds='chmod +x $lib'
10580 ;;
10581
10582sunos4*)
10583 version_type=sunos
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 if test "$with_gnu_ld" = yes; then
10589 need_lib_prefix=no
10590 fi
10591 need_version=yes
10592 ;;
10593
10594sysv4 | sysv4.3*)
10595 version_type=linux
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 case $host_vendor in
10600 sni)
10601 shlibpath_overrides_runpath=no
10602 need_lib_prefix=no
10603 runpath_var=LD_RUN_PATH
10604 ;;
10605 siemens)
10606 need_lib_prefix=no
10607 ;;
10608 motorola)
10609 need_lib_prefix=no
10610 need_version=no
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10613 ;;
10614 esac
10615 ;;
10616
10617sysv4*MP*)
10618 if test -d /usr/nec ;then
10619 version_type=linux
10620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621 soname_spec='$libname${shared_ext}.$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 fi
10624 ;;
10625
10626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627 version_type=freebsd-elf
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 if test "$with_gnu_ld" = yes; then
10636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10637 else
10638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10639 case $host_os in
10640 sco3.2v5*)
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642 ;;
10643 esac
10644 fi
10645 sys_lib_dlsearch_path_spec='/usr/lib'
10646 ;;
10647
10648tpf*)
10649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 ;;
10658
10659uts4*)
10660 version_type=linux
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 ;;
10665
10666*)
10667 dynamic_linker=no
10668 ;;
10669esac
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10671$as_echo "$dynamic_linker" >&6; }
10672test "$dynamic_linker" = no && can_build_shared=no
10673
10674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675if test "$GCC" = yes; then
10676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677fi
10678
10679if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10681fi
10682if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10684fi
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10778$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779hardcode_action=
10780if test -n "$hardcode_libdir_flag_spec" ||
10781 test -n "$runpath_var" ||
10782 test "X$hardcode_automatic" = "Xyes" ; then
10783
10784 # We can hardcode non-existent directories.
10785 if test "$hardcode_direct" != no &&
10786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787 # have to relink, otherwise we might link with an installed library
10788 # when we should be linking with a yet-to-be-installed one
10789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790 test "$hardcode_minus_L" != no; then
10791 # Linking always hardcodes the temporary library directory.
10792 hardcode_action=relink
10793 else
10794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795 hardcode_action=immediate
10796 fi
10797else
10798 # We cannot hardcode anything, or else we can only hardcode existing
10799 # directories.
10800 hardcode_action=unsupported
10801fi
10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10803$as_echo "$hardcode_action" >&6; }
10804
10805if test "$hardcode_action" = relink ||
10806 test "$inherit_rpath" = yes; then
10807 # Fast installation is not supported
10808 enable_fast_install=no
10809elif test "$shlibpath_overrides_runpath" = yes ||
10810 test "$enable_shared" = no; then
10811 # Fast installation is not necessary
10812 enable_fast_install=needless
10813fi
10814
10815
10816
10817
10818
10819
10820 if test "x$enable_dlopen" != xyes; then
10821 enable_dlopen=unknown
10822 enable_dlopen_self=unknown
10823 enable_dlopen_self_static=unknown
10824else
10825 lt_cv_dlopen=no
10826 lt_cv_dlopen_libs=
10827
10828 case $host_os in
10829 beos*)
10830 lt_cv_dlopen="load_add_on"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
10833 ;;
10834
10835 mingw* | pw32* | cegcc*)
10836 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen_libs=
10838 ;;
10839
10840 cygwin*)
10841 lt_cv_dlopen="dlopen"
10842 lt_cv_dlopen_libs=
10843 ;;
10844
10845 darwin*)
10846 # if libdl is installed we need to link against it
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10848$as_echo_n "checking for dlopen in -ldl... " >&6; }
10849if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851else
10852 ac_check_lib_save_LIBS=$LIBS
10853LIBS="-ldl $LIBS"
10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855/* end confdefs.h. */
10856
10857/* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863char dlopen ();
10864int
10865main ()
10866{
10867return dlopen ();
10868 ;
10869 return 0;
10870}
10871_ACEOF
10872if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_dl_dlopen=yes
10874else
10875 ac_cv_lib_dl_dlopen=no
10876fi
10877rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879LIBS=$ac_check_lib_save_LIBS
10880fi
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10882$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10883if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10885else
10886
10887 lt_cv_dlopen="dyld"
10888 lt_cv_dlopen_libs=
10889 lt_cv_dlopen_self=yes
10890
10891fi
10892
10893 ;;
10894
10895 *)
10896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897if test "x$ac_cv_func_shl_load" = x""yes; then :
10898 lt_cv_dlopen="shl_load"
10899else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10901$as_echo_n "checking for shl_load in -ldld... " >&6; }
10902if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904else
10905 ac_check_lib_save_LIBS=$LIBS
10906LIBS="-ldld $LIBS"
10907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h. */
10909
10910/* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913#ifdef __cplusplus
10914extern "C"
10915#endif
10916char shl_load ();
10917int
10918main ()
10919{
10920return shl_load ();
10921 ;
10922 return 0;
10923}
10924_ACEOF
10925if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dld_shl_load=yes
10927else
10928 ac_cv_lib_dld_shl_load=no
10929fi
10930rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932LIBS=$ac_check_lib_save_LIBS
10933fi
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10935$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10936if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938else
10939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940if test "x$ac_cv_func_dlopen" = x""yes; then :
10941 lt_cv_dlopen="dlopen"
10942else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944$as_echo_n "checking for dlopen in -ldl... " >&6; }
10945if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947else
10948 ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldl $LIBS"
10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951/* end confdefs.h. */
10952
10953/* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956#ifdef __cplusplus
10957extern "C"
10958#endif
10959char dlopen ();
10960int
10961main ()
10962{
10963return dlopen ();
10964 ;
10965 return 0;
10966}
10967_ACEOF
10968if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970else
10971 ac_cv_lib_dl_dlopen=no
10972fi
10973rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975LIBS=$ac_check_lib_save_LIBS
10976fi
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10983$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10984if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986else
10987 ac_check_lib_save_LIBS=$LIBS
10988LIBS="-lsvld $LIBS"
10989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990/* end confdefs.h. */
10991
10992/* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char dlopen ();
10999int
11000main ()
11001{
11002return dlopen ();
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_svld_dlopen=yes
11009else
11010 ac_cv_lib_svld_dlopen=no
11011fi
11012rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014LIBS=$ac_check_lib_save_LIBS
11015fi
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11017$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11018if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11022$as_echo_n "checking for dld_link in -ldld... " >&6; }
11023if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025else
11026 ac_check_lib_save_LIBS=$LIBS
11027LIBS="-ldld $LIBS"
11028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h. */
11030
11031/* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034#ifdef __cplusplus
11035extern "C"
11036#endif
11037char dld_link ();
11038int
11039main ()
11040{
11041return dld_link ();
11042 ;
11043 return 0;
11044}
11045_ACEOF
11046if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_dld_link=yes
11048else
11049 ac_cv_lib_dld_dld_link=no
11050fi
11051rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053LIBS=$ac_check_lib_save_LIBS
11054fi
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11056$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11057if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11059fi
11060
11061
11062fi
11063
11064
11065fi
11066
11067
11068fi
11069
11070
11071fi
11072
11073
11074fi
11075
11076 ;;
11077 esac
11078
11079 if test "x$lt_cv_dlopen" != xno; then
11080 enable_dlopen=yes
11081 else
11082 enable_dlopen=no
11083 fi
11084
11085 case $lt_cv_dlopen in
11086 dlopen)
11087 save_CPPFLAGS="$CPPFLAGS"
11088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11089
11090 save_LDFLAGS="$LDFLAGS"
11091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11092
11093 save_LIBS="$LIBS"
11094 LIBS="$lt_cv_dlopen_libs $LIBS"
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11097$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11098if test "${lt_cv_dlopen_self+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100else
11101 if test "$cross_compiling" = yes; then :
11102 lt_cv_dlopen_self=cross
11103else
11104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105 lt_status=$lt_dlunknown
11106 cat > conftest.$ac_ext <<_LT_EOF
735aacba 11107#line 11107 "configure"
5f520819
KY
11108#include "confdefs.h"
11109
11110#if HAVE_DLFCN_H
11111#include <dlfcn.h>
11112#endif
11113
11114#include <stdio.h>
11115
11116#ifdef RTLD_GLOBAL
11117# define LT_DLGLOBAL RTLD_GLOBAL
11118#else
11119# ifdef DL_GLOBAL
11120# define LT_DLGLOBAL DL_GLOBAL
11121# else
11122# define LT_DLGLOBAL 0
11123# endif
11124#endif
11125
11126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127 find out it does not work in some platform. */
11128#ifndef LT_DLLAZY_OR_NOW
11129# ifdef RTLD_LAZY
11130# define LT_DLLAZY_OR_NOW RTLD_LAZY
11131# else
11132# ifdef DL_LAZY
11133# define LT_DLLAZY_OR_NOW DL_LAZY
11134# else
11135# ifdef RTLD_NOW
11136# define LT_DLLAZY_OR_NOW RTLD_NOW
11137# else
11138# ifdef DL_NOW
11139# define LT_DLLAZY_OR_NOW DL_NOW
11140# else
11141# define LT_DLLAZY_OR_NOW 0
11142# endif
11143# endif
11144# endif
11145# endif
11146#endif
11147
11148/* When -fvisbility=hidden is used, assume the code has been annotated
11149 correspondingly for the symbols needed. */
11150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151void fnord () __attribute__((visibility("default")));
11152#endif
11153
11154void fnord () { int i=42; }
11155int main ()
11156{
11157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158 int status = $lt_dlunknown;
11159
11160 if (self)
11161 {
11162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11163 else
11164 {
11165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 else puts (dlerror ());
11167 }
11168 /* dlclose (self); */
11169 }
11170 else
11171 puts (dlerror ());
11172
11173 return status;
11174}
11175_LT_EOF
11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11181 (./conftest; exit; ) >&5 2>/dev/null
11182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187 esac
11188 else :
11189 # compilation failed
11190 lt_cv_dlopen_self=no
11191 fi
11192fi
11193rm -fr conftest*
11194
11195
11196fi
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11198$as_echo "$lt_cv_dlopen_self" >&6; }
11199
11200 if test "x$lt_cv_dlopen_self" = xyes; then
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11203$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11204if test "${lt_cv_dlopen_self_static+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206else
11207 if test "$cross_compiling" = yes; then :
11208 lt_cv_dlopen_self_static=cross
11209else
11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211 lt_status=$lt_dlunknown
11212 cat > conftest.$ac_ext <<_LT_EOF
735aacba 11213#line 11213 "configure"
5f520819
KY
11214#include "confdefs.h"
11215
11216#if HAVE_DLFCN_H
11217#include <dlfcn.h>
11218#endif
11219
11220#include <stdio.h>
11221
11222#ifdef RTLD_GLOBAL
11223# define LT_DLGLOBAL RTLD_GLOBAL
11224#else
11225# ifdef DL_GLOBAL
11226# define LT_DLGLOBAL DL_GLOBAL
11227# else
11228# define LT_DLGLOBAL 0
11229# endif
11230#endif
11231
11232/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233 find out it does not work in some platform. */
11234#ifndef LT_DLLAZY_OR_NOW
11235# ifdef RTLD_LAZY
11236# define LT_DLLAZY_OR_NOW RTLD_LAZY
11237# else
11238# ifdef DL_LAZY
11239# define LT_DLLAZY_OR_NOW DL_LAZY
11240# else
11241# ifdef RTLD_NOW
11242# define LT_DLLAZY_OR_NOW RTLD_NOW
11243# else
11244# ifdef DL_NOW
11245# define LT_DLLAZY_OR_NOW DL_NOW
11246# else
11247# define LT_DLLAZY_OR_NOW 0
11248# endif
11249# endif
11250# endif
11251# endif
11252#endif
11253
11254/* When -fvisbility=hidden is used, assume the code has been annotated
11255 correspondingly for the symbols needed. */
11256#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257void fnord () __attribute__((visibility("default")));
11258#endif
11259
11260void fnord () { int i=42; }
11261int main ()
11262{
11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264 int status = $lt_dlunknown;
11265
11266 if (self)
11267 {
11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11269 else
11270 {
11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11272 else puts (dlerror ());
11273 }
11274 /* dlclose (self); */
11275 }
11276 else
11277 puts (dlerror ());
11278
11279 return status;
11280}
11281_LT_EOF
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11283 (eval $ac_link) 2>&5
11284 ac_status=$?
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11287 (./conftest; exit; ) >&5 2>/dev/null
11288 lt_status=$?
11289 case x$lt_status in
11290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293 esac
11294 else :
11295 # compilation failed
11296 lt_cv_dlopen_self_static=no
11297 fi
11298fi
11299rm -fr conftest*
11300
11301
11302fi
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11304$as_echo "$lt_cv_dlopen_self_static" >&6; }
11305 fi
11306
11307 CPPFLAGS="$save_CPPFLAGS"
11308 LDFLAGS="$save_LDFLAGS"
11309 LIBS="$save_LIBS"
11310 ;;
11311 esac
11312
11313 case $lt_cv_dlopen_self in
11314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315 *) enable_dlopen_self=unknown ;;
11316 esac
11317
11318 case $lt_cv_dlopen_self_static in
11319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320 *) enable_dlopen_self_static=unknown ;;
11321 esac
11322fi
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340striplib=
11341old_striplib=
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11343$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348$as_echo "yes" >&6; }
11349else
11350# FIXME - insert some real tests, host_os isn't really good enough
11351 case $host_os in
11352 darwin*)
11353 if test -n "$STRIP" ; then
11354 striplib="$STRIP -x"
11355 old_striplib="$STRIP -S"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357$as_echo "yes" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360$as_echo "no" >&6; }
11361 fi
11362 ;;
11363 *)
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
11366 ;;
11367 esac
11368fi
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 # Report which library types will actually be built
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11383$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11385$as_echo "$can_build_shared" >&6; }
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11388$as_echo_n "checking whether to build shared libraries... " >&6; }
11389 test "$can_build_shared" = "no" && enable_shared=no
11390
11391 # On AIX, shared libraries and static libraries use the same namespace, and
11392 # are all built from PIC.
11393 case $host_os in
11394 aix3*)
11395 test "$enable_shared" = yes && enable_static=no
11396 if test -n "$RANLIB"; then
11397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398 postinstall_cmds='$RANLIB $lib'
11399 fi
11400 ;;
11401
11402 aix[4-9]*)
11403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404 test "$enable_shared" = yes && enable_static=no
11405 fi
11406 ;;
11407 esac
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11409$as_echo "$enable_shared" >&6; }
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11412$as_echo_n "checking whether to build static libraries... " >&6; }
11413 # Make sure either enable_shared or enable_static is yes.
11414 test "$enable_shared" = yes || enable_static=yes
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11416$as_echo "$enable_static" >&6; }
11417
11418
11419
11420
11421fi
11422ac_ext=c
11423ac_cpp='$CPP $CPPFLAGS'
11424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428CC="$lt_save_CC"
11429
11430 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11431 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11432 (test "X$CXX" != "Xg++"))) ; then
11433 ac_ext=cpp
11434ac_cpp='$CXXCPP $CPPFLAGS'
11435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11439$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11440if test -z "$CXXCPP"; then
11441 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11442 $as_echo_n "(cached) " >&6
11443else
11444 # Double quotes because CXXCPP needs to be expanded
11445 for CXXCPP in "$CXX -E" "/lib/cpp"
11446 do
11447 ac_preproc_ok=false
11448for ac_cxx_preproc_warn_flag in '' yes
11449do
11450 # Use a header file that comes with gcc, so configuring glibc
11451 # with a fresh cross-compiler works.
11452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11453 # <limits.h> exists even on freestanding compilers.
11454 # On the NeXT, cc -E runs the code through the compiler's parser,
11455 # not just through cpp. "Syntax error" is here to catch this case.
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457/* end confdefs.h. */
11458#ifdef __STDC__
11459# include <limits.h>
11460#else
11461# include <assert.h>
11462#endif
11463 Syntax error
11464_ACEOF
11465if ac_fn_cxx_try_cpp "$LINENO"; then :
11466
11467else
11468 # Broken: fails on valid input.
11469continue
11470fi
11471rm -f conftest.err conftest.$ac_ext
11472
11473 # OK, works on sane cases. Now check whether nonexistent headers
11474 # can be detected and how.
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476/* end confdefs.h. */
11477#include <ac_nonexistent.h>
11478_ACEOF
11479if ac_fn_cxx_try_cpp "$LINENO"; then :
11480 # Broken: success on invalid input.
11481continue
11482else
11483 # Passes both tests.
11484ac_preproc_ok=:
11485break
11486fi
11487rm -f conftest.err conftest.$ac_ext
11488
11489done
11490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11491rm -f conftest.err conftest.$ac_ext
11492if $ac_preproc_ok; then :
11493 break
11494fi
11495
11496 done
11497 ac_cv_prog_CXXCPP=$CXXCPP
11498
11499fi
11500 CXXCPP=$ac_cv_prog_CXXCPP
11501else
11502 ac_cv_prog_CXXCPP=$CXXCPP
11503fi
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11505$as_echo "$CXXCPP" >&6; }
11506ac_preproc_ok=false
11507for ac_cxx_preproc_warn_flag in '' yes
11508do
11509 # Use a header file that comes with gcc, so configuring glibc
11510 # with a fresh cross-compiler works.
11511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 # <limits.h> exists even on freestanding compilers.
11513 # On the NeXT, cc -E runs the code through the compiler's parser,
11514 # not just through cpp. "Syntax error" is here to catch this case.
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516/* end confdefs.h. */
11517#ifdef __STDC__
11518# include <limits.h>
11519#else
11520# include <assert.h>
11521#endif
11522 Syntax error
11523_ACEOF
11524if ac_fn_cxx_try_cpp "$LINENO"; then :
11525
11526else
11527 # Broken: fails on valid input.
11528continue
11529fi
11530rm -f conftest.err conftest.$ac_ext
11531
11532 # OK, works on sane cases. Now check whether nonexistent headers
11533 # can be detected and how.
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h. */
11536#include <ac_nonexistent.h>
11537_ACEOF
11538if ac_fn_cxx_try_cpp "$LINENO"; then :
11539 # Broken: success on invalid input.
11540continue
11541else
11542 # Passes both tests.
11543ac_preproc_ok=:
11544break
11545fi
11546rm -f conftest.err conftest.$ac_ext
11547
11548done
11549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11550rm -f conftest.err conftest.$ac_ext
11551if $ac_preproc_ok; then :
11552
11553else
11554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11556as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11557See \`config.log' for more details." "$LINENO" 5; }
11558fi
11559
11560ac_ext=c
11561ac_cpp='$CPP $CPPFLAGS'
11562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11564ac_compiler_gnu=$ac_cv_c_compiler_gnu
11565
11566else
11567 _lt_caught_CXX_error=yes
11568fi
11569
11570ac_ext=cpp
11571ac_cpp='$CXXCPP $CPPFLAGS'
11572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11575
11576archive_cmds_need_lc_CXX=no
11577allow_undefined_flag_CXX=
11578always_export_symbols_CXX=no
11579archive_expsym_cmds_CXX=
11580compiler_needs_object_CXX=no
11581export_dynamic_flag_spec_CXX=
11582hardcode_direct_CXX=no
11583hardcode_direct_absolute_CXX=no
11584hardcode_libdir_flag_spec_CXX=
11585hardcode_libdir_flag_spec_ld_CXX=
11586hardcode_libdir_separator_CXX=
11587hardcode_minus_L_CXX=no
11588hardcode_shlibpath_var_CXX=unsupported
11589hardcode_automatic_CXX=no
11590inherit_rpath_CXX=no
11591module_cmds_CXX=
11592module_expsym_cmds_CXX=
11593link_all_deplibs_CXX=unknown
11594old_archive_cmds_CXX=$old_archive_cmds
11595reload_flag_CXX=$reload_flag
11596reload_cmds_CXX=$reload_cmds
11597no_undefined_flag_CXX=
11598whole_archive_flag_spec_CXX=
11599enable_shared_with_static_runtimes_CXX=no
11600
11601# Source file extension for C++ test sources.
11602ac_ext=cpp
11603
11604# Object file extension for compiled C++ test sources.
11605objext=o
11606objext_CXX=$objext
11607
11608# No sense in running all these tests if we already determined that
11609# the CXX compiler isn't working. Some variables (like enable_shared)
11610# are currently assumed to apply to all compilers on this platform,
11611# and will be corrupted by setting them based on a non-working compiler.
11612if test "$_lt_caught_CXX_error" != yes; then
11613 # Code to be used in simple compile tests
11614 lt_simple_compile_test_code="int some_variable = 0;"
11615
11616 # Code to be used in simple link tests
11617 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11618
11619 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11620
11621
11622
11623
11624
11625
11626# If no C compiler was specified, use CC.
11627LTCC=${LTCC-"$CC"}
11628
11629# If no C compiler flags were specified, use CFLAGS.
11630LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11631
11632# Allow CC to be a program name with arguments.
11633compiler=$CC
11634
11635
11636 # save warnings/boilerplate of simple test code
11637 ac_outfile=conftest.$ac_objext
11638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11640_lt_compiler_boilerplate=`cat conftest.err`
11641$RM conftest*
11642
11643 ac_outfile=conftest.$ac_objext
11644echo "$lt_simple_link_test_code" >conftest.$ac_ext
11645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11646_lt_linker_boilerplate=`cat conftest.err`
11647$RM -r conftest*
11648
11649
11650 # Allow CC to be a program name with arguments.
11651 lt_save_CC=$CC
11652 lt_save_LD=$LD
11653 lt_save_GCC=$GCC
11654 GCC=$GXX
11655 lt_save_with_gnu_ld=$with_gnu_ld
11656 lt_save_path_LD=$lt_cv_path_LD
11657 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11658 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11659 else
11660 $as_unset lt_cv_prog_gnu_ld
11661 fi
11662 if test -n "${lt_cv_path_LDCXX+set}"; then
11663 lt_cv_path_LD=$lt_cv_path_LDCXX
11664 else
11665 $as_unset lt_cv_path_LD
11666 fi
11667 test -z "${LDCXX+set}" || LD=$LDCXX
11668 CC=${CXX-"c++"}
11669 compiler=$CC
11670 compiler_CXX=$CC
11671 for cc_temp in $compiler""; do
11672 case $cc_temp in
11673 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11674 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11675 \-*) ;;
11676 *) break;;
11677 esac
11678done
11679cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11680
11681
11682 if test -n "$compiler"; then
11683 # We don't want -fno-exception when compiling C++ code, so set the
11684 # no_builtin_flag separately
11685 if test "$GXX" = yes; then
11686 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11687 else
11688 lt_prog_compiler_no_builtin_flag_CXX=
11689 fi
11690
11691 if test "$GXX" = yes; then
11692 # Set up default GNU C++ configuration
11693
11694
11695
11696# Check whether --with-gnu-ld was given.
11697if test "${with_gnu_ld+set}" = set; then :
11698 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11699else
11700 with_gnu_ld=no
11701fi
11702
11703ac_prog=ld
11704if test "$GCC" = yes; then
11705 # Check if gcc -print-prog-name=ld gives a path.
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11707$as_echo_n "checking for ld used by $CC... " >&6; }
11708 case $host in
11709 *-*-mingw*)
11710 # gcc leaves a trailing carriage return which upsets mingw
11711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11712 *)
11713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11714 esac
11715 case $ac_prog in
11716 # Accept absolute paths.
11717 [\\/]* | ?:[\\/]*)
11718 re_direlt='/[^/][^/]*/\.\./'
11719 # Canonicalize the pathname of ld
11720 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11721 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11722 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11723 done
11724 test -z "$LD" && LD="$ac_prog"
11725 ;;
11726 "")
11727 # If it fails, then pretend we aren't using GCC.
11728 ac_prog=ld
11729 ;;
11730 *)
11731 # If it is relative, then search for the first ld in PATH.
11732 with_gnu_ld=unknown
11733 ;;
11734 esac
11735elif test "$with_gnu_ld" = yes; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11737$as_echo_n "checking for GNU ld... " >&6; }
11738else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11740$as_echo_n "checking for non-GNU ld... " >&6; }
11741fi
11742if test "${lt_cv_path_LD+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744else
11745 if test -z "$LD"; then
11746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11747 for ac_dir in $PATH; do
11748 IFS="$lt_save_ifs"
11749 test -z "$ac_dir" && ac_dir=.
11750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11751 lt_cv_path_LD="$ac_dir/$ac_prog"
11752 # Check to see if the program is GNU ld. I'd rather use --version,
11753 # but apparently some variants of GNU ld only accept -v.
11754 # Break only if it was the GNU/non-GNU ld that we prefer.
11755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11756 *GNU* | *'with BFD'*)
11757 test "$with_gnu_ld" != no && break
11758 ;;
11759 *)
11760 test "$with_gnu_ld" != yes && break
11761 ;;
11762 esac
11763 fi
11764 done
11765 IFS="$lt_save_ifs"
11766else
11767 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11768fi
11769fi
11770
11771LD="$lt_cv_path_LD"
11772if test -n "$LD"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11774$as_echo "$LD" >&6; }
11775else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11781$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11782if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784else
11785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11786case `$LD -v 2>&1 </dev/null` in
11787*GNU* | *'with BFD'*)
11788 lt_cv_prog_gnu_ld=yes
11789 ;;
11790*)
11791 lt_cv_prog_gnu_ld=no
11792 ;;
11793esac
11794fi
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11796$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11797with_gnu_ld=$lt_cv_prog_gnu_ld
11798
11799
11800
11801
11802
11803
11804
11805 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11806 # archiving commands below assume that GNU ld is being used.
11807 if test "$with_gnu_ld" = yes; then
735aacba
MH
11808 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809 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'
5f520819
KY
11810
11811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11812 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11813
11814 # If archive_cmds runs LD, not CC, wlarc should be empty
11815 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11816 # investigate it a little bit more. (MM)
11817 wlarc='${wl}'
11818
11819 # ancient GNU ld didn't support --whole-archive et. al.
11820 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11821 $GREP 'no-whole-archive' > /dev/null; then
11822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11823 else
11824 whole_archive_flag_spec_CXX=
11825 fi
11826 else
11827 with_gnu_ld=no
11828 wlarc=
11829
11830 # A generic and very simple default shared library creation
11831 # command for GNU C++ for the case where it uses the native
11832 # linker, instead of GNU ld. If possible, this setting should
11833 # overridden to take advantage of the native linker features on
11834 # the platform it is being used on.
11835 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11836 fi
11837
11838 # Commands to make compiler produce verbose output that lists
11839 # what "hidden" libraries, object files and flags are used when
11840 # linking a shared library.
11841 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11842
11843 else
11844 GXX=no
11845 with_gnu_ld=no
11846 wlarc=
11847 fi
11848
11849 # PORTME: fill in a description of your system's C++ link characteristics
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11851$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11852 ld_shlibs_CXX=yes
11853 case $host_os in
11854 aix3*)
11855 # FIXME: insert proper C++ library support
11856 ld_shlibs_CXX=no
11857 ;;
11858 aix[4-9]*)
11859 if test "$host_cpu" = ia64; then
11860 # On IA64, the linker does run time linking by default, so we don't
11861 # have to do anything special.
11862 aix_use_runtimelinking=no
11863 exp_sym_flag='-Bexport'
11864 no_entry_flag=""
11865 else
11866 aix_use_runtimelinking=no
11867
11868 # Test if we are trying to use run time linking or normal
11869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11870 # need to do runtime linking.
11871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11872 for ld_flag in $LDFLAGS; do
11873 case $ld_flag in
11874 *-brtl*)
11875 aix_use_runtimelinking=yes
11876 break
11877 ;;
11878 esac
11879 done
11880 ;;
11881 esac
11882
11883 exp_sym_flag='-bexport'
11884 no_entry_flag='-bnoentry'
11885 fi
11886
11887 # When large executables or shared objects are built, AIX ld can
11888 # have problems creating the table of contents. If linking a library
11889 # or program results in "error TOC overflow" add -mminimal-toc to
11890 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11891 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11892
11893 archive_cmds_CXX=''
11894 hardcode_direct_CXX=yes
11895 hardcode_direct_absolute_CXX=yes
11896 hardcode_libdir_separator_CXX=':'
11897 link_all_deplibs_CXX=yes
11898 file_list_spec_CXX='${wl}-f,'
11899
11900 if test "$GXX" = yes; then
11901 case $host_os in aix4.[012]|aix4.[012].*)
11902 # We only want to do this on AIX 4.2 and lower, the check
11903 # below for broken collect2 doesn't work under 4.3+
11904 collect2name=`${CC} -print-prog-name=collect2`
11905 if test -f "$collect2name" &&
11906 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11907 then
11908 # We have reworked collect2
11909 :
11910 else
11911 # We have old collect2
11912 hardcode_direct_CXX=unsupported
11913 # It fails to find uninstalled libraries when the uninstalled
11914 # path is not listed in the libpath. Setting hardcode_minus_L
11915 # to unsupported forces relinking
11916 hardcode_minus_L_CXX=yes
11917 hardcode_libdir_flag_spec_CXX='-L$libdir'
11918 hardcode_libdir_separator_CXX=
11919 fi
11920 esac
11921 shared_flag='-shared'
11922 if test "$aix_use_runtimelinking" = yes; then
11923 shared_flag="$shared_flag "'${wl}-G'
11924 fi
11925 else
11926 # not using gcc
11927 if test "$host_cpu" = ia64; then
11928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11929 # chokes on -Wl,-G. The following line is correct:
11930 shared_flag='-G'
11931 else
11932 if test "$aix_use_runtimelinking" = yes; then
11933 shared_flag='${wl}-G'
11934 else
11935 shared_flag='${wl}-bM:SRE'
11936 fi
11937 fi
11938 fi
11939
11940 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11941 # It seems that -bexpall does not export symbols beginning with
11942 # underscore (_), so it is better to generate a list of symbols to
11943 # export.
11944 always_export_symbols_CXX=yes
11945 if test "$aix_use_runtimelinking" = yes; then
11946 # Warning - without using the other runtime loading flags (-brtl),
11947 # -berok will link without error, but may produce a broken library.
11948 allow_undefined_flag_CXX='-berok'
11949 # Determine the default libpath from the value encoded in an empty
11950 # executable.
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h. */
11953
11954int
11955main ()
11956{
11957
11958 ;
11959 return 0;
11960}
11961_ACEOF
11962if ac_fn_cxx_try_link "$LINENO"; then :
11963
11964lt_aix_libpath_sed='
11965 /Import File Strings/,/^$/ {
11966 /^0/ {
11967 s/^0 *\(.*\)$/\1/
11968 p
11969 }
11970 }'
11971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11972# Check for a 64-bit object if we didn't find anything.
11973if test -z "$aix_libpath"; then
11974 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11975fi
11976fi
11977rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11980
11981 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11982
11983 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"
11984 else
11985 if test "$host_cpu" = ia64; then
11986 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11987 allow_undefined_flag_CXX="-z nodefs"
11988 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"
11989 else
11990 # Determine the default libpath from the value encoded in an
11991 # empty executable.
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h. */
11994
11995int
11996main ()
11997{
11998
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003if ac_fn_cxx_try_link "$LINENO"; then :
12004
12005lt_aix_libpath_sed='
12006 /Import File Strings/,/^$/ {
12007 /^0/ {
12008 s/^0 *\(.*\)$/\1/
12009 p
12010 }
12011 }'
12012aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12013# Check for a 64-bit object if we didn't find anything.
12014if test -z "$aix_libpath"; then
12015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12016fi
12017fi
12018rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12021
12022 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12023 # Warning - without using the other run time loading flags,
12024 # -berok will link without error, but may produce a broken library.
12025 no_undefined_flag_CXX=' ${wl}-bernotok'
12026 allow_undefined_flag_CXX=' ${wl}-berok'
12027 if test "$with_gnu_ld" = yes; then
12028 # We only use this code for GNU lds that support --whole-archive.
12029 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12030 else
12031 # Exported symbols can be pulled into shared objects from archives
12032 whole_archive_flag_spec_CXX='$convenience'
12033 fi
12034 archive_cmds_need_lc_CXX=yes
12035 # This is similar to how AIX traditionally builds its shared
12036 # libraries.
12037 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'
12038 fi
12039 fi
12040 ;;
12041
12042 beos*)
12043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12044 allow_undefined_flag_CXX=unsupported
12045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12046 # support --undefined. This deserves some investigation. FIXME
12047 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12048 else
12049 ld_shlibs_CXX=no
12050 fi
12051 ;;
12052
12053 chorus*)
12054 case $cc_basename in
12055 *)
12056 # FIXME: insert proper C++ library support
12057 ld_shlibs_CXX=no
12058 ;;
12059 esac
12060 ;;
12061
12062 cygwin* | mingw* | pw32* | cegcc*)
12063 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12064 # as there is no search path for DLLs.
12065 hardcode_libdir_flag_spec_CXX='-L$libdir'
12066 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12067 allow_undefined_flag_CXX=unsupported
12068 always_export_symbols_CXX=no
12069 enable_shared_with_static_runtimes_CXX=yes
12070
12071 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12072 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'
12073 # If the export-symbols file already is a .def file (1st line
12074 # is EXPORTS), use it as is; otherwise, prepend...
12075 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12076 cp $export_symbols $output_objdir/$soname.def;
12077 else
12078 echo EXPORTS > $output_objdir/$soname.def;
12079 cat $export_symbols >> $output_objdir/$soname.def;
12080 fi~
12081 $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'
12082 else
12083 ld_shlibs_CXX=no
12084 fi
12085 ;;
12086 darwin* | rhapsody*)
12087
12088
12089 archive_cmds_need_lc_CXX=no
12090 hardcode_direct_CXX=no
12091 hardcode_automatic_CXX=yes
12092 hardcode_shlibpath_var_CXX=unsupported
12093 if test "$lt_cv_ld_force_load" = "yes"; then
12094 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\"`'
12095 else
12096 whole_archive_flag_spec_CXX=''
12097 fi
12098 link_all_deplibs_CXX=yes
12099 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12100 case $cc_basename in
12101 ifort*) _lt_dar_can_shared=yes ;;
12102 *) _lt_dar_can_shared=$GCC ;;
12103 esac
12104 if test "$_lt_dar_can_shared" = "yes"; then
12105 output_verbose_link_cmd=func_echo_all
12106 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}"
12107 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12108 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}"
12109 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}"
12110 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12111 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}"
12112 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}"
12113 fi
12114
12115 else
12116 ld_shlibs_CXX=no
12117 fi
12118
12119 ;;
12120
12121 dgux*)
12122 case $cc_basename in
12123 ec++*)
12124 # FIXME: insert proper C++ library support
12125 ld_shlibs_CXX=no
12126 ;;
12127 ghcx*)
12128 # Green Hills C++ Compiler
12129 # FIXME: insert proper C++ library support
12130 ld_shlibs_CXX=no
12131 ;;
12132 *)
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 esac
12137 ;;
12138
12139 freebsd2.*)
12140 # C++ shared libraries reported to be fairly broken before
12141 # switch to ELF
12142 ld_shlibs_CXX=no
12143 ;;
12144
12145 freebsd-elf*)
12146 archive_cmds_need_lc_CXX=no
12147 ;;
12148
12149 freebsd* | dragonfly*)
12150 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12151 # conventions
12152 ld_shlibs_CXX=yes
12153 ;;
12154
12155 gnu*)
12156 ;;
12157
12158 haiku*)
12159 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12160 link_all_deplibs_CXX=yes
12161 ;;
12162
12163 hpux9*)
12164 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12165 hardcode_libdir_separator_CXX=:
12166 export_dynamic_flag_spec_CXX='${wl}-E'
12167 hardcode_direct_CXX=yes
12168 hardcode_minus_L_CXX=yes # Not in the search PATH,
12169 # but as the default
12170 # location of the library.
12171
12172 case $cc_basename in
12173 CC*)
12174 # FIXME: insert proper C++ library support
12175 ld_shlibs_CXX=no
12176 ;;
12177 aCC*)
12178 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'
12179 # Commands to make compiler produce verbose output that lists
12180 # what "hidden" libraries, object files and flags are used when
12181 # linking a shared library.
12182 #
12183 # There doesn't appear to be a way to prevent this compiler from
12184 # explicitly linking system object files so we need to strip them
12185 # from the output so that they don't get included in the library
12186 # dependencies.
12187 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"'
12188 ;;
12189 *)
12190 if test "$GXX" = yes; then
12191 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12192 else
12193 # FIXME: insert proper C++ library support
12194 ld_shlibs_CXX=no
12195 fi
12196 ;;
12197 esac
12198 ;;
12199
12200 hpux10*|hpux11*)
12201 if test $with_gnu_ld = no; then
12202 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12203 hardcode_libdir_separator_CXX=:
12204
12205 case $host_cpu in
12206 hppa*64*|ia64*)
12207 ;;
12208 *)
12209 export_dynamic_flag_spec_CXX='${wl}-E'
12210 ;;
12211 esac
12212 fi
12213 case $host_cpu in
12214 hppa*64*|ia64*)
12215 hardcode_direct_CXX=no
12216 hardcode_shlibpath_var_CXX=no
12217 ;;
12218 *)
12219 hardcode_direct_CXX=yes
12220 hardcode_direct_absolute_CXX=yes
12221 hardcode_minus_L_CXX=yes # Not in the search PATH,
12222 # but as the default
12223 # location of the library.
12224 ;;
12225 esac
12226
12227 case $cc_basename in
12228 CC*)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12231 ;;
12232 aCC*)
12233 case $host_cpu in
12234 hppa*64*)
12235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12236 ;;
12237 ia64*)
12238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12239 ;;
12240 *)
12241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12242 ;;
12243 esac
12244 # Commands to make compiler produce verbose output that lists
12245 # what "hidden" libraries, object files and flags are used when
12246 # linking a shared library.
12247 #
12248 # There doesn't appear to be a way to prevent this compiler from
12249 # explicitly linking system object files so we need to strip them
12250 # from the output so that they don't get included in the library
12251 # dependencies.
12252 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"'
12253 ;;
12254 *)
12255 if test "$GXX" = yes; then
12256 if test $with_gnu_ld = no; then
12257 case $host_cpu in
12258 hppa*64*)
12259 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12260 ;;
12261 ia64*)
12262 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12263 ;;
12264 *)
12265 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12266 ;;
12267 esac
12268 fi
12269 else
12270 # FIXME: insert proper C++ library support
12271 ld_shlibs_CXX=no
12272 fi
12273 ;;
12274 esac
12275 ;;
12276
12277 interix[3-9]*)
12278 hardcode_direct_CXX=no
12279 hardcode_shlibpath_var_CXX=no
12280 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12281 export_dynamic_flag_spec_CXX='${wl}-E'
12282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12283 # Instead, shared libraries are loaded at an image base (0x10000000 by
12284 # default) and relocated if they conflict, which is a slow very memory
12285 # consuming and fragmenting process. To avoid this, we pick a random,
12286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12287 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12288 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'
12289 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'
12290 ;;
12291 irix5* | irix6*)
12292 case $cc_basename in
12293 CC*)
12294 # SGI C++
12295 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'
12296
12297 # Archives containing C++ object files must be created using
12298 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12299 # necessary to make sure instantiated templates are included
12300 # in the archive.
12301 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12302 ;;
12303 *)
12304 if test "$GXX" = yes; then
12305 if test "$with_gnu_ld" = no; then
12306 archive_cmds_CXX='$CC -shared -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'
12307 else
12308 archive_cmds_CXX='$CC -shared -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'
12309 fi
12310 fi
12311 link_all_deplibs_CXX=yes
12312 ;;
12313 esac
12314 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12315 hardcode_libdir_separator_CXX=:
12316 inherit_rpath_CXX=yes
12317 ;;
12318
12319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12320 case $cc_basename in
12321 KCC*)
12322 # Kuck and Associates, Inc. (KAI) C++ Compiler
12323
12324 # KCC will only create a shared library if the output file
12325 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12326 # to its proper name (with version) after linking.
12327 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'
12328 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'
12329 # Commands to make compiler produce verbose output that lists
12330 # what "hidden" libraries, object files and flags are used when
12331 # linking a shared library.
12332 #
12333 # There doesn't appear to be a way to prevent this compiler from
12334 # explicitly linking system object files so we need to strip them
12335 # from the output so that they don't get included in the library
12336 # dependencies.
12337 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"'
12338
12339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12341
12342 # Archives containing C++ object files must be created using
12343 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12344 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12345 ;;
12346 icpc* | ecpc* )
12347 # Intel C++
12348 with_gnu_ld=yes
12349 # version 8.0 and above of icpc choke on multiply defined symbols
12350 # if we add $predep_objects and $postdep_objects, however 7.1 and
12351 # earlier do not add the objects themselves.
12352 case `$CC -V 2>&1` in
12353 *"Version 7."*)
12354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 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'
12356 ;;
12357 *) # Version 8.0 or newer
12358 tmp_idyn=
12359 case $host_cpu in
12360 ia64*) tmp_idyn=' -i_dynamic';;
12361 esac
12362 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363 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'
12364 ;;
12365 esac
12366 archive_cmds_need_lc_CXX=no
12367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12368 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12369 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12370 ;;
12371 pgCC* | pgcpp*)
12372 # Portland Group C++ compiler
12373 case `$CC -V` in
12374 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12375 prelink_cmds_CXX='tpldir=Template.dir~
12376 rm -rf $tpldir~
12377 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12378 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12379 old_archive_cmds_CXX='tpldir=Template.dir~
12380 rm -rf $tpldir~
12381 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12382 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12383 $RANLIB $oldlib'
12384 archive_cmds_CXX='tpldir=Template.dir~
12385 rm -rf $tpldir~
12386 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12387 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12388 archive_expsym_cmds_CXX='tpldir=Template.dir~
12389 rm -rf $tpldir~
12390 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12391 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12392 ;;
12393 *) # Version 6 and above use weak symbols
12394 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12395 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'
12396 ;;
12397 esac
12398
12399 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12401 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'
12402 ;;
12403 cxx*)
12404 # Compaq C++
12405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 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'
12407
12408 runpath_var=LD_RUN_PATH
12409 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12410 hardcode_libdir_separator_CXX=:
12411
12412 # Commands to make compiler produce verbose output that lists
12413 # what "hidden" libraries, object files and flags are used when
12414 # linking a shared library.
12415 #
12416 # There doesn't appear to be a way to prevent this compiler from
12417 # explicitly linking system object files so we need to strip them
12418 # from the output so that they don't get included in the library
12419 # dependencies.
12420 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'
12421 ;;
12422 xl* | mpixl* | bgxl*)
12423 # IBM XL 8.0 on PPC, with GNU ld
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427 if test "x$supports_anon_versioning" = xyes; then
12428 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12430 echo "local: *; };" >> $output_objdir/$libname.ver~
12431 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12432 fi
12433 ;;
12434 *)
12435 case `$CC -V 2>&1 | sed 5q` in
12436 *Sun\ C*)
12437 # Sun C++ 5.9
12438 no_undefined_flag_CXX=' -zdefs'
12439 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12440 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'
12441 hardcode_libdir_flag_spec_CXX='-R$libdir'
12442 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'
12443 compiler_needs_object_CXX=yes
12444
12445 # Not sure whether something based on
12446 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12447 # would be better.
12448 output_verbose_link_cmd='func_echo_all'
12449
12450 # Archives containing C++ object files must be created using
12451 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12452 # necessary to make sure instantiated templates are included
12453 # in the archive.
12454 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12455 ;;
12456 esac
12457 ;;
12458 esac
12459 ;;
12460
12461 lynxos*)
12462 # FIXME: insert proper C++ library support
12463 ld_shlibs_CXX=no
12464 ;;
12465
12466 m88k*)
12467 # FIXME: insert proper C++ library support
12468 ld_shlibs_CXX=no
12469 ;;
12470
12471 mvs*)
12472 case $cc_basename in
12473 cxx*)
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12476 ;;
12477 *)
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12480 ;;
12481 esac
12482 ;;
12483
12484 netbsd*)
12485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12486 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12487 wlarc=
12488 hardcode_libdir_flag_spec_CXX='-R$libdir'
12489 hardcode_direct_CXX=yes
12490 hardcode_shlibpath_var_CXX=no
12491 fi
12492 # Workaround some broken pre-1.5 toolchains
12493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12494 ;;
12495
12496 *nto* | *qnx*)
12497 ld_shlibs_CXX=yes
12498 ;;
12499
12500 openbsd2*)
12501 # C++ shared libraries are fairly broken
12502 ld_shlibs_CXX=no
12503 ;;
12504
12505 openbsd*)
12506 if test -f /usr/libexec/ld.so; then
12507 hardcode_direct_CXX=yes
12508 hardcode_shlibpath_var_CXX=no
12509 hardcode_direct_absolute_CXX=yes
12510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12512 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12513 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12514 export_dynamic_flag_spec_CXX='${wl}-E'
12515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12516 fi
12517 output_verbose_link_cmd=func_echo_all
12518 else
12519 ld_shlibs_CXX=no
12520 fi
12521 ;;
12522
12523 osf3* | osf4* | osf5*)
12524 case $cc_basename in
12525 KCC*)
12526 # Kuck and Associates, Inc. (KAI) C++ Compiler
12527
12528 # KCC will only create a shared library if the output file
12529 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12530 # to its proper name (with version) after linking.
12531 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'
12532
12533 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12534 hardcode_libdir_separator_CXX=:
12535
12536 # Archives containing C++ object files must be created using
12537 # the KAI C++ compiler.
12538 case $host in
12539 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12540 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12541 esac
12542 ;;
12543 RCC*)
12544 # Rational C++ 2.4.1
12545 # FIXME: insert proper C++ library support
12546 ld_shlibs_CXX=no
12547 ;;
12548 cxx*)
12549 case $host in
12550 osf3*)
12551 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12552 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'
12553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12554 ;;
12555 *)
12556 allow_undefined_flag_CXX=' -expect_unresolved \*'
12557 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'
12558 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12559 echo "-hidden">> $lib.exp~
12560 $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~
12561 $RM $lib.exp'
12562 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12563 ;;
12564 esac
12565
12566 hardcode_libdir_separator_CXX=:
12567
12568 # Commands to make compiler produce verbose output that lists
12569 # what "hidden" libraries, object files and flags are used when
12570 # linking a shared library.
12571 #
12572 # There doesn't appear to be a way to prevent this compiler from
12573 # explicitly linking system object files so we need to strip them
12574 # from the output so that they don't get included in the library
12575 # dependencies.
12576 output_verbose_link_cmd='templist=`$CC -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"'
12577 ;;
12578 *)
12579 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12580 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12581 case $host in
12582 osf3*)
12583 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'
12584 ;;
12585 *)
12586 archive_cmds_CXX='$CC -shared -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'
12587 ;;
12588 esac
12589
12590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12591 hardcode_libdir_separator_CXX=:
12592
12593 # Commands to make compiler produce verbose output that lists
12594 # what "hidden" libraries, object files and flags are used when
12595 # linking a shared library.
12596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12597
12598 else
12599 # FIXME: insert proper C++ library support
12600 ld_shlibs_CXX=no
12601 fi
12602 ;;
12603 esac
12604 ;;
12605
12606 psos*)
12607 # FIXME: insert proper C++ library support
12608 ld_shlibs_CXX=no
12609 ;;
12610
12611 sunos4*)
12612 case $cc_basename in
12613 CC*)
12614 # Sun C++ 4.x
12615 # FIXME: insert proper C++ library support
12616 ld_shlibs_CXX=no
12617 ;;
12618 lcc*)
12619 # Lucid
12620 # FIXME: insert proper C++ library support
12621 ld_shlibs_CXX=no
12622 ;;
12623 *)
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12626 ;;
12627 esac
12628 ;;
12629
12630 solaris*)
12631 case $cc_basename in
12632 CC*)
12633 # Sun C++ 4.2, 5.x and Centerline C++
12634 archive_cmds_need_lc_CXX=yes
12635 no_undefined_flag_CXX=' -zdefs'
12636 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12637 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12638 $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'
12639
12640 hardcode_libdir_flag_spec_CXX='-R$libdir'
12641 hardcode_shlibpath_var_CXX=no
12642 case $host_os in
12643 solaris2.[0-5] | solaris2.[0-5].*) ;;
12644 *)
12645 # The compiler driver will combine and reorder linker options,
12646 # but understands `-z linker_flag'.
12647 # Supported since Solaris 2.6 (maybe 2.5.1?)
12648 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12649 ;;
12650 esac
12651 link_all_deplibs_CXX=yes
12652
12653 output_verbose_link_cmd='func_echo_all'
12654
12655 # Archives containing C++ object files must be created using
12656 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12657 # necessary to make sure instantiated templates are included
12658 # in the archive.
12659 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12660 ;;
12661 gcx*)
12662 # Green Hills C++ Compiler
12663 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12664
12665 # The C++ compiler must be used to create the archive.
12666 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12667 ;;
12668 *)
12669 # GNU C++ compiler with Solaris linker
12670 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12671 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12672 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12673 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12674 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12675 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12676
12677 # Commands to make compiler produce verbose output that lists
12678 # what "hidden" libraries, object files and flags are used when
12679 # linking a shared library.
12680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12681 else
12682 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12683 # platform.
12684 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12685 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12686 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12687
12688 # Commands to make compiler produce verbose output that lists
12689 # what "hidden" libraries, object files and flags are used when
12690 # linking a shared library.
12691 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12692 fi
12693
12694 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12695 case $host_os in
12696 solaris2.[0-5] | solaris2.[0-5].*) ;;
12697 *)
12698 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12699 ;;
12700 esac
12701 fi
12702 ;;
12703 esac
12704 ;;
12705
12706 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12707 no_undefined_flag_CXX='${wl}-z,text'
12708 archive_cmds_need_lc_CXX=no
12709 hardcode_shlibpath_var_CXX=no
12710 runpath_var='LD_RUN_PATH'
12711
12712 case $cc_basename in
12713 CC*)
12714 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12715 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12716 ;;
12717 *)
12718 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12720 ;;
12721 esac
12722 ;;
12723
12724 sysv5* | sco3.2v5* | sco5v6*)
12725 # Note: We can NOT use -z defs as we might desire, because we do not
12726 # link with -lc, and that would cause any symbols used from libc to
12727 # always be unresolved, which means just about no library would
12728 # ever link correctly. If we're not using GNU ld we use -z text
12729 # though, which does catch some bad symbols but isn't as heavy-handed
12730 # as -z defs.
12731 no_undefined_flag_CXX='${wl}-z,text'
12732 allow_undefined_flag_CXX='${wl}-z,nodefs'
12733 archive_cmds_need_lc_CXX=no
12734 hardcode_shlibpath_var_CXX=no
12735 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12736 hardcode_libdir_separator_CXX=':'
12737 link_all_deplibs_CXX=yes
12738 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12739 runpath_var='LD_RUN_PATH'
12740
12741 case $cc_basename in
12742 CC*)
12743 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12744 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12745 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12746 '"$old_archive_cmds_CXX"
12747 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12748 '"$reload_cmds_CXX"
12749 ;;
12750 *)
12751 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12752 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12753 ;;
12754 esac
12755 ;;
12756
12757 tandem*)
12758 case $cc_basename in
12759 NCC*)
12760 # NonStop-UX NCC 3.20
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12763 ;;
12764 *)
12765 # FIXME: insert proper C++ library support
12766 ld_shlibs_CXX=no
12767 ;;
12768 esac
12769 ;;
12770
12771 vxworks*)
12772 # FIXME: insert proper C++ library support
12773 ld_shlibs_CXX=no
12774 ;;
12775
12776 *)
12777 # FIXME: insert proper C++ library support
12778 ld_shlibs_CXX=no
12779 ;;
12780 esac
12781
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12783$as_echo "$ld_shlibs_CXX" >&6; }
12784 test "$ld_shlibs_CXX" = no && can_build_shared=no
12785
12786 GCC_CXX="$GXX"
12787 LD_CXX="$LD"
12788
12789 ## CAVEAT EMPTOR:
12790 ## There is no encapsulation within the following macros, do not change
12791 ## the running order or otherwise move them around unless you know exactly
12792 ## what you are doing...
12793 # Dependencies to place before and after the object being linked:
12794predep_objects_CXX=
12795postdep_objects_CXX=
12796predeps_CXX=
12797postdeps_CXX=
12798compiler_lib_search_path_CXX=
12799
12800cat > conftest.$ac_ext <<_LT_EOF
12801class Foo
12802{
12803public:
12804 Foo (void) { a = 0; }
12805private:
12806 int a;
12807};
12808_LT_EOF
12809
12810if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12811 (eval $ac_compile) 2>&5
12812 ac_status=$?
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; }; then
12815 # Parse the compiler output and extract the necessary
12816 # objects, libraries and library flags.
12817
12818 # Sentinel used to keep track of whether or not we are before
12819 # the conftest object file.
12820 pre_test_object_deps_done=no
12821
12822 for p in `eval "$output_verbose_link_cmd"`; do
12823 case $p in
12824
12825 -L* | -R* | -l*)
12826 # Some compilers place space between "-{L,R}" and the path.
12827 # Remove the space.
12828 if test $p = "-L" ||
12829 test $p = "-R"; then
12830 prev=$p
12831 continue
12832 else
12833 prev=
12834 fi
12835
12836 if test "$pre_test_object_deps_done" = no; then
12837 case $p in
12838 -L* | -R*)
12839 # Internal compiler library paths should come after those
12840 # provided the user. The postdeps already come after the
12841 # user supplied libs so there is no need to process them.
12842 if test -z "$compiler_lib_search_path_CXX"; then
12843 compiler_lib_search_path_CXX="${prev}${p}"
12844 else
12845 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12846 fi
12847 ;;
12848 # The "-l" case would never come before the object being
12849 # linked, so don't bother handling this case.
12850 esac
12851 else
12852 if test -z "$postdeps_CXX"; then
12853 postdeps_CXX="${prev}${p}"
12854 else
12855 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12856 fi
12857 fi
12858 ;;
12859
12860 *.$objext)
12861 # This assumes that the test object file only shows up
12862 # once in the compiler output.
12863 if test "$p" = "conftest.$objext"; then
12864 pre_test_object_deps_done=yes
12865 continue
12866 fi
12867
12868 if test "$pre_test_object_deps_done" = no; then
12869 if test -z "$predep_objects_CXX"; then
12870 predep_objects_CXX="$p"
12871 else
12872 predep_objects_CXX="$predep_objects_CXX $p"
12873 fi
12874 else
12875 if test -z "$postdep_objects_CXX"; then
12876 postdep_objects_CXX="$p"
12877 else
12878 postdep_objects_CXX="$postdep_objects_CXX $p"
12879 fi
12880 fi
12881 ;;
12882
12883 *) ;; # Ignore the rest.
12884
12885 esac
12886 done
12887
12888 # Clean up.
12889 rm -f a.out a.exe
12890else
12891 echo "libtool.m4: error: problem compiling CXX test program"
12892fi
12893
12894$RM -f confest.$objext
12895
12896# PORTME: override above test on systems where it is broken
12897case $host_os in
12898interix[3-9]*)
12899 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12900 # hack all around it, let's just trust "g++" to DTRT.
12901 predep_objects_CXX=
12902 postdep_objects_CXX=
12903 postdeps_CXX=
12904 ;;
12905
12906linux*)
12907 case `$CC -V 2>&1 | sed 5q` in
12908 *Sun\ C*)
12909 # Sun C++ 5.9
12910
12911 # The more standards-conforming stlport4 library is
12912 # incompatible with the Cstd library. Avoid specifying
12913 # it if it's in CXXFLAGS. Ignore libCrun as
12914 # -library=stlport4 depends on it.
12915 case " $CXX $CXXFLAGS " in
12916 *" -library=stlport4 "*)
12917 solaris_use_stlport4=yes
12918 ;;
12919 esac
12920
12921 if test "$solaris_use_stlport4" != yes; then
12922 postdeps_CXX='-library=Cstd -library=Crun'
12923 fi
12924 ;;
12925 esac
12926 ;;
12927
12928solaris*)
12929 case $cc_basename in
12930 CC*)
12931 # The more standards-conforming stlport4 library is
12932 # incompatible with the Cstd library. Avoid specifying
12933 # it if it's in CXXFLAGS. Ignore libCrun as
12934 # -library=stlport4 depends on it.
12935 case " $CXX $CXXFLAGS " in
12936 *" -library=stlport4 "*)
12937 solaris_use_stlport4=yes
12938 ;;
12939 esac
12940
12941 # Adding this requires a known-good setup of shared libraries for
12942 # Sun compiler versions before 5.6, else PIC objects from an old
12943 # archive will be linked into the output, leading to subtle bugs.
12944 if test "$solaris_use_stlport4" != yes; then
12945 postdeps_CXX='-library=Cstd -library=Crun'
12946 fi
12947 ;;
12948 esac
12949 ;;
12950esac
12951
12952
12953case " $postdeps_CXX " in
12954*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12955esac
12956 compiler_lib_search_dirs_CXX=
12957if test -n "${compiler_lib_search_path_CXX}"; then
12958 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12959fi
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991 lt_prog_compiler_wl_CXX=
12992lt_prog_compiler_pic_CXX=
12993lt_prog_compiler_static_CXX=
12994
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12996$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12997
12998 # C++ specific cases for pic, static, wl, etc.
12999 if test "$GXX" = yes; then
13000 lt_prog_compiler_wl_CXX='-Wl,'
13001 lt_prog_compiler_static_CXX='-static'
13002
13003 case $host_os in
13004 aix*)
13005 # All AIX code is PIC.
13006 if test "$host_cpu" = ia64; then
13007 # AIX 5 now supports IA64 processor
13008 lt_prog_compiler_static_CXX='-Bstatic'
13009 fi
13010 lt_prog_compiler_pic_CXX='-fPIC'
13011 ;;
13012
13013 amigaos*)
13014 case $host_cpu in
13015 powerpc)
13016 # see comment about AmigaOS4 .so support
13017 lt_prog_compiler_pic_CXX='-fPIC'
13018 ;;
13019 m68k)
13020 # FIXME: we need at least 68020 code to build shared libraries, but
13021 # adding the `-m68020' flag to GCC prevents building anything better,
13022 # like `-m68040'.
13023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13024 ;;
13025 esac
13026 ;;
13027
13028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13029 # PIC is the default for these OSes.
13030 ;;
13031 mingw* | cygwin* | os2* | pw32* | cegcc*)
13032 # This hack is so that the source file can tell whether it is being
13033 # built for inclusion in a dll (and should export symbols for example).
13034 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13035 # (--disable-auto-import) libraries
13036 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13037 ;;
13038 darwin* | rhapsody*)
13039 # PIC is the default on this platform
13040 # Common symbols not allowed in MH_DYLIB files
13041 lt_prog_compiler_pic_CXX='-fno-common'
13042 ;;
13043 *djgpp*)
13044 # DJGPP does not support shared libraries at all
13045 lt_prog_compiler_pic_CXX=
13046 ;;
13047 haiku*)
13048 # PIC is the default for Haiku.
13049 # The "-static" flag exists, but is broken.
13050 lt_prog_compiler_static_CXX=
13051 ;;
13052 interix[3-9]*)
13053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13054 # Instead, we relocate shared libraries at runtime.
13055 ;;
13056 sysv4*MP*)
13057 if test -d /usr/nec; then
13058 lt_prog_compiler_pic_CXX=-Kconform_pic
13059 fi
13060 ;;
13061 hpux*)
13062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13064 # sets the default TLS model and affects inlining.
13065 case $host_cpu in
13066 hppa*64*)
13067 ;;
13068 *)
13069 lt_prog_compiler_pic_CXX='-fPIC'
13070 ;;
13071 esac
13072 ;;
13073 *qnx* | *nto*)
13074 # QNX uses GNU C++, but need to define -shared option too, otherwise
13075 # it will coredump.
13076 lt_prog_compiler_pic_CXX='-fPIC -shared'
13077 ;;
13078 *)
13079 lt_prog_compiler_pic_CXX='-fPIC'
13080 ;;
13081 esac
13082 else
13083 case $host_os in
13084 aix[4-9]*)
13085 # All AIX code is PIC.
13086 if test "$host_cpu" = ia64; then
13087 # AIX 5 now supports IA64 processor
13088 lt_prog_compiler_static_CXX='-Bstatic'
13089 else
13090 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13091 fi
13092 ;;
13093 chorus*)
13094 case $cc_basename in
13095 cxch68*)
13096 # Green Hills C++ Compiler
13097 # _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"
13098 ;;
13099 esac
13100 ;;
13101 dgux*)
13102 case $cc_basename in
13103 ec++*)
13104 lt_prog_compiler_pic_CXX='-KPIC'
13105 ;;
13106 ghcx*)
13107 # Green Hills C++ Compiler
13108 lt_prog_compiler_pic_CXX='-pic'
13109 ;;
13110 *)
13111 ;;
13112 esac
13113 ;;
13114 freebsd* | dragonfly*)
13115 # FreeBSD uses GNU C++
13116 ;;
13117 hpux9* | hpux10* | hpux11*)
13118 case $cc_basename in
13119 CC*)
13120 lt_prog_compiler_wl_CXX='-Wl,'
13121 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13122 if test "$host_cpu" != ia64; then
13123 lt_prog_compiler_pic_CXX='+Z'
13124 fi
13125 ;;
13126 aCC*)
13127 lt_prog_compiler_wl_CXX='-Wl,'
13128 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13129 case $host_cpu in
13130 hppa*64*|ia64*)
13131 # +Z the default
13132 ;;
13133 *)
13134 lt_prog_compiler_pic_CXX='+Z'
13135 ;;
13136 esac
13137 ;;
13138 *)
13139 ;;
13140 esac
13141 ;;
13142 interix*)
13143 # This is c89, which is MS Visual C++ (no shared libs)
13144 # Anyone wants to do a port?
13145 ;;
13146 irix5* | irix6* | nonstopux*)
13147 case $cc_basename in
13148 CC*)
13149 lt_prog_compiler_wl_CXX='-Wl,'
13150 lt_prog_compiler_static_CXX='-non_shared'
13151 # CC pic flag -KPIC is the default.
13152 ;;
13153 *)
13154 ;;
13155 esac
13156 ;;
13157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13158 case $cc_basename in
13159 KCC*)
13160 # KAI C++ Compiler
13161 lt_prog_compiler_wl_CXX='--backend -Wl,'
13162 lt_prog_compiler_pic_CXX='-fPIC'
13163 ;;
13164 ecpc* )
13165 # old Intel C++ for x86_64 which still supported -KPIC.
13166 lt_prog_compiler_wl_CXX='-Wl,'
13167 lt_prog_compiler_pic_CXX='-KPIC'
13168 lt_prog_compiler_static_CXX='-static'
13169 ;;
13170 icpc* )
13171 # Intel C++, used to be incompatible with GCC.
13172 # ICC 10 doesn't accept -KPIC any more.
13173 lt_prog_compiler_wl_CXX='-Wl,'
13174 lt_prog_compiler_pic_CXX='-fPIC'
13175 lt_prog_compiler_static_CXX='-static'
13176 ;;
13177 pgCC* | pgcpp*)
13178 # Portland Group C++ compiler
13179 lt_prog_compiler_wl_CXX='-Wl,'
13180 lt_prog_compiler_pic_CXX='-fpic'
13181 lt_prog_compiler_static_CXX='-Bstatic'
13182 ;;
13183 cxx*)
13184 # Compaq C++
13185 # Make sure the PIC flag is empty. It appears that all Alpha
13186 # Linux and Compaq Tru64 Unix objects are PIC.
13187 lt_prog_compiler_pic_CXX=
13188 lt_prog_compiler_static_CXX='-non_shared'
13189 ;;
13190 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13191 # IBM XL 8.0, 9.0 on PPC and BlueGene
13192 lt_prog_compiler_wl_CXX='-Wl,'
13193 lt_prog_compiler_pic_CXX='-qpic'
13194 lt_prog_compiler_static_CXX='-qstaticlink'
13195 ;;
13196 *)
13197 case `$CC -V 2>&1 | sed 5q` in
13198 *Sun\ C*)
13199 # Sun C++ 5.9
13200 lt_prog_compiler_pic_CXX='-KPIC'
13201 lt_prog_compiler_static_CXX='-Bstatic'
13202 lt_prog_compiler_wl_CXX='-Qoption ld '
13203 ;;
13204 esac
13205 ;;
13206 esac
13207 ;;
13208 lynxos*)
13209 ;;
13210 m88k*)
13211 ;;
13212 mvs*)
13213 case $cc_basename in
13214 cxx*)
13215 lt_prog_compiler_pic_CXX='-W c,exportall'
13216 ;;
13217 *)
13218 ;;
13219 esac
13220 ;;
13221 netbsd*)
13222 ;;
13223 *qnx* | *nto*)
13224 # QNX uses GNU C++, but need to define -shared option too, otherwise
13225 # it will coredump.
13226 lt_prog_compiler_pic_CXX='-fPIC -shared'
13227 ;;
13228 osf3* | osf4* | osf5*)
13229 case $cc_basename in
13230 KCC*)
13231 lt_prog_compiler_wl_CXX='--backend -Wl,'
13232 ;;
13233 RCC*)
13234 # Rational C++ 2.4.1
13235 lt_prog_compiler_pic_CXX='-pic'
13236 ;;
13237 cxx*)
13238 # Digital/Compaq C++
13239 lt_prog_compiler_wl_CXX='-Wl,'
13240 # Make sure the PIC flag is empty. It appears that all Alpha
13241 # Linux and Compaq Tru64 Unix objects are PIC.
13242 lt_prog_compiler_pic_CXX=
13243 lt_prog_compiler_static_CXX='-non_shared'
13244 ;;
13245 *)
13246 ;;
13247 esac
13248 ;;
13249 psos*)
13250 ;;
13251 solaris*)
13252 case $cc_basename in
13253 CC*)
13254 # Sun C++ 4.2, 5.x and Centerline C++
13255 lt_prog_compiler_pic_CXX='-KPIC'
13256 lt_prog_compiler_static_CXX='-Bstatic'
13257 lt_prog_compiler_wl_CXX='-Qoption ld '
13258 ;;
13259 gcx*)
13260 # Green Hills C++ Compiler
13261 lt_prog_compiler_pic_CXX='-PIC'
13262 ;;
13263 *)
13264 ;;
13265 esac
13266 ;;
13267 sunos4*)
13268 case $cc_basename in
13269 CC*)
13270 # Sun C++ 4.x
13271 lt_prog_compiler_pic_CXX='-pic'
13272 lt_prog_compiler_static_CXX='-Bstatic'
13273 ;;
13274 lcc*)
13275 # Lucid
13276 lt_prog_compiler_pic_CXX='-pic'
13277 ;;
13278 *)
13279 ;;
13280 esac
13281 ;;
13282 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13283 case $cc_basename in
13284 CC*)
13285 lt_prog_compiler_wl_CXX='-Wl,'
13286 lt_prog_compiler_pic_CXX='-KPIC'
13287 lt_prog_compiler_static_CXX='-Bstatic'
13288 ;;
13289 esac
13290 ;;
13291 tandem*)
13292 case $cc_basename in
13293 NCC*)
13294 # NonStop-UX NCC 3.20
13295 lt_prog_compiler_pic_CXX='-KPIC'
13296 ;;
13297 *)
13298 ;;
13299 esac
13300 ;;
13301 vxworks*)
13302 ;;
13303 *)
13304 lt_prog_compiler_can_build_shared_CXX=no
13305 ;;
13306 esac
13307 fi
13308
13309case $host_os in
13310 # For platforms which do not support PIC, -DPIC is meaningless:
13311 *djgpp*)
13312 lt_prog_compiler_pic_CXX=
13313 ;;
13314 *)
13315 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13316 ;;
13317esac
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13319$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13320
13321
13322
13323#
13324# Check to make sure the PIC flag actually works.
13325#
13326if test -n "$lt_prog_compiler_pic_CXX"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13328$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13329if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13331else
13332 lt_cv_prog_compiler_pic_works_CXX=no
13333 ac_outfile=conftest.$ac_objext
13334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13335 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13336 # Insert the option either (1) after the last *FLAGS variable, or
13337 # (2) before a word containing "conftest.", or (3) at the end.
13338 # Note that $ac_compile itself does not contain backslashes and begins
13339 # with a dollar sign (not a hyphen), so the echo should work correctly.
13340 # The option is referenced via a variable to avoid confusing sed.
13341 lt_compile=`echo "$ac_compile" | $SED \
13342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344 -e 's:$: $lt_compiler_flag:'`
13345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13346 (eval "$lt_compile" 2>conftest.err)
13347 ac_status=$?
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 if (exit $ac_status) && test -s "$ac_outfile"; then
13351 # The compiler can only warn and ignore the option if not recognized
13352 # So say no if there are warnings other than the usual output.
13353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13356 lt_cv_prog_compiler_pic_works_CXX=yes
13357 fi
13358 fi
13359 $RM conftest*
13360
13361fi
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13363$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13364
13365if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13366 case $lt_prog_compiler_pic_CXX in
13367 "" | " "*) ;;
13368 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13369 esac
13370else
13371 lt_prog_compiler_pic_CXX=
13372 lt_prog_compiler_can_build_shared_CXX=no
13373fi
13374
13375fi
13376
13377
13378
13379#
13380# Check to make sure the static flag actually works.
13381#
13382wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13384$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13385if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387else
13388 lt_cv_prog_compiler_static_works_CXX=no
13389 save_LDFLAGS="$LDFLAGS"
13390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13391 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13393 # The linker can only warn and ignore the option if not recognized
13394 # So say no if there are warnings
13395 if test -s conftest.err; then
13396 # Append any errors to the config.log.
13397 cat conftest.err 1>&5
13398 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13400 if diff conftest.exp conftest.er2 >/dev/null; then
13401 lt_cv_prog_compiler_static_works_CXX=yes
13402 fi
13403 else
13404 lt_cv_prog_compiler_static_works_CXX=yes
13405 fi
13406 fi
13407 $RM -r conftest*
13408 LDFLAGS="$save_LDFLAGS"
13409
13410fi
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13412$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13413
13414if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13415 :
13416else
13417 lt_prog_compiler_static_CXX=
13418fi
13419
13420
13421
13422
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13424$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13425if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13427else
13428 lt_cv_prog_compiler_c_o_CXX=no
13429 $RM -r conftest 2>/dev/null
13430 mkdir conftest
13431 cd conftest
13432 mkdir out
13433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13434
13435 lt_compiler_flag="-o out/conftest2.$ac_objext"
13436 # Insert the option either (1) after the last *FLAGS variable, or
13437 # (2) before a word containing "conftest.", or (3) at the end.
13438 # Note that $ac_compile itself does not contain backslashes and begins
13439 # with a dollar sign (not a hyphen), so the echo should work correctly.
13440 lt_compile=`echo "$ac_compile" | $SED \
13441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13443 -e 's:$: $lt_compiler_flag:'`
13444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13445 (eval "$lt_compile" 2>out/conftest.err)
13446 ac_status=$?
13447 cat out/conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13450 then
13451 # The compiler can only warn and ignore the option if not recognized
13452 # So say no if there are warnings
13453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13456 lt_cv_prog_compiler_c_o_CXX=yes
13457 fi
13458 fi
13459 chmod u+w . 2>&5
13460 $RM conftest*
13461 # SGI C++ compiler will create directory out/ii_files/ for
13462 # template instantiation
13463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13464 $RM out/* && rmdir out
13465 cd ..
13466 $RM -r conftest
13467 $RM conftest*
13468
13469fi
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13471$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13472
13473
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13476$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13477if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
13479else
13480 lt_cv_prog_compiler_c_o_CXX=no
13481 $RM -r conftest 2>/dev/null
13482 mkdir conftest
13483 cd conftest
13484 mkdir out
13485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13486
13487 lt_compiler_flag="-o out/conftest2.$ac_objext"
13488 # Insert the option either (1) after the last *FLAGS variable, or
13489 # (2) before a word containing "conftest.", or (3) at the end.
13490 # Note that $ac_compile itself does not contain backslashes and begins
13491 # with a dollar sign (not a hyphen), so the echo should work correctly.
13492 lt_compile=`echo "$ac_compile" | $SED \
13493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13495 -e 's:$: $lt_compiler_flag:'`
13496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13497 (eval "$lt_compile" 2>out/conftest.err)
13498 ac_status=$?
13499 cat out/conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13502 then
13503 # The compiler can only warn and ignore the option if not recognized
13504 # So say no if there are warnings
13505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13508 lt_cv_prog_compiler_c_o_CXX=yes
13509 fi
13510 fi
13511 chmod u+w . 2>&5
13512 $RM conftest*
13513 # SGI C++ compiler will create directory out/ii_files/ for
13514 # template instantiation
13515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13516 $RM out/* && rmdir out
13517 cd ..
13518 $RM -r conftest
13519 $RM conftest*
13520
13521fi
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13523$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13524
13525
13526
13527
13528hard_links="nottested"
13529if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13530 # do not overwrite the value of need_locks provided by the user
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13532$as_echo_n "checking if we can lock with hard links... " >&6; }
13533 hard_links=yes
13534 $RM conftest*
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 touch conftest.a
13537 ln conftest.a conftest.b 2>&5 || hard_links=no
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13540$as_echo "$hard_links" >&6; }
13541 if test "$hard_links" = no; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13543$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13544 need_locks=warn
13545 fi
13546else
13547 need_locks=no
13548fi
13549
13550
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13553$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13554
13555 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556 case $host_os in
13557 aix[4-9]*)
13558 # If we're using GNU nm, then we don't want the "-C" option.
13559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13560 # Also, AIX nm treats weak defined symbols like other global defined
13561 # symbols, whereas GNU nm marks them as "W".
13562 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13563 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'
13564 else
13565 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'
13566 fi
13567 ;;
13568 pw32*)
13569 export_symbols_cmds_CXX="$ltdll_cmds"
13570 ;;
13571 cygwin* | mingw* | cegcc*)
13572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13573 ;;
13574 *)
13575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13576 ;;
13577 esac
13578 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13579
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13581$as_echo "$ld_shlibs_CXX" >&6; }
13582test "$ld_shlibs_CXX" = no && can_build_shared=no
13583
13584with_gnu_ld_CXX=$with_gnu_ld
13585
13586
13587
13588
13589
13590
13591#
13592# Do we need to explicitly link libc?
13593#
13594case "x$archive_cmds_need_lc_CXX" in
13595x|xyes)
13596 # Assume -lc should be added
13597 archive_cmds_need_lc_CXX=yes
13598
13599 if test "$enable_shared" = yes && test "$GCC" = yes; then
13600 case $archive_cmds_CXX in
13601 *'~'*)
13602 # FIXME: we may have to deal with multi-command sequences.
13603 ;;
13604 '$CC '*)
13605 # Test whether the compiler implicitly links with -lc since on some
13606 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13607 # to ld, don't add -lc before -lgcc.
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13609$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13610if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612else
13613 $RM conftest*
13614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13615
13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13617 (eval $ac_compile) 2>&5
13618 ac_status=$?
13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13620 test $ac_status = 0; } 2>conftest.err; then
13621 soname=conftest
13622 lib=conftest
13623 libobjs=conftest.$ac_objext
13624 deplibs=
13625 wl=$lt_prog_compiler_wl_CXX
13626 pic_flag=$lt_prog_compiler_pic_CXX
13627 compiler_flags=-v
13628 linker_flags=-v
13629 verstring=
13630 output_objdir=.
13631 libname=conftest
13632 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13633 allow_undefined_flag_CXX=
13634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13635 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13636 ac_status=$?
13637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13638 test $ac_status = 0; }
13639 then
13640 lt_cv_archive_cmds_need_lc_CXX=no
13641 else
13642 lt_cv_archive_cmds_need_lc_CXX=yes
13643 fi
13644 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13645 else
13646 cat conftest.err 1>&5
13647 fi
13648 $RM conftest*
13649
13650fi
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13652$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13653 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13654 ;;
13655 esac
13656 fi
13657 ;;
13658esac
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13724$as_echo_n "checking dynamic linker characteristics... " >&6; }
13725
13726library_names_spec=
13727libname_spec='lib$name'
13728soname_spec=
13729shrext_cmds=".so"
13730postinstall_cmds=
13731postuninstall_cmds=
13732finish_cmds=
13733finish_eval=
13734shlibpath_var=
13735shlibpath_overrides_runpath=unknown
13736version_type=none
13737dynamic_linker="$host_os ld.so"
13738sys_lib_dlsearch_path_spec="/lib /usr/lib"
13739need_lib_prefix=unknown
13740hardcode_into_libs=no
13741
13742# when you set need_version to no, make sure it does not cause -set_version
13743# flags to be left without arguments
13744need_version=unknown
13745
13746case $host_os in
13747aix3*)
13748 version_type=linux
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13750 shlibpath_var=LIBPATH
13751
13752 # AIX 3 has no versioning support, so we append a major version to the name.
13753 soname_spec='${libname}${release}${shared_ext}$major'
13754 ;;
13755
13756aix[4-9]*)
13757 version_type=linux
13758 need_lib_prefix=no
13759 need_version=no
13760 hardcode_into_libs=yes
13761 if test "$host_cpu" = ia64; then
13762 # AIX 5 supports IA64
13763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13764 shlibpath_var=LD_LIBRARY_PATH
13765 else
13766 # With GCC up to 2.95.x, collect2 would create an import file
13767 # for dependence libraries. The import file would start with
13768 # the line `#! .'. This would cause the generated library to
13769 # depend on `.', always an invalid library. This was fixed in
13770 # development snapshots of GCC prior to 3.0.
13771 case $host_os in
13772 aix4 | aix4.[01] | aix4.[01].*)
13773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13774 echo ' yes '
13775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13776 :
13777 else
13778 can_build_shared=no
13779 fi
13780 ;;
13781 esac
13782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13783 # soname into executable. Probably we can add versioning support to
13784 # collect2, so additional links can be useful in future.
13785 if test "$aix_use_runtimelinking" = yes; then
13786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13787 # instead of lib<name>.a to let people know that these are not
13788 # typical AIX shared libraries.
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 else
13791 # We preserve .a as extension for shared libraries through AIX4.2
13792 # and later when we are not doing run time linking.
13793 library_names_spec='${libname}${release}.a $libname.a'
13794 soname_spec='${libname}${release}${shared_ext}$major'
13795 fi
13796 shlibpath_var=LIBPATH
13797 fi
13798 ;;
13799
13800amigaos*)
13801 case $host_cpu in
13802 powerpc)
13803 # Since July 2007 AmigaOS4 officially supports .so libraries.
13804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806 ;;
13807 m68k)
13808 library_names_spec='$libname.ixlibrary $libname.a'
13809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13810 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'
13811 ;;
13812 esac
13813 ;;
13814
13815beos*)
13816 library_names_spec='${libname}${shared_ext}'
13817 dynamic_linker="$host_os ld.so"
13818 shlibpath_var=LIBRARY_PATH
13819 ;;
13820
13821bsdi[45]*)
13822 version_type=linux
13823 need_version=no
13824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13827 shlibpath_var=LD_LIBRARY_PATH
13828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13830 # the default ld.so.conf also contains /usr/contrib/lib and
13831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13832 # libtool to hard-code these into programs
13833 ;;
13834
13835cygwin* | mingw* | pw32* | cegcc*)
13836 version_type=windows
13837 shrext_cmds=".dll"
13838 need_version=no
13839 need_lib_prefix=no
13840
13841 case $GCC,$host_os in
13842 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13843 library_names_spec='$libname.dll.a'
13844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13845 postinstall_cmds='base_file=`basename \${file}`~
13846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13847 dldir=$destdir/`dirname \$dlpath`~
13848 test -d \$dldir || mkdir -p \$dldir~
13849 $install_prog $dir/$dlname \$dldir/$dlname~
13850 chmod a+x \$dldir/$dlname~
13851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13853 fi'
13854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13855 dlpath=$dir/\$dldll~
13856 $RM \$dlpath'
13857 shlibpath_overrides_runpath=yes
13858
13859 case $host_os in
13860 cygwin*)
13861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13863
13864 ;;
13865 mingw* | cegcc*)
13866 # MinGW DLLs use traditional 'lib' prefix
13867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13868 ;;
13869 pw32*)
13870 # pw32 DLLs use 'pw' prefix rather than 'lib'
13871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13872 ;;
13873 esac
13874 ;;
13875
13876 *)
13877 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13878 ;;
13879 esac
13880 dynamic_linker='Win32 ld.exe'
13881 # FIXME: first we should search . and the directory the executable is in
13882 shlibpath_var=PATH
13883 ;;
13884
13885darwin* | rhapsody*)
13886 dynamic_linker="$host_os dyld"
13887 version_type=darwin
13888 need_lib_prefix=no
13889 need_version=no
13890 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13891 soname_spec='${libname}${release}${major}$shared_ext'
13892 shlibpath_overrides_runpath=yes
13893 shlibpath_var=DYLD_LIBRARY_PATH
13894 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13895
13896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13897 ;;
13898
13899dgux*)
13900 version_type=linux
13901 need_lib_prefix=no
13902 need_version=no
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13904 soname_spec='${libname}${release}${shared_ext}$major'
13905 shlibpath_var=LD_LIBRARY_PATH
13906 ;;
13907
13908freebsd* | dragonfly*)
13909 # DragonFly does not have aout. When/if they implement a new
13910 # versioning mechanism, adjust this.
13911 if test -x /usr/bin/objformat; then
13912 objformat=`/usr/bin/objformat`
13913 else
13914 case $host_os in
13915 freebsd[23].*) objformat=aout ;;
13916 *) objformat=elf ;;
13917 esac
13918 fi
13919 version_type=freebsd-$objformat
13920 case $version_type in
13921 freebsd-elf*)
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13923 need_version=no
13924 need_lib_prefix=no
13925 ;;
13926 freebsd-*)
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13928 need_version=yes
13929 ;;
13930 esac
13931 shlibpath_var=LD_LIBRARY_PATH
13932 case $host_os in
13933 freebsd2.*)
13934 shlibpath_overrides_runpath=yes
13935 ;;
13936 freebsd3.[01]* | freebsdelf3.[01]*)
13937 shlibpath_overrides_runpath=yes
13938 hardcode_into_libs=yes
13939 ;;
13940 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13941 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13942 shlibpath_overrides_runpath=no
13943 hardcode_into_libs=yes
13944 ;;
13945 *) # from 4.6 on, and DragonFly
13946 shlibpath_overrides_runpath=yes
13947 hardcode_into_libs=yes
13948 ;;
13949 esac
13950 ;;
13951
13952gnu*)
13953 version_type=linux
13954 need_lib_prefix=no
13955 need_version=no
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 hardcode_into_libs=yes
13960 ;;
13961
13962haiku*)
13963 version_type=linux
13964 need_lib_prefix=no
13965 need_version=no
13966 dynamic_linker="$host_os runtime_loader"
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 shlibpath_var=LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
13971 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13972 hardcode_into_libs=yes
13973 ;;
13974
13975hpux9* | hpux10* | hpux11*)
13976 # Give a soname corresponding to the major version so that dld.sl refuses to
13977 # link against other versions.
13978 version_type=sunos
13979 need_lib_prefix=no
13980 need_version=no
13981 case $host_cpu in
13982 ia64*)
13983 shrext_cmds='.so'
13984 hardcode_into_libs=yes
13985 dynamic_linker="$host_os dld.so"
13986 shlibpath_var=LD_LIBRARY_PATH
13987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 if test "X$HPUX_IA64_MODE" = X32; then
13991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13992 else
13993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13994 fi
13995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13996 ;;
13997 hppa*64*)
13998 shrext_cmds='.sl'
13999 hardcode_into_libs=yes
14000 dynamic_linker="$host_os dld.sl"
14001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14004 soname_spec='${libname}${release}${shared_ext}$major'
14005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14007 ;;
14008 *)
14009 shrext_cmds='.sl'
14010 dynamic_linker="$host_os dld.sl"
14011 shlibpath_var=SHLIB_PATH
14012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 soname_spec='${libname}${release}${shared_ext}$major'
14015 ;;
14016 esac
14017 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14018 postinstall_cmds='chmod 555 $lib'
14019 # or fails outright, so override atomically:
14020 install_override_mode=555
14021 ;;
14022
14023interix[3-9]*)
14024 version_type=linux
14025 need_lib_prefix=no
14026 need_version=no
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 shlibpath_overrides_runpath=no
14032 hardcode_into_libs=yes
14033 ;;
14034
14035irix5* | irix6* | nonstopux*)
14036 case $host_os in
14037 nonstopux*) version_type=nonstopux ;;
14038 *)
14039 if test "$lt_cv_prog_gnu_ld" = yes; then
14040 version_type=linux
14041 else
14042 version_type=irix
14043 fi ;;
14044 esac
14045 need_lib_prefix=no
14046 need_version=no
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14049 case $host_os in
14050 irix5* | nonstopux*)
14051 libsuff= shlibsuff=
14052 ;;
14053 *)
14054 case $LD in # libtool.m4 will add one of these switches to LD
14055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14056 libsuff= shlibsuff= libmagic=32-bit;;
14057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14058 libsuff=32 shlibsuff=N32 libmagic=N32;;
14059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14061 *) libsuff= shlibsuff= libmagic=never-match;;
14062 esac
14063 ;;
14064 esac
14065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14066 shlibpath_overrides_runpath=no
14067 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14068 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14069 hardcode_into_libs=yes
14070 ;;
14071
14072# No shared lib support for Linux oldld, aout, or coff.
14073linux*oldld* | linux*aout* | linux*coff*)
14074 dynamic_linker=no
14075 ;;
14076
14077# This must be Linux ELF.
14078linux* | k*bsd*-gnu | kopensolaris*-gnu)
14079 version_type=linux
14080 need_lib_prefix=no
14081 need_version=no
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14083 soname_spec='${libname}${release}${shared_ext}$major'
14084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=no
14087
14088 # Some binutils ld are patched to set DT_RUNPATH
14089 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091else
14092 lt_cv_shlibpath_overrides_runpath=no
14093 save_LDFLAGS=$LDFLAGS
14094 save_libdir=$libdir
14095 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14096 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h. */
14099
14100int
14101main ()
14102{
14103
14104 ;
14105 return 0;
14106}
14107_ACEOF
14108if ac_fn_cxx_try_link "$LINENO"; then :
14109 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14110 lt_cv_shlibpath_overrides_runpath=yes
14111fi
14112fi
14113rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LDFLAGS=$save_LDFLAGS
14116 libdir=$save_libdir
14117
14118fi
14119
14120 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14121
14122 # This implies no fast_install, which is unacceptable.
14123 # Some rework will be needed to allow for fast_install
14124 # before this can be enabled.
14125 hardcode_into_libs=yes
14126
14127 # Append ld.so.conf contents to the search path
14128 if test -f /etc/ld.so.conf; then
14129 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' ' '`
14130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14131 fi
14132
14133 # We used to test for /lib/ld.so.1 and disable shared libraries on
14134 # powerpc, because MkLinux only supported shared libraries with the
14135 # GNU dynamic linker. Since this was broken with cross compilers,
14136 # most powerpc-linux boxes support dynamic linking these days and
14137 # people can always --disable-shared, the test was removed, and we
14138 # assume the GNU/Linux dynamic linker is in use.
14139 dynamic_linker='GNU/Linux ld.so'
14140 ;;
14141
14142netbsd*)
14143 version_type=sunos
14144 need_lib_prefix=no
14145 need_version=no
14146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14149 dynamic_linker='NetBSD (a.out) ld.so'
14150 else
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14152 soname_spec='${libname}${release}${shared_ext}$major'
14153 dynamic_linker='NetBSD ld.elf_so'
14154 fi
14155 shlibpath_var=LD_LIBRARY_PATH
14156 shlibpath_overrides_runpath=yes
14157 hardcode_into_libs=yes
14158 ;;
14159
14160newsos6)
14161 version_type=linux
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 shlibpath_overrides_runpath=yes
14165 ;;
14166
14167*nto* | *qnx*)
14168 version_type=qnx
14169 need_lib_prefix=no
14170 need_version=no
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 shlibpath_overrides_runpath=no
14175 hardcode_into_libs=yes
14176 dynamic_linker='ldqnx.so'
14177 ;;
14178
14179openbsd*)
14180 version_type=sunos
14181 sys_lib_dlsearch_path_spec="/usr/lib"
14182 need_lib_prefix=no
14183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14184 case $host_os in
14185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14186 *) need_version=no ;;
14187 esac
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14192 case $host_os in
14193 openbsd2.[89] | openbsd2.[89].*)
14194 shlibpath_overrides_runpath=no
14195 ;;
14196 *)
14197 shlibpath_overrides_runpath=yes
14198 ;;
14199 esac
14200 else
14201 shlibpath_overrides_runpath=yes
14202 fi
14203 ;;
14204
14205os2*)
14206 libname_spec='$name'
14207 shrext_cmds=".dll"
14208 need_lib_prefix=no
14209 library_names_spec='$libname${shared_ext} $libname.a'
14210 dynamic_linker='OS/2 ld.exe'
14211 shlibpath_var=LIBPATH
14212 ;;
14213
14214osf3* | osf4* | osf5*)
14215 version_type=osf
14216 need_lib_prefix=no
14217 need_version=no
14218 soname_spec='${libname}${release}${shared_ext}$major'
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220 shlibpath_var=LD_LIBRARY_PATH
14221 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14222 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14223 ;;
14224
14225rdos*)
14226 dynamic_linker=no
14227 ;;
14228
14229solaris*)
14230 version_type=linux
14231 need_lib_prefix=no
14232 need_version=no
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 soname_spec='${libname}${release}${shared_ext}$major'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 shlibpath_overrides_runpath=yes
14237 hardcode_into_libs=yes
14238 # ldd complains unless libraries are executable
14239 postinstall_cmds='chmod +x $lib'
14240 ;;
14241
14242sunos4*)
14243 version_type=sunos
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=yes
14248 if test "$with_gnu_ld" = yes; then
14249 need_lib_prefix=no
14250 fi
14251 need_version=yes
14252 ;;
14253
14254sysv4 | sysv4.3*)
14255 version_type=linux
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 case $host_vendor in
14260 sni)
14261 shlibpath_overrides_runpath=no
14262 need_lib_prefix=no
14263 runpath_var=LD_RUN_PATH
14264 ;;
14265 siemens)
14266 need_lib_prefix=no
14267 ;;
14268 motorola)
14269 need_lib_prefix=no
14270 need_version=no
14271 shlibpath_overrides_runpath=no
14272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14273 ;;
14274 esac
14275 ;;
14276
14277sysv4*MP*)
14278 if test -d /usr/nec ;then
14279 version_type=linux
14280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14281 soname_spec='$libname${shared_ext}.$major'
14282 shlibpath_var=LD_LIBRARY_PATH
14283 fi
14284 ;;
14285
14286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14287 version_type=freebsd-elf
14288 need_lib_prefix=no
14289 need_version=no
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 shlibpath_overrides_runpath=yes
14294 hardcode_into_libs=yes
14295 if test "$with_gnu_ld" = yes; then
14296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14297 else
14298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14299 case $host_os in
14300 sco3.2v5*)
14301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14302 ;;
14303 esac
14304 fi
14305 sys_lib_dlsearch_path_spec='/usr/lib'
14306 ;;
14307
14308tpf*)
14309 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14310 version_type=linux
14311 need_lib_prefix=no
14312 need_version=no
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 shlibpath_overrides_runpath=no
14316 hardcode_into_libs=yes
14317 ;;
14318
14319uts4*)
14320 version_type=linux
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 shlibpath_var=LD_LIBRARY_PATH
14324 ;;
14325
14326*)
14327 dynamic_linker=no
14328 ;;
14329esac
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14331$as_echo "$dynamic_linker" >&6; }
14332test "$dynamic_linker" = no && can_build_shared=no
14333
14334variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14335if test "$GCC" = yes; then
14336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14337fi
14338
14339if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14340 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14341fi
14342if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14343 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14344fi
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14384$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14385hardcode_action_CXX=
14386if test -n "$hardcode_libdir_flag_spec_CXX" ||
14387 test -n "$runpath_var_CXX" ||
14388 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14389
14390 # We can hardcode non-existent directories.
14391 if test "$hardcode_direct_CXX" != no &&
14392 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14393 # have to relink, otherwise we might link with an installed library
14394 # when we should be linking with a yet-to-be-installed one
14395 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14396 test "$hardcode_minus_L_CXX" != no; then
14397 # Linking always hardcodes the temporary library directory.
14398 hardcode_action_CXX=relink
14399 else
14400 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14401 hardcode_action_CXX=immediate
14402 fi
14403else
14404 # We cannot hardcode anything, or else we can only hardcode existing
14405 # directories.
14406 hardcode_action_CXX=unsupported
14407fi
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14409$as_echo "$hardcode_action_CXX" >&6; }
14410
14411if test "$hardcode_action_CXX" = relink ||
14412 test "$inherit_rpath_CXX" = yes; then
14413 # Fast installation is not supported
14414 enable_fast_install=no
14415elif test "$shlibpath_overrides_runpath" = yes ||
14416 test "$enable_shared" = no; then
14417 # Fast installation is not necessary
14418 enable_fast_install=needless
14419fi
14420
14421
14422
14423
14424
14425
14426
14427 fi # test -n "$compiler"
14428
14429 CC=$lt_save_CC
14430 LDCXX=$LD
14431 LD=$lt_save_LD
14432 GCC=$lt_save_GCC
14433 with_gnu_ld=$lt_save_with_gnu_ld
14434 lt_cv_path_LDCXX=$lt_cv_path_LD
14435 lt_cv_path_LD=$lt_save_path_LD
14436 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14437 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14438fi # test "$_lt_caught_CXX_error" != yes
14439
14440ac_ext=c
14441ac_cpp='$CPP $CPPFLAGS'
14442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14444ac_compiler_gnu=$ac_cv_c_compiler_gnu
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458 ac_config_commands="$ac_config_commands libtool"
14459
14460
14461
14462
14463# Only expand once:
14464
14465
14466# Forbid libtool to hardcode RPATH, because we want to be able to specify
14467# library search directory using LD_LIBRARY_PATH
14468hardcode_into_libs=no
14469
14470
14471
14472
14473
14474if test $enable_shared = yes; then
14475 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14476 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14477else
14478 link_offloadmic_host="-loffloadmic_host $LIBS"
14479 link_offloadmic_target="-loffloadmic_target $LIBS"
14480fi
14481
14482
14483
14484# Must be last
14485cat >confcache <<\_ACEOF
14486# This file is a shell script that caches the results of configure
14487# tests run on this system so they can be shared between configure
14488# scripts and configure runs, see configure's option --config-cache.
14489# It is not useful on other systems. If it contains results you don't
14490# want to keep, you may remove or edit it.
14491#
14492# config.status only pays attention to the cache file if you give it
14493# the --recheck option to rerun configure.
14494#
14495# `ac_cv_env_foo' variables (set or unset) will be overridden when
14496# loading this file, other *unset* `ac_cv_foo' will be assigned the
14497# following values.
14498
14499_ACEOF
14500
14501# The following way of writing the cache mishandles newlines in values,
14502# but we know of no workaround that is simple, portable, and efficient.
14503# So, we kill variables containing newlines.
14504# Ultrix sh set writes to stderr and can't be redirected directly,
14505# and sets the high bit in the cache file unless we assign to the vars.
14506(
14507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14508 eval ac_val=\$$ac_var
14509 case $ac_val in #(
14510 *${as_nl}*)
14511 case $ac_var in #(
14512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14513$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14514 esac
14515 case $ac_var in #(
14516 _ | IFS | as_nl) ;; #(
14517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14518 *) { eval $ac_var=; unset $ac_var;} ;;
14519 esac ;;
14520 esac
14521 done
14522
14523 (set) 2>&1 |
14524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14525 *${as_nl}ac_space=\ *)
14526 # `set' does not quote correctly, so add quotes: double-quote
14527 # substitution turns \\\\ into \\, and sed turns \\ into \.
14528 sed -n \
14529 "s/'/'\\\\''/g;
14530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14531 ;; #(
14532 *)
14533 # `set' quotes correctly as required by POSIX, so do not add quotes.
14534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14535 ;;
14536 esac |
14537 sort
14538) |
14539 sed '
14540 /^ac_cv_env_/b end
14541 t clear
14542 :clear
14543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14544 t end
14545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14546 :end' >>confcache
14547if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14548 if test -w "$cache_file"; then
14549 test "x$cache_file" != "x/dev/null" &&
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14551$as_echo "$as_me: updating cache $cache_file" >&6;}
14552 cat confcache >$cache_file
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14555$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14556 fi
14557fi
14558rm -f confcache
14559
14560test "x$prefix" = xNONE && prefix=$ac_default_prefix
14561# Let make expand exec_prefix.
14562test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14563
14564# Transform confdefs.h into DEFS.
14565# Protect against shell expansion while executing Makefile rules.
14566# Protect against Makefile macro expansion.
14567#
14568# If the first sed substitution is executed (which looks for macros that
14569# take arguments), then branch to the quote section. Otherwise,
14570# look for a macro that doesn't take arguments.
14571ac_script='
14572:mline
14573/\\$/{
14574 N
14575 s,\\\n,,
14576 b mline
14577}
14578t clear
14579:clear
14580s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14581t quote
14582s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14583t quote
14584b any
14585:quote
14586s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14587s/\[/\\&/g
14588s/\]/\\&/g
14589s/\$/$$/g
14590H
14591:any
14592${
14593 g
14594 s/^\n//
14595 s/\n/ /g
14596 p
14597}
14598'
14599DEFS=`sed -n "$ac_script" confdefs.h`
14600
14601
14602ac_libobjs=
14603ac_ltlibobjs=
14604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14605 # 1. Remove the extension, and $U if already installed.
14606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14609 # will be set to the directory where LIBOBJS objects are built.
14610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14612done
14613LIBOBJS=$ac_libobjs
14614
14615LTLIBOBJS=$ac_ltlibobjs
14616
14617
14618 if test -n "$EXEEXT"; then
14619 am__EXEEXT_TRUE=
14620 am__EXEEXT_FALSE='#'
14621else
14622 am__EXEEXT_TRUE='#'
14623 am__EXEEXT_FALSE=
14624fi
14625
14626if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14627 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14628Usually this means the macro was only invoked conditionally." "$LINENO" 5
14629fi
14630if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14631 as_fn_error "conditional \"AMDEP\" was never defined.
14632Usually this means the macro was only invoked conditionally." "$LINENO" 5
14633fi
14634if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14635 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14636Usually this means the macro was only invoked conditionally." "$LINENO" 5
14637fi
14638if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14639 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14640Usually this means the macro was only invoked conditionally." "$LINENO" 5
14641fi
14642if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14643 as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14644Usually this means the macro was only invoked conditionally." "$LINENO" 5
14645fi
14646
14647: ${CONFIG_STATUS=./config.status}
14648ac_write_fail=0
14649ac_clean_files_save=$ac_clean_files
14650ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14652$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14653as_write_fail=0
14654cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14655#! $SHELL
14656# Generated by $as_me.
14657# Run this file to recreate the current configuration.
14658# Compiler output produced by configure, useful for debugging
14659# configure, is in config.log if it exists.
14660
14661debug=false
14662ac_cs_recheck=false
14663ac_cs_silent=false
14664
14665SHELL=\${CONFIG_SHELL-$SHELL}
14666export SHELL
14667_ASEOF
14668cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14669## -------------------- ##
14670## M4sh Initialization. ##
14671## -------------------- ##
14672
14673# Be more Bourne compatible
14674DUALCASE=1; export DUALCASE # for MKS sh
14675if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14676 emulate sh
14677 NULLCMD=:
14678 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14679 # is contrary to our usage. Disable this feature.
14680 alias -g '${1+"$@"}'='"$@"'
14681 setopt NO_GLOB_SUBST
14682else
14683 case `(set -o) 2>/dev/null` in #(
14684 *posix*) :
14685 set -o posix ;; #(
14686 *) :
14687 ;;
14688esac
14689fi
14690
14691
14692as_nl='
14693'
14694export as_nl
14695# Printing a long string crashes Solaris 7 /usr/bin/printf.
14696as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14698as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14699# Prefer a ksh shell builtin over an external printf program on Solaris,
14700# but without wasting forks for bash or zsh.
14701if test -z "$BASH_VERSION$ZSH_VERSION" \
14702 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14703 as_echo='print -r --'
14704 as_echo_n='print -rn --'
14705elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14706 as_echo='printf %s\n'
14707 as_echo_n='printf %s'
14708else
14709 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14710 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14711 as_echo_n='/usr/ucb/echo -n'
14712 else
14713 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14714 as_echo_n_body='eval
14715 arg=$1;
14716 case $arg in #(
14717 *"$as_nl"*)
14718 expr "X$arg" : "X\\(.*\\)$as_nl";
14719 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14720 esac;
14721 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14722 '
14723 export as_echo_n_body
14724 as_echo_n='sh -c $as_echo_n_body as_echo'
14725 fi
14726 export as_echo_body
14727 as_echo='sh -c $as_echo_body as_echo'
14728fi
14729
14730# The user is always right.
14731if test "${PATH_SEPARATOR+set}" != set; then
14732 PATH_SEPARATOR=:
14733 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14734 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14735 PATH_SEPARATOR=';'
14736 }
14737fi
14738
14739
14740# IFS
14741# We need space, tab and new line, in precisely that order. Quoting is
14742# there to prevent editors from complaining about space-tab.
14743# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14744# splitting by setting IFS to empty value.)
14745IFS=" "" $as_nl"
14746
14747# Find who we are. Look in the path if we contain no directory separator.
14748case $0 in #((
14749 *[\\/]* ) as_myself=$0 ;;
14750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14751for as_dir in $PATH
14752do
14753 IFS=$as_save_IFS
14754 test -z "$as_dir" && as_dir=.
14755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14756 done
14757IFS=$as_save_IFS
14758
14759 ;;
14760esac
14761# We did not find ourselves, most probably we were run as `sh COMMAND'
14762# in which case we are not to be found in the path.
14763if test "x$as_myself" = x; then
14764 as_myself=$0
14765fi
14766if test ! -f "$as_myself"; then
14767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14768 exit 1
14769fi
14770
14771# Unset variables that we do not need and which cause bugs (e.g. in
14772# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14773# suppresses any "Segmentation fault" message there. '((' could
14774# trigger a bug in pdksh 5.2.14.
14775for as_var in BASH_ENV ENV MAIL MAILPATH
14776do eval test x\${$as_var+set} = xset \
14777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14778done
14779PS1='$ '
14780PS2='> '
14781PS4='+ '
14782
14783# NLS nuisances.
14784LC_ALL=C
14785export LC_ALL
14786LANGUAGE=C
14787export LANGUAGE
14788
14789# CDPATH.
14790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14791
14792
14793# as_fn_error ERROR [LINENO LOG_FD]
14794# ---------------------------------
14795# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14796# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14797# script with status $?, using 1 if that was 0.
14798as_fn_error ()
14799{
14800 as_status=$?; test $as_status -eq 0 && as_status=1
14801 if test "$3"; then
14802 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14804 fi
14805 $as_echo "$as_me: error: $1" >&2
14806 as_fn_exit $as_status
14807} # as_fn_error
14808
14809
14810# as_fn_set_status STATUS
14811# -----------------------
14812# Set $? to STATUS, without forking.
14813as_fn_set_status ()
14814{
14815 return $1
14816} # as_fn_set_status
14817
14818# as_fn_exit STATUS
14819# -----------------
14820# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14821as_fn_exit ()
14822{
14823 set +e
14824 as_fn_set_status $1
14825 exit $1
14826} # as_fn_exit
14827
14828# as_fn_unset VAR
14829# ---------------
14830# Portably unset VAR.
14831as_fn_unset ()
14832{
14833 { eval $1=; unset $1;}
14834}
14835as_unset=as_fn_unset
14836# as_fn_append VAR VALUE
14837# ----------------------
14838# Append the text in VALUE to the end of the definition contained in VAR. Take
14839# advantage of any shell optimizations that allow amortized linear growth over
14840# repeated appends, instead of the typical quadratic growth present in naive
14841# implementations.
14842if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14843 eval 'as_fn_append ()
14844 {
14845 eval $1+=\$2
14846 }'
14847else
14848 as_fn_append ()
14849 {
14850 eval $1=\$$1\$2
14851 }
14852fi # as_fn_append
14853
14854# as_fn_arith ARG...
14855# ------------------
14856# Perform arithmetic evaluation on the ARGs, and store the result in the
14857# global $as_val. Take advantage of shells that can avoid forks. The arguments
14858# must be portable across $(()) and expr.
14859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14860 eval 'as_fn_arith ()
14861 {
14862 as_val=$(( $* ))
14863 }'
14864else
14865 as_fn_arith ()
14866 {
14867 as_val=`expr "$@" || test $? -eq 1`
14868 }
14869fi # as_fn_arith
14870
14871
14872if expr a : '\(a\)' >/dev/null 2>&1 &&
14873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14874 as_expr=expr
14875else
14876 as_expr=false
14877fi
14878
14879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14880 as_basename=basename
14881else
14882 as_basename=false
14883fi
14884
14885if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14886 as_dirname=dirname
14887else
14888 as_dirname=false
14889fi
14890
14891as_me=`$as_basename -- "$0" ||
14892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14893 X"$0" : 'X\(//\)$' \| \
14894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14895$as_echo X/"$0" |
14896 sed '/^.*\/\([^/][^/]*\)\/*$/{
14897 s//\1/
14898 q
14899 }
14900 /^X\/\(\/\/\)$/{
14901 s//\1/
14902 q
14903 }
14904 /^X\/\(\/\).*/{
14905 s//\1/
14906 q
14907 }
14908 s/.*/./; q'`
14909
14910# Avoid depending upon Character Ranges.
14911as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14913as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14914as_cr_digits='0123456789'
14915as_cr_alnum=$as_cr_Letters$as_cr_digits
14916
14917ECHO_C= ECHO_N= ECHO_T=
14918case `echo -n x` in #(((((
14919-n*)
14920 case `echo 'xy\c'` in
14921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14922 xy) ECHO_C='\c';;
14923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14924 ECHO_T=' ';;
14925 esac;;
14926*)
14927 ECHO_N='-n';;
14928esac
14929
14930rm -f conf$$ conf$$.exe conf$$.file
14931if test -d conf$$.dir; then
14932 rm -f conf$$.dir/conf$$.file
14933else
14934 rm -f conf$$.dir
14935 mkdir conf$$.dir 2>/dev/null
14936fi
14937if (echo >conf$$.file) 2>/dev/null; then
14938 if ln -s conf$$.file conf$$ 2>/dev/null; then
14939 as_ln_s='ln -s'
14940 # ... but there are two gotchas:
14941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14943 # In both cases, we have to default to `cp -p'.
14944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14945 as_ln_s='cp -p'
14946 elif ln conf$$.file conf$$ 2>/dev/null; then
14947 as_ln_s=ln
14948 else
14949 as_ln_s='cp -p'
14950 fi
14951else
14952 as_ln_s='cp -p'
14953fi
14954rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14955rmdir conf$$.dir 2>/dev/null
14956
14957
14958# as_fn_mkdir_p
14959# -------------
14960# Create "$as_dir" as a directory, including parents if necessary.
14961as_fn_mkdir_p ()
14962{
14963
14964 case $as_dir in #(
14965 -*) as_dir=./$as_dir;;
14966 esac
14967 test -d "$as_dir" || eval $as_mkdir_p || {
14968 as_dirs=
14969 while :; do
14970 case $as_dir in #(
14971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14972 *) as_qdir=$as_dir;;
14973 esac
14974 as_dirs="'$as_qdir' $as_dirs"
14975 as_dir=`$as_dirname -- "$as_dir" ||
14976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14977 X"$as_dir" : 'X\(//\)[^/]' \| \
14978 X"$as_dir" : 'X\(//\)$' \| \
14979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14980$as_echo X"$as_dir" |
14981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14982 s//\1/
14983 q
14984 }
14985 /^X\(\/\/\)[^/].*/{
14986 s//\1/
14987 q
14988 }
14989 /^X\(\/\/\)$/{
14990 s//\1/
14991 q
14992 }
14993 /^X\(\/\).*/{
14994 s//\1/
14995 q
14996 }
14997 s/.*/./; q'`
14998 test -d "$as_dir" && break
14999 done
15000 test -z "$as_dirs" || eval "mkdir $as_dirs"
15001 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15002
15003
15004} # as_fn_mkdir_p
15005if mkdir -p . 2>/dev/null; then
15006 as_mkdir_p='mkdir -p "$as_dir"'
15007else
15008 test -d ./-p && rmdir ./-p
15009 as_mkdir_p=false
15010fi
15011
15012if test -x / >/dev/null 2>&1; then
15013 as_test_x='test -x'
15014else
15015 if ls -dL / >/dev/null 2>&1; then
15016 as_ls_L_option=L
15017 else
15018 as_ls_L_option=
15019 fi
15020 as_test_x='
15021 eval sh -c '\''
15022 if test -d "$1"; then
15023 test -d "$1/.";
15024 else
15025 case $1 in #(
15026 -*)set "./$1";;
15027 esac;
15028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15029 ???[sx]*):;;*)false;;esac;fi
15030 '\'' sh
15031 '
15032fi
15033as_executable_p=$as_test_x
15034
15035# Sed expression to map a string onto a valid CPP name.
15036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15037
15038# Sed expression to map a string onto a valid variable name.
15039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15040
15041
15042exec 6>&1
15043## ----------------------------------- ##
15044## Main body of $CONFIG_STATUS script. ##
15045## ----------------------------------- ##
15046_ASEOF
15047test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15048
15049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15050# Save the log message, to keep $0 and so on meaningful, and to
15051# report actual input values of CONFIG_FILES etc. instead of their
15052# values after options handling.
15053ac_log="
15054This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15055generated by GNU Autoconf 2.64. Invocation command line was
15056
15057 CONFIG_FILES = $CONFIG_FILES
15058 CONFIG_HEADERS = $CONFIG_HEADERS
15059 CONFIG_LINKS = $CONFIG_LINKS
15060 CONFIG_COMMANDS = $CONFIG_COMMANDS
15061 $ $0 $@
15062
15063on `(hostname || uname -n) 2>/dev/null | sed 1q`
15064"
15065
15066_ACEOF
15067
15068case $ac_config_files in *"
15069"*) set x $ac_config_files; shift; ac_config_files=$*;;
15070esac
15071
15072
15073
15074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075# Files that config.status was made for.
15076config_files="$ac_config_files"
15077config_commands="$ac_config_commands"
15078
15079_ACEOF
15080
15081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082ac_cs_usage="\
15083\`$as_me' instantiates files and other configuration actions
15084from templates according to the current configuration. Unless the files
15085and actions are specified as TAGs, all are instantiated by default.
15086
15087Usage: $0 [OPTION]... [TAG]...
15088
15089 -h, --help print this help, then exit
15090 -V, --version print version number and configuration settings, then exit
15091 -q, --quiet, --silent
15092 do not print progress messages
15093 -d, --debug don't remove temporary files
15094 --recheck update $as_me by reconfiguring in the same conditions
15095 --file=FILE[:TEMPLATE]
15096 instantiate the configuration file FILE
15097
15098Configuration files:
15099$config_files
15100
15101Configuration commands:
15102$config_commands
15103
15104Report bugs to the package provider."
15105
15106_ACEOF
15107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15108ac_cs_version="\\
15109MIC Offload Runtime Library config.status 1.0
15110configured by $0, generated by GNU Autoconf 2.64,
15111 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15112
15113Copyright (C) 2009 Free Software Foundation, Inc.
15114This config.status script is free software; the Free Software Foundation
15115gives unlimited permission to copy, distribute and modify it."
15116
15117ac_pwd='$ac_pwd'
15118srcdir='$srcdir'
15119INSTALL='$INSTALL'
15120MKDIR_P='$MKDIR_P'
15121AWK='$AWK'
15122test -n "\$AWK" || AWK=awk
15123_ACEOF
15124
15125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15126# The default lists apply if the user does not specify any file.
15127ac_need_defaults=:
15128while test $# != 0
15129do
15130 case $1 in
15131 --*=*)
15132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15134 ac_shift=:
15135 ;;
15136 *)
15137 ac_option=$1
15138 ac_optarg=$2
15139 ac_shift=shift
15140 ;;
15141 esac
15142
15143 case $ac_option in
15144 # Handling of the options.
15145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15146 ac_cs_recheck=: ;;
15147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15148 $as_echo "$ac_cs_version"; exit ;;
15149 --debug | --debu | --deb | --de | --d | -d )
15150 debug=: ;;
15151 --file | --fil | --fi | --f )
15152 $ac_shift
15153 case $ac_optarg in
15154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15155 esac
15156 as_fn_append CONFIG_FILES " '$ac_optarg'"
15157 ac_need_defaults=false;;
15158 --he | --h | --help | --hel | -h )
15159 $as_echo "$ac_cs_usage"; exit ;;
15160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15162 ac_cs_silent=: ;;
15163
15164 # This is an error.
15165 -*) as_fn_error "unrecognized option: \`$1'
15166Try \`$0 --help' for more information." ;;
15167
15168 *) as_fn_append ac_config_targets " $1"
15169 ac_need_defaults=false ;;
15170
15171 esac
15172 shift
15173done
15174
15175ac_configure_extra_args=
15176
15177if $ac_cs_silent; then
15178 exec 6>/dev/null
15179 ac_configure_extra_args="$ac_configure_extra_args --silent"
15180fi
15181
15182_ACEOF
15183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15184if \$ac_cs_recheck; then
15185 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15186 shift
15187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15188 CONFIG_SHELL='$SHELL'
15189 export CONFIG_SHELL
15190 exec "\$@"
15191fi
15192
15193_ACEOF
15194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195exec 5>>config.log
15196{
15197 echo
15198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15199## Running $as_me. ##
15200_ASBOX
15201 $as_echo "$ac_log"
15202} >&5
15203
15204_ACEOF
15205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206#
15207# INIT-COMMANDS
15208#
15209AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15210
15211srcdir="$srcdir"
15212host="$host"
15213target="$target"
15214with_multisubdir="$with_multisubdir"
15215with_multisrctop="$with_multisrctop"
15216with_target_subdir="$with_target_subdir"
15217ac_configure_args="${multilib_arg} ${ac_configure_args}"
15218multi_basedir="$multi_basedir"
15219CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15220CC="$CC"
15221CXX="$CXX"
15222GFORTRAN="$GFORTRAN"
15223GCJ="$GCJ"
15224
15225
15226# The HP-UX ksh and POSIX shell print the target directory to stdout
15227# if CDPATH is set.
15228(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15229
15230sed_quote_subst='$sed_quote_subst'
15231double_quote_subst='$double_quote_subst'
15232delay_variable_subst='$delay_variable_subst'
15233macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15234macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15235enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15236enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15237pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15238enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15239SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15240ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15241host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15242host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15243host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15244build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15245build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15246build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15247SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15248Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15249GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15250EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15251FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15252LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15253NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15254LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15255max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15256ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15257exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15258lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15259lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15260lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15261reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15262reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15263OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15264deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15265file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15266AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15267AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15268STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15269RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15270old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15271old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15272old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15273lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15274CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15275CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15276compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15277GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15278lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15279lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15280lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15281lt_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"`'
15282objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15283MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15284lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15285lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15286lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15287lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15288lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15289need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15290DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15291NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15292LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15293OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15294OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15295libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15296shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15297extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15298archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15299enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15300export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15301whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15302compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15303old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15304old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15305archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15306archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15307module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15308module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15309with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15310allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15311no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15312hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15313hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15314hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15315hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15316hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15317hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15318hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15319hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15320inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15321link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15322fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15323always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15324export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15325exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15326include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15327prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15328file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15329variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15330need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15331need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15332version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15333runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15334shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15335shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15336libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15337library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15338soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15339install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15340postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15341postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15342finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15343finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15344hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15345sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15346sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15347hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15348enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15349enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15350enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15351old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15352striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15353compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15354predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15355postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15356predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15357postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15358compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15359LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15360reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15361reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15362old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15363compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15364GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15365lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15366lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15367lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15368lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15369lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15370archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15371enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15372export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15373whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15374compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15375old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15376old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15377archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15378archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15379module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15380module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15381with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15382allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15383no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15384hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15385hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15386hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15387hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15388hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15389hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15390hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15391hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15392inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15393link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15394fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15395always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15396export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15397exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15398include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15399prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15400file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15401hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15402compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15403predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15404postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15405predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15406postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15407compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15408
15409LTCC='$LTCC'
15410LTCFLAGS='$LTCFLAGS'
15411compiler='$compiler_DEFAULT'
15412
15413# A function that is used when there is no print builtin or printf.
15414func_fallback_echo ()
15415{
15416 eval 'cat <<_LTECHO_EOF
15417\$1
15418_LTECHO_EOF'
15419}
15420
15421# Quote evaled strings.
15422for var in SHELL \
15423ECHO \
15424SED \
15425GREP \
15426EGREP \
15427FGREP \
15428LD \
15429NM \
15430LN_S \
15431lt_SP2NL \
15432lt_NL2SP \
15433reload_flag \
15434OBJDUMP \
15435deplibs_check_method \
15436file_magic_cmd \
15437AR \
15438AR_FLAGS \
15439STRIP \
15440RANLIB \
15441CC \
15442CFLAGS \
15443compiler \
15444lt_cv_sys_global_symbol_pipe \
15445lt_cv_sys_global_symbol_to_cdecl \
15446lt_cv_sys_global_symbol_to_c_name_address \
15447lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15448lt_prog_compiler_no_builtin_flag \
15449lt_prog_compiler_wl \
15450lt_prog_compiler_pic \
15451lt_prog_compiler_static \
15452lt_cv_prog_compiler_c_o \
15453need_locks \
15454DSYMUTIL \
15455NMEDIT \
15456LIPO \
15457OTOOL \
15458OTOOL64 \
15459shrext_cmds \
15460export_dynamic_flag_spec \
15461whole_archive_flag_spec \
15462compiler_needs_object \
15463with_gnu_ld \
15464allow_undefined_flag \
15465no_undefined_flag \
15466hardcode_libdir_flag_spec \
15467hardcode_libdir_flag_spec_ld \
15468hardcode_libdir_separator \
15469fix_srcfile_path \
15470exclude_expsyms \
15471include_expsyms \
15472file_list_spec \
15473variables_saved_for_relink \
15474libname_spec \
15475library_names_spec \
15476soname_spec \
15477install_override_mode \
15478finish_eval \
15479old_striplib \
15480striplib \
15481compiler_lib_search_dirs \
15482predep_objects \
15483postdep_objects \
15484predeps \
15485postdeps \
15486compiler_lib_search_path \
15487LD_CXX \
15488reload_flag_CXX \
15489compiler_CXX \
15490lt_prog_compiler_no_builtin_flag_CXX \
15491lt_prog_compiler_wl_CXX \
15492lt_prog_compiler_pic_CXX \
15493lt_prog_compiler_static_CXX \
15494lt_cv_prog_compiler_c_o_CXX \
15495export_dynamic_flag_spec_CXX \
15496whole_archive_flag_spec_CXX \
15497compiler_needs_object_CXX \
15498with_gnu_ld_CXX \
15499allow_undefined_flag_CXX \
15500no_undefined_flag_CXX \
15501hardcode_libdir_flag_spec_CXX \
15502hardcode_libdir_flag_spec_ld_CXX \
15503hardcode_libdir_separator_CXX \
15504fix_srcfile_path_CXX \
15505exclude_expsyms_CXX \
15506include_expsyms_CXX \
15507file_list_spec_CXX \
15508compiler_lib_search_dirs_CXX \
15509predep_objects_CXX \
15510postdep_objects_CXX \
15511predeps_CXX \
15512postdeps_CXX \
15513compiler_lib_search_path_CXX; do
15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15515 *[\\\\\\\`\\"\\\$]*)
15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15517 ;;
15518 *)
15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15520 ;;
15521 esac
15522done
15523
15524# Double-quote double-evaled strings.
15525for var in reload_cmds \
15526old_postinstall_cmds \
15527old_postuninstall_cmds \
15528old_archive_cmds \
15529extract_expsyms_cmds \
15530old_archive_from_new_cmds \
15531old_archive_from_expsyms_cmds \
15532archive_cmds \
15533archive_expsym_cmds \
15534module_cmds \
15535module_expsym_cmds \
15536export_symbols_cmds \
15537prelink_cmds \
15538postinstall_cmds \
15539postuninstall_cmds \
15540finish_cmds \
15541sys_lib_search_path_spec \
15542sys_lib_dlsearch_path_spec \
15543reload_cmds_CXX \
15544old_archive_cmds_CXX \
15545old_archive_from_new_cmds_CXX \
15546old_archive_from_expsyms_cmds_CXX \
15547archive_cmds_CXX \
15548archive_expsym_cmds_CXX \
15549module_cmds_CXX \
15550module_expsym_cmds_CXX \
15551export_symbols_cmds_CXX \
15552prelink_cmds_CXX; do
15553 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15554 *[\\\\\\\`\\"\\\$]*)
15555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15556 ;;
15557 *)
15558 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15559 ;;
15560 esac
15561done
15562
15563ac_aux_dir='$ac_aux_dir'
15564xsi_shell='$xsi_shell'
15565lt_shell_append='$lt_shell_append'
15566
15567# See if we are running on zsh, and set the options which allow our
15568# commands through without removal of \ escapes INIT.
15569if test -n "\${ZSH_VERSION+set}" ; then
15570 setopt NO_GLOB_SUBST
15571fi
15572
15573
15574 PACKAGE='$PACKAGE'
15575 VERSION='$VERSION'
15576 TIMESTAMP='$TIMESTAMP'
15577 RM='$RM'
15578 ofile='$ofile'
15579
15580
15581
15582
15583
15584
15585_ACEOF
15586
15587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588
15589# Handling of arguments.
15590for ac_config_target in $ac_config_targets
15591do
15592 case $ac_config_target in
15593 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15595 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15596 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15597 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15598 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15599
15600 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15601 esac
15602done
15603
15604
15605# If the user did not use the arguments to specify the items to instantiate,
15606# then the envvar interface is used. Set only those that are not.
15607# We use the long form for the default assignment because of an extremely
15608# bizarre bug on SunOS 4.1.3.
15609if $ac_need_defaults; then
15610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15611 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15612fi
15613
15614# Have a temporary directory for convenience. Make it in the build tree
15615# simply because there is no reason against having it here, and in addition,
15616# creating and moving files from /tmp can sometimes cause problems.
15617# Hook for its removal unless debugging.
15618# Note that there is a small window in which the directory will not be cleaned:
15619# after its creation but before its name has been assigned to `$tmp'.
15620$debug ||
15621{
15622 tmp=
15623 trap 'exit_status=$?
15624 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15625' 0
15626 trap 'as_fn_exit 1' 1 2 13 15
15627}
15628# Create a (secure) tmp directory for tmp files.
15629
15630{
15631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15632 test -n "$tmp" && test -d "$tmp"
15633} ||
15634{
15635 tmp=./conf$$-$RANDOM
15636 (umask 077 && mkdir "$tmp")
15637} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15638
15639# Set up the scripts for CONFIG_FILES section.
15640# No need to generate them if there are no CONFIG_FILES.
15641# This happens for instance with `./config.status config.h'.
15642if test -n "$CONFIG_FILES"; then
15643
15644
15645ac_cr=`echo X | tr X '\015'`
15646# On cygwin, bash can eat \r inside `` if the user requested igncr.
15647# But we know of no other shell where ac_cr would be empty at this
15648# point, so we can use a bashism as a fallback.
15649if test "x$ac_cr" = x; then
15650 eval ac_cr=\$\'\\r\'
15651fi
15652ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15653if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15654 ac_cs_awk_cr='\r'
15655else
15656 ac_cs_awk_cr=$ac_cr
15657fi
15658
15659echo 'BEGIN {' >"$tmp/subs1.awk" &&
15660_ACEOF
15661
15662
15663{
15664 echo "cat >conf$$subs.awk <<_ACEOF" &&
15665 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15666 echo "_ACEOF"
15667} >conf$$subs.sh ||
15668 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15669ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15670ac_delim='%!_!# '
15671for ac_last_try in false false false false false :; do
15672 . ./conf$$subs.sh ||
15673 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15674
15675 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15676 if test $ac_delim_n = $ac_delim_num; then
15677 break
15678 elif $ac_last_try; then
15679 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15680 else
15681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15682 fi
15683done
15684rm -f conf$$subs.sh
15685
15686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15688_ACEOF
15689sed -n '
15690h
15691s/^/S["/; s/!.*/"]=/
15692p
15693g
15694s/^[^!]*!//
15695:repl
15696t repl
15697s/'"$ac_delim"'$//
15698t delim
15699:nl
15700h
15701s/\(.\{148\}\).*/\1/
15702t more1
15703s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15704p
15705n
15706b repl
15707:more1
15708s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15709p
15710g
15711s/.\{148\}//
15712t nl
15713:delim
15714h
15715s/\(.\{148\}\).*/\1/
15716t more2
15717s/["\\]/\\&/g; s/^/"/; s/$/"/
15718p
15719b
15720:more2
15721s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15722p
15723g
15724s/.\{148\}//
15725t delim
15726' <conf$$subs.awk | sed '
15727/^[^""]/{
15728 N
15729 s/\n//
15730}
15731' >>$CONFIG_STATUS || ac_write_fail=1
15732rm -f conf$$subs.awk
15733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734_ACAWK
15735cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15736 for (key in S) S_is_set[key] = 1
15737 FS = "\a"
15738
15739}
15740{
15741 line = $ 0
15742 nfields = split(line, field, "@")
15743 substed = 0
15744 len = length(field[1])
15745 for (i = 2; i < nfields; i++) {
15746 key = field[i]
15747 keylen = length(key)
15748 if (S_is_set[key]) {
15749 value = S[key]
15750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15751 len += length(value) + length(field[++i])
15752 substed = 1
15753 } else
15754 len += 1 + keylen
15755 }
15756
15757 print line
15758}
15759
15760_ACAWK
15761_ACEOF
15762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15763if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15765else
15766 cat
15767fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15768 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15769_ACEOF
15770
15771# VPATH may cause trouble with some makes, so we remove $(srcdir),
15772# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15773# trailing colons and then remove the whole line if VPATH becomes empty
15774# (actually we leave an empty line to preserve line numbers).
15775if test "x$srcdir" = x.; then
15776 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15777s/:*\$(srcdir):*/:/
15778s/:*\${srcdir}:*/:/
15779s/:*@srcdir@:*/:/
15780s/^\([^=]*=[ ]*\):*/\1/
15781s/:*$//
15782s/^[^=]*=[ ]*$//
15783}'
15784fi
15785
15786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15787fi # test -n "$CONFIG_FILES"
15788
15789
15790eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15791shift
15792for ac_tag
15793do
15794 case $ac_tag in
15795 :[FHLC]) ac_mode=$ac_tag; continue;;
15796 esac
15797 case $ac_mode$ac_tag in
15798 :[FHL]*:*);;
15799 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15800 :[FH]-) ac_tag=-:-;;
15801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15802 esac
15803 ac_save_IFS=$IFS
15804 IFS=:
15805 set x $ac_tag
15806 IFS=$ac_save_IFS
15807 shift
15808 ac_file=$1
15809 shift
15810
15811 case $ac_mode in
15812 :L) ac_source=$1;;
15813 :[FH])
15814 ac_file_inputs=
15815 for ac_f
15816 do
15817 case $ac_f in
15818 -) ac_f="$tmp/stdin";;
15819 *) # Look for the file first in the build tree, then in the source tree
15820 # (if the path is not absolute). The absolute path cannot be DOS-style,
15821 # because $ac_f cannot contain `:'.
15822 test -f "$ac_f" ||
15823 case $ac_f in
15824 [\\/$]*) false;;
15825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15826 esac ||
15827 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15828 esac
15829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15830 as_fn_append ac_file_inputs " '$ac_f'"
15831 done
15832
15833 # Let's still pretend it is `configure' which instantiates (i.e., don't
15834 # use $as_me), people would be surprised to read:
15835 # /* config.h. Generated by config.status. */
15836 configure_input='Generated from '`
15837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15838 `' by configure.'
15839 if test x"$ac_file" != x-; then
15840 configure_input="$ac_file. $configure_input"
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15842$as_echo "$as_me: creating $ac_file" >&6;}
15843 fi
15844 # Neutralize special characters interpreted by sed in replacement strings.
15845 case $configure_input in #(
15846 *\&* | *\|* | *\\* )
15847 ac_sed_conf_input=`$as_echo "$configure_input" |
15848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15849 *) ac_sed_conf_input=$configure_input;;
15850 esac
15851
15852 case $ac_tag in
15853 *:-:* | *:-) cat >"$tmp/stdin" \
15854 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15855 esac
15856 ;;
15857 esac
15858
15859 ac_dir=`$as_dirname -- "$ac_file" ||
15860$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15861 X"$ac_file" : 'X\(//\)[^/]' \| \
15862 X"$ac_file" : 'X\(//\)$' \| \
15863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15864$as_echo X"$ac_file" |
15865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15866 s//\1/
15867 q
15868 }
15869 /^X\(\/\/\)[^/].*/{
15870 s//\1/
15871 q
15872 }
15873 /^X\(\/\/\)$/{
15874 s//\1/
15875 q
15876 }
15877 /^X\(\/\).*/{
15878 s//\1/
15879 q
15880 }
15881 s/.*/./; q'`
15882 as_dir="$ac_dir"; as_fn_mkdir_p
15883 ac_builddir=.
15884
15885case "$ac_dir" in
15886.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15887*)
15888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15889 # A ".." for each directory in $ac_dir_suffix.
15890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15891 case $ac_top_builddir_sub in
15892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15894 esac ;;
15895esac
15896ac_abs_top_builddir=$ac_pwd
15897ac_abs_builddir=$ac_pwd$ac_dir_suffix
15898# for backward compatibility:
15899ac_top_builddir=$ac_top_build_prefix
15900
15901case $srcdir in
15902 .) # We are building in place.
15903 ac_srcdir=.
15904 ac_top_srcdir=$ac_top_builddir_sub
15905 ac_abs_top_srcdir=$ac_pwd ;;
15906 [\\/]* | ?:[\\/]* ) # Absolute name.
15907 ac_srcdir=$srcdir$ac_dir_suffix;
15908 ac_top_srcdir=$srcdir
15909 ac_abs_top_srcdir=$srcdir ;;
15910 *) # Relative name.
15911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15912 ac_top_srcdir=$ac_top_build_prefix$srcdir
15913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15914esac
15915ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15916
15917
15918 case $ac_mode in
15919 :F)
15920 #
15921 # CONFIG_FILE
15922 #
15923
15924 case $INSTALL in
15925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15927 esac
15928 ac_MKDIR_P=$MKDIR_P
15929 case $MKDIR_P in
15930 [\\/$]* | ?:[\\/]* ) ;;
15931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15932 esac
15933_ACEOF
15934
15935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936# If the template does not know about datarootdir, expand it.
15937# FIXME: This hack should be removed a few years after 2.60.
15938ac_datarootdir_hack=; ac_datarootdir_seen=
15939ac_sed_dataroot='
15940/datarootdir/ {
15941 p
15942 q
15943}
15944/@datadir@/p
15945/@docdir@/p
15946/@infodir@/p
15947/@localedir@/p
15948/@mandir@/p'
15949case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15950*datarootdir*) ac_datarootdir_seen=yes;;
15951*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15953$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15954_ACEOF
15955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 ac_datarootdir_hack='
15957 s&@datadir@&$datadir&g
15958 s&@docdir@&$docdir&g
15959 s&@infodir@&$infodir&g
15960 s&@localedir@&$localedir&g
15961 s&@mandir@&$mandir&g
15962 s&\\\${datarootdir}&$datarootdir&g' ;;
15963esac
15964_ACEOF
15965
15966# Neutralize VPATH when `$srcdir' = `.'.
15967# Shell code in configure.ac might set extrasub.
15968# FIXME: do we really want to maintain this feature?
15969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970ac_sed_extra="$ac_vpsub
15971$extrasub
15972_ACEOF
15973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974:t
15975/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15976s|@configure_input@|$ac_sed_conf_input|;t t
15977s&@top_builddir@&$ac_top_builddir_sub&;t t
15978s&@top_build_prefix@&$ac_top_build_prefix&;t t
15979s&@srcdir@&$ac_srcdir&;t t
15980s&@abs_srcdir@&$ac_abs_srcdir&;t t
15981s&@top_srcdir@&$ac_top_srcdir&;t t
15982s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15983s&@builddir@&$ac_builddir&;t t
15984s&@abs_builddir@&$ac_abs_builddir&;t t
15985s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15986s&@INSTALL@&$ac_INSTALL&;t t
15987s&@MKDIR_P@&$ac_MKDIR_P&;t t
15988$ac_datarootdir_hack
15989"
15990eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15991 || as_fn_error "could not create $ac_file" "$LINENO" 5
15992
15993test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15997which seems to be undefined. Please make sure it is defined." >&5
15998$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15999which seems to be undefined. Please make sure it is defined." >&2;}
16000
16001 rm -f "$tmp/stdin"
16002 case $ac_file in
16003 -) cat "$tmp/out" && rm -f "$tmp/out";;
16004 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16005 esac \
16006 || as_fn_error "could not create $ac_file" "$LINENO" 5
16007 ;;
16008
16009
16010 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16011$as_echo "$as_me: executing $ac_file commands" >&6;}
16012 ;;
16013 esac
16014
16015
16016 case $ac_file$ac_mode in
16017 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16018 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16019 # are listed without --file. Let's play safe and only enable the eval
16020 # if we detect the quoting.
16021 case $CONFIG_FILES in
16022 *\'*) eval set x "$CONFIG_FILES" ;;
16023 *) set x $CONFIG_FILES ;;
16024 esac
16025 shift
16026 for mf
16027 do
16028 # Strip MF so we end up with the name of the file.
16029 mf=`echo "$mf" | sed -e 's/:.*$//'`
16030 # Check whether this is an Automake generated Makefile or not.
16031 # We used to match only the files named `Makefile.in', but
16032 # some people rename them; so instead we look at the file content.
16033 # Grep'ing the first line is not enough: some people post-process
16034 # each Makefile.in and add a new line on top of each file to say so.
16035 # Grep'ing the whole file is not good either: AIX grep has a line
16036 # limit of 2048, but all sed's we know have understand at least 4000.
16037 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16038 dirpart=`$as_dirname -- "$mf" ||
16039$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040 X"$mf" : 'X\(//\)[^/]' \| \
16041 X"$mf" : 'X\(//\)$' \| \
16042 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16043$as_echo X"$mf" |
16044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16045 s//\1/
16046 q
16047 }
16048 /^X\(\/\/\)[^/].*/{
16049 s//\1/
16050 q
16051 }
16052 /^X\(\/\/\)$/{
16053 s//\1/
16054 q
16055 }
16056 /^X\(\/\).*/{
16057 s//\1/
16058 q
16059 }
16060 s/.*/./; q'`
16061 else
16062 continue
16063 fi
16064 # Extract the definition of DEPDIR, am__include, and am__quote
16065 # from the Makefile without running `make'.
16066 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16067 test -z "$DEPDIR" && continue
16068 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16069 test -z "am__include" && continue
16070 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16071 # When using ansi2knr, U may be empty or an underscore; expand it
16072 U=`sed -n 's/^U = //p' < "$mf"`
16073 # Find all dependency output files, they are included files with
16074 # $(DEPDIR) in their names. We invoke sed twice because it is the
16075 # simplest approach to changing $(DEPDIR) to its actual value in the
16076 # expansion.
16077 for file in `sed -n "
16078 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16079 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16080 # Make sure the directory exists.
16081 test -f "$dirpart/$file" && continue
16082 fdir=`$as_dirname -- "$file" ||
16083$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16084 X"$file" : 'X\(//\)[^/]' \| \
16085 X"$file" : 'X\(//\)$' \| \
16086 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16087$as_echo X"$file" |
16088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16089 s//\1/
16090 q
16091 }
16092 /^X\(\/\/\)[^/].*/{
16093 s//\1/
16094 q
16095 }
16096 /^X\(\/\/\)$/{
16097 s//\1/
16098 q
16099 }
16100 /^X\(\/\).*/{
16101 s//\1/
16102 q
16103 }
16104 s/.*/./; q'`
16105 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16106 # echo "creating $dirpart/$file"
16107 echo '# dummy' > "$dirpart/$file"
16108 done
16109 done
16110}
16111 ;;
16112 "default-1":C)
16113# Only add multilib support code if we just rebuilt the top-level
16114# Makefile.
16115case " $CONFIG_FILES " in
16116 *" Makefile "*)
16117 ac_file=Makefile . ${multi_basedir}/config-ml.in
16118 ;;
16119esac ;;
16120 "libtool":C)
16121
16122 # See if we are running on zsh, and set the options which allow our
16123 # commands through without removal of \ escapes.
16124 if test -n "${ZSH_VERSION+set}" ; then
16125 setopt NO_GLOB_SUBST
16126 fi
16127
16128 cfgfile="${ofile}T"
16129 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16130 $RM "$cfgfile"
16131
16132 cat <<_LT_EOF >> "$cfgfile"
16133#! $SHELL
16134
16135# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16136# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16137# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16138# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16139#
16140# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16141# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16142# Written by Gordon Matzigkeit, 1996
16143#
16144# This file is part of GNU Libtool.
16145#
16146# GNU Libtool is free software; you can redistribute it and/or
16147# modify it under the terms of the GNU General Public License as
16148# published by the Free Software Foundation; either version 2 of
16149# the License, or (at your option) any later version.
16150#
16151# As a special exception to the GNU General Public License,
16152# if you distribute this file as part of a program or library that
16153# is built using GNU Libtool, you may include this file under the
16154# same distribution terms that you use for the rest of that program.
16155#
16156# GNU Libtool is distributed in the hope that it will be useful,
16157# but WITHOUT ANY WARRANTY; without even the implied warranty of
16158# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16159# GNU General Public License for more details.
16160#
16161# You should have received a copy of the GNU General Public License
16162# along with GNU Libtool; see the file COPYING. If not, a copy
16163# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16164# obtained by writing to the Free Software Foundation, Inc.,
16165# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16166
16167
16168# The names of the tagged configurations supported by this script.
16169available_tags="CXX "
16170
16171# ### BEGIN LIBTOOL CONFIG
16172
16173# Which release of libtool.m4 was used?
16174macro_version=$macro_version
16175macro_revision=$macro_revision
16176
16177# Whether or not to build shared libraries.
16178build_libtool_libs=$enable_shared
16179
16180# Whether or not to build static libraries.
16181build_old_libs=$enable_static
16182
16183# What type of objects to build.
16184pic_mode=$pic_mode
16185
16186# Whether or not to optimize for fast installation.
16187fast_install=$enable_fast_install
16188
16189# Shell to use when invoking shell scripts.
16190SHELL=$lt_SHELL
16191
16192# An echo program that protects backslashes.
16193ECHO=$lt_ECHO
16194
16195# The host system.
16196host_alias=$host_alias
16197host=$host
16198host_os=$host_os
16199
16200# The build system.
16201build_alias=$build_alias
16202build=$build
16203build_os=$build_os
16204
16205# A sed program that does not truncate output.
16206SED=$lt_SED
16207
16208# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16209Xsed="\$SED -e 1s/^X//"
16210
16211# A grep program that handles long lines.
16212GREP=$lt_GREP
16213
16214# An ERE matcher.
16215EGREP=$lt_EGREP
16216
16217# A literal string matcher.
16218FGREP=$lt_FGREP
16219
16220# A BSD- or MS-compatible name lister.
16221NM=$lt_NM
16222
16223# Whether we need soft or hard links.
16224LN_S=$lt_LN_S
16225
16226# What is the maximum length of a command?
16227max_cmd_len=$max_cmd_len
16228
16229# Object file suffix (normally "o").
16230objext=$ac_objext
16231
16232# Executable file suffix (normally "").
16233exeext=$exeext
16234
16235# whether the shell understands "unset".
16236lt_unset=$lt_unset
16237
16238# turn spaces into newlines.
16239SP2NL=$lt_lt_SP2NL
16240
16241# turn newlines into spaces.
16242NL2SP=$lt_lt_NL2SP
16243
16244# An object symbol dumper.
16245OBJDUMP=$lt_OBJDUMP
16246
16247# Method to check whether dependent libraries are shared objects.
16248deplibs_check_method=$lt_deplibs_check_method
16249
16250# Command to use when deplibs_check_method == "file_magic".
16251file_magic_cmd=$lt_file_magic_cmd
16252
16253# The archiver.
16254AR=$lt_AR
16255AR_FLAGS=$lt_AR_FLAGS
16256
16257# A symbol stripping program.
16258STRIP=$lt_STRIP
16259
16260# Commands used to install an old-style archive.
16261RANLIB=$lt_RANLIB
16262old_postinstall_cmds=$lt_old_postinstall_cmds
16263old_postuninstall_cmds=$lt_old_postuninstall_cmds
16264
16265# Whether to use a lock for old archive extraction.
16266lock_old_archive_extraction=$lock_old_archive_extraction
16267
16268# A C compiler.
16269LTCC=$lt_CC
16270
16271# LTCC compiler flags.
16272LTCFLAGS=$lt_CFLAGS
16273
16274# Take the output of nm and produce a listing of raw symbols and C names.
16275global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16276
16277# Transform the output of nm in a proper C declaration.
16278global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16279
16280# Transform the output of nm in a C name address pair.
16281global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16282
16283# Transform the output of nm in a C name address pair when lib prefix is needed.
16284global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16285
16286# The name of the directory that contains temporary libtool files.
16287objdir=$objdir
16288
16289# Used to examine libraries when file_magic_cmd begins with "file".
16290MAGIC_CMD=$MAGIC_CMD
16291
16292# Must we lock files when doing compilation?
16293need_locks=$lt_need_locks
16294
16295# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16296DSYMUTIL=$lt_DSYMUTIL
16297
16298# Tool to change global to local symbols on Mac OS X.
16299NMEDIT=$lt_NMEDIT
16300
16301# Tool to manipulate fat objects and archives on Mac OS X.
16302LIPO=$lt_LIPO
16303
16304# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16305OTOOL=$lt_OTOOL
16306
16307# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16308OTOOL64=$lt_OTOOL64
16309
16310# Old archive suffix (normally "a").
16311libext=$libext
16312
16313# Shared library suffix (normally ".so").
16314shrext_cmds=$lt_shrext_cmds
16315
16316# The commands to extract the exported symbol list from a shared archive.
16317extract_expsyms_cmds=$lt_extract_expsyms_cmds
16318
16319# Variables whose values should be saved in libtool wrapper scripts and
16320# restored at link time.
16321variables_saved_for_relink=$lt_variables_saved_for_relink
16322
16323# Do we need the "lib" prefix for modules?
16324need_lib_prefix=$need_lib_prefix
16325
16326# Do we need a version for libraries?
16327need_version=$need_version
16328
16329# Library versioning type.
16330version_type=$version_type
16331
16332# Shared library runtime path variable.
16333runpath_var=$runpath_var
16334
16335# Shared library path variable.
16336shlibpath_var=$shlibpath_var
16337
16338# Is shlibpath searched before the hard-coded library search path?
16339shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16340
16341# Format of library name prefix.
16342libname_spec=$lt_libname_spec
16343
16344# List of archive names. First name is the real one, the rest are links.
16345# The last name is the one that the linker finds with -lNAME
16346library_names_spec=$lt_library_names_spec
16347
16348# The coded name of the library, if different from the real name.
16349soname_spec=$lt_soname_spec
16350
16351# Permission mode override for installation of shared libraries.
16352install_override_mode=$lt_install_override_mode
16353
16354# Command to use after installation of a shared archive.
16355postinstall_cmds=$lt_postinstall_cmds
16356
16357# Command to use after uninstallation of a shared archive.
16358postuninstall_cmds=$lt_postuninstall_cmds
16359
16360# Commands used to finish a libtool library installation in a directory.
16361finish_cmds=$lt_finish_cmds
16362
16363# As "finish_cmds", except a single script fragment to be evaled but
16364# not shown.
16365finish_eval=$lt_finish_eval
16366
16367# Whether we should hardcode library paths into libraries.
16368hardcode_into_libs=$hardcode_into_libs
16369
16370# Compile-time system search path for libraries.
16371sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16372
16373# Run-time system search path for libraries.
16374sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16375
16376# Whether dlopen is supported.
16377dlopen_support=$enable_dlopen
16378
16379# Whether dlopen of programs is supported.
16380dlopen_self=$enable_dlopen_self
16381
16382# Whether dlopen of statically linked programs is supported.
16383dlopen_self_static=$enable_dlopen_self_static
16384
16385# Commands to strip libraries.
16386old_striplib=$lt_old_striplib
16387striplib=$lt_striplib
16388
16389
16390# The linker used to build libraries.
16391LD=$lt_LD
16392
16393# How to create reloadable object files.
16394reload_flag=$lt_reload_flag
16395reload_cmds=$lt_reload_cmds
16396
16397# Commands used to build an old-style archive.
16398old_archive_cmds=$lt_old_archive_cmds
16399
16400# A language specific compiler.
16401CC=$lt_compiler
16402
16403# Is the compiler the GNU compiler?
16404with_gcc=$GCC
16405
16406# Compiler flag to turn off builtin functions.
16407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16408
16409# How to pass a linker flag through the compiler.
16410wl=$lt_lt_prog_compiler_wl
16411
16412# Additional compiler flags for building library objects.
16413pic_flag=$lt_lt_prog_compiler_pic
16414
16415# Compiler flag to prevent dynamic linking.
16416link_static_flag=$lt_lt_prog_compiler_static
16417
16418# Does compiler simultaneously support -c and -o options?
16419compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16420
16421# Whether or not to add -lc for building shared libraries.
16422build_libtool_need_lc=$archive_cmds_need_lc
16423
16424# Whether or not to disallow shared libs when runtime libs are static.
16425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16426
16427# Compiler flag to allow reflexive dlopens.
16428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16429
16430# Compiler flag to generate shared objects directly from archives.
16431whole_archive_flag_spec=$lt_whole_archive_flag_spec
16432
16433# Whether the compiler copes with passing no objects directly.
16434compiler_needs_object=$lt_compiler_needs_object
16435
16436# Create an old-style archive from a shared archive.
16437old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16438
16439# Create a temporary old-style archive to link instead of a shared archive.
16440old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16441
16442# Commands used to build a shared archive.
16443archive_cmds=$lt_archive_cmds
16444archive_expsym_cmds=$lt_archive_expsym_cmds
16445
16446# Commands used to build a loadable module if different from building
16447# a shared archive.
16448module_cmds=$lt_module_cmds
16449module_expsym_cmds=$lt_module_expsym_cmds
16450
16451# Whether we are building with GNU ld or not.
16452with_gnu_ld=$lt_with_gnu_ld
16453
16454# Flag that allows shared libraries with undefined symbols to be built.
16455allow_undefined_flag=$lt_allow_undefined_flag
16456
16457# Flag that enforces no undefined symbols.
16458no_undefined_flag=$lt_no_undefined_flag
16459
16460# Flag to hardcode \$libdir into a binary during linking.
16461# This must work even if \$libdir does not exist
16462hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16463
16464# If ld is used when linking, flag to hardcode \$libdir into a binary
16465# during linking. This must work even if \$libdir does not exist.
16466hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16467
16468# Whether we need a single "-rpath" flag with a separated argument.
16469hardcode_libdir_separator=$lt_hardcode_libdir_separator
16470
16471# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16472# DIR into the resulting binary.
16473hardcode_direct=$hardcode_direct
16474
16475# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16476# DIR into the resulting binary and the resulting library dependency is
16477# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16478# library is relocated.
16479hardcode_direct_absolute=$hardcode_direct_absolute
16480
16481# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16482# into the resulting binary.
16483hardcode_minus_L=$hardcode_minus_L
16484
16485# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16486# into the resulting binary.
16487hardcode_shlibpath_var=$hardcode_shlibpath_var
16488
16489# Set to "yes" if building a shared library automatically hardcodes DIR
16490# into the library and all subsequent libraries and executables linked
16491# against it.
16492hardcode_automatic=$hardcode_automatic
16493
16494# Set to yes if linker adds runtime paths of dependent libraries
16495# to runtime path list.
16496inherit_rpath=$inherit_rpath
16497
16498# Whether libtool must link a program against all its dependency libraries.
16499link_all_deplibs=$link_all_deplibs
16500
16501# Fix the shell variable \$srcfile for the compiler.
16502fix_srcfile_path=$lt_fix_srcfile_path
16503
16504# Set to "yes" if exported symbols are required.
16505always_export_symbols=$always_export_symbols
16506
16507# The commands to list exported symbols.
16508export_symbols_cmds=$lt_export_symbols_cmds
16509
16510# Symbols that should not be listed in the preloaded symbols.
16511exclude_expsyms=$lt_exclude_expsyms
16512
16513# Symbols that must always be exported.
16514include_expsyms=$lt_include_expsyms
16515
16516# Commands necessary for linking programs (against libraries) with templates.
16517prelink_cmds=$lt_prelink_cmds
16518
16519# Specify filename containing input files.
16520file_list_spec=$lt_file_list_spec
16521
16522# How to hardcode a shared library path into an executable.
16523hardcode_action=$hardcode_action
16524
16525# The directories searched by this compiler when creating a shared library.
16526compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16527
16528# Dependencies to place before and after the objects being linked to
16529# create a shared library.
16530predep_objects=$lt_predep_objects
16531postdep_objects=$lt_postdep_objects
16532predeps=$lt_predeps
16533postdeps=$lt_postdeps
16534
16535# The library search path used internally by the compiler when linking
16536# a shared library.
16537compiler_lib_search_path=$lt_compiler_lib_search_path
16538
16539# ### END LIBTOOL CONFIG
16540
16541_LT_EOF
16542
16543 case $host_os in
16544 aix3*)
16545 cat <<\_LT_EOF >> "$cfgfile"
16546# AIX sometimes has problems with the GCC collect2 program. For some
16547# reason, if we set the COLLECT_NAMES environment variable, the problems
16548# vanish in a puff of smoke.
16549if test "X${COLLECT_NAMES+set}" != Xset; then
16550 COLLECT_NAMES=
16551 export COLLECT_NAMES
16552fi
16553_LT_EOF
16554 ;;
16555 esac
16556
16557
16558ltmain="$ac_aux_dir/ltmain.sh"
16559
16560
16561 # We use sed instead of cat because bash on DJGPP gets confused if
16562 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16563 # text mode, it properly converts lines to CR/LF. This bash problem
16564 # is reportedly fixed, but why not run on old versions too?
16565 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16566 || (rm -f "$cfgfile"; exit 1)
16567
16568 case $xsi_shell in
16569 yes)
16570 cat << \_LT_EOF >> "$cfgfile"
16571
16572# func_dirname file append nondir_replacement
16573# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16574# otherwise set result to NONDIR_REPLACEMENT.
16575func_dirname ()
16576{
16577 case ${1} in
16578 */*) func_dirname_result="${1%/*}${2}" ;;
16579 * ) func_dirname_result="${3}" ;;
16580 esac
16581}
16582
16583# func_basename file
16584func_basename ()
16585{
16586 func_basename_result="${1##*/}"
16587}
16588
16589# func_dirname_and_basename file append nondir_replacement
16590# perform func_basename and func_dirname in a single function
16591# call:
16592# dirname: Compute the dirname of FILE. If nonempty,
16593# add APPEND to the result, otherwise set result
16594# to NONDIR_REPLACEMENT.
16595# value returned in "$func_dirname_result"
16596# basename: Compute filename of FILE.
16597# value retuned in "$func_basename_result"
16598# Implementation must be kept synchronized with func_dirname
16599# and func_basename. For efficiency, we do not delegate to
16600# those functions but instead duplicate the functionality here.
16601func_dirname_and_basename ()
16602{
16603 case ${1} in
16604 */*) func_dirname_result="${1%/*}${2}" ;;
16605 * ) func_dirname_result="${3}" ;;
16606 esac
16607 func_basename_result="${1##*/}"
16608}
16609
16610# func_stripname prefix suffix name
16611# strip PREFIX and SUFFIX off of NAME.
16612# PREFIX and SUFFIX must not contain globbing or regex special
16613# characters, hashes, percent signs, but SUFFIX may contain a leading
16614# dot (in which case that matches only a dot).
16615func_stripname ()
16616{
16617 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16618 # positional parameters, so assign one to ordinary parameter first.
16619 func_stripname_result=${3}
16620 func_stripname_result=${func_stripname_result#"${1}"}
16621 func_stripname_result=${func_stripname_result%"${2}"}
16622}
16623
16624# func_opt_split
16625func_opt_split ()
16626{
16627 func_opt_split_opt=${1%%=*}
16628 func_opt_split_arg=${1#*=}
16629}
16630
16631# func_lo2o object
16632func_lo2o ()
16633{
16634 case ${1} in
16635 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16636 *) func_lo2o_result=${1} ;;
16637 esac
16638}
16639
16640# func_xform libobj-or-source
16641func_xform ()
16642{
16643 func_xform_result=${1%.*}.lo
16644}
16645
16646# func_arith arithmetic-term...
16647func_arith ()
16648{
16649 func_arith_result=$(( $* ))
16650}
16651
16652# func_len string
16653# STRING may not start with a hyphen.
16654func_len ()
16655{
16656 func_len_result=${#1}
16657}
16658
16659_LT_EOF
16660 ;;
16661 *) # Bourne compatible functions.
16662 cat << \_LT_EOF >> "$cfgfile"
16663
16664# func_dirname file append nondir_replacement
16665# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16666# otherwise set result to NONDIR_REPLACEMENT.
16667func_dirname ()
16668{
16669 # Extract subdirectory from the argument.
16670 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16671 if test "X$func_dirname_result" = "X${1}"; then
16672 func_dirname_result="${3}"
16673 else
16674 func_dirname_result="$func_dirname_result${2}"
16675 fi
16676}
16677
16678# func_basename file
16679func_basename ()
16680{
16681 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16682}
16683
16684
16685# func_stripname prefix suffix name
16686# strip PREFIX and SUFFIX off of NAME.
16687# PREFIX and SUFFIX must not contain globbing or regex special
16688# characters, hashes, percent signs, but SUFFIX may contain a leading
16689# dot (in which case that matches only a dot).
16690# func_strip_suffix prefix name
16691func_stripname ()
16692{
16693 case ${2} in
16694 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16695 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16696 esac
16697}
16698
16699# sed scripts:
16700my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16701my_sed_long_arg='1s/^-[^=]*=//'
16702
16703# func_opt_split
16704func_opt_split ()
16705{
16706 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16707 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16708}
16709
16710# func_lo2o object
16711func_lo2o ()
16712{
16713 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16714}
16715
16716# func_xform libobj-or-source
16717func_xform ()
16718{
16719 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16720}
16721
16722# func_arith arithmetic-term...
16723func_arith ()
16724{
16725 func_arith_result=`expr "$@"`
16726}
16727
16728# func_len string
16729# STRING may not start with a hyphen.
16730func_len ()
16731{
16732 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16733}
16734
16735_LT_EOF
16736esac
16737
16738case $lt_shell_append in
16739 yes)
16740 cat << \_LT_EOF >> "$cfgfile"
16741
16742# func_append var value
16743# Append VALUE to the end of shell variable VAR.
16744func_append ()
16745{
16746 eval "$1+=\$2"
16747}
16748_LT_EOF
16749 ;;
16750 *)
16751 cat << \_LT_EOF >> "$cfgfile"
16752
16753# func_append var value
16754# Append VALUE to the end of shell variable VAR.
16755func_append ()
16756{
16757 eval "$1=\$$1\$2"
16758}
16759
16760_LT_EOF
16761 ;;
16762 esac
16763
16764
16765 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16766 || (rm -f "$cfgfile"; exit 1)
16767
16768 mv -f "$cfgfile" "$ofile" ||
16769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16770 chmod +x "$ofile"
16771
16772
16773 cat <<_LT_EOF >> "$ofile"
16774
16775# ### BEGIN LIBTOOL TAG CONFIG: CXX
16776
16777# The linker used to build libraries.
16778LD=$lt_LD_CXX
16779
16780# How to create reloadable object files.
16781reload_flag=$lt_reload_flag_CXX
16782reload_cmds=$lt_reload_cmds_CXX
16783
16784# Commands used to build an old-style archive.
16785old_archive_cmds=$lt_old_archive_cmds_CXX
16786
16787# A language specific compiler.
16788CC=$lt_compiler_CXX
16789
16790# Is the compiler the GNU compiler?
16791with_gcc=$GCC_CXX
16792
16793# Compiler flag to turn off builtin functions.
16794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16795
16796# How to pass a linker flag through the compiler.
16797wl=$lt_lt_prog_compiler_wl_CXX
16798
16799# Additional compiler flags for building library objects.
16800pic_flag=$lt_lt_prog_compiler_pic_CXX
16801
16802# Compiler flag to prevent dynamic linking.
16803link_static_flag=$lt_lt_prog_compiler_static_CXX
16804
16805# Does compiler simultaneously support -c and -o options?
16806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16807
16808# Whether or not to add -lc for building shared libraries.
16809build_libtool_need_lc=$archive_cmds_need_lc_CXX
16810
16811# Whether or not to disallow shared libs when runtime libs are static.
16812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16813
16814# Compiler flag to allow reflexive dlopens.
16815export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16816
16817# Compiler flag to generate shared objects directly from archives.
16818whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16819
16820# Whether the compiler copes with passing no objects directly.
16821compiler_needs_object=$lt_compiler_needs_object_CXX
16822
16823# Create an old-style archive from a shared archive.
16824old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16825
16826# Create a temporary old-style archive to link instead of a shared archive.
16827old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16828
16829# Commands used to build a shared archive.
16830archive_cmds=$lt_archive_cmds_CXX
16831archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16832
16833# Commands used to build a loadable module if different from building
16834# a shared archive.
16835module_cmds=$lt_module_cmds_CXX
16836module_expsym_cmds=$lt_module_expsym_cmds_CXX
16837
16838# Whether we are building with GNU ld or not.
16839with_gnu_ld=$lt_with_gnu_ld_CXX
16840
16841# Flag that allows shared libraries with undefined symbols to be built.
16842allow_undefined_flag=$lt_allow_undefined_flag_CXX
16843
16844# Flag that enforces no undefined symbols.
16845no_undefined_flag=$lt_no_undefined_flag_CXX
16846
16847# Flag to hardcode \$libdir into a binary during linking.
16848# This must work even if \$libdir does not exist
16849hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16850
16851# If ld is used when linking, flag to hardcode \$libdir into a binary
16852# during linking. This must work even if \$libdir does not exist.
16853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16854
16855# Whether we need a single "-rpath" flag with a separated argument.
16856hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16857
16858# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16859# DIR into the resulting binary.
16860hardcode_direct=$hardcode_direct_CXX
16861
16862# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16863# DIR into the resulting binary and the resulting library dependency is
16864# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16865# library is relocated.
16866hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16867
16868# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16869# into the resulting binary.
16870hardcode_minus_L=$hardcode_minus_L_CXX
16871
16872# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16873# into the resulting binary.
16874hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16875
16876# Set to "yes" if building a shared library automatically hardcodes DIR
16877# into the library and all subsequent libraries and executables linked
16878# against it.
16879hardcode_automatic=$hardcode_automatic_CXX
16880
16881# Set to yes if linker adds runtime paths of dependent libraries
16882# to runtime path list.
16883inherit_rpath=$inherit_rpath_CXX
16884
16885# Whether libtool must link a program against all its dependency libraries.
16886link_all_deplibs=$link_all_deplibs_CXX
16887
16888# Fix the shell variable \$srcfile for the compiler.
16889fix_srcfile_path=$lt_fix_srcfile_path_CXX
16890
16891# Set to "yes" if exported symbols are required.
16892always_export_symbols=$always_export_symbols_CXX
16893
16894# The commands to list exported symbols.
16895export_symbols_cmds=$lt_export_symbols_cmds_CXX
16896
16897# Symbols that should not be listed in the preloaded symbols.
16898exclude_expsyms=$lt_exclude_expsyms_CXX
16899
16900# Symbols that must always be exported.
16901include_expsyms=$lt_include_expsyms_CXX
16902
16903# Commands necessary for linking programs (against libraries) with templates.
16904prelink_cmds=$lt_prelink_cmds_CXX
16905
16906# Specify filename containing input files.
16907file_list_spec=$lt_file_list_spec_CXX
16908
16909# How to hardcode a shared library path into an executable.
16910hardcode_action=$hardcode_action_CXX
16911
16912# The directories searched by this compiler when creating a shared library.
16913compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16914
16915# Dependencies to place before and after the objects being linked to
16916# create a shared library.
16917predep_objects=$lt_predep_objects_CXX
16918postdep_objects=$lt_postdep_objects_CXX
16919predeps=$lt_predeps_CXX
16920postdeps=$lt_postdeps_CXX
16921
16922# The library search path used internally by the compiler when linking
16923# a shared library.
16924compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16925
16926# ### END LIBTOOL TAG CONFIG: CXX
16927_LT_EOF
16928
16929 ;;
16930
16931 esac
16932done # for ac_tag
16933
16934
16935as_fn_exit 0
16936_ACEOF
16937ac_clean_files=$ac_clean_files_save
16938
16939test $ac_write_fail = 0 ||
16940 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16941
16942
16943# configure is writing to config.log, and then calls config.status.
16944# config.status does its own redirection, appending to config.log.
16945# Unfortunately, on DOS this fails, as config.log is still kept open
16946# by configure, so config.status won't be able to write to it; its
16947# output is simply discarded. So we exec the FD to /dev/null,
16948# effectively closing config.log, so it can be properly (re)opened and
16949# appended to by config.status. When coming back to configure, we
16950# need to make the FD available again.
16951if test "$no_create" != yes; then
16952 ac_cs_success=:
16953 ac_config_status_args=
16954 test "$silent" = yes &&
16955 ac_config_status_args="$ac_config_status_args --quiet"
16956 exec 5>/dev/null
16957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16958 exec 5>>config.log
16959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16960 # would make configure fail if this is the last instruction.
16961 $ac_cs_success || as_fn_exit $?
16962fi
9d73ec14
IV
16963
16964#
16965# CONFIG_SUBDIRS section.
16966#
16967if test "$no_recursion" != yes; then
16968
16969 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16970 # so they do not pile up.
16971 ac_sub_configure_args=
16972 ac_prev=
16973 eval "set x $ac_configure_args"
16974 shift
16975 for ac_arg
16976 do
16977 if test -n "$ac_prev"; then
16978 ac_prev=
16979 continue
16980 fi
16981 case $ac_arg in
16982 -cache-file | --cache-file | --cache-fil | --cache-fi \
16983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16984 ac_prev=cache_file ;;
16985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16987 | --c=*)
16988 ;;
16989 --config-cache | -C)
16990 ;;
16991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16992 ac_prev=srcdir ;;
16993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16994 ;;
16995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16996 ac_prev=prefix ;;
16997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16998 ;;
16999 --disable-option-checking)
17000 ;;
17001 *)
17002 case $ac_arg in
17003 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17004 esac
17005 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17006 esac
17007 done
17008
17009 # Always prepend --prefix to ensure using the same prefix
17010 # in subdir configurations.
17011 ac_arg="--prefix=$prefix"
17012 case $ac_arg in
17013 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17014 esac
17015 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17016
17017 # Pass --silent
17018 if test "$silent" = yes; then
17019 ac_sub_configure_args="--silent $ac_sub_configure_args"
17020 fi
17021
17022 # Always prepend --disable-option-checking to silence warnings, since
17023 # different subdirs can have different --enable and --with options.
17024 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17025
17026 ac_popdir=`pwd`
17027 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17028
17029 # Do not complain, so a configure script can configure whichever
17030 # parts of a large source tree are present.
17031 test -d "$srcdir/$ac_dir" || continue
17032
17033 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17034 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17035 $as_echo "$ac_msg" >&6
17036 as_dir="$ac_dir"; as_fn_mkdir_p
17037 ac_builddir=.
17038
17039case "$ac_dir" in
17040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17041*)
17042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17043 # A ".." for each directory in $ac_dir_suffix.
17044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17045 case $ac_top_builddir_sub in
17046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17048 esac ;;
17049esac
17050ac_abs_top_builddir=$ac_pwd
17051ac_abs_builddir=$ac_pwd$ac_dir_suffix
17052# for backward compatibility:
17053ac_top_builddir=$ac_top_build_prefix
17054
17055case $srcdir in
17056 .) # We are building in place.
17057 ac_srcdir=.
17058 ac_top_srcdir=$ac_top_builddir_sub
17059 ac_abs_top_srcdir=$ac_pwd ;;
17060 [\\/]* | ?:[\\/]* ) # Absolute name.
17061 ac_srcdir=$srcdir$ac_dir_suffix;
17062 ac_top_srcdir=$srcdir
17063 ac_abs_top_srcdir=$srcdir ;;
17064 *) # Relative name.
17065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17066 ac_top_srcdir=$ac_top_build_prefix$srcdir
17067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17068esac
17069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17070
17071
17072 cd "$ac_dir"
17073
17074 # Check for guested configure; otherwise get Cygnus style configure.
17075 if test -f "$ac_srcdir/configure.gnu"; then
17076 ac_sub_configure=$ac_srcdir/configure.gnu
17077 elif test -f "$ac_srcdir/configure"; then
17078 ac_sub_configure=$ac_srcdir/configure
6b1786aa 17079 elif test -f "$ac_srcdir/configure.ac"; then
9d73ec14
IV
17080 # This should be Cygnus configure.
17081 ac_sub_configure=$ac_aux_dir/configure
17082 else
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17084$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17085 ac_sub_configure=
17086 fi
17087
17088 # The recursion is here.
17089 if test -n "$ac_sub_configure"; then
17090 # Make the cache file name correct relative to the subdirectory.
17091 case $cache_file in
17092 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17093 *) # Relative name.
17094 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17095 esac
17096
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17098$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17099 # The eval makes quoting arguments work.
17100 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17101 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17102 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17103 fi
17104
17105 cd "$ac_popdir"
17106 done
17107fi
5f520819
KY
17108if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17110$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17111fi
17112