blob: e22b214ddbce37ff6ed8c075c7367ea0af292c7e [file] [log] [blame]
Kirill Yukhin5f520812014-11-13 14:03:17 +00001#! /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
Ilya Verbin9d73ec12014-11-13 14:05:49 +0000564enable_option_checking=no
Kirill Yukhin5f520812014-11-13 14:03:17 +0000565# 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
Jakub Jelinek3c36aa62017-01-17 10:38:48 +0100605get_gcc_base_ver
Kirill Yukhin5f520812014-11-13 14:03:17 +0000606link_offloadmic_target
607link_offloadmic_host
608lt_cv_dlopen_libs
609toolexeclibdir
610toolexecdir
611CXXCPP
612OTOOL64
613OTOOL
614LIPO
615NMEDIT
616DSYMUTIL
617RANLIB
618AR
619OBJDUMP
620LN_S
621NM
622ac_ct_DUMPBIN
623DUMPBIN
624LD
625FGREP
626SED
627LIBTOOL
628LIBOFFLOADMIC_HOST_FALSE
629LIBOFFLOADMIC_HOST_TRUE
630EGREP
631GREP
632CPP
633ALLOCA
Ilya Verbin9d73ec12014-11-13 14:05:49 +0000634subdirs
Kirill Yukhin5f520812014-11-13 14:03:17 +0000635multi_basedir
636am__fastdepCXX_FALSE
637am__fastdepCXX_TRUE
638CXXDEPMODE
639ac_ct_CXX
640CXXFLAGS
641CXX
642am__fastdepCC_FALSE
643am__fastdepCC_TRUE
644CCDEPMODE
Michael Haubenwallner735aacb2015-05-13 11:10:33 +0000645am__nodep
Kirill Yukhin5f520812014-11-13 14:03:17 +0000646AMDEPBACKSLASH
647AMDEP_FALSE
648AMDEP_TRUE
649am__quote
650am__include
651DEPDIR
652OBJEXT
653EXEEXT
654ac_ct_CC
655CPPFLAGS
656LDFLAGS
657CFLAGS
658CC
659MAINT
660MAINTAINER_MODE_FALSE
661MAINTAINER_MODE_TRUE
662am__untar
663am__tar
664AMTAR
665am__leading_dot
666SET_MAKE
667AWK
668mkdir_p
669MKDIR_P
670INSTALL_STRIP_PROGRAM
671STRIP
672install_sh
673MAKEINFO
674AUTOHEADER
675AUTOMAKE
676AUTOCONF
677ACLOCAL
678VERSION
679PACKAGE
680CYGPATH_W
681am__isrc
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693build_os
694build_vendor
695build_cpu
696build
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files=''
736ac_user_opts='
737enable_option_checking
738enable_maintainer_mode
739enable_dependency_tracking
740enable_multilib
741enable_version_specific_runtime_libs
742enable_shared
743enable_static
744with_pic
745enable_fast_install
746with_gnu_ld
747enable_libtool_lock
Jakub Jelinek3c36aa62017-01-17 10:38:48 +0100748with_gcc_major_version_only
Kirill Yukhin5f520812014-11-13 14:03:17 +0000749'
750 ac_precious_vars='build_alias
751host_alias
752target_alias
753CC
754CFLAGS
755LDFLAGS
756LIBS
757CPPFLAGS
758CXX
759CXXFLAGS
760CCC
761CPP
762CXXCPP'
Ilya Verbin9d73ec12014-11-13 14:05:49 +0000763ac_subdirs_all='plugin'
Kirill Yukhin5f520812014-11-13 14:03:17 +0000764
765# Initialize some variables set by options.
766ac_init_help=
767ac_init_version=false
768ac_unrecognized_opts=
769ac_unrecognized_sep=
770# The variables have the same names as the options, with
771# dashes changed to underlines.
772cache_file=/dev/null
773exec_prefix=NONE
774no_create=
775no_recursion=
776prefix=NONE
777program_prefix=NONE
778program_suffix=NONE
779program_transform_name=s,x,x,
780silent=
781site=
782srcdir=
783verbose=
784x_includes=NONE
785x_libraries=NONE
786
787# Installation directory options.
788# These are left unexpanded so users can "make install exec_prefix=/foo"
789# and all the variables that are supposed to be based on exec_prefix
790# by default will actually change.
791# Use braces instead of parens because sh, perl, etc. also accept them.
792# (The list follows the same order as the GNU Coding Standards.)
793bindir='${exec_prefix}/bin'
794sbindir='${exec_prefix}/sbin'
795libexecdir='${exec_prefix}/libexec'
796datarootdir='${prefix}/share'
797datadir='${datarootdir}'
798sysconfdir='${prefix}/etc'
799sharedstatedir='${prefix}/com'
800localstatedir='${prefix}/var'
801includedir='${prefix}/include'
802oldincludedir='/usr/include'
803docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804infodir='${datarootdir}/info'
805htmldir='${docdir}'
806dvidir='${docdir}'
807pdfdir='${docdir}'
808psdir='${docdir}'
809libdir='${exec_prefix}/lib'
810localedir='${datarootdir}/locale'
811mandir='${datarootdir}/man'
812
813ac_prev=
814ac_dashdash=
815for ac_option
816do
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
822 fi
823
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
828
829 # Accept the important Cygnus configure options, so we can diagnose typos.
830
831 case $ac_dashdash$ac_option in
832 --)
833 ac_dashdash=yes ;;
834
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
839
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
844
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
851
852 --config-cache | -C)
853 cache_file=config.cache ;;
854
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
859
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
866
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876"enable_$ac_useropt"
877"*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
882
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
887
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
892
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
928
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
933
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
963
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
980
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1001
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1037
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1068
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1078
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1085
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1096
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1105 *"
1106"with_$ac_useropt"
1107"*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1112
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1146
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148Try \`$0 --help' for more information."
1149 ;;
1150
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1160
1161 *)
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1175fi
1176
1177if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1183fi
1184
1185# Check all directory arguments for consistency.
1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1190do
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204done
1205
1206# There might be people who depend on the old broken behavior: `$host'
1207# used to hold the argument of --host etc.
1208# FIXME: To remove some day.
1209build=$build_alias
1210host=$host_alias
1211target=$target_alias
1212
1213# FIXME: To remove some day.
1214if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1221 fi
1222fi
1223
1224ac_tool_prefix=
1225test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227test "$silent" = yes && exec 6>/dev/null
1228
1229
1230ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231ac_ls_di=`ls -di .` &&
1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1236
1237
1238# Find the source files, if location was not specified.
1239if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247$as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\).*/{
1261 s//\1/
1262 q
1263 }
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1268 fi
1269else
1270 ac_srcdir_defaulted=no
1271fi
1272if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1275fi
1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
1296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304\`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
1324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1357_ACEOF
1358
1359 cat <<\_ACEOF
1360
1361Program names:
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365
1366System types:
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1369 --target=TARGET configure for building compilers for TARGET [HOST]
1370_ACEOF
1371fi
1372
1373if test -n "$ac_init_help"; then
1374 case $ac_init_help in
1375 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1376 esac
1377 cat <<\_ACEOF
1378
1379Optional Features:
1380 --disable-option-checking ignore unrecognized --enable/--with options
1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1383 --enable-maintainer-mode enable make rules and dependencies not useful
1384 (and sometimes confusing) to the casual installer
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-multilib build many library versions (default)
1388 --enable-version-specific-runtime-libs
1389 Specify that runtime libraries should be installed
1390 in a compiler-specific directory
1391 --enable-shared[=PKGS] build shared libraries [default=yes]
1392 --enable-static[=PKGS] build static libraries [default=yes]
1393 --enable-fast-install[=PKGS]
1394 optimize for fast installation [default=yes]
1395 --disable-libtool-lock avoid locking (might break parallel builds)
1396
1397Optional Packages:
1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400 --with-pic try to use only PIC/non-PIC objects [default=use
1401 both]
1402 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Jakub Jelinek3c36aa62017-01-17 10:38:48 +01001403 --with-gcc-major-version-only
1404 use only GCC major number in filesystem paths
Kirill Yukhin5f520812014-11-13 14:03:17 +00001405
1406Some influential environment variables:
1407 CC C compiler command
1408 CFLAGS C compiler flags
1409 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1410 nonstandard directory <lib dir>
1411 LIBS libraries to pass to the linker, e.g. -l<library>
1412 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1413 you have headers in a nonstandard directory <include dir>
1414 CXX C++ compiler command
1415 CXXFLAGS C++ compiler flags
1416 CPP C preprocessor
1417 CXXCPP C++ preprocessor
1418
1419Use these variables to override the choices made by `configure' or to help
1420it to find libraries and programs with nonstandard names/locations.
1421
1422Report bugs to the package provider.
1423_ACEOF
1424ac_status=$?
1425fi
1426
1427if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435case "$ac_dir" in
1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437*)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445esac
1446ac_abs_top_builddir=$ac_pwd
1447ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448# for backward compatibility:
1449ac_top_builddir=$ac_top_build_prefix
1450
1451case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464esac
1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480fi
1481
1482test -n "$ac_init_help" && exit $ac_status
1483if $ac_init_version; then
1484 cat <<\_ACEOF
1485MIC Offload Runtime Library configure 1.0
1486generated by GNU Autoconf 2.64
1487
1488Copyright (C) 2009 Free Software Foundation, Inc.
1489This configure script is free software; the Free Software Foundation
1490gives unlimited permission to copy, distribute and modify it.
1491_ACEOF
1492 exit
1493fi
1494
1495## ------------------------ ##
1496## Autoconf initialization. ##
1497## ------------------------ ##
1498
1499# ac_fn_c_try_compile LINENO
1500# --------------------------
1501# Try to compile conftest.$ac_ext, and return whether this succeeded.
1502ac_fn_c_try_compile ()
1503{
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526else
1527 $as_echo "$as_me: failed program was:" >&5
1528sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531fi
1532 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 return $ac_retval
1534
1535} # ac_fn_c_try_compile
1536
1537# ac_fn_cxx_try_compile LINENO
1538# ----------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_cxx_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_cxx_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569fi
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1572
1573} # ac_fn_cxx_try_compile
1574
1575# ac_fn_c_try_link LINENO
1576# -----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_link ()
1579{
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 $as_test_x conftest$ac_exeext
1603 }; then :
1604 ac_retval=0
1605else
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610fi
1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1613 # interfere with the next link command; also delete a directory that is
1614 # left behind by Apple's compiler. We do this before executing the actions.
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 return $ac_retval
1618
1619} # ac_fn_c_try_link
1620
1621# ac_fn_c_try_cpp LINENO
1622# ----------------------
1623# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_cpp ()
1625{
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } >/dev/null && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652fi
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1655
1656} # ac_fn_c_try_cpp
1657
1658# ac_fn_c_check_func LINENO FUNC VAR
1659# ----------------------------------
1660# Tests whether FUNC exists, setting the cache variable VAR accordingly
1661ac_fn_c_check_func ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665$as_echo_n "checking for $2... " >&6; }
1666if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 $as_echo_n "(cached) " >&6
1668else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1673#define $2 innocuous_$2
1674
1675/* System header to define __stub macros and hopefully few prototypes,
1676 which can conflict with char $2 (); below.
1677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1678 <limits.h> exists even on freestanding compilers. */
1679
1680#ifdef __STDC__
1681# include <limits.h>
1682#else
1683# include <assert.h>
1684#endif
1685
1686#undef $2
1687
1688/* Override any GCC internal prototype to avoid an error.
1689 Use char because int might match the return type of a GCC
1690 builtin and then its argument prototype would still apply. */
1691#ifdef __cplusplus
1692extern "C"
1693#endif
1694char $2 ();
1695/* The GNU C library defines this for functions which it implements
1696 to always fail with ENOSYS. Some functions are actually named
1697 something starting with __ and the normal name is an alias. */
1698#if defined __stub_$2 || defined __stub___$2
1699choke me
1700#endif
1701
1702int
1703main ()
1704{
1705return $2 ();
1706 ;
1707 return 0;
1708}
1709_ACEOF
1710if ac_fn_c_try_link "$LINENO"; then :
1711 eval "$3=yes"
1712else
1713 eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext \
1716 conftest$ac_exeext conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722
1723} # ac_fn_c_check_func
1724
1725# ac_fn_c_try_run LINENO
1726# ----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728# that executables *can* be run.
1729ac_fn_c_try_run ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_link") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743 { { case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_try") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; }; }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: program exited with status $ac_status" >&5
1756 $as_echo "$as_me: failed program was:" >&5
1757sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=$ac_status
1760fi
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 return $ac_retval
1764
1765} # ac_fn_c_try_run
1766
1767# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1768# -------------------------------------------------------
1769# Tests whether HEADER exists and can be compiled using the include files in
1770# INCLUDES, setting the cache variable VAR accordingly.
1771ac_fn_c_check_header_compile ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781$4
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_compile "$LINENO"; then :
1785 eval "$3=yes"
1786else
1787 eval "$3=no"
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796} # ac_fn_c_check_header_compile
1797
1798# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1799# -------------------------------------------------------
1800# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1801# the include files in INCLUDES and setting the cache variable VAR
1802# accordingly.
1803ac_fn_c_check_header_mongrel ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808$as_echo_n "checking for $2... " >&6; }
1809if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1810 $as_echo_n "(cached) " >&6
1811fi
1812eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815else
1816 # Is the header compilable?
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1818$as_echo_n "checking $2 usability... " >&6; }
1819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h. */
1821$4
1822#include <$2>
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_header_compiler=yes
1826else
1827 ac_header_compiler=no
1828fi
1829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1831$as_echo "$ac_header_compiler" >&6; }
1832
1833# Is the header present?
1834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1835$as_echo_n "checking $2 presence... " >&6; }
1836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838#include <$2>
1839_ACEOF
1840if ac_fn_c_try_cpp "$LINENO"; then :
1841 ac_header_preproc=yes
1842else
1843 ac_header_preproc=no
1844fi
1845rm -f conftest.err conftest.$ac_ext
1846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1847$as_echo "$ac_header_preproc" >&6; }
1848
1849# So? What about this header?
1850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 yes:no: )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1853$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ;;
1857 no:yes:* )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1859$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1861$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1863$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1865$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 ;;
1869esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1874else
1875 eval "$3=\$ac_header_compiler"
1876fi
1877eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883} # ac_fn_c_check_header_mongrel
1884
1885# ac_fn_cxx_try_cpp LINENO
1886# ------------------------
1887# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888ac_fn_cxx_try_cpp ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } >/dev/null && {
1907 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 }; then :
1910 ac_retval=0
1911else
1912 $as_echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916fi
1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 return $ac_retval
1919
1920} # ac_fn_cxx_try_cpp
1921
1922# ac_fn_cxx_try_link LINENO
1923# -------------------------
1924# Try to link conftest.$ac_ext, and return whether this succeeded.
1925ac_fn_cxx_try_link ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1930case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933esac
1934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935$as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1942 fi
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_cxx_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest$ac_exeext && {
1948 test "$cross_compiling" = yes ||
1949 $as_test_x conftest$ac_exeext
1950 }; then :
1951 ac_retval=0
1952else
1953 $as_echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957fi
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 return $ac_retval
1965
1966} # ac_fn_cxx_try_link
1967cat >config.log <<_ACEOF
1968This file contains any messages produced by compilers while
1969running configure, to aid debugging if configure makes a mistake.
1970
1971It was created by MIC Offload Runtime Library $as_me 1.0, which was
1972generated by GNU Autoconf 2.64. Invocation command line was
1973
1974 $ $0 $@
1975
1976_ACEOF
1977exec 5>>config.log
1978{
1979cat <<_ASUNAME
1980## --------- ##
1981## Platform. ##
1982## --------- ##
1983
1984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1992
1993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2000
2001_ASUNAME
2002
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
2008 $as_echo "PATH: $as_dir"
2009 done
2010IFS=$as_save_IFS
2011
2012} >&5
2013
2014cat >&5 <<_ACEOF
2015
2016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
2023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
2026# Strip out --silent because we don't want to record it for future runs.
2027# Also quote any args containing shell meta-characters.
2028# Make two passes to allow for proper duplicate-argument suppression.
2029ac_configure_args=
2030ac_configure_args0=
2031ac_configure_args1=
2032ac_must_keep_next=false
2033for ac_pass in 1 2
2034do
2035 for ac_arg
2036 do
2037 case $ac_arg in
2038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040 | -silent | --silent | --silen | --sile | --sil)
2041 continue ;;
2042 *\'*)
2043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044 esac
2045 case $ac_pass in
2046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047 2)
2048 as_fn_append ac_configure_args1 " '$ac_arg'"
2049 if test $ac_must_keep_next = true; then
2050 ac_must_keep_next=false # Got value, back to normal.
2051 else
2052 case $ac_arg in
2053 *=* | --config-cache | -C | -disable-* | --disable-* \
2054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056 | -with-* | --with-* | -without-* | --without-* | --x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 esac
2060 ;;
2061 -* ) ac_must_keep_next=true ;;
2062 esac
2063 fi
2064 as_fn_append ac_configure_args " '$ac_arg'"
2065 ;;
2066 esac
2067 done
2068done
2069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
2071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log. We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
2075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077trap 'exit_status=$?
2078 # Save into config.log some information that might help in debugging.
2079 {
2080 echo
2081
2082 cat <<\_ASBOX
2083## ---------------- ##
2084## Cache variables. ##
2085## ---------------- ##
2086_ASBOX
2087 echo
2088 # The following way of writing the cache mishandles newlines in values,
2089(
2090 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in #(
2093 *${as_nl}*)
2094 case $ac_var in #(
2095 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2096$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097 esac
2098 case $ac_var in #(
2099 _ | IFS | as_nl) ;; #(
2100 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2101 *) { eval $ac_var=; unset $ac_var;} ;;
2102 esac ;;
2103 esac
2104 done
2105 (set) 2>&1 |
2106 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2107 *${as_nl}ac_space=\ *)
2108 sed -n \
2109 "s/'\''/'\''\\\\'\'''\''/g;
2110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111 ;; #(
2112 *)
2113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2114 ;;
2115 esac |
2116 sort
2117)
2118 echo
2119
2120 cat <<\_ASBOX
2121## ----------------- ##
2122## Output variables. ##
2123## ----------------- ##
2124_ASBOX
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 cat <<\_ASBOX
2138## ------------------- ##
2139## File substitutions. ##
2140## ------------------- ##
2141_ASBOX
2142 echo
2143 for ac_var in $ac_subst_files
2144 do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in
2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 esac
2149 $as_echo "$ac_var='\''$ac_val'\''"
2150 done | sort
2151 echo
2152 fi
2153
2154 if test -s confdefs.h; then
2155 cat <<\_ASBOX
2156## ----------- ##
2157## confdefs.h. ##
2158## ----------- ##
2159_ASBOX
2160 echo
2161 cat confdefs.h
2162 echo
2163 fi
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2171' 0
2172for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174done
2175ac_signal=0
2176
2177# confdefs.h avoids OS command line length limits that DEFS can exceed.
2178rm -f -r conftest* confdefs.h
2179
2180$as_echo "/* confdefs.h */" > confdefs.h
2181
2182# Predefined preprocessor variables.
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_NAME "$PACKAGE_NAME"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_VERSION "$PACKAGE_VERSION"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_STRING "$PACKAGE_STRING"
2198_ACEOF
2199
2200cat >>confdefs.h <<_ACEOF
2201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202_ACEOF
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_URL "$PACKAGE_URL"
2206_ACEOF
2207
2208
2209# Let the site file select an alternate cache file if it wants to.
2210# Prefer an explicitly selected file to automatically selected ones.
2211ac_site_file1=NONE
2212ac_site_file2=NONE
2213if test -n "$CONFIG_SITE"; then
2214 ac_site_file1=$CONFIG_SITE
2215elif test "x$prefix" != xNONE; then
2216 ac_site_file1=$prefix/share/config.site
2217 ac_site_file2=$prefix/etc/config.site
2218else
2219 ac_site_file1=$ac_default_prefix/share/config.site
2220 ac_site_file2=$ac_default_prefix/etc/config.site
2221fi
2222for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223do
2224 test "x$ac_site_file" = xNONE && continue
2225 if test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2229 . "$ac_site_file"
2230 fi
2231done
2232
2233if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special
2235 # files actually), so we avoid doing that.
2236 if test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238$as_echo "$as_me: loading cache $cache_file" >&6;}
2239 case $cache_file in
2240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241 *) . "./$cache_file";;
2242 esac
2243 fi
2244else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246$as_echo "$as_me: creating cache $cache_file" >&6;}
2247 >$cache_file
2248fi
2249
2250# Check that the precious variables saved in the cache have kept the same
2251# value.
2252ac_cache_corrupted=false
2253for ac_var in $ac_precious_vars; do
2254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255 eval ac_new_set=\$ac_env_${ac_var}_set
2256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257 eval ac_new_val=\$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2259 set,)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,set)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,);;
2268 *)
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w=`echo x $ac_old_val`
2272 ac_new_val_w=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted=:
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\$ac_old_val
2281 fi
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2286 fi;;
2287 esac
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2290 case $ac_new_val in
2291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 *) ac_arg=$ac_var=$ac_new_val ;;
2293 esac
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297 esac
2298 fi
2299done
2300if $ac_cache_corrupted; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306fi
2307## -------------------- ##
2308## Main body of script. ##
2309## -------------------- ##
2310
2311ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
2317
2318
2319
2320
2321
2322ac_aux_dir=
2323for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2324 for ac_t in install-sh install.sh shtool; do
2325 if test -f "$ac_dir/$ac_t"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/$ac_t -c"
2328 break 2
2329 fi
2330 done
2331done
2332if test -z "$ac_aux_dir"; then
2333 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2334fi
2335
2336# These three variables are undocumented and unsupported,
2337# and are intended to be withdrawn in a future Autoconf release.
2338# They can cause serious problems if a builder's source tree is in a directory
2339# whose full name contains unusual characters.
2340ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2341ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2342ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2343
2344
2345# Make sure we can run config.sub.
2346$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2347 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2348
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2350$as_echo_n "checking build system type... " >&6; }
2351if test "${ac_cv_build+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353else
2354 ac_build_alias=$build_alias
2355test "x$ac_build_alias" = x &&
2356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2357test "x$ac_build_alias" = x &&
2358 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2359ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2360 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2361
2362fi
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2364$as_echo "$ac_cv_build" >&6; }
2365case $ac_cv_build in
2366*-*-*) ;;
2367*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2368esac
2369build=$ac_cv_build
2370ac_save_IFS=$IFS; IFS='-'
2371set x $ac_cv_build
2372shift
2373build_cpu=$1
2374build_vendor=$2
2375shift; shift
2376# Remember, the first character of IFS is used to create $*,
2377# except with old shells:
2378build_os=$*
2379IFS=$ac_save_IFS
2380case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2381
2382
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2384$as_echo_n "checking host system type... " >&6; }
2385if test "${ac_cv_host+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387else
2388 if test "x$host_alias" = x; then
2389 ac_cv_host=$ac_cv_build
2390else
2391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2393fi
2394
2395fi
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2397$as_echo "$ac_cv_host" >&6; }
2398case $ac_cv_host in
2399*-*-*) ;;
2400*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2401esac
2402host=$ac_cv_host
2403ac_save_IFS=$IFS; IFS='-'
2404set x $ac_cv_host
2405shift
2406host_cpu=$1
2407host_vendor=$2
2408shift; shift
2409# Remember, the first character of IFS is used to create $*,
2410# except with old shells:
2411host_os=$*
2412IFS=$ac_save_IFS
2413case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2414
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2417$as_echo_n "checking target system type... " >&6; }
2418if test "${ac_cv_target+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
2420else
2421 if test "x$target_alias" = x; then
2422 ac_cv_target=$ac_cv_host
2423else
2424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2425 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2426fi
2427
2428fi
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2430$as_echo "$ac_cv_target" >&6; }
2431case $ac_cv_target in
2432*-*-*) ;;
2433*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2434esac
2435target=$ac_cv_target
2436ac_save_IFS=$IFS; IFS='-'
2437set x $ac_cv_target
2438shift
2439target_cpu=$1
2440target_vendor=$2
2441shift; shift
2442# Remember, the first character of IFS is used to create $*,
2443# except with old shells:
2444target_os=$*
2445IFS=$ac_save_IFS
2446case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2447
2448
2449# The aliases save the names the user supplied, while $host etc.
2450# will get canonicalized.
2451test -n "$target_alias" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_prefix=${target_alias}-
2455
2456target_alias=${target_alias-$host_alias}
2457
2458
2459am__api_version='1.11'
2460
2461# Find a good install program. We prefer a C program (faster),
2462# so one script is as good as another. But avoid the broken or
2463# incompatible versions:
2464# SysV /etc/install, /usr/sbin/install
2465# SunOS /usr/etc/install
2466# IRIX /sbin/install
2467# AIX /bin/install
2468# AmigaOS /C/install, which installs bootblocks on floppy discs
2469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472# OS/2's system install, which has a completely different semantic
2473# ./install, which can be erroneously created by make from ./install.sh.
2474# Reject install programs that cannot install multiple files.
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2476$as_echo_n "checking for a BSD-compatible install... " >&6; }
2477if test -z "$INSTALL"; then
2478if test "${ac_cv_path_install+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2487case $as_dir/ in #((
2488 ./ | .// | /[cC]/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2491 /usr/ucb/* ) ;;
2492 *)
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2495 # by default.
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2502 :
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2506 :
2507 else
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2511 mkdir conftest.dir
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2516 then
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 break 3
2519 fi
2520 fi
2521 fi
2522 done
2523 done
2524 ;;
2525esac
2526
2527 done
2528IFS=$as_save_IFS
2529
2530rm -rf conftest.one conftest.two conftest.dir
2531
2532fi
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 INSTALL=$ac_install_sh
2541 fi
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2544$as_echo "$INSTALL" >&6; }
2545
2546# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547# It thinks the first close brace ends the variable substitution.
2548test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2549
2550test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2551
2552test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2553
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2555$as_echo_n "checking whether build environment is sane... " >&6; }
2556# Just in case
2557sleep 1
2558echo timestamp > conftest.file
2559# Reject unsafe characters in $srcdir or the absolute working directory
2560# name. Accept space and tab only in the latter.
2561am_lf='
2562'
2563case `pwd` in
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2566esac
2567case $srcdir in
2568 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2569 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2570esac
2571
2572# Do `set' in a subshell so we don't clobber the current shell's
2573# arguments. Must try -L first in case configure is actually a
2574# symlink; some systems play weird games with the mod time of symlinks
2575# (eg FreeBSD returns the mod time of the symlink's containing
2576# directory).
2577if (
2578 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2579 if test "$*" = "X"; then
2580 # -L didn't work.
2581 set X `ls -t "$srcdir/configure" conftest.file`
2582 fi
2583 rm -f conftest.file
2584 if test "$*" != "X $srcdir/configure conftest.file" \
2585 && test "$*" != "X conftest.file $srcdir/configure"; then
2586
2587 # If neither matched, then we have a broken ls. This can happen
2588 # if, for instance, CONFIG_SHELL is bash and it inherits a
2589 # broken ls alias from the environment. This has actually
2590 # happened. Such a system could not be considered "sane".
2591 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2592alias in your environment" "$LINENO" 5
2593 fi
2594
2595 test "$2" = conftest.file
2596 )
2597then
2598 # Ok.
2599 :
2600else
2601 as_fn_error "newly created file is older than distributed files!
2602Check your system clock" "$LINENO" 5
2603fi
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2605$as_echo "yes" >&6; }
2606test "$program_prefix" != NONE &&
2607 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608# Use a double $ so make ignores it.
2609test "$program_suffix" != NONE &&
2610 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611# Double any \ or $.
2612# By default was `s,x,x', remove it if useless.
2613ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2615
2616# expand $ac_aux_dir to an absolute path
2617am_aux_dir=`cd $ac_aux_dir && pwd`
2618
2619if test x"${MISSING+set}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2623 *)
2624 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625 esac
2626fi
2627# Use eval to expand $SHELL
2628if eval "$MISSING --run true"; then
2629 am_missing_run="$MISSING --run "
2630else
2631 am_missing_run=
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2633$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2634fi
2635
2636if test x"${install_sh}" != xset; then
2637 case $am_aux_dir in
2638 *\ * | *\ *)
2639 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2640 *)
2641 install_sh="\${SHELL} $am_aux_dir/install-sh"
2642 esac
2643fi
2644
2645# Installed binaries are usually stripped using `strip' when the user
2646# run `make install-strip'. However `strip' might not be the right
2647# tool to use in cross-compilation environments, therefore Automake
2648# will honor the `STRIP' environment variable to overrule this program.
2649if test "$cross_compiling" != no; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652set dummy ${ac_tool_prefix}strip; ac_word=$2
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
2655if test "${ac_cv_prog_STRIP+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657else
2658 if test -n "$STRIP"; then
2659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673 done
2674IFS=$as_save_IFS
2675
2676fi
2677fi
2678STRIP=$ac_cv_prog_STRIP
2679if test -n "$STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681$as_echo "$STRIP" >&6; }
2682else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684$as_echo "no" >&6; }
2685fi
2686
2687
2688fi
2689if test -z "$ac_cv_prog_STRIP"; then
2690 ac_ct_STRIP=$STRIP
2691 # Extract the first word of "strip", so it can be a program name with args.
2692set dummy strip; ac_word=$2
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694$as_echo_n "checking for $ac_word... " >&6; }
2695if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697else
2698 if test -n "$ac_ct_STRIP"; then
2699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700else
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_ac_ct_STRIP="strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713 done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719if test -n "$ac_ct_STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721$as_echo "$ac_ct_STRIP" >&6; }
2722else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724$as_echo "no" >&6; }
2725fi
2726
2727 if test "x$ac_ct_STRIP" = x; then
2728 STRIP=":"
2729 else
2730 case $cross_compiling:$ac_tool_warned in
2731yes:)
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734ac_tool_warned=yes ;;
2735esac
2736 STRIP=$ac_ct_STRIP
2737 fi
2738else
2739 STRIP="$ac_cv_prog_STRIP"
2740fi
2741
2742fi
2743INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747if test -z "$MKDIR_P"; then
2748 if test "${ac_cv_path_mkdir+set}" = set; then :
2749 $as_echo_n "(cached) " >&6
2750else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2753do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_prog in mkdir gmkdir; do
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2759 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760 'mkdir (GNU coreutils) '* | \
2761 'mkdir (coreutils) '* | \
2762 'mkdir (fileutils) '4.1*)
2763 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2764 break 3;;
2765 esac
2766 done
2767 done
2768 done
2769IFS=$as_save_IFS
2770
2771fi
2772
2773 if test "${ac_cv_path_mkdir+set}" = set; then
2774 MKDIR_P="$ac_cv_path_mkdir -p"
2775 else
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for MKDIR_P within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 test -d ./--version && rmdir ./--version
2781 MKDIR_P="$ac_install_sh -d"
2782 fi
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785$as_echo "$MKDIR_P" >&6; }
2786
2787mkdir_p="$MKDIR_P"
2788case $mkdir_p in
2789 [\\/$]* | ?:[\\/]*) ;;
2790 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2791esac
2792
2793for ac_prog in gawk mawk nawk awk
2794do
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796set dummy $ac_prog; ac_word=$2
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798$as_echo_n "checking for $ac_word... " >&6; }
2799if test "${ac_cv_prog_AWK+set}" = set; then :
2800 $as_echo_n "(cached) " >&6
2801else
2802 if test -n "$AWK"; then
2803 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_AWK="$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816done
2817 done
2818IFS=$as_save_IFS
2819
2820fi
2821fi
2822AWK=$ac_cv_prog_AWK
2823if test -n "$AWK"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2825$as_echo "$AWK" >&6; }
2826else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828$as_echo "no" >&6; }
2829fi
2830
2831
2832 test -n "$AWK" && break
2833done
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2836$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2837set x ${MAKE-make}
2838ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2839if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2840 $as_echo_n "(cached) " >&6
2841else
2842 cat >conftest.make <<\_ACEOF
2843SHELL = /bin/sh
2844all:
2845 @echo '@@@%%%=$(MAKE)=@@@%%%'
2846_ACEOF
2847# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2848case `${MAKE-make} -f conftest.make 2>/dev/null` in
2849 *@@@%%%=?*=@@@%%%*)
2850 eval ac_cv_prog_make_${ac_make}_set=yes;;
2851 *)
2852 eval ac_cv_prog_make_${ac_make}_set=no;;
2853esac
2854rm -f conftest.make
2855fi
2856if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858$as_echo "yes" >&6; }
2859 SET_MAKE=
2860else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863 SET_MAKE="MAKE=${MAKE-make}"
2864fi
2865
2866rm -rf .tst 2>/dev/null
2867mkdir .tst 2>/dev/null
2868if test -d .tst; then
2869 am__leading_dot=.
2870else
2871 am__leading_dot=_
2872fi
2873rmdir .tst 2>/dev/null
2874
2875if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877 # is not polluted with repeated "-I."
2878 am__isrc=' -I$(srcdir)'
2879 # test to see if srcdir already configured
2880 if test -f $srcdir/config.status; then
2881 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2882 fi
2883fi
2884
2885# test whether we have cygpath
2886if test -z "$CYGPATH_W"; then
2887 if (cygpath --version) >/dev/null 2>/dev/null; then
2888 CYGPATH_W='cygpath -w'
2889 else
2890 CYGPATH_W=echo
2891 fi
2892fi
2893
2894
2895# Define the identity of the package.
2896 PACKAGE='liboffloadmic'
2897 VERSION='1.0'
2898
2899
2900cat >>confdefs.h <<_ACEOF
2901#define PACKAGE "$PACKAGE"
2902_ACEOF
2903
2904
2905cat >>confdefs.h <<_ACEOF
2906#define VERSION "$VERSION"
2907_ACEOF
2908
2909# Some tools Automake needs.
2910
2911ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2912
2913
2914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2915
2916
2917AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2918
2919
2920AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2921
2922
2923MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2924
2925# We need awk for the "check" target. The system "awk" is bad on
2926# some platforms.
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00002927# Always define AMTAR for backward compatibility. Yes, it's still used
2928# in the wild :-( We should find a proper way to deprecate it ...
2929AMTAR='$${TAR-tar}'
Kirill Yukhin5f520812014-11-13 14:03:17 +00002930
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00002931am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Kirill Yukhin5f520812014-11-13 14:03:17 +00002932
2933
2934
2935
2936
2937
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2939$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2940 # Check whether --enable-maintainer-mode was given.
2941if test "${enable_maintainer_mode+set}" = set; then :
2942 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2943else
2944 USE_MAINTAINER_MODE=no
2945fi
2946
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2948$as_echo "$USE_MAINTAINER_MODE" >&6; }
2949 if test $USE_MAINTAINER_MODE = yes; then
2950 MAINTAINER_MODE_TRUE=
2951 MAINTAINER_MODE_FALSE='#'
2952else
2953 MAINTAINER_MODE_TRUE='#'
2954 MAINTAINER_MODE_FALSE=
2955fi
2956
2957 MAINT=$MAINTAINER_MODE_TRUE
2958
2959
2960
2961ac_ext=c
2962ac_cpp='$CPP $CPPFLAGS'
2963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if test "${ac_cv_prog_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988done
2989 done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994CC=$ac_cv_prog_CC
2995if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997$as_echo "$CC" >&6; }
2998else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004fi
3005if test -z "$ac_cv_prog_CC"; then
3006 ac_ct_CC=$CC
3007 # Extract the first word of "gcc", so it can be a program name with args.
3008set dummy gcc; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013else
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_ac_ct_CC="gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029 done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037$as_echo "$ac_ct_CC" >&6; }
3038else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043 if test "x$ac_ct_CC" = x; then
3044 CC=""
3045 else
3046 case $cross_compiling:$ac_tool_warned in
3047yes:)
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050ac_tool_warned=yes ;;
3051esac
3052 CC=$ac_ct_CC
3053 fi
3054else
3055 CC="$ac_cv_prog_CC"
3056fi
3057
3058if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061set dummy ${ac_tool_prefix}cc; ac_word=$2
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063$as_echo_n "checking for $ac_word... " >&6; }
3064if test "${ac_cv_prog_CC+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CC="${ac_tool_prefix}cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081done
3082 done
3083IFS=$as_save_IFS
3084
3085fi
3086fi
3087CC=$ac_cv_prog_CC
3088if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090$as_echo "$CC" >&6; }
3091else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093$as_echo "no" >&6; }
3094fi
3095
3096
3097 fi
3098fi
3099if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101set dummy cc; ac_word=$2
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
3104if test "${ac_cv_prog_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
3110 ac_prog_rejected=no
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3120 continue
3121 fi
3122 ac_cv_prog_CC="cc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126done
3127 done
3128IFS=$as_save_IFS
3129
3130if test $ac_prog_rejected = yes; then
3131 # We found a bogon in the path, so make sure we never use it.
3132 set dummy $ac_cv_prog_CC
3133 shift
3134 if test $# != 0; then
3135 # We chose a different compiler from the bogus one.
3136 # However, it has the same basename, so the bogon will be chosen
3137 # first if we set CC to just the basename; use the full file name.
3138 shift
3139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3140 fi
3141fi
3142fi
3143fi
3144CC=$ac_cv_prog_CC
3145if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147$as_echo "$CC" >&6; }
3148else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154fi
3155if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl.exe
3158 do
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3165else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181 done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186CC=$ac_cv_prog_CC
3187if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189$as_echo "$CC" >&6; }
3190else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195
3196 test -n "$CC" && break
3197 done
3198fi
3199if test -z "$CC"; then
3200 ac_ct_CC=$CC
3201 for ac_prog in cl.exe
3202do
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204set dummy $ac_prog; ac_word=$2
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206$as_echo_n "checking for $ac_word... " >&6; }
3207if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209else
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_ac_ct_CC="$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224done
3225 done
3226IFS=$as_save_IFS
3227
3228fi
3229fi
3230ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233$as_echo "$ac_ct_CC" >&6; }
3234else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237fi
3238
3239
3240 test -n "$ac_ct_CC" && break
3241done
3242
3243 if test "x$ac_ct_CC" = x; then
3244 CC=""
3245 else
3246 case $cross_compiling:$ac_tool_warned in
3247yes:)
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250ac_tool_warned=yes ;;
3251esac
3252 CC=$ac_ct_CC
3253 fi
3254fi
3255
3256fi
3257
3258
3259test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261as_fn_error "no acceptable C compiler found in \$PATH
3262See \`config.log' for more details." "$LINENO" 5; }
3263
3264# Provide some information about the compiler.
3265$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3266set X $ac_compile
3267ac_compiler=$2
3268for ac_option in --version -v -V -qversion; do
3269 { { ac_try="$ac_compiler $ac_option >&5"
3270case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275$as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3277 ac_status=$?
3278 if test -s conftest.err; then
3279 sed '10a\
3280... rest of stderr output deleted ...
3281 10q' conftest.err >conftest.er1
3282 cat conftest.er1 >&5
3283 rm -f conftest.er1 conftest.err
3284 fi
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3287done
3288
3289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291
3292int
3293main ()
3294{
3295
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300ac_clean_files_save=$ac_clean_files
3301ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3302# Try to create an executable without -o first, disregard a.out.
3303# It will help us diagnose broken compilers, and finding out an intuition
3304# of exeext.
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306$as_echo_n "checking for C compiler default output file name... " >&6; }
3307ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3308
3309# The possible output files:
3310ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3311
3312ac_rmfiles=
3313for ac_file in $ac_files
3314do
3315 case $ac_file in
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 esac
3319done
3320rm -f $ac_rmfiles
3321
3322if { { ac_try="$ac_link_default"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3330 ac_status=$?
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335# in a Makefile. We should not override ac_cv_exeext if it was cached,
3336# so that the user can short-circuit this test for compilers unknown to
3337# Autoconf.
3338for ac_file in $ac_files ''
3339do
3340 test -f "$ac_file" || continue
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3343 ;;
3344 [ab].out )
3345 # We found the default executable, but exeext='' is most
3346 # certainly right.
3347 break;;
3348 *.* )
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3350 then :; else
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352 fi
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3357 # actually working.
3358 break;;
3359 * )
3360 break;;
3361 esac
3362done
3363test "$ac_cv_exeext" = no && ac_cv_exeext=
3364
3365else
3366 ac_file=''
3367fi
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369$as_echo "$ac_file" >&6; }
3370if test -z "$ac_file"; then :
3371 $as_echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
3374{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376{ as_fn_set_status 77
3377as_fn_error "C compiler cannot create executables
3378See \`config.log' for more details." "$LINENO" 5; }; }
3379fi
3380ac_exeext=$ac_cv_exeext
3381
3382# Check that the compiler produces executables we can run. If not, either
3383# the compiler is broken, or we cross compile.
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385$as_echo_n "checking whether the C compiler works... " >&6; }
3386# If not cross compiling, check that we can run a simple program.
3387if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406as_fn_error "cannot run C compiled programs.
3407If you meant to cross compile, use \`--host'.
3408See \`config.log' for more details." "$LINENO" 5; }
3409 fi
3410 fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413$as_echo "yes" >&6; }
3414
3415rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3416ac_clean_files=$ac_clean_files_save
3417# Check that the compiler produces executables we can run. If not, either
3418# the compiler is broken, or we cross compile.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420$as_echo_n "checking whether we are cross compiling... " >&6; }
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422$as_echo "$cross_compiling" >&6; }
3423
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425$as_echo_n "checking for suffix of executables... " >&6; }
3426if { { ac_try="$ac_link"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432$as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439# work properly (i.e., refer to `conftest.exe'), while it won't with
3440# `rm'.
3441for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 break;;
3447 * ) break;;
3448 esac
3449done
3450else
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453as_fn_error "cannot compute suffix of executables: cannot compile and link
3454See \`config.log' for more details." "$LINENO" 5; }
3455fi
3456rm -f conftest$ac_cv_exeext
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458$as_echo "$ac_cv_exeext" >&6; }
3459
3460rm -f conftest.$ac_ext
3461EXEEXT=$ac_cv_exeext
3462ac_exeext=$EXEEXT
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3464$as_echo_n "checking for suffix of object files... " >&6; }
3465if test "${ac_cv_objext+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h. */
3470
3471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479rm -f conftest.o conftest.obj
3480if { { ac_try="$ac_compile"
3481case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compile") 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; then :
3491 for ac_file in conftest.o conftest.obj conftest.*; do
3492 test -f "$ac_file" || continue;
3493 case $ac_file in
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3496 break;;
3497 esac
3498done
3499else
3500 $as_echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505as_fn_error "cannot compute suffix of object files: cannot compile
3506See \`config.log' for more details." "$LINENO" 5; }
3507fi
3508rm -f conftest.$ac_cv_objext conftest.$ac_ext
3509fi
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3511$as_echo "$ac_cv_objext" >&6; }
3512OBJEXT=$ac_cv_objext
3513ac_objext=$OBJEXT
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3515$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3516if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520/* end confdefs.h. */
3521
3522int
3523main ()
3524{
3525#ifndef __GNUC__
3526 choke me
3527#endif
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_compiler_gnu=yes
3535else
3536 ac_compiler_gnu=no
3537fi
3538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3544if test $ac_compiler_gnu = yes; then
3545 GCC=yes
3546else
3547 GCC=
3548fi
3549ac_test_CFLAGS=${CFLAGS+set}
3550ac_save_CFLAGS=$CFLAGS
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3552$as_echo_n "checking whether $CC accepts -g... " >&6; }
3553if test "${ac_cv_prog_cc_g+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555else
3556 ac_save_c_werror_flag=$ac_c_werror_flag
3557 ac_c_werror_flag=yes
3558 ac_cv_prog_cc_g=no
3559 CFLAGS="-g"
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561/* end confdefs.h. */
3562
3563int
3564main ()
3565{
3566
3567 ;
3568 return 0;
3569}
3570_ACEOF
3571if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_g=yes
3573else
3574 CFLAGS=""
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577
3578int
3579main ()
3580{
3581
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586if ac_fn_c_try_compile "$LINENO"; then :
3587
3588else
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3590 CFLAGS="-g"
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h. */
3593
3594int
3595main ()
3596{
3597
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_prog_cc_g=yes
3604fi
3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606fi
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3611fi
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613$as_echo "$ac_cv_prog_cc_g" >&6; }
3614if test "$ac_test_CFLAGS" = set; then
3615 CFLAGS=$ac_save_CFLAGS
3616elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3618 CFLAGS="-g -O2"
3619 else
3620 CFLAGS="-g"
3621 fi
3622else
3623 if test "$GCC" = yes; then
3624 CFLAGS="-O2"
3625 else
3626 CFLAGS=
3627 fi
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3630$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3631if test "${ac_cv_prog_cc_c89+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633else
3634 ac_cv_prog_cc_c89=no
3635ac_save_CC=$CC
3636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h. */
3638#include <stdarg.h>
3639#include <stdio.h>
3640#include <sys/types.h>
3641#include <sys/stat.h>
3642/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643struct buf { int x; };
3644FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645static char *e (p, i)
3646 char **p;
3647 int i;
3648{
3649 return p[i];
3650}
3651static char *f (char * (*g) (char **, int), char **p, ...)
3652{
3653 char *s;
3654 va_list v;
3655 va_start (v,p);
3656 s = g (p, va_arg (v,int));
3657 va_end (v);
3658 return s;
3659}
3660
3661/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std. */
3668int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669
3670/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671 inside strings and character constants. */
3672#define FOO(x) 'x'
3673int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3674
3675int test (int i, double x);
3676struct s1 {int (*f) (int a);};
3677struct s2 {int (*f) (double a);};
3678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679int argc;
3680char **argv;
3681int
3682main ()
3683{
3684return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3691do
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_c89=$ac_arg
3695fi
3696rm -f core conftest.err conftest.$ac_objext
3697 test "x$ac_cv_prog_cc_c89" != "xno" && break
3698done
3699rm -f conftest.$ac_ext
3700CC=$ac_save_CC
3701
3702fi
3703# AC_CACHE_VAL
3704case "x$ac_cv_prog_cc_c89" in
3705 x)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707$as_echo "none needed" >&6; } ;;
3708 xno)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710$as_echo "unsupported" >&6; } ;;
3711 *)
3712 CC="$CC $ac_cv_prog_cc_c89"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3715esac
3716if test "x$ac_cv_prog_cc_c89" != xno; then :
3717
3718fi
3719
3720ac_ext=c
3721ac_cpp='$CPP $CPPFLAGS'
3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725DEPDIR="${am__leading_dot}deps"
3726
3727ac_config_commands="$ac_config_commands depfiles"
3728
3729
3730am_make=${MAKE-make}
3731cat > confinc << 'END'
3732am__doit:
3733 @echo this is the am__doit target
3734.PHONY: am__doit
3735END
3736# If we don't find an include directive, just comment out the code.
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3738$as_echo_n "checking for style of include used by $am_make... " >&6; }
3739am__include="#"
3740am__quote=
3741_am_result=none
3742# First try GNU make style include.
3743echo "include confinc" > confmf
3744# Ignore all kinds of additional output from `make'.
3745case `$am_make -s -f confmf 2> /dev/null` in #(
3746*the\ am__doit\ target*)
3747 am__include=include
3748 am__quote=
3749 _am_result=GNU
3750 ;;
3751esac
3752# Now try BSD make style include.
3753if test "$am__include" = "#"; then
3754 echo '.include "confinc"' > confmf
3755 case `$am_make -s -f confmf 2> /dev/null` in #(
3756 *the\ am__doit\ target*)
3757 am__include=.include
3758 am__quote="\""
3759 _am_result=BSD
3760 ;;
3761 esac
3762fi
3763
3764
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3766$as_echo "$_am_result" >&6; }
3767rm -f confinc confmf
3768
3769# Check whether --enable-dependency-tracking was given.
3770if test "${enable_dependency_tracking+set}" = set; then :
3771 enableval=$enable_dependency_tracking;
3772fi
3773
3774if test "x$enable_dependency_tracking" != xno; then
3775 am_depcomp="$ac_aux_dir/depcomp"
3776 AMDEPBACKSLASH='\'
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00003777 am__nodep='_no'
Kirill Yukhin5f520812014-11-13 14:03:17 +00003778fi
3779 if test "x$enable_dependency_tracking" != xno; then
3780 AMDEP_TRUE=
3781 AMDEP_FALSE='#'
3782else
3783 AMDEP_TRUE='#'
3784 AMDEP_FALSE=
3785fi
3786
3787
3788
3789depcc="$CC" am_compiler_list=
3790
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3792$as_echo_n "checking dependency style of $depcc... " >&6; }
3793if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795else
3796 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797 # We make a subdir and do the tests there. Otherwise we can end up
3798 # making bogus files that we don't know about and never remove. For
3799 # instance it was reported that on HP-UX the gcc test will end up
3800 # making a dummy file named `D' -- because `-MD' means `put the output
3801 # in D'.
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00003802 rm -rf conftest.dir
Kirill Yukhin5f520812014-11-13 14:03:17 +00003803 mkdir conftest.dir
3804 # Copy depcomp to subdir because otherwise we won't find it if we're
3805 # using a relative directory.
3806 cp "$am_depcomp" conftest.dir
3807 cd conftest.dir
3808 # We will build objects and dependencies in a subdirectory because
3809 # it helps to detect inapplicable dependency modes. For instance
3810 # both Tru64's cc and ICC support -MD to output dependencies as a
3811 # side effect of compilation, but ICC will put the dependencies in
3812 # the current directory while Tru64 will put them in the object
3813 # directory.
3814 mkdir sub
3815
3816 am_cv_CC_dependencies_compiler_type=none
3817 if test "$am_compiler_list" = ""; then
3818 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3819 fi
3820 am__universal=false
3821 case " $depcc " in #(
3822 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3823 esac
3824
3825 for depmode in $am_compiler_list; do
3826 # Setup a source with many dependencies, because some compilers
3827 # like to wrap large dependency lists on column 80 (with \), and
3828 # we should not choose a depcomp mode which is confused by this.
3829 #
3830 # We need to recreate these files for each test, as the compiler may
3831 # overwrite some of them when testing with obscure command lines.
3832 # This happens at least with the AIX C compiler.
3833 : > sub/conftest.c
3834 for i in 1 2 3 4 5 6; do
3835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3837 # Solaris 8's {/usr,}/bin/sh.
3838 touch sub/conftst$i.h
3839 done
3840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3841
3842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3843 # mode. It turns out that the SunPro C++ compiler does not properly
3844 # handle `-M -o', and we need to detect this. Also, some Intel
3845 # versions had trouble with output in subdirs
3846 am__obj=sub/conftest.${OBJEXT-o}
3847 am__minus_obj="-o $am__obj"
3848 case $depmode in
3849 gcc)
3850 # This depmode causes a compiler race in universal mode.
3851 test "$am__universal" = false || continue
3852 ;;
3853 nosideeffect)
3854 # after this tag, mechanisms are not by side-effect, so they'll
3855 # only be used when explicitly requested
3856 if test "x$enable_dependency_tracking" = xyes; then
3857 continue
3858 else
3859 break
3860 fi
3861 ;;
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00003862 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Kirill Yukhin5f520812014-11-13 14:03:17 +00003863 # This compiler won't grok `-c -o', but also, the minuso test has
3864 # not run yet. These depmodes are late enough in the game, and
3865 # so weak that their functioning should not be impacted.
3866 am__obj=conftest.${OBJEXT-o}
3867 am__minus_obj=
3868 ;;
3869 none) break ;;
3870 esac
3871 if depmode=$depmode \
3872 source=sub/conftest.c object=$am__obj \
3873 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3874 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3875 >/dev/null 2>conftest.err &&
3876 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3877 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3878 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3879 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3880 # icc doesn't choke on unknown options, it will just issue warnings
3881 # or remarks (even with -Werror). So we grep stderr for any message
3882 # that says an option was ignored or not supported.
3883 # When given -MP, icc 7.0 and 7.1 complain thusly:
3884 # icc: Command line warning: ignoring option '-M'; no argument required
3885 # The diagnosis changed in icc 8.0:
3886 # icc: Command line remark: option '-MP' not supported
3887 if (grep 'ignoring option' conftest.err ||
3888 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3889 am_cv_CC_dependencies_compiler_type=$depmode
3890 break
3891 fi
3892 fi
3893 done
3894
3895 cd ..
3896 rm -rf conftest.dir
3897else
3898 am_cv_CC_dependencies_compiler_type=none
3899fi
3900
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3903$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3904CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3905
3906 if
3907 test "x$enable_dependency_tracking" != xno \
3908 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3909 am__fastdepCC_TRUE=
3910 am__fastdepCC_FALSE='#'
3911else
3912 am__fastdepCC_TRUE='#'
3913 am__fastdepCC_FALSE=
3914fi
3915
3916
3917ac_ext=cpp
3918ac_cpp='$CXXCPP $CPPFLAGS'
3919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3922if test -z "$CXX"; then
3923 if test -n "$CCC"; then
3924 CXX=$CCC
3925 else
3926 if test -n "$ac_tool_prefix"; then
3927 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3928 do
3929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if test "${ac_cv_prog_CXX+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935else
3936 if test -n "$CXX"; then
3937 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956CXX=$ac_cv_prog_CXX
3957if test -n "$CXX"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3959$as_echo "$CXX" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966 test -n "$CXX" && break
3967 done
3968fi
3969if test -z "$CXX"; then
3970 ac_ct_CXX=$CXX
3971 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3972do
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974set dummy $ac_prog; ac_word=$2
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976$as_echo_n "checking for $ac_word... " >&6; }
3977if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979else
3980 if test -n "$ac_ct_CXX"; then
3981 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_ac_ct_CXX="$ac_prog"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994done
3995 done
3996IFS=$as_save_IFS
3997
3998fi
3999fi
4000ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4001if test -n "$ac_ct_CXX"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4003$as_echo "$ac_ct_CXX" >&6; }
4004else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
4007fi
4008
4009
4010 test -n "$ac_ct_CXX" && break
4011done
4012
4013 if test "x$ac_ct_CXX" = x; then
4014 CXX="g++"
4015 else
4016 case $cross_compiling:$ac_tool_warned in
4017yes:)
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020ac_tool_warned=yes ;;
4021esac
4022 CXX=$ac_ct_CXX
4023 fi
4024fi
4025
4026 fi
4027fi
4028# Provide some information about the compiler.
4029$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4030set X $ac_compile
4031ac_compiler=$2
4032for ac_option in --version -v -V -qversion; do
4033 { { ac_try="$ac_compiler $ac_option >&5"
4034case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037esac
4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039$as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4041 ac_status=$?
4042 if test -s conftest.err; then
4043 sed '10a\
4044... rest of stderr output deleted ...
4045 10q' conftest.err >conftest.er1
4046 cat conftest.er1 >&5
4047 rm -f conftest.er1 conftest.err
4048 fi
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }
4051done
4052
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4054$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4055if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4057else
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h. */
4060
4061int
4062main ()
4063{
4064#ifndef __GNUC__
4065 choke me
4066#endif
4067
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072if ac_fn_cxx_try_compile "$LINENO"; then :
4073 ac_compiler_gnu=yes
4074else
4075 ac_compiler_gnu=no
4076fi
4077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4079
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4082$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4083if test $ac_compiler_gnu = yes; then
4084 GXX=yes
4085else
4086 GXX=
4087fi
4088ac_test_CXXFLAGS=${CXXFLAGS+set}
4089ac_save_CXXFLAGS=$CXXFLAGS
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4091$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4092if test "${ac_cv_prog_cxx_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094else
4095 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4096 ac_cxx_werror_flag=yes
4097 ac_cv_prog_cxx_g=no
4098 CXXFLAGS="-g"
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100/* end confdefs.h. */
4101
4102int
4103main ()
4104{
4105
4106 ;
4107 return 0;
4108}
4109_ACEOF
4110if ac_fn_cxx_try_compile "$LINENO"; then :
4111 ac_cv_prog_cxx_g=yes
4112else
4113 CXXFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h. */
4116
4117int
4118main ()
4119{
4120
4121 ;
4122 return 0;
4123}
4124_ACEOF
4125if ac_fn_cxx_try_compile "$LINENO"; then :
4126
4127else
4128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4129 CXXFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h. */
4132
4133int
4134main ()
4135{
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141if ac_fn_cxx_try_compile "$LINENO"; then :
4142 ac_cv_prog_cxx_g=yes
4143fi
4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145fi
4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147fi
4148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4150fi
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4152$as_echo "$ac_cv_prog_cxx_g" >&6; }
4153if test "$ac_test_CXXFLAGS" = set; then
4154 CXXFLAGS=$ac_save_CXXFLAGS
4155elif test $ac_cv_prog_cxx_g = yes; then
4156 if test "$GXX" = yes; then
4157 CXXFLAGS="-g -O2"
4158 else
4159 CXXFLAGS="-g"
4160 fi
4161else
4162 if test "$GXX" = yes; then
4163 CXXFLAGS="-O2"
4164 else
4165 CXXFLAGS=
4166 fi
4167fi
4168ac_ext=c
4169ac_cpp='$CPP $CPPFLAGS'
4170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174depcc="$CXX" am_compiler_list=
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4177$as_echo_n "checking dependency style of $depcc... " >&6; }
4178if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4182 # We make a subdir and do the tests there. Otherwise we can end up
4183 # making bogus files that we don't know about and never remove. For
4184 # instance it was reported that on HP-UX the gcc test will end up
4185 # making a dummy file named `D' -- because `-MD' means `put the output
4186 # in D'.
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00004187 rm -rf conftest.dir
Kirill Yukhin5f520812014-11-13 14:03:17 +00004188 mkdir conftest.dir
4189 # Copy depcomp to subdir because otherwise we won't find it if we're
4190 # using a relative directory.
4191 cp "$am_depcomp" conftest.dir
4192 cd conftest.dir
4193 # We will build objects and dependencies in a subdirectory because
4194 # it helps to detect inapplicable dependency modes. For instance
4195 # both Tru64's cc and ICC support -MD to output dependencies as a
4196 # side effect of compilation, but ICC will put the dependencies in
4197 # the current directory while Tru64 will put them in the object
4198 # directory.
4199 mkdir sub
4200
4201 am_cv_CXX_dependencies_compiler_type=none
4202 if test "$am_compiler_list" = ""; then
4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4204 fi
4205 am__universal=false
4206 case " $depcc " in #(
4207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4208 esac
4209
4210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4214 #
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4222 # Solaris 8's {/usr,}/bin/sh.
4223 touch sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226
4227 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4228 # mode. It turns out that the SunPro C++ compiler does not properly
4229 # handle `-M -o', and we need to detect this. Also, some Intel
4230 # versions had trouble with output in subdirs
4231 am__obj=sub/conftest.${OBJEXT-o}
4232 am__minus_obj="-o $am__obj"
4233 case $depmode in
4234 gcc)
4235 # This depmode causes a compiler race in universal mode.
4236 test "$am__universal" = false || continue
4237 ;;
4238 nosideeffect)
4239 # after this tag, mechanisms are not by side-effect, so they'll
4240 # only be used when explicitly requested
4241 if test "x$enable_dependency_tracking" = xyes; then
4242 continue
4243 else
4244 break
4245 fi
4246 ;;
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00004247 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
Kirill Yukhin5f520812014-11-13 14:03:17 +00004248 # This compiler won't grok `-c -o', but also, the minuso test has
4249 # not run yet. These depmodes are late enough in the game, and
4250 # so weak that their functioning should not be impacted.
4251 am__obj=conftest.${OBJEXT-o}
4252 am__minus_obj=
4253 ;;
4254 none) break ;;
4255 esac
4256 if depmode=$depmode \
4257 source=sub/conftest.c object=$am__obj \
4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4260 >/dev/null 2>conftest.err &&
4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274 am_cv_CXX_dependencies_compiler_type=$depmode
4275 break
4276 fi
4277 fi
4278 done
4279
4280 cd ..
4281 rm -rf conftest.dir
4282else
4283 am_cv_CXX_dependencies_compiler_type=none
4284fi
4285
4286fi
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4288$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4289CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4290
4291 if
4292 test "x$enable_dependency_tracking" != xno \
4293 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4294 am__fastdepCXX_TRUE=
4295 am__fastdepCXX_FALSE='#'
4296else
4297 am__fastdepCXX_TRUE='#'
4298 am__fastdepCXX_FALSE=
4299fi
4300
4301
4302ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4303
4304# Default to --enable-multilib
4305# Check whether --enable-multilib was given.
4306if test "${enable_multilib+set}" = set; then :
4307 enableval=$enable_multilib; case "$enableval" in
4308 yes) multilib=yes ;;
4309 no) multilib=no ;;
4310 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4311 esac
4312else
4313 multilib=yes
4314fi
4315
4316
4317# We may get other options which we leave undocumented:
4318# --with-target-subdir, --with-multisrctop, --with-multisubdir
4319# See config-ml.in if you want the gory details.
4320
4321if test "$srcdir" = "."; then
4322 if test "$with_target_subdir" != "."; then
4323 multi_basedir="$srcdir/$with_multisrctop../.."
4324 else
4325 multi_basedir="$srcdir/$with_multisrctop.."
4326 fi
4327else
4328 multi_basedir="$srcdir/.."
4329fi
4330
4331
4332# Even if the default multilib is not a cross compilation,
4333# it may be that some of the other multilibs are.
4334if test $cross_compiling = no && test $multilib = yes \
4335 && test "x${with_multisubdir}" != x ; then
4336 cross_compiling=maybe
4337fi
4338
4339ac_config_commands="$ac_config_commands default-1"
4340
4341
Ilya Verbin9d73ec12014-11-13 14:05:49 +00004342
4343subdirs="$subdirs plugin"
4344
4345
Kirill Yukhin5f520812014-11-13 14:03:17 +00004346ac_ext=c
4347ac_cpp='$CPP $CPPFLAGS'
4348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4352$as_echo_n "checking how to run the C preprocessor... " >&6; }
4353# On Suns, sometimes $CPP names a directory.
4354if test -n "$CPP" && test -d "$CPP"; then
4355 CPP=
4356fi
4357if test -z "$CPP"; then
4358 if test "${ac_cv_prog_CPP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 # Double quotes because CPP needs to be expanded
4362 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4363 do
4364 ac_preproc_ok=false
4365for ac_c_preproc_warn_flag in '' yes
4366do
4367 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h. */
4375#ifdef __STDC__
4376# include <limits.h>
4377#else
4378# include <assert.h>
4379#endif
4380 Syntax error
4381_ACEOF
4382if ac_fn_c_try_cpp "$LINENO"; then :
4383
4384else
4385 # Broken: fails on valid input.
4386continue
4387fi
4388rm -f conftest.err conftest.$ac_ext
4389
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
4394#include <ac_nonexistent.h>
4395_ACEOF
4396if ac_fn_c_try_cpp "$LINENO"; then :
4397 # Broken: success on invalid input.
4398continue
4399else
4400 # Passes both tests.
4401ac_preproc_ok=:
4402break
4403fi
4404rm -f conftest.err conftest.$ac_ext
4405
4406done
4407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408rm -f conftest.err conftest.$ac_ext
4409if $ac_preproc_ok; then :
4410 break
4411fi
4412
4413 done
4414 ac_cv_prog_CPP=$CPP
4415
4416fi
4417 CPP=$ac_cv_prog_CPP
4418else
4419 ac_cv_prog_CPP=$CPP
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4422$as_echo "$CPP" >&6; }
4423ac_preproc_ok=false
4424for ac_c_preproc_warn_flag in '' yes
4425do
4426 # Use a header file that comes with gcc, so configuring glibc
4427 # with a fresh cross-compiler works.
4428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4429 # <limits.h> exists even on freestanding compilers.
4430 # On the NeXT, cc -E runs the code through the compiler's parser,
4431 # not just through cpp. "Syntax error" is here to catch this case.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h. */
4434#ifdef __STDC__
4435# include <limits.h>
4436#else
4437# include <assert.h>
4438#endif
4439 Syntax error
4440_ACEOF
4441if ac_fn_c_try_cpp "$LINENO"; then :
4442
4443else
4444 # Broken: fails on valid input.
4445continue
4446fi
4447rm -f conftest.err conftest.$ac_ext
4448
4449 # OK, works on sane cases. Now check whether nonexistent headers
4450 # can be detected and how.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h. */
4453#include <ac_nonexistent.h>
4454_ACEOF
4455if ac_fn_c_try_cpp "$LINENO"; then :
4456 # Broken: success on invalid input.
4457continue
4458else
4459 # Passes both tests.
4460ac_preproc_ok=:
4461break
4462fi
4463rm -f conftest.err conftest.$ac_ext
4464
4465done
4466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467rm -f conftest.err conftest.$ac_ext
4468if $ac_preproc_ok; then :
4469
4470else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473as_fn_error "C preprocessor \"$CPP\" fails sanity check
4474See \`config.log' for more details." "$LINENO" 5; }
4475fi
4476
4477ac_ext=c
4478ac_cpp='$CPP $CPPFLAGS'
4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482
4483
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4485$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4486if test "${ac_cv_path_GREP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488else
4489 if test -z "$GREP"; then
4490 ac_path_GREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in grep ggrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4501# Check for GNU ac_path_GREP and select it if it is found.
4502 # Check for GNU $ac_path_GREP
4503case `"$ac_path_GREP" --version 2>&1` in
4504*GNU*)
4505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4506*)
4507 ac_count=0
4508 $as_echo_n 0123456789 >"conftest.in"
4509 while :
4510 do
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'GREP' >> "conftest.nl"
4515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_GREP="$ac_path_GREP"
4521 ac_path_GREP_max=$ac_count
4522 fi
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527esac
4528
4529 $ac_path_GREP_found && break 3
4530 done
4531 done
4532 done
4533IFS=$as_save_IFS
4534 if test -z "$ac_cv_path_GREP"; then
4535 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 fi
4537else
4538 ac_cv_path_GREP=$GREP
4539fi
4540
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4543$as_echo "$ac_cv_path_GREP" >&6; }
4544 GREP="$ac_cv_path_GREP"
4545
4546
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4548$as_echo_n "checking for egrep... " >&6; }
4549if test "${ac_cv_path_EGREP+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551else
4552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4553 then ac_cv_path_EGREP="$GREP -E"
4554 else
4555 if test -z "$EGREP"; then
4556 ac_path_EGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in egrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4567# Check for GNU ac_path_EGREP and select it if it is found.
4568 # Check for GNU $ac_path_EGREP
4569case `"$ac_path_EGREP" --version 2>&1` in
4570*GNU*)
4571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4572*)
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4576 do
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'EGREP' >> "conftest.nl"
4581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_EGREP="$ac_path_EGREP"
4587 ac_path_EGREP_max=$ac_count
4588 fi
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593esac
4594
4595 $ac_path_EGREP_found && break 3
4596 done
4597 done
4598 done
4599IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_EGREP"; then
4601 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4602 fi
4603else
4604 ac_cv_path_EGREP=$EGREP
4605fi
4606
4607 fi
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4610$as_echo "$ac_cv_path_EGREP" >&6; }
4611 EGREP="$ac_cv_path_EGREP"
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4615$as_echo_n "checking for ANSI C header files... " >&6; }
4616if test "${ac_cv_header_stdc+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h. */
4621#include <stdlib.h>
4622#include <stdarg.h>
4623#include <string.h>
4624#include <float.h>
4625
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_header_stdc=yes
4636else
4637 ac_cv_header_stdc=no
4638fi
4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
4641if test $ac_cv_header_stdc = yes; then
4642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645#include <string.h>
4646
4647_ACEOF
4648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "memchr" >/dev/null 2>&1; then :
4650
4651else
4652 ac_cv_header_stdc=no
4653fi
4654rm -f conftest*
4655
4656fi
4657
4658if test $ac_cv_header_stdc = yes; then
4659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661/* end confdefs.h. */
4662#include <stdlib.h>
4663
4664_ACEOF
4665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666 $EGREP "free" >/dev/null 2>&1; then :
4667
4668else
4669 ac_cv_header_stdc=no
4670fi
4671rm -f conftest*
4672
4673fi
4674
4675if test $ac_cv_header_stdc = yes; then
4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677 if test "$cross_compiling" = yes; then :
4678 :
4679else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682#include <ctype.h>
4683#include <stdlib.h>
4684#if ((' ' & 0x0FF) == 0x020)
4685# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4686# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687#else
4688# define ISLOWER(c) \
4689 (('a' <= (c) && (c) <= 'i') \
4690 || ('j' <= (c) && (c) <= 'r') \
4691 || ('s' <= (c) && (c) <= 'z'))
4692# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4693#endif
4694
4695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4696int
4697main ()
4698{
4699 int i;
4700 for (i = 0; i < 256; i++)
4701 if (XOR (islower (i), ISLOWER (i))
4702 || toupper (i) != TOUPPER (i))
4703 return 2;
4704 return 0;
4705}
4706_ACEOF
4707if ac_fn_c_try_run "$LINENO"; then :
4708
4709else
4710 ac_cv_header_stdc=no
4711fi
4712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4713 conftest.$ac_objext conftest.beam conftest.$ac_ext
4714fi
4715
4716fi
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4719$as_echo "$ac_cv_header_stdc" >&6; }
4720if test $ac_cv_header_stdc = yes; then
4721
4722$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4723
4724fi
4725
4726# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4727for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729do :
4730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4732"
4733eval as_val=\$$as_ac_Header
4734 if test "x$as_val" = x""yes; then :
4735 cat >>confdefs.h <<_ACEOF
4736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4737_ACEOF
4738
4739fi
4740
4741done
4742
4743
4744# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4745# for constant arguments. Useless!
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4747$as_echo_n "checking for working alloca.h... " >&6; }
4748if test "${ac_cv_working_alloca_h+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750else
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752/* end confdefs.h. */
4753#include <alloca.h>
4754int
4755main ()
4756{
4757char *p = (char *) alloca (2 * sizeof (int));
4758 if (p) return 0;
4759 ;
4760 return 0;
4761}
4762_ACEOF
4763if ac_fn_c_try_link "$LINENO"; then :
4764 ac_cv_working_alloca_h=yes
4765else
4766 ac_cv_working_alloca_h=no
4767fi
4768rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4772$as_echo "$ac_cv_working_alloca_h" >&6; }
4773if test $ac_cv_working_alloca_h = yes; then
4774
4775$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4776
4777fi
4778
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4780$as_echo_n "checking for alloca... " >&6; }
4781if test "${ac_cv_func_alloca_works+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786#ifdef __GNUC__
4787# define alloca __builtin_alloca
4788#else
4789# ifdef _MSC_VER
4790# include <malloc.h>
4791# define alloca _alloca
4792# else
4793# ifdef HAVE_ALLOCA_H
4794# include <alloca.h>
4795# else
4796# ifdef _AIX
4797 #pragma alloca
4798# else
4799# ifndef alloca /* predefined by HP cc +Olibcalls */
4800char *alloca ();
4801# endif
4802# endif
4803# endif
4804# endif
4805#endif
4806
4807int
4808main ()
4809{
4810char *p = (char *) alloca (1);
4811 if (p) return 0;
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816if ac_fn_c_try_link "$LINENO"; then :
4817 ac_cv_func_alloca_works=yes
4818else
4819 ac_cv_func_alloca_works=no
4820fi
4821rm -f core conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4825$as_echo "$ac_cv_func_alloca_works" >&6; }
4826
4827if test $ac_cv_func_alloca_works = yes; then
4828
4829$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4830
4831else
4832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4833# that cause trouble. Some versions do not even contain alloca or
4834# contain a buggy version. If you still want to use their alloca,
4835# use ar to extract alloca.o from them instead of compiling alloca.c.
4836
4837ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4838
4839$as_echo "#define C_ALLOCA 1" >>confdefs.h
4840
4841
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4843$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4844if test "${ac_cv_os_cray+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848/* end confdefs.h. */
4849#if defined CRAY && ! defined CRAY2
4850webecray
4851#else
4852wenotbecray
4853#endif
4854
4855_ACEOF
4856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4857 $EGREP "webecray" >/dev/null 2>&1; then :
4858 ac_cv_os_cray=yes
4859else
4860 ac_cv_os_cray=no
4861fi
4862rm -f conftest*
4863
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4866$as_echo "$ac_cv_os_cray" >&6; }
4867if test $ac_cv_os_cray = yes; then
4868 for ac_func in _getb67 GETB67 getb67; do
4869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4871eval as_val=\$$as_ac_var
4872 if test "x$as_val" = x""yes; then :
4873
4874cat >>confdefs.h <<_ACEOF
4875#define CRAY_STACKSEG_END $ac_func
4876_ACEOF
4877
4878 break
4879fi
4880
4881 done
4882fi
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4885$as_echo_n "checking stack direction for C alloca... " >&6; }
4886if test "${ac_cv_c_stack_direction+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888else
4889 if test "$cross_compiling" = yes; then :
4890 ac_cv_c_stack_direction=0
4891else
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893/* end confdefs.h. */
4894$ac_includes_default
4895int
4896find_stack_direction ()
4897{
4898 static char *addr = 0;
4899 auto char dummy;
4900 if (addr == 0)
4901 {
4902 addr = &dummy;
4903 return find_stack_direction ();
4904 }
4905 else
4906 return (&dummy > addr) ? 1 : -1;
4907}
4908
4909int
4910main ()
4911{
4912 return find_stack_direction () < 0;
4913}
4914_ACEOF
4915if ac_fn_c_try_run "$LINENO"; then :
4916 ac_cv_c_stack_direction=1
4917else
4918 ac_cv_c_stack_direction=-1
4919fi
4920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4921 conftest.$ac_objext conftest.beam conftest.$ac_ext
4922fi
4923
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4926$as_echo "$ac_cv_c_stack_direction" >&6; }
4927cat >>confdefs.h <<_ACEOF
4928#define STACK_DIRECTION $ac_cv_c_stack_direction
4929_ACEOF
4930
4931
4932fi
4933
4934for ac_header in mm_malloc.h
4935do :
4936 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
4937if test "x$ac_cv_header_mm_malloc_h" = x""yes; then :
4938 cat >>confdefs.h <<_ACEOF
4939#define HAVE_MM_MALLOC_H 1
4940_ACEOF
4941
4942else
4943 as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
4944fi
4945
4946done
4947
4948for ac_func in __secure_getenv secure_getenv
4949do :
4950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4951ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4952eval as_val=\$$as_ac_var
4953 if test "x$as_val" = x""yes; then :
4954 cat >>confdefs.h <<_ACEOF
4955#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4956_ACEOF
4957
4958fi
4959done
4960
4961
4962# Get target configure.
4963. ${srcdir}/configure.tgt
4964if test -n "$UNSUPPORTED"; then
4965 as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5
4966fi
4967
4968if test "${multilib}" = "yes"; then
4969 multilib_arg="--enable-multilib"
4970else
4971 multilib_arg=
4972fi
4973
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4975$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4976# Check whether --enable-version-specific-runtime-libs was given.
4977if test "${enable_version_specific_runtime_libs+set}" = set; then :
4978 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4979 yes) enable_version_specific_runtime_libs=yes ;;
4980 no) enable_version_specific_runtime_libs=no ;;
4981 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4982 esac
4983else
4984 enable_version_specific_runtime_libs=no
4985fi
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4988$as_echo "$enable_version_specific_runtime_libs" >&6; }
4989
4990# Make sure liboffloadmic is enabled
4991case "$enable_liboffloadmic" in
4992 host | target)
4993 ;;
4994 *)
4995 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4996esac
4997 if test x"$enable_liboffloadmic" = xhost; then
4998 LIBOFFLOADMIC_HOST_TRUE=
4999 LIBOFFLOADMIC_HOST_FALSE='#'
5000else
5001 LIBOFFLOADMIC_HOST_TRUE='#'
5002 LIBOFFLOADMIC_HOST_FALSE=
5003fi
5004
5005
5006# Calculate toolexeclibdir.
5007# Also toolexecdir, though it's only used in toolexeclibdir.
5008case ${enable_version_specific_runtime_libs} in
5009 yes)
5010 # Need the gcc compiler version to know where to install libraries
5011 # and header files if --enable-version-specific-runtime-libs option
5012 # is selected.
5013 toolexecdir='$(libdir)/gcc/$(target_alias)'
5014 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5015 ;;
5016 no)
5017 if test -n "$with_cross_host" &&
5018 test x"$with_cross_host" != x"no"; then
5019 # Install a library built with a cross compiler in tooldir, not libdir.
5020 toolexecdir='$(exec_prefix)/$(target_alias)'
5021 toolexeclibdir='$(toolexecdir)/lib'
5022 else
5023 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5024 toolexeclibdir='$(libdir)'
5025 fi
5026 multi_os_directory=`$CC -print-multi-os-directory`
5027 case $multi_os_directory in
5028 .) ;; # Avoid trailing /.
5029 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5030 esac
5031 ;;
5032esac
5033
5034enable_dlopen=yes
5035
5036
5037
5038case `pwd` in
5039 *\ * | *\ *)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5041$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5042esac
5043
5044
5045
5046macro_version='2.2.7a'
5047macro_revision='1.3134'
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061ltmain="$ac_aux_dir/ltmain.sh"
5062
5063# Backslashify metacharacters that are still active within
5064# double-quoted strings.
5065sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5066
5067# Same as above, but do not quote variable references.
5068double_quote_subst='s/\(["`\\]\)/\\\1/g'
5069
5070# Sed substitution to delay expansion of an escaped shell variable in a
5071# double_quote_subst'ed string.
5072delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5073
5074# Sed substitution to delay expansion of an escaped single quote.
5075delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5076
5077# Sed substitution to avoid accidental globbing in evaled expressions
5078no_glob_subst='s/\*/\\\*/g'
5079
5080ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5081ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5082ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5085$as_echo_n "checking how to print strings... " >&6; }
5086# Test print first, because it will be a builtin if present.
5087if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5088 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5089 ECHO='print -r --'
5090elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5091 ECHO='printf %s\n'
5092else
5093 # Use this function as a fallback that always works.
5094 func_fallback_echo ()
5095 {
5096 eval 'cat <<_LTECHO_EOF
5097$1
5098_LTECHO_EOF'
5099 }
5100 ECHO='func_fallback_echo'
5101fi
5102
5103# func_echo_all arg...
5104# Invoke $ECHO with all args, space-separated.
5105func_echo_all ()
5106{
5107 $ECHO ""
5108}
5109
5110case "$ECHO" in
5111 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5112$as_echo "printf" >&6; } ;;
5113 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5114$as_echo "print -r" >&6; } ;;
5115 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5116$as_echo "cat" >&6; } ;;
5117esac
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5133$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5134if test "${ac_cv_path_SED+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136else
5137 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5138 for ac_i in 1 2 3 4 5 6 7; do
5139 ac_script="$ac_script$as_nl$ac_script"
5140 done
5141 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5142 { ac_script=; unset ac_script;}
5143 if test -z "$SED"; then
5144 ac_path_SED_found=false
5145 # Loop through the user's path and test for each of PROGNAME-LIST
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_prog in sed gsed; do
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5154 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5155# Check for GNU ac_path_SED and select it if it is found.
5156 # Check for GNU $ac_path_SED
5157case `"$ac_path_SED" --version 2>&1` in
5158*GNU*)
5159 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5160*)
5161 ac_count=0
5162 $as_echo_n 0123456789 >"conftest.in"
5163 while :
5164 do
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 $as_echo '' >> "conftest.nl"
5169 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_SED_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_SED="$ac_path_SED"
5175 ac_path_SED_max=$ac_count
5176 fi
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181esac
5182
5183 $ac_path_SED_found && break 3
5184 done
5185 done
5186 done
5187IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_SED"; then
5189 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5190 fi
5191else
5192 ac_cv_path_SED=$SED
5193fi
5194
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5197$as_echo "$ac_cv_path_SED" >&6; }
5198 SED="$ac_cv_path_SED"
5199 rm -f conftest.sed
5200
5201test -z "$SED" && SED=sed
5202Xsed="$SED -e 1s/^X//"
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5215$as_echo_n "checking for fgrep... " >&6; }
5216if test "${ac_cv_path_FGREP+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218else
5219 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5220 then ac_cv_path_FGREP="$GREP -F"
5221 else
5222 if test -z "$FGREP"; then
5223 ac_path_FGREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in fgrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5234# Check for GNU ac_path_FGREP and select it if it is found.
5235 # Check for GNU $ac_path_FGREP
5236case `"$ac_path_FGREP" --version 2>&1` in
5237*GNU*)
5238 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5239*)
5240 ac_count=0
5241 $as_echo_n 0123456789 >"conftest.in"
5242 while :
5243 do
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'FGREP' >> "conftest.nl"
5248 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_FGREP="$ac_path_FGREP"
5254 ac_path_FGREP_max=$ac_count
5255 fi
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5258 done
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260esac
5261
5262 $ac_path_FGREP_found && break 3
5263 done
5264 done
5265 done
5266IFS=$as_save_IFS
5267 if test -z "$ac_cv_path_FGREP"; then
5268 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269 fi
5270else
5271 ac_cv_path_FGREP=$FGREP
5272fi
5273
5274 fi
5275fi
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5277$as_echo "$ac_cv_path_FGREP" >&6; }
5278 FGREP="$ac_cv_path_FGREP"
5279
5280
5281test -z "$GREP" && GREP=grep
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301# Check whether --with-gnu-ld was given.
5302if test "${with_gnu_ld+set}" = set; then :
5303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5304else
5305 with_gnu_ld=no
5306fi
5307
5308ac_prog=ld
5309if test "$GCC" = yes; then
5310 # Check if gcc -print-prog-name=ld gives a path.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5312$as_echo_n "checking for ld used by $CC... " >&6; }
5313 case $host in
5314 *-*-mingw*)
5315 # gcc leaves a trailing carriage return which upsets mingw
5316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5317 *)
5318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5319 esac
5320 case $ac_prog in
5321 # Accept absolute paths.
5322 [\\/]* | ?:[\\/]*)
5323 re_direlt='/[^/][^/]*/\.\./'
5324 # Canonicalize the pathname of ld
5325 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5326 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5327 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5328 done
5329 test -z "$LD" && LD="$ac_prog"
5330 ;;
5331 "")
5332 # If it fails, then pretend we aren't using GCC.
5333 ac_prog=ld
5334 ;;
5335 *)
5336 # If it is relative, then search for the first ld in PATH.
5337 with_gnu_ld=unknown
5338 ;;
5339 esac
5340elif test "$with_gnu_ld" = yes; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5342$as_echo_n "checking for GNU ld... " >&6; }
5343else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5345$as_echo_n "checking for non-GNU ld... " >&6; }
5346fi
5347if test "${lt_cv_path_LD+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349else
5350 if test -z "$LD"; then
5351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5352 for ac_dir in $PATH; do
5353 IFS="$lt_save_ifs"
5354 test -z "$ac_dir" && ac_dir=.
5355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5356 lt_cv_path_LD="$ac_dir/$ac_prog"
5357 # Check to see if the program is GNU ld. I'd rather use --version,
5358 # but apparently some variants of GNU ld only accept -v.
5359 # Break only if it was the GNU/non-GNU ld that we prefer.
5360 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5361 *GNU* | *'with BFD'*)
5362 test "$with_gnu_ld" != no && break
5363 ;;
5364 *)
5365 test "$with_gnu_ld" != yes && break
5366 ;;
5367 esac
5368 fi
5369 done
5370 IFS="$lt_save_ifs"
5371else
5372 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5373fi
5374fi
5375
5376LD="$lt_cv_path_LD"
5377if test -n "$LD"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5379$as_echo "$LD" >&6; }
5380else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382$as_echo "no" >&6; }
5383fi
5384test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5386$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5387if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5389else
5390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5391case `$LD -v 2>&1 </dev/null` in
5392*GNU* | *'with BFD'*)
5393 lt_cv_prog_gnu_ld=yes
5394 ;;
5395*)
5396 lt_cv_prog_gnu_ld=no
5397 ;;
5398esac
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5401$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5402with_gnu_ld=$lt_cv_prog_gnu_ld
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5413$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5414if test "${lt_cv_path_NM+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 if test -n "$NM"; then
5418 # Let the user override the test.
5419 lt_cv_path_NM="$NM"
5420else
5421 lt_nm_to_check="${ac_tool_prefix}nm"
5422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5423 lt_nm_to_check="$lt_nm_to_check nm"
5424 fi
5425 for lt_tmp_nm in $lt_nm_to_check; do
5426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5428 IFS="$lt_save_ifs"
5429 test -z "$ac_dir" && ac_dir=.
5430 tmp_nm="$ac_dir/$lt_tmp_nm"
5431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5437 */dev/null* | *'Invalid file or object type'*)
5438 lt_cv_path_NM="$tmp_nm -B"
5439 break
5440 ;;
5441 *)
5442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5443 */dev/null*)
5444 lt_cv_path_NM="$tmp_nm -p"
5445 break
5446 ;;
5447 *)
5448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5449 continue # so that we can try to find one that supports BSD flags
5450 ;;
5451 esac
5452 ;;
5453 esac
5454 fi
5455 done
5456 IFS="$lt_save_ifs"
5457 done
5458 : ${lt_cv_path_NM=no}
5459fi
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5462$as_echo "$lt_cv_path_NM" >&6; }
5463if test "$lt_cv_path_NM" != "no"; then
5464 NM="$lt_cv_path_NM"
5465else
5466 # Didn't find any BSD compatible name lister, look for dumpbin.
5467 if test -n "$DUMPBIN"; then :
5468 # Let the user override the test.
5469 else
5470 if test -n "$ac_tool_prefix"; then
5471 for ac_prog in dumpbin "link -dump"
5472 do
5473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479else
5480 if test -n "$DUMPBIN"; then
5481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495 done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500DUMPBIN=$ac_cv_prog_DUMPBIN
5501if test -n "$DUMPBIN"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5503$as_echo "$DUMPBIN" >&6; }
5504else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507fi
5508
5509
5510 test -n "$DUMPBIN" && break
5511 done
5512fi
5513if test -z "$DUMPBIN"; then
5514 ac_ct_DUMPBIN=$DUMPBIN
5515 for ac_prog in dumpbin "link -dump"
5516do
5517 # Extract the first word of "$ac_prog", so it can be a program name with args.
5518set dummy $ac_prog; ac_word=$2
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520$as_echo_n "checking for $ac_word... " >&6; }
5521if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523else
5524 if test -n "$ac_ct_DUMPBIN"; then
5525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538done
5539 done
5540IFS=$as_save_IFS
5541
5542fi
5543fi
5544ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5545if test -n "$ac_ct_DUMPBIN"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5547$as_echo "$ac_ct_DUMPBIN" >&6; }
5548else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }
5551fi
5552
5553
5554 test -n "$ac_ct_DUMPBIN" && break
5555done
5556
5557 if test "x$ac_ct_DUMPBIN" = x; then
5558 DUMPBIN=":"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561yes:)
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564ac_tool_warned=yes ;;
5565esac
5566 DUMPBIN=$ac_ct_DUMPBIN
5567 fi
5568fi
5569
5570 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5571 *COFF*)
5572 DUMPBIN="$DUMPBIN -symbols"
5573 ;;
5574 *)
5575 DUMPBIN=:
5576 ;;
5577 esac
5578 fi
5579
5580 if test "$DUMPBIN" != ":"; then
5581 NM="$DUMPBIN"
5582 fi
5583fi
5584test -z "$NM" && NM=nm
5585
5586
5587
5588
5589
5590
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5592$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5593if test "${lt_cv_nm_interface+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595else
5596 lt_cv_nm_interface="BSD nm"
5597 echo "int some_variable = 0;" > conftest.$ac_ext
5598 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5599 (eval "$ac_compile" 2>conftest.err)
5600 cat conftest.err >&5
5601 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5603 cat conftest.err >&5
5604 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5605 cat conftest.out >&5
5606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5607 lt_cv_nm_interface="MS dumpbin"
5608 fi
5609 rm -f conftest*
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5612$as_echo "$lt_cv_nm_interface" >&6; }
5613
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5615$as_echo_n "checking whether ln -s works... " >&6; }
5616LN_S=$as_ln_s
5617if test "$LN_S" = "ln -s"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619$as_echo "yes" >&6; }
5620else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5622$as_echo "no, using $LN_S" >&6; }
5623fi
5624
5625# find the maximum length of command line arguments
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5627$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5628if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630else
5631 i=0
5632 teststring="ABCD"
5633
5634 case $build_os in
5635 msdosdjgpp*)
5636 # On DJGPP, this test can blow up pretty badly due to problems in libc
5637 # (any single argument exceeding 2000 bytes causes a buffer overrun
5638 # during glob expansion). Even if it were fixed, the result of this
5639 # check would be larger than it should be.
5640 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5641 ;;
5642
5643 gnu*)
5644 # Under GNU Hurd, this test is not required because there is
5645 # no limit to the length of command line arguments.
5646 # Libtool will interpret -1 as no limit whatsoever
5647 lt_cv_sys_max_cmd_len=-1;
5648 ;;
5649
5650 cygwin* | mingw* | cegcc*)
5651 # On Win9x/ME, this test blows up -- it succeeds, but takes
5652 # about 5 minutes as the teststring grows exponentially.
5653 # Worse, since 9x/ME are not pre-emptively multitasking,
5654 # you end up with a "frozen" computer, even though with patience
5655 # the test eventually succeeds (with a max line length of 256k).
5656 # Instead, let's just punt: use the minimum linelength reported by
5657 # all of the supported platforms: 8192 (on NT/2K/XP).
5658 lt_cv_sys_max_cmd_len=8192;
5659 ;;
5660
5661 mint*)
5662 # On MiNT this can take a long time and run out of memory.
5663 lt_cv_sys_max_cmd_len=8192;
5664 ;;
5665
5666 amigaos*)
5667 # On AmigaOS with pdksh, this test takes hours, literally.
5668 # So we just punt and use a minimum line length of 8192.
5669 lt_cv_sys_max_cmd_len=8192;
5670 ;;
5671
5672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5673 # This has been around since 386BSD, at least. Likely further.
5674 if test -x /sbin/sysctl; then
5675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5676 elif test -x /usr/sbin/sysctl; then
5677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5678 else
5679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5680 fi
5681 # And add a safety zone
5682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5684 ;;
5685
5686 interix*)
5687 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5688 lt_cv_sys_max_cmd_len=196608
5689 ;;
5690
5691 osf*)
5692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5694 # nice to cause kernel panics so lets avoid the loop below.
5695 # First set a reasonable default.
5696 lt_cv_sys_max_cmd_len=16384
5697 #
5698 if test -x /sbin/sysconfig; then
5699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5700 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5701 esac
5702 fi
5703 ;;
5704 sco3.2v5*)
5705 lt_cv_sys_max_cmd_len=102400
5706 ;;
5707 sysv5* | sco5v6* | sysv4.2uw2*)
5708 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5709 if test -n "$kargmax"; then
5710 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5711 else
5712 lt_cv_sys_max_cmd_len=32768
5713 fi
5714 ;;
5715 *)
5716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5717 if test -n "$lt_cv_sys_max_cmd_len"; then
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5720 else
5721 # Make teststring a little bigger before we do anything with it.
5722 # a 1K string should be a reasonable start.
5723 for i in 1 2 3 4 5 6 7 8 ; do
5724 teststring=$teststring$teststring
5725 done
5726 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5727 # If test is not a shell built-in, we'll probably end up computing a
5728 # maximum length that is only half of the actual maximum length, but
5729 # we can't tell.
5730 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5731 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5732 test $i != 17 # 1/2 MB should be enough
5733 do
5734 i=`expr $i + 1`
5735 teststring=$teststring$teststring
5736 done
5737 # Only check the string length outside the loop.
5738 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5739 teststring=
5740 # Add a significant safety factor because C++ compilers can tack on
5741 # massive amounts of additional arguments before passing them to the
5742 # linker. It appears as though 1/2 is a usable value.
5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5744 fi
5745 ;;
5746 esac
5747
5748fi
5749
5750if test -n $lt_cv_sys_max_cmd_len ; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5752$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5753else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5755$as_echo "none" >&6; }
5756fi
5757max_cmd_len=$lt_cv_sys_max_cmd_len
5758
5759
5760
5761
5762
5763
5764: ${CP="cp -f"}
5765: ${MV="mv -f"}
5766: ${RM="rm -f"}
5767
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5769$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5770# Try some XSI features
5771xsi_shell=no
5772( _lt_dummy="a/b/c"
5773 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5774 = c,a/b,, \
5775 && eval 'test $(( 1 + 1 )) -eq 2 \
5776 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5777 && xsi_shell=yes
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5779$as_echo "$xsi_shell" >&6; }
5780
5781
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5783$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5784lt_shell_append=no
5785( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5786 >/dev/null 2>&1 \
5787 && lt_shell_append=yes
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5789$as_echo "$lt_shell_append" >&6; }
5790
5791
5792if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5793 lt_unset=unset
5794else
5795 lt_unset=false
5796fi
5797
5798
5799
5800
5801
5802# test EBCDIC or ASCII
5803case `echo X|tr X '\101'` in
5804 A) # ASCII based system
5805 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5806 lt_SP2NL='tr \040 \012'
5807 lt_NL2SP='tr \015\012 \040\040'
5808 ;;
5809 *) # EBCDIC based system
5810 lt_SP2NL='tr \100 \n'
5811 lt_NL2SP='tr \r\n \100\100'
5812 ;;
5813esac
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5824$as_echo_n "checking for $LD option to reload object files... " >&6; }
5825if test "${lt_cv_ld_reload_flag+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827else
5828 lt_cv_ld_reload_flag='-r'
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5831$as_echo "$lt_cv_ld_reload_flag" >&6; }
5832reload_flag=$lt_cv_ld_reload_flag
5833case $reload_flag in
5834"" | " "*) ;;
5835*) reload_flag=" $reload_flag" ;;
5836esac
5837reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838case $host_os in
5839 darwin*)
5840 if test "$GCC" = yes; then
5841 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5842 else
5843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844 fi
5845 ;;
5846esac
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}objdump; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$OBJDUMP"; then
5865 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879 done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884OBJDUMP=$ac_cv_prog_OBJDUMP
5885if test -n "$OBJDUMP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5887$as_echo "$OBJDUMP" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894fi
5895if test -z "$ac_cv_prog_OBJDUMP"; then
5896 ac_ct_OBJDUMP=$OBJDUMP
5897 # Extract the first word of "objdump", so it can be a program name with args.
5898set dummy objdump; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 if test -n "$ac_ct_OBJDUMP"; then
5905 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919 done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5925if test -n "$ac_ct_OBJDUMP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5927$as_echo "$ac_ct_OBJDUMP" >&6; }
5928else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933 if test "x$ac_ct_OBJDUMP" = x; then
5934 OBJDUMP="false"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937yes:)
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940ac_tool_warned=yes ;;
5941esac
5942 OBJDUMP=$ac_ct_OBJDUMP
5943 fi
5944else
5945 OBJDUMP="$ac_cv_prog_OBJDUMP"
5946fi
5947
5948test -z "$OBJDUMP" && OBJDUMP=objdump
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5959$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5960if test "${lt_cv_deplibs_check_method+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 lt_cv_file_magic_cmd='$MAGIC_CMD'
5964lt_cv_file_magic_test_file=
5965lt_cv_deplibs_check_method='unknown'
5966# Need to set the preceding variable on all platforms that support
5967# interlibrary dependencies.
5968# 'none' -- dependencies not supported.
5969# `unknown' -- same as none, but documents that we really don't know.
5970# 'pass_all' -- all dependencies passed with no checks.
5971# 'test_compile' -- check by making test program.
5972# 'file_magic [[regex]]' -- check by looking for files in library path
5973# which responds to the $file_magic_cmd with a given extended regex.
5974# If you have `file' or equivalent on your system and you're not sure
5975# whether `pass_all' will *always* work, you probably want this one.
5976
5977case $host_os in
5978aix[4-9]*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982beos*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986bsdi[45]*)
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5988 lt_cv_file_magic_cmd='/usr/bin/file -L'
5989 lt_cv_file_magic_test_file=/shlib/libc.so
5990 ;;
5991
5992cygwin*)
5993 # func_win32_libid is a shell function defined in ltmain.sh
5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5995 lt_cv_file_magic_cmd='func_win32_libid'
5996 ;;
5997
5998mingw* | pw32*)
5999 # Base MSYS/MinGW do not provide the 'file' command needed by
6000 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6001 # unless we find 'file', for example because we are cross-compiling.
6002 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6003 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6004 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6005 lt_cv_file_magic_cmd='func_win32_libid'
6006 else
6007 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6009 fi
6010 ;;
6011
6012cegcc*)
6013 # use the weaker test based on 'objdump'. See mingw*.
6014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6016 ;;
6017
6018darwin* | rhapsody*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022freebsd* | dragonfly*)
6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6024 case $host_cpu in
6025 i*86 )
6026 # Not sure whether the presence of OpenBSD here was a mistake.
6027 # Let's accept both of them until this is cleared up.
6028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029 lt_cv_file_magic_cmd=/usr/bin/file
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6031 ;;
6032 esac
6033 else
6034 lt_cv_deplibs_check_method=pass_all
6035 fi
6036 ;;
6037
6038gnu*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042haiku*)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
6045
6046hpux10.20* | hpux11*)
6047 lt_cv_file_magic_cmd=/usr/bin/file
6048 case $host_cpu in
6049 ia64*)
6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6052 ;;
6053 hppa*64*)
6054 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]'
6055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6056 ;;
6057 *)
6058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6060 ;;
6061 esac
6062 ;;
6063
6064interix[3-9]*)
6065 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6067 ;;
6068
6069irix5* | irix6* | nonstopux*)
6070 case $LD in
6071 *-32|*"-32 ") libmagic=32-bit;;
6072 *-n32|*"-n32 ") libmagic=N32;;
6073 *-64|*"-64 ") libmagic=64-bit;;
6074 *) libmagic=never-match;;
6075 esac
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079# This must be Linux ELF.
6080linux* | k*bsd*-gnu | kopensolaris*-gnu)
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
6083
6084netbsd*)
6085 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6087 else
6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6089 fi
6090 ;;
6091
6092newos6*)
6093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6094 lt_cv_file_magic_cmd=/usr/bin/file
6095 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6096 ;;
6097
6098*nto* | *qnx*)
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102openbsd*)
6103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6105 else
6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6107 fi
6108 ;;
6109
6110osf3* | osf4* | osf5*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114rdos*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118solaris*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125
6126sysv4 | sysv4.3*)
6127 case $host_vendor in
6128 motorola)
6129 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]'
6130 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6131 ;;
6132 ncr)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
6135 sequent)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6138 ;;
6139 sni)
6140 lt_cv_file_magic_cmd='/bin/file'
6141 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6142 lt_cv_file_magic_test_file=/lib/libc.so
6143 ;;
6144 siemens)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
6147 pc)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150 esac
6151 ;;
6152
6153tpf*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156esac
6157
6158fi
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6160$as_echo "$lt_cv_deplibs_check_method" >&6; }
6161file_magic_cmd=$lt_cv_file_magic_cmd
6162deplibs_check_method=$lt_cv_deplibs_check_method
6163test -z "$deplibs_check_method" && deplibs_check_method=unknown
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176if test -n "$ac_tool_prefix"; then
6177 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6178set dummy ${ac_tool_prefix}ar; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
6181if test "${ac_cv_prog_AR+set}" = set; then :
6182 $as_echo_n "(cached) " >&6
6183else
6184 if test -n "$AR"; then
6185 ac_cv_prog_AR="$AR" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_AR="${ac_tool_prefix}ar"
6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198done
6199 done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204AR=$ac_cv_prog_AR
6205if test -n "$AR"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6207$as_echo "$AR" >&6; }
6208else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214fi
6215if test -z "$ac_cv_prog_AR"; then
6216 ac_ct_AR=$AR
6217 # Extract the first word of "ar", so it can be a program name with args.
6218set dummy ar; ac_word=$2
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220$as_echo_n "checking for $ac_word... " >&6; }
6221if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6223else
6224 if test -n "$ac_ct_AR"; then
6225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6226else
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_prog_ac_ct_AR="ar"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239 done
6240IFS=$as_save_IFS
6241
6242fi
6243fi
6244ac_ct_AR=$ac_cv_prog_ac_ct_AR
6245if test -n "$ac_ct_AR"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6247$as_echo "$ac_ct_AR" >&6; }
6248else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250$as_echo "no" >&6; }
6251fi
6252
6253 if test "x$ac_ct_AR" = x; then
6254 AR="false"
6255 else
6256 case $cross_compiling:$ac_tool_warned in
6257yes:)
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6260ac_tool_warned=yes ;;
6261esac
6262 AR=$ac_ct_AR
6263 fi
6264else
6265 AR="$ac_cv_prog_AR"
6266fi
6267
6268test -z "$AR" && AR=ar
6269test -z "$AR_FLAGS" && AR_FLAGS=cru
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6283set dummy ${ac_tool_prefix}strip; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
6286if test "${ac_cv_prog_STRIP+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6288else
6289 if test -n "$STRIP"; then
6290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303done
6304 done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309STRIP=$ac_cv_prog_STRIP
6310if test -n "$STRIP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6312$as_echo "$STRIP" >&6; }
6313else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316fi
6317
6318
6319fi
6320if test -z "$ac_cv_prog_STRIP"; then
6321 ac_ct_STRIP=$STRIP
6322 # Extract the first word of "strip", so it can be a program name with args.
6323set dummy strip; ac_word=$2
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
6326if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328else
6329 if test -n "$ac_ct_STRIP"; then
6330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_STRIP="strip"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344 done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6350if test -n "$ac_ct_STRIP"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6352$as_echo "$ac_ct_STRIP" >&6; }
6353else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358 if test "x$ac_ct_STRIP" = x; then
6359 STRIP=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362yes:)
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365ac_tool_warned=yes ;;
6366esac
6367 STRIP=$ac_ct_STRIP
6368 fi
6369else
6370 STRIP="$ac_cv_prog_STRIP"
6371fi
6372
6373test -z "$STRIP" && STRIP=:
6374
6375
6376
6377
6378
6379
6380if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6382set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384$as_echo_n "checking for $ac_word... " >&6; }
6385if test "${ac_cv_prog_RANLIB+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387else
6388 if test -n "$RANLIB"; then
6389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402done
6403 done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408RANLIB=$ac_cv_prog_RANLIB
6409if test -n "$RANLIB"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6411$as_echo "$RANLIB" >&6; }
6412else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414$as_echo "no" >&6; }
6415fi
6416
6417
6418fi
6419if test -z "$ac_cv_prog_RANLIB"; then
6420 ac_ct_RANLIB=$RANLIB
6421 # Extract the first word of "ranlib", so it can be a program name with args.
6422set dummy ranlib; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427else
6428 if test -n "$ac_ct_RANLIB"; then
6429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_ac_ct_RANLIB="ranlib"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6441 fi
6442done
6443 done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6449if test -n "$ac_ct_RANLIB"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6451$as_echo "$ac_ct_RANLIB" >&6; }
6452else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457 if test "x$ac_ct_RANLIB" = x; then
6458 RANLIB=":"
6459 else
6460 case $cross_compiling:$ac_tool_warned in
6461yes:)
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464ac_tool_warned=yes ;;
6465esac
6466 RANLIB=$ac_ct_RANLIB
6467 fi
6468else
6469 RANLIB="$ac_cv_prog_RANLIB"
6470fi
6471
6472test -z "$RANLIB" && RANLIB=:
6473
6474
6475
6476
6477
6478
6479# Determine commands to create old-style static archives.
6480old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6481old_postinstall_cmds='chmod 644 $oldlib'
6482old_postuninstall_cmds=
6483
6484if test -n "$RANLIB"; then
6485 case $host_os in
6486 openbsd*)
6487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6488 ;;
6489 *)
6490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6491 ;;
6492 esac
6493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6494fi
6495
6496case $host_os in
6497 darwin*)
6498 lock_old_archive_extraction=yes ;;
6499 *)
6500 lock_old_archive_extraction=no ;;
6501esac
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
6538
6539
6540
6541# If no C compiler was specified, use CC.
6542LTCC=${LTCC-"$CC"}
6543
6544# If no C compiler flags were specified, use CFLAGS.
6545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6546
6547# Allow CC to be a program name with arguments.
6548compiler=$CC
6549
6550
6551# Check for command to grab the raw symbol name followed by C symbol from nm.
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6553$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6554if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6556else
6557
6558# These are sane defaults that work on at least a few old systems.
6559# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6560
6561# Character class describing NM global symbol codes.
6562symcode='[BCDEGRST]'
6563
6564# Regexp to match symbols that can be accessed directly from C.
6565sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6566
6567# Define system-specific variables.
6568case $host_os in
6569aix*)
6570 symcode='[BCDT]'
6571 ;;
6572cygwin* | mingw* | pw32* | cegcc*)
6573 symcode='[ABCDGISTW]'
6574 ;;
6575hpux*)
6576 if test "$host_cpu" = ia64; then
6577 symcode='[ABCDEGRST]'
6578 fi
6579 ;;
6580irix* | nonstopux*)
6581 symcode='[BCDEGRST]'
6582 ;;
6583osf*)
6584 symcode='[BCDEGQRST]'
6585 ;;
6586solaris*)
6587 symcode='[BDRT]'
6588 ;;
6589sco3.2v5*)
6590 symcode='[DT]'
6591 ;;
6592sysv4.2uw2*)
6593 symcode='[DT]'
6594 ;;
6595sysv5* | sco5v6* | unixware* | OpenUNIX*)
6596 symcode='[ABDT]'
6597 ;;
6598sysv4)
6599 symcode='[DFNSTU]'
6600 ;;
6601esac
6602
6603# If we're using GNU nm, then use its standard symbol codes.
6604case `$NM -V 2>&1` in
6605*GNU* | *'with BFD'*)
6606 symcode='[ABCDGIRSTW]' ;;
6607esac
6608
6609# Transform an extracted symbol line into a proper C declaration.
6610# Some systems (esp. on ia64) link data and code symbols differently,
6611# so use this general approach.
6612lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6613
6614# Transform an extracted symbol line into symbol name and symbol address
6615lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6616lt_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'"
6617
6618# Handle CRLF in mingw tool chain
6619opt_cr=
6620case $build_os in
6621mingw*)
6622 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6623 ;;
6624esac
6625
6626# Try without a prefix underscore, then with it.
6627for ac_symprfx in "" "_"; do
6628
6629 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6630 symxfrm="\\1 $ac_symprfx\\2 \\2"
6631
6632 # Write the raw and C identifiers.
6633 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6634 # Fake it for dumpbin and say T for any non-static function
6635 # and D for any global variable.
6636 # Also find C++ and __fastcall symbols from MSVC++,
6637 # which start with @ or ?.
6638 lt_cv_sys_global_symbol_pipe="$AWK '"\
6639" {last_section=section; section=\$ 3};"\
6640" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6641" \$ 0!~/External *\|/{next};"\
6642" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6643" {if(hide[section]) next};"\
6644" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6645" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6646" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6647" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6648" ' prfx=^$ac_symprfx"
6649 else
6650 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6651 fi
6652
6653 # Check to see that the pipe works correctly.
6654 pipe_works=no
6655
6656 rm -f conftest*
6657 cat > conftest.$ac_ext <<_LT_EOF
6658#ifdef __cplusplus
6659extern "C" {
6660#endif
6661char nm_test_var;
6662void nm_test_func(void);
6663void nm_test_func(void){}
6664#ifdef __cplusplus
6665}
6666#endif
6667int main(){nm_test_var='a';nm_test_func();return(0);}
6668_LT_EOF
6669
6670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }; then
6675 # Now try to grab the symbols.
6676 nlist=conftest.nm
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6678 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; } && test -s "$nlist"; then
6682 # Try sorting and uniquifying the output.
6683 if sort "$nlist" | uniq > "$nlist"T; then
6684 mv -f "$nlist"T "$nlist"
6685 else
6686 rm -f "$nlist"T
6687 fi
6688
6689 # Make sure that we snagged all the symbols we need.
6690 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6691 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6692 cat <<_LT_EOF > conftest.$ac_ext
6693#ifdef __cplusplus
6694extern "C" {
6695#endif
6696
6697_LT_EOF
6698 # Now generate the symbol file.
6699 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6700
6701 cat <<_LT_EOF >> conftest.$ac_ext
6702
6703/* The mapping between symbol names and symbols. */
6704const struct {
6705 const char *name;
6706 void *address;
6707}
6708lt__PROGRAM__LTX_preloaded_symbols[] =
6709{
6710 { "@PROGRAM@", (void *) 0 },
6711_LT_EOF
6712 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6713 cat <<\_LT_EOF >> conftest.$ac_ext
6714 {0, (void *) 0}
6715};
6716
6717/* This works around a problem in FreeBSD linker */
6718#ifdef FREEBSD_WORKAROUND
6719static const void *lt_preloaded_setup() {
6720 return lt__PROGRAM__LTX_preloaded_symbols;
6721}
6722#endif
6723
6724#ifdef __cplusplus
6725}
6726#endif
6727_LT_EOF
6728 # Now try linking the two files.
6729 mv conftest.$ac_objext conftstm.$ac_objext
6730 lt_save_LIBS="$LIBS"
6731 lt_save_CFLAGS="$CFLAGS"
6732 LIBS="conftstm.$ac_objext"
6733 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6735 (eval $ac_link) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6739 pipe_works=yes
6740 fi
6741 LIBS="$lt_save_LIBS"
6742 CFLAGS="$lt_save_CFLAGS"
6743 else
6744 echo "cannot find nm_test_func in $nlist" >&5
6745 fi
6746 else
6747 echo "cannot find nm_test_var in $nlist" >&5
6748 fi
6749 else
6750 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6751 fi
6752 else
6753 echo "$progname: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 fi
6756 rm -rf conftest* conftst*
6757
6758 # Do not use the global_symbol_pipe unless it works.
6759 if test "$pipe_works" = yes; then
6760 break
6761 else
6762 lt_cv_sys_global_symbol_pipe=
6763 fi
6764done
6765
6766fi
6767
6768if test -z "$lt_cv_sys_global_symbol_pipe"; then
6769 lt_cv_sys_global_symbol_to_cdecl=
6770fi
6771if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6773$as_echo "failed" >&6; }
6774else
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6776$as_echo "ok" >&6; }
6777fi
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800# Check whether --enable-libtool-lock was given.
6801if test "${enable_libtool_lock+set}" = set; then :
6802 enableval=$enable_libtool_lock;
6803fi
6804
6805test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6806
6807# Some flags need to be propagated to the compiler or linker for good
6808# libtool support.
6809case $host in
6810ia64-*-hpux*)
6811 # Find out which ABI we are using.
6812 echo 'int i;' > conftest.$ac_ext
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814 (eval $ac_compile) 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; }; then
6818 case `/usr/bin/file conftest.$ac_objext` in
6819 *ELF-32*)
6820 HPUX_IA64_MODE="32"
6821 ;;
6822 *ELF-64*)
6823 HPUX_IA64_MODE="64"
6824 ;;
6825 esac
6826 fi
6827 rm -rf conftest*
6828 ;;
6829*-*-irix6*)
6830 # Find out which ABI we are using.
6831 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833 (eval $ac_compile) 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }; then
6837 if test "$lt_cv_prog_gnu_ld" = yes; then
6838 case `/usr/bin/file conftest.$ac_objext` in
6839 *32-bit*)
6840 LD="${LD-ld} -melf32bsmip"
6841 ;;
6842 *N32*)
6843 LD="${LD-ld} -melf32bmipn32"
6844 ;;
6845 *64-bit*)
6846 LD="${LD-ld} -melf64bmip"
6847 ;;
6848 esac
6849 else
6850 case `/usr/bin/file conftest.$ac_objext` in
6851 *32-bit*)
6852 LD="${LD-ld} -32"
6853 ;;
6854 *N32*)
6855 LD="${LD-ld} -n32"
6856 ;;
6857 *64-bit*)
6858 LD="${LD-ld} -64"
6859 ;;
6860 esac
6861 fi
6862 fi
6863 rm -rf conftest*
6864 ;;
6865
6866x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6867s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6868 # Find out which ABI we are using.
6869 echo 'int i;' > conftest.$ac_ext
6870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874 test $ac_status = 0; }; then
6875 case `/usr/bin/file conftest.o` in
6876 *32-bit*)
6877 case $host in
6878 x86_64-*kfreebsd*-gnu)
6879 LD="${LD-ld} -m elf_i386_fbsd"
6880 ;;
6881 x86_64-*linux*)
6882 case `/usr/bin/file conftest.o` in
6883 *x86-64*)
6884 LD="${LD-ld} -m elf32_x86_64"
6885 ;;
6886 *)
6887 LD="${LD-ld} -m elf_i386"
6888 ;;
6889 esac
6890 ;;
6891 powerpc64le-*linux*)
6892 LD="${LD-ld} -m elf32lppclinux"
6893 ;;
6894 powerpc64-*linux*)
6895 LD="${LD-ld} -m elf32ppclinux"
6896 ;;
6897 s390x-*linux*)
6898 LD="${LD-ld} -m elf_s390"
6899 ;;
6900 sparc64-*linux*)
6901 LD="${LD-ld} -m elf32_sparc"
6902 ;;
6903 esac
6904 ;;
6905 *64-bit*)
6906 case $host in
6907 x86_64-*kfreebsd*-gnu)
6908 LD="${LD-ld} -m elf_x86_64_fbsd"
6909 ;;
6910 x86_64-*linux*)
6911 LD="${LD-ld} -m elf_x86_64"
6912 ;;
6913 powerpcle-*linux*)
6914 LD="${LD-ld} -m elf64lppc"
6915 ;;
6916 powerpc-*linux*)
6917 LD="${LD-ld} -m elf64ppc"
6918 ;;
6919 s390*-*linux*|s390*-*tpf*)
6920 LD="${LD-ld} -m elf64_s390"
6921 ;;
6922 sparc*-*linux*)
6923 LD="${LD-ld} -m elf64_sparc"
6924 ;;
6925 esac
6926 ;;
6927 esac
6928 fi
6929 rm -rf conftest*
6930 ;;
6931
6932*-*-sco3.2v5*)
6933 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6934 SAVE_CFLAGS="$CFLAGS"
6935 CFLAGS="$CFLAGS -belf"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6937$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6938if test "${lt_cv_cc_needs_belf+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940else
6941 ac_ext=c
6942ac_cpp='$CPP $CPPFLAGS'
6943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h. */
6949
6950int
6951main ()
6952{
6953
6954 ;
6955 return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_link "$LINENO"; then :
6959 lt_cv_cc_needs_belf=yes
6960else
6961 lt_cv_cc_needs_belf=no
6962fi
6963rm -f core conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
6965 ac_ext=c
6966ac_cpp='$CPP $CPPFLAGS'
6967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970
6971fi
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6973$as_echo "$lt_cv_cc_needs_belf" >&6; }
6974 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6976 CFLAGS="$SAVE_CFLAGS"
6977 fi
6978 ;;
6979sparc*-*solaris*)
6980 # Find out which ABI we are using.
6981 echo 'int i;' > conftest.$ac_ext
6982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6983 (eval $ac_compile) 2>&5
6984 ac_status=$?
6985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; }; then
6987 case `/usr/bin/file conftest.o` in
6988 *64-bit*)
6989 case $lt_cv_prog_gnu_ld in
6990 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6991 *)
6992 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6993 LD="${LD-ld} -64"
6994 fi
6995 ;;
6996 esac
6997 ;;
6998 esac
6999 fi
7000 rm -rf conftest*
7001 ;;
7002esac
7003
7004need_locks="$enable_libtool_lock"
7005
7006
7007 case $host_os in
7008 rhapsody* | darwin*)
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7011set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013$as_echo_n "checking for $ac_word... " >&6; }
7014if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016else
7017 if test -n "$DSYMUTIL"; then
7018 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031done
7032 done
7033IFS=$as_save_IFS
7034
7035fi
7036fi
7037DSYMUTIL=$ac_cv_prog_DSYMUTIL
7038if test -n "$DSYMUTIL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7040$as_echo "$DSYMUTIL" >&6; }
7041else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043$as_echo "no" >&6; }
7044fi
7045
7046
7047fi
7048if test -z "$ac_cv_prog_DSYMUTIL"; then
7049 ac_ct_DSYMUTIL=$DSYMUTIL
7050 # Extract the first word of "dsymutil", so it can be a program name with args.
7051set dummy dsymutil; ac_word=$2
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053$as_echo_n "checking for $ac_word... " >&6; }
7054if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056else
7057 if test -n "$ac_ct_DSYMUTIL"; then
7058 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7059else
7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071done
7072 done
7073IFS=$as_save_IFS
7074
7075fi
7076fi
7077ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7078if test -n "$ac_ct_DSYMUTIL"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7080$as_echo "$ac_ct_DSYMUTIL" >&6; }
7081else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083$as_echo "no" >&6; }
7084fi
7085
7086 if test "x$ac_ct_DSYMUTIL" = x; then
7087 DSYMUTIL=":"
7088 else
7089 case $cross_compiling:$ac_tool_warned in
7090yes:)
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093ac_tool_warned=yes ;;
7094esac
7095 DSYMUTIL=$ac_ct_DSYMUTIL
7096 fi
7097else
7098 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7099fi
7100
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7103set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
7106if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7107 $as_echo_n "(cached) " >&6
7108else
7109 if test -n "$NMEDIT"; then
7110 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7122 fi
7123done
7124 done
7125IFS=$as_save_IFS
7126
7127fi
7128fi
7129NMEDIT=$ac_cv_prog_NMEDIT
7130if test -n "$NMEDIT"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7132$as_echo "$NMEDIT" >&6; }
7133else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
7136fi
7137
7138
7139fi
7140if test -z "$ac_cv_prog_NMEDIT"; then
7141 ac_ct_NMEDIT=$NMEDIT
7142 # Extract the first word of "nmedit", so it can be a program name with args.
7143set dummy nmedit; ac_word=$2
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145$as_echo_n "checking for $ac_word... " >&6; }
7146if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7147 $as_echo_n "(cached) " >&6
7148else
7149 if test -n "$ac_ct_NMEDIT"; then
7150 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164 done
7165IFS=$as_save_IFS
7166
7167fi
7168fi
7169ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7170if test -n "$ac_ct_NMEDIT"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7172$as_echo "$ac_ct_NMEDIT" >&6; }
7173else
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175$as_echo "no" >&6; }
7176fi
7177
7178 if test "x$ac_ct_NMEDIT" = x; then
7179 NMEDIT=":"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182yes:)
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185ac_tool_warned=yes ;;
7186esac
7187 NMEDIT=$ac_ct_NMEDIT
7188 fi
7189else
7190 NMEDIT="$ac_cv_prog_NMEDIT"
7191fi
7192
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7195set dummy ${ac_tool_prefix}lipo; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if test "${ac_cv_prog_LIPO+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7200else
7201 if test -n "$LIPO"; then
7202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7214 fi
7215done
7216 done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221LIPO=$ac_cv_prog_LIPO
7222if test -n "$LIPO"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7224$as_echo "$LIPO" >&6; }
7225else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231fi
7232if test -z "$ac_cv_prog_LIPO"; then
7233 ac_ct_LIPO=$LIPO
7234 # Extract the first word of "lipo", so it can be a program name with args.
7235set dummy lipo; ac_word=$2
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240else
7241 if test -n "$ac_ct_LIPO"; then
7242 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7243else
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_prog_ac_ct_LIPO="lipo"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7254 fi
7255done
7256 done
7257IFS=$as_save_IFS
7258
7259fi
7260fi
7261ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7262if test -n "$ac_ct_LIPO"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7264$as_echo "$ac_ct_LIPO" >&6; }
7265else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268fi
7269
7270 if test "x$ac_ct_LIPO" = x; then
7271 LIPO=":"
7272 else
7273 case $cross_compiling:$ac_tool_warned in
7274yes:)
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277ac_tool_warned=yes ;;
7278esac
7279 LIPO=$ac_ct_LIPO
7280 fi
7281else
7282 LIPO="$ac_cv_prog_LIPO"
7283fi
7284
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7287set dummy ${ac_tool_prefix}otool; ac_word=$2
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289$as_echo_n "checking for $ac_word... " >&6; }
7290if test "${ac_cv_prog_OTOOL+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292else
7293 if test -n "$OTOOL"; then
7294 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7295else
7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307done
7308 done
7309IFS=$as_save_IFS
7310
7311fi
7312fi
7313OTOOL=$ac_cv_prog_OTOOL
7314if test -n "$OTOOL"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7316$as_echo "$OTOOL" >&6; }
7317else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319$as_echo "no" >&6; }
7320fi
7321
7322
7323fi
7324if test -z "$ac_cv_prog_OTOOL"; then
7325 ac_ct_OTOOL=$OTOOL
7326 # Extract the first word of "otool", so it can be a program name with args.
7327set dummy otool; ac_word=$2
7328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329$as_echo_n "checking for $ac_word... " >&6; }
7330if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332else
7333 if test -n "$ac_ct_OTOOL"; then
7334 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_OTOOL="otool"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347done
7348 done
7349IFS=$as_save_IFS
7350
7351fi
7352fi
7353ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7354if test -n "$ac_ct_OTOOL"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7356$as_echo "$ac_ct_OTOOL" >&6; }
7357else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359$as_echo "no" >&6; }
7360fi
7361
7362 if test "x$ac_ct_OTOOL" = x; then
7363 OTOOL=":"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366yes:)
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369ac_tool_warned=yes ;;
7370esac
7371 OTOOL=$ac_ct_OTOOL
7372 fi
7373else
7374 OTOOL="$ac_cv_prog_OTOOL"
7375fi
7376
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7379set dummy ${ac_tool_prefix}otool64; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384else
7385 if test -n "$OTOOL64"; then
7386 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399done
7400 done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405OTOOL64=$ac_cv_prog_OTOOL64
7406if test -n "$OTOOL64"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7408$as_echo "$OTOOL64" >&6; }
7409else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414
7415fi
7416if test -z "$ac_cv_prog_OTOOL64"; then
7417 ac_ct_OTOOL64=$OTOOL64
7418 # Extract the first word of "otool64", so it can be a program name with args.
7419set dummy otool64; ac_word=$2
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421$as_echo_n "checking for $ac_word... " >&6; }
7422if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424else
7425 if test -n "$ac_ct_OTOOL64"; then
7426 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_ac_ct_OTOOL64="otool64"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439done
7440 done
7441IFS=$as_save_IFS
7442
7443fi
7444fi
7445ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7446if test -n "$ac_ct_OTOOL64"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7448$as_echo "$ac_ct_OTOOL64" >&6; }
7449else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
7452fi
7453
7454 if test "x$ac_ct_OTOOL64" = x; then
7455 OTOOL64=":"
7456 else
7457 case $cross_compiling:$ac_tool_warned in
7458yes:)
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461ac_tool_warned=yes ;;
7462esac
7463 OTOOL64=$ac_ct_OTOOL64
7464 fi
7465else
7466 OTOOL64="$ac_cv_prog_OTOOL64"
7467fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7496$as_echo_n "checking for -single_module linker flag... " >&6; }
7497if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499else
7500 lt_cv_apple_cc_single_mod=no
7501 if test -z "${LT_MULTI_MODULE}"; then
7502 # By default we will add the -single_module flag. You can override
7503 # by either setting the environment variable LT_MULTI_MODULE
7504 # non-empty at configure time, or by adding -multi_module to the
7505 # link flags.
7506 rm -rf libconftest.dylib*
7507 echo "int foo(void){return 1;}" > conftest.c
7508 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7509-dynamiclib -Wl,-single_module conftest.c" >&5
7510 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7511 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7512 _lt_result=$?
7513 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7514 lt_cv_apple_cc_single_mod=yes
7515 else
7516 cat conftest.err >&5
7517 fi
7518 rm -rf libconftest.dylib*
7519 rm -f conftest.*
7520 fi
7521fi
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7523$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7525$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7526if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528else
7529 lt_cv_ld_exported_symbols_list=no
7530 save_LDFLAGS=$LDFLAGS
7531 echo "_main" > conftest.sym
7532 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h. */
7535
7536int
7537main ()
7538{
7539
7540 ;
7541 return 0;
7542}
7543_ACEOF
7544if ac_fn_c_try_link "$LINENO"; then :
7545 lt_cv_ld_exported_symbols_list=yes
7546else
7547 lt_cv_ld_exported_symbols_list=no
7548fi
7549rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 LDFLAGS="$save_LDFLAGS"
7552
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7555$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7557$as_echo_n "checking for -force_load linker flag... " >&6; }
7558if test "${lt_cv_ld_force_load+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560else
7561 lt_cv_ld_force_load=no
7562 cat > conftest.c << _LT_EOF
7563int forced_loaded() { return 2;}
7564_LT_EOF
7565 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7566 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7567 echo "$AR cru libconftest.a conftest.o" >&5
7568 $AR cru libconftest.a conftest.o 2>&5
7569 cat > conftest.c << _LT_EOF
7570int main() { return 0;}
7571_LT_EOF
7572 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7573 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7574 _lt_result=$?
7575 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7576 lt_cv_ld_force_load=yes
7577 else
7578 cat conftest.err >&5
7579 fi
7580 rm -f conftest.err libconftest.a conftest conftest.c
7581 rm -rf conftest.dSYM
7582
7583fi
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7585$as_echo "$lt_cv_ld_force_load" >&6; }
7586 case $host_os in
7587 rhapsody* | darwin1.[012])
7588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7589 darwin1.*)
7590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7591 darwin*) # darwin 5.x on
7592 # if running on 10.5 or later, the deployment target defaults
7593 # to the OS version, if on x86, and 10.4, the deployment
7594 # target defaults to 10.4. Don't you love it?
7595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00007598 10.[012][,.]*)
Kirill Yukhin5f520812014-11-13 14:03:17 +00007599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7600 10.*)
7601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7602 esac
7603 ;;
7604 esac
7605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7606 _lt_dar_single_mod='$single_module'
7607 fi
7608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7610 else
7611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7612 fi
7613 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7614 _lt_dsymutil='~$DSYMUTIL $lib || :'
7615 else
7616 _lt_dsymutil=
7617 fi
7618 ;;
7619 esac
7620
7621for ac_header in dlfcn.h
7622do :
7623 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7624"
7625if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7626 cat >>confdefs.h <<_ACEOF
7627#define HAVE_DLFCN_H 1
7628_ACEOF
7629
7630fi
7631
7632done
7633
7634
7635
7636
7637
7638
7639# Set options
7640
7641
7642
7643
7644 enable_win32_dll=no
7645
7646
7647 # Check whether --enable-shared was given.
7648if test "${enable_shared+set}" = set; then :
7649 enableval=$enable_shared; p=${PACKAGE-default}
7650 case $enableval in
7651 yes) enable_shared=yes ;;
7652 no) enable_shared=no ;;
7653 *)
7654 enable_shared=no
7655 # Look at the argument we got. We use all the common list separators.
7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657 for pkg in $enableval; do
7658 IFS="$lt_save_ifs"
7659 if test "X$pkg" = "X$p"; then
7660 enable_shared=yes
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 ;;
7665 esac
7666else
7667 enable_shared=yes
7668fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 # Check whether --enable-static was given.
7679if test "${enable_static+set}" = set; then :
7680 enableval=$enable_static; p=${PACKAGE-default}
7681 case $enableval in
7682 yes) enable_static=yes ;;
7683 no) enable_static=no ;;
7684 *)
7685 enable_static=no
7686 # Look at the argument we got. We use all the common list separators.
7687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7688 for pkg in $enableval; do
7689 IFS="$lt_save_ifs"
7690 if test "X$pkg" = "X$p"; then
7691 enable_static=yes
7692 fi
7693 done
7694 IFS="$lt_save_ifs"
7695 ;;
7696 esac
7697else
7698 enable_static=yes
7699fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710# Check whether --with-pic was given.
7711if test "${with_pic+set}" = set; then :
7712 withval=$with_pic; pic_mode="$withval"
7713else
7714 pic_mode=default
7715fi
7716
7717
7718test -z "$pic_mode" && pic_mode=default
7719
7720
7721
7722
7723
7724
7725
7726 # Check whether --enable-fast-install was given.
7727if test "${enable_fast_install+set}" = set; then :
7728 enableval=$enable_fast_install; p=${PACKAGE-default}
7729 case $enableval in
7730 yes) enable_fast_install=yes ;;
7731 no) enable_fast_install=no ;;
7732 *)
7733 enable_fast_install=no
7734 # Look at the argument we got. We use all the common list separators.
7735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7736 for pkg in $enableval; do
7737 IFS="$lt_save_ifs"
7738 if test "X$pkg" = "X$p"; then
7739 enable_fast_install=yes
7740 fi
7741 done
7742 IFS="$lt_save_ifs"
7743 ;;
7744 esac
7745else
7746 enable_fast_install=yes
7747fi
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759# This can be used to rebuild libtool when needed
7760LIBTOOL_DEPS="$ltmain"
7761
7762# Always use our own libtool.
7763LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790test -z "$LN_S" && LN_S="ln -s"
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805if test -n "${ZSH_VERSION+set}" ; then
7806 setopt NO_GLOB_SUBST
7807fi
7808
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7810$as_echo_n "checking for objdir... " >&6; }
7811if test "${lt_cv_objdir+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7813else
7814 rm -f .libs 2>/dev/null
7815mkdir .libs 2>/dev/null
7816if test -d .libs; then
7817 lt_cv_objdir=.libs
7818else
7819 # MS-DOS does not allow filenames that begin with a dot.
7820 lt_cv_objdir=_libs
7821fi
7822rmdir .libs 2>/dev/null
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7825$as_echo "$lt_cv_objdir" >&6; }
7826objdir=$lt_cv_objdir
7827
7828
7829
7830
7831
7832cat >>confdefs.h <<_ACEOF
7833#define LT_OBJDIR "$lt_cv_objdir/"
7834_ACEOF
7835
7836
7837
7838
7839case $host_os in
7840aix3*)
7841 # AIX sometimes has problems with the GCC collect2 program. For some
7842 # reason, if we set the COLLECT_NAMES environment variable, the problems
7843 # vanish in a puff of smoke.
7844 if test "X${COLLECT_NAMES+set}" != Xset; then
7845 COLLECT_NAMES=
7846 export COLLECT_NAMES
7847 fi
7848 ;;
7849esac
7850
7851# Global variables:
7852ofile=libtool
7853can_build_shared=yes
7854
7855# All known linkers require a `.a' archive for static linking (except MSVC,
7856# which needs '.lib').
7857libext=a
7858
7859with_gnu_ld="$lt_cv_prog_gnu_ld"
7860
7861old_CC="$CC"
7862old_CFLAGS="$CFLAGS"
7863
7864# Set sane defaults for various variables
7865test -z "$CC" && CC=cc
7866test -z "$LTCC" && LTCC=$CC
7867test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7868test -z "$LD" && LD=ld
7869test -z "$ac_objext" && ac_objext=o
7870
7871for cc_temp in $compiler""; do
7872 case $cc_temp in
7873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7875 \-*) ;;
7876 *) break;;
7877 esac
7878done
7879cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880
7881
7882# Only perform the check for file, if the check method requires it
7883test -z "$MAGIC_CMD" && MAGIC_CMD=file
7884case $deplibs_check_method in
7885file_magic*)
7886 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7888$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7889if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891else
7892 case $MAGIC_CMD in
7893[\\/*] | ?:[\\/]*)
7894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7895 ;;
7896*)
7897 lt_save_MAGIC_CMD="$MAGIC_CMD"
7898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7900 for ac_dir in $ac_dummy; do
7901 IFS="$lt_save_ifs"
7902 test -z "$ac_dir" && ac_dir=.
7903 if test -f $ac_dir/${ac_tool_prefix}file; then
7904 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7905 if test -n "$file_magic_test_file"; then
7906 case $deplibs_check_method in
7907 "file_magic "*)
7908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7911 $EGREP "$file_magic_regex" > /dev/null; then
7912 :
7913 else
7914 cat <<_LT_EOF 1>&2
7915
7916*** Warning: the command libtool uses to detect shared libraries,
7917*** $file_magic_cmd, produces output that libtool cannot recognize.
7918*** The result is that libtool may fail to recognize shared libraries
7919*** as such. This will affect the creation of libtool libraries that
7920*** depend on shared libraries, but programs linked with such libtool
7921*** libraries will work regardless of this problem. Nevertheless, you
7922*** may want to report the problem to your system manager and/or to
7923*** bug-libtool@gnu.org
7924
7925_LT_EOF
7926 fi ;;
7927 esac
7928 fi
7929 break
7930 fi
7931 done
7932 IFS="$lt_save_ifs"
7933 MAGIC_CMD="$lt_save_MAGIC_CMD"
7934 ;;
7935esac
7936fi
7937
7938MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7939if test -n "$MAGIC_CMD"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7941$as_echo "$MAGIC_CMD" >&6; }
7942else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
7945fi
7946
7947
7948
7949
7950
7951if test -z "$lt_cv_path_MAGIC_CMD"; then
7952 if test -n "$ac_tool_prefix"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7954$as_echo_n "checking for file... " >&6; }
7955if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957else
7958 case $MAGIC_CMD in
7959[\\/*] | ?:[\\/]*)
7960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961 ;;
7962*)
7963 lt_save_MAGIC_CMD="$MAGIC_CMD"
7964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7966 for ac_dir in $ac_dummy; do
7967 IFS="$lt_save_ifs"
7968 test -z "$ac_dir" && ac_dir=.
7969 if test -f $ac_dir/file; then
7970 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7971 if test -n "$file_magic_test_file"; then
7972 case $deplibs_check_method in
7973 "file_magic "*)
7974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7977 $EGREP "$file_magic_regex" > /dev/null; then
7978 :
7979 else
7980 cat <<_LT_EOF 1>&2
7981
7982*** Warning: the command libtool uses to detect shared libraries,
7983*** $file_magic_cmd, produces output that libtool cannot recognize.
7984*** The result is that libtool may fail to recognize shared libraries
7985*** as such. This will affect the creation of libtool libraries that
7986*** depend on shared libraries, but programs linked with such libtool
7987*** libraries will work regardless of this problem. Nevertheless, you
7988*** may want to report the problem to your system manager and/or to
7989*** bug-libtool@gnu.org
7990
7991_LT_EOF
7992 fi ;;
7993 esac
7994 fi
7995 break
7996 fi
7997 done
7998 IFS="$lt_save_ifs"
7999 MAGIC_CMD="$lt_save_MAGIC_CMD"
8000 ;;
8001esac
8002fi
8003
8004MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005if test -n "$MAGIC_CMD"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8007$as_echo "$MAGIC_CMD" >&6; }
8008else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011fi
8012
8013
8014 else
8015 MAGIC_CMD=:
8016 fi
8017fi
8018
8019 fi
8020 ;;
8021esac
8022
8023# Use C for the default configuration in the libtool script
8024
8025lt_save_CC="$CC"
8026ac_ext=c
8027ac_cpp='$CPP $CPPFLAGS'
8028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032
8033# Source file extension for C test sources.
8034ac_ext=c
8035
8036# Object file extension for compiled C test sources.
8037objext=o
8038objext=$objext
8039
8040# Code to be used in simple compile tests
8041lt_simple_compile_test_code="int some_variable = 0;"
8042
8043# Code to be used in simple link tests
8044lt_simple_link_test_code='int main(){return(0);}'
8045
8046
8047
8048
8049
8050
8051
8052# If no C compiler was specified, use CC.
8053LTCC=${LTCC-"$CC"}
8054
8055# If no C compiler flags were specified, use CFLAGS.
8056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8057
8058# Allow CC to be a program name with arguments.
8059compiler=$CC
8060
8061# Save the default compiler, since it gets overwritten when the other
8062# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8063compiler_DEFAULT=$CC
8064
8065# save warnings/boilerplate of simple test code
8066ac_outfile=conftest.$ac_objext
8067echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069_lt_compiler_boilerplate=`cat conftest.err`
8070$RM conftest*
8071
8072ac_outfile=conftest.$ac_objext
8073echo "$lt_simple_link_test_code" >conftest.$ac_ext
8074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075_lt_linker_boilerplate=`cat conftest.err`
8076$RM -r conftest*
8077
8078
8079## CAVEAT EMPTOR:
8080## There is no encapsulation within the following macros, do not change
8081## the running order or otherwise move them around unless you know exactly
8082## what you are doing...
8083if test -n "$compiler"; then
8084
8085lt_prog_compiler_no_builtin_flag=
8086
8087if test "$GCC" = yes; then
8088 case $cc_basename in
8089 nvcc*)
8090 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8091 *)
8092 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8093 esac
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8096$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8097if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099else
8100 lt_cv_prog_compiler_rtti_exceptions=no
8101 ac_outfile=conftest.$ac_objext
8102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8103 lt_compiler_flag="-fno-rtti -fno-exceptions"
8104 # Insert the option either (1) after the last *FLAGS variable, or
8105 # (2) before a word containing "conftest.", or (3) at the end.
8106 # Note that $ac_compile itself does not contain backslashes and begins
8107 # with a dollar sign (not a hyphen), so the echo should work correctly.
8108 # The option is referenced via a variable to avoid confusing sed.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
8113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8114 (eval "$lt_compile" 2>conftest.err)
8115 ac_status=$?
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 if (exit $ac_status) && test -s "$ac_outfile"; then
8119 # The compiler can only warn and ignore the option if not recognized
8120 # So say no if there are warnings other than the usual output.
8121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124 lt_cv_prog_compiler_rtti_exceptions=yes
8125 fi
8126 fi
8127 $RM conftest*
8128
8129fi
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8131$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8132
8133if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8134 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8135else
8136 :
8137fi
8138
8139fi
8140
8141
8142
8143
8144
8145
8146 lt_prog_compiler_wl=
8147lt_prog_compiler_pic=
8148lt_prog_compiler_static=
8149
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8151$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8152
8153 if test "$GCC" = yes; then
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_static='-static'
8156
8157 case $host_os in
8158 aix*)
8159 # All AIX code is PIC.
8160 if test "$host_cpu" = ia64; then
8161 # AIX 5 now supports IA64 processor
8162 lt_prog_compiler_static='-Bstatic'
8163 fi
8164 lt_prog_compiler_pic='-fPIC'
8165 ;;
8166
8167 amigaos*)
8168 case $host_cpu in
8169 powerpc)
8170 # see comment about AmigaOS4 .so support
8171 lt_prog_compiler_pic='-fPIC'
8172 ;;
8173 m68k)
8174 # FIXME: we need at least 68020 code to build shared libraries, but
8175 # adding the `-m68020' flag to GCC prevents building anything better,
8176 # like `-m68040'.
8177 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8178 ;;
8179 esac
8180 ;;
8181
8182 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8183 # PIC is the default for these OSes.
8184 ;;
8185
8186 mingw* | cygwin* | pw32* | os2* | cegcc*)
8187 # This hack is so that the source file can tell whether it is being
8188 # built for inclusion in a dll (and should export symbols for example).
8189 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8190 # (--disable-auto-import) libraries
8191 lt_prog_compiler_pic='-DDLL_EXPORT'
8192 ;;
8193
8194 darwin* | rhapsody*)
8195 # PIC is the default on this platform
8196 # Common symbols not allowed in MH_DYLIB files
8197 lt_prog_compiler_pic='-fno-common'
8198 ;;
8199
8200 haiku*)
8201 # PIC is the default for Haiku.
8202 # The "-static" flag exists, but is broken.
8203 lt_prog_compiler_static=
8204 ;;
8205
8206 hpux*)
8207 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8208 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8209 # sets the default TLS model and affects inlining.
8210 case $host_cpu in
8211 hppa*64*)
8212 # +Z the default
8213 ;;
8214 *)
8215 lt_prog_compiler_pic='-fPIC'
8216 ;;
8217 esac
8218 ;;
8219
8220 interix[3-9]*)
8221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8222 # Instead, we relocate shared libraries at runtime.
8223 ;;
8224
8225 msdosdjgpp*)
8226 # Just because we use GCC doesn't mean we suddenly get shared libraries
8227 # on systems that don't support them.
8228 lt_prog_compiler_can_build_shared=no
8229 enable_shared=no
8230 ;;
8231
8232 *nto* | *qnx*)
8233 # QNX uses GNU C++, but need to define -shared option too, otherwise
8234 # it will coredump.
8235 lt_prog_compiler_pic='-fPIC -shared'
8236 ;;
8237
8238 sysv4*MP*)
8239 if test -d /usr/nec; then
8240 lt_prog_compiler_pic=-Kconform_pic
8241 fi
8242 ;;
8243
8244 *)
8245 lt_prog_compiler_pic='-fPIC'
8246 ;;
8247 esac
8248
8249 case $cc_basename in
8250 nvcc*) # Cuda Compiler Driver 2.2
8251 lt_prog_compiler_wl='-Xlinker '
8252 lt_prog_compiler_pic='-Xcompiler -fPIC'
8253 ;;
8254 esac
8255 else
8256 # PORTME Check for flag to pass linker flags through the system compiler.
8257 case $host_os in
8258 aix*)
8259 lt_prog_compiler_wl='-Wl,'
8260 if test "$host_cpu" = ia64; then
8261 # AIX 5 now supports IA64 processor
8262 lt_prog_compiler_static='-Bstatic'
8263 else
8264 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8265 fi
8266 ;;
8267
8268 mingw* | cygwin* | pw32* | os2* | cegcc*)
8269 # This hack is so that the source file can tell whether it is being
8270 # built for inclusion in a dll (and should export symbols for example).
8271 lt_prog_compiler_pic='-DDLL_EXPORT'
8272 ;;
8273
8274 hpux9* | hpux10* | hpux11*)
8275 lt_prog_compiler_wl='-Wl,'
8276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8277 # not for PA HP-UX.
8278 case $host_cpu in
8279 hppa*64*|ia64*)
8280 # +Z the default
8281 ;;
8282 *)
8283 lt_prog_compiler_pic='+Z'
8284 ;;
8285 esac
8286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8287 lt_prog_compiler_static='${wl}-a ${wl}archive'
8288 ;;
8289
8290 irix5* | irix6* | nonstopux*)
8291 lt_prog_compiler_wl='-Wl,'
8292 # PIC (with -KPIC) is the default.
8293 lt_prog_compiler_static='-non_shared'
8294 ;;
8295
8296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8297 case $cc_basename in
8298 # old Intel for x86_64 which still supported -KPIC.
8299 ecc*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-KPIC'
8302 lt_prog_compiler_static='-static'
8303 ;;
8304 # icc used to be incompatible with GCC.
8305 # ICC 10 doesn't accept -KPIC any more.
8306 icc* | ifort*)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fPIC'
8309 lt_prog_compiler_static='-static'
8310 ;;
8311 # Lahey Fortran 8.1.
8312 lf95*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='--shared'
8315 lt_prog_compiler_static='--static'
8316 ;;
8317 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8318 # Portland Group compilers (*not* the Pentium gcc compiler,
8319 # which looks to be a dead project)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fpic'
8322 lt_prog_compiler_static='-Bstatic'
8323 ;;
8324 ccc*)
8325 lt_prog_compiler_wl='-Wl,'
8326 # All Alpha code is PIC.
8327 lt_prog_compiler_static='-non_shared'
8328 ;;
8329 xl* | bgxl* | bgf* | mpixl*)
8330 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='-qpic'
8333 lt_prog_compiler_static='-qstaticlink'
8334 ;;
8335 *)
8336 case `$CC -V 2>&1 | sed 5q` in
8337 *Sun\ F* | *Sun*Fortran*)
8338 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8339 lt_prog_compiler_pic='-KPIC'
8340 lt_prog_compiler_static='-Bstatic'
8341 lt_prog_compiler_wl=''
8342 ;;
8343 *Sun\ C*)
8344 # Sun C 5.9
8345 lt_prog_compiler_pic='-KPIC'
8346 lt_prog_compiler_static='-Bstatic'
8347 lt_prog_compiler_wl='-Wl,'
8348 ;;
8349 esac
8350 ;;
8351 esac
8352 ;;
8353
8354 newsos6)
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 ;;
8358
8359 *nto* | *qnx*)
8360 # QNX uses GNU C++, but need to define -shared option too, otherwise
8361 # it will coredump.
8362 lt_prog_compiler_pic='-fPIC -shared'
8363 ;;
8364
8365 osf3* | osf4* | osf5*)
8366 lt_prog_compiler_wl='-Wl,'
8367 # All OSF/1 code is PIC.
8368 lt_prog_compiler_static='-non_shared'
8369 ;;
8370
8371 rdos*)
8372 lt_prog_compiler_static='-non_shared'
8373 ;;
8374
8375 solaris*)
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 case $cc_basename in
8379 f77* | f90* | f95*)
8380 lt_prog_compiler_wl='-Qoption ld ';;
8381 *)
8382 lt_prog_compiler_wl='-Wl,';;
8383 esac
8384 ;;
8385
8386 sunos4*)
8387 lt_prog_compiler_wl='-Qoption ld '
8388 lt_prog_compiler_pic='-PIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 ;;
8391
8392 sysv4 | sysv4.2uw2* | sysv4.3*)
8393 lt_prog_compiler_wl='-Wl,'
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 ;;
8397
8398 sysv4*MP*)
8399 if test -d /usr/nec ;then
8400 lt_prog_compiler_pic='-Kconform_pic'
8401 lt_prog_compiler_static='-Bstatic'
8402 fi
8403 ;;
8404
8405 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 ;;
8410
8411 unicos*)
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_can_build_shared=no
8414 ;;
8415
8416 uts4*)
8417 lt_prog_compiler_pic='-pic'
8418 lt_prog_compiler_static='-Bstatic'
8419 ;;
8420
8421 *)
8422 lt_prog_compiler_can_build_shared=no
8423 ;;
8424 esac
8425 fi
8426
8427case $host_os in
8428 # For platforms which do not support PIC, -DPIC is meaningless:
8429 *djgpp*)
8430 lt_prog_compiler_pic=
8431 ;;
8432 *)
8433 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8434 ;;
8435esac
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8437$as_echo "$lt_prog_compiler_pic" >&6; }
8438
8439
8440
8441
8442
8443
8444#
8445# Check to make sure the PIC flag actually works.
8446#
8447if test -n "$lt_prog_compiler_pic"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8449$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8450if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452else
8453 lt_cv_prog_compiler_pic_works=no
8454 ac_outfile=conftest.$ac_objext
8455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8457 # Insert the option either (1) after the last *FLAGS variable, or
8458 # (2) before a word containing "conftest.", or (3) at the end.
8459 # Note that $ac_compile itself does not contain backslashes and begins
8460 # with a dollar sign (not a hyphen), so the echo should work correctly.
8461 # The option is referenced via a variable to avoid confusing sed.
8462 lt_compile=`echo "$ac_compile" | $SED \
8463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465 -e 's:$: $lt_compiler_flag:'`
8466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8467 (eval "$lt_compile" 2>conftest.err)
8468 ac_status=$?
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 if (exit $ac_status) && test -s "$ac_outfile"; then
8472 # The compiler can only warn and ignore the option if not recognized
8473 # So say no if there are warnings other than the usual output.
8474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8477 lt_cv_prog_compiler_pic_works=yes
8478 fi
8479 fi
8480 $RM conftest*
8481
8482fi
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8484$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8485
8486if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8487 case $lt_prog_compiler_pic in
8488 "" | " "*) ;;
8489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8490 esac
8491else
8492 lt_prog_compiler_pic=
8493 lt_prog_compiler_can_build_shared=no
8494fi
8495
8496fi
8497
8498
8499
8500
8501
8502
8503#
8504# Check to make sure the static flag actually works.
8505#
8506wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8508$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8509if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511else
8512 lt_cv_prog_compiler_static_works=no
8513 save_LDFLAGS="$LDFLAGS"
8514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8515 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8517 # The linker can only warn and ignore the option if not recognized
8518 # So say no if there are warnings
8519 if test -s conftest.err; then
8520 # Append any errors to the config.log.
8521 cat conftest.err 1>&5
8522 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8524 if diff conftest.exp conftest.er2 >/dev/null; then
8525 lt_cv_prog_compiler_static_works=yes
8526 fi
8527 else
8528 lt_cv_prog_compiler_static_works=yes
8529 fi
8530 fi
8531 $RM -r conftest*
8532 LDFLAGS="$save_LDFLAGS"
8533
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8536$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8537
8538if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8539 :
8540else
8541 lt_prog_compiler_static=
8542fi
8543
8544
8545
8546
8547
8548
8549
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8551$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8552if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554else
8555 lt_cv_prog_compiler_c_o=no
8556 $RM -r conftest 2>/dev/null
8557 mkdir conftest
8558 cd conftest
8559 mkdir out
8560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8561
8562 lt_compiler_flag="-o out/conftest2.$ac_objext"
8563 # Insert the option either (1) after the last *FLAGS variable, or
8564 # (2) before a word containing "conftest.", or (3) at the end.
8565 # Note that $ac_compile itself does not contain backslashes and begins
8566 # with a dollar sign (not a hyphen), so the echo should work correctly.
8567 lt_compile=`echo "$ac_compile" | $SED \
8568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8570 -e 's:$: $lt_compiler_flag:'`
8571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8572 (eval "$lt_compile" 2>out/conftest.err)
8573 ac_status=$?
8574 cat out/conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8577 then
8578 # The compiler can only warn and ignore the option if not recognized
8579 # So say no if there are warnings
8580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8583 lt_cv_prog_compiler_c_o=yes
8584 fi
8585 fi
8586 chmod u+w . 2>&5
8587 $RM conftest*
8588 # SGI C++ compiler will create directory out/ii_files/ for
8589 # template instantiation
8590 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8591 $RM out/* && rmdir out
8592 cd ..
8593 $RM -r conftest
8594 $RM conftest*
8595
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8598$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8599
8600
8601
8602
8603
8604
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8606$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8607if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609else
8610 lt_cv_prog_compiler_c_o=no
8611 $RM -r conftest 2>/dev/null
8612 mkdir conftest
8613 cd conftest
8614 mkdir out
8615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8616
8617 lt_compiler_flag="-o out/conftest2.$ac_objext"
8618 # Insert the option either (1) after the last *FLAGS variable, or
8619 # (2) before a word containing "conftest.", or (3) at the end.
8620 # Note that $ac_compile itself does not contain backslashes and begins
8621 # with a dollar sign (not a hyphen), so the echo should work correctly.
8622 lt_compile=`echo "$ac_compile" | $SED \
8623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8625 -e 's:$: $lt_compiler_flag:'`
8626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8627 (eval "$lt_compile" 2>out/conftest.err)
8628 ac_status=$?
8629 cat out/conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8632 then
8633 # The compiler can only warn and ignore the option if not recognized
8634 # So say no if there are warnings
8635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8638 lt_cv_prog_compiler_c_o=yes
8639 fi
8640 fi
8641 chmod u+w . 2>&5
8642 $RM conftest*
8643 # SGI C++ compiler will create directory out/ii_files/ for
8644 # template instantiation
8645 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8646 $RM out/* && rmdir out
8647 cd ..
8648 $RM -r conftest
8649 $RM conftest*
8650
8651fi
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8653$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8654
8655
8656
8657
8658hard_links="nottested"
8659if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8660 # do not overwrite the value of need_locks provided by the user
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8662$as_echo_n "checking if we can lock with hard links... " >&6; }
8663 hard_links=yes
8664 $RM conftest*
8665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8666 touch conftest.a
8667 ln conftest.a conftest.b 2>&5 || hard_links=no
8668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8670$as_echo "$hard_links" >&6; }
8671 if test "$hard_links" = no; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8673$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8674 need_locks=warn
8675 fi
8676else
8677 need_locks=no
8678fi
8679
8680
8681
8682
8683
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8686$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8687
8688 runpath_var=
8689 allow_undefined_flag=
8690 always_export_symbols=no
8691 archive_cmds=
8692 archive_expsym_cmds=
8693 compiler_needs_object=no
8694 enable_shared_with_static_runtimes=no
8695 export_dynamic_flag_spec=
8696 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8697 hardcode_automatic=no
8698 hardcode_direct=no
8699 hardcode_direct_absolute=no
8700 hardcode_libdir_flag_spec=
8701 hardcode_libdir_flag_spec_ld=
8702 hardcode_libdir_separator=
8703 hardcode_minus_L=no
8704 hardcode_shlibpath_var=unsupported
8705 inherit_rpath=no
8706 link_all_deplibs=unknown
8707 module_cmds=
8708 module_expsym_cmds=
8709 old_archive_from_new_cmds=
8710 old_archive_from_expsyms_cmds=
8711 thread_safe_flag_spec=
8712 whole_archive_flag_spec=
8713 # include_expsyms should be a list of space-separated symbols to be *always*
8714 # included in the symbol list
8715 include_expsyms=
8716 # exclude_expsyms can be an extended regexp of symbols to exclude
8717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8719 # as well as any symbol that contains `d'.
8720 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8722 # platforms (ab)use it in PIC code, but their linkers get confused if
8723 # the symbol is explicitly referenced. Since portable code cannot
8724 # rely on this symbol name, it's probably fine to never include it in
8725 # preloaded symbol tables.
8726 # Exclude shared library initialization/finalization symbols.
8727 extract_expsyms_cmds=
8728
8729 case $host_os in
8730 cygwin* | mingw* | pw32* | cegcc*)
8731 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8732 # When not using gcc, we currently assume that we are using
8733 # Microsoft Visual C++.
8734 if test "$GCC" != yes; then
8735 with_gnu_ld=no
8736 fi
8737 ;;
8738 interix*)
8739 # we just hope/assume this is gcc and not c89 (= MSVC++)
8740 with_gnu_ld=yes
8741 ;;
8742 openbsd*)
8743 with_gnu_ld=no
8744 ;;
8745 esac
8746
8747 ld_shlibs=yes
8748
8749 # On some targets, GNU ld is compatible enough with the native linker
8750 # that we're better off using the native interface for both.
8751 lt_use_gnu_ld_interface=no
8752 if test "$with_gnu_ld" = yes; then
8753 case $host_os in
8754 aix*)
8755 # The AIX port of GNU ld has always aspired to compatibility
8756 # with the native linker. However, as the warning in the GNU ld
8757 # block says, versions before 2.19.5* couldn't really create working
8758 # shared libraries, regardless of the interface used.
8759 case `$LD -v 2>&1` in
8760 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8761 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8762 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8763 *)
8764 lt_use_gnu_ld_interface=yes
8765 ;;
8766 esac
8767 ;;
8768 *)
8769 lt_use_gnu_ld_interface=yes
8770 ;;
8771 esac
8772 fi
8773
8774 if test "$lt_use_gnu_ld_interface" = yes; then
8775 # If archive_cmds runs LD, not CC, wlarc should be empty
8776 wlarc='${wl}'
8777
8778 # Set some defaults for GNU ld with shared library support. These
8779 # are reset later if shared libraries are not supported. Putting them
8780 # here allows them to be overridden if necessary.
8781 runpath_var=LD_RUN_PATH
8782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 export_dynamic_flag_spec='${wl}--export-dynamic'
8784 # ancient GNU ld didn't support --whole-archive et. al.
8785 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8786 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8787 else
8788 whole_archive_flag_spec=
8789 fi
8790 supports_anon_versioning=no
8791 case `$LD -v 2>&1` in
8792 *GNU\ gold*) supports_anon_versioning=yes ;;
8793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796 *\ 2.11.*) ;; # other 2.11 versions
8797 *) supports_anon_versioning=yes ;;
8798 esac
8799
8800 # See if GNU ld supports shared libraries.
8801 case $host_os in
8802 aix[3-9]*)
8803 # On AIX/PPC, the GNU linker is very broken
8804 if test "$host_cpu" != ia64; then
8805 ld_shlibs=no
8806 cat <<_LT_EOF 1>&2
8807
8808*** Warning: the GNU linker, at least up to release 2.19, is reported
8809*** to be unable to reliably create shared libraries on AIX.
8810*** Therefore, libtool is disabling shared libraries support. If you
8811*** really care for shared libraries, you may want to install binutils
8812*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8813*** You will then need to restart the configuration process.
8814
8815_LT_EOF
8816 fi
8817 ;;
8818
8819 amigaos*)
8820 case $host_cpu in
8821 powerpc)
8822 # see comment about AmigaOS4 .so support
8823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8824 archive_expsym_cmds=''
8825 ;;
8826 m68k)
8827 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)'
8828 hardcode_libdir_flag_spec='-L$libdir'
8829 hardcode_minus_L=yes
8830 ;;
8831 esac
8832 ;;
8833
8834 beos*)
8835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8836 allow_undefined_flag=unsupported
8837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8838 # support --undefined. This deserves some investigation. FIXME
8839 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840 else
8841 ld_shlibs=no
8842 fi
8843 ;;
8844
8845 cygwin* | mingw* | pw32* | cegcc*)
8846 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8847 # as there is no search path for DLLs.
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 export_dynamic_flag_spec='${wl}--export-all-symbols'
8850 allow_undefined_flag=unsupported
8851 always_export_symbols=no
8852 enable_shared_with_static_runtimes=yes
8853 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8854
8855 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 # If the export-symbols file already is a .def file (1st line
8858 # is EXPORTS), use it as is; otherwise, prepend...
8859 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8860 cp $export_symbols $output_objdir/$soname.def;
8861 else
8862 echo EXPORTS > $output_objdir/$soname.def;
8863 cat $export_symbols >> $output_objdir/$soname.def;
8864 fi~
8865 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8866 else
8867 ld_shlibs=no
8868 fi
8869 ;;
8870
8871 haiku*)
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 link_all_deplibs=yes
8874 ;;
8875
8876 interix[3-9]*)
8877 hardcode_direct=no
8878 hardcode_shlibpath_var=no
8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8880 export_dynamic_flag_spec='${wl}-E'
8881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8882 # Instead, shared libraries are loaded at an image base (0x10000000 by
8883 # default) and relocated if they conflict, which is a slow very memory
8884 # consuming and fragmenting process. To avoid this, we pick a random,
8885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8886 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8888 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'
8889 ;;
8890
8891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8892 tmp_diet=no
8893 if test "$host_os" = linux-dietlibc; then
8894 case $cc_basename in
8895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8896 esac
8897 fi
8898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8899 && test "$tmp_diet" = no
8900 then
Michael Haubenwallner735aacb2015-05-13 11:10:33 +00008901 tmp_addflag=' $pic_flag'
Kirill Yukhin5f520812014-11-13 14:03:17 +00008902 tmp_sharedflag='-shared'
8903 case $cc_basename,$host_cpu in
8904 pgcc*) # Portland Group C compiler
8905 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'
8906 tmp_addflag=' $pic_flag'
8907 ;;
8908 pgf77* | pgf90* | pgf95* | pgfortran*)
8909 # Portland Group f77 and f90 compilers
8910 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'
8911 tmp_addflag=' $pic_flag -Mnomain' ;;
8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8913 tmp_addflag=' -i_dynamic' ;;
8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8915 tmp_addflag=' -i_dynamic -nofor_main' ;;
8916 ifc* | ifort*) # Intel Fortran compiler
8917 tmp_addflag=' -nofor_main' ;;
8918 lf95*) # Lahey Fortran 8.1
8919 whole_archive_flag_spec=
8920 tmp_sharedflag='--shared' ;;
8921 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8922 tmp_sharedflag='-qmkshrobj'
8923 tmp_addflag= ;;
8924 nvcc*) # Cuda Compiler Driver 2.2
8925 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'
8926 compiler_needs_object=yes
8927 ;;
8928 esac
8929 case `$CC -V 2>&1 | sed 5q` in
8930 *Sun\ C*) # Sun C 5.9
8931 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'
8932 compiler_needs_object=yes
8933 tmp_sharedflag='-G' ;;
8934 *Sun\ F*) # Sun Fortran 8.3
8935 tmp_sharedflag='-G' ;;
8936 esac
8937 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938
8939 if test "x$supports_anon_versioning" = xyes; then
8940 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8942 echo "local: *; };" >> $output_objdir/$libname.ver~
8943 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8944 fi
8945
8946 case $cc_basename in
8947 xlf* | bgf* | bgxlf* | mpixlf*)
8948 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8949 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8950 hardcode_libdir_flag_spec=
8951 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8952 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8953 if test "x$supports_anon_versioning" = xyes; then
8954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8956 echo "local: *; };" >> $output_objdir/$libname.ver~
8957 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8958 fi
8959 ;;
8960 esac
8961 else
8962 ld_shlibs=no
8963 fi
8964 ;;
8965
8966 netbsd*)
8967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8968 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969 wlarc=
8970 else
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 fi
8974 ;;
8975
8976 solaris*)
8977 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8978 ld_shlibs=no
8979 cat <<_LT_EOF 1>&2
8980
8981*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8982*** create shared libraries on Solaris systems. Therefore, libtool
8983*** is disabling shared libraries support. We urge you to upgrade GNU
8984*** binutils to release 2.9.1 or newer. Another option is to modify
8985*** your PATH or compiler configuration so that the native linker is
8986*** used, and then restart.
8987
8988_LT_EOF
8989 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992 else
8993 ld_shlibs=no
8994 fi
8995 ;;
8996
8997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8998 case `$LD -v 2>&1` in
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9000 ld_shlibs=no
9001 cat <<_LT_EOF 1>&2
9002
9003*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9004*** reliably create shared libraries on SCO systems. Therefore, libtool
9005*** is disabling shared libraries support. We urge you to upgrade GNU
9006*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9007*** your PATH or compiler configuration so that the native linker is
9008*** used, and then restart.
9009
9010_LT_EOF
9011 ;;
9012 *)
9013 # For security reasons, it is highly recommended that you always
9014 # use absolute paths for naming shared libraries, and exclude the
9015 # DT_RUNPATH tag from executables and libraries. But doing so
9016 # requires that you compile everything twice, which is a pain.
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021 else
9022 ld_shlibs=no
9023 fi
9024 ;;
9025 esac
9026 ;;
9027
9028 sunos4*)
9029 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9030 wlarc=
9031 hardcode_direct=yes
9032 hardcode_shlibpath_var=no
9033 ;;
9034
9035 *)
9036 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 else
9040 ld_shlibs=no
9041 fi
9042 ;;
9043 esac
9044
9045 if test "$ld_shlibs" = no; then
9046 runpath_var=
9047 hardcode_libdir_flag_spec=
9048 export_dynamic_flag_spec=
9049 whole_archive_flag_spec=
9050 fi
9051 else
9052 # PORTME fill in a description of your system's linker (not GNU ld)
9053 case $host_os in
9054 aix3*)
9055 allow_undefined_flag=unsupported
9056 always_export_symbols=yes
9057 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'
9058 # Note: this linker hardcodes the directories in LIBPATH if there
9059 # are no directories specified by -L.
9060 hardcode_minus_L=yes
9061 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9062 # Neither direct hardcoding nor static linking is supported with a
9063 # broken collect2.
9064 hardcode_direct=unsupported
9065 fi
9066 ;;
9067
9068 aix[4-9]*)
9069 if test "$host_cpu" = ia64; then
9070 # On IA64, the linker does run time linking by default, so we don't
9071 # have to do anything special.
9072 aix_use_runtimelinking=no
9073 exp_sym_flag='-Bexport'
9074 no_entry_flag=""
9075 else
9076 # If we're using GNU nm, then we don't want the "-C" option.
9077 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9078 # Also, AIX nm treats weak defined symbols like other global
9079 # defined symbols, whereas GNU nm marks them as "W".
9080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9081 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'
9082 else
Matthias Klose84c1b9d2016-11-15 16:34:02 +00009083 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Kirill Yukhin5f520812014-11-13 14:03:17 +00009084 fi
9085 aix_use_runtimelinking=no
9086
9087 # Test if we are trying to use run time linking or normal
9088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9089 # need to do runtime linking.
9090 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9091 for ld_flag in $LDFLAGS; do
9092 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9093 aix_use_runtimelinking=yes
9094 break
9095 fi
9096 done
9097 ;;
9098 esac
9099
9100 exp_sym_flag='-bexport'
9101 no_entry_flag='-bnoentry'
9102 fi
9103
9104 # When large executables or shared objects are built, AIX ld can
9105 # have problems creating the table of contents. If linking a library
9106 # or program results in "error TOC overflow" add -mminimal-toc to
9107 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9108 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9109
9110 archive_cmds=''
9111 hardcode_direct=yes
9112 hardcode_direct_absolute=yes
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 file_list_spec='${wl}-f,'
9116
9117 if test "$GCC" = yes; then
9118 case $host_os in aix4.[012]|aix4.[012].*)
9119 # We only want to do this on AIX 4.2 and lower, the check
9120 # below for broken collect2 doesn't work under 4.3+
9121 collect2name=`${CC} -print-prog-name=collect2`
9122 if test -f "$collect2name" &&
9123 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9124 then
9125 # We have reworked collect2
9126 :
9127 else
9128 # We have old collect2
9129 hardcode_direct=unsupported
9130 # It fails to find uninstalled libraries when the uninstalled
9131 # path is not listed in the libpath. Setting hardcode_minus_L
9132 # to unsupported forces relinking
9133 hardcode_minus_L=yes
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_libdir_separator=
9136 fi
9137 ;;
9138 esac
9139 shared_flag='-shared'
9140 if test "$aix_use_runtimelinking" = yes; then
9141 shared_flag="$shared_flag "'${wl}-G'
9142 fi
9143 else
9144 # not using gcc
9145 if test "$host_cpu" = ia64; then
9146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9147 # chokes on -Wl,-G. The following line is correct:
9148 shared_flag='-G'
9149 else
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag='${wl}-G'
9152 else
9153 shared_flag='${wl}-bM:SRE'
9154 fi
9155 fi
9156 fi
9157
9158 export_dynamic_flag_spec='${wl}-bexpall'
9159 # It seems that -bexpall does not export symbols beginning with
9160 # underscore (_), so it is better to generate a list of symbols to export.
9161 always_export_symbols=yes
9162 if test "$aix_use_runtimelinking" = yes; then
9163 # Warning - without using the other runtime loading flags (-brtl),
9164 # -berok will link without error, but may produce a broken library.
9165 allow_undefined_flag='-berok'
9166 # Determine the default libpath from the value encoded in an
9167 # empty executable.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h. */
9170
9171int
9172main ()
9173{
9174
9175 ;
9176 return 0;
9177}
9178_ACEOF
9179if ac_fn_c_try_link "$LINENO"; then :
9180
9181lt_aix_libpath_sed='
9182 /Import File Strings/,/^$/ {
9183 /^0/ {
9184 s/^0 *\(.*\)$/\1/
9185 p
9186 }
9187 }'
9188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189# Check for a 64-bit object if we didn't find anything.
9190if test -z "$aix_libpath"; then
9191 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192fi
9193fi
9194rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9197
9198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9199 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"
9200 else
9201 if test "$host_cpu" = ia64; then
9202 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9203 allow_undefined_flag="-z nodefs"
9204 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"
9205 else
9206 # Determine the default libpath from the value encoded in an
9207 # empty executable.
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h. */
9210
9211int
9212main ()
9213{
9214
9215 ;
9216 return 0;
9217}
9218_ACEOF
9219if ac_fn_c_try_link "$LINENO"; then :
9220
9221lt_aix_libpath_sed='
9222 /Import File Strings/,/^$/ {
9223 /^0/ {
9224 s/^0 *\(.*\)$/\1/
9225 p
9226 }
9227 }'
9228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229# Check for a 64-bit object if we didn't find anything.
9230if test -z "$aix_libpath"; then
9231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232fi
9233fi
9234rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9237
9238 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9239 # Warning - without using the other run time loading flags,
9240 # -berok will link without error, but may produce a broken library.
9241 no_undefined_flag=' ${wl}-bernotok'
9242 allow_undefined_flag=' ${wl}-berok'
9243 if test "$with_gnu_ld" = yes; then
9244 # We only use this code for GNU lds that support --whole-archive.
9245 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9246 else
9247 # Exported symbols can be pulled into shared objects from archives
9248 whole_archive_flag_spec='$convenience'
9249 fi
9250 archive_cmds_need_lc=yes
9251 # This is similar to how AIX traditionally builds its shared libraries.
9252 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'
9253 fi
9254 fi
9255 ;;
9256
9257 amigaos*)
9258 case $host_cpu in
9259 powerpc)
9260 # see comment about AmigaOS4 .so support
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds=''
9263 ;;
9264 m68k)
9265 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)'
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_minus_L=yes
9268 ;;
9269 esac
9270 ;;
9271
9272 bsdi[45]*)
9273 export_dynamic_flag_spec=-rdynamic
9274 ;;
9275
9276 cygwin* | mingw* | pw32* | cegcc*)
9277 # When not using gcc, we currently assume that we are using
9278 # Microsoft Visual C++.
9279 # hardcode_libdir_flag_spec is actually meaningless, as there is
9280 # no search path for DLLs.
9281 hardcode_libdir_flag_spec=' '
9282 allow_undefined_flag=unsupported
9283 # Tell ltmain to make .lib files, not .a files.
9284 libext=lib
9285 # Tell ltmain to make .dll files, not .so files.
9286 shrext_cmds=".dll"
9287 # FIXME: Setting linknames here is a bad hack.
9288 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9289 # The linker will automatically build a .lib file if we build a DLL.
9290 old_archive_from_new_cmds='true'
9291 # FIXME: Should let the user specify the lib program.
9292 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9293 fix_srcfile_path='`cygpath -w "$srcfile"`'
9294 enable_shared_with_static_runtimes=yes
9295 ;;
9296
9297 darwin* | rhapsody*)
9298
9299
9300 archive_cmds_need_lc=no
9301 hardcode_direct=no
9302 hardcode_automatic=yes
9303 hardcode_shlibpath_var=unsupported
9304 if test "$lt_cv_ld_force_load" = "yes"; then
9305 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\"`'
9306 else
9307 whole_archive_flag_spec=''
9308 fi
9309 link_all_deplibs=yes
9310 allow_undefined_flag="$_lt_dar_allow_undefined"
9311 case $cc_basename in
9312 ifort*) _lt_dar_can_shared=yes ;;
9313 *) _lt_dar_can_shared=$GCC ;;
9314 esac
9315 if test "$_lt_dar_can_shared" = "yes"; then
9316 output_verbose_link_cmd=func_echo_all
9317 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9318 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9319 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}"
9320 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}"
9321
9322 else
9323 ld_shlibs=no
9324 fi
9325
9326 ;;
9327
9328 dgux*)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_shlibpath_var=no
9332 ;;
9333
9334 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9335 # support. Future versions do this automatically, but an explicit c++rt0.o
9336 # does not break anything, and helps significantly (at the cost of a little
9337 # extra space).
9338 freebsd2.2*)
9339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9340 hardcode_libdir_flag_spec='-R$libdir'
9341 hardcode_direct=yes
9342 hardcode_shlibpath_var=no
9343 ;;
9344
9345 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9346 freebsd2.*)
9347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_direct=yes
9349 hardcode_minus_L=yes
9350 hardcode_shlibpath_var=no
9351 ;;
9352
9353 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9354 freebsd* | dragonfly*)
9355 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9356 hardcode_libdir_flag_spec='-R$libdir'
9357 hardcode_direct=yes
9358 hardcode_shlibpath_var=no
9359 ;;
9360
9361 hpux9*)
9362 if test "$GCC" = yes; then
9363 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'
9364 else
9365 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'
9366 fi
9367 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9368 hardcode_libdir_separator=:
9369 hardcode_direct=yes
9370
9371 # hardcode_minus_L: Not really in the search PATH,
9372 # but as the default location of the library.
9373 hardcode_minus_L=yes
9374 export_dynamic_flag_spec='${wl}-E'
9375 ;;
9376
9377 hpux10*)
9378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9379 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9380 else
9381 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9382 fi
9383 if test "$with_gnu_ld" = no; then
9384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9385 hardcode_libdir_flag_spec_ld='+b $libdir'
9386 hardcode_libdir_separator=:
9387 hardcode_direct=yes
9388 hardcode_direct_absolute=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390 # hardcode_minus_L: Not really in the search PATH,
9391 # but as the default location of the library.
9392 hardcode_minus_L=yes
9393 fi
9394 ;;
9395
9396 hpux11*)
9397 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9398 case $host_cpu in
9399 hppa*64*)
9400 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401 ;;
9402 ia64*)
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9404 ;;
9405 *)
9406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407 ;;
9408 esac
9409 else
9410 case $host_cpu in
9411 hppa*64*)
9412 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 ;;
9414 ia64*)
9415 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 *)
9418
9419 # Older versions of the 11.00 compiler do not understand -b yet
9420 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9422$as_echo_n "checking if $CC understands -b... " >&6; }
9423if test "${lt_cv_prog_compiler__b+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425else
9426 lt_cv_prog_compiler__b=no
9427 save_LDFLAGS="$LDFLAGS"
9428 LDFLAGS="$LDFLAGS -b"
9429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9431 # The linker can only warn and ignore the option if not recognized
9432 # So say no if there are warnings
9433 if test -s conftest.err; then
9434 # Append any errors to the config.log.
9435 cat conftest.err 1>&5
9436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438 if diff conftest.exp conftest.er2 >/dev/null; then
9439 lt_cv_prog_compiler__b=yes
9440 fi
9441 else
9442 lt_cv_prog_compiler__b=yes
9443 fi
9444 fi
9445 $RM -r conftest*
9446 LDFLAGS="$save_LDFLAGS"
9447
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9450$as_echo "$lt_cv_prog_compiler__b" >&6; }
9451
9452if test x"$lt_cv_prog_compiler__b" = xyes; then
9453 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454else
9455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9456fi
9457
9458 ;;
9459 esac
9460 fi
9461 if test "$with_gnu_ld" = no; then
9462 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463 hardcode_libdir_separator=:
9464
9465 case $host_cpu in
9466 hppa*64*|ia64*)
9467 hardcode_direct=no
9468 hardcode_shlibpath_var=no
9469 ;;
9470 *)
9471 hardcode_direct=yes
9472 hardcode_direct_absolute=yes
9473 export_dynamic_flag_spec='${wl}-E'
9474
9475 # hardcode_minus_L: Not really in the search PATH,
9476 # but as the default location of the library.
9477 hardcode_minus_L=yes
9478 ;;
9479 esac
9480 fi
9481 ;;
9482
9483 irix5* | irix6* | nonstopux*)
9484 if test "$GCC" = yes; then
9485 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'
9486 # Try to use the -exported_symbol ld option, if it does not
9487 # work, assume that -exports_file does not work either and
9488 # implicitly export all symbols.
9489 save_LDFLAGS="$LDFLAGS"
9490 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h. */
9493int foo(void) {}
9494_ACEOF
9495if ac_fn_c_try_link "$LINENO"; then :
9496 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'
9497
9498fi
9499rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LDFLAGS="$save_LDFLAGS"
9502 else
9503 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'
9504 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'
9505 fi
9506 archive_cmds_need_lc='no'
9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 hardcode_libdir_separator=:
9509 inherit_rpath=yes
9510 link_all_deplibs=yes
9511 ;;
9512
9513 netbsd*)
9514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9516 else
9517 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9518 fi
9519 hardcode_libdir_flag_spec='-R$libdir'
9520 hardcode_direct=yes
9521 hardcode_shlibpath_var=no
9522 ;;
9523
9524 newsos6)
9525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9526 hardcode_direct=yes
9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9528 hardcode_libdir_separator=:
9529 hardcode_shlibpath_var=no
9530 ;;
9531
9532 *nto* | *qnx*)
9533 ;;
9534
9535 openbsd*)
9536 if test -f /usr/libexec/ld.so; then
9537 hardcode_direct=yes
9538 hardcode_shlibpath_var=no
9539 hardcode_direct_absolute=yes
9540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9544 export_dynamic_flag_spec='${wl}-E'
9545 else
9546 case $host_os in
9547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_libdir_flag_spec='-R$libdir'
9550 ;;
9551 *)
9552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9554 ;;
9555 esac
9556 fi
9557 else
9558 ld_shlibs=no
9559 fi
9560 ;;
9561
9562 os2*)
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_minus_L=yes
9565 allow_undefined_flag=unsupported
9566 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'
9567 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9568 ;;
9569
9570 osf3*)
9571 if test "$GCC" = yes; then
9572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9573 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'
9574 else
9575 allow_undefined_flag=' -expect_unresolved \*'
9576 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'
9577 fi
9578 archive_cmds_need_lc='no'
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 hardcode_libdir_separator=:
9581 ;;
9582
9583 osf4* | osf5*) # as osf3* with the addition of -msym flag
9584 if test "$GCC" = yes; then
9585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9586 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'
9587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9588 else
9589 allow_undefined_flag=' -expect_unresolved \*'
9590 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'
9591 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~
9592 $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'
9593
9594 # Both c and cxx compiler support -rpath directly
9595 hardcode_libdir_flag_spec='-rpath $libdir'
9596 fi
9597 archive_cmds_need_lc='no'
9598 hardcode_libdir_separator=:
9599 ;;
9600
9601 solaris*)
9602 no_undefined_flag=' -z defs'
9603 if test "$GCC" = yes; then
9604 wlarc='${wl}'
9605 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9608 else
9609 case `$CC -V 2>&1` in
9610 *"Compilers 5.0"*)
9611 wlarc=''
9612 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9614 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9615 ;;
9616 *)
9617 wlarc='${wl}'
9618 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9621 ;;
9622 esac
9623 fi
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 hardcode_shlibpath_var=no
9626 case $host_os in
9627 solaris2.[0-5] | solaris2.[0-5].*) ;;
9628 *)
9629 # The compiler driver will combine and reorder linker options,
9630 # but understands `-z linker_flag'. GCC discards it without `$wl',
9631 # but is careful enough not to reorder.
9632 # Supported since Solaris 2.6 (maybe 2.5.1?)
9633 if test "$GCC" = yes; then
9634 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9635 else
9636 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9637 fi
9638 ;;
9639 esac
9640 link_all_deplibs=yes
9641 ;;
9642
9643 sunos4*)
9644 if test "x$host_vendor" = xsequent; then
9645 # Use $CC to link under sequent, because it throws in some extra .o
9646 # files that make .init and .fini sections work.
9647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9648 else
9649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9650 fi
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_direct=yes
9653 hardcode_minus_L=yes
9654 hardcode_shlibpath_var=no
9655 ;;
9656
9657 sysv4)
9658 case $host_vendor in
9659 sni)
9660 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9661 hardcode_direct=yes # is this really true???
9662 ;;
9663 siemens)
9664 ## LD is ld it makes a PLAMLIB
9665 ## CC just makes a GrossModule.
9666 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9667 reload_cmds='$CC -r -o $output$reload_objs'
9668 hardcode_direct=no
9669 ;;
9670 motorola)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9673 ;;
9674 esac
9675 runpath_var='LD_RUN_PATH'
9676 hardcode_shlibpath_var=no
9677 ;;
9678
9679 sysv4.3*)
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_shlibpath_var=no
9682 export_dynamic_flag_spec='-Bexport'
9683 ;;
9684
9685 sysv4*MP*)
9686 if test -d /usr/nec; then
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_shlibpath_var=no
9689 runpath_var=LD_RUN_PATH
9690 hardcode_runpath_var=yes
9691 ld_shlibs=yes
9692 fi
9693 ;;
9694
9695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9696 no_undefined_flag='${wl}-z,text'
9697 archive_cmds_need_lc=no
9698 hardcode_shlibpath_var=no
9699 runpath_var='LD_RUN_PATH'
9700
9701 if test "$GCC" = yes; then
9702 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 else
9705 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 fi
9708 ;;
9709
9710 sysv5* | sco3.2v5* | sco5v6*)
9711 # Note: We can NOT use -z defs as we might desire, because we do not
9712 # link with -lc, and that would cause any symbols used from libc to
9713 # always be unresolved, which means just about no library would
9714 # ever link correctly. If we're not using GNU ld we use -z text
9715 # though, which does catch some bad symbols but isn't as heavy-handed
9716 # as -z defs.
9717 no_undefined_flag='${wl}-z,text'
9718 allow_undefined_flag='${wl}-z,nodefs'
9719 archive_cmds_need_lc=no
9720 hardcode_shlibpath_var=no
9721 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
9724 export_dynamic_flag_spec='${wl}-Bexport'
9725 runpath_var='LD_RUN_PATH'
9726
9727 if test "$GCC" = yes; then
9728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 else
9731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 fi
9734 ;;
9735
9736 uts4*)
9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_shlibpath_var=no
9740 ;;
9741
9742 *)
9743 ld_shlibs=no
9744 ;;
9745 esac
9746
9747 if test x$host_vendor = xsni; then
9748 case $host in
9749 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9750 export_dynamic_flag_spec='${wl}-Blargedynsym'
9751 ;;
9752 esac
9753 fi
9754 fi
9755
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9757$as_echo "$ld_shlibs" >&6; }
9758test "$ld_shlibs" = no && can_build_shared=no
9759
9760with_gnu_ld=$with_gnu_ld
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776#
9777# Do we need to explicitly link libc?
9778#
9779case "x$archive_cmds_need_lc" in
9780x|xyes)
9781 # Assume -lc should be added
9782 archive_cmds_need_lc=yes
9783
9784 if test "$enable_shared" = yes && test "$GCC" = yes; then
9785 case $archive_cmds in
9786 *'~'*)
9787 # FIXME: we may have to deal with multi-command sequences.
9788 ;;
9789 '$CC '*)
9790 # Test whether the compiler implicitly links with -lc since on some
9791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9792 # to ld, don't add -lc before -lgcc.
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9794$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9795if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797else
9798 $RM conftest*
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800
9801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802 (eval $ac_compile) 2>&5
9803 ac_status=$?
9804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805 test $ac_status = 0; } 2>conftest.err; then
9806 soname=conftest
9807 lib=conftest
9808 libobjs=conftest.$ac_objext
9809 deplibs=
9810 wl=$lt_prog_compiler_wl
9811 pic_flag=$lt_prog_compiler_pic
9812 compiler_flags=-v
9813 linker_flags=-v
9814 verstring=
9815 output_objdir=.
9816 libname=conftest
9817 lt_save_allow_undefined_flag=$allow_undefined_flag
9818 allow_undefined_flag=
9819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9821 ac_status=$?
9822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9823 test $ac_status = 0; }
9824 then
9825 lt_cv_archive_cmds_need_lc=no
9826 else
9827 lt_cv_archive_cmds_need_lc=yes
9828 fi
9829 allow_undefined_flag=$lt_save_allow_undefined_flag
9830 else
9831 cat conftest.err 1>&5
9832 fi
9833 $RM conftest*
9834
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9837$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9838 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9839 ;;
9840 esac
9841 fi
9842 ;;
9843esac
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
9998
9999
10000
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10002$as_echo_n "checking dynamic linker characteristics... " >&6; }
10003
10004if test "$GCC" = yes; then
10005 case $host_os in
10006 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10007 *) lt_awk_arg="/^libraries:/" ;;
10008 esac
10009 case $host_os in
10010 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10011 *) lt_sed_strip_eq="s,=/,/,g" ;;
10012 esac
10013 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10014 case $lt_search_path_spec in
10015 *\;*)
10016 # if the path contains ";" then we assume it to be the separator
10017 # otherwise default to the standard path separator (i.e. ":") - it is
10018 # assumed that no part of a normal pathname contains ";" but that should
10019 # okay in the real world where ";" in dirpaths is itself problematic.
10020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10021 ;;
10022 *)
10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10024 ;;
10025 esac
10026 # Ok, now we have the path, separated by spaces, we can step through it
10027 # and add multilib dir if necessary.
10028 lt_tmp_lt_search_path_spec=
10029 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10030 for lt_sys_path in $lt_search_path_spec; do
10031 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10033 else
10034 test -d "$lt_sys_path" && \
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10036 fi
10037 done
10038 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10039BEGIN {RS=" "; FS="/|\n";} {
10040 lt_foo="";
10041 lt_count=0;
10042 for (lt_i = NF; lt_i > 0; lt_i--) {
10043 if ($lt_i != "" && $lt_i != ".") {
10044 if ($lt_i == "..") {
10045 lt_count++;
10046 } else {
10047 if (lt_count == 0) {
10048 lt_foo="/" $lt_i lt_foo;
10049 } else {
10050 lt_count--;
10051 }
10052 }
10053 }
10054 }
10055 if (lt_foo != "") { lt_freq[lt_foo]++; }
10056 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10057}'`
10058 # AWK program above erroneously prepends '/' to C:/dos/paths
10059 # for these hosts.
10060 case $host_os in
10061 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10062 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10063 esac
10064 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10065else
10066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10067fi
10068library_names_spec=
10069libname_spec='lib$name'
10070soname_spec=
10071shrext_cmds=".so"
10072postinstall_cmds=
10073postuninstall_cmds=
10074finish_cmds=
10075finish_eval=
10076shlibpath_var=
10077shlibpath_overrides_runpath=unknown
10078version_type=none
10079dynamic_linker="$host_os ld.so"
10080sys_lib_dlsearch_path_spec="/lib /usr/lib"
10081need_lib_prefix=unknown
10082hardcode_into_libs=no
10083
10084# when you set need_version to no, make sure it does not cause -set_version
10085# flags to be left without arguments
10086need_version=unknown
10087
10088case $host_os in
10089aix3*)
10090 version_type=linux
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10092 shlibpath_var=LIBPATH
10093
10094 # AIX 3 has no versioning support, so we append a major version to the name.
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 ;;
10097
10098aix[4-9]*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 hardcode_into_libs=yes
10103 if test "$host_cpu" = ia64; then
10104 # AIX 5 supports IA64
10105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10106 shlibpath_var=LD_LIBRARY_PATH
10107 else
10108 # With GCC up to 2.95.x, collect2 would create an import file
10109 # for dependence libraries. The import file would start with
10110 # the line `#! .'. This would cause the generated library to
10111 # depend on `.', always an invalid library. This was fixed in
10112 # development snapshots of GCC prior to 3.0.
10113 case $host_os in
10114 aix4 | aix4.[01] | aix4.[01].*)
10115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10116 echo ' yes '
10117 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10118 :
10119 else
10120 can_build_shared=no
10121 fi
10122 ;;
10123 esac
10124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10125 # soname into executable. Probably we can add versioning support to
10126 # collect2, so additional links can be useful in future.
10127 if test "$aix_use_runtimelinking" = yes; then
10128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10129 # instead of lib<name>.a to let people know that these are not
10130 # typical AIX shared libraries.
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 else
10133 # We preserve .a as extension for shared libraries through AIX4.2
10134 # and later when we are not doing run time linking.
10135 library_names_spec='${libname}${release}.a $libname.a'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 fi
10138 shlibpath_var=LIBPATH
10139 fi
10140 ;;
10141
10142amigaos*)
10143 case $host_cpu in
10144 powerpc)
10145 # Since July 2007 AmigaOS4 officially supports .so libraries.
10146 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 ;;
10149 m68k)
10150 library_names_spec='$libname.ixlibrary $libname.a'
10151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10152 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'
10153 ;;
10154 esac
10155 ;;
10156
10157beos*)
10158 library_names_spec='${libname}${shared_ext}'
10159 dynamic_linker="$host_os ld.so"
10160 shlibpath_var=LIBRARY_PATH
10161 ;;
10162
10163bsdi[45]*)
10164 version_type=linux
10165 need_version=no
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10172 # the default ld.so.conf also contains /usr/contrib/lib and
10173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10174 # libtool to hard-code these into programs
10175 ;;
10176
10177cygwin* | mingw* | pw32* | cegcc*)
10178 version_type=windows
10179 shrext_cmds=".dll"
10180 need_version=no
10181 need_lib_prefix=no
10182
10183 case $GCC,$host_os in
10184 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10185 library_names_spec='$libname.dll.a'
10186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10187 postinstall_cmds='base_file=`basename \${file}`~
10188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10189 dldir=$destdir/`dirname \$dlpath`~
10190 test -d \$dldir || mkdir -p \$dldir~
10191 $install_prog $dir/$dlname \$dldir/$dlname~
10192 chmod a+x \$dldir/$dlname~
10193 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10194 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10195 fi'
10196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10197 dlpath=$dir/\$dldll~
10198 $RM \$dlpath'
10199 shlibpath_overrides_runpath=yes
10200
10201 case $host_os in
10202 cygwin*)
10203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205
10206 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10207 ;;
10208 mingw* | cegcc*)
10209 # MinGW DLLs use traditional 'lib' prefix
10210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 ;;
10212 pw32*)
10213 # pw32 DLLs use 'pw' prefix rather than 'lib'
10214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215 ;;
10216 esac
10217 ;;
10218
10219 *)
10220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10221 ;;
10222 esac
10223 dynamic_linker='Win32 ld.exe'
10224 # FIXME: first we should search . and the directory the executable is in
10225 shlibpath_var=PATH
10226 ;;
10227
10228darwin* | rhapsody*)
10229 dynamic_linker="$host_os dyld"
10230 version_type=darwin
10231 need_lib_prefix=no
10232 need_version=no
10233 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10234 soname_spec='${libname}${release}${major}$shared_ext'
10235 shlibpath_overrides_runpath=yes
10236 shlibpath_var=DYLD_LIBRARY_PATH
10237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10238
10239 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10241 ;;
10242
10243dgux*)
10244 version_type=linux
10245 need_lib_prefix=no
10246 need_version=no
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 ;;
10251
10252freebsd* | dragonfly*)
10253 # DragonFly does not have aout. When/if they implement a new
10254 # versioning mechanism, adjust this.
10255 if test -x /usr/bin/objformat; then
10256 objformat=`/usr/bin/objformat`
10257 else
10258 case $host_os in
10259 freebsd[23].*) objformat=aout ;;
10260 *) objformat=elf ;;
10261 esac
10262 fi
10263 version_type=freebsd-$objformat
10264 case $version_type in
10265 freebsd-elf*)
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10267 need_version=no
10268 need_lib_prefix=no
10269 ;;
10270 freebsd-*)
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10272 need_version=yes
10273 ;;
10274 esac
10275 shlibpath_var=LD_LIBRARY_PATH
10276 case $host_os in
10277 freebsd2.*)
10278 shlibpath_overrides_runpath=yes
10279 ;;
10280 freebsd3.[01]* | freebsdelf3.[01]*)
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10283 ;;
10284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10286 shlibpath_overrides_runpath=no
10287 hardcode_into_libs=yes
10288 ;;
10289 *) # from 4.6 on, and DragonFly
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 ;;
10293 esac
10294 ;;
10295
10296gnu*)
10297 version_type=linux
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 hardcode_into_libs=yes
10304 ;;
10305
10306haiku*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 dynamic_linker="$host_os runtime_loader"
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10316 hardcode_into_libs=yes
10317 ;;
10318
10319hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 case $host_cpu in
10326 ia64*)
10327 shrext_cmds='.so'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10336 else
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10338 fi
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10340 ;;
10341 hppa*64*)
10342 shrext_cmds='.sl'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 ;;
10352 *)
10353 shrext_cmds='.sl'
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 ;;
10360 esac
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10362 postinstall_cmds='chmod 555 $lib'
10363 # or fails outright, so override atomically:
10364 install_override_mode=555
10365 ;;
10366
10367interix[3-9]*)
10368 version_type=linux
10369 need_lib_prefix=no
10370 need_version=no
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 shlibpath_overrides_runpath=no
10376 hardcode_into_libs=yes
10377 ;;
10378
10379irix5* | irix6* | nonstopux*)
10380 case $host_os in
10381 nonstopux*) version_type=nonstopux ;;
10382 *)
10383 if test "$lt_cv_prog_gnu_ld" = yes; then
10384 version_type=linux
10385 else
10386 version_type=irix
10387 fi ;;
10388 esac
10389 need_lib_prefix=no
10390 need_version=no
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10393 case $host_os in
10394 irix5* | nonstopux*)
10395 libsuff= shlibsuff=
10396 ;;
10397 *)
10398 case $LD in # libtool.m4 will add one of these switches to LD
10399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10400 libsuff= shlibsuff= libmagic=32-bit;;
10401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10402 libsuff=32 shlibsuff=N32 libmagic=N32;;
10403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10404 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10405 *) libsuff= shlibsuff= libmagic=never-match;;
10406 esac
10407 ;;
10408 esac
10409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10410 shlibpath_overrides_runpath=no
10411 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10412 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10413 hardcode_into_libs=yes
10414 ;;
10415
10416# No shared lib support for Linux oldld, aout, or coff.
10417linux*oldld* | linux*aout* | linux*coff*)
10418 dynamic_linker=no
10419 ;;
10420
10421# This must be Linux ELF.
10422linux* | k*bsd*-gnu | kopensolaris*-gnu)
10423 version_type=linux
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431
10432 # Some binutils ld are patched to set DT_RUNPATH
10433 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10434 $as_echo_n "(cached) " >&6
10435else
10436 lt_cv_shlibpath_overrides_runpath=no
10437 save_LDFLAGS=$LDFLAGS
10438 save_libdir=$libdir
10439 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10440 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442/* end confdefs.h. */
10443
10444int
10445main ()
10446{
10447
10448 ;
10449 return 0;
10450}
10451_ACEOF
10452if ac_fn_c_try_link "$LINENO"; then :
10453 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10454 lt_cv_shlibpath_overrides_runpath=yes
10455fi
10456fi
10457rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LDFLAGS=$save_LDFLAGS
10460 libdir=$save_libdir
10461
10462fi
10463
10464 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10465
10466 # This implies no fast_install, which is unacceptable.
10467 # Some rework will be needed to allow for fast_install
10468 # before this can be enabled.
10469 hardcode_into_libs=yes
10470
10471 # Append ld.so.conf contents to the search path
10472 if test -f /etc/ld.so.conf; then
10473 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' ' '`
10474 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10475 fi
10476
10477 # We used to test for /lib/ld.so.1 and disable shared libraries on
10478 # powerpc, because MkLinux only supported shared libraries with the
10479 # GNU dynamic linker. Since this was broken with cross compilers,
10480 # most powerpc-linux boxes support dynamic linking these days and
10481 # people can always --disable-shared, the test was removed, and we
10482 # assume the GNU/Linux dynamic linker is in use.
10483 dynamic_linker='GNU/Linux ld.so'
10484 ;;
10485
10486netbsd*)
10487 version_type=sunos
10488 need_lib_prefix=no
10489 need_version=no
10490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10493 dynamic_linker='NetBSD (a.out) ld.so'
10494 else
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 dynamic_linker='NetBSD ld.elf_so'
10498 fi
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10501 hardcode_into_libs=yes
10502 ;;
10503
10504newsos6)
10505 version_type=linux
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 shlibpath_overrides_runpath=yes
10509 ;;
10510
10511*nto* | *qnx*)
10512 version_type=qnx
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=no
10519 hardcode_into_libs=yes
10520 dynamic_linker='ldqnx.so'
10521 ;;
10522
10523openbsd*)
10524 version_type=sunos
10525 sys_lib_dlsearch_path_spec="/usr/lib"
10526 need_lib_prefix=no
10527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10528 case $host_os in
10529 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10530 *) need_version=no ;;
10531 esac
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10536 case $host_os in
10537 openbsd2.[89] | openbsd2.[89].*)
10538 shlibpath_overrides_runpath=no
10539 ;;
10540 *)
10541 shlibpath_overrides_runpath=yes
10542 ;;
10543 esac
10544 else
10545 shlibpath_overrides_runpath=yes
10546 fi
10547 ;;
10548
10549os2*)
10550 libname_spec='$name'
10551 shrext_cmds=".dll"
10552 need_lib_prefix=no
10553 library_names_spec='$libname${shared_ext} $libname.a'
10554 dynamic_linker='OS/2 ld.exe'
10555 shlibpath_var=LIBPATH
10556 ;;
10557
10558osf3* | osf4* | osf5*)
10559 version_type=osf
10560 need_lib_prefix=no
10561 need_version=no
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10567 ;;
10568
10569rdos*)
10570 dynamic_linker=no
10571 ;;
10572
10573solaris*)
10574 version_type=linux
10575 need_lib_prefix=no
10576 need_version=no
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=yes
10581 hardcode_into_libs=yes
10582 # ldd complains unless libraries are executable
10583 postinstall_cmds='chmod +x $lib'
10584 ;;
10585
10586sunos4*)
10587 version_type=sunos
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10592 if test "$with_gnu_ld" = yes; then
10593 need_lib_prefix=no
10594 fi
10595 need_version=yes
10596 ;;
10597
10598sysv4 | sysv4.3*)
10599 version_type=linux
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 case $host_vendor in
10604 sni)
10605 shlibpath_overrides_runpath=no
10606 need_lib_prefix=no
10607 runpath_var=LD_RUN_PATH
10608 ;;
10609 siemens)
10610 need_lib_prefix=no
10611 ;;
10612 motorola)
10613 need_lib_prefix=no
10614 need_version=no
10615 shlibpath_overrides_runpath=no
10616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10617 ;;
10618 esac
10619 ;;
10620
10621sysv4*MP*)
10622 if test -d /usr/nec ;then
10623 version_type=linux
10624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10625 soname_spec='$libname${shared_ext}.$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 fi
10628 ;;
10629
10630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10631 version_type=freebsd-elf
10632 need_lib_prefix=no
10633 need_version=no
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10638 hardcode_into_libs=yes
10639 if test "$with_gnu_ld" = yes; then
10640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10641 else
10642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10643 case $host_os in
10644 sco3.2v5*)
10645 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10646 ;;
10647 esac
10648 fi
10649 sys_lib_dlsearch_path_spec='/usr/lib'
10650 ;;
10651
10652tpf*)
10653 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10654 version_type=linux
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10661 ;;
10662
10663uts4*)
10664 version_type=linux
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 ;;
10669
10670*)
10671 dynamic_linker=no
10672 ;;
10673esac
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10675$as_echo "$dynamic_linker" >&6; }
10676test "$dynamic_linker" = no && can_build_shared=no
10677
10678variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10679if test "$GCC" = yes; then
10680 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10681fi
10682
10683if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10684 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10685fi
10686if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10687 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10688fi
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
10778
10779
10780
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10782$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10783hardcode_action=
10784if test -n "$hardcode_libdir_flag_spec" ||
10785 test -n "$runpath_var" ||
10786 test "X$hardcode_automatic" = "Xyes" ; then
10787
10788 # We can hardcode non-existent directories.
10789 if test "$hardcode_direct" != no &&
10790 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10791 # have to relink, otherwise we might link with an installed library
10792 # when we should be linking with a yet-to-be-installed one
10793 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10794 test "$hardcode_minus_L" != no; then
10795 # Linking always hardcodes the temporary library directory.
10796 hardcode_action=relink
10797 else
10798 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10799 hardcode_action=immediate
10800 fi
10801else
10802 # We cannot hardcode anything, or else we can only hardcode existing
10803 # directories.
10804 hardcode_action=unsupported
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10807$as_echo "$hardcode_action" >&6; }
10808
10809if test "$hardcode_action" = relink ||
10810 test "$inherit_rpath" = yes; then
10811 # Fast installation is not supported
10812 enable_fast_install=no
10813elif test "$shlibpath_overrides_runpath" = yes ||
10814 test "$enable_shared" = no; then
10815 # Fast installation is not necessary
10816 enable_fast_install=needless
10817fi
10818
10819
10820
10821
10822
10823
10824 if test "x$enable_dlopen" != xyes; then
10825 enable_dlopen=unknown
10826 enable_dlopen_self=unknown
10827 enable_dlopen_self_static=unknown
10828else
10829 lt_cv_dlopen=no
10830 lt_cv_dlopen_libs=
10831
10832 case $host_os in
10833 beos*)
10834 lt_cv_dlopen="load_add_on"
10835 lt_cv_dlopen_libs=
10836 lt_cv_dlopen_self=yes
10837 ;;
10838
10839 mingw* | pw32* | cegcc*)
10840 lt_cv_dlopen="LoadLibrary"
10841 lt_cv_dlopen_libs=
10842 ;;
10843
10844 cygwin*)
10845 lt_cv_dlopen="dlopen"
10846 lt_cv_dlopen_libs=
10847 ;;
10848
10849 darwin*)
10850 # if libdl is installed we need to link against it
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10852$as_echo_n "checking for dlopen in -ldl... " >&6; }
10853if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855else
10856 ac_check_lib_save_LIBS=$LIBS
10857LIBS="-ldl $LIBS"
10858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h. */
10860
10861/* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864#ifdef __cplusplus
10865extern "C"
10866#endif
10867char dlopen ();
10868int
10869main ()
10870{
10871return dlopen ();
10872 ;
10873 return 0;
10874}
10875_ACEOF
10876if ac_fn_c_try_link "$LINENO"; then :
10877 ac_cv_lib_dl_dlopen=yes
10878else
10879 ac_cv_lib_dl_dlopen=no
10880fi
10881rm -f core conftest.err conftest.$ac_objext \
10882 conftest$ac_exeext conftest.$ac_ext
10883LIBS=$ac_check_lib_save_LIBS
10884fi
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10886$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10887if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10889else
10890
10891 lt_cv_dlopen="dyld"
10892 lt_cv_dlopen_libs=
10893 lt_cv_dlopen_self=yes
10894
10895fi
10896
10897 ;;
10898
10899 *)
10900 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10901if test "x$ac_cv_func_shl_load" = x""yes; then :
10902 lt_cv_dlopen="shl_load"
10903else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10905$as_echo_n "checking for shl_load in -ldld... " >&6; }
10906if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
10908else
10909 ac_check_lib_save_LIBS=$LIBS
10910LIBS="-ldld $LIBS"
10911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912/* end confdefs.h. */
10913
10914/* Override any GCC internal prototype to avoid an error.
10915 Use char because int might match the return type of a GCC
10916 builtin and then its argument prototype would still apply. */
10917#ifdef __cplusplus
10918extern "C"
10919#endif
10920char shl_load ();
10921int
10922main ()
10923{
10924return shl_load ();
10925 ;
10926 return 0;
10927}
10928_ACEOF
10929if ac_fn_c_try_link "$LINENO"; then :
10930 ac_cv_lib_dld_shl_load=yes
10931else
10932 ac_cv_lib_dld_shl_load=no
10933fi
10934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10936LIBS=$ac_check_lib_save_LIBS
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10939$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10940if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10942else
10943 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10944if test "x$ac_cv_func_dlopen" = x""yes; then :
10945 lt_cv_dlopen="dlopen"
10946else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10948$as_echo_n "checking for dlopen in -ldl... " >&6; }
10949if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10951else
10952 ac_check_lib_save_LIBS=$LIBS
10953LIBS="-ldl $LIBS"
10954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955/* end confdefs.h. */
10956
10957/* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960#ifdef __cplusplus
10961extern "C"
10962#endif
10963char dlopen ();
10964int
10965main ()
10966{
10967return dlopen ();
10968 ;
10969 return 0;
10970}
10971_ACEOF
10972if ac_fn_c_try_link "$LINENO"; then :
10973 ac_cv_lib_dl_dlopen=yes
10974else
10975 ac_cv_lib_dl_dlopen=no
10976fi
10977rm -f core conftest.err conftest.$ac_objext \
10978 conftest$ac_exeext conftest.$ac_ext
10979LIBS=$ac_check_lib_save_LIBS
10980fi
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10982$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10983if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10985else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10987$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10988if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990else
10991 ac_check_lib_save_LIBS=$LIBS
10992LIBS="-lsvld $LIBS"
10993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994/* end confdefs.h. */
10995
10996/* Override any GCC internal prototype to avoid an error.
10997 Use char because int might match the return type of a GCC
10998 builtin and then its argument prototype would still apply. */
10999#ifdef __cplusplus
11000extern "C"
11001#endif
11002char dlopen ();
11003int
11004main ()
11005{
11006return dlopen ();
11007 ;
11008 return 0;
11009}
11010_ACEOF
11011if ac_fn_c_try_link "$LINENO"; then :
11012 ac_cv_lib_svld_dlopen=yes
11013else
11014 ac_cv_lib_svld_dlopen=no
11015fi
11016rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018LIBS=$ac_check_lib_save_LIBS
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11021$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11022if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11024else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11026$as_echo_n "checking for dld_link in -ldld... " >&6; }
11027if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029else
11030 ac_check_lib_save_LIBS=$LIBS
11031LIBS="-ldld $LIBS"
11032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h. */
11034
11035/* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041char dld_link ();
11042int
11043main ()
11044{
11045return dld_link ();
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050if ac_fn_c_try_link "$LINENO"; then :
11051 ac_cv_lib_dld_dld_link=yes
11052else
11053 ac_cv_lib_dld_dld_link=no
11054fi
11055rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057LIBS=$ac_check_lib_save_LIBS
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11060$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11061if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11062 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11063fi
11064
11065
11066fi
11067
11068
11069fi
11070
11071
11072fi
11073
11074
11075fi
11076
11077
11078fi
11079
11080 ;;
11081 esac
11082
11083 if test "x$lt_cv_dlopen" != xno; then
11084 enable_dlopen=yes
11085 else
11086 enable_dlopen=no
11087 fi
11088
11089 case $lt_cv_dlopen in
11090 dlopen)
11091 save_CPPFLAGS="$CPPFLAGS"
11092 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11093
11094 save_LDFLAGS="$LDFLAGS"
11095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11096
11097 save_LIBS="$LIBS"
11098 LIBS="$lt_cv_dlopen_libs $LIBS"
11099
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11101$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11102if test "${lt_cv_dlopen_self+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104else
11105 if test "$cross_compiling" = yes; then :
11106 lt_cv_dlopen_self=cross
11107else
11108 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11109 lt_status=$lt_dlunknown
11110 cat > conftest.$ac_ext <<_LT_EOF
Jakub Jelinek3c36aa62017-01-17 10:38:48 +010011111#line 11111 "configure"
Kirill Yukhin5f520812014-11-13 14:03:17 +000011112#include "confdefs.h"
11113
11114#if HAVE_DLFCN_H
11115#include <dlfcn.h>
11116#endif
11117
11118#include <stdio.h>
11119
11120#ifdef RTLD_GLOBAL
11121# define LT_DLGLOBAL RTLD_GLOBAL
11122#else
11123# ifdef DL_GLOBAL
11124# define LT_DLGLOBAL DL_GLOBAL
11125# else
11126# define LT_DLGLOBAL 0
11127# endif
11128#endif
11129
11130/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11131 find out it does not work in some platform. */
11132#ifndef LT_DLLAZY_OR_NOW
11133# ifdef RTLD_LAZY
11134# define LT_DLLAZY_OR_NOW RTLD_LAZY
11135# else
11136# ifdef DL_LAZY
11137# define LT_DLLAZY_OR_NOW DL_LAZY
11138# else
11139# ifdef RTLD_NOW
11140# define LT_DLLAZY_OR_NOW RTLD_NOW
11141# else
11142# ifdef DL_NOW
11143# define LT_DLLAZY_OR_NOW DL_NOW
11144# else
11145# define LT_DLLAZY_OR_NOW 0
11146# endif
11147# endif
11148# endif
11149# endif
11150#endif
11151
11152/* When -fvisbility=hidden is used, assume the code has been annotated
11153 correspondingly for the symbols needed. */
11154#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11155void fnord () __attribute__((visibility("default")));
11156#endif
11157
11158void fnord () { int i=42; }
11159int main ()
11160{
11161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11162 int status = $lt_dlunknown;
11163
11164 if (self)
11165 {
11166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11167 else
11168 {
11169 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11170 else puts (dlerror ());
11171 }
11172 /* dlclose (self); */
11173 }
11174 else
11175 puts (dlerror ());
11176
11177 return status;
11178}
11179_LT_EOF
11180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11181 (eval $ac_link) 2>&5
11182 ac_status=$?
11183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11185 (./conftest; exit; ) >&5 2>/dev/null
11186 lt_status=$?
11187 case x$lt_status in
11188 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11189 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11190 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11191 esac
11192 else :
11193 # compilation failed
11194 lt_cv_dlopen_self=no
11195 fi
11196fi
11197rm -fr conftest*
11198
11199
11200fi
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11202$as_echo "$lt_cv_dlopen_self" >&6; }
11203
11204 if test "x$lt_cv_dlopen_self" = xyes; then
11205 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11207$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11208if test "${lt_cv_dlopen_self_static+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210else
11211 if test "$cross_compiling" = yes; then :
11212 lt_cv_dlopen_self_static=cross
11213else
11214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11215 lt_status=$lt_dlunknown
11216 cat > conftest.$ac_ext <<_LT_EOF
Jakub Jelinek3c36aa62017-01-17 10:38:48 +010011217#line 11217 "configure"
Kirill Yukhin5f520812014-11-13 14:03:17 +000011218#include "confdefs.h"
11219
11220#if HAVE_DLFCN_H
11221#include <dlfcn.h>
11222#endif
11223
11224#include <stdio.h>
11225
11226#ifdef RTLD_GLOBAL
11227# define LT_DLGLOBAL RTLD_GLOBAL
11228#else
11229# ifdef DL_GLOBAL
11230# define LT_DLGLOBAL DL_GLOBAL
11231# else
11232# define LT_DLGLOBAL 0
11233# endif
11234#endif
11235
11236/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11237 find out it does not work in some platform. */
11238#ifndef LT_DLLAZY_OR_NOW
11239# ifdef RTLD_LAZY
11240# define LT_DLLAZY_OR_NOW RTLD_LAZY
11241# else
11242# ifdef DL_LAZY
11243# define LT_DLLAZY_OR_NOW DL_LAZY
11244# else
11245# ifdef RTLD_NOW
11246# define LT_DLLAZY_OR_NOW RTLD_NOW
11247# else
11248# ifdef DL_NOW
11249# define LT_DLLAZY_OR_NOW DL_NOW
11250# else
11251# define LT_DLLAZY_OR_NOW 0
11252# endif
11253# endif
11254# endif
11255# endif
11256#endif
11257
11258/* When -fvisbility=hidden is used, assume the code has been annotated
11259 correspondingly for the symbols needed. */
11260#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11261void fnord () __attribute__((visibility("default")));
11262#endif
11263
11264void fnord () { int i=42; }
11265int main ()
11266{
11267 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11268 int status = $lt_dlunknown;
11269
11270 if (self)
11271 {
11272 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11273 else
11274 {
11275 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11276 else puts (dlerror ());
11277 }
11278 /* dlclose (self); */
11279 }
11280 else
11281 puts (dlerror ());
11282
11283 return status;
11284}
11285_LT_EOF
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11291 (./conftest; exit; ) >&5 2>/dev/null
11292 lt_status=$?
11293 case x$lt_status in
11294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11297 esac
11298 else :
11299 # compilation failed
11300 lt_cv_dlopen_self_static=no
11301 fi
11302fi
11303rm -fr conftest*
11304
11305
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11308$as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 fi
11310
11311 CPPFLAGS="$save_CPPFLAGS"
11312 LDFLAGS="$save_LDFLAGS"
11313 LIBS="$save_LIBS"
11314 ;;
11315 esac
11316
11317 case $lt_cv_dlopen_self in
11318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11319 *) enable_dlopen_self=unknown ;;
11320 esac
11321
11322 case $lt_cv_dlopen_self_static in
11323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11324 *) enable_dlopen_self_static=unknown ;;
11325 esac
11326fi
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344striplib=
11345old_striplib=
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11347$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11348if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11350 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11352$as_echo "yes" >&6; }
11353else
11354# FIXME - insert some real tests, host_os isn't really good enough
11355 case $host_os in
11356 darwin*)
11357 if test -n "$STRIP" ; then
11358 striplib="$STRIP -x"
11359 old_striplib="$STRIP -S"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361$as_echo "yes" >&6; }
11362 else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
11365 fi
11366 ;;
11367 *)
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
11370 ;;
11371 esac
11372fi
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 # Report which library types will actually be built
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11387$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11389$as_echo "$can_build_shared" >&6; }
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11392$as_echo_n "checking whether to build shared libraries... " >&6; }
11393 test "$can_build_shared" = "no" && enable_shared=no
11394
11395 # On AIX, shared libraries and static libraries use the same namespace, and
11396 # are all built from PIC.
11397 case $host_os in
11398 aix3*)
11399 test "$enable_shared" = yes && enable_static=no
11400 if test -n "$RANLIB"; then
11401 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11402 postinstall_cmds='$RANLIB $lib'
11403 fi
11404 ;;
11405
11406 aix[4-9]*)
11407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11408 test "$enable_shared" = yes && enable_static=no
11409 fi
11410 ;;
11411 esac
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11413$as_echo "$enable_shared" >&6; }
11414
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11416$as_echo_n "checking whether to build static libraries... " >&6; }
11417 # Make sure either enable_shared or enable_static is yes.
11418 test "$enable_shared" = yes || enable_static=yes
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11420$as_echo "$enable_static" >&6; }
11421
11422
11423
11424
11425fi
11426ac_ext=c
11427ac_cpp='$CPP $CPPFLAGS'
11428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431
11432CC="$lt_save_CC"
11433
11434 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11435 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11436 (test "X$CXX" != "Xg++"))) ; then
11437 ac_ext=cpp
11438ac_cpp='$CXXCPP $CPPFLAGS'
11439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11443$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11444if test -z "$CXXCPP"; then
11445 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447else
11448 # Double quotes because CXXCPP needs to be expanded
11449 for CXXCPP in "$CXX -E" "/lib/cpp"
11450 do
11451 ac_preproc_ok=false
11452for ac_cxx_preproc_warn_flag in '' yes
11453do
11454 # Use a header file that comes with gcc, so configuring glibc
11455 # with a fresh cross-compiler works.
11456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 # <limits.h> exists even on freestanding compilers.
11458 # On the NeXT, cc -E runs the code through the compiler's parser,
11459 # not just through cpp. "Syntax error" is here to catch this case.
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h. */
11462#ifdef __STDC__
11463# include <limits.h>
11464#else
11465# include <assert.h>
11466#endif
11467 Syntax error
11468_ACEOF
11469if ac_fn_cxx_try_cpp "$LINENO"; then :
11470
11471else
11472 # Broken: fails on valid input.
11473continue
11474fi
11475rm -f conftest.err conftest.$ac_ext
11476
11477 # OK, works on sane cases. Now check whether nonexistent headers
11478 # can be detected and how.
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480/* end confdefs.h. */
11481#include <ac_nonexistent.h>
11482_ACEOF
11483if ac_fn_cxx_try_cpp "$LINENO"; then :
11484 # Broken: success on invalid input.
11485continue
11486else
11487 # Passes both tests.
11488ac_preproc_ok=:
11489break
11490fi
11491rm -f conftest.err conftest.$ac_ext
11492
11493done
11494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11495rm -f conftest.err conftest.$ac_ext
11496if $ac_preproc_ok; then :
11497 break
11498fi
11499
11500 done
11501 ac_cv_prog_CXXCPP=$CXXCPP
11502
11503fi
11504 CXXCPP=$ac_cv_prog_CXXCPP
11505else
11506 ac_cv_prog_CXXCPP=$CXXCPP
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11509$as_echo "$CXXCPP" >&6; }
11510ac_preproc_ok=false
11511for ac_cxx_preproc_warn_flag in '' yes
11512do
11513 # Use a header file that comes with gcc, so configuring glibc
11514 # with a fresh cross-compiler works.
11515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 # <limits.h> exists even on freestanding compilers.
11517 # On the NeXT, cc -E runs the code through the compiler's parser,
11518 # not just through cpp. "Syntax error" is here to catch this case.
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520/* end confdefs.h. */
11521#ifdef __STDC__
11522# include <limits.h>
11523#else
11524# include <assert.h>
11525#endif
11526 Syntax error
11527_ACEOF
11528if ac_fn_cxx_try_cpp "$LINENO"; then :
11529
11530else
11531 # Broken: fails on valid input.
11532continue
11533fi
11534rm -f conftest.err conftest.$ac_ext
11535
11536 # OK, works on sane cases. Now check whether nonexistent headers
11537 # can be detected and how.
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539/* end confdefs.h. */
11540#include <ac_nonexistent.h>
11541_ACEOF
11542if ac_fn_cxx_try_cpp "$LINENO"; then :
11543 # Broken: success on invalid input.
11544continue
11545else
11546 # Passes both tests.
11547ac_preproc_ok=:
11548break
11549fi
11550rm -f conftest.err conftest.$ac_ext
11551
11552done
11553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11554rm -f conftest.err conftest.$ac_ext
11555if $ac_preproc_ok; then :
11556
11557else
11558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11560as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11561See \`config.log' for more details." "$LINENO" 5; }
11562fi
11563
11564ac_ext=c
11565ac_cpp='$CPP $CPPFLAGS'
11566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11568ac_compiler_gnu=$ac_cv_c_compiler_gnu
11569
11570else
11571 _lt_caught_CXX_error=yes
11572fi
11573
11574ac_ext=cpp
11575ac_cpp='$CXXCPP $CPPFLAGS'
11576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11579
11580archive_cmds_need_lc_CXX=no
11581allow_undefined_flag_CXX=
11582always_export_symbols_CXX=no
11583archive_expsym_cmds_CXX=
11584compiler_needs_object_CXX=no
11585export_dynamic_flag_spec_CXX=
11586hardcode_direct_CXX=no
11587hardcode_direct_absolute_CXX=no
11588hardcode_libdir_flag_spec_CXX=
11589hardcode_libdir_flag_spec_ld_CXX=
11590hardcode_libdir_separator_CXX=
11591hardcode_minus_L_CXX=no
11592hardcode_shlibpath_var_CXX=unsupported
11593hardcode_automatic_CXX=no
11594inherit_rpath_CXX=no
11595module_cmds_CXX=
11596module_expsym_cmds_CXX=
11597link_all_deplibs_CXX=unknown
11598old_archive_cmds_CXX=$old_archive_cmds
11599reload_flag_CXX=$reload_flag
11600reload_cmds_CXX=$reload_cmds
11601no_undefined_flag_CXX=
11602whole_archive_flag_spec_CXX=
11603enable_shared_with_static_runtimes_CXX=no
11604
11605# Source file extension for C++ test sources.
11606ac_ext=cpp
11607
11608# Object file extension for compiled C++ test sources.
11609objext=o
11610objext_CXX=$objext
11611
11612# No sense in running all these tests if we already determined that
11613# the CXX compiler isn't working. Some variables (like enable_shared)
11614# are currently assumed to apply to all compilers on this platform,
11615# and will be corrupted by setting them based on a non-working compiler.
11616if test "$_lt_caught_CXX_error" != yes; then
11617 # Code to be used in simple compile tests
11618 lt_simple_compile_test_code="int some_variable = 0;"
11619
11620 # Code to be used in simple link tests
11621 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11622
11623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11624
11625
11626
11627
11628
11629
11630# If no C compiler was specified, use CC.
11631LTCC=${LTCC-"$CC"}
11632
11633# If no C compiler flags were specified, use CFLAGS.
11634LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11635
11636# Allow CC to be a program name with arguments.
11637compiler=$CC
11638
11639
11640 # save warnings/boilerplate of simple test code
11641 ac_outfile=conftest.$ac_objext
11642echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11644_lt_compiler_boilerplate=`cat conftest.err`
11645$RM conftest*
11646
11647 ac_outfile=conftest.$ac_objext
11648echo "$lt_simple_link_test_code" >conftest.$ac_ext
11649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11650_lt_linker_boilerplate=`cat conftest.err`
11651$RM -r conftest*
11652
11653
11654 # Allow CC to be a program name with arguments.
11655 lt_save_CC=$CC
11656 lt_save_LD=$LD
11657 lt_save_GCC=$GCC
11658 GCC=$GXX
11659 lt_save_with_gnu_ld=$with_gnu_ld
11660 lt_save_path_LD=$lt_cv_path_LD
11661 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11662 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11663 else
11664 $as_unset lt_cv_prog_gnu_ld
11665 fi
11666 if test -n "${lt_cv_path_LDCXX+set}"; then
11667 lt_cv_path_LD=$lt_cv_path_LDCXX
11668 else
11669 $as_unset lt_cv_path_LD
11670 fi
11671 test -z "${LDCXX+set}" || LD=$LDCXX
11672 CC=${CXX-"c++"}
11673 compiler=$CC
11674 compiler_CXX=$CC
11675 for cc_temp in $compiler""; do
11676 case $cc_temp in
11677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11679 \-*) ;;
11680 *) break;;
11681 esac
11682done
11683cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11684
11685
11686 if test -n "$compiler"; then
11687 # We don't want -fno-exception when compiling C++ code, so set the
11688 # no_builtin_flag separately
11689 if test "$GXX" = yes; then
11690 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11691 else
11692 lt_prog_compiler_no_builtin_flag_CXX=
11693 fi
11694
11695 if test "$GXX" = yes; then
11696 # Set up default GNU C++ configuration
11697
11698
11699
11700# Check whether --with-gnu-ld was given.
11701if test "${with_gnu_ld+set}" = set; then :
11702 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11703else
11704 with_gnu_ld=no
11705fi
11706
11707ac_prog=ld
11708if test "$GCC" = yes; then
11709 # Check if gcc -print-prog-name=ld gives a path.
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11711$as_echo_n "checking for ld used by $CC... " >&6; }
11712 case $host in
11713 *-*-mingw*)
11714 # gcc leaves a trailing carriage return which upsets mingw
11715 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11716 *)
11717 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11718 esac
11719 case $ac_prog in
11720 # Accept absolute paths.
11721 [\\/]* | ?:[\\/]*)
11722 re_direlt='/[^/][^/]*/\.\./'
11723 # Canonicalize the pathname of ld
11724 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11725 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11726 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11727 done
11728 test -z "$LD" && LD="$ac_prog"
11729 ;;
11730 "")
11731 # If it fails, then pretend we aren't using GCC.
11732 ac_prog=ld
11733 ;;
11734 *)
11735 # If it is relative, then search for the first ld in PATH.
11736 with_gnu_ld=unknown
11737 ;;
11738 esac
11739elif test "$with_gnu_ld" = yes; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11741$as_echo_n "checking for GNU ld... " >&6; }
11742else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11744$as_echo_n "checking for non-GNU ld... " >&6; }
11745fi
11746if test "${lt_cv_path_LD+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748else
11749 if test -z "$LD"; then
11750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11751 for ac_dir in $PATH; do
11752 IFS="$lt_save_ifs"
11753 test -z "$ac_dir" && ac_dir=.
11754 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11755 lt_cv_path_LD="$ac_dir/$ac_prog"
11756 # Check to see if the program is GNU ld. I'd rather use --version,
11757 # but apparently some variants of GNU ld only accept -v.
11758 # Break only if it was the GNU/non-GNU ld that we prefer.
11759 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11760 *GNU* | *'with BFD'*)
11761 test "$with_gnu_ld" != no && break
11762 ;;
11763 *)
11764 test "$with_gnu_ld" != yes && break
11765 ;;
11766 esac
11767 fi
11768 done
11769 IFS="$lt_save_ifs"
11770else
11771 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11772fi
11773fi
11774
11775LD="$lt_cv_path_LD"
11776if test -n "$LD"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11778$as_echo "$LD" >&6; }
11779else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
11782fi
11783test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11785$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11786if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788else
11789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11790case `$LD -v 2>&1 </dev/null` in
11791*GNU* | *'with BFD'*)
11792 lt_cv_prog_gnu_ld=yes
11793 ;;
11794*)
11795 lt_cv_prog_gnu_ld=no
11796 ;;
11797esac
11798fi
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11800$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11801with_gnu_ld=$lt_cv_prog_gnu_ld
11802
11803
11804
11805
11806
11807
11808
11809 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11810 # archiving commands below assume that GNU ld is being used.
11811 if test "$with_gnu_ld" = yes; then
Michael Haubenwallner735aacb2015-05-13 11:10:33 +000011812 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11813 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'
Kirill Yukhin5f520812014-11-13 14:03:17 +000011814
11815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11816 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11817
11818 # If archive_cmds runs LD, not CC, wlarc should be empty
11819 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11820 # investigate it a little bit more. (MM)
11821 wlarc='${wl}'
11822
11823 # ancient GNU ld didn't support --whole-archive et. al.
11824 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11825 $GREP 'no-whole-archive' > /dev/null; then
11826 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11827 else
11828 whole_archive_flag_spec_CXX=
11829 fi
11830 else
11831 with_gnu_ld=no
11832 wlarc=
11833
11834 # A generic and very simple default shared library creation
11835 # command for GNU C++ for the case where it uses the native
11836 # linker, instead of GNU ld. If possible, this setting should
11837 # overridden to take advantage of the native linker features on
11838 # the platform it is being used on.
11839 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11840 fi
11841
11842 # Commands to make compiler produce verbose output that lists
11843 # what "hidden" libraries, object files and flags are used when
11844 # linking a shared library.
11845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11846
11847 else
11848 GXX=no
11849 with_gnu_ld=no
11850 wlarc=
11851 fi
11852
11853 # PORTME: fill in a description of your system's C++ link characteristics
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11855$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11856 ld_shlibs_CXX=yes
11857 case $host_os in
11858 aix3*)
11859 # FIXME: insert proper C++ library support
11860 ld_shlibs_CXX=no
11861 ;;
11862 aix[4-9]*)
11863 if test "$host_cpu" = ia64; then
11864 # On IA64, the linker does run time linking by default, so we don't
11865 # have to do anything special.
11866 aix_use_runtimelinking=no
11867 exp_sym_flag='-Bexport'
11868 no_entry_flag=""
11869 else
11870 aix_use_runtimelinking=no
11871
11872 # Test if we are trying to use run time linking or normal
11873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11874 # need to do runtime linking.
11875 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11876 for ld_flag in $LDFLAGS; do
11877 case $ld_flag in
11878 *-brtl*)
11879 aix_use_runtimelinking=yes
11880 break
11881 ;;
11882 esac
11883 done
11884 ;;
11885 esac
11886
11887 exp_sym_flag='-bexport'
11888 no_entry_flag='-bnoentry'
11889 fi
11890
11891 # When large executables or shared objects are built, AIX ld can
11892 # have problems creating the table of contents. If linking a library
11893 # or program results in "error TOC overflow" add -mminimal-toc to
11894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11896
11897 archive_cmds_CXX=''
11898 hardcode_direct_CXX=yes
11899 hardcode_direct_absolute_CXX=yes
11900 hardcode_libdir_separator_CXX=':'
11901 link_all_deplibs_CXX=yes
11902 file_list_spec_CXX='${wl}-f,'
11903
11904 if test "$GXX" = yes; then
11905 case $host_os in aix4.[012]|aix4.[012].*)
11906 # We only want to do this on AIX 4.2 and lower, the check
11907 # below for broken collect2 doesn't work under 4.3+
11908 collect2name=`${CC} -print-prog-name=collect2`
11909 if test -f "$collect2name" &&
11910 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11911 then
11912 # We have reworked collect2
11913 :
11914 else
11915 # We have old collect2
11916 hardcode_direct_CXX=unsupported
11917 # It fails to find uninstalled libraries when the uninstalled
11918 # path is not listed in the libpath. Setting hardcode_minus_L
11919 # to unsupported forces relinking
11920 hardcode_minus_L_CXX=yes
11921 hardcode_libdir_flag_spec_CXX='-L$libdir'
11922 hardcode_libdir_separator_CXX=
11923 fi
11924 esac
11925 shared_flag='-shared'
11926 if test "$aix_use_runtimelinking" = yes; then
11927 shared_flag="$shared_flag "'${wl}-G'
11928 fi
11929 else
11930 # not using gcc
11931 if test "$host_cpu" = ia64; then
11932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11933 # chokes on -Wl,-G. The following line is correct:
11934 shared_flag='-G'
11935 else
11936 if test "$aix_use_runtimelinking" = yes; then
11937 shared_flag='${wl}-G'
11938 else
11939 shared_flag='${wl}-bM:SRE'
11940 fi
11941 fi
11942 fi
11943
11944 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11945 # It seems that -bexpall does not export symbols beginning with
11946 # underscore (_), so it is better to generate a list of symbols to
11947 # export.
11948 always_export_symbols_CXX=yes
11949 if test "$aix_use_runtimelinking" = yes; then
11950 # Warning - without using the other runtime loading flags (-brtl),
11951 # -berok will link without error, but may produce a broken library.
11952 allow_undefined_flag_CXX='-berok'
11953 # Determine the default libpath from the value encoded in an empty
11954 # executable.
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956/* end confdefs.h. */
11957
11958int
11959main ()
11960{
11961
11962 ;
11963 return 0;
11964}
11965_ACEOF
11966if ac_fn_cxx_try_link "$LINENO"; then :
11967
11968lt_aix_libpath_sed='
11969 /Import File Strings/,/^$/ {
11970 /^0/ {
11971 s/^0 *\(.*\)$/\1/
11972 p
11973 }
11974 }'
11975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11976# Check for a 64-bit object if we didn't find anything.
11977if test -z "$aix_libpath"; then
11978 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11979fi
11980fi
11981rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11984
11985 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11986
11987 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"
11988 else
11989 if test "$host_cpu" = ia64; then
11990 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11991 allow_undefined_flag_CXX="-z nodefs"
11992 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"
11993 else
11994 # Determine the default libpath from the value encoded in an
11995 # empty executable.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998
11999int
12000main ()
12001{
12002
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007if ac_fn_cxx_try_link "$LINENO"; then :
12008
12009lt_aix_libpath_sed='
12010 /Import File Strings/,/^$/ {
12011 /^0/ {
12012 s/^0 *\(.*\)$/\1/
12013 p
12014 }
12015 }'
12016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12017# Check for a 64-bit object if we didn't find anything.
12018if test -z "$aix_libpath"; then
12019 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12020fi
12021fi
12022rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12025
12026 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12027 # Warning - without using the other run time loading flags,
12028 # -berok will link without error, but may produce a broken library.
12029 no_undefined_flag_CXX=' ${wl}-bernotok'
12030 allow_undefined_flag_CXX=' ${wl}-berok'
12031 if test "$with_gnu_ld" = yes; then
12032 # We only use this code for GNU lds that support --whole-archive.
12033 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12034 else
12035 # Exported symbols can be pulled into shared objects from archives
12036 whole_archive_flag_spec_CXX='$convenience'
12037 fi
12038 archive_cmds_need_lc_CXX=yes
12039 # This is similar to how AIX traditionally builds its shared
12040 # libraries.
12041 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'
12042 fi
12043 fi
12044 ;;
12045
12046 beos*)
12047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12048 allow_undefined_flag_CXX=unsupported
12049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12050 # support --undefined. This deserves some investigation. FIXME
12051 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12052 else
12053 ld_shlibs_CXX=no
12054 fi
12055 ;;
12056
12057 chorus*)
12058 case $cc_basename in
12059 *)
12060 # FIXME: insert proper C++ library support
12061 ld_shlibs_CXX=no
12062 ;;
12063 esac
12064 ;;
12065
12066 cygwin* | mingw* | pw32* | cegcc*)
12067 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12068 # as there is no search path for DLLs.
12069 hardcode_libdir_flag_spec_CXX='-L$libdir'
12070 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12071 allow_undefined_flag_CXX=unsupported
12072 always_export_symbols_CXX=no
12073 enable_shared_with_static_runtimes_CXX=yes
12074
12075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12076 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'
12077 # If the export-symbols file already is a .def file (1st line
12078 # is EXPORTS), use it as is; otherwise, prepend...
12079 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12080 cp $export_symbols $output_objdir/$soname.def;
12081 else
12082 echo EXPORTS > $output_objdir/$soname.def;
12083 cat $export_symbols >> $output_objdir/$soname.def;
12084 fi~
12085 $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'
12086 else
12087 ld_shlibs_CXX=no
12088 fi
12089 ;;
12090 darwin* | rhapsody*)
12091
12092
12093 archive_cmds_need_lc_CXX=no
12094 hardcode_direct_CXX=no
12095 hardcode_automatic_CXX=yes
12096 hardcode_shlibpath_var_CXX=unsupported
12097 if test "$lt_cv_ld_force_load" = "yes"; then
12098 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\"`'
12099 else
12100 whole_archive_flag_spec_CXX=''
12101 fi
12102 link_all_deplibs_CXX=yes
12103 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12104 case $cc_basename in
12105 ifort*) _lt_dar_can_shared=yes ;;
12106 *) _lt_dar_can_shared=$GCC ;;
12107 esac
12108 if test "$_lt_dar_can_shared" = "yes"; then
12109 output_verbose_link_cmd=func_echo_all
12110 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}"
12111 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12112 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}"
12113 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}"
12114 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12115 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}"
12116 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}"
12117 fi
12118
12119 else
12120 ld_shlibs_CXX=no
12121 fi
12122
12123 ;;
12124
12125 dgux*)
12126 case $cc_basename in
12127 ec++*)
12128 # FIXME: insert proper C++ library support
12129 ld_shlibs_CXX=no
12130 ;;
12131 ghcx*)
12132 # Green Hills C++ Compiler
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12135 ;;
12136 *)
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12139 ;;
12140 esac
12141 ;;
12142
12143 freebsd2.*)
12144 # C++ shared libraries reported to be fairly broken before
12145 # switch to ELF
12146 ld_shlibs_CXX=no
12147 ;;
12148
12149 freebsd-elf*)
12150 archive_cmds_need_lc_CXX=no
12151 ;;
12152
12153 freebsd* | dragonfly*)
12154 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12155 # conventions
12156 ld_shlibs_CXX=yes
12157 ;;
12158
12159 gnu*)
12160 ;;
12161
12162 haiku*)
12163 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164 link_all_deplibs_CXX=yes
12165 ;;
12166
12167 hpux9*)
12168 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12169 hardcode_libdir_separator_CXX=:
12170 export_dynamic_flag_spec_CXX='${wl}-E'
12171 hardcode_direct_CXX=yes
12172 hardcode_minus_L_CXX=yes # Not in the search PATH,
12173 # but as the default
12174 # location of the library.
12175
12176 case $cc_basename in
12177 CC*)
12178 # FIXME: insert proper C++ library support
12179 ld_shlibs_CXX=no
12180 ;;
12181 aCC*)
12182 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'
12183 # Commands to make compiler produce verbose output that lists
12184 # what "hidden" libraries, object files and flags are used when
12185 # linking a shared library.
12186 #
12187 # There doesn't appear to be a way to prevent this compiler from
12188 # explicitly linking system object files so we need to strip them
12189 # from the output so that they don't get included in the library
12190 # dependencies.
12191 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"'
12192 ;;
12193 *)
12194 if test "$GXX" = yes; then
12195 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'
12196 else
12197 # FIXME: insert proper C++ library support
12198 ld_shlibs_CXX=no
12199 fi
12200 ;;
12201 esac
12202 ;;
12203
12204 hpux10*|hpux11*)
12205 if test $with_gnu_ld = no; then
12206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12207 hardcode_libdir_separator_CXX=:
12208
12209 case $host_cpu in
12210 hppa*64*|ia64*)
12211 ;;
12212 *)
12213 export_dynamic_flag_spec_CXX='${wl}-E'
12214 ;;
12215 esac
12216 fi
12217 case $host_cpu in
12218 hppa*64*|ia64*)
12219 hardcode_direct_CXX=no
12220 hardcode_shlibpath_var_CXX=no
12221 ;;
12222 *)
12223 hardcode_direct_CXX=yes
12224 hardcode_direct_absolute_CXX=yes
12225 hardcode_minus_L_CXX=yes # Not in the search PATH,
12226 # but as the default
12227 # location of the library.
12228 ;;
12229 esac
12230
12231 case $cc_basename in
12232 CC*)
12233 # FIXME: insert proper C++ library support
12234 ld_shlibs_CXX=no
12235 ;;
12236 aCC*)
12237 case $host_cpu in
12238 hppa*64*)
12239 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12240 ;;
12241 ia64*)
12242 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12243 ;;
12244 *)
12245 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12246 ;;
12247 esac
12248 # Commands to make compiler produce verbose output that lists
12249 # what "hidden" libraries, object files and flags are used when
12250 # linking a shared library.
12251 #
12252 # There doesn't appear to be a way to prevent this compiler from
12253 # explicitly linking system object files so we need to strip them
12254 # from the output so that they don't get included in the library
12255 # dependencies.
12256 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"'
12257 ;;
12258 *)
12259 if test "$GXX" = yes; then
12260 if test $with_gnu_ld = no; then
12261 case $host_cpu in
12262 hppa*64*)
12263 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12264 ;;
12265 ia64*)
12266 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12267 ;;
12268 *)
12269 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'
12270 ;;
12271 esac
12272 fi
12273 else
12274 # FIXME: insert proper C++ library support
12275 ld_shlibs_CXX=no
12276 fi
12277 ;;
12278 esac
12279 ;;
12280
12281 interix[3-9]*)
12282 hardcode_direct_CXX=no
12283 hardcode_shlibpath_var_CXX=no
12284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12285 export_dynamic_flag_spec_CXX='${wl}-E'
12286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12287 # Instead, shared libraries are loaded at an image base (0x10000000 by
12288 # default) and relocated if they conflict, which is a slow very memory
12289 # consuming and fragmenting process. To avoid this, we pick a random,
12290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12292 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'
12293 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'
12294 ;;
12295 irix5* | irix6*)
12296 case $cc_basename in
12297 CC*)
12298 # SGI C++
12299 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'
12300
12301 # Archives containing C++ object files must be created using
12302 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12303 # necessary to make sure instantiated templates are included
12304 # in the archive.
12305 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12306 ;;
12307 *)
12308 if test "$GXX" = yes; then
12309 if test "$with_gnu_ld" = no; then
12310 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'
12311 else
12312 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'
12313 fi
12314 fi
12315 link_all_deplibs_CXX=yes
12316 ;;
12317 esac
12318 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12319 hardcode_libdir_separator_CXX=:
12320 inherit_rpath_CXX=yes
12321 ;;
12322
12323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12324 case $cc_basename in
12325 KCC*)
12326 # Kuck and Associates, Inc. (KAI) C++ Compiler
12327
12328 # KCC will only create a shared library if the output file
12329 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12330 # to its proper name (with version) after linking.
12331 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'
12332 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'
12333 # Commands to make compiler produce verbose output that lists
12334 # what "hidden" libraries, object files and flags are used when
12335 # linking a shared library.
12336 #
12337 # There doesn't appear to be a way to prevent this compiler from
12338 # explicitly linking system object files so we need to strip them
12339 # from the output so that they don't get included in the library
12340 # dependencies.
12341 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"'
12342
12343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12344 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12345
12346 # Archives containing C++ object files must be created using
12347 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12348 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12349 ;;
12350 icpc* | ecpc* )
12351 # Intel C++
12352 with_gnu_ld=yes
12353 # version 8.0 and above of icpc choke on multiply defined symbols
12354 # if we add $predep_objects and $postdep_objects, however 7.1 and
12355 # earlier do not add the objects themselves.
12356 case `$CC -V 2>&1` in
12357 *"Version 7."*)
12358 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359 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'
12360 ;;
12361 *) # Version 8.0 or newer
12362 tmp_idyn=
12363 case $host_cpu in
12364 ia64*) tmp_idyn=' -i_dynamic';;
12365 esac
12366 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12367 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'
12368 ;;
12369 esac
12370 archive_cmds_need_lc_CXX=no
12371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12373 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12374 ;;
12375 pgCC* | pgcpp*)
12376 # Portland Group C++ compiler
12377 case `$CC -V` in
12378 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12379 prelink_cmds_CXX='tpldir=Template.dir~
12380 rm -rf $tpldir~
12381 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12382 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12383 old_archive_cmds_CXX='tpldir=Template.dir~
12384 rm -rf $tpldir~
12385 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12386 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12387 $RANLIB $oldlib'
12388 archive_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 -o $lib'
12392 archive_expsym_cmds_CXX='tpldir=Template.dir~
12393 rm -rf $tpldir~
12394 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12395 $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'
12396 ;;
12397 *) # Version 6 and above use weak symbols
12398 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12399 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'
12400 ;;
12401 esac
12402
12403 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12405 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'
12406 ;;
12407 cxx*)
12408 # Compaq C++
12409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410 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'
12411
12412 runpath_var=LD_RUN_PATH
12413 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12414 hardcode_libdir_separator_CXX=:
12415
12416 # Commands to make compiler produce verbose output that lists
12417 # what "hidden" libraries, object files and flags are used when
12418 # linking a shared library.
12419 #
12420 # There doesn't appear to be a way to prevent this compiler from
12421 # explicitly linking system object files so we need to strip them
12422 # from the output so that they don't get included in the library
12423 # dependencies.
12424 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'
12425 ;;
12426 xl* | mpixl* | bgxl*)
12427 # IBM XL 8.0 on PPC, with GNU ld
12428 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12429 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12430 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 if test "x$supports_anon_versioning" = xyes; then
12432 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12433 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12434 echo "local: *; };" >> $output_objdir/$libname.ver~
12435 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12436 fi
12437 ;;
12438 *)
12439 case `$CC -V 2>&1 | sed 5q` in
12440 *Sun\ C*)
12441 # Sun C++ 5.9
12442 no_undefined_flag_CXX=' -zdefs'
12443 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12444 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'
12445 hardcode_libdir_flag_spec_CXX='-R$libdir'
12446 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'
12447 compiler_needs_object_CXX=yes
12448
12449 # Not sure whether something based on
12450 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12451 # would be better.
12452 output_verbose_link_cmd='func_echo_all'
12453
12454 # Archives containing C++ object files must be created using
12455 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12456 # necessary to make sure instantiated templates are included
12457 # in the archive.
12458 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12459 ;;
12460 esac
12461 ;;
12462 esac
12463 ;;
12464
12465 lynxos*)
12466 # FIXME: insert proper C++ library support
12467 ld_shlibs_CXX=no
12468 ;;
12469
12470 m88k*)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12473 ;;
12474
12475 mvs*)
12476 case $cc_basename in
12477 cxx*)
12478 # FIXME: insert proper C++ library support
12479 ld_shlibs_CXX=no
12480 ;;
12481 *)
12482 # FIXME: insert proper C++ library support
12483 ld_shlibs_CXX=no
12484 ;;
12485 esac
12486 ;;
12487
12488 netbsd*)
12489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12490 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12491 wlarc=
12492 hardcode_libdir_flag_spec_CXX='-R$libdir'
12493 hardcode_direct_CXX=yes
12494 hardcode_shlibpath_var_CXX=no
12495 fi
12496 # Workaround some broken pre-1.5 toolchains
12497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12498 ;;
12499
12500 *nto* | *qnx*)
12501 ld_shlibs_CXX=yes
12502 ;;
12503
12504 openbsd2*)
12505 # C++ shared libraries are fairly broken
12506 ld_shlibs_CXX=no
12507 ;;
12508
12509 openbsd*)
12510 if test -f /usr/libexec/ld.so; then
12511 hardcode_direct_CXX=yes
12512 hardcode_shlibpath_var_CXX=no
12513 hardcode_direct_absolute_CXX=yes
12514 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12515 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12517 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12518 export_dynamic_flag_spec_CXX='${wl}-E'
12519 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12520 fi
12521 output_verbose_link_cmd=func_echo_all
12522 else
12523 ld_shlibs_CXX=no
12524 fi
12525 ;;
12526
12527 osf3* | osf4* | osf5*)
12528 case $cc_basename in
12529 KCC*)
12530 # Kuck and Associates, Inc. (KAI) C++ Compiler
12531
12532 # KCC will only create a shared library if the output file
12533 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12534 # to its proper name (with version) after linking.
12535 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'
12536
12537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12538 hardcode_libdir_separator_CXX=:
12539
12540 # Archives containing C++ object files must be created using
12541 # the KAI C++ compiler.
12542 case $host in
12543 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12544 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12545 esac
12546 ;;
12547 RCC*)
12548 # Rational C++ 2.4.1
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12551 ;;
12552 cxx*)
12553 case $host in
12554 osf3*)
12555 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12556 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'
12557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12558 ;;
12559 *)
12560 allow_undefined_flag_CXX=' -expect_unresolved \*'
12561 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'
12562 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12563 echo "-hidden">> $lib.exp~
12564 $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~
12565 $RM $lib.exp'
12566 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12567 ;;
12568 esac
12569
12570 hardcode_libdir_separator_CXX=:
12571
12572 # Commands to make compiler produce verbose output that lists
12573 # what "hidden" libraries, object files and flags are used when
12574 # linking a shared library.
12575 #
12576 # There doesn't appear to be a way to prevent this compiler from
12577 # explicitly linking system object files so we need to strip them
12578 # from the output so that they don't get included in the library
12579 # dependencies.
12580 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"'
12581 ;;
12582 *)
12583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12585 case $host in
12586 osf3*)
12587 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'
12588 ;;
12589 *)
12590 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'
12591 ;;
12592 esac
12593
12594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12595 hardcode_libdir_separator_CXX=:
12596
12597 # Commands to make compiler produce verbose output that lists
12598 # what "hidden" libraries, object files and flags are used when
12599 # linking a shared library.
12600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12601
12602 else
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12605 fi
12606 ;;
12607 esac
12608 ;;
12609
12610 psos*)
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12613 ;;
12614
12615 sunos4*)
12616 case $cc_basename in
12617 CC*)
12618 # Sun C++ 4.x
12619 # FIXME: insert proper C++ library support
12620 ld_shlibs_CXX=no
12621 ;;
12622 lcc*)
12623 # Lucid
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12626 ;;
12627 *)
12628 # FIXME: insert proper C++ library support
12629 ld_shlibs_CXX=no
12630 ;;
12631 esac
12632 ;;
12633
12634 solaris*)
12635 case $cc_basename in
12636 CC*)
12637 # Sun C++ 4.2, 5.x and Centerline C++
12638 archive_cmds_need_lc_CXX=yes
12639 no_undefined_flag_CXX=' -zdefs'
12640 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12641 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12642 $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'
12643
12644 hardcode_libdir_flag_spec_CXX='-R$libdir'
12645 hardcode_shlibpath_var_CXX=no
12646 case $host_os in
12647 solaris2.[0-5] | solaris2.[0-5].*) ;;
12648 *)
12649 # The compiler driver will combine and reorder linker options,
12650 # but understands `-z linker_flag'.
12651 # Supported since Solaris 2.6 (maybe 2.5.1?)
12652 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12653 ;;
12654 esac
12655 link_all_deplibs_CXX=yes
12656
12657 output_verbose_link_cmd='func_echo_all'
12658
12659 # Archives containing C++ object files must be created using
12660 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12661 # necessary to make sure instantiated templates are included
12662 # in the archive.
12663 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12664 ;;
12665 gcx*)
12666 # Green Hills C++ Compiler
12667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12668
12669 # The C++ compiler must be used to create the archive.
12670 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12671 ;;
12672 *)
12673 # GNU C++ compiler with Solaris linker
12674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12675 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12676 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12677 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12678 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12679 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12680
12681 # Commands to make compiler produce verbose output that lists
12682 # what "hidden" libraries, object files and flags are used when
12683 # linking a shared library.
12684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12685 else
12686 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12687 # platform.
12688 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12689 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12690 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12691
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12695 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12696 fi
12697
12698 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12699 case $host_os in
12700 solaris2.[0-5] | solaris2.[0-5].*) ;;
12701 *)
12702 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12703 ;;
12704 esac
12705 fi
12706 ;;
12707 esac
12708 ;;
12709
12710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12711 no_undefined_flag_CXX='${wl}-z,text'
12712 archive_cmds_need_lc_CXX=no
12713 hardcode_shlibpath_var_CXX=no
12714 runpath_var='LD_RUN_PATH'
12715
12716 case $cc_basename in
12717 CC*)
12718 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12719 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12720 ;;
12721 *)
12722 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12723 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12724 ;;
12725 esac
12726 ;;
12727
12728 sysv5* | sco3.2v5* | sco5v6*)
12729 # Note: We can NOT use -z defs as we might desire, because we do not
12730 # link with -lc, and that would cause any symbols used from libc to
12731 # always be unresolved, which means just about no library would
12732 # ever link correctly. If we're not using GNU ld we use -z text
12733 # though, which does catch some bad symbols but isn't as heavy-handed
12734 # as -z defs.
12735 no_undefined_flag_CXX='${wl}-z,text'
12736 allow_undefined_flag_CXX='${wl}-z,nodefs'
12737 archive_cmds_need_lc_CXX=no
12738 hardcode_shlibpath_var_CXX=no
12739 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12740 hardcode_libdir_separator_CXX=':'
12741 link_all_deplibs_CXX=yes
12742 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12743 runpath_var='LD_RUN_PATH'
12744
12745 case $cc_basename in
12746 CC*)
12747 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12749 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12750 '"$old_archive_cmds_CXX"
12751 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12752 '"$reload_cmds_CXX"
12753 ;;
12754 *)
12755 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12756 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12757 ;;
12758 esac
12759 ;;
12760
12761 tandem*)
12762 case $cc_basename in
12763 NCC*)
12764 # NonStop-UX NCC 3.20
12765 # FIXME: insert proper C++ library support
12766 ld_shlibs_CXX=no
12767 ;;
12768 *)
12769 # FIXME: insert proper C++ library support
12770 ld_shlibs_CXX=no
12771 ;;
12772 esac
12773 ;;
12774
12775 vxworks*)
12776 # FIXME: insert proper C++ library support
12777 ld_shlibs_CXX=no
12778 ;;
12779
12780 *)
12781 # FIXME: insert proper C++ library support
12782 ld_shlibs_CXX=no
12783 ;;
12784 esac
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12787$as_echo "$ld_shlibs_CXX" >&6; }
12788 test "$ld_shlibs_CXX" = no && can_build_shared=no
12789
12790 GCC_CXX="$GXX"
12791 LD_CXX="$LD"
12792
12793 ## CAVEAT EMPTOR:
12794 ## There is no encapsulation within the following macros, do not change
12795 ## the running order or otherwise move them around unless you know exactly
12796 ## what you are doing...
12797 # Dependencies to place before and after the object being linked:
12798predep_objects_CXX=
12799postdep_objects_CXX=
12800predeps_CXX=
12801postdeps_CXX=
12802compiler_lib_search_path_CXX=
12803
12804cat > conftest.$ac_ext <<_LT_EOF
12805class Foo
12806{
12807public:
12808 Foo (void) { a = 0; }
12809private:
12810 int a;
12811};
12812_LT_EOF
12813
12814if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12815 (eval $ac_compile) 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; }; then
12819 # Parse the compiler output and extract the necessary
12820 # objects, libraries and library flags.
12821
12822 # Sentinel used to keep track of whether or not we are before
12823 # the conftest object file.
12824 pre_test_object_deps_done=no
12825
12826 for p in `eval "$output_verbose_link_cmd"`; do
12827 case $p in
12828
12829 -L* | -R* | -l*)
12830 # Some compilers place space between "-{L,R}" and the path.
12831 # Remove the space.
12832 if test $p = "-L" ||
12833 test $p = "-R"; then
12834 prev=$p
12835 continue
12836 else
12837 prev=
12838 fi
12839
12840 if test "$pre_test_object_deps_done" = no; then
12841 case $p in
12842 -L* | -R*)
12843 # Internal compiler library paths should come after those
12844 # provided the user. The postdeps already come after the
12845 # user supplied libs so there is no need to process them.
12846 if test -z "$compiler_lib_search_path_CXX"; then
12847 compiler_lib_search_path_CXX="${prev}${p}"
12848 else
12849 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12850 fi
12851 ;;
12852 # The "-l" case would never come before the object being
12853 # linked, so don't bother handling this case.
12854 esac
12855 else
12856 if test -z "$postdeps_CXX"; then
12857 postdeps_CXX="${prev}${p}"
12858 else
12859 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12860 fi
12861 fi
12862 ;;
12863
12864 *.$objext)
12865 # This assumes that the test object file only shows up
12866 # once in the compiler output.
12867 if test "$p" = "conftest.$objext"; then
12868 pre_test_object_deps_done=yes
12869 continue
12870 fi
12871
12872 if test "$pre_test_object_deps_done" = no; then
12873 if test -z "$predep_objects_CXX"; then
12874 predep_objects_CXX="$p"
12875 else
12876 predep_objects_CXX="$predep_objects_CXX $p"
12877 fi
12878 else
12879 if test -z "$postdep_objects_CXX"; then
12880 postdep_objects_CXX="$p"
12881 else
12882 postdep_objects_CXX="$postdep_objects_CXX $p"
12883 fi
12884 fi
12885 ;;
12886
12887 *) ;; # Ignore the rest.
12888
12889 esac
12890 done
12891
12892 # Clean up.
12893 rm -f a.out a.exe
12894else
12895 echo "libtool.m4: error: problem compiling CXX test program"
12896fi
12897
12898$RM -f confest.$objext
12899
12900# PORTME: override above test on systems where it is broken
12901case $host_os in
12902interix[3-9]*)
12903 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12904 # hack all around it, let's just trust "g++" to DTRT.
12905 predep_objects_CXX=
12906 postdep_objects_CXX=
12907 postdeps_CXX=
12908 ;;
12909
12910linux*)
12911 case `$CC -V 2>&1 | sed 5q` in
12912 *Sun\ C*)
12913 # Sun C++ 5.9
12914
12915 # The more standards-conforming stlport4 library is
12916 # incompatible with the Cstd library. Avoid specifying
12917 # it if it's in CXXFLAGS. Ignore libCrun as
12918 # -library=stlport4 depends on it.
12919 case " $CXX $CXXFLAGS " in
12920 *" -library=stlport4 "*)
12921 solaris_use_stlport4=yes
12922 ;;
12923 esac
12924
12925 if test "$solaris_use_stlport4" != yes; then
12926 postdeps_CXX='-library=Cstd -library=Crun'
12927 fi
12928 ;;
12929 esac
12930 ;;
12931
12932solaris*)
12933 case $cc_basename in
12934 CC*)
12935 # The more standards-conforming stlport4 library is
12936 # incompatible with the Cstd library. Avoid specifying
12937 # it if it's in CXXFLAGS. Ignore libCrun as
12938 # -library=stlport4 depends on it.
12939 case " $CXX $CXXFLAGS " in
12940 *" -library=stlport4 "*)
12941 solaris_use_stlport4=yes
12942 ;;
12943 esac
12944
12945 # Adding this requires a known-good setup of shared libraries for
12946 # Sun compiler versions before 5.6, else PIC objects from an old
12947 # archive will be linked into the output, leading to subtle bugs.
12948 if test "$solaris_use_stlport4" != yes; then
12949 postdeps_CXX='-library=Cstd -library=Crun'
12950 fi
12951 ;;
12952 esac
12953 ;;
12954esac
12955
12956
12957case " $postdeps_CXX " in
12958*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12959esac
12960 compiler_lib_search_dirs_CXX=
12961if test -n "${compiler_lib_search_path_CXX}"; then
12962 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12963fi
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
12992
12993
12994
12995 lt_prog_compiler_wl_CXX=
12996lt_prog_compiler_pic_CXX=
12997lt_prog_compiler_static_CXX=
12998
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13000$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13001
13002 # C++ specific cases for pic, static, wl, etc.
13003 if test "$GXX" = yes; then
13004 lt_prog_compiler_wl_CXX='-Wl,'
13005 lt_prog_compiler_static_CXX='-static'
13006
13007 case $host_os in
13008 aix*)
13009 # All AIX code is PIC.
13010 if test "$host_cpu" = ia64; then
13011 # AIX 5 now supports IA64 processor
13012 lt_prog_compiler_static_CXX='-Bstatic'
13013 fi
13014 lt_prog_compiler_pic_CXX='-fPIC'
13015 ;;
13016
13017 amigaos*)
13018 case $host_cpu in
13019 powerpc)
13020 # see comment about AmigaOS4 .so support
13021 lt_prog_compiler_pic_CXX='-fPIC'
13022 ;;
13023 m68k)
13024 # FIXME: we need at least 68020 code to build shared libraries, but
13025 # adding the `-m68020' flag to GCC prevents building anything better,
13026 # like `-m68040'.
13027 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13028 ;;
13029 esac
13030 ;;
13031
13032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13033 # PIC is the default for these OSes.
13034 ;;
13035 mingw* | cygwin* | os2* | pw32* | cegcc*)
13036 # This hack is so that the source file can tell whether it is being
13037 # built for inclusion in a dll (and should export symbols for example).
13038 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13039 # (--disable-auto-import) libraries
13040 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13041 ;;
13042 darwin* | rhapsody*)
13043 # PIC is the default on this platform
13044 # Common symbols not allowed in MH_DYLIB files
13045 lt_prog_compiler_pic_CXX='-fno-common'
13046 ;;
13047 *djgpp*)
13048 # DJGPP does not support shared libraries at all
13049 lt_prog_compiler_pic_CXX=
13050 ;;
13051 haiku*)
13052 # PIC is the default for Haiku.
13053 # The "-static" flag exists, but is broken.
13054 lt_prog_compiler_static_CXX=
13055 ;;
13056 interix[3-9]*)
13057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13058 # Instead, we relocate shared libraries at runtime.
13059 ;;
13060 sysv4*MP*)
13061 if test -d /usr/nec; then
13062 lt_prog_compiler_pic_CXX=-Kconform_pic
13063 fi
13064 ;;
13065 hpux*)
13066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13068 # sets the default TLS model and affects inlining.
13069 case $host_cpu in
13070 hppa*64*)
13071 ;;
13072 *)
13073 lt_prog_compiler_pic_CXX='-fPIC'
13074 ;;
13075 esac
13076 ;;
13077 *qnx* | *nto*)
13078 # QNX uses GNU C++, but need to define -shared option too, otherwise
13079 # it will coredump.
13080 lt_prog_compiler_pic_CXX='-fPIC -shared'
13081 ;;
13082 *)
13083 lt_prog_compiler_pic_CXX='-fPIC'
13084 ;;
13085 esac
13086 else
13087 case $host_os in
13088 aix[4-9]*)
13089 # All AIX code is PIC.
13090 if test "$host_cpu" = ia64; then
13091 # AIX 5 now supports IA64 processor
13092 lt_prog_compiler_static_CXX='-Bstatic'
13093 else
13094 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13095 fi
13096 ;;
13097 chorus*)
13098 case $cc_basename in
13099 cxch68*)
13100 # Green Hills C++ Compiler
13101 # _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"
13102 ;;
13103 esac
13104 ;;
13105 dgux*)
13106 case $cc_basename in
13107 ec++*)
13108 lt_prog_compiler_pic_CXX='-KPIC'
13109 ;;
13110 ghcx*)
13111 # Green Hills C++ Compiler
13112 lt_prog_compiler_pic_CXX='-pic'
13113 ;;
13114 *)
13115 ;;
13116 esac
13117 ;;
13118 freebsd* | dragonfly*)
13119 # FreeBSD uses GNU C++
13120 ;;
13121 hpux9* | hpux10* | hpux11*)
13122 case $cc_basename in
13123 CC*)
13124 lt_prog_compiler_wl_CXX='-Wl,'
13125 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13126 if test "$host_cpu" != ia64; then
13127 lt_prog_compiler_pic_CXX='+Z'
13128 fi
13129 ;;
13130 aCC*)
13131 lt_prog_compiler_wl_CXX='-Wl,'
13132 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13135 # +Z the default
13136 ;;
13137 *)
13138 lt_prog_compiler_pic_CXX='+Z'
13139 ;;
13140 esac
13141 ;;
13142 *)
13143 ;;
13144 esac
13145 ;;
13146 interix*)
13147 # This is c89, which is MS Visual C++ (no shared libs)
13148 # Anyone wants to do a port?
13149 ;;
13150 irix5* | irix6* | nonstopux*)
13151 case $cc_basename in
13152 CC*)
13153 lt_prog_compiler_wl_CXX='-Wl,'
13154 lt_prog_compiler_static_CXX='-non_shared'
13155 # CC pic flag -KPIC is the default.
13156 ;;
13157 *)
13158 ;;
13159 esac
13160 ;;
13161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13162 case $cc_basename in
13163 KCC*)
13164 # KAI C++ Compiler
13165 lt_prog_compiler_wl_CXX='--backend -Wl,'
13166 lt_prog_compiler_pic_CXX='-fPIC'
13167 ;;
13168 ecpc* )
13169 # old Intel C++ for x86_64 which still supported -KPIC.
13170 lt_prog_compiler_wl_CXX='-Wl,'
13171 lt_prog_compiler_pic_CXX='-KPIC'
13172 lt_prog_compiler_static_CXX='-static'
13173 ;;
13174 icpc* )
13175 # Intel C++, used to be incompatible with GCC.
13176 # ICC 10 doesn't accept -KPIC any more.
13177 lt_prog_compiler_wl_CXX='-Wl,'
13178 lt_prog_compiler_pic_CXX='-fPIC'
13179 lt_prog_compiler_static_CXX='-static'
13180 ;;
13181 pgCC* | pgcpp*)
13182 # Portland Group C++ compiler
13183 lt_prog_compiler_wl_CXX='-Wl,'
13184 lt_prog_compiler_pic_CXX='-fpic'
13185 lt_prog_compiler_static_CXX='-Bstatic'
13186 ;;
13187 cxx*)
13188 # Compaq C++
13189 # Make sure the PIC flag is empty. It appears that all Alpha
13190 # Linux and Compaq Tru64 Unix objects are PIC.
13191 lt_prog_compiler_pic_CXX=
13192 lt_prog_compiler_static_CXX='-non_shared'
13193 ;;
13194 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13195 # IBM XL 8.0, 9.0 on PPC and BlueGene
13196 lt_prog_compiler_wl_CXX='-Wl,'
13197 lt_prog_compiler_pic_CXX='-qpic'
13198 lt_prog_compiler_static_CXX='-qstaticlink'
13199 ;;
13200 *)
13201 case `$CC -V 2>&1 | sed 5q` in
13202 *Sun\ C*)
13203 # Sun C++ 5.9
13204 lt_prog_compiler_pic_CXX='-KPIC'
13205 lt_prog_compiler_static_CXX='-Bstatic'
13206 lt_prog_compiler_wl_CXX='-Qoption ld '
13207 ;;
13208 esac
13209 ;;
13210 esac
13211 ;;
13212 lynxos*)
13213 ;;
13214 m88k*)
13215 ;;
13216 mvs*)
13217 case $cc_basename in
13218 cxx*)
13219 lt_prog_compiler_pic_CXX='-W c,exportall'
13220 ;;
13221 *)
13222 ;;
13223 esac
13224 ;;
13225 netbsd*)
13226 ;;
13227 *qnx* | *nto*)
13228 # QNX uses GNU C++, but need to define -shared option too, otherwise
13229 # it will coredump.
13230 lt_prog_compiler_pic_CXX='-fPIC -shared'
13231 ;;
13232 osf3* | osf4* | osf5*)
13233 case $cc_basename in
13234 KCC*)
13235 lt_prog_compiler_wl_CXX='--backend -Wl,'
13236 ;;
13237 RCC*)
13238 # Rational C++ 2.4.1
13239 lt_prog_compiler_pic_CXX='-pic'
13240 ;;
13241 cxx*)
13242 # Digital/Compaq C++
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 # Make sure the PIC flag is empty. It appears that all Alpha
13245 # Linux and Compaq Tru64 Unix objects are PIC.
13246 lt_prog_compiler_pic_CXX=
13247 lt_prog_compiler_static_CXX='-non_shared'
13248 ;;
13249 *)
13250 ;;
13251 esac
13252 ;;
13253 psos*)
13254 ;;
13255 solaris*)
13256 case $cc_basename in
13257 CC*)
13258 # Sun C++ 4.2, 5.x and Centerline C++
13259 lt_prog_compiler_pic_CXX='-KPIC'
13260 lt_prog_compiler_static_CXX='-Bstatic'
13261 lt_prog_compiler_wl_CXX='-Qoption ld '
13262 ;;
13263 gcx*)
13264 # Green Hills C++ Compiler
13265 lt_prog_compiler_pic_CXX='-PIC'
13266 ;;
13267 *)
13268 ;;
13269 esac
13270 ;;
13271 sunos4*)
13272 case $cc_basename in
13273 CC*)
13274 # Sun C++ 4.x
13275 lt_prog_compiler_pic_CXX='-pic'
13276 lt_prog_compiler_static_CXX='-Bstatic'
13277 ;;
13278 lcc*)
13279 # Lucid
13280 lt_prog_compiler_pic_CXX='-pic'
13281 ;;
13282 *)
13283 ;;
13284 esac
13285 ;;
13286 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13287 case $cc_basename in
13288 CC*)
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_pic_CXX='-KPIC'
13291 lt_prog_compiler_static_CXX='-Bstatic'
13292 ;;
13293 esac
13294 ;;
13295 tandem*)
13296 case $cc_basename in
13297 NCC*)
13298 # NonStop-UX NCC 3.20
13299 lt_prog_compiler_pic_CXX='-KPIC'
13300 ;;
13301 *)
13302 ;;
13303 esac
13304 ;;
13305 vxworks*)
13306 ;;
13307 *)
13308 lt_prog_compiler_can_build_shared_CXX=no
13309 ;;
13310 esac
13311 fi
13312
13313case $host_os in
13314 # For platforms which do not support PIC, -DPIC is meaningless:
13315 *djgpp*)
13316 lt_prog_compiler_pic_CXX=
13317 ;;
13318 *)
13319 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13320 ;;
13321esac
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13323$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13324
13325
13326
13327#
13328# Check to make sure the PIC flag actually works.
13329#
13330if test -n "$lt_prog_compiler_pic_CXX"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13332$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13333if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13335else
13336 lt_cv_prog_compiler_pic_works_CXX=no
13337 ac_outfile=conftest.$ac_objext
13338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13339 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13340 # Insert the option either (1) after the last *FLAGS variable, or
13341 # (2) before a word containing "conftest.", or (3) at the end.
13342 # Note that $ac_compile itself does not contain backslashes and begins
13343 # with a dollar sign (not a hyphen), so the echo should work correctly.
13344 # The option is referenced via a variable to avoid confusing sed.
13345 lt_compile=`echo "$ac_compile" | $SED \
13346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13348 -e 's:$: $lt_compiler_flag:'`
13349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13350 (eval "$lt_compile" 2>conftest.err)
13351 ac_status=$?
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 if (exit $ac_status) && test -s "$ac_outfile"; then
13355 # The compiler can only warn and ignore the option if not recognized
13356 # So say no if there are warnings other than the usual output.
13357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13360 lt_cv_prog_compiler_pic_works_CXX=yes
13361 fi
13362 fi
13363 $RM conftest*
13364
13365fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13367$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13368
13369if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13370 case $lt_prog_compiler_pic_CXX in
13371 "" | " "*) ;;
13372 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13373 esac
13374else
13375 lt_prog_compiler_pic_CXX=
13376 lt_prog_compiler_can_build_shared_CXX=no
13377fi
13378
13379fi
13380
13381
13382
13383#
13384# Check to make sure the static flag actually works.
13385#
13386wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13388$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13389if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391else
13392 lt_cv_prog_compiler_static_works_CXX=no
13393 save_LDFLAGS="$LDFLAGS"
13394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13397 # The linker can only warn and ignore the option if not recognized
13398 # So say no if there are warnings
13399 if test -s conftest.err; then
13400 # Append any errors to the config.log.
13401 cat conftest.err 1>&5
13402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13404 if diff conftest.exp conftest.er2 >/dev/null; then
13405 lt_cv_prog_compiler_static_works_CXX=yes
13406 fi
13407 else
13408 lt_cv_prog_compiler_static_works_CXX=yes
13409 fi
13410 fi
13411 $RM -r conftest*
13412 LDFLAGS="$save_LDFLAGS"
13413
13414fi
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13416$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13417
13418if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13419 :
13420else
13421 lt_prog_compiler_static_CXX=
13422fi
13423
13424
13425
13426
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13428$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13429if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13430 $as_echo_n "(cached) " >&6
13431else
13432 lt_cv_prog_compiler_c_o_CXX=no
13433 $RM -r conftest 2>/dev/null
13434 mkdir conftest
13435 cd conftest
13436 mkdir out
13437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13438
13439 lt_compiler_flag="-o out/conftest2.$ac_objext"
13440 # Insert the option either (1) after the last *FLAGS variable, or
13441 # (2) before a word containing "conftest.", or (3) at the end.
13442 # Note that $ac_compile itself does not contain backslashes and begins
13443 # with a dollar sign (not a hyphen), so the echo should work correctly.
13444 lt_compile=`echo "$ac_compile" | $SED \
13445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13447 -e 's:$: $lt_compiler_flag:'`
13448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13449 (eval "$lt_compile" 2>out/conftest.err)
13450 ac_status=$?
13451 cat out/conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13454 then
13455 # The compiler can only warn and ignore the option if not recognized
13456 # So say no if there are warnings
13457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13460 lt_cv_prog_compiler_c_o_CXX=yes
13461 fi
13462 fi
13463 chmod u+w . 2>&5
13464 $RM conftest*
13465 # SGI C++ compiler will create directory out/ii_files/ for
13466 # template instantiation
13467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13468 $RM out/* && rmdir out
13469 cd ..
13470 $RM -r conftest
13471 $RM conftest*
13472
13473fi
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13475$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13476
13477
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13480$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13481if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13482 $as_echo_n "(cached) " >&6
13483else
13484 lt_cv_prog_compiler_c_o_CXX=no
13485 $RM -r conftest 2>/dev/null
13486 mkdir conftest
13487 cd conftest
13488 mkdir out
13489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13490
13491 lt_compiler_flag="-o out/conftest2.$ac_objext"
13492 # Insert the option either (1) after the last *FLAGS variable, or
13493 # (2) before a word containing "conftest.", or (3) at the end.
13494 # Note that $ac_compile itself does not contain backslashes and begins
13495 # with a dollar sign (not a hyphen), so the echo should work correctly.
13496 lt_compile=`echo "$ac_compile" | $SED \
13497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13499 -e 's:$: $lt_compiler_flag:'`
13500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13501 (eval "$lt_compile" 2>out/conftest.err)
13502 ac_status=$?
13503 cat out/conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13506 then
13507 # The compiler can only warn and ignore the option if not recognized
13508 # So say no if there are warnings
13509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13512 lt_cv_prog_compiler_c_o_CXX=yes
13513 fi
13514 fi
13515 chmod u+w . 2>&5
13516 $RM conftest*
13517 # SGI C++ compiler will create directory out/ii_files/ for
13518 # template instantiation
13519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13520 $RM out/* && rmdir out
13521 cd ..
13522 $RM -r conftest
13523 $RM conftest*
13524
13525fi
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13527$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13528
13529
13530
13531
13532hard_links="nottested"
13533if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13534 # do not overwrite the value of need_locks provided by the user
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13536$as_echo_n "checking if we can lock with hard links... " >&6; }
13537 hard_links=yes
13538 $RM conftest*
13539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13540 touch conftest.a
13541 ln conftest.a conftest.b 2>&5 || hard_links=no
13542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13544$as_echo "$hard_links" >&6; }
13545 if test "$hard_links" = no; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13547$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13548 need_locks=warn
13549 fi
13550else
13551 need_locks=no
13552fi
13553
13554
13555
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13557$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13558
13559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13560 case $host_os in
13561 aix[4-9]*)
13562 # If we're using GNU nm, then we don't want the "-C" option.
13563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13564 # Also, AIX nm treats weak defined symbols like other global defined
13565 # symbols, whereas GNU nm marks them as "W".
13566 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13567 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'
13568 else
Matthias Klose84c1b9d2016-11-15 16:34:02 +000013569 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Kirill Yukhin5f520812014-11-13 14:03:17 +000013570 fi
13571 ;;
13572 pw32*)
13573 export_symbols_cmds_CXX="$ltdll_cmds"
13574 ;;
13575 cygwin* | mingw* | cegcc*)
13576 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'
13577 ;;
13578 *)
13579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13580 ;;
13581 esac
13582 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13583
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13585$as_echo "$ld_shlibs_CXX" >&6; }
13586test "$ld_shlibs_CXX" = no && can_build_shared=no
13587
13588with_gnu_ld_CXX=$with_gnu_ld
13589
13590
13591
13592
13593
13594
13595#
13596# Do we need to explicitly link libc?
13597#
13598case "x$archive_cmds_need_lc_CXX" in
13599x|xyes)
13600 # Assume -lc should be added
13601 archive_cmds_need_lc_CXX=yes
13602
13603 if test "$enable_shared" = yes && test "$GCC" = yes; then
13604 case $archive_cmds_CXX in
13605 *'~'*)
13606 # FIXME: we may have to deal with multi-command sequences.
13607 ;;
13608 '$CC '*)
13609 # Test whether the compiler implicitly links with -lc since on some
13610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13611 # to ld, don't add -lc before -lgcc.
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13613$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13614if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616else
13617 $RM conftest*
13618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13619
13620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13621 (eval $ac_compile) 2>&5
13622 ac_status=$?
13623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624 test $ac_status = 0; } 2>conftest.err; then
13625 soname=conftest
13626 lib=conftest
13627 libobjs=conftest.$ac_objext
13628 deplibs=
13629 wl=$lt_prog_compiler_wl_CXX
13630 pic_flag=$lt_prog_compiler_pic_CXX
13631 compiler_flags=-v
13632 linker_flags=-v
13633 verstring=
13634 output_objdir=.
13635 libname=conftest
13636 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13637 allow_undefined_flag_CXX=
13638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13639 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13640 ac_status=$?
13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13642 test $ac_status = 0; }
13643 then
13644 lt_cv_archive_cmds_need_lc_CXX=no
13645 else
13646 lt_cv_archive_cmds_need_lc_CXX=yes
13647 fi
13648 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13649 else
13650 cat conftest.err 1>&5
13651 fi
13652 $RM conftest*
13653
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13656$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13657 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13658 ;;
13659 esac
13660 fi
13661 ;;
13662esac
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
13724
13725
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13728$as_echo_n "checking dynamic linker characteristics... " >&6; }
13729
13730library_names_spec=
13731libname_spec='lib$name'
13732soname_spec=
13733shrext_cmds=".so"
13734postinstall_cmds=
13735postuninstall_cmds=
13736finish_cmds=
13737finish_eval=
13738shlibpath_var=
13739shlibpath_overrides_runpath=unknown
13740version_type=none
13741dynamic_linker="$host_os ld.so"
13742sys_lib_dlsearch_path_spec="/lib /usr/lib"
13743need_lib_prefix=unknown
13744hardcode_into_libs=no
13745
13746# when you set need_version to no, make sure it does not cause -set_version
13747# flags to be left without arguments
13748need_version=unknown
13749
13750case $host_os in
13751aix3*)
13752 version_type=linux
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13754 shlibpath_var=LIBPATH
13755
13756 # AIX 3 has no versioning support, so we append a major version to the name.
13757 soname_spec='${libname}${release}${shared_ext}$major'
13758 ;;
13759
13760aix[4-9]*)
13761 version_type=linux
13762 need_lib_prefix=no
13763 need_version=no
13764 hardcode_into_libs=yes
13765 if test "$host_cpu" = ia64; then
13766 # AIX 5 supports IA64
13767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 else
13770 # With GCC up to 2.95.x, collect2 would create an import file
13771 # for dependence libraries. The import file would start with
13772 # the line `#! .'. This would cause the generated library to
13773 # depend on `.', always an invalid library. This was fixed in
13774 # development snapshots of GCC prior to 3.0.
13775 case $host_os in
13776 aix4 | aix4.[01] | aix4.[01].*)
13777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13778 echo ' yes '
13779 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13780 :
13781 else
13782 can_build_shared=no
13783 fi
13784 ;;
13785 esac
13786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13787 # soname into executable. Probably we can add versioning support to
13788 # collect2, so additional links can be useful in future.
13789 if test "$aix_use_runtimelinking" = yes; then
13790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13791 # instead of lib<name>.a to let people know that these are not
13792 # typical AIX shared libraries.
13793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794 else
13795 # We preserve .a as extension for shared libraries through AIX4.2
13796 # and later when we are not doing run time linking.
13797 library_names_spec='${libname}${release}.a $libname.a'
13798 soname_spec='${libname}${release}${shared_ext}$major'
13799 fi
13800 shlibpath_var=LIBPATH
13801 fi
13802 ;;
13803
13804amigaos*)
13805 case $host_cpu in
13806 powerpc)
13807 # Since July 2007 AmigaOS4 officially supports .so libraries.
13808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13810 ;;
13811 m68k)
13812 library_names_spec='$libname.ixlibrary $libname.a'
13813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13814 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'
13815 ;;
13816 esac
13817 ;;
13818
13819beos*)
13820 library_names_spec='${libname}${shared_ext}'
13821 dynamic_linker="$host_os ld.so"
13822 shlibpath_var=LIBRARY_PATH
13823 ;;
13824
13825bsdi[45]*)
13826 version_type=linux
13827 need_version=no
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
13830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13834 # the default ld.so.conf also contains /usr/contrib/lib and
13835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13836 # libtool to hard-code these into programs
13837 ;;
13838
13839cygwin* | mingw* | pw32* | cegcc*)
13840 version_type=windows
13841 shrext_cmds=".dll"
13842 need_version=no
13843 need_lib_prefix=no
13844
13845 case $GCC,$host_os in
13846 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13847 library_names_spec='$libname.dll.a'
13848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13849 postinstall_cmds='base_file=`basename \${file}`~
13850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13851 dldir=$destdir/`dirname \$dlpath`~
13852 test -d \$dldir || mkdir -p \$dldir~
13853 $install_prog $dir/$dlname \$dldir/$dlname~
13854 chmod a+x \$dldir/$dlname~
13855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13857 fi'
13858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13859 dlpath=$dir/\$dldll~
13860 $RM \$dlpath'
13861 shlibpath_overrides_runpath=yes
13862
13863 case $host_os in
13864 cygwin*)
13865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13867
13868 ;;
13869 mingw* | cegcc*)
13870 # MinGW DLLs use traditional 'lib' prefix
13871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13872 ;;
13873 pw32*)
13874 # pw32 DLLs use 'pw' prefix rather than 'lib'
13875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13876 ;;
13877 esac
13878 ;;
13879
13880 *)
13881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13882 ;;
13883 esac
13884 dynamic_linker='Win32 ld.exe'
13885 # FIXME: first we should search . and the directory the executable is in
13886 shlibpath_var=PATH
13887 ;;
13888
13889darwin* | rhapsody*)
13890 dynamic_linker="$host_os dyld"
13891 version_type=darwin
13892 need_lib_prefix=no
13893 need_version=no
13894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13895 soname_spec='${libname}${release}${major}$shared_ext'
13896 shlibpath_overrides_runpath=yes
13897 shlibpath_var=DYLD_LIBRARY_PATH
13898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13899
13900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13901 ;;
13902
13903dgux*)
13904 version_type=linux
13905 need_lib_prefix=no
13906 need_version=no
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 ;;
13911
13912freebsd* | dragonfly*)
13913 # DragonFly does not have aout. When/if they implement a new
13914 # versioning mechanism, adjust this.
13915 if test -x /usr/bin/objformat; then
13916 objformat=`/usr/bin/objformat`
13917 else
13918 case $host_os in
13919 freebsd[23].*) objformat=aout ;;
13920 *) objformat=elf ;;
13921 esac
13922 fi
13923 version_type=freebsd-$objformat
13924 case $version_type in
13925 freebsd-elf*)
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13927 need_version=no
13928 need_lib_prefix=no
13929 ;;
13930 freebsd-*)
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13932 need_version=yes
13933 ;;
13934 esac
13935 shlibpath_var=LD_LIBRARY_PATH
13936 case $host_os in
13937 freebsd2.*)
13938 shlibpath_overrides_runpath=yes
13939 ;;
13940 freebsd3.[01]* | freebsdelf3.[01]*)
13941 shlibpath_overrides_runpath=yes
13942 hardcode_into_libs=yes
13943 ;;
13944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13946 shlibpath_overrides_runpath=no
13947 hardcode_into_libs=yes
13948 ;;
13949 *) # from 4.6 on, and DragonFly
13950 shlibpath_overrides_runpath=yes
13951 hardcode_into_libs=yes
13952 ;;
13953 esac
13954 ;;
13955
13956gnu*)
13957 version_type=linux
13958 need_lib_prefix=no
13959 need_version=no
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 hardcode_into_libs=yes
13964 ;;
13965
13966haiku*)
13967 version_type=linux
13968 need_lib_prefix=no
13969 need_version=no
13970 dynamic_linker="$host_os runtime_loader"
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LIBRARY_PATH
13974 shlibpath_overrides_runpath=yes
13975 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13976 hardcode_into_libs=yes
13977 ;;
13978
13979hpux9* | hpux10* | hpux11*)
13980 # Give a soname corresponding to the major version so that dld.sl refuses to
13981 # link against other versions.
13982 version_type=sunos
13983 need_lib_prefix=no
13984 need_version=no
13985 case $host_cpu in
13986 ia64*)
13987 shrext_cmds='.so'
13988 hardcode_into_libs=yes
13989 dynamic_linker="$host_os dld.so"
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 if test "X$HPUX_IA64_MODE" = X32; then
13995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13996 else
13997 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13998 fi
13999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14000 ;;
14001 hppa*64*)
14002 shrext_cmds='.sl'
14003 hardcode_into_libs=yes
14004 dynamic_linker="$host_os dld.sl"
14005 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14008 soname_spec='${libname}${release}${shared_ext}$major'
14009 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14010 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14011 ;;
14012 *)
14013 shrext_cmds='.sl'
14014 dynamic_linker="$host_os dld.sl"
14015 shlibpath_var=SHLIB_PATH
14016 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14018 soname_spec='${libname}${release}${shared_ext}$major'
14019 ;;
14020 esac
14021 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14022 postinstall_cmds='chmod 555 $lib'
14023 # or fails outright, so override atomically:
14024 install_override_mode=555
14025 ;;
14026
14027interix[3-9]*)
14028 version_type=linux
14029 need_lib_prefix=no
14030 need_version=no
14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14032 soname_spec='${libname}${release}${shared_ext}$major'
14033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 shlibpath_overrides_runpath=no
14036 hardcode_into_libs=yes
14037 ;;
14038
14039irix5* | irix6* | nonstopux*)
14040 case $host_os in
14041 nonstopux*) version_type=nonstopux ;;
14042 *)
14043 if test "$lt_cv_prog_gnu_ld" = yes; then
14044 version_type=linux
14045 else
14046 version_type=irix
14047 fi ;;
14048 esac
14049 need_lib_prefix=no
14050 need_version=no
14051 soname_spec='${libname}${release}${shared_ext}$major'
14052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14053 case $host_os in
14054 irix5* | nonstopux*)
14055 libsuff= shlibsuff=
14056 ;;
14057 *)
14058 case $LD in # libtool.m4 will add one of these switches to LD
14059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14060 libsuff= shlibsuff= libmagic=32-bit;;
14061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14062 libsuff=32 shlibsuff=N32 libmagic=N32;;
14063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14065 *) libsuff= shlibsuff= libmagic=never-match;;
14066 esac
14067 ;;
14068 esac
14069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14070 shlibpath_overrides_runpath=no
14071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14073 hardcode_into_libs=yes
14074 ;;
14075
14076# No shared lib support for Linux oldld, aout, or coff.
14077linux*oldld* | linux*aout* | linux*coff*)
14078 dynamic_linker=no
14079 ;;
14080
14081# This must be Linux ELF.
14082linux* | k*bsd*-gnu | kopensolaris*-gnu)
14083 version_type=linux
14084 need_lib_prefix=no
14085 need_version=no
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14089 shlibpath_var=LD_LIBRARY_PATH
14090 shlibpath_overrides_runpath=no
14091
14092 # Some binutils ld are patched to set DT_RUNPATH
14093 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095else
14096 lt_cv_shlibpath_overrides_runpath=no
14097 save_LDFLAGS=$LDFLAGS
14098 save_libdir=$libdir
14099 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14100 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h. */
14103
14104int
14105main ()
14106{
14107
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112if ac_fn_cxx_try_link "$LINENO"; then :
14113 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14114 lt_cv_shlibpath_overrides_runpath=yes
14115fi
14116fi
14117rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LDFLAGS=$save_LDFLAGS
14120 libdir=$save_libdir
14121
14122fi
14123
14124 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14125
14126 # This implies no fast_install, which is unacceptable.
14127 # Some rework will be needed to allow for fast_install
14128 # before this can be enabled.
14129 hardcode_into_libs=yes
14130
14131 # Append ld.so.conf contents to the search path
14132 if test -f /etc/ld.so.conf; then
14133 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' ' '`
14134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14135 fi
14136
14137 # We used to test for /lib/ld.so.1 and disable shared libraries on
14138 # powerpc, because MkLinux only supported shared libraries with the
14139 # GNU dynamic linker. Since this was broken with cross compilers,
14140 # most powerpc-linux boxes support dynamic linking these days and
14141 # people can always --disable-shared, the test was removed, and we
14142 # assume the GNU/Linux dynamic linker is in use.
14143 dynamic_linker='GNU/Linux ld.so'
14144 ;;
14145
14146netbsd*)
14147 version_type=sunos
14148 need_lib_prefix=no
14149 need_version=no
14150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14153 dynamic_linker='NetBSD (a.out) ld.so'
14154 else
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 dynamic_linker='NetBSD ld.elf_so'
14158 fi
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=yes
14161 hardcode_into_libs=yes
14162 ;;
14163
14164newsos6)
14165 version_type=linux
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 shlibpath_overrides_runpath=yes
14169 ;;
14170
14171*nto* | *qnx*)
14172 version_type=qnx
14173 need_lib_prefix=no
14174 need_version=no
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath=no
14179 hardcode_into_libs=yes
14180 dynamic_linker='ldqnx.so'
14181 ;;
14182
14183openbsd*)
14184 version_type=sunos
14185 sys_lib_dlsearch_path_spec="/usr/lib"
14186 need_lib_prefix=no
14187 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14188 case $host_os in
14189 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14190 *) need_version=no ;;
14191 esac
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14196 case $host_os in
14197 openbsd2.[89] | openbsd2.[89].*)
14198 shlibpath_overrides_runpath=no
14199 ;;
14200 *)
14201 shlibpath_overrides_runpath=yes
14202 ;;
14203 esac
14204 else
14205 shlibpath_overrides_runpath=yes
14206 fi
14207 ;;
14208
14209os2*)
14210 libname_spec='$name'
14211 shrext_cmds=".dll"
14212 need_lib_prefix=no
14213 library_names_spec='$libname${shared_ext} $libname.a'
14214 dynamic_linker='OS/2 ld.exe'
14215 shlibpath_var=LIBPATH
14216 ;;
14217
14218osf3* | osf4* | osf5*)
14219 version_type=osf
14220 need_lib_prefix=no
14221 need_version=no
14222 soname_spec='${libname}${release}${shared_ext}$major'
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 shlibpath_var=LD_LIBRARY_PATH
14225 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14226 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14227 ;;
14228
14229rdos*)
14230 dynamic_linker=no
14231 ;;
14232
14233solaris*)
14234 version_type=linux
14235 need_lib_prefix=no
14236 need_version=no
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LD_LIBRARY_PATH
14240 shlibpath_overrides_runpath=yes
14241 hardcode_into_libs=yes
14242 # ldd complains unless libraries are executable
14243 postinstall_cmds='chmod +x $lib'
14244 ;;
14245
14246sunos4*)
14247 version_type=sunos
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14249 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath=yes
14252 if test "$with_gnu_ld" = yes; then
14253 need_lib_prefix=no
14254 fi
14255 need_version=yes
14256 ;;
14257
14258sysv4 | sysv4.3*)
14259 version_type=linux
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 case $host_vendor in
14264 sni)
14265 shlibpath_overrides_runpath=no
14266 need_lib_prefix=no
14267 runpath_var=LD_RUN_PATH
14268 ;;
14269 siemens)
14270 need_lib_prefix=no
14271 ;;
14272 motorola)
14273 need_lib_prefix=no
14274 need_version=no
14275 shlibpath_overrides_runpath=no
14276 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14277 ;;
14278 esac
14279 ;;
14280
14281sysv4*MP*)
14282 if test -d /usr/nec ;then
14283 version_type=linux
14284 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14285 soname_spec='$libname${shared_ext}.$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 fi
14288 ;;
14289
14290sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14291 version_type=freebsd-elf
14292 need_lib_prefix=no
14293 need_version=no
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14295 soname_spec='${libname}${release}${shared_ext}$major'
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes
14298 hardcode_into_libs=yes
14299 if test "$with_gnu_ld" = yes; then
14300 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14301 else
14302 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14303 case $host_os in
14304 sco3.2v5*)
14305 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14306 ;;
14307 esac
14308 fi
14309 sys_lib_dlsearch_path_spec='/usr/lib'
14310 ;;
14311
14312tpf*)
14313 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14314 version_type=linux
14315 need_lib_prefix=no
14316 need_version=no
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 shlibpath_overrides_runpath=no
14320 hardcode_into_libs=yes
14321 ;;
14322
14323uts4*)
14324 version_type=linux
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 ;;
14329
14330*)
14331 dynamic_linker=no
14332 ;;
14333esac
14334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14335$as_echo "$dynamic_linker" >&6; }
14336test "$dynamic_linker" = no && can_build_shared=no
14337
14338variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14339if test "$GCC" = yes; then
14340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14341fi
14342
14343if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14344 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14345fi
14346if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14347 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14348fi
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
14384
14385
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14388$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14389hardcode_action_CXX=
14390if test -n "$hardcode_libdir_flag_spec_CXX" ||
14391 test -n "$runpath_var_CXX" ||
14392 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14393
14394 # We can hardcode non-existent directories.
14395 if test "$hardcode_direct_CXX" != no &&
14396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14397 # have to relink, otherwise we might link with an installed library
14398 # when we should be linking with a yet-to-be-installed one
14399 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14400 test "$hardcode_minus_L_CXX" != no; then
14401 # Linking always hardcodes the temporary library directory.
14402 hardcode_action_CXX=relink
14403 else
14404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14405 hardcode_action_CXX=immediate
14406 fi
14407else
14408 # We cannot hardcode anything, or else we can only hardcode existing
14409 # directories.
14410 hardcode_action_CXX=unsupported
14411fi
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14413$as_echo "$hardcode_action_CXX" >&6; }
14414
14415if test "$hardcode_action_CXX" = relink ||
14416 test "$inherit_rpath_CXX" = yes; then
14417 # Fast installation is not supported
14418 enable_fast_install=no
14419elif test "$shlibpath_overrides_runpath" = yes ||
14420 test "$enable_shared" = no; then
14421 # Fast installation is not necessary
14422 enable_fast_install=needless
14423fi
14424
14425
14426
14427
14428
14429
14430
14431 fi # test -n "$compiler"
14432
14433 CC=$lt_save_CC
14434 LDCXX=$LD
14435 LD=$lt_save_LD
14436 GCC=$lt_save_GCC
14437 with_gnu_ld=$lt_save_with_gnu_ld
14438 lt_cv_path_LDCXX=$lt_cv_path_LD
14439 lt_cv_path_LD=$lt_save_path_LD
14440 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14441 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14442fi # test "$_lt_caught_CXX_error" != yes
14443
14444ac_ext=c
14445ac_cpp='$CPP $CPPFLAGS'
14446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14448ac_compiler_gnu=$ac_cv_c_compiler_gnu
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462 ac_config_commands="$ac_config_commands libtool"
14463
14464
14465
14466
14467# Only expand once:
14468
14469
14470# Forbid libtool to hardcode RPATH, because we want to be able to specify
14471# library search directory using LD_LIBRARY_PATH
14472hardcode_into_libs=no
14473
14474
14475
14476
14477
14478if test $enable_shared = yes; then
14479 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14480 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14481else
14482 link_offloadmic_host="-loffloadmic_host $LIBS"
14483 link_offloadmic_target="-loffloadmic_target $LIBS"
14484fi
14485
14486
14487
Jakub Jelinek3c36aa62017-01-17 10:38:48 +010014488# Determine what GCC version number to use in filesystem paths.
14489
14490 get_gcc_base_ver="cat"
14491
14492# Check whether --with-gcc-major-version-only was given.
14493if test "${with_gcc_major_version_only+set}" = set; then :
14494 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14495 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
14496 fi
14497
14498fi
14499
14500
14501
14502
Kirill Yukhin5f520812014-11-13 14:03:17 +000014503# Must be last
14504cat >confcache <<\_ACEOF
14505# This file is a shell script that caches the results of configure
14506# tests run on this system so they can be shared between configure
14507# scripts and configure runs, see configure's option --config-cache.
14508# It is not useful on other systems. If it contains results you don't
14509# want to keep, you may remove or edit it.
14510#
14511# config.status only pays attention to the cache file if you give it
14512# the --recheck option to rerun configure.
14513#
14514# `ac_cv_env_foo' variables (set or unset) will be overridden when
14515# loading this file, other *unset* `ac_cv_foo' will be assigned the
14516# following values.
14517
14518_ACEOF
14519
14520# The following way of writing the cache mishandles newlines in values,
14521# but we know of no workaround that is simple, portable, and efficient.
14522# So, we kill variables containing newlines.
14523# Ultrix sh set writes to stderr and can't be redirected directly,
14524# and sets the high bit in the cache file unless we assign to the vars.
14525(
14526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14527 eval ac_val=\$$ac_var
14528 case $ac_val in #(
14529 *${as_nl}*)
14530 case $ac_var in #(
14531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14532$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14533 esac
14534 case $ac_var in #(
14535 _ | IFS | as_nl) ;; #(
14536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14537 *) { eval $ac_var=; unset $ac_var;} ;;
14538 esac ;;
14539 esac
14540 done
14541
14542 (set) 2>&1 |
14543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14544 *${as_nl}ac_space=\ *)
14545 # `set' does not quote correctly, so add quotes: double-quote
14546 # substitution turns \\\\ into \\, and sed turns \\ into \.
14547 sed -n \
14548 "s/'/'\\\\''/g;
14549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14550 ;; #(
14551 *)
14552 # `set' quotes correctly as required by POSIX, so do not add quotes.
14553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14554 ;;
14555 esac |
14556 sort
14557) |
14558 sed '
14559 /^ac_cv_env_/b end
14560 t clear
14561 :clear
14562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14563 t end
14564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14565 :end' >>confcache
14566if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14567 if test -w "$cache_file"; then
14568 test "x$cache_file" != "x/dev/null" &&
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14570$as_echo "$as_me: updating cache $cache_file" >&6;}
14571 cat confcache >$cache_file
14572 else
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14574$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14575 fi
14576fi
14577rm -f confcache
14578
14579test "x$prefix" = xNONE && prefix=$ac_default_prefix
14580# Let make expand exec_prefix.
14581test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14582
14583# Transform confdefs.h into DEFS.
14584# Protect against shell expansion while executing Makefile rules.
14585# Protect against Makefile macro expansion.
14586#
14587# If the first sed substitution is executed (which looks for macros that
14588# take arguments), then branch to the quote section. Otherwise,
14589# look for a macro that doesn't take arguments.
14590ac_script='
14591:mline
14592/\\$/{
14593 N
14594 s,\\\n,,
14595 b mline
14596}
14597t clear
14598:clear
14599s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14600t quote
14601s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14602t quote
14603b any
14604:quote
14605s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14606s/\[/\\&/g
14607s/\]/\\&/g
14608s/\$/$$/g
14609H
14610:any
14611${
14612 g
14613 s/^\n//
14614 s/\n/ /g
14615 p
14616}
14617'
14618DEFS=`sed -n "$ac_script" confdefs.h`
14619
14620
14621ac_libobjs=
14622ac_ltlibobjs=
14623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14624 # 1. Remove the extension, and $U if already installed.
14625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14628 # will be set to the directory where LIBOBJS objects are built.
14629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14631done
14632LIBOBJS=$ac_libobjs
14633
14634LTLIBOBJS=$ac_ltlibobjs
14635
14636
14637 if test -n "$EXEEXT"; then
14638 am__EXEEXT_TRUE=
14639 am__EXEEXT_FALSE='#'
14640else
14641 am__EXEEXT_TRUE='#'
14642 am__EXEEXT_FALSE=
14643fi
14644
14645if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14646 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14647Usually this means the macro was only invoked conditionally." "$LINENO" 5
14648fi
14649if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14650 as_fn_error "conditional \"AMDEP\" was never defined.
14651Usually this means the macro was only invoked conditionally." "$LINENO" 5
14652fi
14653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14654 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14655Usually this means the macro was only invoked conditionally." "$LINENO" 5
14656fi
14657if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14658 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14659Usually this means the macro was only invoked conditionally." "$LINENO" 5
14660fi
14661if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14662 as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14663Usually this means the macro was only invoked conditionally." "$LINENO" 5
14664fi
14665
14666: ${CONFIG_STATUS=./config.status}
14667ac_write_fail=0
14668ac_clean_files_save=$ac_clean_files
14669ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14671$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14672as_write_fail=0
14673cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14674#! $SHELL
14675# Generated by $as_me.
14676# Run this file to recreate the current configuration.
14677# Compiler output produced by configure, useful for debugging
14678# configure, is in config.log if it exists.
14679
14680debug=false
14681ac_cs_recheck=false
14682ac_cs_silent=false
14683
14684SHELL=\${CONFIG_SHELL-$SHELL}
14685export SHELL
14686_ASEOF
14687cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14688## -------------------- ##
14689## M4sh Initialization. ##
14690## -------------------- ##
14691
14692# Be more Bourne compatible
14693DUALCASE=1; export DUALCASE # for MKS sh
14694if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14695 emulate sh
14696 NULLCMD=:
14697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14698 # is contrary to our usage. Disable this feature.
14699 alias -g '${1+"$@"}'='"$@"'
14700 setopt NO_GLOB_SUBST
14701else
14702 case `(set -o) 2>/dev/null` in #(
14703 *posix*) :
14704 set -o posix ;; #(
14705 *) :
14706 ;;
14707esac
14708fi
14709
14710
14711as_nl='
14712'
14713export as_nl
14714# Printing a long string crashes Solaris 7 /usr/bin/printf.
14715as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14717as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14718# Prefer a ksh shell builtin over an external printf program on Solaris,
14719# but without wasting forks for bash or zsh.
14720if test -z "$BASH_VERSION$ZSH_VERSION" \
14721 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14722 as_echo='print -r --'
14723 as_echo_n='print -rn --'
14724elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14725 as_echo='printf %s\n'
14726 as_echo_n='printf %s'
14727else
14728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14729 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14730 as_echo_n='/usr/ucb/echo -n'
14731 else
14732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14733 as_echo_n_body='eval
14734 arg=$1;
14735 case $arg in #(
14736 *"$as_nl"*)
14737 expr "X$arg" : "X\\(.*\\)$as_nl";
14738 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14739 esac;
14740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14741 '
14742 export as_echo_n_body
14743 as_echo_n='sh -c $as_echo_n_body as_echo'
14744 fi
14745 export as_echo_body
14746 as_echo='sh -c $as_echo_body as_echo'
14747fi
14748
14749# The user is always right.
14750if test "${PATH_SEPARATOR+set}" != set; then
14751 PATH_SEPARATOR=:
14752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14754 PATH_SEPARATOR=';'
14755 }
14756fi
14757
14758
14759# IFS
14760# We need space, tab and new line, in precisely that order. Quoting is
14761# there to prevent editors from complaining about space-tab.
14762# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14763# splitting by setting IFS to empty value.)
14764IFS=" "" $as_nl"
14765
14766# Find who we are. Look in the path if we contain no directory separator.
14767case $0 in #((
14768 *[\\/]* ) as_myself=$0 ;;
14769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770for as_dir in $PATH
14771do
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14775 done
14776IFS=$as_save_IFS
14777
14778 ;;
14779esac
14780# We did not find ourselves, most probably we were run as `sh COMMAND'
14781# in which case we are not to be found in the path.
14782if test "x$as_myself" = x; then
14783 as_myself=$0
14784fi
14785if test ! -f "$as_myself"; then
14786 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14787 exit 1
14788fi
14789
14790# Unset variables that we do not need and which cause bugs (e.g. in
14791# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14792# suppresses any "Segmentation fault" message there. '((' could
14793# trigger a bug in pdksh 5.2.14.
14794for as_var in BASH_ENV ENV MAIL MAILPATH
14795do eval test x\${$as_var+set} = xset \
14796 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14797done
14798PS1='$ '
14799PS2='> '
14800PS4='+ '
14801
14802# NLS nuisances.
14803LC_ALL=C
14804export LC_ALL
14805LANGUAGE=C
14806export LANGUAGE
14807
14808# CDPATH.
14809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14810
14811
14812# as_fn_error ERROR [LINENO LOG_FD]
14813# ---------------------------------
14814# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14815# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14816# script with status $?, using 1 if that was 0.
14817as_fn_error ()
14818{
14819 as_status=$?; test $as_status -eq 0 && as_status=1
14820 if test "$3"; then
14821 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14822 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14823 fi
14824 $as_echo "$as_me: error: $1" >&2
14825 as_fn_exit $as_status
14826} # as_fn_error
14827
14828
14829# as_fn_set_status STATUS
14830# -----------------------
14831# Set $? to STATUS, without forking.
14832as_fn_set_status ()
14833{
14834 return $1
14835} # as_fn_set_status
14836
14837# as_fn_exit STATUS
14838# -----------------
14839# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14840as_fn_exit ()
14841{
14842 set +e
14843 as_fn_set_status $1
14844 exit $1
14845} # as_fn_exit
14846
14847# as_fn_unset VAR
14848# ---------------
14849# Portably unset VAR.
14850as_fn_unset ()
14851{
14852 { eval $1=; unset $1;}
14853}
14854as_unset=as_fn_unset
14855# as_fn_append VAR VALUE
14856# ----------------------
14857# Append the text in VALUE to the end of the definition contained in VAR. Take
14858# advantage of any shell optimizations that allow amortized linear growth over
14859# repeated appends, instead of the typical quadratic growth present in naive
14860# implementations.
14861if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14862 eval 'as_fn_append ()
14863 {
14864 eval $1+=\$2
14865 }'
14866else
14867 as_fn_append ()
14868 {
14869 eval $1=\$$1\$2
14870 }
14871fi # as_fn_append
14872
14873# as_fn_arith ARG...
14874# ------------------
14875# Perform arithmetic evaluation on the ARGs, and store the result in the
14876# global $as_val. Take advantage of shells that can avoid forks. The arguments
14877# must be portable across $(()) and expr.
14878if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14879 eval 'as_fn_arith ()
14880 {
14881 as_val=$(( $* ))
14882 }'
14883else
14884 as_fn_arith ()
14885 {
14886 as_val=`expr "$@" || test $? -eq 1`
14887 }
14888fi # as_fn_arith
14889
14890
14891if expr a : '\(a\)' >/dev/null 2>&1 &&
14892 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14893 as_expr=expr
14894else
14895 as_expr=false
14896fi
14897
14898if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14899 as_basename=basename
14900else
14901 as_basename=false
14902fi
14903
14904if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14905 as_dirname=dirname
14906else
14907 as_dirname=false
14908fi
14909
14910as_me=`$as_basename -- "$0" ||
14911$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14912 X"$0" : 'X\(//\)$' \| \
14913 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14914$as_echo X/"$0" |
14915 sed '/^.*\/\([^/][^/]*\)\/*$/{
14916 s//\1/
14917 q
14918 }
14919 /^X\/\(\/\/\)$/{
14920 s//\1/
14921 q
14922 }
14923 /^X\/\(\/\).*/{
14924 s//\1/
14925 q
14926 }
14927 s/.*/./; q'`
14928
14929# Avoid depending upon Character Ranges.
14930as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14931as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14932as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14933as_cr_digits='0123456789'
14934as_cr_alnum=$as_cr_Letters$as_cr_digits
14935
14936ECHO_C= ECHO_N= ECHO_T=
14937case `echo -n x` in #(((((
14938-n*)
14939 case `echo 'xy\c'` in
14940 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14941 xy) ECHO_C='\c';;
14942 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14943 ECHO_T=' ';;
14944 esac;;
14945*)
14946 ECHO_N='-n';;
14947esac
14948
14949rm -f conf$$ conf$$.exe conf$$.file
14950if test -d conf$$.dir; then
14951 rm -f conf$$.dir/conf$$.file
14952else
14953 rm -f conf$$.dir
14954 mkdir conf$$.dir 2>/dev/null
14955fi
14956if (echo >conf$$.file) 2>/dev/null; then
14957 if ln -s conf$$.file conf$$ 2>/dev/null; then
14958 as_ln_s='ln -s'
14959 # ... but there are two gotchas:
14960 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14961 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14962 # In both cases, we have to default to `cp -p'.
14963 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14964 as_ln_s='cp -p'
14965 elif ln conf$$.file conf$$ 2>/dev/null; then
14966 as_ln_s=ln
14967 else
14968 as_ln_s='cp -p'
14969 fi
14970else
14971 as_ln_s='cp -p'
14972fi
14973rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14974rmdir conf$$.dir 2>/dev/null
14975
14976
14977# as_fn_mkdir_p
14978# -------------
14979# Create "$as_dir" as a directory, including parents if necessary.
14980as_fn_mkdir_p ()
14981{
14982
14983 case $as_dir in #(
14984 -*) as_dir=./$as_dir;;
14985 esac
14986 test -d "$as_dir" || eval $as_mkdir_p || {
14987 as_dirs=
14988 while :; do
14989 case $as_dir in #(
14990 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14991 *) as_qdir=$as_dir;;
14992 esac
14993 as_dirs="'$as_qdir' $as_dirs"
14994 as_dir=`$as_dirname -- "$as_dir" ||
14995$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14996 X"$as_dir" : 'X\(//\)[^/]' \| \
14997 X"$as_dir" : 'X\(//\)$' \| \
14998 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14999$as_echo X"$as_dir" |
15000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15001 s//\1/
15002 q
15003 }
15004 /^X\(\/\/\)[^/].*/{
15005 s//\1/
15006 q
15007 }
15008 /^X\(\/\/\)$/{
15009 s//\1/
15010 q
15011 }
15012 /^X\(\/\).*/{
15013 s//\1/
15014 q
15015 }
15016 s/.*/./; q'`
15017 test -d "$as_dir" && break
15018 done
15019 test -z "$as_dirs" || eval "mkdir $as_dirs"
15020 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15021
15022
15023} # as_fn_mkdir_p
15024if mkdir -p . 2>/dev/null; then
15025 as_mkdir_p='mkdir -p "$as_dir"'
15026else
15027 test -d ./-p && rmdir ./-p
15028 as_mkdir_p=false
15029fi
15030
15031if test -x / >/dev/null 2>&1; then
15032 as_test_x='test -x'
15033else
15034 if ls -dL / >/dev/null 2>&1; then
15035 as_ls_L_option=L
15036 else
15037 as_ls_L_option=
15038 fi
15039 as_test_x='
15040 eval sh -c '\''
15041 if test -d "$1"; then
15042 test -d "$1/.";
15043 else
15044 case $1 in #(
15045 -*)set "./$1";;
15046 esac;
15047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15048 ???[sx]*):;;*)false;;esac;fi
15049 '\'' sh
15050 '
15051fi
15052as_executable_p=$as_test_x
15053
15054# Sed expression to map a string onto a valid CPP name.
15055as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15056
15057# Sed expression to map a string onto a valid variable name.
15058as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15059
15060
15061exec 6>&1
15062## ----------------------------------- ##
15063## Main body of $CONFIG_STATUS script. ##
15064## ----------------------------------- ##
15065_ASEOF
15066test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15067
15068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15069# Save the log message, to keep $0 and so on meaningful, and to
15070# report actual input values of CONFIG_FILES etc. instead of their
15071# values after options handling.
15072ac_log="
15073This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15074generated by GNU Autoconf 2.64. Invocation command line was
15075
15076 CONFIG_FILES = $CONFIG_FILES
15077 CONFIG_HEADERS = $CONFIG_HEADERS
15078 CONFIG_LINKS = $CONFIG_LINKS
15079 CONFIG_COMMANDS = $CONFIG_COMMANDS
15080 $ $0 $@
15081
15082on `(hostname || uname -n) 2>/dev/null | sed 1q`
15083"
15084
15085_ACEOF
15086
15087case $ac_config_files in *"
15088"*) set x $ac_config_files; shift; ac_config_files=$*;;
15089esac
15090
15091
15092
15093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094# Files that config.status was made for.
15095config_files="$ac_config_files"
15096config_commands="$ac_config_commands"
15097
15098_ACEOF
15099
15100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101ac_cs_usage="\
15102\`$as_me' instantiates files and other configuration actions
15103from templates according to the current configuration. Unless the files
15104and actions are specified as TAGs, all are instantiated by default.
15105
15106Usage: $0 [OPTION]... [TAG]...
15107
15108 -h, --help print this help, then exit
15109 -V, --version print version number and configuration settings, then exit
15110 -q, --quiet, --silent
15111 do not print progress messages
15112 -d, --debug don't remove temporary files
15113 --recheck update $as_me by reconfiguring in the same conditions
15114 --file=FILE[:TEMPLATE]
15115 instantiate the configuration file FILE
15116
15117Configuration files:
15118$config_files
15119
15120Configuration commands:
15121$config_commands
15122
15123Report bugs to the package provider."
15124
15125_ACEOF
15126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15127ac_cs_version="\\
15128MIC Offload Runtime Library config.status 1.0
15129configured by $0, generated by GNU Autoconf 2.64,
15130 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15131
15132Copyright (C) 2009 Free Software Foundation, Inc.
15133This config.status script is free software; the Free Software Foundation
15134gives unlimited permission to copy, distribute and modify it."
15135
15136ac_pwd='$ac_pwd'
15137srcdir='$srcdir'
15138INSTALL='$INSTALL'
15139MKDIR_P='$MKDIR_P'
15140AWK='$AWK'
15141test -n "\$AWK" || AWK=awk
15142_ACEOF
15143
15144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145# The default lists apply if the user does not specify any file.
15146ac_need_defaults=:
15147while test $# != 0
15148do
15149 case $1 in
15150 --*=*)
15151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15152 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15153 ac_shift=:
15154 ;;
15155 *)
15156 ac_option=$1
15157 ac_optarg=$2
15158 ac_shift=shift
15159 ;;
15160 esac
15161
15162 case $ac_option in
15163 # Handling of the options.
15164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15165 ac_cs_recheck=: ;;
15166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15167 $as_echo "$ac_cs_version"; exit ;;
15168 --debug | --debu | --deb | --de | --d | -d )
15169 debug=: ;;
15170 --file | --fil | --fi | --f )
15171 $ac_shift
15172 case $ac_optarg in
15173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15174 esac
15175 as_fn_append CONFIG_FILES " '$ac_optarg'"
15176 ac_need_defaults=false;;
15177 --he | --h | --help | --hel | -h )
15178 $as_echo "$ac_cs_usage"; exit ;;
15179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15181 ac_cs_silent=: ;;
15182
15183 # This is an error.
15184 -*) as_fn_error "unrecognized option: \`$1'
15185Try \`$0 --help' for more information." ;;
15186
15187 *) as_fn_append ac_config_targets " $1"
15188 ac_need_defaults=false ;;
15189
15190 esac
15191 shift
15192done
15193
15194ac_configure_extra_args=
15195
15196if $ac_cs_silent; then
15197 exec 6>/dev/null
15198 ac_configure_extra_args="$ac_configure_extra_args --silent"
15199fi
15200
15201_ACEOF
15202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203if \$ac_cs_recheck; then
15204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15205 shift
15206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15207 CONFIG_SHELL='$SHELL'
15208 export CONFIG_SHELL
15209 exec "\$@"
15210fi
15211
15212_ACEOF
15213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214exec 5>>config.log
15215{
15216 echo
15217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15218## Running $as_me. ##
15219_ASBOX
15220 $as_echo "$ac_log"
15221} >&5
15222
15223_ACEOF
15224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15225#
15226# INIT-COMMANDS
15227#
15228AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15229
15230srcdir="$srcdir"
15231host="$host"
15232target="$target"
15233with_multisubdir="$with_multisubdir"
15234with_multisrctop="$with_multisrctop"
15235with_target_subdir="$with_target_subdir"
15236ac_configure_args="${multilib_arg} ${ac_configure_args}"
15237multi_basedir="$multi_basedir"
15238CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15239CC="$CC"
15240CXX="$CXX"
15241GFORTRAN="$GFORTRAN"
Kirill Yukhin5f520812014-11-13 14:03:17 +000015242
15243
15244# The HP-UX ksh and POSIX shell print the target directory to stdout
15245# if CDPATH is set.
15246(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15247
15248sed_quote_subst='$sed_quote_subst'
15249double_quote_subst='$double_quote_subst'
15250delay_variable_subst='$delay_variable_subst'
15251macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15252macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15253enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15254enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15255pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15256enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15257SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15258ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15259host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15260host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15261host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15262build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15263build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15264build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15265SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15266Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15267GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15268EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15269FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15270LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15271NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15272LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15273max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15274ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15275exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15276lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15277lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15278lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15279reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15280reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15281OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15282deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15283file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15284AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15285AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15286STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15287RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15288old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15289old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15290old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15291lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15292CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15293CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15294compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15295GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15296lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15297lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15298lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15299lt_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"`'
15300objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15301MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15302lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15303lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15304lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15305lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15306lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15307need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15308DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15309NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15310LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15311OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15312OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15313libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15314shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15315extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15316archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15317enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15318export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15319whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15320compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15321old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15322old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15323archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15324archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15325module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15326module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15327with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15328allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15329no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15330hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15331hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15332hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15333hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15334hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15335hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15336hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15337hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15338inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15339link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15340fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15341always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15342export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15343exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15344include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15345prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15346file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15347variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15348need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15349need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15350version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15351runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15352shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15353shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15354libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15355library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15356soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15357install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15358postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15359postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15360finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15361finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15362hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15363sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15364sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15365hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15366enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15367enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15368enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15369old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15370striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15371compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15372predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15373postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15374predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15375postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15376compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15377LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15378reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15379reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15380old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15381compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15382GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15383lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15384lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15385lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15386lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15387lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15388archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15389enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15390export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15391whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15392compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15393old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15394old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15395archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15396archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15397module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15398module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15399with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15400allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15401no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15402hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15403hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15404hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15405hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15406hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15407hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15408hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15409hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15410inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15411link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15412fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15413always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15414export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15415exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15416include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15417prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15418file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15419hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15420compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15421predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15422postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15423predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15424postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15425compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15426
15427LTCC='$LTCC'
15428LTCFLAGS='$LTCFLAGS'
15429compiler='$compiler_DEFAULT'
15430
15431# A function that is used when there is no print builtin or printf.
15432func_fallback_echo ()
15433{
15434 eval 'cat <<_LTECHO_EOF
15435\$1
15436_LTECHO_EOF'
15437}
15438
15439# Quote evaled strings.
15440for var in SHELL \
15441ECHO \
15442SED \
15443GREP \
15444EGREP \
15445FGREP \
15446LD \
15447NM \
15448LN_S \
15449lt_SP2NL \
15450lt_NL2SP \
15451reload_flag \
15452OBJDUMP \
15453deplibs_check_method \
15454file_magic_cmd \
15455AR \
15456AR_FLAGS \
15457STRIP \
15458RANLIB \
15459CC \
15460CFLAGS \
15461compiler \
15462lt_cv_sys_global_symbol_pipe \
15463lt_cv_sys_global_symbol_to_cdecl \
15464lt_cv_sys_global_symbol_to_c_name_address \
15465lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15466lt_prog_compiler_no_builtin_flag \
15467lt_prog_compiler_wl \
15468lt_prog_compiler_pic \
15469lt_prog_compiler_static \
15470lt_cv_prog_compiler_c_o \
15471need_locks \
15472DSYMUTIL \
15473NMEDIT \
15474LIPO \
15475OTOOL \
15476OTOOL64 \
15477shrext_cmds \
15478export_dynamic_flag_spec \
15479whole_archive_flag_spec \
15480compiler_needs_object \
15481with_gnu_ld \
15482allow_undefined_flag \
15483no_undefined_flag \
15484hardcode_libdir_flag_spec \
15485hardcode_libdir_flag_spec_ld \
15486hardcode_libdir_separator \
15487fix_srcfile_path \
15488exclude_expsyms \
15489include_expsyms \
15490file_list_spec \
15491variables_saved_for_relink \
15492libname_spec \
15493library_names_spec \
15494soname_spec \
15495install_override_mode \
15496finish_eval \
15497old_striplib \
15498striplib \
15499compiler_lib_search_dirs \
15500predep_objects \
15501postdep_objects \
15502predeps \
15503postdeps \
15504compiler_lib_search_path \
15505LD_CXX \
15506reload_flag_CXX \
15507compiler_CXX \
15508lt_prog_compiler_no_builtin_flag_CXX \
15509lt_prog_compiler_wl_CXX \
15510lt_prog_compiler_pic_CXX \
15511lt_prog_compiler_static_CXX \
15512lt_cv_prog_compiler_c_o_CXX \
15513export_dynamic_flag_spec_CXX \
15514whole_archive_flag_spec_CXX \
15515compiler_needs_object_CXX \
15516with_gnu_ld_CXX \
15517allow_undefined_flag_CXX \
15518no_undefined_flag_CXX \
15519hardcode_libdir_flag_spec_CXX \
15520hardcode_libdir_flag_spec_ld_CXX \
15521hardcode_libdir_separator_CXX \
15522fix_srcfile_path_CXX \
15523exclude_expsyms_CXX \
15524include_expsyms_CXX \
15525file_list_spec_CXX \
15526compiler_lib_search_dirs_CXX \
15527predep_objects_CXX \
15528postdep_objects_CXX \
15529predeps_CXX \
15530postdeps_CXX \
15531compiler_lib_search_path_CXX; do
15532 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15533 *[\\\\\\\`\\"\\\$]*)
15534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15535 ;;
15536 *)
15537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15538 ;;
15539 esac
15540done
15541
15542# Double-quote double-evaled strings.
15543for var in reload_cmds \
15544old_postinstall_cmds \
15545old_postuninstall_cmds \
15546old_archive_cmds \
15547extract_expsyms_cmds \
15548old_archive_from_new_cmds \
15549old_archive_from_expsyms_cmds \
15550archive_cmds \
15551archive_expsym_cmds \
15552module_cmds \
15553module_expsym_cmds \
15554export_symbols_cmds \
15555prelink_cmds \
15556postinstall_cmds \
15557postuninstall_cmds \
15558finish_cmds \
15559sys_lib_search_path_spec \
15560sys_lib_dlsearch_path_spec \
15561reload_cmds_CXX \
15562old_archive_cmds_CXX \
15563old_archive_from_new_cmds_CXX \
15564old_archive_from_expsyms_cmds_CXX \
15565archive_cmds_CXX \
15566archive_expsym_cmds_CXX \
15567module_cmds_CXX \
15568module_expsym_cmds_CXX \
15569export_symbols_cmds_CXX \
15570prelink_cmds_CXX; do
15571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15572 *[\\\\\\\`\\"\\\$]*)
15573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15574 ;;
15575 *)
15576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15577 ;;
15578 esac
15579done
15580
15581ac_aux_dir='$ac_aux_dir'
15582xsi_shell='$xsi_shell'
15583lt_shell_append='$lt_shell_append'
15584
15585# See if we are running on zsh, and set the options which allow our
15586# commands through without removal of \ escapes INIT.
15587if test -n "\${ZSH_VERSION+set}" ; then
15588 setopt NO_GLOB_SUBST
15589fi
15590
15591
15592 PACKAGE='$PACKAGE'
15593 VERSION='$VERSION'
15594 TIMESTAMP='$TIMESTAMP'
15595 RM='$RM'
15596 ofile='$ofile'
15597
15598
15599
15600
15601
15602
15603_ACEOF
15604
15605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606
15607# Handling of arguments.
15608for ac_config_target in $ac_config_targets
15609do
15610 case $ac_config_target in
15611 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15613 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15614 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15615 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15616 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15617
15618 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15619 esac
15620done
15621
15622
15623# If the user did not use the arguments to specify the items to instantiate,
15624# then the envvar interface is used. Set only those that are not.
15625# We use the long form for the default assignment because of an extremely
15626# bizarre bug on SunOS 4.1.3.
15627if $ac_need_defaults; then
15628 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15630fi
15631
15632# Have a temporary directory for convenience. Make it in the build tree
15633# simply because there is no reason against having it here, and in addition,
15634# creating and moving files from /tmp can sometimes cause problems.
15635# Hook for its removal unless debugging.
15636# Note that there is a small window in which the directory will not be cleaned:
15637# after its creation but before its name has been assigned to `$tmp'.
15638$debug ||
15639{
15640 tmp=
15641 trap 'exit_status=$?
15642 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15643' 0
15644 trap 'as_fn_exit 1' 1 2 13 15
15645}
15646# Create a (secure) tmp directory for tmp files.
15647
15648{
15649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15650 test -n "$tmp" && test -d "$tmp"
15651} ||
15652{
15653 tmp=./conf$$-$RANDOM
15654 (umask 077 && mkdir "$tmp")
15655} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15656
15657# Set up the scripts for CONFIG_FILES section.
15658# No need to generate them if there are no CONFIG_FILES.
15659# This happens for instance with `./config.status config.h'.
15660if test -n "$CONFIG_FILES"; then
15661
15662
15663ac_cr=`echo X | tr X '\015'`
15664# On cygwin, bash can eat \r inside `` if the user requested igncr.
15665# But we know of no other shell where ac_cr would be empty at this
15666# point, so we can use a bashism as a fallback.
15667if test "x$ac_cr" = x; then
15668 eval ac_cr=\$\'\\r\'
15669fi
15670ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15671if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15672 ac_cs_awk_cr='\r'
15673else
15674 ac_cs_awk_cr=$ac_cr
15675fi
15676
15677echo 'BEGIN {' >"$tmp/subs1.awk" &&
15678_ACEOF
15679
15680
15681{
15682 echo "cat >conf$$subs.awk <<_ACEOF" &&
15683 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15684 echo "_ACEOF"
15685} >conf$$subs.sh ||
15686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15687ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15688ac_delim='%!_!# '
15689for ac_last_try in false false false false false :; do
15690 . ./conf$$subs.sh ||
15691 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15692
15693 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15694 if test $ac_delim_n = $ac_delim_num; then
15695 break
15696 elif $ac_last_try; then
15697 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15698 else
15699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15700 fi
15701done
15702rm -f conf$$subs.sh
15703
15704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15705cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15706_ACEOF
15707sed -n '
15708h
15709s/^/S["/; s/!.*/"]=/
15710p
15711g
15712s/^[^!]*!//
15713:repl
15714t repl
15715s/'"$ac_delim"'$//
15716t delim
15717:nl
15718h
15719s/\(.\{148\}\).*/\1/
15720t more1
15721s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15722p
15723n
15724b repl
15725:more1
15726s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15727p
15728g
15729s/.\{148\}//
15730t nl
15731:delim
15732h
15733s/\(.\{148\}\).*/\1/
15734t more2
15735s/["\\]/\\&/g; s/^/"/; s/$/"/
15736p
15737b
15738:more2
15739s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15740p
15741g
15742s/.\{148\}//
15743t delim
15744' <conf$$subs.awk | sed '
15745/^[^""]/{
15746 N
15747 s/\n//
15748}
15749' >>$CONFIG_STATUS || ac_write_fail=1
15750rm -f conf$$subs.awk
15751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752_ACAWK
15753cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15754 for (key in S) S_is_set[key] = 1
15755 FS = ""
15756
15757}
15758{
15759 line = $ 0
15760 nfields = split(line, field, "@")
15761 substed = 0
15762 len = length(field[1])
15763 for (i = 2; i < nfields; i++) {
15764 key = field[i]
15765 keylen = length(key)
15766 if (S_is_set[key]) {
15767 value = S[key]
15768 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15769 len += length(value) + length(field[++i])
15770 substed = 1
15771 } else
15772 len += 1 + keylen
15773 }
15774
15775 print line
15776}
15777
15778_ACAWK
15779_ACEOF
15780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15783else
15784 cat
15785fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15786 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15787_ACEOF
15788
15789# VPATH may cause trouble with some makes, so we remove $(srcdir),
15790# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15791# trailing colons and then remove the whole line if VPATH becomes empty
15792# (actually we leave an empty line to preserve line numbers).
15793if test "x$srcdir" = x.; then
15794 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15795s/:*\$(srcdir):*/:/
15796s/:*\${srcdir}:*/:/
15797s/:*@srcdir@:*/:/
15798s/^\([^=]*=[ ]*\):*/\1/
15799s/:*$//
15800s/^[^=]*=[ ]*$//
15801}'
15802fi
15803
15804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15805fi # test -n "$CONFIG_FILES"
15806
15807
15808eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15809shift
15810for ac_tag
15811do
15812 case $ac_tag in
15813 :[FHLC]) ac_mode=$ac_tag; continue;;
15814 esac
15815 case $ac_mode$ac_tag in
15816 :[FHL]*:*);;
15817 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15818 :[FH]-) ac_tag=-:-;;
15819 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15820 esac
15821 ac_save_IFS=$IFS
15822 IFS=:
15823 set x $ac_tag
15824 IFS=$ac_save_IFS
15825 shift
15826 ac_file=$1
15827 shift
15828
15829 case $ac_mode in
15830 :L) ac_source=$1;;
15831 :[FH])
15832 ac_file_inputs=
15833 for ac_f
15834 do
15835 case $ac_f in
15836 -) ac_f="$tmp/stdin";;
15837 *) # Look for the file first in the build tree, then in the source tree
15838 # (if the path is not absolute). The absolute path cannot be DOS-style,
15839 # because $ac_f cannot contain `:'.
15840 test -f "$ac_f" ||
15841 case $ac_f in
15842 [\\/$]*) false;;
15843 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15844 esac ||
15845 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15846 esac
15847 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15848 as_fn_append ac_file_inputs " '$ac_f'"
15849 done
15850
15851 # Let's still pretend it is `configure' which instantiates (i.e., don't
15852 # use $as_me), people would be surprised to read:
15853 # /* config.h. Generated by config.status. */
15854 configure_input='Generated from '`
15855 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15856 `' by configure.'
15857 if test x"$ac_file" != x-; then
15858 configure_input="$ac_file. $configure_input"
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15860$as_echo "$as_me: creating $ac_file" >&6;}
15861 fi
15862 # Neutralize special characters interpreted by sed in replacement strings.
15863 case $configure_input in #(
15864 *\&* | *\|* | *\\* )
15865 ac_sed_conf_input=`$as_echo "$configure_input" |
15866 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15867 *) ac_sed_conf_input=$configure_input;;
15868 esac
15869
15870 case $ac_tag in
15871 *:-:* | *:-) cat >"$tmp/stdin" \
15872 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15873 esac
15874 ;;
15875 esac
15876
15877 ac_dir=`$as_dirname -- "$ac_file" ||
15878$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15879 X"$ac_file" : 'X\(//\)[^/]' \| \
15880 X"$ac_file" : 'X\(//\)$' \| \
15881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15882$as_echo X"$ac_file" |
15883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15884 s//\1/
15885 q
15886 }
15887 /^X\(\/\/\)[^/].*/{
15888 s//\1/
15889 q
15890 }
15891 /^X\(\/\/\)$/{
15892 s//\1/
15893 q
15894 }
15895 /^X\(\/\).*/{
15896 s//\1/
15897 q
15898 }
15899 s/.*/./; q'`
15900 as_dir="$ac_dir"; as_fn_mkdir_p
15901 ac_builddir=.
15902
15903case "$ac_dir" in
15904.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15905*)
15906 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15907 # A ".." for each directory in $ac_dir_suffix.
15908 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15909 case $ac_top_builddir_sub in
15910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15912 esac ;;
15913esac
15914ac_abs_top_builddir=$ac_pwd
15915ac_abs_builddir=$ac_pwd$ac_dir_suffix
15916# for backward compatibility:
15917ac_top_builddir=$ac_top_build_prefix
15918
15919case $srcdir in
15920 .) # We are building in place.
15921 ac_srcdir=.
15922 ac_top_srcdir=$ac_top_builddir_sub
15923 ac_abs_top_srcdir=$ac_pwd ;;
15924 [\\/]* | ?:[\\/]* ) # Absolute name.
15925 ac_srcdir=$srcdir$ac_dir_suffix;
15926 ac_top_srcdir=$srcdir
15927 ac_abs_top_srcdir=$srcdir ;;
15928 *) # Relative name.
15929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15930 ac_top_srcdir=$ac_top_build_prefix$srcdir
15931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15932esac
15933ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15934
15935
15936 case $ac_mode in
15937 :F)
15938 #
15939 # CONFIG_FILE
15940 #
15941
15942 case $INSTALL in
15943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15944 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15945 esac
15946 ac_MKDIR_P=$MKDIR_P
15947 case $MKDIR_P in
15948 [\\/$]* | ?:[\\/]* ) ;;
15949 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15950 esac
15951_ACEOF
15952
15953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954# If the template does not know about datarootdir, expand it.
15955# FIXME: This hack should be removed a few years after 2.60.
15956ac_datarootdir_hack=; ac_datarootdir_seen=
15957ac_sed_dataroot='
15958/datarootdir/ {
15959 p
15960 q
15961}
15962/@datadir@/p
15963/@docdir@/p
15964/@infodir@/p
15965/@localedir@/p
15966/@mandir@/p'
15967case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15968*datarootdir*) ac_datarootdir_seen=yes;;
15969*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15971$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15972_ACEOF
15973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15974 ac_datarootdir_hack='
15975 s&@datadir@&$datadir&g
15976 s&@docdir@&$docdir&g
15977 s&@infodir@&$infodir&g
15978 s&@localedir@&$localedir&g
15979 s&@mandir@&$mandir&g
15980 s&\\\${datarootdir}&$datarootdir&g' ;;
15981esac
15982_ACEOF
15983
15984# Neutralize VPATH when `$srcdir' = `.'.
15985# Shell code in configure.ac might set extrasub.
15986# FIXME: do we really want to maintain this feature?
15987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15988ac_sed_extra="$ac_vpsub
15989$extrasub
15990_ACEOF
15991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992:t
15993/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15994s|@configure_input@|$ac_sed_conf_input|;t t
15995s&@top_builddir@&$ac_top_builddir_sub&;t t
15996s&@top_build_prefix@&$ac_top_build_prefix&;t t
15997s&@srcdir@&$ac_srcdir&;t t
15998s&@abs_srcdir@&$ac_abs_srcdir&;t t
15999s&@top_srcdir@&$ac_top_srcdir&;t t
16000s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16001s&@builddir@&$ac_builddir&;t t
16002s&@abs_builddir@&$ac_abs_builddir&;t t
16003s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16004s&@INSTALL@&$ac_INSTALL&;t t
16005s&@MKDIR_P@&$ac_MKDIR_P&;t t
16006$ac_datarootdir_hack
16007"
16008eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16009 || as_fn_error "could not create $ac_file" "$LINENO" 5
16010
16011test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16012 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16013 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16015which seems to be undefined. Please make sure it is defined." >&5
16016$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16017which seems to be undefined. Please make sure it is defined." >&2;}
16018
16019 rm -f "$tmp/stdin"
16020 case $ac_file in
16021 -) cat "$tmp/out" && rm -f "$tmp/out";;
16022 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16023 esac \
16024 || as_fn_error "could not create $ac_file" "$LINENO" 5
16025 ;;
16026
16027
16028 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16029$as_echo "$as_me: executing $ac_file commands" >&6;}
16030 ;;
16031 esac
16032
16033
16034 case $ac_file$ac_mode in
16035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16036 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16037 # are listed without --file. Let's play safe and only enable the eval
16038 # if we detect the quoting.
16039 case $CONFIG_FILES in
16040 *\'*) eval set x "$CONFIG_FILES" ;;
16041 *) set x $CONFIG_FILES ;;
16042 esac
16043 shift
16044 for mf
16045 do
16046 # Strip MF so we end up with the name of the file.
16047 mf=`echo "$mf" | sed -e 's/:.*$//'`
16048 # Check whether this is an Automake generated Makefile or not.
16049 # We used to match only the files named `Makefile.in', but
16050 # some people rename them; so instead we look at the file content.
16051 # Grep'ing the first line is not enough: some people post-process
16052 # each Makefile.in and add a new line on top of each file to say so.
16053 # Grep'ing the whole file is not good either: AIX grep has a line
16054 # limit of 2048, but all sed's we know have understand at least 4000.
16055 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16056 dirpart=`$as_dirname -- "$mf" ||
16057$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16058 X"$mf" : 'X\(//\)[^/]' \| \
16059 X"$mf" : 'X\(//\)$' \| \
16060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16061$as_echo X"$mf" |
16062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16063 s//\1/
16064 q
16065 }
16066 /^X\(\/\/\)[^/].*/{
16067 s//\1/
16068 q
16069 }
16070 /^X\(\/\/\)$/{
16071 s//\1/
16072 q
16073 }
16074 /^X\(\/\).*/{
16075 s//\1/
16076 q
16077 }
16078 s/.*/./; q'`
16079 else
16080 continue
16081 fi
16082 # Extract the definition of DEPDIR, am__include, and am__quote
16083 # from the Makefile without running `make'.
16084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16085 test -z "$DEPDIR" && continue
16086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16087 test -z "am__include" && continue
16088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16089 # When using ansi2knr, U may be empty or an underscore; expand it
16090 U=`sed -n 's/^U = //p' < "$mf"`
16091 # Find all dependency output files, they are included files with
16092 # $(DEPDIR) in their names. We invoke sed twice because it is the
16093 # simplest approach to changing $(DEPDIR) to its actual value in the
16094 # expansion.
16095 for file in `sed -n "
16096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16098 # Make sure the directory exists.
16099 test -f "$dirpart/$file" && continue
16100 fdir=`$as_dirname -- "$file" ||
16101$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16102 X"$file" : 'X\(//\)[^/]' \| \
16103 X"$file" : 'X\(//\)$' \| \
16104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16105$as_echo X"$file" |
16106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16107 s//\1/
16108 q
16109 }
16110 /^X\(\/\/\)[^/].*/{
16111 s//\1/
16112 q
16113 }
16114 /^X\(\/\/\)$/{
16115 s//\1/
16116 q
16117 }
16118 /^X\(\/\).*/{
16119 s//\1/
16120 q
16121 }
16122 s/.*/./; q'`
16123 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16124 # echo "creating $dirpart/$file"
16125 echo '# dummy' > "$dirpart/$file"
16126 done
16127 done
16128}
16129 ;;
16130 "default-1":C)
16131# Only add multilib support code if we just rebuilt the top-level
16132# Makefile.
16133case " $CONFIG_FILES " in
16134 *" Makefile "*)
16135 ac_file=Makefile . ${multi_basedir}/config-ml.in
16136 ;;
16137esac ;;
16138 "libtool":C)
16139
16140 # See if we are running on zsh, and set the options which allow our
16141 # commands through without removal of \ escapes.
16142 if test -n "${ZSH_VERSION+set}" ; then
16143 setopt NO_GLOB_SUBST
16144 fi
16145
16146 cfgfile="${ofile}T"
16147 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16148 $RM "$cfgfile"
16149
16150 cat <<_LT_EOF >> "$cfgfile"
16151#! $SHELL
16152
16153# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16154# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16155# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16156# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16157#
16158# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16159# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16160# Written by Gordon Matzigkeit, 1996
16161#
16162# This file is part of GNU Libtool.
16163#
16164# GNU Libtool is free software; you can redistribute it and/or
16165# modify it under the terms of the GNU General Public License as
16166# published by the Free Software Foundation; either version 2 of
16167# the License, or (at your option) any later version.
16168#
16169# As a special exception to the GNU General Public License,
16170# if you distribute this file as part of a program or library that
16171# is built using GNU Libtool, you may include this file under the
16172# same distribution terms that you use for the rest of that program.
16173#
16174# GNU Libtool is distributed in the hope that it will be useful,
16175# but WITHOUT ANY WARRANTY; without even the implied warranty of
16176# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16177# GNU General Public License for more details.
16178#
16179# You should have received a copy of the GNU General Public License
16180# along with GNU Libtool; see the file COPYING. If not, a copy
16181# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16182# obtained by writing to the Free Software Foundation, Inc.,
16183# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16184
16185
16186# The names of the tagged configurations supported by this script.
16187available_tags="CXX "
16188
16189# ### BEGIN LIBTOOL CONFIG
16190
16191# Which release of libtool.m4 was used?
16192macro_version=$macro_version
16193macro_revision=$macro_revision
16194
16195# Whether or not to build shared libraries.
16196build_libtool_libs=$enable_shared
16197
16198# Whether or not to build static libraries.
16199build_old_libs=$enable_static
16200
16201# What type of objects to build.
16202pic_mode=$pic_mode
16203
16204# Whether or not to optimize for fast installation.
16205fast_install=$enable_fast_install
16206
16207# Shell to use when invoking shell scripts.
16208SHELL=$lt_SHELL
16209
16210# An echo program that protects backslashes.
16211ECHO=$lt_ECHO
16212
16213# The host system.
16214host_alias=$host_alias
16215host=$host
16216host_os=$host_os
16217
16218# The build system.
16219build_alias=$build_alias
16220build=$build
16221build_os=$build_os
16222
16223# A sed program that does not truncate output.
16224SED=$lt_SED
16225
16226# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16227Xsed="\$SED -e 1s/^X//"
16228
16229# A grep program that handles long lines.
16230GREP=$lt_GREP
16231
16232# An ERE matcher.
16233EGREP=$lt_EGREP
16234
16235# A literal string matcher.
16236FGREP=$lt_FGREP
16237
16238# A BSD- or MS-compatible name lister.
16239NM=$lt_NM
16240
16241# Whether we need soft or hard links.
16242LN_S=$lt_LN_S
16243
16244# What is the maximum length of a command?
16245max_cmd_len=$max_cmd_len
16246
16247# Object file suffix (normally "o").
16248objext=$ac_objext
16249
16250# Executable file suffix (normally "").
16251exeext=$exeext
16252
16253# whether the shell understands "unset".
16254lt_unset=$lt_unset
16255
16256# turn spaces into newlines.
16257SP2NL=$lt_lt_SP2NL
16258
16259# turn newlines into spaces.
16260NL2SP=$lt_lt_NL2SP
16261
16262# An object symbol dumper.
16263OBJDUMP=$lt_OBJDUMP
16264
16265# Method to check whether dependent libraries are shared objects.
16266deplibs_check_method=$lt_deplibs_check_method
16267
16268# Command to use when deplibs_check_method == "file_magic".
16269file_magic_cmd=$lt_file_magic_cmd
16270
16271# The archiver.
16272AR=$lt_AR
16273AR_FLAGS=$lt_AR_FLAGS
16274
16275# A symbol stripping program.
16276STRIP=$lt_STRIP
16277
16278# Commands used to install an old-style archive.
16279RANLIB=$lt_RANLIB
16280old_postinstall_cmds=$lt_old_postinstall_cmds
16281old_postuninstall_cmds=$lt_old_postuninstall_cmds
16282
16283# Whether to use a lock for old archive extraction.
16284lock_old_archive_extraction=$lock_old_archive_extraction
16285
16286# A C compiler.
16287LTCC=$lt_CC
16288
16289# LTCC compiler flags.
16290LTCFLAGS=$lt_CFLAGS
16291
16292# Take the output of nm and produce a listing of raw symbols and C names.
16293global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16294
16295# Transform the output of nm in a proper C declaration.
16296global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16297
16298# Transform the output of nm in a C name address pair.
16299global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16300
16301# Transform the output of nm in a C name address pair when lib prefix is needed.
16302global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16303
16304# The name of the directory that contains temporary libtool files.
16305objdir=$objdir
16306
16307# Used to examine libraries when file_magic_cmd begins with "file".
16308MAGIC_CMD=$MAGIC_CMD
16309
16310# Must we lock files when doing compilation?
16311need_locks=$lt_need_locks
16312
16313# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16314DSYMUTIL=$lt_DSYMUTIL
16315
16316# Tool to change global to local symbols on Mac OS X.
16317NMEDIT=$lt_NMEDIT
16318
16319# Tool to manipulate fat objects and archives on Mac OS X.
16320LIPO=$lt_LIPO
16321
16322# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16323OTOOL=$lt_OTOOL
16324
16325# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16326OTOOL64=$lt_OTOOL64
16327
16328# Old archive suffix (normally "a").
16329libext=$libext
16330
16331# Shared library suffix (normally ".so").
16332shrext_cmds=$lt_shrext_cmds
16333
16334# The commands to extract the exported symbol list from a shared archive.
16335extract_expsyms_cmds=$lt_extract_expsyms_cmds
16336
16337# Variables whose values should be saved in libtool wrapper scripts and
16338# restored at link time.
16339variables_saved_for_relink=$lt_variables_saved_for_relink
16340
16341# Do we need the "lib" prefix for modules?
16342need_lib_prefix=$need_lib_prefix
16343
16344# Do we need a version for libraries?
16345need_version=$need_version
16346
16347# Library versioning type.
16348version_type=$version_type
16349
16350# Shared library runtime path variable.
16351runpath_var=$runpath_var
16352
16353# Shared library path variable.
16354shlibpath_var=$shlibpath_var
16355
16356# Is shlibpath searched before the hard-coded library search path?
16357shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16358
16359# Format of library name prefix.
16360libname_spec=$lt_libname_spec
16361
16362# List of archive names. First name is the real one, the rest are links.
16363# The last name is the one that the linker finds with -lNAME
16364library_names_spec=$lt_library_names_spec
16365
16366# The coded name of the library, if different from the real name.
16367soname_spec=$lt_soname_spec
16368
16369# Permission mode override for installation of shared libraries.
16370install_override_mode=$lt_install_override_mode
16371
16372# Command to use after installation of a shared archive.
16373postinstall_cmds=$lt_postinstall_cmds
16374
16375# Command to use after uninstallation of a shared archive.
16376postuninstall_cmds=$lt_postuninstall_cmds
16377
16378# Commands used to finish a libtool library installation in a directory.
16379finish_cmds=$lt_finish_cmds
16380
16381# As "finish_cmds", except a single script fragment to be evaled but
16382# not shown.
16383finish_eval=$lt_finish_eval
16384
16385# Whether we should hardcode library paths into libraries.
16386hardcode_into_libs=$hardcode_into_libs
16387
16388# Compile-time system search path for libraries.
16389sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16390
16391# Run-time system search path for libraries.
16392sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16393
16394# Whether dlopen is supported.
16395dlopen_support=$enable_dlopen
16396
16397# Whether dlopen of programs is supported.
16398dlopen_self=$enable_dlopen_self
16399
16400# Whether dlopen of statically linked programs is supported.
16401dlopen_self_static=$enable_dlopen_self_static
16402
16403# Commands to strip libraries.
16404old_striplib=$lt_old_striplib
16405striplib=$lt_striplib
16406
16407
16408# The linker used to build libraries.
16409LD=$lt_LD
16410
16411# How to create reloadable object files.
16412reload_flag=$lt_reload_flag
16413reload_cmds=$lt_reload_cmds
16414
16415# Commands used to build an old-style archive.
16416old_archive_cmds=$lt_old_archive_cmds
16417
16418# A language specific compiler.
16419CC=$lt_compiler
16420
16421# Is the compiler the GNU compiler?
16422with_gcc=$GCC
16423
16424# Compiler flag to turn off builtin functions.
16425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16426
16427# How to pass a linker flag through the compiler.
16428wl=$lt_lt_prog_compiler_wl
16429
16430# Additional compiler flags for building library objects.
16431pic_flag=$lt_lt_prog_compiler_pic
16432
16433# Compiler flag to prevent dynamic linking.
16434link_static_flag=$lt_lt_prog_compiler_static
16435
16436# Does compiler simultaneously support -c and -o options?
16437compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16438
16439# Whether or not to add -lc for building shared libraries.
16440build_libtool_need_lc=$archive_cmds_need_lc
16441
16442# Whether or not to disallow shared libs when runtime libs are static.
16443allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16444
16445# Compiler flag to allow reflexive dlopens.
16446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16447
16448# Compiler flag to generate shared objects directly from archives.
16449whole_archive_flag_spec=$lt_whole_archive_flag_spec
16450
16451# Whether the compiler copes with passing no objects directly.
16452compiler_needs_object=$lt_compiler_needs_object
16453
16454# Create an old-style archive from a shared archive.
16455old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16456
16457# Create a temporary old-style archive to link instead of a shared archive.
16458old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16459
16460# Commands used to build a shared archive.
16461archive_cmds=$lt_archive_cmds
16462archive_expsym_cmds=$lt_archive_expsym_cmds
16463
16464# Commands used to build a loadable module if different from building
16465# a shared archive.
16466module_cmds=$lt_module_cmds
16467module_expsym_cmds=$lt_module_expsym_cmds
16468
16469# Whether we are building with GNU ld or not.
16470with_gnu_ld=$lt_with_gnu_ld
16471
16472# Flag that allows shared libraries with undefined symbols to be built.
16473allow_undefined_flag=$lt_allow_undefined_flag
16474
16475# Flag that enforces no undefined symbols.
16476no_undefined_flag=$lt_no_undefined_flag
16477
16478# Flag to hardcode \$libdir into a binary during linking.
16479# This must work even if \$libdir does not exist
16480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16481
16482# If ld is used when linking, flag to hardcode \$libdir into a binary
16483# during linking. This must work even if \$libdir does not exist.
16484hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16485
16486# Whether we need a single "-rpath" flag with a separated argument.
16487hardcode_libdir_separator=$lt_hardcode_libdir_separator
16488
16489# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16490# DIR into the resulting binary.
16491hardcode_direct=$hardcode_direct
16492
16493# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16494# DIR into the resulting binary and the resulting library dependency is
16495# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16496# library is relocated.
16497hardcode_direct_absolute=$hardcode_direct_absolute
16498
16499# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16500# into the resulting binary.
16501hardcode_minus_L=$hardcode_minus_L
16502
16503# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16504# into the resulting binary.
16505hardcode_shlibpath_var=$hardcode_shlibpath_var
16506
16507# Set to "yes" if building a shared library automatically hardcodes DIR
16508# into the library and all subsequent libraries and executables linked
16509# against it.
16510hardcode_automatic=$hardcode_automatic
16511
16512# Set to yes if linker adds runtime paths of dependent libraries
16513# to runtime path list.
16514inherit_rpath=$inherit_rpath
16515
16516# Whether libtool must link a program against all its dependency libraries.
16517link_all_deplibs=$link_all_deplibs
16518
16519# Fix the shell variable \$srcfile for the compiler.
16520fix_srcfile_path=$lt_fix_srcfile_path
16521
16522# Set to "yes" if exported symbols are required.
16523always_export_symbols=$always_export_symbols
16524
16525# The commands to list exported symbols.
16526export_symbols_cmds=$lt_export_symbols_cmds
16527
16528# Symbols that should not be listed in the preloaded symbols.
16529exclude_expsyms=$lt_exclude_expsyms
16530
16531# Symbols that must always be exported.
16532include_expsyms=$lt_include_expsyms
16533
16534# Commands necessary for linking programs (against libraries) with templates.
16535prelink_cmds=$lt_prelink_cmds
16536
16537# Specify filename containing input files.
16538file_list_spec=$lt_file_list_spec
16539
16540# How to hardcode a shared library path into an executable.
16541hardcode_action=$hardcode_action
16542
16543# The directories searched by this compiler when creating a shared library.
16544compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16545
16546# Dependencies to place before and after the objects being linked to
16547# create a shared library.
16548predep_objects=$lt_predep_objects
16549postdep_objects=$lt_postdep_objects
16550predeps=$lt_predeps
16551postdeps=$lt_postdeps
16552
16553# The library search path used internally by the compiler when linking
16554# a shared library.
16555compiler_lib_search_path=$lt_compiler_lib_search_path
16556
16557# ### END LIBTOOL CONFIG
16558
16559_LT_EOF
16560
16561 case $host_os in
16562 aix3*)
16563 cat <<\_LT_EOF >> "$cfgfile"
16564# AIX sometimes has problems with the GCC collect2 program. For some
16565# reason, if we set the COLLECT_NAMES environment variable, the problems
16566# vanish in a puff of smoke.
16567if test "X${COLLECT_NAMES+set}" != Xset; then
16568 COLLECT_NAMES=
16569 export COLLECT_NAMES
16570fi
16571_LT_EOF
16572 ;;
16573 esac
16574
16575
16576ltmain="$ac_aux_dir/ltmain.sh"
16577
16578
16579 # We use sed instead of cat because bash on DJGPP gets confused if
16580 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16581 # text mode, it properly converts lines to CR/LF. This bash problem
16582 # is reportedly fixed, but why not run on old versions too?
16583 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16584 || (rm -f "$cfgfile"; exit 1)
16585
16586 case $xsi_shell in
16587 yes)
16588 cat << \_LT_EOF >> "$cfgfile"
16589
16590# func_dirname file append nondir_replacement
16591# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16592# otherwise set result to NONDIR_REPLACEMENT.
16593func_dirname ()
16594{
16595 case ${1} in
16596 */*) func_dirname_result="${1%/*}${2}" ;;
16597 * ) func_dirname_result="${3}" ;;
16598 esac
16599}
16600
16601# func_basename file
16602func_basename ()
16603{
16604 func_basename_result="${1##*/}"
16605}
16606
16607# func_dirname_and_basename file append nondir_replacement
16608# perform func_basename and func_dirname in a single function
16609# call:
16610# dirname: Compute the dirname of FILE. If nonempty,
16611# add APPEND to the result, otherwise set result
16612# to NONDIR_REPLACEMENT.
16613# value returned in "$func_dirname_result"
16614# basename: Compute filename of FILE.
16615# value retuned in "$func_basename_result"
16616# Implementation must be kept synchronized with func_dirname
16617# and func_basename. For efficiency, we do not delegate to
16618# those functions but instead duplicate the functionality here.
16619func_dirname_and_basename ()
16620{
16621 case ${1} in
16622 */*) func_dirname_result="${1%/*}${2}" ;;
16623 * ) func_dirname_result="${3}" ;;
16624 esac
16625 func_basename_result="${1##*/}"
16626}
16627
16628# func_stripname prefix suffix name
16629# strip PREFIX and SUFFIX off of NAME.
16630# PREFIX and SUFFIX must not contain globbing or regex special
16631# characters, hashes, percent signs, but SUFFIX may contain a leading
16632# dot (in which case that matches only a dot).
16633func_stripname ()
16634{
16635 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16636 # positional parameters, so assign one to ordinary parameter first.
16637 func_stripname_result=${3}
16638 func_stripname_result=${func_stripname_result#"${1}"}
16639 func_stripname_result=${func_stripname_result%"${2}"}
16640}
16641
16642# func_opt_split
16643func_opt_split ()
16644{
16645 func_opt_split_opt=${1%%=*}
16646 func_opt_split_arg=${1#*=}
16647}
16648
16649# func_lo2o object
16650func_lo2o ()
16651{
16652 case ${1} in
16653 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16654 *) func_lo2o_result=${1} ;;
16655 esac
16656}
16657
16658# func_xform libobj-or-source
16659func_xform ()
16660{
16661 func_xform_result=${1%.*}.lo
16662}
16663
16664# func_arith arithmetic-term...
16665func_arith ()
16666{
16667 func_arith_result=$(( $* ))
16668}
16669
16670# func_len string
16671# STRING may not start with a hyphen.
16672func_len ()
16673{
16674 func_len_result=${#1}
16675}
16676
16677_LT_EOF
16678 ;;
16679 *) # Bourne compatible functions.
16680 cat << \_LT_EOF >> "$cfgfile"
16681
16682# func_dirname file append nondir_replacement
16683# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16684# otherwise set result to NONDIR_REPLACEMENT.
16685func_dirname ()
16686{
16687 # Extract subdirectory from the argument.
16688 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16689 if test "X$func_dirname_result" = "X${1}"; then
16690 func_dirname_result="${3}"
16691 else
16692 func_dirname_result="$func_dirname_result${2}"
16693 fi
16694}
16695
16696# func_basename file
16697func_basename ()
16698{
16699 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16700}
16701
16702
16703# func_stripname prefix suffix name
16704# strip PREFIX and SUFFIX off of NAME.
16705# PREFIX and SUFFIX must not contain globbing or regex special
16706# characters, hashes, percent signs, but SUFFIX may contain a leading
16707# dot (in which case that matches only a dot).
16708# func_strip_suffix prefix name
16709func_stripname ()
16710{
16711 case ${2} in
16712 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16713 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16714 esac
16715}
16716
16717# sed scripts:
16718my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16719my_sed_long_arg='1s/^-[^=]*=//'
16720
16721# func_opt_split
16722func_opt_split ()
16723{
16724 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16725 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16726}
16727
16728# func_lo2o object
16729func_lo2o ()
16730{
16731 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16732}
16733
16734# func_xform libobj-or-source
16735func_xform ()
16736{
16737 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16738}
16739
16740# func_arith arithmetic-term...
16741func_arith ()
16742{
16743 func_arith_result=`expr "$@"`
16744}
16745
16746# func_len string
16747# STRING may not start with a hyphen.
16748func_len ()
16749{
16750 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16751}
16752
16753_LT_EOF
16754esac
16755
16756case $lt_shell_append in
16757 yes)
16758 cat << \_LT_EOF >> "$cfgfile"
16759
16760# func_append var value
16761# Append VALUE to the end of shell variable VAR.
16762func_append ()
16763{
16764 eval "$1+=\$2"
16765}
16766_LT_EOF
16767 ;;
16768 *)
16769 cat << \_LT_EOF >> "$cfgfile"
16770
16771# func_append var value
16772# Append VALUE to the end of shell variable VAR.
16773func_append ()
16774{
16775 eval "$1=\$$1\$2"
16776}
16777
16778_LT_EOF
16779 ;;
16780 esac
16781
16782
16783 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16784 || (rm -f "$cfgfile"; exit 1)
16785
16786 mv -f "$cfgfile" "$ofile" ||
16787 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16788 chmod +x "$ofile"
16789
16790
16791 cat <<_LT_EOF >> "$ofile"
16792
16793# ### BEGIN LIBTOOL TAG CONFIG: CXX
16794
16795# The linker used to build libraries.
16796LD=$lt_LD_CXX
16797
16798# How to create reloadable object files.
16799reload_flag=$lt_reload_flag_CXX
16800reload_cmds=$lt_reload_cmds_CXX
16801
16802# Commands used to build an old-style archive.
16803old_archive_cmds=$lt_old_archive_cmds_CXX
16804
16805# A language specific compiler.
16806CC=$lt_compiler_CXX
16807
16808# Is the compiler the GNU compiler?
16809with_gcc=$GCC_CXX
16810
16811# Compiler flag to turn off builtin functions.
16812no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16813
16814# How to pass a linker flag through the compiler.
16815wl=$lt_lt_prog_compiler_wl_CXX
16816
16817# Additional compiler flags for building library objects.
16818pic_flag=$lt_lt_prog_compiler_pic_CXX
16819
16820# Compiler flag to prevent dynamic linking.
16821link_static_flag=$lt_lt_prog_compiler_static_CXX
16822
16823# Does compiler simultaneously support -c and -o options?
16824compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16825
16826# Whether or not to add -lc for building shared libraries.
16827build_libtool_need_lc=$archive_cmds_need_lc_CXX
16828
16829# Whether or not to disallow shared libs when runtime libs are static.
16830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16831
16832# Compiler flag to allow reflexive dlopens.
16833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16834
16835# Compiler flag to generate shared objects directly from archives.
16836whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16837
16838# Whether the compiler copes with passing no objects directly.
16839compiler_needs_object=$lt_compiler_needs_object_CXX
16840
16841# Create an old-style archive from a shared archive.
16842old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16843
16844# Create a temporary old-style archive to link instead of a shared archive.
16845old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16846
16847# Commands used to build a shared archive.
16848archive_cmds=$lt_archive_cmds_CXX
16849archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16850
16851# Commands used to build a loadable module if different from building
16852# a shared archive.
16853module_cmds=$lt_module_cmds_CXX
16854module_expsym_cmds=$lt_module_expsym_cmds_CXX
16855
16856# Whether we are building with GNU ld or not.
16857with_gnu_ld=$lt_with_gnu_ld_CXX
16858
16859# Flag that allows shared libraries with undefined symbols to be built.
16860allow_undefined_flag=$lt_allow_undefined_flag_CXX
16861
16862# Flag that enforces no undefined symbols.
16863no_undefined_flag=$lt_no_undefined_flag_CXX
16864
16865# Flag to hardcode \$libdir into a binary during linking.
16866# This must work even if \$libdir does not exist
16867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16868
16869# If ld is used when linking, flag to hardcode \$libdir into a binary
16870# during linking. This must work even if \$libdir does not exist.
16871hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16872
16873# Whether we need a single "-rpath" flag with a separated argument.
16874hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16875
16876# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16877# DIR into the resulting binary.
16878hardcode_direct=$hardcode_direct_CXX
16879
16880# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16881# DIR into the resulting binary and the resulting library dependency is
16882# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16883# library is relocated.
16884hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16885
16886# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16887# into the resulting binary.
16888hardcode_minus_L=$hardcode_minus_L_CXX
16889
16890# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16891# into the resulting binary.
16892hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16893
16894# Set to "yes" if building a shared library automatically hardcodes DIR
16895# into the library and all subsequent libraries and executables linked
16896# against it.
16897hardcode_automatic=$hardcode_automatic_CXX
16898
16899# Set to yes if linker adds runtime paths of dependent libraries
16900# to runtime path list.
16901inherit_rpath=$inherit_rpath_CXX
16902
16903# Whether libtool must link a program against all its dependency libraries.
16904link_all_deplibs=$link_all_deplibs_CXX
16905
16906# Fix the shell variable \$srcfile for the compiler.
16907fix_srcfile_path=$lt_fix_srcfile_path_CXX
16908
16909# Set to "yes" if exported symbols are required.
16910always_export_symbols=$always_export_symbols_CXX
16911
16912# The commands to list exported symbols.
16913export_symbols_cmds=$lt_export_symbols_cmds_CXX
16914
16915# Symbols that should not be listed in the preloaded symbols.
16916exclude_expsyms=$lt_exclude_expsyms_CXX
16917
16918# Symbols that must always be exported.
16919include_expsyms=$lt_include_expsyms_CXX
16920
16921# Commands necessary for linking programs (against libraries) with templates.
16922prelink_cmds=$lt_prelink_cmds_CXX
16923
16924# Specify filename containing input files.
16925file_list_spec=$lt_file_list_spec_CXX
16926
16927# How to hardcode a shared library path into an executable.
16928hardcode_action=$hardcode_action_CXX
16929
16930# The directories searched by this compiler when creating a shared library.
16931compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16932
16933# Dependencies to place before and after the objects being linked to
16934# create a shared library.
16935predep_objects=$lt_predep_objects_CXX
16936postdep_objects=$lt_postdep_objects_CXX
16937predeps=$lt_predeps_CXX
16938postdeps=$lt_postdeps_CXX
16939
16940# The library search path used internally by the compiler when linking
16941# a shared library.
16942compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16943
16944# ### END LIBTOOL TAG CONFIG: CXX
16945_LT_EOF
16946
16947 ;;
16948
16949 esac
16950done # for ac_tag
16951
16952
16953as_fn_exit 0
16954_ACEOF
16955ac_clean_files=$ac_clean_files_save
16956
16957test $ac_write_fail = 0 ||
16958 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16959
16960
16961# configure is writing to config.log, and then calls config.status.
16962# config.status does its own redirection, appending to config.log.
16963# Unfortunately, on DOS this fails, as config.log is still kept open
16964# by configure, so config.status won't be able to write to it; its
16965# output is simply discarded. So we exec the FD to /dev/null,
16966# effectively closing config.log, so it can be properly (re)opened and
16967# appended to by config.status. When coming back to configure, we
16968# need to make the FD available again.
16969if test "$no_create" != yes; then
16970 ac_cs_success=:
16971 ac_config_status_args=
16972 test "$silent" = yes &&
16973 ac_config_status_args="$ac_config_status_args --quiet"
16974 exec 5>/dev/null
16975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16976 exec 5>>config.log
16977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16978 # would make configure fail if this is the last instruction.
16979 $ac_cs_success || as_fn_exit $?
16980fi
Ilya Verbin9d73ec12014-11-13 14:05:49 +000016981
16982#
16983# CONFIG_SUBDIRS section.
16984#
16985if test "$no_recursion" != yes; then
16986
16987 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16988 # so they do not pile up.
16989 ac_sub_configure_args=
16990 ac_prev=
16991 eval "set x $ac_configure_args"
16992 shift
16993 for ac_arg
16994 do
16995 if test -n "$ac_prev"; then
16996 ac_prev=
16997 continue
16998 fi
16999 case $ac_arg in
17000 -cache-file | --cache-file | --cache-fil | --cache-fi \
17001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17002 ac_prev=cache_file ;;
17003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17005 | --c=*)
17006 ;;
17007 --config-cache | -C)
17008 ;;
17009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17010 ac_prev=srcdir ;;
17011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17012 ;;
17013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17014 ac_prev=prefix ;;
17015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17016 ;;
17017 --disable-option-checking)
17018 ;;
17019 *)
17020 case $ac_arg in
17021 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17022 esac
17023 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17024 esac
17025 done
17026
17027 # Always prepend --prefix to ensure using the same prefix
17028 # in subdir configurations.
17029 ac_arg="--prefix=$prefix"
17030 case $ac_arg in
17031 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032 esac
17033 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17034
17035 # Pass --silent
17036 if test "$silent" = yes; then
17037 ac_sub_configure_args="--silent $ac_sub_configure_args"
17038 fi
17039
17040 # Always prepend --disable-option-checking to silence warnings, since
17041 # different subdirs can have different --enable and --with options.
17042 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17043
17044 ac_popdir=`pwd`
17045 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17046
17047 # Do not complain, so a configure script can configure whichever
17048 # parts of a large source tree are present.
17049 test -d "$srcdir/$ac_dir" || continue
17050
17051 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17052 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17053 $as_echo "$ac_msg" >&6
17054 as_dir="$ac_dir"; as_fn_mkdir_p
17055 ac_builddir=.
17056
17057case "$ac_dir" in
17058.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17059*)
17060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17061 # A ".." for each directory in $ac_dir_suffix.
17062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17063 case $ac_top_builddir_sub in
17064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17066 esac ;;
17067esac
17068ac_abs_top_builddir=$ac_pwd
17069ac_abs_builddir=$ac_pwd$ac_dir_suffix
17070# for backward compatibility:
17071ac_top_builddir=$ac_top_build_prefix
17072
17073case $srcdir in
17074 .) # We are building in place.
17075 ac_srcdir=.
17076 ac_top_srcdir=$ac_top_builddir_sub
17077 ac_abs_top_srcdir=$ac_pwd ;;
17078 [\\/]* | ?:[\\/]* ) # Absolute name.
17079 ac_srcdir=$srcdir$ac_dir_suffix;
17080 ac_top_srcdir=$srcdir
17081 ac_abs_top_srcdir=$srcdir ;;
17082 *) # Relative name.
17083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17084 ac_top_srcdir=$ac_top_build_prefix$srcdir
17085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17086esac
17087ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17088
17089
17090 cd "$ac_dir"
17091
17092 # Check for guested configure; otherwise get Cygnus style configure.
17093 if test -f "$ac_srcdir/configure.gnu"; then
17094 ac_sub_configure=$ac_srcdir/configure.gnu
17095 elif test -f "$ac_srcdir/configure"; then
17096 ac_sub_configure=$ac_srcdir/configure
Jakub Jelinek3c36aa62017-01-17 10:38:48 +010017097 elif test -f "$ac_srcdir/configure.in"; then
Ilya Verbin9d73ec12014-11-13 14:05:49 +000017098 # This should be Cygnus configure.
17099 ac_sub_configure=$ac_aux_dir/configure
17100 else
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17102$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17103 ac_sub_configure=
17104 fi
17105
17106 # The recursion is here.
17107 if test -n "$ac_sub_configure"; then
17108 # Make the cache file name correct relative to the subdirectory.
17109 case $cache_file in
17110 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17111 *) # Relative name.
17112 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17113 esac
17114
17115 { $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
17116$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17117 # The eval makes quoting arguments work.
17118 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17119 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17120 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17121 fi
17122
17123 cd "$ac_popdir"
17124 done
17125fi
Kirill Yukhin5f520812014-11-13 14:03:17 +000017126if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17128$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17129fi
17130