]> git.ipfire.org Git - thirdparty/gcc.git/blame - liboffloadmic/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / liboffloadmic / configure
CommitLineData
5f520819
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for MIC Offload Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5f520819 7#
5f520819
KY
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.
22e05272 90as_myself=
5f520819
KY
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5f520819
KY
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5f520819
KY
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
5f520819
KY
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5f520819
KY
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5f520819
KY
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5f520819
KY
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
5f520819
KY
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5f520819 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5f520819
KY
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
5f520819
KY
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5f520819 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5f520819
KY
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
5f520819
KY
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
5f520819
KY
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
5f520819
KY
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5f520819
KY
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5f520819
KY
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='MIC Offload Runtime Library'
589PACKAGE_TARNAME='liboffloadmic'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='MIC Offload Runtime Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
9d73ec14 595enable_option_checking=no
5f520819
KY
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
3c36aa6b 636get_gcc_base_ver
5f520819
KY
637link_offloadmic_target
638link_offloadmic_host
639lt_cv_dlopen_libs
640toolexeclibdir
641toolexecdir
642CXXCPP
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
648RANLIB
649AR
650OBJDUMP
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657SED
658LIBTOOL
659LIBOFFLOADMIC_HOST_FALSE
660LIBOFFLOADMIC_HOST_TRUE
22e05272 661ALLOCA
5f520819
KY
662EGREP
663GREP
664CPP
9d73ec14 665subdirs
5f520819
KY
666multi_basedir
667am__fastdepCXX_FALSE
668am__fastdepCXX_TRUE
669CXXDEPMODE
670ac_ct_CXX
671CXXFLAGS
672CXX
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
735aacba 676am__nodep
5f520819
KY
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
22e05272
JM
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
5f520819
KY
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
770ac_subst_files=''
771ac_user_opts='
772enable_option_checking
22e05272 773enable_silent_rules
5f520819
KY
774enable_maintainer_mode
775enable_dependency_tracking
776enable_multilib
777enable_version_specific_runtime_libs
778enable_shared
779enable_static
780with_pic
781enable_fast_install
782with_gnu_ld
783enable_libtool_lock
3c36aa6b 784with_gcc_major_version_only
5f520819
KY
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CXX
795CXXFLAGS
796CCC
797CPP
798CXXCPP'
9d73ec14 799ac_subdirs_all='plugin'
5f520819
KY
800
801# Initialize some variables set by options.
802ac_init_help=
803ac_init_version=false
804ac_unrecognized_opts=
805ac_unrecognized_sep=
806# The variables have the same names as the options, with
807# dashes changed to underlines.
808cache_file=/dev/null
809exec_prefix=NONE
810no_create=
811no_recursion=
812prefix=NONE
813program_prefix=NONE
814program_suffix=NONE
815program_transform_name=s,x,x,
816silent=
817site=
818srcdir=
819verbose=
820x_includes=NONE
821x_libraries=NONE
822
823# Installation directory options.
824# These are left unexpanded so users can "make install exec_prefix=/foo"
825# and all the variables that are supposed to be based on exec_prefix
826# by default will actually change.
827# Use braces instead of parens because sh, perl, etc. also accept them.
828# (The list follows the same order as the GNU Coding Standards.)
829bindir='${exec_prefix}/bin'
830sbindir='${exec_prefix}/sbin'
831libexecdir='${exec_prefix}/libexec'
832datarootdir='${prefix}/share'
833datadir='${datarootdir}'
834sysconfdir='${prefix}/etc'
835sharedstatedir='${prefix}/com'
836localstatedir='${prefix}/var'
837includedir='${prefix}/include'
838oldincludedir='/usr/include'
839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840infodir='${datarootdir}/info'
841htmldir='${docdir}'
842dvidir='${docdir}'
843pdfdir='${docdir}'
844psdir='${docdir}'
845libdir='${exec_prefix}/lib'
846localedir='${datarootdir}/locale'
847mandir='${datarootdir}/man'
848
849ac_prev=
850ac_dashdash=
851for ac_option
852do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
22e05272
JM
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
5f520819
KY
864 esac
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 908 as_fn_error $? "invalid feature name: $ac_useropt"
5f520819
KY
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913"enable_$ac_useropt"
914"*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 934 as_fn_error $? "invalid feature name: $ac_useropt"
5f520819
KY
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1138 as_fn_error $? "invalid package name: $ac_useropt"
5f520819
KY
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1149
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1154 as_fn_error $? "invalid package name: $ac_useropt"
5f520819
KY
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159"with_$ac_useropt"
1160"*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
22e05272
JM
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185Try \`$0 --help' for more information"
5f520819
KY
1186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5f520819
KY
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5f520819
KY
1204 ;;
1205
1206 esac
1207done
1208
1209if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1211 as_fn_error $? "missing argument to $ac_option"
5f520819
KY
1212fi
1213
1214if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
22e05272 1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5f520819
KY
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1220fi
1221
1222# Check all directory arguments for consistency.
1223for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1227do
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
22e05272 1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5f520819
KY
1241done
1242
1243# There might be people who depend on the old broken behavior: `$host'
1244# used to hold the argument of --host etc.
1245# FIXME: To remove some day.
1246build=$build_alias
1247host=$host_alias
1248target=$target_alias
1249
1250# FIXME: To remove some day.
1251if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
5f520819
KY
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257fi
1258
1259ac_tool_prefix=
1260test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262test "$silent" = yes && exec 6>/dev/null
1263
1264
1265ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266ac_ls_di=`ls -di .` &&
1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1268 as_fn_error $? "working directory cannot be determined"
5f520819 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1270 as_fn_error $? "pwd does not report name of working directory"
5f520819
KY
1271
1272
1273# Find the source files, if location was not specified.
1274if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282$as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1303 fi
1304else
1305 ac_srcdir_defaulted=no
1306fi
1307if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5f520819
KY
1310fi
1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312ac_abs_confdir=`(
22e05272 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5f520819
KY
1314 pwd)`
1315# When building in place, set srcdir=.
1316if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318fi
1319# Remove unnecessary trailing slashes from srcdir.
1320# Double slashes in file names in object file debugging info
1321# mess up M-x gdb in Emacs.
1322case $srcdir in
1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324esac
1325for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330done
1331
1332#
1333# Report the --help message.
1334#
1335if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339\`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1340
1341Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344VAR=VALUE. See below for descriptions of some of the useful variables.
1345
1346Defaults for the options are specified in brackets.
1347
1348Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
22e05272 1353 -q, --quiet, --silent do not print \`checking ...' messages
5f520819
KY
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358
1359Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1364
1365By default, \`make install' will install all the files in
1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368for instance \`--prefix=\$HOME'.
1369
1370For better control, use the options below.
1371
1372Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392_ACEOF
1393
1394 cat <<\_ACEOF
1395
1396Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400
1401System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405_ACEOF
1406fi
1407
1408if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1411 esac
1412 cat <<\_ACEOF
1413
1414Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22e05272
JM
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-maintainer-mode
1421 enable make rules and dependencies not useful (and
1422 sometimes confusing) to the casual installer
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
5f520819
KY
1427 --enable-multilib build many library versions (default)
1428 --enable-version-specific-runtime-libs
1429 Specify that runtime libraries should be installed
1430 in a compiler-specific directory
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436
1437Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1443 --with-gcc-major-version-only
1444 use only GCC major number in filesystem paths
5f520819
KY
1445
1446Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5f520819
KY
1453 you have headers in a nonstandard directory <include dir>
1454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
1456 CPP C preprocessor
1457 CXXCPP C++ preprocessor
1458
1459Use these variables to override the choices made by `configure' or to help
1460it to find libraries and programs with nonstandard names/locations.
1461
1462Report bugs to the package provider.
1463_ACEOF
1464ac_status=$?
1465fi
1466
1467if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1474
1475case "$ac_dir" in
1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477*)
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485esac
1486ac_abs_top_builddir=$ac_pwd
1487ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488# for backward compatibility:
1489ac_top_builddir=$ac_top_build_prefix
1490
1491case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504esac
1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1520fi
1521
1522test -n "$ac_init_help" && exit $ac_status
1523if $ac_init_version; then
1524 cat <<\_ACEOF
1525MIC Offload Runtime Library configure 1.0
22e05272 1526generated by GNU Autoconf 2.69
5f520819 1527
22e05272 1528Copyright (C) 2012 Free Software Foundation, Inc.
5f520819
KY
1529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
1531_ACEOF
1532 exit
1533fi
1534
1535## ------------------------ ##
1536## Autoconf initialization. ##
1537## ------------------------ ##
1538
1539# ac_fn_c_try_compile LINENO
1540# --------------------------
1541# Try to compile conftest.$ac_ext, and return whether this succeeded.
1542ac_fn_c_try_compile ()
1543{
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550esac
1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552$as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1559 fi
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566else
1567 $as_echo "$as_me: failed program was:" >&5
1568sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1
1571fi
22e05272
JM
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
5f520819
KY
1574
1575} # ac_fn_c_try_compile
1576
1577# ac_fn_cxx_try_compile LINENO
1578# ----------------------------
1579# Try to compile conftest.$ac_ext, and return whether this succeeded.
1580ac_fn_cxx_try_compile ()
1581{
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_cxx_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609fi
22e05272
JM
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
5f520819
KY
1612
1613} # ac_fn_cxx_try_compile
1614
22e05272
JM
1615# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1616# -------------------------------------------
1617# Tests whether TYPE exists after having included INCLUDES, setting cache
1618# variable VAR accordingly.
1619ac_fn_c_check_type ()
5f520819
KY
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272
JM
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623$as_echo_n "checking for $2... " >&6; }
1624if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626else
1627 eval "$3=no"
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629/* end confdefs.h. */
1630$4
1631int
1632main ()
1633{
1634if (sizeof ($2))
1635 return 0;
1636 ;
1637 return 0;
1638}
1639_ACEOF
1640if ac_fn_c_try_compile "$LINENO"; then :
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h. */
1643$4
1644int
1645main ()
1646{
1647if (sizeof (($2)))
1648 return 0;
1649 ;
1650 return 0;
1651}
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654
1655else
1656 eval "$3=yes"
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659fi
1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661fi
1662eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667} # ac_fn_c_check_type
1668
1669# ac_fn_c_try_cpp LINENO
1670# ----------------------
1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_cpp ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
5f520819
KY
1676case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
22e05272 1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5f520819
KY
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272
JM
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5f520819 1692 test ! -s conftest.err
5f520819
KY
1693 }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
22e05272 1699 ac_retval=1
5f520819 1700fi
22e05272
JM
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
5f520819 1703
22e05272 1704} # ac_fn_c_try_cpp
5f520819 1705
22e05272 1706# ac_fn_c_try_run LINENO
5f520819 1707# ----------------------
22e05272
JM
1708# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709# that executables *can* be run.
1710ac_fn_c_try_run ()
5f520819
KY
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1713 if { { ac_try="$ac_link"
5f520819
KY
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
22e05272
JM
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=$ac_status
1741fi
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746} # ac_fn_c_try_run
1747
1748# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749# -------------------------------------------------------
1750# Tests whether HEADER exists and can be compiled using the include files in
1751# INCLUDES, setting the cache variable VAR accordingly.
1752ac_fn_c_check_header_compile ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
1757if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762$4
1763#include <$2>
1764_ACEOF
1765if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767else
1768 eval "$3=no"
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_header_compile
1778
1779# ac_fn_c_try_link LINENO
1780# -----------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_link ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
5f520819
KY
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272
JM
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
5f520819 1803 test ! -s conftest.err
22e05272
JM
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
5f520819
KY
1807 }; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
22e05272 1813 ac_retval=1
5f520819 1814fi
22e05272
JM
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
5f520819 1822
22e05272 1823} # ac_fn_c_try_link
5f520819
KY
1824
1825# ac_fn_c_check_func LINENO FUNC VAR
1826# ----------------------------------
1827# Tests whether FUNC exists, setting the cache variable VAR accordingly
1828ac_fn_c_check_func ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
22e05272 1833if eval \${$3+:} false; then :
5f520819
KY
1834 $as_echo_n "(cached) " >&6
1835else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840#define $2 innocuous_$2
1841
1842/* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1846
1847#ifdef __STDC__
1848# include <limits.h>
1849#else
1850# include <assert.h>
1851#endif
1852
1853#undef $2
1854
1855/* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858#ifdef __cplusplus
1859extern "C"
1860#endif
1861char $2 ();
1862/* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865#if defined __stub_$2 || defined __stub___$2
1866choke me
1867#endif
1868
1869int
1870main ()
1871{
1872return $2 ();
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
22e05272 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5f520819
KY
1889
1890} # ac_fn_c_check_func
1891
5f520819
KY
1892# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1893# -------------------------------------------------------
1894# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1895# the include files in INCLUDES and setting the cache variable VAR
1896# accordingly.
1897ac_fn_c_check_header_mongrel ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1900 if eval \${$3+:} false; then :
5f520819
KY
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902$as_echo_n "checking for $2... " >&6; }
22e05272 1903if eval \${$3+:} false; then :
5f520819
KY
1904 $as_echo_n "(cached) " >&6
1905fi
1906eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908$as_echo "$ac_res" >&6; }
1909else
1910 # Is the header compilable?
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1912$as_echo_n "checking $2 usability... " >&6; }
1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916#include <$2>
1917_ACEOF
1918if ac_fn_c_try_compile "$LINENO"; then :
1919 ac_header_compiler=yes
1920else
1921 ac_header_compiler=no
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1925$as_echo "$ac_header_compiler" >&6; }
1926
1927# Is the header present?
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1929$as_echo_n "checking $2 presence... " >&6; }
1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_cpp "$LINENO"; then :
1935 ac_header_preproc=yes
1936else
1937 ac_header_preproc=no
1938fi
22e05272 1939rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1941$as_echo "$ac_header_preproc" >&6; }
1942
1943# So? What about this header?
1944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1945 yes:no: )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1947$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ;;
1951 no:yes:* )
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1953$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1955$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1957$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1959$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 ;;
1963esac
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965$as_echo_n "checking for $2... " >&6; }
22e05272 1966if eval \${$3+:} false; then :
5f520819
KY
1967 $as_echo_n "(cached) " >&6
1968else
1969 eval "$3=\$ac_header_compiler"
1970fi
1971eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974fi
22e05272 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
5f520819
KY
1976
1977} # ac_fn_c_check_header_mongrel
1978
1979# ac_fn_cxx_try_cpp LINENO
1980# ------------------------
1981# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982ac_fn_cxx_try_cpp ()
1983{
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1986case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989esac
1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991$as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 2000 test $ac_status = 0; } > conftest.i && {
5f520819
KY
2001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 }; then :
2004 ac_retval=0
2005else
2006 $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1
2010fi
22e05272
JM
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
5f520819
KY
2013
2014} # ac_fn_cxx_try_cpp
2015
2016# ac_fn_cxx_try_link LINENO
2017# -------------------------
2018# Try to link conftest.$ac_ext, and return whether this succeeded.
2019ac_fn_cxx_try_link ()
2020{
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2036 fi
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
22e05272 2043 test -x conftest$ac_exeext
5f520819
KY
2044 }; then :
2045 ac_retval=0
2046else
2047 $as_echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_retval=1
2051fi
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
5f520819
KY
2059
2060} # ac_fn_cxx_try_link
2061cat >config.log <<_ACEOF
2062This file contains any messages produced by compilers while
2063running configure, to aid debugging if configure makes a mistake.
2064
2065It was created by MIC Offload Runtime Library $as_me 1.0, which was
22e05272 2066generated by GNU Autoconf 2.69. Invocation command line was
5f520819
KY
2067
2068 $ $0 $@
2069
2070_ACEOF
2071exec 5>>config.log
2072{
2073cat <<_ASUNAME
2074## --------- ##
2075## Platform. ##
2076## --------- ##
2077
2078hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086
2087/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2088/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2089/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2091/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2092/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2093/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094
2095_ASUNAME
2096
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 $as_echo "PATH: $as_dir"
2103 done
2104IFS=$as_save_IFS
2105
2106} >&5
2107
2108cat >&5 <<_ACEOF
2109
2110
2111## ----------- ##
2112## Core tests. ##
2113## ----------- ##
2114
2115_ACEOF
2116
2117
2118# Keep a trace of the command line.
2119# Strip out --no-create and --no-recursion so they do not pile up.
2120# Strip out --silent because we don't want to record it for future runs.
2121# Also quote any args containing shell meta-characters.
2122# Make two passes to allow for proper duplicate-argument suppression.
2123ac_configure_args=
2124ac_configure_args0=
2125ac_configure_args1=
2126ac_must_keep_next=false
2127for ac_pass in 1 2
2128do
2129 for ac_arg
2130 do
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
2136 *\'*)
2137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 case $ac_pass in
2140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2141 2)
2142 as_fn_append ac_configure_args1 " '$ac_arg'"
2143 if test $ac_must_keep_next = true; then
2144 ac_must_keep_next=false # Got value, back to normal.
2145 else
2146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2154 ;;
2155 -* ) ac_must_keep_next=true ;;
2156 esac
2157 fi
2158 as_fn_append ac_configure_args " '$ac_arg'"
2159 ;;
2160 esac
2161 done
2162done
2163{ ac_configure_args0=; unset ac_configure_args0;}
2164{ ac_configure_args1=; unset ac_configure_args1;}
2165
2166# When interrupted or exit'd, cleanup temporary files, and complete
2167# config.log. We remove comments because anyway the quotes in there
2168# would cause problems or look ugly.
2169# WARNING: Use '\'' to represent an apostrophe within the trap.
2170# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171trap 'exit_status=$?
2172 # Save into config.log some information that might help in debugging.
2173 {
2174 echo
2175
22e05272 2176 $as_echo "## ---------------- ##
5f520819 2177## Cache variables. ##
22e05272 2178## ---------------- ##"
5f520819
KY
2179 echo
2180 # The following way of writing the cache mishandles newlines in values,
2181(
2182 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in #(
2185 *${as_nl}*)
2186 case $ac_var in #(
2187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 esac
2190 case $ac_var in #(
2191 _ | IFS | as_nl) ;; #(
2192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2193 *) { eval $ac_var=; unset $ac_var;} ;;
2194 esac ;;
2195 esac
2196 done
2197 (set) 2>&1 |
2198 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199 *${as_nl}ac_space=\ *)
2200 sed -n \
2201 "s/'\''/'\''\\\\'\'''\''/g;
2202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 ;; #(
2204 *)
2205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2206 ;;
2207 esac |
2208 sort
2209)
2210 echo
2211
22e05272 2212 $as_echo "## ----------------- ##
5f520819 2213## Output variables. ##
22e05272 2214## ----------------- ##"
5f520819
KY
2215 echo
2216 for ac_var in $ac_subst_vars
2217 do
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2225
2226 if test -n "$ac_subst_files"; then
22e05272 2227 $as_echo "## ------------------- ##
5f520819 2228## File substitutions. ##
22e05272 2229## ------------------- ##"
5f520819
KY
2230 echo
2231 for ac_var in $ac_subst_files
2232 do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
2238 done | sort
2239 echo
2240 fi
2241
2242 if test -s confdefs.h; then
22e05272 2243 $as_echo "## ----------- ##
5f520819 2244## confdefs.h. ##
22e05272 2245## ----------- ##"
5f520819
KY
2246 echo
2247 cat confdefs.h
2248 echo
2249 fi
2250 test "$ac_signal" != 0 &&
2251 $as_echo "$as_me: caught signal $ac_signal"
2252 $as_echo "$as_me: exit $exit_status"
2253 } >&5
2254 rm -f core *.core core.conftest.* &&
2255 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 exit $exit_status
2257' 0
2258for ac_signal in 1 2 13 15; do
2259 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260done
2261ac_signal=0
2262
2263# confdefs.h avoids OS command line length limits that DEFS can exceed.
2264rm -f -r conftest* confdefs.h
2265
2266$as_echo "/* confdefs.h */" > confdefs.h
2267
2268# Predefined preprocessor variables.
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_NAME "$PACKAGE_NAME"
2272_ACEOF
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_VERSION "$PACKAGE_VERSION"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_STRING "$PACKAGE_STRING"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_URL "$PACKAGE_URL"
2292_ACEOF
2293
2294
2295# Let the site file select an alternate cache file if it wants to.
2296# Prefer an explicitly selected file to automatically selected ones.
2297ac_site_file1=NONE
2298ac_site_file2=NONE
2299if test -n "$CONFIG_SITE"; then
22e05272
JM
2300 # We do not want a PATH search for config.site.
2301 case $CONFIG_SITE in #((
2302 -*) ac_site_file1=./$CONFIG_SITE;;
2303 */*) ac_site_file1=$CONFIG_SITE;;
2304 *) ac_site_file1=./$CONFIG_SITE;;
2305 esac
5f520819
KY
2306elif test "x$prefix" != xNONE; then
2307 ac_site_file1=$prefix/share/config.site
2308 ac_site_file2=$prefix/etc/config.site
2309else
2310 ac_site_file1=$ac_default_prefix/share/config.site
2311 ac_site_file2=$ac_default_prefix/etc/config.site
2312fi
2313for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314do
2315 test "x$ac_site_file" = xNONE && continue
22e05272 2316 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5f520819
KY
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2318$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2319 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2320 . "$ac_site_file" \
2321 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323as_fn_error $? "failed to load site script $ac_site_file
2324See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
2325 fi
2326done
2327
2328if test -r "$cache_file"; then
22e05272
JM
2329 # Some versions of bash will fail to source /dev/null (special files
2330 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2331 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5f520819
KY
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2333$as_echo "$as_me: loading cache $cache_file" >&6;}
2334 case $cache_file in
2335 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2336 *) . "./$cache_file";;
2337 esac
2338 fi
2339else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2341$as_echo "$as_me: creating cache $cache_file" >&6;}
2342 >$cache_file
2343fi
2344
2345# Check that the precious variables saved in the cache have kept the same
2346# value.
2347ac_cache_corrupted=false
2348for ac_var in $ac_precious_vars; do
2349 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350 eval ac_new_set=\$ac_env_${ac_var}_set
2351 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352 eval ac_new_val=\$ac_env_${ac_var}_value
2353 case $ac_old_set,$ac_new_set in
2354 set,)
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2356$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2357 ac_cache_corrupted=: ;;
2358 ,set)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2360$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,);;
2363 *)
2364 if test "x$ac_old_val" != "x$ac_new_val"; then
2365 # differences in whitespace do not lead to failure.
2366 ac_old_val_w=`echo x $ac_old_val`
2367 ac_new_val_w=`echo x $ac_new_val`
2368 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2370$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371 ac_cache_corrupted=:
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2374$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375 eval $ac_var=\$ac_old_val
2376 fi
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2378$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2380$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 fi;;
2382 esac
2383 # Pass precious variables to config.status.
2384 if test "$ac_new_set" = set; then
2385 case $ac_new_val in
2386 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387 *) ac_arg=$ac_var=$ac_new_val ;;
2388 esac
2389 case " $ac_configure_args " in
2390 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2391 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392 esac
2393 fi
2394done
2395if $ac_cache_corrupted; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2399$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2400 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5f520819
KY
2401fi
2402## -------------------- ##
2403## Main body of script. ##
2404## -------------------- ##
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411
2412
2413
2414
2415
2416
2417ac_aux_dir=
2418for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2419 if test -f "$ac_dir/install-sh"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/install-sh -c"
2422 break
2423 elif test -f "$ac_dir/install.sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install.sh -c"
2426 break
2427 elif test -f "$ac_dir/shtool"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/shtool install -c"
2430 break
2431 fi
5f520819
KY
2432done
2433if test -z "$ac_aux_dir"; then
22e05272 2434 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5f520819
KY
2435fi
2436
2437# These three variables are undocumented and unsupported,
2438# and are intended to be withdrawn in a future Autoconf release.
2439# They can cause serious problems if a builder's source tree is in a directory
2440# whose full name contains unusual characters.
2441ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2442ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2443ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2444
2445
2446# Make sure we can run config.sub.
2447$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2448 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5f520819
KY
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2451$as_echo_n "checking build system type... " >&6; }
22e05272 2452if ${ac_cv_build+:} false; then :
5f520819
KY
2453 $as_echo_n "(cached) " >&6
2454else
2455 ac_build_alias=$build_alias
2456test "x$ac_build_alias" = x &&
2457 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2458test "x$ac_build_alias" = x &&
22e05272 2459 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5f520819 2460ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5f520819
KY
2462
2463fi
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2465$as_echo "$ac_cv_build" >&6; }
2466case $ac_cv_build in
2467*-*-*) ;;
22e05272 2468*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5f520819
KY
2469esac
2470build=$ac_cv_build
2471ac_save_IFS=$IFS; IFS='-'
2472set x $ac_cv_build
2473shift
2474build_cpu=$1
2475build_vendor=$2
2476shift; shift
2477# Remember, the first character of IFS is used to create $*,
2478# except with old shells:
2479build_os=$*
2480IFS=$ac_save_IFS
2481case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2482
2483
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2485$as_echo_n "checking host system type... " >&6; }
22e05272 2486if ${ac_cv_host+:} false; then :
5f520819
KY
2487 $as_echo_n "(cached) " >&6
2488else
2489 if test "x$host_alias" = x; then
2490 ac_cv_host=$ac_cv_build
2491else
2492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5f520819
KY
2494fi
2495
2496fi
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2498$as_echo "$ac_cv_host" >&6; }
2499case $ac_cv_host in
2500*-*-*) ;;
22e05272 2501*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5f520819
KY
2502esac
2503host=$ac_cv_host
2504ac_save_IFS=$IFS; IFS='-'
2505set x $ac_cv_host
2506shift
2507host_cpu=$1
2508host_vendor=$2
2509shift; shift
2510# Remember, the first character of IFS is used to create $*,
2511# except with old shells:
2512host_os=$*
2513IFS=$ac_save_IFS
2514case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2515
2516
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2518$as_echo_n "checking target system type... " >&6; }
22e05272 2519if ${ac_cv_target+:} false; then :
5f520819
KY
2520 $as_echo_n "(cached) " >&6
2521else
2522 if test "x$target_alias" = x; then
2523 ac_cv_target=$ac_cv_host
2524else
2525 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5f520819
KY
2527fi
2528
2529fi
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2531$as_echo "$ac_cv_target" >&6; }
2532case $ac_cv_target in
2533*-*-*) ;;
22e05272 2534*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5f520819
KY
2535esac
2536target=$ac_cv_target
2537ac_save_IFS=$IFS; IFS='-'
2538set x $ac_cv_target
2539shift
2540target_cpu=$1
2541target_vendor=$2
2542shift; shift
2543# Remember, the first character of IFS is used to create $*,
2544# except with old shells:
2545target_os=$*
2546IFS=$ac_save_IFS
2547case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2548
2549
2550# The aliases save the names the user supplied, while $host etc.
2551# will get canonicalized.
2552test -n "$target_alias" &&
2553 test "$program_prefix$program_suffix$program_transform_name" = \
2554 NONENONEs,x,x, &&
2555 program_prefix=${target_alias}-
2556
2557target_alias=${target_alias-$host_alias}
2558
2559
22e05272 2560am__api_version='1.15'
5f520819
KY
2561
2562# Find a good install program. We prefer a C program (faster),
2563# so one script is as good as another. But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# OS/2's system install, which has a completely different semantic
2574# ./install, which can be erroneously created by make from ./install.sh.
2575# Reject install programs that cannot install multiple files.
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577$as_echo_n "checking for a BSD-compatible install... " >&6; }
2578if test -z "$INSTALL"; then
22e05272 2579if ${ac_cv_path_install+:} false; then :
5f520819
KY
2580 $as_echo_n "(cached) " >&6
2581else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2593 *)
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5f520819
KY
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2603 :
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2607 :
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2620 fi
2621 fi
2622 fi
2623 done
2624 done
2625 ;;
2626esac
2627
2628 done
2629IFS=$as_save_IFS
2630
2631rm -rf conftest.one conftest.two conftest.dir
2632
2633fi
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2642 fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645$as_echo "$INSTALL" >&6; }
2646
2647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648# It thinks the first close brace ends the variable substitution.
2649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656$as_echo_n "checking whether build environment is sane... " >&6; }
5f520819
KY
2657# Reject unsafe characters in $srcdir or the absolute working directory
2658# name. Accept space and tab only in the latter.
2659am_lf='
2660'
2661case `pwd` in
2662 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5f520819
KY
2664esac
2665case $srcdir in
2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5f520819
KY
2668esac
2669
22e05272 2670# Do 'set' in a subshell so we don't clobber the current shell's
5f520819
KY
2671# arguments. Must try -L first in case configure is actually a
2672# symlink; some systems play weird games with the mod time of symlinks
2673# (eg FreeBSD returns the mod time of the symlink's containing
2674# directory).
2675if (
22e05272
JM
2676 am_has_slept=no
2677 for am_try in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.file
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2683 fi
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2693 fi
2694 if test "$2" = conftest.file || test $am_try -eq 2; then
2695 break
2696 fi
2697 # Just in case.
2698 sleep 1
2699 am_has_slept=yes
2700 done
5f520819
KY
2701 test "$2" = conftest.file
2702 )
2703then
2704 # Ok.
2705 :
2706else
22e05272 2707 as_fn_error $? "newly created file is older than distributed files!
5f520819
KY
2708Check your system clock" "$LINENO" 5
2709fi
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
22e05272
JM
2712# If we didn't sleep, we still need to ensure time stamps of config.status and
2713# generated files are strictly newer.
2714am_sleep_pid=
2715if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716 ( sleep 1 ) &
2717 am_sleep_pid=$!
2718fi
2719
2720rm -f conftest.file
2721
5f520819
KY
2722test "$program_prefix" != NONE &&
2723 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724# Use a double $ so make ignores it.
2725test "$program_suffix" != NONE &&
2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727# Double any \ or $.
2728# By default was `s,x,x', remove it if useless.
2729ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
22e05272
JM
2732# Expand $ac_aux_dir to an absolute path.
2733am_aux_dir=`cd "$ac_aux_dir" && pwd`
5f520819
KY
2734
2735if test x"${MISSING+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 *)
2740 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741 esac
2742fi
2743# Use eval to expand $SHELL
22e05272
JM
2744if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
5f520819
KY
2746else
2747 am_missing_run=
22e05272
JM
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5f520819
KY
2750fi
2751
22e05272 2752if test x"${install_sh+set}" != xset; then
5f520819
KY
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 *)
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2759fi
2760
22e05272
JM
2761# Installed binaries are usually stripped using 'strip' when the user
2762# run "make install-strip". However 'strip' might not be the right
5f520819 2763# tool to use in cross-compilation environments, therefore Automake
22e05272 2764# will honor the 'STRIP' environment variable to overrule this program.
5f520819
KY
2765if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768set dummy ${ac_tool_prefix}strip; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2771if ${ac_cv_prog_STRIP+:} false; then :
5f520819
KY
2772 $as_echo_n "(cached) " >&6
2773else
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788done
2789 done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794STRIP=$ac_cv_prog_STRIP
2795if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797$as_echo "$STRIP" >&6; }
2798else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804fi
2805if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808set dummy strip; ac_word=$2
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2811if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5f520819
KY
2812 $as_echo_n "(cached) " >&6
2813else
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
2824 ac_cv_prog_ac_ct_STRIP="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828done
2829 done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837$as_echo "$ac_ct_STRIP" >&6; }
2838else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840$as_echo "no" >&6; }
2841fi
2842
2843 if test "x$ac_ct_STRIP" = x; then
2844 STRIP=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847yes:)
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850ac_tool_warned=yes ;;
2851esac
2852 STRIP=$ac_ct_STRIP
2853 fi
2854else
2855 STRIP="$ac_cv_prog_STRIP"
2856fi
2857
2858fi
2859INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863if test -z "$MKDIR_P"; then
22e05272 2864 if ${ac_cv_path_mkdir+:} false; then :
5f520819
KY
2865 $as_echo_n "(cached) " >&6
2866else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_prog in mkdir gmkdir; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5f520819
KY
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 break 3;;
2881 esac
2882 done
2883 done
2884 done
2885IFS=$as_save_IFS
2886
2887fi
2888
22e05272 2889 test -d ./--version && rmdir ./--version
5f520819
KY
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P="$ac_cv_path_mkdir -p"
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
5f520819
KY
2897 MKDIR_P="$ac_install_sh -d"
2898 fi
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901$as_echo "$MKDIR_P" >&6; }
2902
5f520819
KY
2903for ac_prog in gawk mawk nawk awk
2904do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906set dummy $ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2909if ${ac_cv_prog_AWK+:} false; then :
5f520819
KY
2910 $as_echo_n "(cached) " >&6
2911else
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927 done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932AWK=$ac_cv_prog_AWK
2933if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935$as_echo "$AWK" >&6; }
2936else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942 test -n "$AWK" && break
2943done
2944
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947set x ${MAKE-make}
2948ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2949if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5f520819
KY
2950 $as_echo_n "(cached) " >&6
2951else
2952 cat >conftest.make <<\_ACEOF
2953SHELL = /bin/sh
2954all:
2955 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956_ACEOF
22e05272 2957# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5f520819
KY
2958case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 *@@@%%%=?*=@@@%%%*)
2960 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 *)
2962 eval ac_cv_prog_make_${ac_make}_set=no;;
2963esac
2964rm -f conftest.make
2965fi
2966if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968$as_echo "yes" >&6; }
2969 SET_MAKE=
2970else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2974fi
2975
2976rm -rf .tst 2>/dev/null
2977mkdir .tst 2>/dev/null
2978if test -d .tst; then
2979 am__leading_dot=.
2980else
2981 am__leading_dot=_
2982fi
2983rmdir .tst 2>/dev/null
2984
22e05272
JM
2985# Check whether --enable-silent-rules was given.
2986if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2988fi
2989
2990case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994esac
2995am_make=${MAKE-make}
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 if $as_echo 'TRUE=$(BAR$(V))
3002BAR0=false
3003BAR1=true
3004V=1
3005am__doit:
3006 @$(TRUE)
3007.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3009else
3010 am_cv_make_support_nested_variables=no
3011fi
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014$as_echo "$am_cv_make_support_nested_variables" >&6; }
3015if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021fi
3022AM_BACKSLASH='\'
3023
5f520819
KY
3024if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
22e05272 3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5f520819
KY
3031 fi
3032fi
3033
3034# test whether we have cygpath
3035if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041fi
3042
3043
3044# Define the identity of the package.
3045 PACKAGE='liboffloadmic'
3046 VERSION='1.0'
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define PACKAGE "$PACKAGE"
3051_ACEOF
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define VERSION "$VERSION"
3056_ACEOF
3057
3058# Some tools Automake needs.
3059
3060ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3061
3062
3063AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3064
3065
3066AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3067
3068
3069AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3070
3071
3072MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073
22e05272
JM
3074# For better backward compatibility. To be removed once Automake 1.9.x
3075# dies out for good. For more background, see:
3076# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3077# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3078mkdir_p='$(MKDIR_P)'
3079
3080# We need awk for the "check" target (and possibly the TAP driver). The
3081# system "awk" is bad on some platforms.
735aacba
MH
3082# Always define AMTAR for backward compatibility. Yes, it's still used
3083# in the wild :-( We should find a proper way to deprecate it ...
3084AMTAR='$${TAR-tar}'
5f520819 3085
22e05272
JM
3086
3087# We'll loop over all known methods to create a tar archive until one works.
3088_am_tools='gnutar pax cpio none'
3089
735aacba 3090am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5f520819
KY
3091
3092
3093
3094
3095
3096
22e05272
JM
3097# POSIX will say in a future version that running "rm -f" with no argument
3098# is OK; and we want to be able to make that assumption in our Makefile
3099# recipes. So use an aggressive probe to check that the usage we want is
3100# actually supported "in the wild" to an acceptable degree.
3101# See automake bug#10828.
3102# To make any issue more visible, cause the running configure to be aborted
3103# by default if the 'rm' program in use doesn't match our expectations; the
3104# user can still override this though.
3105if rm -f && rm -fr && rm -rf; then : OK; else
3106 cat >&2 <<'END'
3107Oops!
3108
3109Your 'rm' program seems unable to run without file operands specified
3110on the command line, even when the '-f' option is present. This is contrary
3111to the behaviour of most rm programs out there, and not conforming with
3112the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3113
3114Please tell bug-automake@gnu.org about your system, including the value
3115of your $PATH and any error possibly output before this message. This
3116can help us improve future automake versions.
3117
3118END
3119 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3120 echo 'Configuration will proceed anyway, since you have set the' >&2
3121 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3122 echo >&2
3123 else
3124 cat >&2 <<'END'
3125Aborting the configuration process, to ensure you take notice of the issue.
3126
3127You can download and install GNU coreutils to get an 'rm' implementation
3128that behaves properly: <http://www.gnu.org/software/coreutils/>.
3129
3130If you want to complete the configuration process using your problematic
3131'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3132to "yes", and re-run configure.
3133
3134END
3135 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3136 fi
3137fi
3138
3139
5f520819
KY
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3142 # Check whether --enable-maintainer-mode was given.
3143if test "${enable_maintainer_mode+set}" = set; then :
3144 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3145else
3146 USE_MAINTAINER_MODE=no
3147fi
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3150$as_echo "$USE_MAINTAINER_MODE" >&6; }
3151 if test $USE_MAINTAINER_MODE = yes; then
3152 MAINTAINER_MODE_TRUE=
3153 MAINTAINER_MODE_FALSE='#'
3154else
3155 MAINTAINER_MODE_TRUE='#'
3156 MAINTAINER_MODE_FALSE=
3157fi
3158
3159 MAINT=$MAINTAINER_MODE_TRUE
3160
3161
3162
3163ac_ext=c
3164ac_cpp='$CPP $CPPFLAGS'
3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3170set dummy ${ac_tool_prefix}gcc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3173if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3174 $as_echo_n "(cached) " >&6
3175else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190done
3191 done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199$as_echo "$CC" >&6; }
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
3206fi
3207if test -z "$ac_cv_prog_CC"; then
3208 ac_ct_CC=$CC
3209 # Extract the first word of "gcc", so it can be a program name with args.
3210set dummy gcc; ac_word=$2
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3213if ${ac_cv_prog_ac_ct_CC+:} false; then :
5f520819
KY
3214 $as_echo_n "(cached) " >&6
3215else
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218else
3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220for as_dir in $PATH
3221do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3226 ac_cv_prog_ac_ct_CC="gcc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230done
3231 done
3232IFS=$as_save_IFS
3233
3234fi
3235fi
3236ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239$as_echo "$ac_ct_CC" >&6; }
3240else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243fi
3244
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249yes:)
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252ac_tool_warned=yes ;;
3253esac
3254 CC=$ac_ct_CC
3255 fi
3256else
3257 CC="$ac_cv_prog_CC"
3258fi
3259
3260if test -z "$CC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3263set dummy ${ac_tool_prefix}cc; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3266if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3267 $as_echo_n "(cached) " >&6
3268else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3279 ac_cv_prog_CC="${ac_tool_prefix}cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283done
3284 done
3285IFS=$as_save_IFS
3286
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299 fi
3300fi
3301if test -z "$CC"; then
3302 # Extract the first word of "cc", so it can be a program name with args.
3303set dummy cc; ac_word=$2
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3306if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3307 $as_echo_n "(cached) " >&6
3308else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311else
3312 ac_prog_rejected=no
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3321 ac_prog_rejected=yes
3322 continue
3323 fi
3324 ac_cv_prog_CC="cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328done
3329 done
3330IFS=$as_save_IFS
3331
3332if test $ac_prog_rejected = yes; then
3333 # We found a bogon in the path, so make sure we never use it.
3334 set dummy $ac_cv_prog_CC
3335 shift
3336 if test $# != 0; then
3337 # We chose a different compiler from the bogus one.
3338 # However, it has the same basename, so the bogon will be chosen
3339 # first if we set CC to just the basename; use the full file name.
3340 shift
3341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3342 fi
3343fi
3344fi
3345fi
3346CC=$ac_cv_prog_CC
3347if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349$as_echo "$CC" >&6; }
3350else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352$as_echo "no" >&6; }
3353fi
3354
3355
3356fi
3357if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in cl.exe
3360 do
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3365if ${ac_cv_prog_CC+:} false; then :
5f520819
KY
3366 $as_echo_n "(cached) " >&6
3367else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383 done
3384IFS=$as_save_IFS
3385
3386fi
3387fi
3388CC=$ac_cv_prog_CC
3389if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391$as_echo "$CC" >&6; }
3392else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394$as_echo "no" >&6; }
3395fi
3396
3397
3398 test -n "$CC" && break
3399 done
3400fi
3401if test -z "$CC"; then
3402 ac_ct_CC=$CC
3403 for ac_prog in cl.exe
3404do
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406set dummy $ac_prog; ac_word=$2
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3409if ${ac_cv_prog_ac_ct_CC+:} false; then :
5f520819
KY
3410 $as_echo_n "(cached) " >&6
3411else
3412 if test -n "$ac_ct_CC"; then
3413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
3422 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430fi
3431fi
3432ac_ct_CC=$ac_cv_prog_ac_ct_CC
3433if test -n "$ac_ct_CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3435$as_echo "$ac_ct_CC" >&6; }
3436else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438$as_echo "no" >&6; }
3439fi
3440
3441
3442 test -n "$ac_ct_CC" && break
3443done
3444
3445 if test "x$ac_ct_CC" = x; then
3446 CC=""
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449yes:)
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452ac_tool_warned=yes ;;
3453esac
3454 CC=$ac_ct_CC
3455 fi
3456fi
3457
3458fi
3459
3460
3461test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3463as_fn_error $? "no acceptable C compiler found in \$PATH
3464See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
3465
3466# Provide some information about the compiler.
3467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3468set X $ac_compile
3469ac_compiler=$2
3470for ac_option in --version -v -V -qversion; do
3471 { { ac_try="$ac_compiler $ac_option >&5"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477$as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3479 ac_status=$?
3480 if test -s conftest.err; then
3481 sed '10a\
3482... rest of stderr output deleted ...
3483 10q' conftest.err >conftest.er1
3484 cat conftest.er1 >&5
5f520819 3485 fi
22e05272 3486 rm -f conftest.er1 conftest.err
5f520819
KY
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }
3489done
3490
3491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h. */
3493
3494int
3495main ()
3496{
3497
3498 ;
3499 return 0;
3500}
3501_ACEOF
3502ac_clean_files_save=$ac_clean_files
22e05272 3503ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5f520819
KY
3504# Try to create an executable without -o first, disregard a.out.
3505# It will help us diagnose broken compilers, and finding out an intuition
3506# of exeext.
22e05272
JM
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3508$as_echo_n "checking whether the C compiler works... " >&6; }
5f520819
KY
3509ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510
3511# The possible output files:
3512ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513
3514ac_rmfiles=
3515for ac_file in $ac_files
3516do
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3520 esac
3521done
3522rm -f $ac_rmfiles
3523
3524if { { ac_try="$ac_link_default"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link_default") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3536# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3537# in a Makefile. We should not override ac_cv_exeext if it was cached,
3538# so that the user can short-circuit this test for compilers unknown to
3539# Autoconf.
3540for ac_file in $ac_files ''
3541do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 ;;
3546 [ab].out )
3547 # We found the default executable, but exeext='' is most
3548 # certainly right.
3549 break;;
3550 *.* )
3551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 then :; else
3553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 fi
3555 # We set ac_cv_exeext here because the later test for it is not
3556 # safe: cross compilers may not add the suffix if given an `-o'
3557 # argument, so we may need to know it at that point already.
3558 # Even if this section looks crufty: it has the advantage of
3559 # actually working.
3560 break;;
3561 * )
3562 break;;
3563 esac
3564done
3565test "$ac_cv_exeext" = no && ac_cv_exeext=
3566
3567else
3568 ac_file=''
3569fi
5f520819 3570if test -z "$ac_file"; then :
22e05272
JM
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3573$as_echo "$as_me: failed program was:" >&5
5f520819
KY
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3578as_fn_error 77 "C compiler cannot create executables
3579See \`config.log' for more details" "$LINENO" 5; }
3580else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582$as_echo "yes" >&6; }
5f520819 3583fi
22e05272
JM
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3585$as_echo_n "checking for C compiler default output file name... " >&6; }
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587$as_echo "$ac_file" >&6; }
5f520819
KY
3588ac_exeext=$ac_cv_exeext
3589
22e05272 3590rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5f520819 3591ac_clean_files=$ac_clean_files_save
5f520819
KY
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3593$as_echo_n "checking for suffix of executables... " >&6; }
3594if { { ac_try="$ac_link"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600$as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_link") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3606# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3607# work properly (i.e., refer to `conftest.exe'), while it won't with
3608# `rm'.
3609for ac_file in conftest.exe conftest conftest.*; do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 break;;
3615 * ) break;;
3616 esac
3617done
3618else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3621as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3622See \`config.log' for more details" "$LINENO" 5; }
5f520819 3623fi
22e05272 3624rm -f conftest conftest$ac_cv_exeext
5f520819
KY
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3626$as_echo "$ac_cv_exeext" >&6; }
3627
3628rm -f conftest.$ac_ext
3629EXEEXT=$ac_cv_exeext
3630ac_exeext=$EXEEXT
22e05272
JM
3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h. */
3633#include <stdio.h>
3634int
3635main ()
3636{
3637FILE *f = fopen ("conftest.out", "w");
3638 return ferror (f) || fclose (f) != 0;
3639
3640 ;
3641 return 0;
3642}
3643_ACEOF
3644ac_clean_files="$ac_clean_files conftest.out"
3645# Check that the compiler produces executables we can run. If not, either
3646# the compiler is broken, or we cross compile.
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3648$as_echo_n "checking whether we are cross compiling... " >&6; }
3649if test "$cross_compiling" != yes; then
3650 { { ac_try="$ac_link"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 if { ac_try='./conftest$ac_cv_exeext'
3662 { { case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667$as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_try") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; }; then
3672 cross_compiling=no
3673 else
3674 if test "$cross_compiling" = maybe; then
3675 cross_compiling=yes
3676 else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679as_fn_error $? "cannot run C compiled programs.
3680If you meant to cross compile, use \`--host'.
3681See \`config.log' for more details" "$LINENO" 5; }
3682 fi
3683 fi
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3686$as_echo "$cross_compiling" >&6; }
3687
3688rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3689ac_clean_files=$ac_clean_files_save
5f520819
KY
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3692if ${ac_cv_objext+:} false; then :
5f520819
KY
3693 $as_echo_n "(cached) " >&6
3694else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697
3698int
3699main ()
3700{
3701
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.o conftest.obj
3707if { { ac_try="$ac_compile"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725done
3726else
3727 $as_echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3732as_fn_error $? "cannot compute suffix of object files: cannot compile
3733See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
3734fi
3735rm -f conftest.$ac_cv_objext conftest.$ac_ext
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738$as_echo "$ac_cv_objext" >&6; }
3739OBJEXT=$ac_cv_objext
3740ac_objext=$OBJEXT
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3743if ${ac_cv_c_compiler_gnu+:} false; then :
5f520819
KY
3744 $as_echo_n "(cached) " >&6
3745else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h. */
3748
3749int
3750main ()
3751{
3752#ifndef __GNUC__
3753 choke me
3754#endif
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762else
3763 ac_compiler_gnu=no
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773else
3774 GCC=
3775fi
3776ac_test_CFLAGS=${CFLAGS+set}
3777ac_save_CFLAGS=$CFLAGS
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3780if ${ac_cv_prog_cc_g+:} false; then :
5f520819
KY
3781 $as_echo_n "(cached) " >&6
3782else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813if ac_fn_c_try_compile "$LINENO"; then :
3814
3815else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h. */
3820
3821int
3822main ()
3823{
3824
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833fi
3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840$as_echo "$ac_cv_prog_cc_g" >&6; }
3841if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3858if ${ac_cv_prog_cc_c89+:} false; then :
5f520819
KY
3859 $as_echo_n "(cached) " >&6
3860else
3861 ac_cv_prog_cc_c89=no
3862ac_save_CC=$CC
3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865#include <stdarg.h>
3866#include <stdio.h>
22e05272 3867struct stat;
5f520819
KY
3868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869struct buf { int x; };
3870FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871static char *e (p, i)
3872 char **p;
3873 int i;
3874{
3875 return p[i];
3876}
3877static char *f (char * (*g) (char **, int), char **p, ...)
3878{
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3885}
3886
3887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895
3896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898#define FOO(x) 'x'
3899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900
3901int test (int i, double x);
3902struct s1 {int (*f) (int a);};
3903struct s2 {int (*f) (double a);};
3904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905int argc;
3906char **argv;
3907int
3908main ()
3909{
3910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917do
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3921fi
3922rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924done
3925rm -f conftest.$ac_ext
3926CC=$ac_save_CC
3927
3928fi
3929# AC_CACHE_VAL
3930case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933$as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936$as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941esac
3942if test "x$ac_cv_prog_cc_c89" != xno; then :
3943
3944fi
3945
3946ac_ext=c
3947ac_cpp='$CPP $CPPFLAGS'
3948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
3951
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3989 fi
3990 done
3991 rm -f core conftest*
3992 unset am_i
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995$as_echo "$am_cv_prog_cc_c_o" >&6; }
3996if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4003fi
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
5f520819
KY
4010DEPDIR="${am__leading_dot}deps"
4011
4012ac_config_commands="$ac_config_commands depfiles"
4013
4014
4015am_make=${MAKE-make}
4016cat > confinc << 'END'
4017am__doit:
4018 @echo this is the am__doit target
4019.PHONY: am__doit
4020END
4021# If we don't find an include directive, just comment out the code.
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4023$as_echo_n "checking for style of include used by $am_make... " >&6; }
4024am__include="#"
4025am__quote=
4026_am_result=none
4027# First try GNU make style include.
4028echo "include confinc" > confmf
22e05272 4029# Ignore all kinds of additional output from 'make'.
5f520819
KY
4030case `$am_make -s -f confmf 2> /dev/null` in #(
4031*the\ am__doit\ target*)
4032 am__include=include
4033 am__quote=
4034 _am_result=GNU
4035 ;;
4036esac
4037# Now try BSD make style include.
4038if test "$am__include" = "#"; then
4039 echo '.include "confinc"' > confmf
4040 case `$am_make -s -f confmf 2> /dev/null` in #(
4041 *the\ am__doit\ target*)
4042 am__include=.include
4043 am__quote="\""
4044 _am_result=BSD
4045 ;;
4046 esac
4047fi
4048
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4051$as_echo "$_am_result" >&6; }
4052rm -f confinc confmf
4053
4054# Check whether --enable-dependency-tracking was given.
4055if test "${enable_dependency_tracking+set}" = set; then :
4056 enableval=$enable_dependency_tracking;
4057fi
4058
4059if test "x$enable_dependency_tracking" != xno; then
4060 am_depcomp="$ac_aux_dir/depcomp"
4061 AMDEPBACKSLASH='\'
735aacba 4062 am__nodep='_no'
5f520819
KY
4063fi
4064 if test "x$enable_dependency_tracking" != xno; then
4065 AMDEP_TRUE=
4066 AMDEP_FALSE='#'
4067else
4068 AMDEP_TRUE='#'
4069 AMDEP_FALSE=
4070fi
4071
4072
4073
4074depcc="$CC" am_compiler_list=
4075
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4077$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4078if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5f520819
KY
4079 $as_echo_n "(cached) " >&6
4080else
4081 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4082 # We make a subdir and do the tests there. Otherwise we can end up
4083 # making bogus files that we don't know about and never remove. For
4084 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4085 # making a dummy file named 'D' -- because '-MD' means "put the output
4086 # in D".
735aacba 4087 rm -rf conftest.dir
5f520819
KY
4088 mkdir conftest.dir
4089 # Copy depcomp to subdir because otherwise we won't find it if we're
4090 # using a relative directory.
4091 cp "$am_depcomp" conftest.dir
4092 cd conftest.dir
4093 # We will build objects and dependencies in a subdirectory because
4094 # it helps to detect inapplicable dependency modes. For instance
4095 # both Tru64's cc and ICC support -MD to output dependencies as a
4096 # side effect of compilation, but ICC will put the dependencies in
4097 # the current directory while Tru64 will put them in the object
4098 # directory.
4099 mkdir sub
4100
4101 am_cv_CC_dependencies_compiler_type=none
4102 if test "$am_compiler_list" = ""; then
4103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4104 fi
4105 am__universal=false
4106 case " $depcc " in #(
4107 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4108 esac
4109
4110 for depmode in $am_compiler_list; do
4111 # Setup a source with many dependencies, because some compilers
4112 # like to wrap large dependency lists on column 80 (with \), and
4113 # we should not choose a depcomp mode which is confused by this.
4114 #
4115 # We need to recreate these files for each test, as the compiler may
4116 # overwrite some of them when testing with obscure command lines.
4117 # This happens at least with the AIX C compiler.
4118 : > sub/conftest.c
4119 for i in 1 2 3 4 5 6; do
4120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4121 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4122 # Solaris 10 /bin/sh.
4123 echo '/* dummy */' > sub/conftst$i.h
5f520819
KY
4124 done
4125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4126
22e05272 4127 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5f520819 4128 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4129 # handle '-M -o', and we need to detect this. Also, some Intel
4130 # versions had trouble with output in subdirs.
5f520819
KY
4131 am__obj=sub/conftest.${OBJEXT-o}
4132 am__minus_obj="-o $am__obj"
4133 case $depmode in
4134 gcc)
4135 # This depmode causes a compiler race in universal mode.
4136 test "$am__universal" = false || continue
4137 ;;
4138 nosideeffect)
22e05272
JM
4139 # After this tag, mechanisms are not by side-effect, so they'll
4140 # only be used when explicitly requested.
5f520819
KY
4141 if test "x$enable_dependency_tracking" = xyes; then
4142 continue
4143 else
4144 break
4145 fi
4146 ;;
735aacba 4147 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4148 # This compiler won't grok '-c -o', but also, the minuso test has
5f520819
KY
4149 # not run yet. These depmodes are late enough in the game, and
4150 # so weak that their functioning should not be impacted.
4151 am__obj=conftest.${OBJEXT-o}
4152 am__minus_obj=
4153 ;;
4154 none) break ;;
4155 esac
4156 if depmode=$depmode \
4157 source=sub/conftest.c object=$am__obj \
4158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4159 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4160 >/dev/null 2>conftest.err &&
4161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4165 # icc doesn't choke on unknown options, it will just issue warnings
4166 # or remarks (even with -Werror). So we grep stderr for any message
4167 # that says an option was ignored or not supported.
4168 # When given -MP, icc 7.0 and 7.1 complain thusly:
4169 # icc: Command line warning: ignoring option '-M'; no argument required
4170 # The diagnosis changed in icc 8.0:
4171 # icc: Command line remark: option '-MP' not supported
4172 if (grep 'ignoring option' conftest.err ||
4173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4174 am_cv_CC_dependencies_compiler_type=$depmode
4175 break
4176 fi
4177 fi
4178 done
4179
4180 cd ..
4181 rm -rf conftest.dir
4182else
4183 am_cv_CC_dependencies_compiler_type=none
4184fi
4185
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4188$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4189CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4190
4191 if
4192 test "x$enable_dependency_tracking" != xno \
4193 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4194 am__fastdepCC_TRUE=
4195 am__fastdepCC_FALSE='#'
4196else
4197 am__fastdepCC_TRUE='#'
4198 am__fastdepCC_FALSE=
4199fi
4200
4201
4202ac_ext=cpp
4203ac_cpp='$CXXCPP $CPPFLAGS'
4204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207if test -z "$CXX"; then
4208 if test -n "$CCC"; then
4209 CXX=$CCC
4210 else
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4213 do
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4218if ${ac_cv_prog_CXX+:} false; then :
5f520819
KY
4219 $as_echo_n "(cached) " >&6
4220else
4221 if test -n "$CXX"; then
4222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
4231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236 done
4237IFS=$as_save_IFS
4238
4239fi
4240fi
4241CXX=$ac_cv_prog_CXX
4242if test -n "$CXX"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4244$as_echo "$CXX" >&6; }
4245else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
4249
4250
4251 test -n "$CXX" && break
4252 done
4253fi
4254if test -z "$CXX"; then
4255 ac_ct_CXX=$CXX
4256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4257do
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259set dummy $ac_prog; ac_word=$2
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4262if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5f520819
KY
4263 $as_echo_n "(cached) " >&6
4264else
4265 if test -n "$ac_ct_CXX"; then
4266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
4275 ac_cv_prog_ac_ct_CXX="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
4280 done
4281IFS=$as_save_IFS
4282
4283fi
4284fi
4285ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4286if test -n "$ac_ct_CXX"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4288$as_echo "$ac_ct_CXX" >&6; }
4289else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292fi
4293
4294
4295 test -n "$ac_ct_CXX" && break
4296done
4297
4298 if test "x$ac_ct_CXX" = x; then
4299 CXX="g++"
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302yes:)
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
4306esac
4307 CXX=$ac_ct_CXX
4308 fi
4309fi
4310
4311 fi
4312fi
4313# Provide some information about the compiler.
4314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4315set X $ac_compile
4316ac_compiler=$2
4317for ac_option in --version -v -V -qversion; do
4318 { { ac_try="$ac_compiler $ac_option >&5"
4319case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322esac
4323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324$as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4326 ac_status=$?
4327 if test -s conftest.err; then
4328 sed '10a\
4329... rest of stderr output deleted ...
4330 10q' conftest.err >conftest.er1
4331 cat conftest.er1 >&5
5f520819 4332 fi
22e05272 4333 rm -f conftest.er1 conftest.err
5f520819
KY
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }
4336done
4337
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4339$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 4340if ${ac_cv_cxx_compiler_gnu+:} false; then :
5f520819
KY
4341 $as_echo_n "(cached) " >&6
4342else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h. */
4345
4346int
4347main ()
4348{
4349#ifndef __GNUC__
4350 choke me
4351#endif
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
4357if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_compiler_gnu=yes
4359else
4360 ac_compiler_gnu=no
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4364
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4367$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4368if test $ac_compiler_gnu = yes; then
4369 GXX=yes
4370else
4371 GXX=
4372fi
4373ac_test_CXXFLAGS=${CXXFLAGS+set}
4374ac_save_CXXFLAGS=$CXXFLAGS
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4376$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 4377if ${ac_cv_prog_cxx_g+:} false; then :
5f520819
KY
4378 $as_echo_n "(cached) " >&6
4379else
4380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4382 ac_cv_prog_cxx_g=no
4383 CXXFLAGS="-g"
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h. */
4386
4387int
4388main ()
4389{
4390
4391 ;
4392 return 0;
4393}
4394_ACEOF
4395if ac_fn_cxx_try_compile "$LINENO"; then :
4396 ac_cv_prog_cxx_g=yes
4397else
4398 CXXFLAGS=""
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
4401
4402int
4403main ()
4404{
4405
4406 ;
4407 return 0;
4408}
4409_ACEOF
4410if ac_fn_cxx_try_compile "$LINENO"; then :
4411
4412else
4413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4414 CXXFLAGS="-g"
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h. */
4417
4418int
4419main ()
4420{
4421
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426if ac_fn_cxx_try_compile "$LINENO"; then :
4427 ac_cv_prog_cxx_g=yes
4428fi
4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430fi
4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4437$as_echo "$ac_cv_prog_cxx_g" >&6; }
4438if test "$ac_test_CXXFLAGS" = set; then
4439 CXXFLAGS=$ac_save_CXXFLAGS
4440elif test $ac_cv_prog_cxx_g = yes; then
4441 if test "$GXX" = yes; then
4442 CXXFLAGS="-g -O2"
4443 else
4444 CXXFLAGS="-g"
4445 fi
4446else
4447 if test "$GXX" = yes; then
4448 CXXFLAGS="-O2"
4449 else
4450 CXXFLAGS=
4451 fi
4452fi
4453ac_ext=c
4454ac_cpp='$CPP $CPPFLAGS'
4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458
4459depcc="$CXX" am_compiler_list=
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4463if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5f520819
KY
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
735aacba 4472 rm -rf conftest.dir
5f520819
KY
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
4485
4486 am_cv_CXX_dependencies_compiler_type=none
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 fi
4490 am__universal=false
4491 case " $depcc " in #(
4492 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4493 esac
4494
4495 for depmode in $am_compiler_list; do
4496 # Setup a source with many dependencies, because some compilers
4497 # like to wrap large dependency lists on column 80 (with \), and
4498 # we should not choose a depcomp mode which is confused by this.
4499 #
4500 # We need to recreate these files for each test, as the compiler may
4501 # overwrite some of them when testing with obscure command lines.
4502 # This happens at least with the AIX C compiler.
4503 : > sub/conftest.c
4504 for i in 1 2 3 4 5 6; do
4505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4506 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4507 # Solaris 10 /bin/sh.
4508 echo '/* dummy */' > sub/conftst$i.h
5f520819
KY
4509 done
4510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4511
22e05272 4512 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5f520819 4513 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4514 # handle '-M -o', and we need to detect this. Also, some Intel
4515 # versions had trouble with output in subdirs.
5f520819
KY
4516 am__obj=sub/conftest.${OBJEXT-o}
4517 am__minus_obj="-o $am__obj"
4518 case $depmode in
4519 gcc)
4520 # This depmode causes a compiler race in universal mode.
4521 test "$am__universal" = false || continue
4522 ;;
4523 nosideeffect)
22e05272
JM
4524 # After this tag, mechanisms are not by side-effect, so they'll
4525 # only be used when explicitly requested.
5f520819
KY
4526 if test "x$enable_dependency_tracking" = xyes; then
4527 continue
4528 else
4529 break
4530 fi
4531 ;;
735aacba 4532 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4533 # This compiler won't grok '-c -o', but also, the minuso test has
5f520819
KY
4534 # not run yet. These depmodes are late enough in the game, and
4535 # so weak that their functioning should not be impacted.
4536 am__obj=conftest.${OBJEXT-o}
4537 am__minus_obj=
4538 ;;
4539 none) break ;;
4540 esac
4541 if depmode=$depmode \
4542 source=sub/conftest.c object=$am__obj \
4543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4544 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4545 >/dev/null 2>conftest.err &&
4546 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4550 # icc doesn't choke on unknown options, it will just issue warnings
4551 # or remarks (even with -Werror). So we grep stderr for any message
4552 # that says an option was ignored or not supported.
4553 # When given -MP, icc 7.0 and 7.1 complain thusly:
4554 # icc: Command line warning: ignoring option '-M'; no argument required
4555 # The diagnosis changed in icc 8.0:
4556 # icc: Command line remark: option '-MP' not supported
4557 if (grep 'ignoring option' conftest.err ||
4558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4559 am_cv_CXX_dependencies_compiler_type=$depmode
4560 break
4561 fi
4562 fi
4563 done
4564
4565 cd ..
4566 rm -rf conftest.dir
4567else
4568 am_cv_CXX_dependencies_compiler_type=none
4569fi
4570
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4573$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4574CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4575
4576 if
4577 test "x$enable_dependency_tracking" != xno \
4578 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4579 am__fastdepCXX_TRUE=
4580 am__fastdepCXX_FALSE='#'
4581else
4582 am__fastdepCXX_TRUE='#'
4583 am__fastdepCXX_FALSE=
4584fi
4585
4586
4587ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4588
4589# Default to --enable-multilib
4590# Check whether --enable-multilib was given.
4591if test "${enable_multilib+set}" = set; then :
4592 enableval=$enable_multilib; case "$enableval" in
4593 yes) multilib=yes ;;
4594 no) multilib=no ;;
22e05272 4595 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
5f520819
KY
4596 esac
4597else
4598 multilib=yes
4599fi
4600
4601
4602# We may get other options which we leave undocumented:
4603# --with-target-subdir, --with-multisrctop, --with-multisubdir
4604# See config-ml.in if you want the gory details.
4605
4606if test "$srcdir" = "."; then
4607 if test "$with_target_subdir" != "."; then
4608 multi_basedir="$srcdir/$with_multisrctop../.."
4609 else
4610 multi_basedir="$srcdir/$with_multisrctop.."
4611 fi
4612else
4613 multi_basedir="$srcdir/.."
4614fi
4615
4616
4617# Even if the default multilib is not a cross compilation,
4618# it may be that some of the other multilibs are.
4619if test $cross_compiling = no && test $multilib = yes \
4620 && test "x${with_multisubdir}" != x ; then
4621 cross_compiling=maybe
4622fi
4623
4624ac_config_commands="$ac_config_commands default-1"
4625
4626
9d73ec14
IV
4627
4628subdirs="$subdirs plugin"
4629
4630
5f520819
KY
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4637$as_echo_n "checking how to run the C preprocessor... " >&6; }
4638# On Suns, sometimes $CPP names a directory.
4639if test -n "$CPP" && test -d "$CPP"; then
4640 CPP=
4641fi
4642if test -z "$CPP"; then
22e05272 4643 if ${ac_cv_prog_CPP+:} false; then :
5f520819
KY
4644 $as_echo_n "(cached) " >&6
4645else
4646 # Double quotes because CPP needs to be expanded
4647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4648 do
4649 ac_preproc_ok=false
4650for ac_c_preproc_warn_flag in '' yes
4651do
4652 # Use a header file that comes with gcc, so configuring glibc
4653 # with a fresh cross-compiler works.
4654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 # <limits.h> exists even on freestanding compilers.
4656 # On the NeXT, cc -E runs the code through the compiler's parser,
4657 # not just through cpp. "Syntax error" is here to catch this case.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h. */
4660#ifdef __STDC__
4661# include <limits.h>
4662#else
4663# include <assert.h>
4664#endif
4665 Syntax error
4666_ACEOF
4667if ac_fn_c_try_cpp "$LINENO"; then :
4668
4669else
4670 # Broken: fails on valid input.
4671continue
4672fi
22e05272 4673rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4674
4675 # OK, works on sane cases. Now check whether nonexistent headers
4676 # can be detected and how.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679#include <ac_nonexistent.h>
4680_ACEOF
4681if ac_fn_c_try_cpp "$LINENO"; then :
4682 # Broken: success on invalid input.
4683continue
4684else
4685 # Passes both tests.
4686ac_preproc_ok=:
4687break
4688fi
22e05272 4689rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4690
4691done
4692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4693rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
4694if $ac_preproc_ok; then :
4695 break
4696fi
4697
4698 done
4699 ac_cv_prog_CPP=$CPP
4700
4701fi
4702 CPP=$ac_cv_prog_CPP
4703else
4704 ac_cv_prog_CPP=$CPP
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4707$as_echo "$CPP" >&6; }
4708ac_preproc_ok=false
4709for ac_c_preproc_warn_flag in '' yes
4710do
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h. */
4719#ifdef __STDC__
4720# include <limits.h>
4721#else
4722# include <assert.h>
4723#endif
4724 Syntax error
4725_ACEOF
4726if ac_fn_c_try_cpp "$LINENO"; then :
4727
4728else
4729 # Broken: fails on valid input.
4730continue
4731fi
22e05272 4732rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4733
4734 # OK, works on sane cases. Now check whether nonexistent headers
4735 # can be detected and how.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h. */
4738#include <ac_nonexistent.h>
4739_ACEOF
4740if ac_fn_c_try_cpp "$LINENO"; then :
4741 # Broken: success on invalid input.
4742continue
4743else
4744 # Passes both tests.
4745ac_preproc_ok=:
4746break
4747fi
22e05272 4748rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
4749
4750done
4751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4752rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
4753if $ac_preproc_ok; then :
4754
4755else
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4758as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4759See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
4760fi
4761
4762ac_ext=c
4763ac_cpp='$CPP $CPPFLAGS'
4764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
4768
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4770$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4771if ${ac_cv_path_GREP+:} false; then :
5f520819
KY
4772 $as_echo_n "(cached) " >&6
4773else
4774 if test -z "$GREP"; then
4775 ac_path_GREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in grep ggrep; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4785 as_fn_executable_p "$ac_path_GREP" || continue
5f520819
KY
4786# Check for GNU ac_path_GREP and select it if it is found.
4787 # Check for GNU $ac_path_GREP
4788case `"$ac_path_GREP" --version 2>&1` in
4789*GNU*)
4790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4791*)
4792 ac_count=0
4793 $as_echo_n 0123456789 >"conftest.in"
4794 while :
4795 do
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 $as_echo 'GREP' >> "conftest.nl"
4800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
4803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_GREP="$ac_path_GREP"
4806 ac_path_GREP_max=$ac_count
4807 fi
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4810 done
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812esac
4813
4814 $ac_path_GREP_found && break 3
4815 done
4816 done
4817 done
4818IFS=$as_save_IFS
4819 if test -z "$ac_cv_path_GREP"; then
22e05272 4820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5f520819
KY
4821 fi
4822else
4823 ac_cv_path_GREP=$GREP
4824fi
4825
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4828$as_echo "$ac_cv_path_GREP" >&6; }
4829 GREP="$ac_cv_path_GREP"
4830
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4833$as_echo_n "checking for egrep... " >&6; }
22e05272 4834if ${ac_cv_path_EGREP+:} false; then :
5f520819
KY
4835 $as_echo_n "(cached) " >&6
4836else
4837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4838 then ac_cv_path_EGREP="$GREP -E"
4839 else
4840 if test -z "$EGREP"; then
4841 ac_path_EGREP_found=false
4842 # Loop through the user's path and test for each of PROGNAME-LIST
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_prog in egrep; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4851 as_fn_executable_p "$ac_path_EGREP" || continue
5f520819
KY
4852# Check for GNU ac_path_EGREP and select it if it is found.
4853 # Check for GNU $ac_path_EGREP
4854case `"$ac_path_EGREP" --version 2>&1` in
4855*GNU*)
4856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4857*)
4858 ac_count=0
4859 $as_echo_n 0123456789 >"conftest.in"
4860 while :
4861 do
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 $as_echo 'EGREP' >> "conftest.nl"
4866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_EGREP="$ac_path_EGREP"
4872 ac_path_EGREP_max=$ac_count
4873 fi
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4876 done
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878esac
4879
4880 $ac_path_EGREP_found && break 3
4881 done
4882 done
4883 done
4884IFS=$as_save_IFS
4885 if test -z "$ac_cv_path_EGREP"; then
22e05272 4886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5f520819
KY
4887 fi
4888else
4889 ac_cv_path_EGREP=$EGREP
4890fi
4891
4892 fi
4893fi
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4895$as_echo "$ac_cv_path_EGREP" >&6; }
4896 EGREP="$ac_cv_path_EGREP"
4897
4898
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4900$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4901if ${ac_cv_header_stdc+:} false; then :
5f520819
KY
4902 $as_echo_n "(cached) " >&6
4903else
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905/* end confdefs.h. */
4906#include <stdlib.h>
4907#include <stdarg.h>
4908#include <string.h>
4909#include <float.h>
4910
4911int
4912main ()
4913{
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
4919if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_header_stdc=yes
4921else
4922 ac_cv_header_stdc=no
4923fi
4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925
4926if test $ac_cv_header_stdc = yes; then
4927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h. */
4930#include <string.h>
4931
4932_ACEOF
4933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934 $EGREP "memchr" >/dev/null 2>&1; then :
4935
4936else
4937 ac_cv_header_stdc=no
4938fi
4939rm -f conftest*
4940
4941fi
4942
4943if test $ac_cv_header_stdc = yes; then
4944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h. */
4947#include <stdlib.h>
4948
4949_ACEOF
4950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951 $EGREP "free" >/dev/null 2>&1; then :
4952
4953else
4954 ac_cv_header_stdc=no
4955fi
4956rm -f conftest*
4957
4958fi
4959
4960if test $ac_cv_header_stdc = yes; then
4961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4962 if test "$cross_compiling" = yes; then :
4963 :
4964else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h. */
4967#include <ctype.h>
4968#include <stdlib.h>
4969#if ((' ' & 0x0FF) == 0x020)
4970# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4971# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4972#else
4973# define ISLOWER(c) \
4974 (('a' <= (c) && (c) <= 'i') \
4975 || ('j' <= (c) && (c) <= 'r') \
4976 || ('s' <= (c) && (c) <= 'z'))
4977# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4978#endif
4979
4980#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4981int
4982main ()
4983{
4984 int i;
4985 for (i = 0; i < 256; i++)
4986 if (XOR (islower (i), ISLOWER (i))
4987 || toupper (i) != TOUPPER (i))
4988 return 2;
4989 return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_run "$LINENO"; then :
4993
4994else
4995 ac_cv_header_stdc=no
4996fi
4997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4998 conftest.$ac_objext conftest.beam conftest.$ac_ext
4999fi
5000
5001fi
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5004$as_echo "$ac_cv_header_stdc" >&6; }
5005if test $ac_cv_header_stdc = yes; then
5006
5007$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5008
5009fi
5010
5011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5013 inttypes.h stdint.h unistd.h
5014do :
5015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5017"
22e05272 5018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5f520819
KY
5019 cat >>confdefs.h <<_ACEOF
5020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021_ACEOF
5022
5023fi
5024
5025done
5026
5027
22e05272
JM
5028ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5029if test "x$ac_cv_type_size_t" = xyes; then :
5030
5031else
5032
5033cat >>confdefs.h <<_ACEOF
5034#define size_t unsigned int
5035_ACEOF
5036
5037fi
5038
5f520819
KY
5039# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5040# for constant arguments. Useless!
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5042$as_echo_n "checking for working alloca.h... " >&6; }
22e05272 5043if ${ac_cv_working_alloca_h+:} false; then :
5f520819
KY
5044 $as_echo_n "(cached) " >&6
5045else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h. */
5048#include <alloca.h>
5049int
5050main ()
5051{
5052char *p = (char *) alloca (2 * sizeof (int));
5053 if (p) return 0;
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058if ac_fn_c_try_link "$LINENO"; then :
5059 ac_cv_working_alloca_h=yes
5060else
5061 ac_cv_working_alloca_h=no
5062fi
5063rm -f core conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5067$as_echo "$ac_cv_working_alloca_h" >&6; }
5068if test $ac_cv_working_alloca_h = yes; then
5069
5070$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5071
5072fi
5073
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5075$as_echo_n "checking for alloca... " >&6; }
22e05272 5076if ${ac_cv_func_alloca_works+:} false; then :
5f520819
KY
5077 $as_echo_n "(cached) " >&6
5078else
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080/* end confdefs.h. */
5081#ifdef __GNUC__
5082# define alloca __builtin_alloca
5083#else
5084# ifdef _MSC_VER
5085# include <malloc.h>
5086# define alloca _alloca
5087# else
5088# ifdef HAVE_ALLOCA_H
5089# include <alloca.h>
5090# else
5091# ifdef _AIX
5092 #pragma alloca
5093# else
5094# ifndef alloca /* predefined by HP cc +Olibcalls */
22e05272 5095void *alloca (size_t);
5f520819
KY
5096# endif
5097# endif
5098# endif
5099# endif
5100#endif
5101
5102int
5103main ()
5104{
5105char *p = (char *) alloca (1);
5106 if (p) return 0;
5107 ;
5108 return 0;
5109}
5110_ACEOF
5111if ac_fn_c_try_link "$LINENO"; then :
5112 ac_cv_func_alloca_works=yes
5113else
5114 ac_cv_func_alloca_works=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5120$as_echo "$ac_cv_func_alloca_works" >&6; }
5121
5122if test $ac_cv_func_alloca_works = yes; then
5123
5124$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5125
5126else
5127 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5128# that cause trouble. Some versions do not even contain alloca or
5129# contain a buggy version. If you still want to use their alloca,
5130# use ar to extract alloca.o from them instead of compiling alloca.c.
5131
5132ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5133
5134$as_echo "#define C_ALLOCA 1" >>confdefs.h
5135
5136
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5138$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22e05272 5139if ${ac_cv_os_cray+:} false; then :
5f520819
KY
5140 $as_echo_n "(cached) " >&6
5141else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h. */
5144#if defined CRAY && ! defined CRAY2
5145webecray
5146#else
5147wenotbecray
5148#endif
5149
5150_ACEOF
5151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152 $EGREP "webecray" >/dev/null 2>&1; then :
5153 ac_cv_os_cray=yes
5154else
5155 ac_cv_os_cray=no
5156fi
5157rm -f conftest*
5158
5159fi
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5161$as_echo "$ac_cv_os_cray" >&6; }
5162if test $ac_cv_os_cray = yes; then
5163 for ac_func in _getb67 GETB67 getb67; do
5164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5165ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 5166if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5f520819
KY
5167
5168cat >>confdefs.h <<_ACEOF
5169#define CRAY_STACKSEG_END $ac_func
5170_ACEOF
5171
5172 break
5173fi
5174
5175 done
5176fi
5177
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5179$as_echo_n "checking stack direction for C alloca... " >&6; }
22e05272 5180if ${ac_cv_c_stack_direction+:} false; then :
5f520819
KY
5181 $as_echo_n "(cached) " >&6
5182else
5183 if test "$cross_compiling" = yes; then :
5184 ac_cv_c_stack_direction=0
5185else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188$ac_includes_default
5189int
22e05272 5190find_stack_direction (int *addr, int depth)
5f520819 5191{
22e05272
JM
5192 int dir, dummy = 0;
5193 if (! addr)
5194 addr = &dummy;
5195 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5196 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5197 return dir + dummy;
5f520819
KY
5198}
5199
5200int
22e05272 5201main (int argc, char **argv)
5f520819 5202{
22e05272 5203 return find_stack_direction (0, argc + !argv + 20) < 0;
5f520819
KY
5204}
5205_ACEOF
5206if ac_fn_c_try_run "$LINENO"; then :
5207 ac_cv_c_stack_direction=1
5208else
5209 ac_cv_c_stack_direction=-1
5210fi
5211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212 conftest.$ac_objext conftest.beam conftest.$ac_ext
5213fi
5214
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5217$as_echo "$ac_cv_c_stack_direction" >&6; }
5218cat >>confdefs.h <<_ACEOF
5219#define STACK_DIRECTION $ac_cv_c_stack_direction
5220_ACEOF
5221
5222
5223fi
5224
5225for ac_header in mm_malloc.h
5226do :
5227 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
22e05272 5228if test "x$ac_cv_header_mm_malloc_h" = xyes; then :
5f520819
KY
5229 cat >>confdefs.h <<_ACEOF
5230#define HAVE_MM_MALLOC_H 1
5231_ACEOF
5232
5233else
22e05272 5234 as_fn_error $? "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
5f520819
KY
5235fi
5236
5237done
5238
5239for ac_func in __secure_getenv secure_getenv
5240do :
5241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 5243if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5f520819
KY
5244 cat >>confdefs.h <<_ACEOF
5245#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5246_ACEOF
5247
5248fi
5249done
5250
5251
5252# Get target configure.
5253. ${srcdir}/configure.tgt
5254if test -n "$UNSUPPORTED"; then
22e05272 5255 as_fn_error $? "Configuration ${target} is unsupported" "$LINENO" 5
5f520819
KY
5256fi
5257
5258if test "${multilib}" = "yes"; then
5259 multilib_arg="--enable-multilib"
5260else
5261 multilib_arg=
5262fi
5263
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5265$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5266# Check whether --enable-version-specific-runtime-libs was given.
5267if test "${enable_version_specific_runtime_libs+set}" = set; then :
5268 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5269 yes) enable_version_specific_runtime_libs=yes ;;
5270 no) enable_version_specific_runtime_libs=no ;;
22e05272 5271 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5f520819
KY
5272 esac
5273else
5274 enable_version_specific_runtime_libs=no
5275fi
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5278$as_echo "$enable_version_specific_runtime_libs" >&6; }
5279
5280# Make sure liboffloadmic is enabled
5281case "$enable_liboffloadmic" in
5282 host | target)
5283 ;;
5284 *)
22e05272 5285 as_fn_error $? "Liboffloadmic is disabled" "$LINENO" 5 ;;
5f520819
KY
5286esac
5287 if test x"$enable_liboffloadmic" = xhost; then
5288 LIBOFFLOADMIC_HOST_TRUE=
5289 LIBOFFLOADMIC_HOST_FALSE='#'
5290else
5291 LIBOFFLOADMIC_HOST_TRUE='#'
5292 LIBOFFLOADMIC_HOST_FALSE=
5293fi
5294
5295
5296# Calculate toolexeclibdir.
5297# Also toolexecdir, though it's only used in toolexeclibdir.
5298case ${enable_version_specific_runtime_libs} in
5299 yes)
5300 # Need the gcc compiler version to know where to install libraries
5301 # and header files if --enable-version-specific-runtime-libs option
5302 # is selected.
5303 toolexecdir='$(libdir)/gcc/$(target_alias)'
5304 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5305 ;;
5306 no)
5307 if test -n "$with_cross_host" &&
5308 test x"$with_cross_host" != x"no"; then
5309 # Install a library built with a cross compiler in tooldir, not libdir.
5310 toolexecdir='$(exec_prefix)/$(target_alias)'
5311 toolexeclibdir='$(toolexecdir)/lib'
5312 else
5313 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5314 toolexeclibdir='$(libdir)'
5315 fi
5316 multi_os_directory=`$CC -print-multi-os-directory`
5317 case $multi_os_directory in
5318 .) ;; # Avoid trailing /.
5319 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5320 esac
5321 ;;
5322esac
5323
5324enable_dlopen=yes
5325
5326
5327
5328case `pwd` in
5329 *\ * | *\ *)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5331$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5332esac
5333
5334
5335
5336macro_version='2.2.7a'
5337macro_revision='1.3134'
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351ltmain="$ac_aux_dir/ltmain.sh"
5352
5353# Backslashify metacharacters that are still active within
5354# double-quoted strings.
5355sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5356
5357# Same as above, but do not quote variable references.
5358double_quote_subst='s/\(["`\\]\)/\\\1/g'
5359
5360# Sed substitution to delay expansion of an escaped shell variable in a
5361# double_quote_subst'ed string.
5362delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5363
5364# Sed substitution to delay expansion of an escaped single quote.
5365delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5366
5367# Sed substitution to avoid accidental globbing in evaled expressions
5368no_glob_subst='s/\*/\\\*/g'
5369
5370ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5371ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5372ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5375$as_echo_n "checking how to print strings... " >&6; }
5376# Test print first, because it will be a builtin if present.
5377if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5378 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5379 ECHO='print -r --'
5380elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5381 ECHO='printf %s\n'
5382else
5383 # Use this function as a fallback that always works.
5384 func_fallback_echo ()
5385 {
5386 eval 'cat <<_LTECHO_EOF
5387$1
5388_LTECHO_EOF'
5389 }
5390 ECHO='func_fallback_echo'
5391fi
5392
5393# func_echo_all arg...
5394# Invoke $ECHO with all args, space-separated.
5395func_echo_all ()
5396{
5397 $ECHO ""
5398}
5399
5400case "$ECHO" in
5401 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5402$as_echo "printf" >&6; } ;;
5403 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5404$as_echo "print -r" >&6; } ;;
5405 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5406$as_echo "cat" >&6; } ;;
5407esac
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5423$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5424if ${ac_cv_path_SED+:} false; then :
5f520819
KY
5425 $as_echo_n "(cached) " >&6
5426else
5427 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5428 for ac_i in 1 2 3 4 5 6 7; do
5429 ac_script="$ac_script$as_nl$ac_script"
5430 done
5431 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5432 { ac_script=; unset ac_script;}
5433 if test -z "$SED"; then
5434 ac_path_SED_found=false
5435 # Loop through the user's path and test for each of PROGNAME-LIST
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_prog in sed gsed; do
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5444 as_fn_executable_p "$ac_path_SED" || continue
5f520819
KY
5445# Check for GNU ac_path_SED and select it if it is found.
5446 # Check for GNU $ac_path_SED
5447case `"$ac_path_SED" --version 2>&1` in
5448*GNU*)
5449 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5450*)
5451 ac_count=0
5452 $as_echo_n 0123456789 >"conftest.in"
5453 while :
5454 do
5455 cat "conftest.in" "conftest.in" >"conftest.tmp"
5456 mv "conftest.tmp" "conftest.in"
5457 cp "conftest.in" "conftest.nl"
5458 $as_echo '' >> "conftest.nl"
5459 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5461 as_fn_arith $ac_count + 1 && ac_count=$as_val
5462 if test $ac_count -gt ${ac_path_SED_max-0}; then
5463 # Best one so far, save it but keep looking for a better one
5464 ac_cv_path_SED="$ac_path_SED"
5465 ac_path_SED_max=$ac_count
5466 fi
5467 # 10*(2^10) chars as input seems more than enough
5468 test $ac_count -gt 10 && break
5469 done
5470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5471esac
5472
5473 $ac_path_SED_found && break 3
5474 done
5475 done
5476 done
5477IFS=$as_save_IFS
5478 if test -z "$ac_cv_path_SED"; then
22e05272 5479 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5f520819
KY
5480 fi
5481else
5482 ac_cv_path_SED=$SED
5483fi
5484
5485fi
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5487$as_echo "$ac_cv_path_SED" >&6; }
5488 SED="$ac_cv_path_SED"
5489 rm -f conftest.sed
5490
5491test -z "$SED" && SED=sed
5492Xsed="$SED -e 1s/^X//"
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5505$as_echo_n "checking for fgrep... " >&6; }
22e05272 5506if ${ac_cv_path_FGREP+:} false; then :
5f520819
KY
5507 $as_echo_n "(cached) " >&6
5508else
5509 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5510 then ac_cv_path_FGREP="$GREP -F"
5511 else
5512 if test -z "$FGREP"; then
5513 ac_path_FGREP_found=false
5514 # Loop through the user's path and test for each of PROGNAME-LIST
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_prog in fgrep; do
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5523 as_fn_executable_p "$ac_path_FGREP" || continue
5f520819
KY
5524# Check for GNU ac_path_FGREP and select it if it is found.
5525 # Check for GNU $ac_path_FGREP
5526case `"$ac_path_FGREP" --version 2>&1` in
5527*GNU*)
5528 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5529*)
5530 ac_count=0
5531 $as_echo_n 0123456789 >"conftest.in"
5532 while :
5533 do
5534 cat "conftest.in" "conftest.in" >"conftest.tmp"
5535 mv "conftest.tmp" "conftest.in"
5536 cp "conftest.in" "conftest.nl"
5537 $as_echo 'FGREP' >> "conftest.nl"
5538 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5540 as_fn_arith $ac_count + 1 && ac_count=$as_val
5541 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5542 # Best one so far, save it but keep looking for a better one
5543 ac_cv_path_FGREP="$ac_path_FGREP"
5544 ac_path_FGREP_max=$ac_count
5545 fi
5546 # 10*(2^10) chars as input seems more than enough
5547 test $ac_count -gt 10 && break
5548 done
5549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550esac
5551
5552 $ac_path_FGREP_found && break 3
5553 done
5554 done
5555 done
5556IFS=$as_save_IFS
5557 if test -z "$ac_cv_path_FGREP"; then
22e05272 5558 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5f520819
KY
5559 fi
5560else
5561 ac_cv_path_FGREP=$FGREP
5562fi
5563
5564 fi
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5567$as_echo "$ac_cv_path_FGREP" >&6; }
5568 FGREP="$ac_cv_path_FGREP"
5569
5570
5571test -z "$GREP" && GREP=grep
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591# Check whether --with-gnu-ld was given.
5592if test "${with_gnu_ld+set}" = set; then :
5593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5594else
5595 with_gnu_ld=no
5596fi
5597
5598ac_prog=ld
5599if test "$GCC" = yes; then
5600 # Check if gcc -print-prog-name=ld gives a path.
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5602$as_echo_n "checking for ld used by $CC... " >&6; }
5603 case $host in
5604 *-*-mingw*)
5605 # gcc leaves a trailing carriage return which upsets mingw
5606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5607 *)
5608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5609 esac
5610 case $ac_prog in
5611 # Accept absolute paths.
5612 [\\/]* | ?:[\\/]*)
5613 re_direlt='/[^/][^/]*/\.\./'
5614 # Canonicalize the pathname of ld
5615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5618 done
5619 test -z "$LD" && LD="$ac_prog"
5620 ;;
5621 "")
5622 # If it fails, then pretend we aren't using GCC.
5623 ac_prog=ld
5624 ;;
5625 *)
5626 # If it is relative, then search for the first ld in PATH.
5627 with_gnu_ld=unknown
5628 ;;
5629 esac
5630elif test "$with_gnu_ld" = yes; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5632$as_echo_n "checking for GNU ld... " >&6; }
5633else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5635$as_echo_n "checking for non-GNU ld... " >&6; }
5636fi
22e05272 5637if ${lt_cv_path_LD+:} false; then :
5f520819
KY
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test -z "$LD"; then
5641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642 for ac_dir in $PATH; do
5643 IFS="$lt_save_ifs"
5644 test -z "$ac_dir" && ac_dir=.
5645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5646 lt_cv_path_LD="$ac_dir/$ac_prog"
5647 # Check to see if the program is GNU ld. I'd rather use --version,
5648 # but apparently some variants of GNU ld only accept -v.
5649 # Break only if it was the GNU/non-GNU ld that we prefer.
5650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5651 *GNU* | *'with BFD'*)
5652 test "$with_gnu_ld" != no && break
5653 ;;
5654 *)
5655 test "$with_gnu_ld" != yes && break
5656 ;;
5657 esac
5658 fi
5659 done
5660 IFS="$lt_save_ifs"
5661else
5662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5663fi
5664fi
5665
5666LD="$lt_cv_path_LD"
5667if test -n "$LD"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5669$as_echo "$LD" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
22e05272 5674test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5f520819
KY
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5676$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5677if ${lt_cv_prog_gnu_ld+:} false; then :
5f520819
KY
5678 $as_echo_n "(cached) " >&6
5679else
5680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5681case `$LD -v 2>&1 </dev/null` in
5682*GNU* | *'with BFD'*)
5683 lt_cv_prog_gnu_ld=yes
5684 ;;
5685*)
5686 lt_cv_prog_gnu_ld=no
5687 ;;
5688esac
5689fi
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5691$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5692with_gnu_ld=$lt_cv_prog_gnu_ld
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5703$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5704if ${lt_cv_path_NM+:} false; then :
5f520819
KY
5705 $as_echo_n "(cached) " >&6
5706else
5707 if test -n "$NM"; then
5708 # Let the user override the test.
5709 lt_cv_path_NM="$NM"
5710else
5711 lt_nm_to_check="${ac_tool_prefix}nm"
5712 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5713 lt_nm_to_check="$lt_nm_to_check nm"
5714 fi
5715 for lt_tmp_nm in $lt_nm_to_check; do
5716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5718 IFS="$lt_save_ifs"
5719 test -z "$ac_dir" && ac_dir=.
5720 tmp_nm="$ac_dir/$lt_tmp_nm"
5721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5722 # Check to see if the nm accepts a BSD-compat flag.
5723 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5724 # nm: unknown option "B" ignored
5725 # Tru64's nm complains that /dev/null is an invalid object file
5726 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5727 */dev/null* | *'Invalid file or object type'*)
5728 lt_cv_path_NM="$tmp_nm -B"
5729 break
5730 ;;
5731 *)
5732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5733 */dev/null*)
5734 lt_cv_path_NM="$tmp_nm -p"
5735 break
5736 ;;
5737 *)
5738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5739 continue # so that we can try to find one that supports BSD flags
5740 ;;
5741 esac
5742 ;;
5743 esac
5744 fi
5745 done
5746 IFS="$lt_save_ifs"
5747 done
5748 : ${lt_cv_path_NM=no}
5749fi
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5752$as_echo "$lt_cv_path_NM" >&6; }
5753if test "$lt_cv_path_NM" != "no"; then
5754 NM="$lt_cv_path_NM"
5755else
5756 # Didn't find any BSD compatible name lister, look for dumpbin.
5757 if test -n "$DUMPBIN"; then :
5758 # Let the user override the test.
5759 else
5760 if test -n "$ac_tool_prefix"; then
5761 for ac_prog in dumpbin "link -dump"
5762 do
5763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5767if ${ac_cv_prog_DUMPBIN+:} false; then :
5f520819
KY
5768 $as_echo_n "(cached) " >&6
5769else
5770 if test -n "$DUMPBIN"; then
5771 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
5780 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784done
5785 done
5786IFS=$as_save_IFS
5787
5788fi
5789fi
5790DUMPBIN=$ac_cv_prog_DUMPBIN
5791if test -n "$DUMPBIN"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5793$as_echo "$DUMPBIN" >&6; }
5794else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }
5797fi
5798
5799
5800 test -n "$DUMPBIN" && break
5801 done
5802fi
5803if test -z "$DUMPBIN"; then
5804 ac_ct_DUMPBIN=$DUMPBIN
5805 for ac_prog in dumpbin "link -dump"
5806do
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808set dummy $ac_prog; ac_word=$2
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5811if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5f520819
KY
5812 $as_echo_n "(cached) " >&6
5813else
5814 if test -n "$ac_ct_DUMPBIN"; then
5815 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
5824 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829 done
5830IFS=$as_save_IFS
5831
5832fi
5833fi
5834ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5835if test -n "$ac_ct_DUMPBIN"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5837$as_echo "$ac_ct_DUMPBIN" >&6; }
5838else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841fi
5842
5843
5844 test -n "$ac_ct_DUMPBIN" && break
5845done
5846
5847 if test "x$ac_ct_DUMPBIN" = x; then
5848 DUMPBIN=":"
5849 else
5850 case $cross_compiling:$ac_tool_warned in
5851yes:)
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5854ac_tool_warned=yes ;;
5855esac
5856 DUMPBIN=$ac_ct_DUMPBIN
5857 fi
5858fi
5859
5860 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5861 *COFF*)
5862 DUMPBIN="$DUMPBIN -symbols"
5863 ;;
5864 *)
5865 DUMPBIN=:
5866 ;;
5867 esac
5868 fi
5869
5870 if test "$DUMPBIN" != ":"; then
5871 NM="$DUMPBIN"
5872 fi
5873fi
5874test -z "$NM" && NM=nm
5875
5876
5877
5878
5879
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5882$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5883if ${lt_cv_nm_interface+:} false; then :
5f520819
KY
5884 $as_echo_n "(cached) " >&6
5885else
5886 lt_cv_nm_interface="BSD nm"
5887 echo "int some_variable = 0;" > conftest.$ac_ext
5888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5889 (eval "$ac_compile" 2>conftest.err)
5890 cat conftest.err >&5
5891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5893 cat conftest.err >&5
5894 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5895 cat conftest.out >&5
5896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5897 lt_cv_nm_interface="MS dumpbin"
5898 fi
5899 rm -f conftest*
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5902$as_echo "$lt_cv_nm_interface" >&6; }
5903
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5905$as_echo_n "checking whether ln -s works... " >&6; }
5906LN_S=$as_ln_s
5907if test "$LN_S" = "ln -s"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5909$as_echo "yes" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5912$as_echo "no, using $LN_S" >&6; }
5913fi
5914
5915# find the maximum length of command line arguments
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5918if ${lt_cv_sys_max_cmd_len+:} false; then :
5f520819
KY
5919 $as_echo_n "(cached) " >&6
5920else
5921 i=0
5922 teststring="ABCD"
5923
5924 case $build_os in
5925 msdosdjgpp*)
5926 # On DJGPP, this test can blow up pretty badly due to problems in libc
5927 # (any single argument exceeding 2000 bytes causes a buffer overrun
5928 # during glob expansion). Even if it were fixed, the result of this
5929 # check would be larger than it should be.
5930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5931 ;;
5932
5933 gnu*)
5934 # Under GNU Hurd, this test is not required because there is
5935 # no limit to the length of command line arguments.
5936 # Libtool will interpret -1 as no limit whatsoever
5937 lt_cv_sys_max_cmd_len=-1;
5938 ;;
5939
5940 cygwin* | mingw* | cegcc*)
5941 # On Win9x/ME, this test blows up -- it succeeds, but takes
5942 # about 5 minutes as the teststring grows exponentially.
5943 # Worse, since 9x/ME are not pre-emptively multitasking,
5944 # you end up with a "frozen" computer, even though with patience
5945 # the test eventually succeeds (with a max line length of 256k).
5946 # Instead, let's just punt: use the minimum linelength reported by
5947 # all of the supported platforms: 8192 (on NT/2K/XP).
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 mint*)
5952 # On MiNT this can take a long time and run out of memory.
5953 lt_cv_sys_max_cmd_len=8192;
5954 ;;
5955
5956 amigaos*)
5957 # On AmigaOS with pdksh, this test takes hours, literally.
5958 # So we just punt and use a minimum line length of 8192.
5959 lt_cv_sys_max_cmd_len=8192;
5960 ;;
5961
5962 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5963 # This has been around since 386BSD, at least. Likely further.
5964 if test -x /sbin/sysctl; then
5965 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5966 elif test -x /usr/sbin/sysctl; then
5967 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5968 else
5969 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5970 fi
5971 # And add a safety zone
5972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5974 ;;
5975
5976 interix*)
5977 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5978 lt_cv_sys_max_cmd_len=196608
5979 ;;
5980
5981 osf*)
5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984 # nice to cause kernel panics so lets avoid the loop below.
5985 # First set a reasonable default.
5986 lt_cv_sys_max_cmd_len=16384
5987 #
5988 if test -x /sbin/sysconfig; then
5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991 esac
5992 fi
5993 ;;
5994 sco3.2v5*)
5995 lt_cv_sys_max_cmd_len=102400
5996 ;;
5997 sysv5* | sco5v6* | sysv4.2uw2*)
5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999 if test -n "$kargmax"; then
6000 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6001 else
6002 lt_cv_sys_max_cmd_len=32768
6003 fi
6004 ;;
6005 *)
6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6007 if test -n "$lt_cv_sys_max_cmd_len"; then
6008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6010 else
6011 # Make teststring a little bigger before we do anything with it.
6012 # a 1K string should be a reasonable start.
6013 for i in 1 2 3 4 5 6 7 8 ; do
6014 teststring=$teststring$teststring
6015 done
6016 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6017 # If test is not a shell built-in, we'll probably end up computing a
6018 # maximum length that is only half of the actual maximum length, but
6019 # we can't tell.
6020 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6021 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6022 test $i != 17 # 1/2 MB should be enough
6023 do
6024 i=`expr $i + 1`
6025 teststring=$teststring$teststring
6026 done
6027 # Only check the string length outside the loop.
6028 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6029 teststring=
6030 # Add a significant safety factor because C++ compilers can tack on
6031 # massive amounts of additional arguments before passing them to the
6032 # linker. It appears as though 1/2 is a usable value.
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6034 fi
6035 ;;
6036 esac
6037
6038fi
6039
6040if test -n $lt_cv_sys_max_cmd_len ; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6042$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6043else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6045$as_echo "none" >&6; }
6046fi
6047max_cmd_len=$lt_cv_sys_max_cmd_len
6048
6049
6050
6051
6052
6053
6054: ${CP="cp -f"}
6055: ${MV="mv -f"}
6056: ${RM="rm -f"}
6057
6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6059$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6060# Try some XSI features
6061xsi_shell=no
6062( _lt_dummy="a/b/c"
6063 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6064 = c,a/b,, \
6065 && eval 'test $(( 1 + 1 )) -eq 2 \
6066 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6067 && xsi_shell=yes
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6069$as_echo "$xsi_shell" >&6; }
6070
6071
6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6073$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6074lt_shell_append=no
6075( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6076 >/dev/null 2>&1 \
6077 && lt_shell_append=yes
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6079$as_echo "$lt_shell_append" >&6; }
6080
6081
6082if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6083 lt_unset=unset
6084else
6085 lt_unset=false
6086fi
6087
6088
6089
6090
6091
6092# test EBCDIC or ASCII
6093case `echo X|tr X '\101'` in
6094 A) # ASCII based system
6095 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6096 lt_SP2NL='tr \040 \012'
6097 lt_NL2SP='tr \015\012 \040\040'
6098 ;;
6099 *) # EBCDIC based system
6100 lt_SP2NL='tr \100 \n'
6101 lt_NL2SP='tr \r\n \100\100'
6102 ;;
6103esac
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6114$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6115if ${lt_cv_ld_reload_flag+:} false; then :
5f520819
KY
6116 $as_echo_n "(cached) " >&6
6117else
6118 lt_cv_ld_reload_flag='-r'
6119fi
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6121$as_echo "$lt_cv_ld_reload_flag" >&6; }
6122reload_flag=$lt_cv_ld_reload_flag
6123case $reload_flag in
6124"" | " "*) ;;
6125*) reload_flag=" $reload_flag" ;;
6126esac
6127reload_cmds='$LD$reload_flag -o $output$reload_objs'
6128case $host_os in
6129 darwin*)
6130 if test "$GCC" = yes; then
6131 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6132 else
6133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6134 fi
6135 ;;
6136esac
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}objdump; ac_word=$2
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6151if ${ac_cv_prog_OBJDUMP+:} false; then :
5f520819
KY
6152 $as_echo_n "(cached) " >&6
6153else
6154 if test -n "$OBJDUMP"; then
6155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6156else
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6164 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
6169 done
6170IFS=$as_save_IFS
6171
6172fi
6173fi
6174OBJDUMP=$ac_cv_prog_OBJDUMP
6175if test -n "$OBJDUMP"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6177$as_echo "$OBJDUMP" >&6; }
6178else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180$as_echo "no" >&6; }
6181fi
6182
6183
6184fi
6185if test -z "$ac_cv_prog_OBJDUMP"; then
6186 ac_ct_OBJDUMP=$OBJDUMP
6187 # Extract the first word of "objdump", so it can be a program name with args.
6188set dummy objdump; ac_word=$2
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6191if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5f520819
KY
6192 $as_echo_n "(cached) " >&6
6193else
6194 if test -n "$ac_ct_OBJDUMP"; then
6195 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6196else
6197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6204 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208done
6209 done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6215if test -n "$ac_ct_OBJDUMP"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6217$as_echo "$ac_ct_OBJDUMP" >&6; }
6218else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221fi
6222
6223 if test "x$ac_ct_OBJDUMP" = x; then
6224 OBJDUMP="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230ac_tool_warned=yes ;;
6231esac
6232 OBJDUMP=$ac_ct_OBJDUMP
6233 fi
6234else
6235 OBJDUMP="$ac_cv_prog_OBJDUMP"
6236fi
6237
6238test -z "$OBJDUMP" && OBJDUMP=objdump
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6249$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6250if ${lt_cv_deplibs_check_method+:} false; then :
5f520819
KY
6251 $as_echo_n "(cached) " >&6
6252else
6253 lt_cv_file_magic_cmd='$MAGIC_CMD'
6254lt_cv_file_magic_test_file=
6255lt_cv_deplibs_check_method='unknown'
6256# Need to set the preceding variable on all platforms that support
6257# interlibrary dependencies.
6258# 'none' -- dependencies not supported.
6259# `unknown' -- same as none, but documents that we really don't know.
6260# 'pass_all' -- all dependencies passed with no checks.
6261# 'test_compile' -- check by making test program.
6262# 'file_magic [[regex]]' -- check by looking for files in library path
6263# which responds to the $file_magic_cmd with a given extended regex.
6264# If you have `file' or equivalent on your system and you're not sure
6265# whether `pass_all' will *always* work, you probably want this one.
6266
6267case $host_os in
6268aix[4-9]*)
6269 lt_cv_deplibs_check_method=pass_all
6270 ;;
6271
6272beos*)
6273 lt_cv_deplibs_check_method=pass_all
6274 ;;
6275
6276bsdi[45]*)
6277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278 lt_cv_file_magic_cmd='/usr/bin/file -L'
6279 lt_cv_file_magic_test_file=/shlib/libc.so
6280 ;;
6281
6282cygwin*)
6283 # func_win32_libid is a shell function defined in ltmain.sh
6284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285 lt_cv_file_magic_cmd='func_win32_libid'
6286 ;;
6287
6288mingw* | pw32*)
6289 # Base MSYS/MinGW do not provide the 'file' command needed by
6290 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6291 # unless we find 'file', for example because we are cross-compiling.
6292 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6293 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6295 lt_cv_file_magic_cmd='func_win32_libid'
6296 else
6297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6298 lt_cv_file_magic_cmd='$OBJDUMP -f'
6299 fi
6300 ;;
6301
6302cegcc*)
6303 # use the weaker test based on 'objdump'. See mingw*.
6304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6305 lt_cv_file_magic_cmd='$OBJDUMP -f'
6306 ;;
6307
6308darwin* | rhapsody*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312freebsd* | dragonfly*)
6313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6314 case $host_cpu in
6315 i*86 )
6316 # Not sure whether the presence of OpenBSD here was a mistake.
6317 # Let's accept both of them until this is cleared up.
6318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6319 lt_cv_file_magic_cmd=/usr/bin/file
6320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6321 ;;
6322 esac
6323 else
6324 lt_cv_deplibs_check_method=pass_all
6325 fi
6326 ;;
6327
6328gnu*)
6329 lt_cv_deplibs_check_method=pass_all
6330 ;;
6331
6332haiku*)
6333 lt_cv_deplibs_check_method=pass_all
6334 ;;
6335
6336hpux10.20* | hpux11*)
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 case $host_cpu in
6339 ia64*)
6340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6342 ;;
6343 hppa*64*)
6344 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]'
6345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6346 ;;
6347 *)
6348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6350 ;;
6351 esac
6352 ;;
6353
6354interix[3-9]*)
6355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6357 ;;
6358
6359irix5* | irix6* | nonstopux*)
6360 case $LD in
6361 *-32|*"-32 ") libmagic=32-bit;;
6362 *-n32|*"-n32 ") libmagic=N32;;
6363 *-64|*"-64 ") libmagic=64-bit;;
6364 *) libmagic=never-match;;
6365 esac
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369# This must be Linux ELF.
6370linux* | k*bsd*-gnu | kopensolaris*-gnu)
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
6373
6374netbsd*)
6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377 else
6378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6379 fi
6380 ;;
6381
6382newos6*)
6383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6384 lt_cv_file_magic_cmd=/usr/bin/file
6385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6386 ;;
6387
6388*nto* | *qnx*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392openbsd*)
6393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6395 else
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6397 fi
6398 ;;
6399
6400osf3* | osf4* | osf5*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403
6404rdos*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408solaris*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416sysv4 | sysv4.3*)
6417 case $host_vendor in
6418 motorola)
6419 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]'
6420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6421 ;;
6422 ncr)
6423 lt_cv_deplibs_check_method=pass_all
6424 ;;
6425 sequent)
6426 lt_cv_file_magic_cmd='/bin/file'
6427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6428 ;;
6429 sni)
6430 lt_cv_file_magic_cmd='/bin/file'
6431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6432 lt_cv_file_magic_test_file=/lib/libc.so
6433 ;;
6434 siemens)
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437 pc)
6438 lt_cv_deplibs_check_method=pass_all
6439 ;;
6440 esac
6441 ;;
6442
6443tpf*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446esac
6447
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6450$as_echo "$lt_cv_deplibs_check_method" >&6; }
6451file_magic_cmd=$lt_cv_file_magic_cmd
6452deplibs_check_method=$lt_cv_deplibs_check_method
6453test -z "$deplibs_check_method" && deplibs_check_method=unknown
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6468set dummy ${ac_tool_prefix}ar; ac_word=$2
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6471if ${ac_cv_prog_AR+:} false; then :
5f520819
KY
6472 $as_echo_n "(cached) " >&6
6473else
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR="$AR" # Let the user override the test.
6476else
6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478for as_dir in $PATH
6479do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6484 ac_cv_prog_AR="${ac_tool_prefix}ar"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488done
6489 done
6490IFS=$as_save_IFS
6491
6492fi
6493fi
6494AR=$ac_cv_prog_AR
6495if test -n "$AR"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497$as_echo "$AR" >&6; }
6498else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500$as_echo "no" >&6; }
6501fi
6502
6503
6504fi
6505if test -z "$ac_cv_prog_AR"; then
6506 ac_ct_AR=$AR
6507 # Extract the first word of "ar", so it can be a program name with args.
6508set dummy ar; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6511if ${ac_cv_prog_ac_ct_AR+:} false; then :
5f520819
KY
6512 $as_echo_n "(cached) " >&6
6513else
6514 if test -n "$ac_ct_AR"; then
6515 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6516else
6517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518for as_dir in $PATH
6519do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6524 ac_cv_prog_ac_ct_AR="ar"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528done
6529 done
6530IFS=$as_save_IFS
6531
6532fi
6533fi
6534ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535if test -n "$ac_ct_AR"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6537$as_echo "$ac_ct_AR" >&6; }
6538else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540$as_echo "no" >&6; }
6541fi
6542
6543 if test "x$ac_ct_AR" = x; then
6544 AR="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552 AR=$ac_ct_AR
6553 fi
6554else
6555 AR="$ac_cv_prog_AR"
6556fi
6557
6558test -z "$AR" && AR=ar
6559test -z "$AR_FLAGS" && AR_FLAGS=cru
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6573set dummy ${ac_tool_prefix}strip; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6576if ${ac_cv_prog_STRIP+:} false; then :
5f520819
KY
6577 $as_echo_n "(cached) " >&6
6578else
6579 if test -n "$STRIP"; then
6580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594 done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599STRIP=$ac_cv_prog_STRIP
6600if test -n "$STRIP"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6602$as_echo "$STRIP" >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609fi
6610if test -z "$ac_cv_prog_STRIP"; then
6611 ac_ct_STRIP=$STRIP
6612 # Extract the first word of "strip", so it can be a program name with args.
6613set dummy strip; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6616if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5f520819
KY
6617 $as_echo_n "(cached) " >&6
6618else
6619 if test -n "$ac_ct_STRIP"; then
6620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6629 ac_cv_prog_ac_ct_STRIP="strip"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633done
6634 done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6640if test -n "$ac_ct_STRIP"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6642$as_echo "$ac_ct_STRIP" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648 if test "x$ac_ct_STRIP" = x; then
6649 STRIP=":"
6650 else
6651 case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657 STRIP=$ac_ct_STRIP
6658 fi
6659else
6660 STRIP="$ac_cv_prog_STRIP"
6661fi
6662
6663test -z "$STRIP" && STRIP=:
6664
6665
6666
6667
6668
6669
6670if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6672set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6675if ${ac_cv_prog_RANLIB+:} false; then :
5f520819
KY
6676 $as_echo_n "(cached) " >&6
6677else
6678 if test -n "$RANLIB"; then
6679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692done
6693 done
6694IFS=$as_save_IFS
6695
6696fi
6697fi
6698RANLIB=$ac_cv_prog_RANLIB
6699if test -n "$RANLIB"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6701$as_echo "$RANLIB" >&6; }
6702else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704$as_echo "no" >&6; }
6705fi
6706
6707
6708fi
6709if test -z "$ac_cv_prog_RANLIB"; then
6710 ac_ct_RANLIB=$RANLIB
6711 # Extract the first word of "ranlib", so it can be a program name with args.
6712set dummy ranlib; ac_word=$2
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6715if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5f520819
KY
6716 $as_echo_n "(cached) " >&6
6717else
6718 if test -n "$ac_ct_RANLIB"; then
6719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6720else
6721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
6728 ac_cv_prog_ac_ct_RANLIB="ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733 done
6734IFS=$as_save_IFS
6735
6736fi
6737fi
6738ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6739if test -n "$ac_ct_RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6741$as_echo "$ac_ct_RANLIB" >&6; }
6742else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744$as_echo "no" >&6; }
6745fi
6746
6747 if test "x$ac_ct_RANLIB" = x; then
6748 RANLIB=":"
6749 else
6750 case $cross_compiling:$ac_tool_warned in
6751yes:)
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754ac_tool_warned=yes ;;
6755esac
6756 RANLIB=$ac_ct_RANLIB
6757 fi
6758else
6759 RANLIB="$ac_cv_prog_RANLIB"
6760fi
6761
6762test -z "$RANLIB" && RANLIB=:
6763
6764
6765
6766
6767
6768
6769# Determine commands to create old-style static archives.
6770old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6771old_postinstall_cmds='chmod 644 $oldlib'
6772old_postuninstall_cmds=
6773
6774if test -n "$RANLIB"; then
6775 case $host_os in
6776 openbsd*)
6777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6778 ;;
6779 *)
6780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6781 ;;
6782 esac
6783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6784fi
6785
6786case $host_os in
6787 darwin*)
6788 lock_old_archive_extraction=yes ;;
6789 *)
6790 lock_old_archive_extraction=no ;;
6791esac
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831# If no C compiler was specified, use CC.
6832LTCC=${LTCC-"$CC"}
6833
6834# If no C compiler flags were specified, use CFLAGS.
6835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6836
6837# Allow CC to be a program name with arguments.
6838compiler=$CC
6839
6840
6841# Check for command to grab the raw symbol name followed by C symbol from nm.
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6843$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6844if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5f520819
KY
6845 $as_echo_n "(cached) " >&6
6846else
6847
6848# These are sane defaults that work on at least a few old systems.
6849# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6850
6851# Character class describing NM global symbol codes.
6852symcode='[BCDEGRST]'
6853
6854# Regexp to match symbols that can be accessed directly from C.
6855sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6856
6857# Define system-specific variables.
6858case $host_os in
6859aix*)
6860 symcode='[BCDT]'
6861 ;;
6862cygwin* | mingw* | pw32* | cegcc*)
6863 symcode='[ABCDGISTW]'
6864 ;;
6865hpux*)
6866 if test "$host_cpu" = ia64; then
6867 symcode='[ABCDEGRST]'
6868 fi
6869 ;;
6870irix* | nonstopux*)
6871 symcode='[BCDEGRST]'
6872 ;;
6873osf*)
6874 symcode='[BCDEGQRST]'
6875 ;;
6876solaris*)
6877 symcode='[BDRT]'
6878 ;;
6879sco3.2v5*)
6880 symcode='[DT]'
6881 ;;
6882sysv4.2uw2*)
6883 symcode='[DT]'
6884 ;;
6885sysv5* | sco5v6* | unixware* | OpenUNIX*)
6886 symcode='[ABDT]'
6887 ;;
6888sysv4)
6889 symcode='[DFNSTU]'
6890 ;;
6891esac
6892
6893# If we're using GNU nm, then use its standard symbol codes.
6894case `$NM -V 2>&1` in
6895*GNU* | *'with BFD'*)
6896 symcode='[ABCDGIRSTW]' ;;
6897esac
6898
6899# Transform an extracted symbol line into a proper C declaration.
6900# Some systems (esp. on ia64) link data and code symbols differently,
6901# so use this general approach.
6902lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6903
6904# Transform an extracted symbol line into symbol name and symbol address
6905lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6906lt_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'"
6907
6908# Handle CRLF in mingw tool chain
6909opt_cr=
6910case $build_os in
6911mingw*)
6912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6913 ;;
6914esac
6915
6916# Try without a prefix underscore, then with it.
6917for ac_symprfx in "" "_"; do
6918
6919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6920 symxfrm="\\1 $ac_symprfx\\2 \\2"
6921
6922 # Write the raw and C identifiers.
6923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6924 # Fake it for dumpbin and say T for any non-static function
6925 # and D for any global variable.
6926 # Also find C++ and __fastcall symbols from MSVC++,
6927 # which start with @ or ?.
6928 lt_cv_sys_global_symbol_pipe="$AWK '"\
6929" {last_section=section; section=\$ 3};"\
6930" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6931" \$ 0!~/External *\|/{next};"\
6932" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6933" {if(hide[section]) next};"\
6934" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6935" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6936" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6937" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6938" ' prfx=^$ac_symprfx"
6939 else
6940 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6941 fi
6942
6943 # Check to see that the pipe works correctly.
6944 pipe_works=no
6945
6946 rm -f conftest*
6947 cat > conftest.$ac_ext <<_LT_EOF
6948#ifdef __cplusplus
6949extern "C" {
6950#endif
6951char nm_test_var;
6952void nm_test_func(void);
6953void nm_test_func(void){}
6954#ifdef __cplusplus
6955}
6956#endif
6957int main(){nm_test_var='a';nm_test_func();return(0);}
6958_LT_EOF
6959
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 # Now try to grab the symbols.
6966 nlist=conftest.nm
6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6968 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6969 ac_status=$?
6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; } && test -s "$nlist"; then
6972 # Try sorting and uniquifying the output.
6973 if sort "$nlist" | uniq > "$nlist"T; then
6974 mv -f "$nlist"T "$nlist"
6975 else
6976 rm -f "$nlist"T
6977 fi
6978
6979 # Make sure that we snagged all the symbols we need.
6980 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6981 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6982 cat <<_LT_EOF > conftest.$ac_ext
6983#ifdef __cplusplus
6984extern "C" {
6985#endif
6986
6987_LT_EOF
6988 # Now generate the symbol file.
6989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6990
6991 cat <<_LT_EOF >> conftest.$ac_ext
6992
6993/* The mapping between symbol names and symbols. */
6994const struct {
6995 const char *name;
6996 void *address;
6997}
6998lt__PROGRAM__LTX_preloaded_symbols[] =
6999{
7000 { "@PROGRAM@", (void *) 0 },
7001_LT_EOF
7002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7003 cat <<\_LT_EOF >> conftest.$ac_ext
7004 {0, (void *) 0}
7005};
7006
7007/* This works around a problem in FreeBSD linker */
7008#ifdef FREEBSD_WORKAROUND
7009static const void *lt_preloaded_setup() {
7010 return lt__PROGRAM__LTX_preloaded_symbols;
7011}
7012#endif
7013
7014#ifdef __cplusplus
7015}
7016#endif
7017_LT_EOF
7018 # Now try linking the two files.
7019 mv conftest.$ac_objext conftstm.$ac_objext
7020 lt_save_LIBS="$LIBS"
7021 lt_save_CFLAGS="$CFLAGS"
7022 LIBS="conftstm.$ac_objext"
7023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7025 (eval $ac_link) 2>&5
7026 ac_status=$?
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7029 pipe_works=yes
7030 fi
7031 LIBS="$lt_save_LIBS"
7032 CFLAGS="$lt_save_CFLAGS"
7033 else
7034 echo "cannot find nm_test_func in $nlist" >&5
7035 fi
7036 else
7037 echo "cannot find nm_test_var in $nlist" >&5
7038 fi
7039 else
7040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041 fi
7042 else
7043 echo "$progname: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7045 fi
7046 rm -rf conftest* conftst*
7047
7048 # Do not use the global_symbol_pipe unless it works.
7049 if test "$pipe_works" = yes; then
7050 break
7051 else
7052 lt_cv_sys_global_symbol_pipe=
7053 fi
7054done
7055
7056fi
7057
7058if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059 lt_cv_sys_global_symbol_to_cdecl=
7060fi
7061if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7063$as_echo "failed" >&6; }
7064else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7066$as_echo "ok" >&6; }
7067fi
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090# Check whether --enable-libtool-lock was given.
7091if test "${enable_libtool_lock+set}" = set; then :
7092 enableval=$enable_libtool_lock;
7093fi
7094
7095test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7096
7097# Some flags need to be propagated to the compiler or linker for good
7098# libtool support.
7099case $host in
7100ia64-*-hpux*)
7101 # Find out which ABI we are using.
7102 echo 'int i;' > conftest.$ac_ext
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104 (eval $ac_compile) 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 case `/usr/bin/file conftest.$ac_objext` in
7109 *ELF-32*)
7110 HPUX_IA64_MODE="32"
7111 ;;
7112 *ELF-64*)
7113 HPUX_IA64_MODE="64"
7114 ;;
7115 esac
7116 fi
7117 rm -rf conftest*
7118 ;;
7119*-*-irix6*)
7120 # Find out which ABI we are using.
7121 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7123 (eval $ac_compile) 2>&5
7124 ac_status=$?
7125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126 test $ac_status = 0; }; then
7127 if test "$lt_cv_prog_gnu_ld" = yes; then
7128 case `/usr/bin/file conftest.$ac_objext` in
7129 *32-bit*)
7130 LD="${LD-ld} -melf32bsmip"
7131 ;;
7132 *N32*)
7133 LD="${LD-ld} -melf32bmipn32"
7134 ;;
7135 *64-bit*)
7136 LD="${LD-ld} -melf64bmip"
7137 ;;
7138 esac
7139 else
7140 case `/usr/bin/file conftest.$ac_objext` in
7141 *32-bit*)
7142 LD="${LD-ld} -32"
7143 ;;
7144 *N32*)
7145 LD="${LD-ld} -n32"
7146 ;;
7147 *64-bit*)
7148 LD="${LD-ld} -64"
7149 ;;
7150 esac
7151 fi
7152 fi
7153 rm -rf conftest*
7154 ;;
7155
7156x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7157s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7158 # Find out which ABI we are using.
7159 echo 'int i;' > conftest.$ac_ext
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7161 (eval $ac_compile) 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; }; then
7165 case `/usr/bin/file conftest.o` in
7166 *32-bit*)
7167 case $host in
7168 x86_64-*kfreebsd*-gnu)
7169 LD="${LD-ld} -m elf_i386_fbsd"
7170 ;;
7171 x86_64-*linux*)
7172 case `/usr/bin/file conftest.o` in
7173 *x86-64*)
7174 LD="${LD-ld} -m elf32_x86_64"
7175 ;;
7176 *)
7177 LD="${LD-ld} -m elf_i386"
7178 ;;
7179 esac
7180 ;;
7181 powerpc64le-*linux*)
7182 LD="${LD-ld} -m elf32lppclinux"
7183 ;;
7184 powerpc64-*linux*)
7185 LD="${LD-ld} -m elf32ppclinux"
7186 ;;
7187 s390x-*linux*)
7188 LD="${LD-ld} -m elf_s390"
7189 ;;
7190 sparc64-*linux*)
7191 LD="${LD-ld} -m elf32_sparc"
7192 ;;
7193 esac
7194 ;;
7195 *64-bit*)
7196 case $host in
7197 x86_64-*kfreebsd*-gnu)
7198 LD="${LD-ld} -m elf_x86_64_fbsd"
7199 ;;
7200 x86_64-*linux*)
7201 LD="${LD-ld} -m elf_x86_64"
7202 ;;
7203 powerpcle-*linux*)
7204 LD="${LD-ld} -m elf64lppc"
7205 ;;
7206 powerpc-*linux*)
7207 LD="${LD-ld} -m elf64ppc"
7208 ;;
7209 s390*-*linux*|s390*-*tpf*)
7210 LD="${LD-ld} -m elf64_s390"
7211 ;;
7212 sparc*-*linux*)
7213 LD="${LD-ld} -m elf64_sparc"
7214 ;;
7215 esac
7216 ;;
7217 esac
7218 fi
7219 rm -rf conftest*
7220 ;;
7221
7222*-*-sco3.2v5*)
7223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7224 SAVE_CFLAGS="$CFLAGS"
7225 CFLAGS="$CFLAGS -belf"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7227$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7228if ${lt_cv_cc_needs_belf+:} false; then :
5f520819
KY
7229 $as_echo_n "(cached) " >&6
7230else
7231 ac_ext=c
7232ac_cpp='$CPP $CPPFLAGS'
7233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h. */
7239
7240int
7241main ()
7242{
7243
7244 ;
7245 return 0;
7246}
7247_ACEOF
7248if ac_fn_c_try_link "$LINENO"; then :
7249 lt_cv_cc_needs_belf=yes
7250else
7251 lt_cv_cc_needs_belf=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 ac_ext=c
7256ac_cpp='$CPP $CPPFLAGS'
7257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7263$as_echo "$lt_cv_cc_needs_belf" >&6; }
7264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7266 CFLAGS="$SAVE_CFLAGS"
7267 fi
7268 ;;
7269sparc*-*solaris*)
7270 # Find out which ABI we are using.
7271 echo 'int i;' > conftest.$ac_ext
7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273 (eval $ac_compile) 2>&5
7274 ac_status=$?
7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; then
7277 case `/usr/bin/file conftest.o` in
7278 *64-bit*)
7279 case $lt_cv_prog_gnu_ld in
7280 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7281 *)
7282 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7283 LD="${LD-ld} -64"
7284 fi
7285 ;;
7286 esac
7287 ;;
7288 esac
7289 fi
7290 rm -rf conftest*
7291 ;;
7292esac
7293
7294need_locks="$enable_libtool_lock"
7295
7296
7297 case $host_os in
7298 rhapsody* | darwin*)
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7304if ${ac_cv_prog_DSYMUTIL+:} false; then :
5f520819
KY
7305 $as_echo_n "(cached) " >&6
7306else
7307 if test -n "$DSYMUTIL"; then
7308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7309else
7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311for as_dir in $PATH
7312do
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7317 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7320 fi
7321done
7322 done
7323IFS=$as_save_IFS
7324
7325fi
7326fi
7327DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328if test -n "$DSYMUTIL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7330$as_echo "$DSYMUTIL" >&6; }
7331else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333$as_echo "no" >&6; }
7334fi
7335
7336
7337fi
7338if test -z "$ac_cv_prog_DSYMUTIL"; then
7339 ac_ct_DSYMUTIL=$DSYMUTIL
7340 # Extract the first word of "dsymutil", so it can be a program name with args.
7341set dummy dsymutil; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7344if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5f520819
KY
7345 $as_echo_n "(cached) " >&6
7346else
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7357 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362 done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368if test -n "$ac_ct_DSYMUTIL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7370$as_echo "$ac_ct_DSYMUTIL" >&6; }
7371else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376 if test "x$ac_ct_DSYMUTIL" = x; then
7377 DSYMUTIL=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380yes:)
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383ac_tool_warned=yes ;;
7384esac
7385 DSYMUTIL=$ac_ct_DSYMUTIL
7386 fi
7387else
7388 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7389fi
7390
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7396if ${ac_cv_prog_NMEDIT+:} false; then :
5f520819
KY
7397 $as_echo_n "(cached) " >&6
7398else
7399 if test -n "$NMEDIT"; then
7400 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7401else
7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7409 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413done
7414 done
7415IFS=$as_save_IFS
7416
7417fi
7418fi
7419NMEDIT=$ac_cv_prog_NMEDIT
7420if test -n "$NMEDIT"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7422$as_echo "$NMEDIT" >&6; }
7423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425$as_echo "no" >&6; }
7426fi
7427
7428
7429fi
7430if test -z "$ac_cv_prog_NMEDIT"; then
7431 ac_ct_NMEDIT=$NMEDIT
7432 # Extract the first word of "nmedit", so it can be a program name with args.
7433set dummy nmedit; ac_word=$2
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7436if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5f520819
KY
7437 $as_echo_n "(cached) " >&6
7438else
7439 if test -n "$ac_ct_NMEDIT"; then
7440 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7441else
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7449 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454 done
7455IFS=$as_save_IFS
7456
7457fi
7458fi
7459ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460if test -n "$ac_ct_NMEDIT"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7462$as_echo "$ac_ct_NMEDIT" >&6; }
7463else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465$as_echo "no" >&6; }
7466fi
7467
7468 if test "x$ac_ct_NMEDIT" = x; then
7469 NMEDIT=":"
7470 else
7471 case $cross_compiling:$ac_tool_warned in
7472yes:)
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475ac_tool_warned=yes ;;
7476esac
7477 NMEDIT=$ac_ct_NMEDIT
7478 fi
7479else
7480 NMEDIT="$ac_cv_prog_NMEDIT"
7481fi
7482
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7485set dummy ${ac_tool_prefix}lipo; ac_word=$2
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7488if ${ac_cv_prog_LIPO+:} false; then :
5f520819
KY
7489 $as_echo_n "(cached) " >&6
7490else
7491 if test -n "$LIPO"; then
7492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7501 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506 done
7507IFS=$as_save_IFS
7508
7509fi
7510fi
7511LIPO=$ac_cv_prog_LIPO
7512if test -n "$LIPO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7514$as_echo "$LIPO" >&6; }
7515else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517$as_echo "no" >&6; }
7518fi
7519
7520
7521fi
7522if test -z "$ac_cv_prog_LIPO"; then
7523 ac_ct_LIPO=$LIPO
7524 # Extract the first word of "lipo", so it can be a program name with args.
7525set dummy lipo; ac_word=$2
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7528if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5f520819
KY
7529 $as_echo_n "(cached) " >&6
7530else
7531 if test -n "$ac_ct_LIPO"; then
7532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7541 ac_cv_prog_ac_ct_LIPO="lipo"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546 done
7547IFS=$as_save_IFS
7548
7549fi
7550fi
7551ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7552if test -n "$ac_ct_LIPO"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7554$as_echo "$ac_ct_LIPO" >&6; }
7555else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557$as_echo "no" >&6; }
7558fi
7559
7560 if test "x$ac_ct_LIPO" = x; then
7561 LIPO=":"
7562 else
7563 case $cross_compiling:$ac_tool_warned in
7564yes:)
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567ac_tool_warned=yes ;;
7568esac
7569 LIPO=$ac_ct_LIPO
7570 fi
7571else
7572 LIPO="$ac_cv_prog_LIPO"
7573fi
7574
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7577set dummy ${ac_tool_prefix}otool; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7580if ${ac_cv_prog_OTOOL+:} false; then :
5f520819
KY
7581 $as_echo_n "(cached) " >&6
7582else
7583 if test -n "$OTOOL"; then
7584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7593 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7596 fi
7597done
7598 done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603OTOOL=$ac_cv_prog_OTOOL
7604if test -n "$OTOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7606$as_echo "$OTOOL" >&6; }
7607else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612
7613fi
7614if test -z "$ac_cv_prog_OTOOL"; then
7615 ac_ct_OTOOL=$OTOOL
7616 # Extract the first word of "otool", so it can be a program name with args.
7617set dummy otool; ac_word=$2
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7620if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5f520819
KY
7621 $as_echo_n "(cached) " >&6
7622else
7623 if test -n "$ac_ct_OTOOL"; then
7624 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7625else
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7633 ac_cv_prog_ac_ct_OTOOL="otool"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637done
7638 done
7639IFS=$as_save_IFS
7640
7641fi
7642fi
7643ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7644if test -n "$ac_ct_OTOOL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7646$as_echo "$ac_ct_OTOOL" >&6; }
7647else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
7650fi
7651
7652 if test "x$ac_ct_OTOOL" = x; then
7653 OTOOL=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656yes:)
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659ac_tool_warned=yes ;;
7660esac
7661 OTOOL=$ac_ct_OTOOL
7662 fi
7663else
7664 OTOOL="$ac_cv_prog_OTOOL"
7665fi
7666
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7669set dummy ${ac_tool_prefix}otool64; ac_word=$2
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7672if ${ac_cv_prog_OTOOL64+:} false; then :
5f520819
KY
7673 $as_echo_n "(cached) " >&6
7674else
7675 if test -n "$OTOOL64"; then
7676 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7685 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689done
7690 done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695OTOOL64=$ac_cv_prog_OTOOL64
7696if test -n "$OTOOL64"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7698$as_echo "$OTOOL64" >&6; }
7699else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
7702fi
7703
7704
7705fi
7706if test -z "$ac_cv_prog_OTOOL64"; then
7707 ac_ct_OTOOL64=$OTOOL64
7708 # Extract the first word of "otool64", so it can be a program name with args.
7709set dummy otool64; ac_word=$2
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7712if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5f520819
KY
7713 $as_echo_n "(cached) " >&6
7714else
7715 if test -n "$ac_ct_OTOOL64"; then
7716 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5f520819
KY
7725 ac_cv_prog_ac_ct_OTOOL64="otool64"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729done
7730 done
7731IFS=$as_save_IFS
7732
7733fi
7734fi
7735ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7736if test -n "$ac_ct_OTOOL64"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7738$as_echo "$ac_ct_OTOOL64" >&6; }
7739else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741$as_echo "no" >&6; }
7742fi
7743
7744 if test "x$ac_ct_OTOOL64" = x; then
7745 OTOOL64=":"
7746 else
7747 case $cross_compiling:$ac_tool_warned in
7748yes:)
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751ac_tool_warned=yes ;;
7752esac
7753 OTOOL64=$ac_ct_OTOOL64
7754 fi
7755else
7756 OTOOL64="$ac_cv_prog_OTOOL64"
7757fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7786$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7787if ${lt_cv_apple_cc_single_mod+:} false; then :
5f520819
KY
7788 $as_echo_n "(cached) " >&6
7789else
7790 lt_cv_apple_cc_single_mod=no
7791 if test -z "${LT_MULTI_MODULE}"; then
7792 # By default we will add the -single_module flag. You can override
7793 # by either setting the environment variable LT_MULTI_MODULE
7794 # non-empty at configure time, or by adding -multi_module to the
7795 # link flags.
7796 rm -rf libconftest.dylib*
7797 echo "int foo(void){return 1;}" > conftest.c
7798 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799-dynamiclib -Wl,-single_module conftest.c" >&5
7800 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7801 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7802 _lt_result=$?
7803 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7804 lt_cv_apple_cc_single_mod=yes
7805 else
7806 cat conftest.err >&5
7807 fi
7808 rm -rf libconftest.dylib*
7809 rm -f conftest.*
7810 fi
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7813$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7815$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7816if ${lt_cv_ld_exported_symbols_list+:} false; then :
5f520819
KY
7817 $as_echo_n "(cached) " >&6
7818else
7819 lt_cv_ld_exported_symbols_list=no
7820 save_LDFLAGS=$LDFLAGS
7821 echo "_main" > conftest.sym
7822 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825
7826int
7827main ()
7828{
7829
7830 ;
7831 return 0;
7832}
7833_ACEOF
7834if ac_fn_c_try_link "$LINENO"; then :
7835 lt_cv_ld_exported_symbols_list=yes
7836else
7837 lt_cv_ld_exported_symbols_list=no
7838fi
7839rm -f core conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LDFLAGS="$save_LDFLAGS"
7842
7843fi
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7845$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7847$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7848if ${lt_cv_ld_force_load+:} false; then :
5f520819
KY
7849 $as_echo_n "(cached) " >&6
7850else
7851 lt_cv_ld_force_load=no
7852 cat > conftest.c << _LT_EOF
7853int forced_loaded() { return 2;}
7854_LT_EOF
7855 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7856 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7857 echo "$AR cru libconftest.a conftest.o" >&5
7858 $AR cru libconftest.a conftest.o 2>&5
7859 cat > conftest.c << _LT_EOF
7860int main() { return 0;}
7861_LT_EOF
7862 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7863 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7864 _lt_result=$?
7865 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7866 lt_cv_ld_force_load=yes
7867 else
7868 cat conftest.err >&5
7869 fi
7870 rm -f conftest.err libconftest.a conftest conftest.c
7871 rm -rf conftest.dSYM
7872
7873fi
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7875$as_echo "$lt_cv_ld_force_load" >&6; }
7876 case $host_os in
7877 rhapsody* | darwin1.[012])
7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7879 darwin1.*)
7880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7881 darwin*) # darwin 5.x on
7882 # if running on 10.5 or later, the deployment target defaults
7883 # to the OS version, if on x86, and 10.4, the deployment
7884 # target defaults to 10.4. Don't you love it?
7885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7886 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
735aacba 7888 10.[012][,.]*)
5f520819
KY
7889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7890 10.*)
7891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7892 esac
7893 ;;
7894 esac
7895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7896 _lt_dar_single_mod='$single_module'
7897 fi
7898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7900 else
7901 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7902 fi
7903 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7904 _lt_dsymutil='~$DSYMUTIL $lib || :'
7905 else
7906 _lt_dsymutil=
7907 fi
7908 ;;
7909 esac
7910
7911for ac_header in dlfcn.h
7912do :
7913 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7914"
22e05272 7915if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5f520819
KY
7916 cat >>confdefs.h <<_ACEOF
7917#define HAVE_DLFCN_H 1
7918_ACEOF
7919
7920fi
7921
7922done
7923
7924
7925
7926
7927
7928
7929# Set options
7930
7931
7932
7933
7934 enable_win32_dll=no
7935
7936
7937 # Check whether --enable-shared was given.
7938if test "${enable_shared+set}" = set; then :
7939 enableval=$enable_shared; p=${PACKAGE-default}
7940 case $enableval in
7941 yes) enable_shared=yes ;;
7942 no) enable_shared=no ;;
7943 *)
7944 enable_shared=no
7945 # Look at the argument we got. We use all the common list separators.
7946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7947 for pkg in $enableval; do
7948 IFS="$lt_save_ifs"
7949 if test "X$pkg" = "X$p"; then
7950 enable_shared=yes
7951 fi
7952 done
7953 IFS="$lt_save_ifs"
7954 ;;
7955 esac
7956else
7957 enable_shared=yes
7958fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968 # Check whether --enable-static was given.
7969if test "${enable_static+set}" = set; then :
7970 enableval=$enable_static; p=${PACKAGE-default}
7971 case $enableval in
7972 yes) enable_static=yes ;;
7973 no) enable_static=no ;;
7974 *)
7975 enable_static=no
7976 # Look at the argument we got. We use all the common list separators.
7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978 for pkg in $enableval; do
7979 IFS="$lt_save_ifs"
7980 if test "X$pkg" = "X$p"; then
7981 enable_static=yes
7982 fi
7983 done
7984 IFS="$lt_save_ifs"
7985 ;;
7986 esac
7987else
7988 enable_static=yes
7989fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000# Check whether --with-pic was given.
8001if test "${with_pic+set}" = set; then :
8002 withval=$with_pic; pic_mode="$withval"
8003else
8004 pic_mode=default
8005fi
8006
8007
8008test -z "$pic_mode" && pic_mode=default
8009
8010
8011
8012
8013
8014
8015
8016 # Check whether --enable-fast-install was given.
8017if test "${enable_fast_install+set}" = set; then :
8018 enableval=$enable_fast_install; p=${PACKAGE-default}
8019 case $enableval in
8020 yes) enable_fast_install=yes ;;
8021 no) enable_fast_install=no ;;
8022 *)
8023 enable_fast_install=no
8024 # Look at the argument we got. We use all the common list separators.
8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8026 for pkg in $enableval; do
8027 IFS="$lt_save_ifs"
8028 if test "X$pkg" = "X$p"; then
8029 enable_fast_install=yes
8030 fi
8031 done
8032 IFS="$lt_save_ifs"
8033 ;;
8034 esac
8035else
8036 enable_fast_install=yes
8037fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049# This can be used to rebuild libtool when needed
8050LIBTOOL_DEPS="$ltmain"
8051
8052# Always use our own libtool.
8053LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080test -z "$LN_S" && LN_S="ln -s"
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095if test -n "${ZSH_VERSION+set}" ; then
8096 setopt NO_GLOB_SUBST
8097fi
8098
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8100$as_echo_n "checking for objdir... " >&6; }
22e05272 8101if ${lt_cv_objdir+:} false; then :
5f520819
KY
8102 $as_echo_n "(cached) " >&6
8103else
8104 rm -f .libs 2>/dev/null
8105mkdir .libs 2>/dev/null
8106if test -d .libs; then
8107 lt_cv_objdir=.libs
8108else
8109 # MS-DOS does not allow filenames that begin with a dot.
8110 lt_cv_objdir=_libs
8111fi
8112rmdir .libs 2>/dev/null
8113fi
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8115$as_echo "$lt_cv_objdir" >&6; }
8116objdir=$lt_cv_objdir
8117
8118
8119
8120
8121
8122cat >>confdefs.h <<_ACEOF
8123#define LT_OBJDIR "$lt_cv_objdir/"
8124_ACEOF
8125
8126
8127
8128
8129case $host_os in
8130aix3*)
8131 # AIX sometimes has problems with the GCC collect2 program. For some
8132 # reason, if we set the COLLECT_NAMES environment variable, the problems
8133 # vanish in a puff of smoke.
8134 if test "X${COLLECT_NAMES+set}" != Xset; then
8135 COLLECT_NAMES=
8136 export COLLECT_NAMES
8137 fi
8138 ;;
8139esac
8140
8141# Global variables:
8142ofile=libtool
8143can_build_shared=yes
8144
8145# All known linkers require a `.a' archive for static linking (except MSVC,
8146# which needs '.lib').
8147libext=a
8148
8149with_gnu_ld="$lt_cv_prog_gnu_ld"
8150
8151old_CC="$CC"
8152old_CFLAGS="$CFLAGS"
8153
8154# Set sane defaults for various variables
8155test -z "$CC" && CC=cc
8156test -z "$LTCC" && LTCC=$CC
8157test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158test -z "$LD" && LD=ld
8159test -z "$ac_objext" && ac_objext=o
8160
8161for cc_temp in $compiler""; do
8162 case $cc_temp in
8163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8165 \-*) ;;
8166 *) break;;
8167 esac
8168done
8169cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8170
8171
8172# Only perform the check for file, if the check method requires it
8173test -z "$MAGIC_CMD" && MAGIC_CMD=file
8174case $deplibs_check_method in
8175file_magic*)
8176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8178$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8179if ${lt_cv_path_MAGIC_CMD+:} false; then :
5f520819
KY
8180 $as_echo_n "(cached) " >&6
8181else
8182 case $MAGIC_CMD in
8183[\\/*] | ?:[\\/]*)
8184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8185 ;;
8186*)
8187 lt_save_MAGIC_CMD="$MAGIC_CMD"
8188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8190 for ac_dir in $ac_dummy; do
8191 IFS="$lt_save_ifs"
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/${ac_tool_prefix}file; then
8194 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8195 if test -n "$file_magic_test_file"; then
8196 case $deplibs_check_method in
8197 "file_magic "*)
8198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8201 $EGREP "$file_magic_regex" > /dev/null; then
8202 :
8203 else
8204 cat <<_LT_EOF 1>&2
8205
8206*** Warning: the command libtool uses to detect shared libraries,
8207*** $file_magic_cmd, produces output that libtool cannot recognize.
8208*** The result is that libtool may fail to recognize shared libraries
8209*** as such. This will affect the creation of libtool libraries that
8210*** depend on shared libraries, but programs linked with such libtool
8211*** libraries will work regardless of this problem. Nevertheless, you
8212*** may want to report the problem to your system manager and/or to
8213*** bug-libtool@gnu.org
8214
8215_LT_EOF
8216 fi ;;
8217 esac
8218 fi
8219 break
8220 fi
8221 done
8222 IFS="$lt_save_ifs"
8223 MAGIC_CMD="$lt_save_MAGIC_CMD"
8224 ;;
8225esac
8226fi
8227
8228MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229if test -n "$MAGIC_CMD"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8231$as_echo "$MAGIC_CMD" >&6; }
8232else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
8235fi
8236
8237
8238
8239
8240
8241if test -z "$lt_cv_path_MAGIC_CMD"; then
8242 if test -n "$ac_tool_prefix"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8244$as_echo_n "checking for file... " >&6; }
22e05272 8245if ${lt_cv_path_MAGIC_CMD+:} false; then :
5f520819
KY
8246 $as_echo_n "(cached) " >&6
8247else
8248 case $MAGIC_CMD in
8249[\\/*] | ?:[\\/]*)
8250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8251 ;;
8252*)
8253 lt_save_MAGIC_CMD="$MAGIC_CMD"
8254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8256 for ac_dir in $ac_dummy; do
8257 IFS="$lt_save_ifs"
8258 test -z "$ac_dir" && ac_dir=.
8259 if test -f $ac_dir/file; then
8260 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8261 if test -n "$file_magic_test_file"; then
8262 case $deplibs_check_method in
8263 "file_magic "*)
8264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8267 $EGREP "$file_magic_regex" > /dev/null; then
8268 :
8269 else
8270 cat <<_LT_EOF 1>&2
8271
8272*** Warning: the command libtool uses to detect shared libraries,
8273*** $file_magic_cmd, produces output that libtool cannot recognize.
8274*** The result is that libtool may fail to recognize shared libraries
8275*** as such. This will affect the creation of libtool libraries that
8276*** depend on shared libraries, but programs linked with such libtool
8277*** libraries will work regardless of this problem. Nevertheless, you
8278*** may want to report the problem to your system manager and/or to
8279*** bug-libtool@gnu.org
8280
8281_LT_EOF
8282 fi ;;
8283 esac
8284 fi
8285 break
8286 fi
8287 done
8288 IFS="$lt_save_ifs"
8289 MAGIC_CMD="$lt_save_MAGIC_CMD"
8290 ;;
8291esac
8292fi
8293
8294MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295if test -n "$MAGIC_CMD"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8297$as_echo "$MAGIC_CMD" >&6; }
8298else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
8301fi
8302
8303
8304 else
8305 MAGIC_CMD=:
8306 fi
8307fi
8308
8309 fi
8310 ;;
8311esac
8312
8313# Use C for the default configuration in the libtool script
8314
8315lt_save_CC="$CC"
8316ac_ext=c
8317ac_cpp='$CPP $CPPFLAGS'
8318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8320ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321
8322
8323# Source file extension for C test sources.
8324ac_ext=c
8325
8326# Object file extension for compiled C test sources.
8327objext=o
8328objext=$objext
8329
8330# Code to be used in simple compile tests
8331lt_simple_compile_test_code="int some_variable = 0;"
8332
8333# Code to be used in simple link tests
8334lt_simple_link_test_code='int main(){return(0);}'
8335
8336
8337
8338
8339
8340
8341
8342# If no C compiler was specified, use CC.
8343LTCC=${LTCC-"$CC"}
8344
8345# If no C compiler flags were specified, use CFLAGS.
8346LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8347
8348# Allow CC to be a program name with arguments.
8349compiler=$CC
8350
8351# Save the default compiler, since it gets overwritten when the other
8352# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8353compiler_DEFAULT=$CC
8354
8355# save warnings/boilerplate of simple test code
8356ac_outfile=conftest.$ac_objext
8357echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359_lt_compiler_boilerplate=`cat conftest.err`
8360$RM conftest*
8361
8362ac_outfile=conftest.$ac_objext
8363echo "$lt_simple_link_test_code" >conftest.$ac_ext
8364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8365_lt_linker_boilerplate=`cat conftest.err`
8366$RM -r conftest*
8367
8368
8369## CAVEAT EMPTOR:
8370## There is no encapsulation within the following macros, do not change
8371## the running order or otherwise move them around unless you know exactly
8372## what you are doing...
8373if test -n "$compiler"; then
8374
8375lt_prog_compiler_no_builtin_flag=
8376
8377if test "$GCC" = yes; then
8378 case $cc_basename in
8379 nvcc*)
8380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8381 *)
8382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8383 esac
8384
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8386$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8387if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5f520819
KY
8388 $as_echo_n "(cached) " >&6
8389else
8390 lt_cv_prog_compiler_rtti_exceptions=no
8391 ac_outfile=conftest.$ac_objext
8392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393 lt_compiler_flag="-fno-rtti -fno-exceptions"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 # The option is referenced via a variable to avoid confusing sed.
8399 lt_compile=`echo "$ac_compile" | $SED \
8400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402 -e 's:$: $lt_compiler_flag:'`
8403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8404 (eval "$lt_compile" 2>conftest.err)
8405 ac_status=$?
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 if (exit $ac_status) && test -s "$ac_outfile"; then
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings other than the usual output.
8411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_rtti_exceptions=yes
8415 fi
8416 fi
8417 $RM conftest*
8418
8419fi
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8421$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8422
8423if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8425else
8426 :
8427fi
8428
8429fi
8430
8431
8432
8433
8434
8435
8436 lt_prog_compiler_wl=
8437lt_prog_compiler_pic=
8438lt_prog_compiler_static=
8439
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8441$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8442
8443 if test "$GCC" = yes; then
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_static='-static'
8446
8447 case $host_os in
8448 aix*)
8449 # All AIX code is PIC.
8450 if test "$host_cpu" = ia64; then
8451 # AIX 5 now supports IA64 processor
8452 lt_prog_compiler_static='-Bstatic'
8453 fi
8454 lt_prog_compiler_pic='-fPIC'
8455 ;;
8456
8457 amigaos*)
8458 case $host_cpu in
8459 powerpc)
8460 # see comment about AmigaOS4 .so support
8461 lt_prog_compiler_pic='-fPIC'
8462 ;;
8463 m68k)
8464 # FIXME: we need at least 68020 code to build shared libraries, but
8465 # adding the `-m68020' flag to GCC prevents building anything better,
8466 # like `-m68040'.
8467 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8468 ;;
8469 esac
8470 ;;
8471
8472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8473 # PIC is the default for these OSes.
8474 ;;
8475
8476 mingw* | cygwin* | pw32* | os2* | cegcc*)
8477 # This hack is so that the source file can tell whether it is being
8478 # built for inclusion in a dll (and should export symbols for example).
8479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8480 # (--disable-auto-import) libraries
8481 lt_prog_compiler_pic='-DDLL_EXPORT'
8482 ;;
8483
8484 darwin* | rhapsody*)
8485 # PIC is the default on this platform
8486 # Common symbols not allowed in MH_DYLIB files
8487 lt_prog_compiler_pic='-fno-common'
8488 ;;
8489
8490 haiku*)
8491 # PIC is the default for Haiku.
8492 # The "-static" flag exists, but is broken.
8493 lt_prog_compiler_static=
8494 ;;
8495
8496 hpux*)
8497 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8498 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8499 # sets the default TLS model and affects inlining.
8500 case $host_cpu in
8501 hppa*64*)
8502 # +Z the default
8503 ;;
8504 *)
8505 lt_prog_compiler_pic='-fPIC'
8506 ;;
8507 esac
8508 ;;
8509
8510 interix[3-9]*)
8511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8512 # Instead, we relocate shared libraries at runtime.
8513 ;;
8514
8515 msdosdjgpp*)
8516 # Just because we use GCC doesn't mean we suddenly get shared libraries
8517 # on systems that don't support them.
8518 lt_prog_compiler_can_build_shared=no
8519 enable_shared=no
8520 ;;
8521
8522 *nto* | *qnx*)
8523 # QNX uses GNU C++, but need to define -shared option too, otherwise
8524 # it will coredump.
8525 lt_prog_compiler_pic='-fPIC -shared'
8526 ;;
8527
8528 sysv4*MP*)
8529 if test -d /usr/nec; then
8530 lt_prog_compiler_pic=-Kconform_pic
8531 fi
8532 ;;
8533
8534 *)
8535 lt_prog_compiler_pic='-fPIC'
8536 ;;
8537 esac
8538
8539 case $cc_basename in
8540 nvcc*) # Cuda Compiler Driver 2.2
8541 lt_prog_compiler_wl='-Xlinker '
8542 lt_prog_compiler_pic='-Xcompiler -fPIC'
8543 ;;
8544 esac
8545 else
8546 # PORTME Check for flag to pass linker flags through the system compiler.
8547 case $host_os in
8548 aix*)
8549 lt_prog_compiler_wl='-Wl,'
8550 if test "$host_cpu" = ia64; then
8551 # AIX 5 now supports IA64 processor
8552 lt_prog_compiler_static='-Bstatic'
8553 else
8554 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8555 fi
8556 ;;
8557
8558 mingw* | cygwin* | pw32* | os2* | cegcc*)
8559 # This hack is so that the source file can tell whether it is being
8560 # built for inclusion in a dll (and should export symbols for example).
8561 lt_prog_compiler_pic='-DDLL_EXPORT'
8562 ;;
8563
8564 hpux9* | hpux10* | hpux11*)
8565 lt_prog_compiler_wl='-Wl,'
8566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8567 # not for PA HP-UX.
8568 case $host_cpu in
8569 hppa*64*|ia64*)
8570 # +Z the default
8571 ;;
8572 *)
8573 lt_prog_compiler_pic='+Z'
8574 ;;
8575 esac
8576 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8577 lt_prog_compiler_static='${wl}-a ${wl}archive'
8578 ;;
8579
8580 irix5* | irix6* | nonstopux*)
8581 lt_prog_compiler_wl='-Wl,'
8582 # PIC (with -KPIC) is the default.
8583 lt_prog_compiler_static='-non_shared'
8584 ;;
8585
8586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8587 case $cc_basename in
8588 # old Intel for x86_64 which still supported -KPIC.
8589 ecc*)
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-static'
8593 ;;
8594 # icc used to be incompatible with GCC.
8595 # ICC 10 doesn't accept -KPIC any more.
8596 icc* | ifort*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-fPIC'
8599 lt_prog_compiler_static='-static'
8600 ;;
8601 # Lahey Fortran 8.1.
8602 lf95*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_pic='--shared'
8605 lt_prog_compiler_static='--static'
8606 ;;
8607 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8608 # Portland Group compilers (*not* the Pentium gcc compiler,
8609 # which looks to be a dead project)
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_pic='-fpic'
8612 lt_prog_compiler_static='-Bstatic'
8613 ;;
8614 ccc*)
8615 lt_prog_compiler_wl='-Wl,'
8616 # All Alpha code is PIC.
8617 lt_prog_compiler_static='-non_shared'
8618 ;;
8619 xl* | bgxl* | bgf* | mpixl*)
8620 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-qpic'
8623 lt_prog_compiler_static='-qstaticlink'
8624 ;;
8625 *)
8626 case `$CC -V 2>&1 | sed 5q` in
8627 *Sun\ F* | *Sun*Fortran*)
8628 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 lt_prog_compiler_wl=''
8632 ;;
8633 *Sun\ C*)
8634 # Sun C 5.9
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl='-Wl,'
8638 ;;
8639 esac
8640 ;;
8641 esac
8642 ;;
8643
8644 newsos6)
8645 lt_prog_compiler_pic='-KPIC'
8646 lt_prog_compiler_static='-Bstatic'
8647 ;;
8648
8649 *nto* | *qnx*)
8650 # QNX uses GNU C++, but need to define -shared option too, otherwise
8651 # it will coredump.
8652 lt_prog_compiler_pic='-fPIC -shared'
8653 ;;
8654
8655 osf3* | osf4* | osf5*)
8656 lt_prog_compiler_wl='-Wl,'
8657 # All OSF/1 code is PIC.
8658 lt_prog_compiler_static='-non_shared'
8659 ;;
8660
8661 rdos*)
8662 lt_prog_compiler_static='-non_shared'
8663 ;;
8664
8665 solaris*)
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 case $cc_basename in
8669 f77* | f90* | f95*)
8670 lt_prog_compiler_wl='-Qoption ld ';;
8671 *)
8672 lt_prog_compiler_wl='-Wl,';;
8673 esac
8674 ;;
8675
8676 sunos4*)
8677 lt_prog_compiler_wl='-Qoption ld '
8678 lt_prog_compiler_pic='-PIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 ;;
8681
8682 sysv4 | sysv4.2uw2* | sysv4.3*)
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8686 ;;
8687
8688 sysv4*MP*)
8689 if test -d /usr/nec ;then
8690 lt_prog_compiler_pic='-Kconform_pic'
8691 lt_prog_compiler_static='-Bstatic'
8692 fi
8693 ;;
8694
8695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 ;;
8700
8701 unicos*)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_can_build_shared=no
8704 ;;
8705
8706 uts4*)
8707 lt_prog_compiler_pic='-pic'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710
8711 *)
8712 lt_prog_compiler_can_build_shared=no
8713 ;;
8714 esac
8715 fi
8716
8717case $host_os in
8718 # For platforms which do not support PIC, -DPIC is meaningless:
8719 *djgpp*)
8720 lt_prog_compiler_pic=
8721 ;;
8722 *)
8723 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8724 ;;
8725esac
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8727$as_echo "$lt_prog_compiler_pic" >&6; }
8728
8729
8730
8731
8732
8733
8734#
8735# Check to make sure the PIC flag actually works.
8736#
8737if test -n "$lt_prog_compiler_pic"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8739$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8740if ${lt_cv_prog_compiler_pic_works+:} false; then :
5f520819
KY
8741 $as_echo_n "(cached) " >&6
8742else
8743 lt_cv_prog_compiler_pic_works=no
8744 ac_outfile=conftest.$ac_objext
8745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 # The option is referenced via a variable to avoid confusing sed.
8752 lt_compile=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
8756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8757 (eval "$lt_compile" 2>conftest.err)
8758 ac_status=$?
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 if (exit $ac_status) && test -s "$ac_outfile"; then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings other than the usual output.
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_pic_works=yes
8768 fi
8769 fi
8770 $RM conftest*
8771
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8774$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8775
8776if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8777 case $lt_prog_compiler_pic in
8778 "" | " "*) ;;
8779 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8780 esac
8781else
8782 lt_prog_compiler_pic=
8783 lt_prog_compiler_can_build_shared=no
8784fi
8785
8786fi
8787
8788
8789
8790
8791
8792
8793#
8794# Check to make sure the static flag actually works.
8795#
8796wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8798$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8799if ${lt_cv_prog_compiler_static_works+:} false; then :
5f520819
KY
8800 $as_echo_n "(cached) " >&6
8801else
8802 lt_cv_prog_compiler_static_works=no
8803 save_LDFLAGS="$LDFLAGS"
8804 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8807 # The linker can only warn and ignore the option if not recognized
8808 # So say no if there are warnings
8809 if test -s conftest.err; then
8810 # Append any errors to the config.log.
8811 cat conftest.err 1>&5
8812 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8814 if diff conftest.exp conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_static_works=yes
8816 fi
8817 else
8818 lt_cv_prog_compiler_static_works=yes
8819 fi
8820 fi
8821 $RM -r conftest*
8822 LDFLAGS="$save_LDFLAGS"
8823
8824fi
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8826$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8827
8828if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8829 :
8830else
8831 lt_prog_compiler_static=
8832fi
8833
8834
8835
8836
8837
8838
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8842if ${lt_cv_prog_compiler_c_o+:} false; then :
5f520819
KY
8843 $as_echo_n "(cached) " >&6
8844else
8845 lt_cv_prog_compiler_c_o=no
8846 $RM -r conftest 2>/dev/null
8847 mkdir conftest
8848 cd conftest
8849 mkdir out
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
8852 lt_compiler_flag="-o out/conftest2.$ac_objext"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862 (eval "$lt_compile" 2>out/conftest.err)
8863 ac_status=$?
8864 cat out/conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_c_o=yes
8874 fi
8875 fi
8876 chmod u+w . 2>&5
8877 $RM conftest*
8878 # SGI C++ compiler will create directory out/ii_files/ for
8879 # template instantiation
8880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881 $RM out/* && rmdir out
8882 cd ..
8883 $RM -r conftest
8884 $RM conftest*
8885
8886fi
8887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
8890
8891
8892
8893
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8897if ${lt_cv_prog_compiler_c_o+:} false; then :
5f520819
KY
8898 $as_echo_n "(cached) " >&6
8899else
8900 lt_cv_prog_compiler_c_o=no
8901 $RM -r conftest 2>/dev/null
8902 mkdir conftest
8903 cd conftest
8904 mkdir out
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906
8907 lt_compiler_flag="-o out/conftest2.$ac_objext"
8908 # Insert the option either (1) after the last *FLAGS variable, or
8909 # (2) before a word containing "conftest.", or (3) at the end.
8910 # Note that $ac_compile itself does not contain backslashes and begins
8911 # with a dollar sign (not a hyphen), so the echo should work correctly.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>out/conftest.err)
8918 ac_status=$?
8919 cat out/conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8922 then
8923 # The compiler can only warn and ignore the option if not recognized
8924 # So say no if there are warnings
8925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928 lt_cv_prog_compiler_c_o=yes
8929 fi
8930 fi
8931 chmod u+w . 2>&5
8932 $RM conftest*
8933 # SGI C++ compiler will create directory out/ii_files/ for
8934 # template instantiation
8935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936 $RM out/* && rmdir out
8937 cd ..
8938 $RM -r conftest
8939 $RM conftest*
8940
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944
8945
8946
8947
8948hard_links="nottested"
8949if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950 # do not overwrite the value of need_locks provided by the user
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952$as_echo_n "checking if we can lock with hard links... " >&6; }
8953 hard_links=yes
8954 $RM conftest*
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956 touch conftest.a
8957 ln conftest.a conftest.b 2>&5 || hard_links=no
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960$as_echo "$hard_links" >&6; }
8961 if test "$hard_links" = no; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8964 need_locks=warn
8965 fi
8966else
8967 need_locks=no
8968fi
8969
8970
8971
8972
8973
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8976$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8977
8978 runpath_var=
8979 allow_undefined_flag=
8980 always_export_symbols=no
8981 archive_cmds=
8982 archive_expsym_cmds=
8983 compiler_needs_object=no
8984 enable_shared_with_static_runtimes=no
8985 export_dynamic_flag_spec=
8986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8987 hardcode_automatic=no
8988 hardcode_direct=no
8989 hardcode_direct_absolute=no
8990 hardcode_libdir_flag_spec=
8991 hardcode_libdir_flag_spec_ld=
8992 hardcode_libdir_separator=
8993 hardcode_minus_L=no
8994 hardcode_shlibpath_var=unsupported
8995 inherit_rpath=no
8996 link_all_deplibs=unknown
8997 module_cmds=
8998 module_expsym_cmds=
8999 old_archive_from_new_cmds=
9000 old_archive_from_expsyms_cmds=
9001 thread_safe_flag_spec=
9002 whole_archive_flag_spec=
9003 # include_expsyms should be a list of space-separated symbols to be *always*
9004 # included in the symbol list
9005 include_expsyms=
9006 # exclude_expsyms can be an extended regexp of symbols to exclude
9007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9009 # as well as any symbol that contains `d'.
9010 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9012 # platforms (ab)use it in PIC code, but their linkers get confused if
9013 # the symbol is explicitly referenced. Since portable code cannot
9014 # rely on this symbol name, it's probably fine to never include it in
9015 # preloaded symbol tables.
9016 # Exclude shared library initialization/finalization symbols.
9017 extract_expsyms_cmds=
9018
9019 case $host_os in
9020 cygwin* | mingw* | pw32* | cegcc*)
9021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9022 # When not using gcc, we currently assume that we are using
9023 # Microsoft Visual C++.
9024 if test "$GCC" != yes; then
9025 with_gnu_ld=no
9026 fi
9027 ;;
9028 interix*)
9029 # we just hope/assume this is gcc and not c89 (= MSVC++)
9030 with_gnu_ld=yes
9031 ;;
9032 openbsd*)
9033 with_gnu_ld=no
9034 ;;
9035 esac
9036
9037 ld_shlibs=yes
9038
9039 # On some targets, GNU ld is compatible enough with the native linker
9040 # that we're better off using the native interface for both.
9041 lt_use_gnu_ld_interface=no
9042 if test "$with_gnu_ld" = yes; then
9043 case $host_os in
9044 aix*)
9045 # The AIX port of GNU ld has always aspired to compatibility
9046 # with the native linker. However, as the warning in the GNU ld
9047 # block says, versions before 2.19.5* couldn't really create working
9048 # shared libraries, regardless of the interface used.
9049 case `$LD -v 2>&1` in
9050 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9051 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9052 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9053 *)
9054 lt_use_gnu_ld_interface=yes
9055 ;;
9056 esac
9057 ;;
9058 *)
9059 lt_use_gnu_ld_interface=yes
9060 ;;
9061 esac
9062 fi
9063
9064 if test "$lt_use_gnu_ld_interface" = yes; then
9065 # If archive_cmds runs LD, not CC, wlarc should be empty
9066 wlarc='${wl}'
9067
9068 # Set some defaults for GNU ld with shared library support. These
9069 # are reset later if shared libraries are not supported. Putting them
9070 # here allows them to be overridden if necessary.
9071 runpath_var=LD_RUN_PATH
9072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9073 export_dynamic_flag_spec='${wl}--export-dynamic'
9074 # ancient GNU ld didn't support --whole-archive et. al.
9075 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9076 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9077 else
9078 whole_archive_flag_spec=
9079 fi
9080 supports_anon_versioning=no
9081 case `$LD -v 2>&1` in
9082 *GNU\ gold*) supports_anon_versioning=yes ;;
9083 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9084 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9085 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9086 *\ 2.11.*) ;; # other 2.11 versions
9087 *) supports_anon_versioning=yes ;;
9088 esac
9089
9090 # See if GNU ld supports shared libraries.
9091 case $host_os in
9092 aix[3-9]*)
9093 # On AIX/PPC, the GNU linker is very broken
9094 if test "$host_cpu" != ia64; then
9095 ld_shlibs=no
9096 cat <<_LT_EOF 1>&2
9097
9098*** Warning: the GNU linker, at least up to release 2.19, is reported
9099*** to be unable to reliably create shared libraries on AIX.
9100*** Therefore, libtool is disabling shared libraries support. If you
9101*** really care for shared libraries, you may want to install binutils
9102*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9103*** You will then need to restart the configuration process.
9104
9105_LT_EOF
9106 fi
9107 ;;
9108
9109 amigaos*)
9110 case $host_cpu in
9111 powerpc)
9112 # see comment about AmigaOS4 .so support
9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114 archive_expsym_cmds=''
9115 ;;
9116 m68k)
9117 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)'
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_minus_L=yes
9120 ;;
9121 esac
9122 ;;
9123
9124 beos*)
9125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9126 allow_undefined_flag=unsupported
9127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9128 # support --undefined. This deserves some investigation. FIXME
9129 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130 else
9131 ld_shlibs=no
9132 fi
9133 ;;
9134
9135 cygwin* | mingw* | pw32* | cegcc*)
9136 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9137 # as there is no search path for DLLs.
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 export_dynamic_flag_spec='${wl}--export-all-symbols'
9140 allow_undefined_flag=unsupported
9141 always_export_symbols=no
9142 enable_shared_with_static_runtimes=yes
9143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9144
9145 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9147 # If the export-symbols file already is a .def file (1st line
9148 # is EXPORTS), use it as is; otherwise, prepend...
9149 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9150 cp $export_symbols $output_objdir/$soname.def;
9151 else
9152 echo EXPORTS > $output_objdir/$soname.def;
9153 cat $export_symbols >> $output_objdir/$soname.def;
9154 fi~
9155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9156 else
9157 ld_shlibs=no
9158 fi
9159 ;;
9160
9161 haiku*)
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9163 link_all_deplibs=yes
9164 ;;
9165
9166 interix[3-9]*)
9167 hardcode_direct=no
9168 hardcode_shlibpath_var=no
9169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9170 export_dynamic_flag_spec='${wl}-E'
9171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9172 # Instead, shared libraries are loaded at an image base (0x10000000 by
9173 # default) and relocated if they conflict, which is a slow very memory
9174 # consuming and fragmenting process. To avoid this, we pick a random,
9175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9176 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9178 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'
9179 ;;
9180
9181 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9182 tmp_diet=no
9183 if test "$host_os" = linux-dietlibc; then
9184 case $cc_basename in
9185 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9186 esac
9187 fi
9188 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9189 && test "$tmp_diet" = no
9190 then
735aacba 9191 tmp_addflag=' $pic_flag'
5f520819
KY
9192 tmp_sharedflag='-shared'
9193 case $cc_basename,$host_cpu in
9194 pgcc*) # Portland Group C compiler
9195 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'
9196 tmp_addflag=' $pic_flag'
9197 ;;
9198 pgf77* | pgf90* | pgf95* | pgfortran*)
9199 # Portland Group f77 and f90 compilers
9200 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'
9201 tmp_addflag=' $pic_flag -Mnomain' ;;
9202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9203 tmp_addflag=' -i_dynamic' ;;
9204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9205 tmp_addflag=' -i_dynamic -nofor_main' ;;
9206 ifc* | ifort*) # Intel Fortran compiler
9207 tmp_addflag=' -nofor_main' ;;
9208 lf95*) # Lahey Fortran 8.1
9209 whole_archive_flag_spec=
9210 tmp_sharedflag='--shared' ;;
9211 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9212 tmp_sharedflag='-qmkshrobj'
9213 tmp_addflag= ;;
9214 nvcc*) # Cuda Compiler Driver 2.2
9215 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'
9216 compiler_needs_object=yes
9217 ;;
9218 esac
9219 case `$CC -V 2>&1 | sed 5q` in
9220 *Sun\ C*) # Sun C 5.9
9221 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'
9222 compiler_needs_object=yes
9223 tmp_sharedflag='-G' ;;
9224 *Sun\ F*) # Sun Fortran 8.3
9225 tmp_sharedflag='-G' ;;
9226 esac
9227 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228
9229 if test "x$supports_anon_versioning" = xyes; then
9230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232 echo "local: *; };" >> $output_objdir/$libname.ver~
9233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9234 fi
9235
9236 case $cc_basename in
9237 xlf* | bgf* | bgxlf* | mpixlf*)
9238 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9239 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9240 hardcode_libdir_flag_spec=
9241 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9242 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9243 if test "x$supports_anon_versioning" = xyes; then
9244 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9246 echo "local: *; };" >> $output_objdir/$libname.ver~
9247 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9248 fi
9249 ;;
9250 esac
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 netbsd*)
9257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9258 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9259 wlarc=
9260 else
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9263 fi
9264 ;;
9265
9266 solaris*)
9267 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9268 ld_shlibs=no
9269 cat <<_LT_EOF 1>&2
9270
9271*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9272*** create shared libraries on Solaris systems. Therefore, libtool
9273*** is disabling shared libraries support. We urge you to upgrade GNU
9274*** binutils to release 2.9.1 or newer. Another option is to modify
9275*** your PATH or compiler configuration so that the native linker is
9276*** used, and then restart.
9277
9278_LT_EOF
9279 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9282 else
9283 ld_shlibs=no
9284 fi
9285 ;;
9286
9287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9288 case `$LD -v 2>&1` in
9289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9290 ld_shlibs=no
9291 cat <<_LT_EOF 1>&2
9292
9293*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9294*** reliably create shared libraries on SCO systems. Therefore, libtool
9295*** is disabling shared libraries support. We urge you to upgrade GNU
9296*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9297*** your PATH or compiler configuration so that the native linker is
9298*** used, and then restart.
9299
9300_LT_EOF
9301 ;;
9302 *)
9303 # For security reasons, it is highly recommended that you always
9304 # use absolute paths for naming shared libraries, and exclude the
9305 # DT_RUNPATH tag from executables and libraries. But doing so
9306 # requires that you compile everything twice, which is a pain.
9307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
9315 esac
9316 ;;
9317
9318 sunos4*)
9319 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320 wlarc=
9321 hardcode_direct=yes
9322 hardcode_shlibpath_var=no
9323 ;;
9324
9325 *)
9326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9329 else
9330 ld_shlibs=no
9331 fi
9332 ;;
9333 esac
9334
9335 if test "$ld_shlibs" = no; then
9336 runpath_var=
9337 hardcode_libdir_flag_spec=
9338 export_dynamic_flag_spec=
9339 whole_archive_flag_spec=
9340 fi
9341 else
9342 # PORTME fill in a description of your system's linker (not GNU ld)
9343 case $host_os in
9344 aix3*)
9345 allow_undefined_flag=unsupported
9346 always_export_symbols=yes
9347 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'
9348 # Note: this linker hardcodes the directories in LIBPATH if there
9349 # are no directories specified by -L.
9350 hardcode_minus_L=yes
9351 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9352 # Neither direct hardcoding nor static linking is supported with a
9353 # broken collect2.
9354 hardcode_direct=unsupported
9355 fi
9356 ;;
9357
9358 aix[4-9]*)
9359 if test "$host_cpu" = ia64; then
9360 # On IA64, the linker does run time linking by default, so we don't
9361 # have to do anything special.
9362 aix_use_runtimelinking=no
9363 exp_sym_flag='-Bexport'
9364 no_entry_flag=""
9365 else
9366 # If we're using GNU nm, then we don't want the "-C" option.
9367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9368 # Also, AIX nm treats weak defined symbols like other global
9369 # defined symbols, whereas GNU nm marks them as "W".
9370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9371 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'
9372 else
84c1b9d3 9373 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'
5f520819
KY
9374 fi
9375 aix_use_runtimelinking=no
9376
9377 # Test if we are trying to use run time linking or normal
9378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9379 # need to do runtime linking.
9380 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9381 for ld_flag in $LDFLAGS; do
9382 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9383 aix_use_runtimelinking=yes
9384 break
9385 fi
9386 done
9387 ;;
9388 esac
9389
9390 exp_sym_flag='-bexport'
9391 no_entry_flag='-bnoentry'
9392 fi
9393
9394 # When large executables or shared objects are built, AIX ld can
9395 # have problems creating the table of contents. If linking a library
9396 # or program results in "error TOC overflow" add -mminimal-toc to
9397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9399
9400 archive_cmds=''
9401 hardcode_direct=yes
9402 hardcode_direct_absolute=yes
9403 hardcode_libdir_separator=':'
9404 link_all_deplibs=yes
9405 file_list_spec='${wl}-f,'
9406
9407 if test "$GCC" = yes; then
9408 case $host_os in aix4.[012]|aix4.[012].*)
9409 # We only want to do this on AIX 4.2 and lower, the check
9410 # below for broken collect2 doesn't work under 4.3+
9411 collect2name=`${CC} -print-prog-name=collect2`
9412 if test -f "$collect2name" &&
9413 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9414 then
9415 # We have reworked collect2
9416 :
9417 else
9418 # We have old collect2
9419 hardcode_direct=unsupported
9420 # It fails to find uninstalled libraries when the uninstalled
9421 # path is not listed in the libpath. Setting hardcode_minus_L
9422 # to unsupported forces relinking
9423 hardcode_minus_L=yes
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_libdir_separator=
9426 fi
9427 ;;
9428 esac
9429 shared_flag='-shared'
9430 if test "$aix_use_runtimelinking" = yes; then
9431 shared_flag="$shared_flag "'${wl}-G'
9432 fi
9433 else
9434 # not using gcc
9435 if test "$host_cpu" = ia64; then
9436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9437 # chokes on -Wl,-G. The following line is correct:
9438 shared_flag='-G'
9439 else
9440 if test "$aix_use_runtimelinking" = yes; then
9441 shared_flag='${wl}-G'
9442 else
9443 shared_flag='${wl}-bM:SRE'
9444 fi
9445 fi
9446 fi
9447
9448 export_dynamic_flag_spec='${wl}-bexpall'
9449 # It seems that -bexpall does not export symbols beginning with
9450 # underscore (_), so it is better to generate a list of symbols to export.
9451 always_export_symbols=yes
9452 if test "$aix_use_runtimelinking" = yes; then
9453 # Warning - without using the other runtime loading flags (-brtl),
9454 # -berok will link without error, but may produce a broken library.
9455 allow_undefined_flag='-berok'
9456 # Determine the default libpath from the value encoded in an
9457 # empty executable.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h. */
9460
9461int
9462main ()
9463{
9464
9465 ;
9466 return 0;
9467}
9468_ACEOF
9469if ac_fn_c_try_link "$LINENO"; then :
9470
9471lt_aix_libpath_sed='
9472 /Import File Strings/,/^$/ {
9473 /^0/ {
9474 s/^0 *\(.*\)$/\1/
9475 p
9476 }
9477 }'
9478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9479# Check for a 64-bit object if we didn't find anything.
9480if test -z "$aix_libpath"; then
9481 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482fi
9483fi
9484rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9487
9488 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9489 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"
9490 else
9491 if test "$host_cpu" = ia64; then
9492 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9493 allow_undefined_flag="-z nodefs"
9494 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"
9495 else
9496 # Determine the default libpath from the value encoded in an
9497 # empty executable.
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h. */
9500
9501int
9502main ()
9503{
9504
9505 ;
9506 return 0;
9507}
9508_ACEOF
9509if ac_fn_c_try_link "$LINENO"; then :
9510
9511lt_aix_libpath_sed='
9512 /Import File Strings/,/^$/ {
9513 /^0/ {
9514 s/^0 *\(.*\)$/\1/
9515 p
9516 }
9517 }'
9518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9519# Check for a 64-bit object if we didn't find anything.
9520if test -z "$aix_libpath"; then
9521 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522fi
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9527
9528 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9529 # Warning - without using the other run time loading flags,
9530 # -berok will link without error, but may produce a broken library.
9531 no_undefined_flag=' ${wl}-bernotok'
9532 allow_undefined_flag=' ${wl}-berok'
9533 if test "$with_gnu_ld" = yes; then
9534 # We only use this code for GNU lds that support --whole-archive.
9535 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9536 else
9537 # Exported symbols can be pulled into shared objects from archives
9538 whole_archive_flag_spec='$convenience'
9539 fi
9540 archive_cmds_need_lc=yes
9541 # This is similar to how AIX traditionally builds its shared libraries.
9542 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'
9543 fi
9544 fi
9545 ;;
9546
9547 amigaos*)
9548 case $host_cpu in
9549 powerpc)
9550 # see comment about AmigaOS4 .so support
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 archive_expsym_cmds=''
9553 ;;
9554 m68k)
9555 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)'
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_minus_L=yes
9558 ;;
9559 esac
9560 ;;
9561
9562 bsdi[45]*)
9563 export_dynamic_flag_spec=-rdynamic
9564 ;;
9565
9566 cygwin* | mingw* | pw32* | cegcc*)
9567 # When not using gcc, we currently assume that we are using
9568 # Microsoft Visual C++.
9569 # hardcode_libdir_flag_spec is actually meaningless, as there is
9570 # no search path for DLLs.
9571 hardcode_libdir_flag_spec=' '
9572 allow_undefined_flag=unsupported
9573 # Tell ltmain to make .lib files, not .a files.
9574 libext=lib
9575 # Tell ltmain to make .dll files, not .so files.
9576 shrext_cmds=".dll"
9577 # FIXME: Setting linknames here is a bad hack.
9578 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9579 # The linker will automatically build a .lib file if we build a DLL.
9580 old_archive_from_new_cmds='true'
9581 # FIXME: Should let the user specify the lib program.
9582 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9583 fix_srcfile_path='`cygpath -w "$srcfile"`'
9584 enable_shared_with_static_runtimes=yes
9585 ;;
9586
9587 darwin* | rhapsody*)
9588
9589
9590 archive_cmds_need_lc=no
9591 hardcode_direct=no
9592 hardcode_automatic=yes
9593 hardcode_shlibpath_var=unsupported
9594 if test "$lt_cv_ld_force_load" = "yes"; then
9595 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\"`'
9596 else
9597 whole_archive_flag_spec=''
9598 fi
9599 link_all_deplibs=yes
9600 allow_undefined_flag="$_lt_dar_allow_undefined"
9601 case $cc_basename in
9602 ifort*) _lt_dar_can_shared=yes ;;
9603 *) _lt_dar_can_shared=$GCC ;;
9604 esac
9605 if test "$_lt_dar_can_shared" = "yes"; then
9606 output_verbose_link_cmd=func_echo_all
9607 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9608 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9609 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}"
9610 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}"
9611
9612 else
9613 ld_shlibs=no
9614 fi
9615
9616 ;;
9617
9618 dgux*)
9619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='-L$libdir'
9621 hardcode_shlibpath_var=no
9622 ;;
9623
9624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9625 # support. Future versions do this automatically, but an explicit c++rt0.o
9626 # does not break anything, and helps significantly (at the cost of a little
9627 # extra space).
9628 freebsd2.2*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9633 ;;
9634
9635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9636 freebsd2.*)
9637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes
9639 hardcode_minus_L=yes
9640 hardcode_shlibpath_var=no
9641 ;;
9642
9643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9644 freebsd* | dragonfly*)
9645 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9649 ;;
9650
9651 hpux9*)
9652 if test "$GCC" = yes; then
9653 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'
9654 else
9655 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'
9656 fi
9657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9660
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9664 export_dynamic_flag_spec='${wl}-E'
9665 ;;
9666
9667 hpux10*)
9668 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9672 fi
9673 if test "$with_gnu_ld" = no; then
9674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9675 hardcode_libdir_flag_spec_ld='+b $libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_direct=yes
9678 hardcode_direct_absolute=yes
9679 export_dynamic_flag_spec='${wl}-E'
9680 # hardcode_minus_L: Not really in the search PATH,
9681 # but as the default location of the library.
9682 hardcode_minus_L=yes
9683 fi
9684 ;;
9685
9686 hpux11*)
9687 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9688 case $host_cpu in
9689 hppa*64*)
9690 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 ;;
9692 ia64*)
9693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9694 ;;
9695 *)
9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 esac
9699 else
9700 case $host_cpu in
9701 hppa*64*)
9702 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 ;;
9704 ia64*)
9705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 *)
9708
9709 # Older versions of the 11.00 compiler do not understand -b yet
9710 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9712$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9713if ${lt_cv_prog_compiler__b+:} false; then :
5f520819
KY
9714 $as_echo_n "(cached) " >&6
9715else
9716 lt_cv_prog_compiler__b=no
9717 save_LDFLAGS="$LDFLAGS"
9718 LDFLAGS="$LDFLAGS -b"
9719 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9721 # The linker can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 if test -s conftest.err; then
9724 # Append any errors to the config.log.
9725 cat conftest.err 1>&5
9726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728 if diff conftest.exp conftest.er2 >/dev/null; then
9729 lt_cv_prog_compiler__b=yes
9730 fi
9731 else
9732 lt_cv_prog_compiler__b=yes
9733 fi
9734 fi
9735 $RM -r conftest*
9736 LDFLAGS="$save_LDFLAGS"
9737
9738fi
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9740$as_echo "$lt_cv_prog_compiler__b" >&6; }
9741
9742if test x"$lt_cv_prog_compiler__b" = xyes; then
9743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744else
9745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9746fi
9747
9748 ;;
9749 esac
9750 fi
9751 if test "$with_gnu_ld" = no; then
9752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator=:
9754
9755 case $host_cpu in
9756 hppa*64*|ia64*)
9757 hardcode_direct=no
9758 hardcode_shlibpath_var=no
9759 ;;
9760 *)
9761 hardcode_direct=yes
9762 hardcode_direct_absolute=yes
9763 export_dynamic_flag_spec='${wl}-E'
9764
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9768 ;;
9769 esac
9770 fi
9771 ;;
9772
9773 irix5* | irix6* | nonstopux*)
9774 if test "$GCC" = yes; then
9775 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'
9776 # Try to use the -exported_symbol ld option, if it does not
9777 # work, assume that -exports_file does not work either and
9778 # implicitly export all symbols.
9779 save_LDFLAGS="$LDFLAGS"
9780 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783int foo(void) {}
9784_ACEOF
9785if ac_fn_c_try_link "$LINENO"; then :
9786 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'
9787
9788fi
9789rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LDFLAGS="$save_LDFLAGS"
9792 else
9793 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'
9794 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'
9795 fi
9796 archive_cmds_need_lc='no'
9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 hardcode_libdir_separator=:
9799 inherit_rpath=yes
9800 link_all_deplibs=yes
9801 ;;
9802
9803 netbsd*)
9804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9806 else
9807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9808 fi
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 ;;
9813
9814 newsos6)
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_direct=yes
9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_shlibpath_var=no
9820 ;;
9821
9822 *nto* | *qnx*)
9823 ;;
9824
9825 openbsd*)
9826 if test -f /usr/libexec/ld.so; then
9827 hardcode_direct=yes
9828 hardcode_shlibpath_var=no
9829 hardcode_direct_absolute=yes
9830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec='${wl}-E'
9835 else
9836 case $host_os in
9837 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 ;;
9841 *)
9842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9844 ;;
9845 esac
9846 fi
9847 else
9848 ld_shlibs=no
9849 fi
9850 ;;
9851
9852 os2*)
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_minus_L=yes
9855 allow_undefined_flag=unsupported
9856 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'
9857 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9858 ;;
9859
9860 osf3*)
9861 if test "$GCC" = yes; then
9862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9863 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'
9864 else
9865 allow_undefined_flag=' -expect_unresolved \*'
9866 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'
9867 fi
9868 archive_cmds_need_lc='no'
9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870 hardcode_libdir_separator=:
9871 ;;
9872
9873 osf4* | osf5*) # as osf3* with the addition of -msym flag
9874 if test "$GCC" = yes; then
9875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9876 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'
9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878 else
9879 allow_undefined_flag=' -expect_unresolved \*'
9880 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'
9881 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~
9882 $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'
9883
9884 # Both c and cxx compiler support -rpath directly
9885 hardcode_libdir_flag_spec='-rpath $libdir'
9886 fi
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_separator=:
9889 ;;
9890
9891 solaris*)
9892 no_undefined_flag=' -z defs'
9893 if test "$GCC" = yes; then
9894 wlarc='${wl}'
9895 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9898 else
9899 case `$CC -V 2>&1` in
9900 *"Compilers 5.0"*)
9901 wlarc=''
9902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9905 ;;
9906 *)
9907 wlarc='${wl}'
9908 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9910 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9911 ;;
9912 esac
9913 fi
9914 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9916 case $host_os in
9917 solaris2.[0-5] | solaris2.[0-5].*) ;;
9918 *)
9919 # The compiler driver will combine and reorder linker options,
9920 # but understands `-z linker_flag'. GCC discards it without `$wl',
9921 # but is careful enough not to reorder.
9922 # Supported since Solaris 2.6 (maybe 2.5.1?)
9923 if test "$GCC" = yes; then
9924 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9925 else
9926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9927 fi
9928 ;;
9929 esac
9930 link_all_deplibs=yes
9931 ;;
9932
9933 sunos4*)
9934 if test "x$host_vendor" = xsequent; then
9935 # Use $CC to link under sequent, because it throws in some extra .o
9936 # files that make .init and .fini sections work.
9937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 else
9939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9940 fi
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_direct=yes
9943 hardcode_minus_L=yes
9944 hardcode_shlibpath_var=no
9945 ;;
9946
9947 sysv4)
9948 case $host_vendor in
9949 sni)
9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 hardcode_direct=yes # is this really true???
9952 ;;
9953 siemens)
9954 ## LD is ld it makes a PLAMLIB
9955 ## CC just makes a GrossModule.
9956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9957 reload_cmds='$CC -r -o $output$reload_objs'
9958 hardcode_direct=no
9959 ;;
9960 motorola)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9963 ;;
9964 esac
9965 runpath_var='LD_RUN_PATH'
9966 hardcode_shlibpath_var=no
9967 ;;
9968
9969 sysv4.3*)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_shlibpath_var=no
9972 export_dynamic_flag_spec='-Bexport'
9973 ;;
9974
9975 sysv4*MP*)
9976 if test -d /usr/nec; then
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_shlibpath_var=no
9979 runpath_var=LD_RUN_PATH
9980 hardcode_runpath_var=yes
9981 ld_shlibs=yes
9982 fi
9983 ;;
9984
9985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9986 no_undefined_flag='${wl}-z,text'
9987 archive_cmds_need_lc=no
9988 hardcode_shlibpath_var=no
9989 runpath_var='LD_RUN_PATH'
9990
9991 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 fi
9998 ;;
9999
10000 sysv5* | sco3.2v5* | sco5v6*)
10001 # Note: We can NOT use -z defs as we might desire, because we do not
10002 # link with -lc, and that would cause any symbols used from libc to
10003 # always be unresolved, which means just about no library would
10004 # ever link correctly. If we're not using GNU ld we use -z text
10005 # though, which does catch some bad symbols but isn't as heavy-handed
10006 # as -z defs.
10007 no_undefined_flag='${wl}-z,text'
10008 allow_undefined_flag='${wl}-z,nodefs'
10009 archive_cmds_need_lc=no
10010 hardcode_shlibpath_var=no
10011 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10012 hardcode_libdir_separator=':'
10013 link_all_deplibs=yes
10014 export_dynamic_flag_spec='${wl}-Bexport'
10015 runpath_var='LD_RUN_PATH'
10016
10017 if test "$GCC" = yes; then
10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 fi
10024 ;;
10025
10026 uts4*)
10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 *)
10033 ld_shlibs=no
10034 ;;
10035 esac
10036
10037 if test x$host_vendor = xsni; then
10038 case $host in
10039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10040 export_dynamic_flag_spec='${wl}-Blargedynsym'
10041 ;;
10042 esac
10043 fi
10044 fi
10045
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10047$as_echo "$ld_shlibs" >&6; }
10048test "$ld_shlibs" = no && can_build_shared=no
10049
10050with_gnu_ld=$with_gnu_ld
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066#
10067# Do we need to explicitly link libc?
10068#
10069case "x$archive_cmds_need_lc" in
10070x|xyes)
10071 # Assume -lc should be added
10072 archive_cmds_need_lc=yes
10073
10074 if test "$enable_shared" = yes && test "$GCC" = yes; then
10075 case $archive_cmds in
10076 *'~'*)
10077 # FIXME: we may have to deal with multi-command sequences.
10078 ;;
10079 '$CC '*)
10080 # Test whether the compiler implicitly links with -lc since on some
10081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10082 # to ld, don't add -lc before -lgcc.
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10084$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10085if ${lt_cv_archive_cmds_need_lc+:} false; then :
5f520819
KY
10086 $as_echo_n "(cached) " >&6
10087else
10088 $RM conftest*
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10090
10091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10092 (eval $ac_compile) 2>&5
10093 ac_status=$?
10094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10095 test $ac_status = 0; } 2>conftest.err; then
10096 soname=conftest
10097 lib=conftest
10098 libobjs=conftest.$ac_objext
10099 deplibs=
10100 wl=$lt_prog_compiler_wl
10101 pic_flag=$lt_prog_compiler_pic
10102 compiler_flags=-v
10103 linker_flags=-v
10104 verstring=
10105 output_objdir=.
10106 libname=conftest
10107 lt_save_allow_undefined_flag=$allow_undefined_flag
10108 allow_undefined_flag=
10109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10111 ac_status=$?
10112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113 test $ac_status = 0; }
10114 then
10115 lt_cv_archive_cmds_need_lc=no
10116 else
10117 lt_cv_archive_cmds_need_lc=yes
10118 fi
10119 allow_undefined_flag=$lt_save_allow_undefined_flag
10120 else
10121 cat conftest.err 1>&5
10122 fi
10123 $RM conftest*
10124
10125fi
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10127$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10129 ;;
10130 esac
10131 fi
10132 ;;
10133esac
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10292$as_echo_n "checking dynamic linker characteristics... " >&6; }
10293
10294if test "$GCC" = yes; then
10295 case $host_os in
10296 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10297 *) lt_awk_arg="/^libraries:/" ;;
10298 esac
10299 case $host_os in
10300 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10301 *) lt_sed_strip_eq="s,=/,/,g" ;;
10302 esac
10303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10304 case $lt_search_path_spec in
10305 *\;*)
10306 # if the path contains ";" then we assume it to be the separator
10307 # otherwise default to the standard path separator (i.e. ":") - it is
10308 # assumed that no part of a normal pathname contains ";" but that should
10309 # okay in the real world where ";" in dirpaths is itself problematic.
10310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10311 ;;
10312 *)
10313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10314 ;;
10315 esac
10316 # Ok, now we have the path, separated by spaces, we can step through it
10317 # and add multilib dir if necessary.
10318 lt_tmp_lt_search_path_spec=
10319 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10320 for lt_sys_path in $lt_search_path_spec; do
10321 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10323 else
10324 test -d "$lt_sys_path" && \
10325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10326 fi
10327 done
10328 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10329BEGIN {RS=" "; FS="/|\n";} {
10330 lt_foo="";
10331 lt_count=0;
10332 for (lt_i = NF; lt_i > 0; lt_i--) {
10333 if ($lt_i != "" && $lt_i != ".") {
10334 if ($lt_i == "..") {
10335 lt_count++;
10336 } else {
10337 if (lt_count == 0) {
10338 lt_foo="/" $lt_i lt_foo;
10339 } else {
10340 lt_count--;
10341 }
10342 }
10343 }
10344 }
10345 if (lt_foo != "") { lt_freq[lt_foo]++; }
10346 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10347}'`
10348 # AWK program above erroneously prepends '/' to C:/dos/paths
10349 # for these hosts.
10350 case $host_os in
10351 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10352 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10353 esac
10354 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10355else
10356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10357fi
10358library_names_spec=
10359libname_spec='lib$name'
10360soname_spec=
10361shrext_cmds=".so"
10362postinstall_cmds=
10363postuninstall_cmds=
10364finish_cmds=
10365finish_eval=
10366shlibpath_var=
10367shlibpath_overrides_runpath=unknown
10368version_type=none
10369dynamic_linker="$host_os ld.so"
10370sys_lib_dlsearch_path_spec="/lib /usr/lib"
10371need_lib_prefix=unknown
10372hardcode_into_libs=no
10373
10374# when you set need_version to no, make sure it does not cause -set_version
10375# flags to be left without arguments
10376need_version=unknown
10377
10378case $host_os in
10379aix3*)
10380 version_type=linux
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10382 shlibpath_var=LIBPATH
10383
10384 # AIX 3 has no versioning support, so we append a major version to the name.
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 ;;
10387
10388aix[4-9]*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 hardcode_into_libs=yes
10393 if test "$host_cpu" = ia64; then
10394 # AIX 5 supports IA64
10395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 else
10398 # With GCC up to 2.95.x, collect2 would create an import file
10399 # for dependence libraries. The import file would start with
10400 # the line `#! .'. This would cause the generated library to
10401 # depend on `.', always an invalid library. This was fixed in
10402 # development snapshots of GCC prior to 3.0.
10403 case $host_os in
10404 aix4 | aix4.[01] | aix4.[01].*)
10405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10406 echo ' yes '
10407 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10408 :
10409 else
10410 can_build_shared=no
10411 fi
10412 ;;
10413 esac
10414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10415 # soname into executable. Probably we can add versioning support to
10416 # collect2, so additional links can be useful in future.
10417 if test "$aix_use_runtimelinking" = yes; then
10418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10419 # instead of lib<name>.a to let people know that these are not
10420 # typical AIX shared libraries.
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 else
10423 # We preserve .a as extension for shared libraries through AIX4.2
10424 # and later when we are not doing run time linking.
10425 library_names_spec='${libname}${release}.a $libname.a'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 fi
10428 shlibpath_var=LIBPATH
10429 fi
10430 ;;
10431
10432amigaos*)
10433 case $host_cpu in
10434 powerpc)
10435 # Since July 2007 AmigaOS4 officially supports .so libraries.
10436 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 ;;
10439 m68k)
10440 library_names_spec='$libname.ixlibrary $libname.a'
10441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10442 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'
10443 ;;
10444 esac
10445 ;;
10446
10447beos*)
10448 library_names_spec='${libname}${shared_ext}'
10449 dynamic_linker="$host_os ld.so"
10450 shlibpath_var=LIBRARY_PATH
10451 ;;
10452
10453bsdi[45]*)
10454 version_type=linux
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10462 # the default ld.so.conf also contains /usr/contrib/lib and
10463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10464 # libtool to hard-code these into programs
10465 ;;
10466
10467cygwin* | mingw* | pw32* | cegcc*)
10468 version_type=windows
10469 shrext_cmds=".dll"
10470 need_version=no
10471 need_lib_prefix=no
10472
10473 case $GCC,$host_os in
10474 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10475 library_names_spec='$libname.dll.a'
10476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10477 postinstall_cmds='base_file=`basename \${file}`~
10478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10479 dldir=$destdir/`dirname \$dlpath`~
10480 test -d \$dldir || mkdir -p \$dldir~
10481 $install_prog $dir/$dlname \$dldir/$dlname~
10482 chmod a+x \$dldir/$dlname~
10483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10485 fi'
10486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10487 dlpath=$dir/\$dldll~
10488 $RM \$dlpath'
10489 shlibpath_overrides_runpath=yes
10490
10491 case $host_os in
10492 cygwin*)
10493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10495
10496 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10497 ;;
10498 mingw* | cegcc*)
10499 # MinGW DLLs use traditional 'lib' prefix
10500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10501 ;;
10502 pw32*)
10503 # pw32 DLLs use 'pw' prefix rather than 'lib'
10504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10505 ;;
10506 esac
10507 ;;
10508
10509 *)
10510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10511 ;;
10512 esac
10513 dynamic_linker='Win32 ld.exe'
10514 # FIXME: first we should search . and the directory the executable is in
10515 shlibpath_var=PATH
10516 ;;
10517
10518darwin* | rhapsody*)
10519 dynamic_linker="$host_os dyld"
10520 version_type=darwin
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10524 soname_spec='${libname}${release}${major}$shared_ext'
10525 shlibpath_overrides_runpath=yes
10526 shlibpath_var=DYLD_LIBRARY_PATH
10527 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10528
10529 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10531 ;;
10532
10533dgux*)
10534 version_type=linux
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 ;;
10541
10542freebsd* | dragonfly*)
10543 # DragonFly does not have aout. When/if they implement a new
10544 # versioning mechanism, adjust this.
10545 if test -x /usr/bin/objformat; then
10546 objformat=`/usr/bin/objformat`
10547 else
10548 case $host_os in
10549 freebsd[23].*) objformat=aout ;;
10550 *) objformat=elf ;;
10551 esac
10552 fi
10553 version_type=freebsd-$objformat
10554 case $version_type in
10555 freebsd-elf*)
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10557 need_version=no
10558 need_lib_prefix=no
10559 ;;
10560 freebsd-*)
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10562 need_version=yes
10563 ;;
10564 esac
10565 shlibpath_var=LD_LIBRARY_PATH
10566 case $host_os in
10567 freebsd2.*)
10568 shlibpath_overrides_runpath=yes
10569 ;;
10570 freebsd3.[01]* | freebsdelf3.[01]*)
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10573 ;;
10574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10576 shlibpath_overrides_runpath=no
10577 hardcode_into_libs=yes
10578 ;;
10579 *) # from 4.6 on, and DragonFly
10580 shlibpath_overrides_runpath=yes
10581 hardcode_into_libs=yes
10582 ;;
10583 esac
10584 ;;
10585
10586gnu*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 hardcode_into_libs=yes
10594 ;;
10595
10596haiku*)
10597 version_type=linux
10598 need_lib_prefix=no
10599 need_version=no
10600 dynamic_linker="$host_os runtime_loader"
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10606 hardcode_into_libs=yes
10607 ;;
10608
10609hpux9* | hpux10* | hpux11*)
10610 # Give a soname corresponding to the major version so that dld.sl refuses to
10611 # link against other versions.
10612 version_type=sunos
10613 need_lib_prefix=no
10614 need_version=no
10615 case $host_cpu in
10616 ia64*)
10617 shrext_cmds='.so'
10618 hardcode_into_libs=yes
10619 dynamic_linker="$host_os dld.so"
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 if test "X$HPUX_IA64_MODE" = X32; then
10625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10626 else
10627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10628 fi
10629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10630 ;;
10631 hppa*64*)
10632 shrext_cmds='.sl'
10633 hardcode_into_libs=yes
10634 dynamic_linker="$host_os dld.sl"
10635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10641 ;;
10642 *)
10643 shrext_cmds='.sl'
10644 dynamic_linker="$host_os dld.sl"
10645 shlibpath_var=SHLIB_PATH
10646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 ;;
10650 esac
10651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10652 postinstall_cmds='chmod 555 $lib'
10653 # or fails outright, so override atomically:
10654 install_override_mode=555
10655 ;;
10656
10657interix[3-9]*)
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10667 ;;
10668
10669irix5* | irix6* | nonstopux*)
10670 case $host_os in
10671 nonstopux*) version_type=nonstopux ;;
10672 *)
10673 if test "$lt_cv_prog_gnu_ld" = yes; then
10674 version_type=linux
10675 else
10676 version_type=irix
10677 fi ;;
10678 esac
10679 need_lib_prefix=no
10680 need_version=no
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10683 case $host_os in
10684 irix5* | nonstopux*)
10685 libsuff= shlibsuff=
10686 ;;
10687 *)
10688 case $LD in # libtool.m4 will add one of these switches to LD
10689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10690 libsuff= shlibsuff= libmagic=32-bit;;
10691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10692 libsuff=32 shlibsuff=N32 libmagic=N32;;
10693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10695 *) libsuff= shlibsuff= libmagic=never-match;;
10696 esac
10697 ;;
10698 esac
10699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10700 shlibpath_overrides_runpath=no
10701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10703 hardcode_into_libs=yes
10704 ;;
10705
10706# No shared lib support for Linux oldld, aout, or coff.
10707linux*oldld* | linux*aout* | linux*coff*)
10708 dynamic_linker=no
10709 ;;
10710
10711# This must be Linux ELF.
10712linux* | k*bsd*-gnu | kopensolaris*-gnu)
10713 version_type=linux
10714 need_lib_prefix=no
10715 need_version=no
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=no
10721
10722 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5f520819
KY
10724 $as_echo_n "(cached) " >&6
10725else
10726 lt_cv_shlibpath_overrides_runpath=no
10727 save_LDFLAGS=$LDFLAGS
10728 save_libdir=$libdir
10729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h. */
10733
10734int
10735main ()
10736{
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_link "$LINENO"; then :
10743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10744 lt_cv_shlibpath_overrides_runpath=yes
10745fi
10746fi
10747rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LDFLAGS=$save_LDFLAGS
10750 libdir=$save_libdir
10751
10752fi
10753
10754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10755
10756 # This implies no fast_install, which is unacceptable.
10757 # Some rework will be needed to allow for fast_install
10758 # before this can be enabled.
10759 hardcode_into_libs=yes
10760
10761 # Append ld.so.conf contents to the search path
10762 if test -f /etc/ld.so.conf; then
10763 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' ' '`
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10765 fi
10766
10767 # We used to test for /lib/ld.so.1 and disable shared libraries on
10768 # powerpc, because MkLinux only supported shared libraries with the
10769 # GNU dynamic linker. Since this was broken with cross compilers,
10770 # most powerpc-linux boxes support dynamic linking these days and
10771 # people can always --disable-shared, the test was removed, and we
10772 # assume the GNU/Linux dynamic linker is in use.
10773 dynamic_linker='GNU/Linux ld.so'
10774 ;;
10775
10776netbsd*)
10777 version_type=sunos
10778 need_lib_prefix=no
10779 need_version=no
10780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10783 dynamic_linker='NetBSD (a.out) ld.so'
10784 else
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 dynamic_linker='NetBSD ld.elf_so'
10788 fi
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=yes
10791 hardcode_into_libs=yes
10792 ;;
10793
10794newsos6)
10795 version_type=linux
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=yes
10799 ;;
10800
10801*nto* | *qnx*)
10802 version_type=qnx
10803 need_lib_prefix=no
10804 need_version=no
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 dynamic_linker='ldqnx.so'
10811 ;;
10812
10813openbsd*)
10814 version_type=sunos
10815 sys_lib_dlsearch_path_spec="/usr/lib"
10816 need_lib_prefix=no
10817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10818 case $host_os in
10819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10820 *) need_version=no ;;
10821 esac
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10826 case $host_os in
10827 openbsd2.[89] | openbsd2.[89].*)
10828 shlibpath_overrides_runpath=no
10829 ;;
10830 *)
10831 shlibpath_overrides_runpath=yes
10832 ;;
10833 esac
10834 else
10835 shlibpath_overrides_runpath=yes
10836 fi
10837 ;;
10838
10839os2*)
10840 libname_spec='$name'
10841 shrext_cmds=".dll"
10842 need_lib_prefix=no
10843 library_names_spec='$libname${shared_ext} $libname.a'
10844 dynamic_linker='OS/2 ld.exe'
10845 shlibpath_var=LIBPATH
10846 ;;
10847
10848osf3* | osf4* | osf5*)
10849 version_type=osf
10850 need_lib_prefix=no
10851 need_version=no
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10857 ;;
10858
10859rdos*)
10860 dynamic_linker=no
10861 ;;
10862
10863solaris*)
10864 version_type=linux
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 hardcode_into_libs=yes
10872 # ldd complains unless libraries are executable
10873 postinstall_cmds='chmod +x $lib'
10874 ;;
10875
10876sunos4*)
10877 version_type=sunos
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath=yes
10882 if test "$with_gnu_ld" = yes; then
10883 need_lib_prefix=no
10884 fi
10885 need_version=yes
10886 ;;
10887
10888sysv4 | sysv4.3*)
10889 version_type=linux
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 case $host_vendor in
10894 sni)
10895 shlibpath_overrides_runpath=no
10896 need_lib_prefix=no
10897 runpath_var=LD_RUN_PATH
10898 ;;
10899 siemens)
10900 need_lib_prefix=no
10901 ;;
10902 motorola)
10903 need_lib_prefix=no
10904 need_version=no
10905 shlibpath_overrides_runpath=no
10906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10907 ;;
10908 esac
10909 ;;
10910
10911sysv4*MP*)
10912 if test -d /usr/nec ;then
10913 version_type=linux
10914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10915 soname_spec='$libname${shared_ext}.$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 fi
10918 ;;
10919
10920sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10921 version_type=freebsd-elf
10922 need_lib_prefix=no
10923 need_version=no
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 hardcode_into_libs=yes
10929 if test "$with_gnu_ld" = yes; then
10930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10931 else
10932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10933 case $host_os in
10934 sco3.2v5*)
10935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10936 ;;
10937 esac
10938 fi
10939 sys_lib_dlsearch_path_spec='/usr/lib'
10940 ;;
10941
10942tpf*)
10943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10951 ;;
10952
10953uts4*)
10954 version_type=linux
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 ;;
10959
10960*)
10961 dynamic_linker=no
10962 ;;
10963esac
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10965$as_echo "$dynamic_linker" >&6; }
10966test "$dynamic_linker" = no && can_build_shared=no
10967
10968variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10969if test "$GCC" = yes; then
10970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10971fi
10972
10973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10975fi
10976if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10978fi
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11072$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11073hardcode_action=
11074if test -n "$hardcode_libdir_flag_spec" ||
11075 test -n "$runpath_var" ||
11076 test "X$hardcode_automatic" = "Xyes" ; then
11077
11078 # We can hardcode non-existent directories.
11079 if test "$hardcode_direct" != no &&
11080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11081 # have to relink, otherwise we might link with an installed library
11082 # when we should be linking with a yet-to-be-installed one
11083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11084 test "$hardcode_minus_L" != no; then
11085 # Linking always hardcodes the temporary library directory.
11086 hardcode_action=relink
11087 else
11088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11089 hardcode_action=immediate
11090 fi
11091else
11092 # We cannot hardcode anything, or else we can only hardcode existing
11093 # directories.
11094 hardcode_action=unsupported
11095fi
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11097$as_echo "$hardcode_action" >&6; }
11098
11099if test "$hardcode_action" = relink ||
11100 test "$inherit_rpath" = yes; then
11101 # Fast installation is not supported
11102 enable_fast_install=no
11103elif test "$shlibpath_overrides_runpath" = yes ||
11104 test "$enable_shared" = no; then
11105 # Fast installation is not necessary
11106 enable_fast_install=needless
11107fi
11108
11109
11110
11111
11112
11113
11114 if test "x$enable_dlopen" != xyes; then
11115 enable_dlopen=unknown
11116 enable_dlopen_self=unknown
11117 enable_dlopen_self_static=unknown
11118else
11119 lt_cv_dlopen=no
11120 lt_cv_dlopen_libs=
11121
11122 case $host_os in
11123 beos*)
11124 lt_cv_dlopen="load_add_on"
11125 lt_cv_dlopen_libs=
11126 lt_cv_dlopen_self=yes
11127 ;;
11128
11129 mingw* | pw32* | cegcc*)
11130 lt_cv_dlopen="LoadLibrary"
11131 lt_cv_dlopen_libs=
11132 ;;
11133
11134 cygwin*)
11135 lt_cv_dlopen="dlopen"
11136 lt_cv_dlopen_libs=
11137 ;;
11138
11139 darwin*)
11140 # if libdl is installed we need to link against it
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11142$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11143if ${ac_cv_lib_dl_dlopen+:} false; then :
5f520819
KY
11144 $as_echo_n "(cached) " >&6
11145else
11146 ac_check_lib_save_LIBS=$LIBS
11147LIBS="-ldl $LIBS"
11148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h. */
11150
11151/* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154#ifdef __cplusplus
11155extern "C"
11156#endif
11157char dlopen ();
11158int
11159main ()
11160{
11161return dlopen ();
11162 ;
11163 return 0;
11164}
11165_ACEOF
11166if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_dl_dlopen=yes
11168else
11169 ac_cv_lib_dl_dlopen=no
11170fi
11171rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173LIBS=$ac_check_lib_save_LIBS
11174fi
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11176$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11177if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5f520819
KY
11178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11179else
11180
11181 lt_cv_dlopen="dyld"
11182 lt_cv_dlopen_libs=
11183 lt_cv_dlopen_self=yes
11184
11185fi
11186
11187 ;;
11188
11189 *)
11190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11191if test "x$ac_cv_func_shl_load" = xyes; then :
5f520819
KY
11192 lt_cv_dlopen="shl_load"
11193else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11195$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11196if ${ac_cv_lib_dld_shl_load+:} false; then :
5f520819
KY
11197 $as_echo_n "(cached) " >&6
11198else
11199 ac_check_lib_save_LIBS=$LIBS
11200LIBS="-ldld $LIBS"
11201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202/* end confdefs.h. */
11203
11204/* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207#ifdef __cplusplus
11208extern "C"
11209#endif
11210char shl_load ();
11211int
11212main ()
11213{
11214return shl_load ();
11215 ;
11216 return 0;
11217}
11218_ACEOF
11219if ac_fn_c_try_link "$LINENO"; then :
11220 ac_cv_lib_dld_shl_load=yes
11221else
11222 ac_cv_lib_dld_shl_load=no
11223fi
11224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226LIBS=$ac_check_lib_save_LIBS
11227fi
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11229$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11230if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
5f520819
KY
11231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11232else
11233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11234if test "x$ac_cv_func_dlopen" = xyes; then :
5f520819
KY
11235 lt_cv_dlopen="dlopen"
11236else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11238$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11239if ${ac_cv_lib_dl_dlopen+:} false; then :
5f520819
KY
11240 $as_echo_n "(cached) " >&6
11241else
11242 ac_check_lib_save_LIBS=$LIBS
11243LIBS="-ldl $LIBS"
11244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245/* end confdefs.h. */
11246
11247/* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250#ifdef __cplusplus
11251extern "C"
11252#endif
11253char dlopen ();
11254int
11255main ()
11256{
11257return dlopen ();
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_lib_dl_dlopen=yes
11264else
11265 ac_cv_lib_dl_dlopen=no
11266fi
11267rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269LIBS=$ac_check_lib_save_LIBS
11270fi
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11272$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11273if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5f520819
KY
11274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11275else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11277$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11278if ${ac_cv_lib_svld_dlopen+:} false; then :
5f520819
KY
11279 $as_echo_n "(cached) " >&6
11280else
11281 ac_check_lib_save_LIBS=$LIBS
11282LIBS="-lsvld $LIBS"
11283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h. */
11285
11286/* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289#ifdef __cplusplus
11290extern "C"
11291#endif
11292char dlopen ();
11293int
11294main ()
11295{
11296return dlopen ();
11297 ;
11298 return 0;
11299}
11300_ACEOF
11301if ac_fn_c_try_link "$LINENO"; then :
11302 ac_cv_lib_svld_dlopen=yes
11303else
11304 ac_cv_lib_svld_dlopen=no
11305fi
11306rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308LIBS=$ac_check_lib_save_LIBS
11309fi
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11311$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11312if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
5f520819
KY
11313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11314else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11316$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11317if ${ac_cv_lib_dld_dld_link+:} false; then :
5f520819
KY
11318 $as_echo_n "(cached) " >&6
11319else
11320 ac_check_lib_save_LIBS=$LIBS
11321LIBS="-ldld $LIBS"
11322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323/* end confdefs.h. */
11324
11325/* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328#ifdef __cplusplus
11329extern "C"
11330#endif
11331char dld_link ();
11332int
11333main ()
11334{
11335return dld_link ();
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_dld_dld_link=yes
11342else
11343 ac_cv_lib_dld_dld_link=no
11344fi
11345rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347LIBS=$ac_check_lib_save_LIBS
11348fi
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11350$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11351if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
5f520819
KY
11352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11353fi
11354
11355
11356fi
11357
11358
11359fi
11360
11361
11362fi
11363
11364
11365fi
11366
11367
11368fi
11369
11370 ;;
11371 esac
11372
11373 if test "x$lt_cv_dlopen" != xno; then
11374 enable_dlopen=yes
11375 else
11376 enable_dlopen=no
11377 fi
11378
11379 case $lt_cv_dlopen in
11380 dlopen)
11381 save_CPPFLAGS="$CPPFLAGS"
11382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11383
11384 save_LDFLAGS="$LDFLAGS"
11385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11386
11387 save_LIBS="$LIBS"
11388 LIBS="$lt_cv_dlopen_libs $LIBS"
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11391$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11392if ${lt_cv_dlopen_self+:} false; then :
5f520819
KY
11393 $as_echo_n "(cached) " >&6
11394else
11395 if test "$cross_compiling" = yes; then :
11396 lt_cv_dlopen_self=cross
11397else
11398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11399 lt_status=$lt_dlunknown
11400 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11401#line 11401 "configure"
5f520819
KY
11402#include "confdefs.h"
11403
11404#if HAVE_DLFCN_H
11405#include <dlfcn.h>
11406#endif
11407
11408#include <stdio.h>
11409
11410#ifdef RTLD_GLOBAL
11411# define LT_DLGLOBAL RTLD_GLOBAL
11412#else
11413# ifdef DL_GLOBAL
11414# define LT_DLGLOBAL DL_GLOBAL
11415# else
11416# define LT_DLGLOBAL 0
11417# endif
11418#endif
11419
11420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11421 find out it does not work in some platform. */
11422#ifndef LT_DLLAZY_OR_NOW
11423# ifdef RTLD_LAZY
11424# define LT_DLLAZY_OR_NOW RTLD_LAZY
11425# else
11426# ifdef DL_LAZY
11427# define LT_DLLAZY_OR_NOW DL_LAZY
11428# else
11429# ifdef RTLD_NOW
11430# define LT_DLLAZY_OR_NOW RTLD_NOW
11431# else
11432# ifdef DL_NOW
11433# define LT_DLLAZY_OR_NOW DL_NOW
11434# else
11435# define LT_DLLAZY_OR_NOW 0
11436# endif
11437# endif
11438# endif
11439# endif
11440#endif
11441
11442/* When -fvisbility=hidden is used, assume the code has been annotated
11443 correspondingly for the symbols needed. */
11444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11445void fnord () __attribute__((visibility("default")));
11446#endif
11447
11448void fnord () { int i=42; }
11449int main ()
11450{
11451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11452 int status = $lt_dlunknown;
11453
11454 if (self)
11455 {
11456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11457 else
11458 {
11459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11460 else puts (dlerror ());
11461 }
11462 /* dlclose (self); */
11463 }
11464 else
11465 puts (dlerror ());
11466
11467 return status;
11468}
11469_LT_EOF
11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11471 (eval $ac_link) 2>&5
11472 ac_status=$?
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11475 (./conftest; exit; ) >&5 2>/dev/null
11476 lt_status=$?
11477 case x$lt_status in
11478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11481 esac
11482 else :
11483 # compilation failed
11484 lt_cv_dlopen_self=no
11485 fi
11486fi
11487rm -fr conftest*
11488
11489
11490fi
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11492$as_echo "$lt_cv_dlopen_self" >&6; }
11493
11494 if test "x$lt_cv_dlopen_self" = xyes; then
11495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11497$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11498if ${lt_cv_dlopen_self_static+:} false; then :
5f520819
KY
11499 $as_echo_n "(cached) " >&6
11500else
11501 if test "$cross_compiling" = yes; then :
11502 lt_cv_dlopen_self_static=cross
11503else
11504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11505 lt_status=$lt_dlunknown
11506 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11507#line 11507 "configure"
5f520819
KY
11508#include "confdefs.h"
11509
11510#if HAVE_DLFCN_H
11511#include <dlfcn.h>
11512#endif
11513
11514#include <stdio.h>
11515
11516#ifdef RTLD_GLOBAL
11517# define LT_DLGLOBAL RTLD_GLOBAL
11518#else
11519# ifdef DL_GLOBAL
11520# define LT_DLGLOBAL DL_GLOBAL
11521# else
11522# define LT_DLGLOBAL 0
11523# endif
11524#endif
11525
11526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11527 find out it does not work in some platform. */
11528#ifndef LT_DLLAZY_OR_NOW
11529# ifdef RTLD_LAZY
11530# define LT_DLLAZY_OR_NOW RTLD_LAZY
11531# else
11532# ifdef DL_LAZY
11533# define LT_DLLAZY_OR_NOW DL_LAZY
11534# else
11535# ifdef RTLD_NOW
11536# define LT_DLLAZY_OR_NOW RTLD_NOW
11537# else
11538# ifdef DL_NOW
11539# define LT_DLLAZY_OR_NOW DL_NOW
11540# else
11541# define LT_DLLAZY_OR_NOW 0
11542# endif
11543# endif
11544# endif
11545# endif
11546#endif
11547
11548/* When -fvisbility=hidden is used, assume the code has been annotated
11549 correspondingly for the symbols needed. */
11550#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11551void fnord () __attribute__((visibility("default")));
11552#endif
11553
11554void fnord () { int i=42; }
11555int main ()
11556{
11557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11558 int status = $lt_dlunknown;
11559
11560 if (self)
11561 {
11562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11563 else
11564 {
11565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11566 else puts (dlerror ());
11567 }
11568 /* dlclose (self); */
11569 }
11570 else
11571 puts (dlerror ());
11572
11573 return status;
11574}
11575_LT_EOF
11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11577 (eval $ac_link) 2>&5
11578 ac_status=$?
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11581 (./conftest; exit; ) >&5 2>/dev/null
11582 lt_status=$?
11583 case x$lt_status in
11584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11587 esac
11588 else :
11589 # compilation failed
11590 lt_cv_dlopen_self_static=no
11591 fi
11592fi
11593rm -fr conftest*
11594
11595
11596fi
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11598$as_echo "$lt_cv_dlopen_self_static" >&6; }
11599 fi
11600
11601 CPPFLAGS="$save_CPPFLAGS"
11602 LDFLAGS="$save_LDFLAGS"
11603 LIBS="$save_LIBS"
11604 ;;
11605 esac
11606
11607 case $lt_cv_dlopen_self in
11608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11609 *) enable_dlopen_self=unknown ;;
11610 esac
11611
11612 case $lt_cv_dlopen_self_static in
11613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11614 *) enable_dlopen_self_static=unknown ;;
11615 esac
11616fi
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634striplib=
11635old_striplib=
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11637$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11638if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642$as_echo "yes" >&6; }
11643else
11644# FIXME - insert some real tests, host_os isn't really good enough
11645 case $host_os in
11646 darwin*)
11647 if test -n "$STRIP" ; then
11648 striplib="$STRIP -x"
11649 old_striplib="$STRIP -S"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651$as_echo "yes" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655 fi
11656 ;;
11657 *)
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
11660 ;;
11661 esac
11662fi
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675 # Report which library types will actually be built
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11677$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11679$as_echo "$can_build_shared" >&6; }
11680
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11682$as_echo_n "checking whether to build shared libraries... " >&6; }
11683 test "$can_build_shared" = "no" && enable_shared=no
11684
11685 # On AIX, shared libraries and static libraries use the same namespace, and
11686 # are all built from PIC.
11687 case $host_os in
11688 aix3*)
11689 test "$enable_shared" = yes && enable_static=no
11690 if test -n "$RANLIB"; then
11691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11692 postinstall_cmds='$RANLIB $lib'
11693 fi
11694 ;;
11695
11696 aix[4-9]*)
11697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11698 test "$enable_shared" = yes && enable_static=no
11699 fi
11700 ;;
11701 esac
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11703$as_echo "$enable_shared" >&6; }
11704
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11706$as_echo_n "checking whether to build static libraries... " >&6; }
11707 # Make sure either enable_shared or enable_static is yes.
11708 test "$enable_shared" = yes || enable_static=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11710$as_echo "$enable_static" >&6; }
11711
11712
11713
11714
11715fi
11716ac_ext=c
11717ac_cpp='$CPP $CPPFLAGS'
11718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11720ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721
11722CC="$lt_save_CC"
11723
11724 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11726 (test "X$CXX" != "Xg++"))) ; then
11727 ac_ext=cpp
11728ac_cpp='$CXXCPP $CPPFLAGS'
11729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11733$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11734if test -z "$CXXCPP"; then
22e05272 11735 if ${ac_cv_prog_CXXCPP+:} false; then :
5f520819
KY
11736 $as_echo_n "(cached) " >&6
11737else
11738 # Double quotes because CXXCPP needs to be expanded
11739 for CXXCPP in "$CXX -E" "/lib/cpp"
11740 do
11741 ac_preproc_ok=false
11742for ac_cxx_preproc_warn_flag in '' yes
11743do
11744 # Use a header file that comes with gcc, so configuring glibc
11745 # with a fresh cross-compiler works.
11746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 # <limits.h> exists even on freestanding compilers.
11748 # On the NeXT, cc -E runs the code through the compiler's parser,
11749 # not just through cpp. "Syntax error" is here to catch this case.
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751/* end confdefs.h. */
11752#ifdef __STDC__
11753# include <limits.h>
11754#else
11755# include <assert.h>
11756#endif
11757 Syntax error
11758_ACEOF
11759if ac_fn_cxx_try_cpp "$LINENO"; then :
11760
11761else
11762 # Broken: fails on valid input.
11763continue
11764fi
22e05272 11765rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11766
11767 # OK, works on sane cases. Now check whether nonexistent headers
11768 # can be detected and how.
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770/* end confdefs.h. */
11771#include <ac_nonexistent.h>
11772_ACEOF
11773if ac_fn_cxx_try_cpp "$LINENO"; then :
11774 # Broken: success on invalid input.
11775continue
11776else
11777 # Passes both tests.
11778ac_preproc_ok=:
11779break
11780fi
22e05272 11781rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11782
11783done
11784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11785rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
11786if $ac_preproc_ok; then :
11787 break
11788fi
11789
11790 done
11791 ac_cv_prog_CXXCPP=$CXXCPP
11792
11793fi
11794 CXXCPP=$ac_cv_prog_CXXCPP
11795else
11796 ac_cv_prog_CXXCPP=$CXXCPP
11797fi
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11799$as_echo "$CXXCPP" >&6; }
11800ac_preproc_ok=false
11801for ac_cxx_preproc_warn_flag in '' yes
11802do
11803 # Use a header file that comes with gcc, so configuring glibc
11804 # with a fresh cross-compiler works.
11805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 # <limits.h> exists even on freestanding compilers.
11807 # On the NeXT, cc -E runs the code through the compiler's parser,
11808 # not just through cpp. "Syntax error" is here to catch this case.
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h. */
11811#ifdef __STDC__
11812# include <limits.h>
11813#else
11814# include <assert.h>
11815#endif
11816 Syntax error
11817_ACEOF
11818if ac_fn_cxx_try_cpp "$LINENO"; then :
11819
11820else
11821 # Broken: fails on valid input.
11822continue
11823fi
22e05272 11824rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11825
11826 # OK, works on sane cases. Now check whether nonexistent headers
11827 # can be detected and how.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829/* end confdefs.h. */
11830#include <ac_nonexistent.h>
11831_ACEOF
11832if ac_fn_cxx_try_cpp "$LINENO"; then :
11833 # Broken: success on invalid input.
11834continue
11835else
11836 # Passes both tests.
11837ac_preproc_ok=:
11838break
11839fi
22e05272 11840rm -f conftest.err conftest.i conftest.$ac_ext
5f520819
KY
11841
11842done
11843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 11844rm -f conftest.i conftest.err conftest.$ac_ext
5f520819
KY
11845if $ac_preproc_ok; then :
11846
11847else
11848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
11850as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11851See \`config.log' for more details" "$LINENO" 5; }
5f520819
KY
11852fi
11853
11854ac_ext=c
11855ac_cpp='$CPP $CPPFLAGS'
11856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858ac_compiler_gnu=$ac_cv_c_compiler_gnu
11859
11860else
11861 _lt_caught_CXX_error=yes
11862fi
11863
11864ac_ext=cpp
11865ac_cpp='$CXXCPP $CPPFLAGS'
11866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11869
11870archive_cmds_need_lc_CXX=no
11871allow_undefined_flag_CXX=
11872always_export_symbols_CXX=no
11873archive_expsym_cmds_CXX=
11874compiler_needs_object_CXX=no
11875export_dynamic_flag_spec_CXX=
11876hardcode_direct_CXX=no
11877hardcode_direct_absolute_CXX=no
11878hardcode_libdir_flag_spec_CXX=
11879hardcode_libdir_flag_spec_ld_CXX=
11880hardcode_libdir_separator_CXX=
11881hardcode_minus_L_CXX=no
11882hardcode_shlibpath_var_CXX=unsupported
11883hardcode_automatic_CXX=no
11884inherit_rpath_CXX=no
11885module_cmds_CXX=
11886module_expsym_cmds_CXX=
11887link_all_deplibs_CXX=unknown
11888old_archive_cmds_CXX=$old_archive_cmds
11889reload_flag_CXX=$reload_flag
11890reload_cmds_CXX=$reload_cmds
11891no_undefined_flag_CXX=
11892whole_archive_flag_spec_CXX=
11893enable_shared_with_static_runtimes_CXX=no
11894
11895# Source file extension for C++ test sources.
11896ac_ext=cpp
11897
11898# Object file extension for compiled C++ test sources.
11899objext=o
11900objext_CXX=$objext
11901
11902# No sense in running all these tests if we already determined that
11903# the CXX compiler isn't working. Some variables (like enable_shared)
11904# are currently assumed to apply to all compilers on this platform,
11905# and will be corrupted by setting them based on a non-working compiler.
11906if test "$_lt_caught_CXX_error" != yes; then
11907 # Code to be used in simple compile tests
11908 lt_simple_compile_test_code="int some_variable = 0;"
11909
11910 # Code to be used in simple link tests
11911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11912
11913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11914
11915
11916
11917
11918
11919
11920# If no C compiler was specified, use CC.
11921LTCC=${LTCC-"$CC"}
11922
11923# If no C compiler flags were specified, use CFLAGS.
11924LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11925
11926# Allow CC to be a program name with arguments.
11927compiler=$CC
11928
11929
11930 # save warnings/boilerplate of simple test code
11931 ac_outfile=conftest.$ac_objext
11932echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11933eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11934_lt_compiler_boilerplate=`cat conftest.err`
11935$RM conftest*
11936
11937 ac_outfile=conftest.$ac_objext
11938echo "$lt_simple_link_test_code" >conftest.$ac_ext
11939eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11940_lt_linker_boilerplate=`cat conftest.err`
11941$RM -r conftest*
11942
11943
11944 # Allow CC to be a program name with arguments.
11945 lt_save_CC=$CC
11946 lt_save_LD=$LD
11947 lt_save_GCC=$GCC
11948 GCC=$GXX
11949 lt_save_with_gnu_ld=$with_gnu_ld
11950 lt_save_path_LD=$lt_cv_path_LD
11951 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11952 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11953 else
11954 $as_unset lt_cv_prog_gnu_ld
11955 fi
11956 if test -n "${lt_cv_path_LDCXX+set}"; then
11957 lt_cv_path_LD=$lt_cv_path_LDCXX
11958 else
11959 $as_unset lt_cv_path_LD
11960 fi
11961 test -z "${LDCXX+set}" || LD=$LDCXX
11962 CC=${CXX-"c++"}
11963 compiler=$CC
11964 compiler_CXX=$CC
11965 for cc_temp in $compiler""; do
11966 case $cc_temp in
11967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11969 \-*) ;;
11970 *) break;;
11971 esac
11972done
11973cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11974
11975
11976 if test -n "$compiler"; then
11977 # We don't want -fno-exception when compiling C++ code, so set the
11978 # no_builtin_flag separately
11979 if test "$GXX" = yes; then
11980 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11981 else
11982 lt_prog_compiler_no_builtin_flag_CXX=
11983 fi
11984
11985 if test "$GXX" = yes; then
11986 # Set up default GNU C++ configuration
11987
11988
11989
11990# Check whether --with-gnu-ld was given.
11991if test "${with_gnu_ld+set}" = set; then :
11992 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11993else
11994 with_gnu_ld=no
11995fi
11996
11997ac_prog=ld
11998if test "$GCC" = yes; then
11999 # Check if gcc -print-prog-name=ld gives a path.
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12001$as_echo_n "checking for ld used by $CC... " >&6; }
12002 case $host in
12003 *-*-mingw*)
12004 # gcc leaves a trailing carriage return which upsets mingw
12005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12006 *)
12007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12008 esac
12009 case $ac_prog in
12010 # Accept absolute paths.
12011 [\\/]* | ?:[\\/]*)
12012 re_direlt='/[^/][^/]*/\.\./'
12013 # Canonicalize the pathname of ld
12014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12017 done
12018 test -z "$LD" && LD="$ac_prog"
12019 ;;
12020 "")
12021 # If it fails, then pretend we aren't using GCC.
12022 ac_prog=ld
12023 ;;
12024 *)
12025 # If it is relative, then search for the first ld in PATH.
12026 with_gnu_ld=unknown
12027 ;;
12028 esac
12029elif test "$with_gnu_ld" = yes; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12031$as_echo_n "checking for GNU ld... " >&6; }
12032else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12034$as_echo_n "checking for non-GNU ld... " >&6; }
12035fi
22e05272 12036if ${lt_cv_path_LD+:} false; then :
5f520819
KY
12037 $as_echo_n "(cached) " >&6
12038else
12039 if test -z "$LD"; then
12040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12041 for ac_dir in $PATH; do
12042 IFS="$lt_save_ifs"
12043 test -z "$ac_dir" && ac_dir=.
12044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12045 lt_cv_path_LD="$ac_dir/$ac_prog"
12046 # Check to see if the program is GNU ld. I'd rather use --version,
12047 # but apparently some variants of GNU ld only accept -v.
12048 # Break only if it was the GNU/non-GNU ld that we prefer.
12049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12050 *GNU* | *'with BFD'*)
12051 test "$with_gnu_ld" != no && break
12052 ;;
12053 *)
12054 test "$with_gnu_ld" != yes && break
12055 ;;
12056 esac
12057 fi
12058 done
12059 IFS="$lt_save_ifs"
12060else
12061 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12062fi
12063fi
12064
12065LD="$lt_cv_path_LD"
12066if test -n "$LD"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12068$as_echo "$LD" >&6; }
12069else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072fi
22e05272 12073test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5f520819
KY
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12075$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 12076if ${lt_cv_prog_gnu_ld+:} false; then :
5f520819
KY
12077 $as_echo_n "(cached) " >&6
12078else
12079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12080case `$LD -v 2>&1 </dev/null` in
12081*GNU* | *'with BFD'*)
12082 lt_cv_prog_gnu_ld=yes
12083 ;;
12084*)
12085 lt_cv_prog_gnu_ld=no
12086 ;;
12087esac
12088fi
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12090$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12091with_gnu_ld=$lt_cv_prog_gnu_ld
12092
12093
12094
12095
12096
12097
12098
12099 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12100 # archiving commands below assume that GNU ld is being used.
12101 if test "$with_gnu_ld" = yes; then
735aacba
MH
12102 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12103 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5f520819
KY
12104
12105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12107
12108 # If archive_cmds runs LD, not CC, wlarc should be empty
12109 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12110 # investigate it a little bit more. (MM)
12111 wlarc='${wl}'
12112
12113 # ancient GNU ld didn't support --whole-archive et. al.
12114 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12115 $GREP 'no-whole-archive' > /dev/null; then
12116 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12117 else
12118 whole_archive_flag_spec_CXX=
12119 fi
12120 else
12121 with_gnu_ld=no
12122 wlarc=
12123
12124 # A generic and very simple default shared library creation
12125 # command for GNU C++ for the case where it uses the native
12126 # linker, instead of GNU ld. If possible, this setting should
12127 # overridden to take advantage of the native linker features on
12128 # the platform it is being used on.
12129 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12130 fi
12131
12132 # Commands to make compiler produce verbose output that lists
12133 # what "hidden" libraries, object files and flags are used when
12134 # linking a shared library.
12135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12136
12137 else
12138 GXX=no
12139 with_gnu_ld=no
12140 wlarc=
12141 fi
12142
12143 # PORTME: fill in a description of your system's C++ link characteristics
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12145$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12146 ld_shlibs_CXX=yes
12147 case $host_os in
12148 aix3*)
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12151 ;;
12152 aix[4-9]*)
12153 if test "$host_cpu" = ia64; then
12154 # On IA64, the linker does run time linking by default, so we don't
12155 # have to do anything special.
12156 aix_use_runtimelinking=no
12157 exp_sym_flag='-Bexport'
12158 no_entry_flag=""
12159 else
12160 aix_use_runtimelinking=no
12161
12162 # Test if we are trying to use run time linking or normal
12163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12164 # need to do runtime linking.
12165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12166 for ld_flag in $LDFLAGS; do
12167 case $ld_flag in
12168 *-brtl*)
12169 aix_use_runtimelinking=yes
12170 break
12171 ;;
12172 esac
12173 done
12174 ;;
12175 esac
12176
12177 exp_sym_flag='-bexport'
12178 no_entry_flag='-bnoentry'
12179 fi
12180
12181 # When large executables or shared objects are built, AIX ld can
12182 # have problems creating the table of contents. If linking a library
12183 # or program results in "error TOC overflow" add -mminimal-toc to
12184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12186
12187 archive_cmds_CXX=''
12188 hardcode_direct_CXX=yes
12189 hardcode_direct_absolute_CXX=yes
12190 hardcode_libdir_separator_CXX=':'
12191 link_all_deplibs_CXX=yes
12192 file_list_spec_CXX='${wl}-f,'
12193
12194 if test "$GXX" = yes; then
12195 case $host_os in aix4.[012]|aix4.[012].*)
12196 # We only want to do this on AIX 4.2 and lower, the check
12197 # below for broken collect2 doesn't work under 4.3+
12198 collect2name=`${CC} -print-prog-name=collect2`
12199 if test -f "$collect2name" &&
12200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12201 then
12202 # We have reworked collect2
12203 :
12204 else
12205 # We have old collect2
12206 hardcode_direct_CXX=unsupported
12207 # It fails to find uninstalled libraries when the uninstalled
12208 # path is not listed in the libpath. Setting hardcode_minus_L
12209 # to unsupported forces relinking
12210 hardcode_minus_L_CXX=yes
12211 hardcode_libdir_flag_spec_CXX='-L$libdir'
12212 hardcode_libdir_separator_CXX=
12213 fi
12214 esac
12215 shared_flag='-shared'
12216 if test "$aix_use_runtimelinking" = yes; then
12217 shared_flag="$shared_flag "'${wl}-G'
12218 fi
12219 else
12220 # not using gcc
12221 if test "$host_cpu" = ia64; then
12222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12223 # chokes on -Wl,-G. The following line is correct:
12224 shared_flag='-G'
12225 else
12226 if test "$aix_use_runtimelinking" = yes; then
12227 shared_flag='${wl}-G'
12228 else
12229 shared_flag='${wl}-bM:SRE'
12230 fi
12231 fi
12232 fi
12233
12234 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12235 # It seems that -bexpall does not export symbols beginning with
12236 # underscore (_), so it is better to generate a list of symbols to
12237 # export.
12238 always_export_symbols_CXX=yes
12239 if test "$aix_use_runtimelinking" = yes; then
12240 # Warning - without using the other runtime loading flags (-brtl),
12241 # -berok will link without error, but may produce a broken library.
12242 allow_undefined_flag_CXX='-berok'
12243 # Determine the default libpath from the value encoded in an empty
12244 # executable.
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246/* end confdefs.h. */
12247
12248int
12249main ()
12250{
12251
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256if ac_fn_cxx_try_link "$LINENO"; then :
12257
12258lt_aix_libpath_sed='
12259 /Import File Strings/,/^$/ {
12260 /^0/ {
12261 s/^0 *\(.*\)$/\1/
12262 p
12263 }
12264 }'
12265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12266# Check for a 64-bit object if we didn't find anything.
12267if test -z "$aix_libpath"; then
12268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12269fi
12270fi
12271rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12274
12275 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12276
12277 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"
12278 else
12279 if test "$host_cpu" = ia64; then
12280 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12281 allow_undefined_flag_CXX="-z nodefs"
12282 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"
12283 else
12284 # Determine the default libpath from the value encoded in an
12285 # empty executable.
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287/* end confdefs.h. */
12288
12289int
12290main ()
12291{
12292
12293 ;
12294 return 0;
12295}
12296_ACEOF
12297if ac_fn_cxx_try_link "$LINENO"; then :
12298
12299lt_aix_libpath_sed='
12300 /Import File Strings/,/^$/ {
12301 /^0/ {
12302 s/^0 *\(.*\)$/\1/
12303 p
12304 }
12305 }'
12306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12307# Check for a 64-bit object if we didn't find anything.
12308if test -z "$aix_libpath"; then
12309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12310fi
12311fi
12312rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12315
12316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12317 # Warning - without using the other run time loading flags,
12318 # -berok will link without error, but may produce a broken library.
12319 no_undefined_flag_CXX=' ${wl}-bernotok'
12320 allow_undefined_flag_CXX=' ${wl}-berok'
12321 if test "$with_gnu_ld" = yes; then
12322 # We only use this code for GNU lds that support --whole-archive.
12323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12324 else
12325 # Exported symbols can be pulled into shared objects from archives
12326 whole_archive_flag_spec_CXX='$convenience'
12327 fi
12328 archive_cmds_need_lc_CXX=yes
12329 # This is similar to how AIX traditionally builds its shared
12330 # libraries.
12331 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'
12332 fi
12333 fi
12334 ;;
12335
12336 beos*)
12337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12338 allow_undefined_flag_CXX=unsupported
12339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12340 # support --undefined. This deserves some investigation. FIXME
12341 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342 else
12343 ld_shlibs_CXX=no
12344 fi
12345 ;;
12346
12347 chorus*)
12348 case $cc_basename in
12349 *)
12350 # FIXME: insert proper C++ library support
12351 ld_shlibs_CXX=no
12352 ;;
12353 esac
12354 ;;
12355
12356 cygwin* | mingw* | pw32* | cegcc*)
12357 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12358 # as there is no search path for DLLs.
12359 hardcode_libdir_flag_spec_CXX='-L$libdir'
12360 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12361 allow_undefined_flag_CXX=unsupported
12362 always_export_symbols_CXX=no
12363 enable_shared_with_static_runtimes_CXX=yes
12364
12365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12366 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'
12367 # If the export-symbols file already is a .def file (1st line
12368 # is EXPORTS), use it as is; otherwise, prepend...
12369 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12370 cp $export_symbols $output_objdir/$soname.def;
12371 else
12372 echo EXPORTS > $output_objdir/$soname.def;
12373 cat $export_symbols >> $output_objdir/$soname.def;
12374 fi~
12375 $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'
12376 else
12377 ld_shlibs_CXX=no
12378 fi
12379 ;;
12380 darwin* | rhapsody*)
12381
12382
12383 archive_cmds_need_lc_CXX=no
12384 hardcode_direct_CXX=no
12385 hardcode_automatic_CXX=yes
12386 hardcode_shlibpath_var_CXX=unsupported
12387 if test "$lt_cv_ld_force_load" = "yes"; then
12388 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\"`'
12389 else
12390 whole_archive_flag_spec_CXX=''
12391 fi
12392 link_all_deplibs_CXX=yes
12393 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12394 case $cc_basename in
12395 ifort*) _lt_dar_can_shared=yes ;;
12396 *) _lt_dar_can_shared=$GCC ;;
12397 esac
12398 if test "$_lt_dar_can_shared" = "yes"; then
12399 output_verbose_link_cmd=func_echo_all
12400 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}"
12401 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12402 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}"
12403 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}"
12404 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12405 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}"
12406 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}"
12407 fi
12408
12409 else
12410 ld_shlibs_CXX=no
12411 fi
12412
12413 ;;
12414
12415 dgux*)
12416 case $cc_basename in
12417 ec++*)
12418 # FIXME: insert proper C++ library support
12419 ld_shlibs_CXX=no
12420 ;;
12421 ghcx*)
12422 # Green Hills C++ Compiler
12423 # FIXME: insert proper C++ library support
12424 ld_shlibs_CXX=no
12425 ;;
12426 *)
12427 # FIXME: insert proper C++ library support
12428 ld_shlibs_CXX=no
12429 ;;
12430 esac
12431 ;;
12432
12433 freebsd2.*)
12434 # C++ shared libraries reported to be fairly broken before
12435 # switch to ELF
12436 ld_shlibs_CXX=no
12437 ;;
12438
12439 freebsd-elf*)
12440 archive_cmds_need_lc_CXX=no
12441 ;;
12442
12443 freebsd* | dragonfly*)
12444 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12445 # conventions
12446 ld_shlibs_CXX=yes
12447 ;;
12448
12449 gnu*)
12450 ;;
12451
12452 haiku*)
12453 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12454 link_all_deplibs_CXX=yes
12455 ;;
12456
12457 hpux9*)
12458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12459 hardcode_libdir_separator_CXX=:
12460 export_dynamic_flag_spec_CXX='${wl}-E'
12461 hardcode_direct_CXX=yes
12462 hardcode_minus_L_CXX=yes # Not in the search PATH,
12463 # but as the default
12464 # location of the library.
12465
12466 case $cc_basename in
12467 CC*)
12468 # FIXME: insert proper C++ library support
12469 ld_shlibs_CXX=no
12470 ;;
12471 aCC*)
12472 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'
12473 # Commands to make compiler produce verbose output that lists
12474 # what "hidden" libraries, object files and flags are used when
12475 # linking a shared library.
12476 #
12477 # There doesn't appear to be a way to prevent this compiler from
12478 # explicitly linking system object files so we need to strip them
12479 # from the output so that they don't get included in the library
12480 # dependencies.
12481 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"'
12482 ;;
12483 *)
12484 if test "$GXX" = yes; then
12485 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'
12486 else
12487 # FIXME: insert proper C++ library support
12488 ld_shlibs_CXX=no
12489 fi
12490 ;;
12491 esac
12492 ;;
12493
12494 hpux10*|hpux11*)
12495 if test $with_gnu_ld = no; then
12496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12497 hardcode_libdir_separator_CXX=:
12498
12499 case $host_cpu in
12500 hppa*64*|ia64*)
12501 ;;
12502 *)
12503 export_dynamic_flag_spec_CXX='${wl}-E'
12504 ;;
12505 esac
12506 fi
12507 case $host_cpu in
12508 hppa*64*|ia64*)
12509 hardcode_direct_CXX=no
12510 hardcode_shlibpath_var_CXX=no
12511 ;;
12512 *)
12513 hardcode_direct_CXX=yes
12514 hardcode_direct_absolute_CXX=yes
12515 hardcode_minus_L_CXX=yes # Not in the search PATH,
12516 # but as the default
12517 # location of the library.
12518 ;;
12519 esac
12520
12521 case $cc_basename in
12522 CC*)
12523 # FIXME: insert proper C++ library support
12524 ld_shlibs_CXX=no
12525 ;;
12526 aCC*)
12527 case $host_cpu in
12528 hppa*64*)
12529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12530 ;;
12531 ia64*)
12532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533 ;;
12534 *)
12535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 ;;
12537 esac
12538 # Commands to make compiler produce verbose output that lists
12539 # what "hidden" libraries, object files and flags are used when
12540 # linking a shared library.
12541 #
12542 # There doesn't appear to be a way to prevent this compiler from
12543 # explicitly linking system object files so we need to strip them
12544 # from the output so that they don't get included in the library
12545 # dependencies.
12546 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"'
12547 ;;
12548 *)
12549 if test "$GXX" = yes; then
12550 if test $with_gnu_ld = no; then
12551 case $host_cpu in
12552 hppa*64*)
12553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12554 ;;
12555 ia64*)
12556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12557 ;;
12558 *)
12559 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'
12560 ;;
12561 esac
12562 fi
12563 else
12564 # FIXME: insert proper C++ library support
12565 ld_shlibs_CXX=no
12566 fi
12567 ;;
12568 esac
12569 ;;
12570
12571 interix[3-9]*)
12572 hardcode_direct_CXX=no
12573 hardcode_shlibpath_var_CXX=no
12574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12575 export_dynamic_flag_spec_CXX='${wl}-E'
12576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12577 # Instead, shared libraries are loaded at an image base (0x10000000 by
12578 # default) and relocated if they conflict, which is a slow very memory
12579 # consuming and fragmenting process. To avoid this, we pick a random,
12580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12582 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'
12583 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'
12584 ;;
12585 irix5* | irix6*)
12586 case $cc_basename in
12587 CC*)
12588 # SGI C++
12589 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'
12590
12591 # Archives containing C++ object files must be created using
12592 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12593 # necessary to make sure instantiated templates are included
12594 # in the archive.
12595 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12596 ;;
12597 *)
12598 if test "$GXX" = yes; then
12599 if test "$with_gnu_ld" = no; then
12600 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'
12601 else
12602 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'
12603 fi
12604 fi
12605 link_all_deplibs_CXX=yes
12606 ;;
12607 esac
12608 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12609 hardcode_libdir_separator_CXX=:
12610 inherit_rpath_CXX=yes
12611 ;;
12612
12613 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12614 case $cc_basename in
12615 KCC*)
12616 # Kuck and Associates, Inc. (KAI) C++ Compiler
12617
12618 # KCC will only create a shared library if the output file
12619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12620 # to its proper name (with version) after linking.
12621 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'
12622 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'
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12626 #
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12630 # dependencies.
12631 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"'
12632
12633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12635
12636 # Archives containing C++ object files must be created using
12637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12639 ;;
12640 icpc* | ecpc* )
12641 # Intel C++
12642 with_gnu_ld=yes
12643 # version 8.0 and above of icpc choke on multiply defined symbols
12644 # if we add $predep_objects and $postdep_objects, however 7.1 and
12645 # earlier do not add the objects themselves.
12646 case `$CC -V 2>&1` in
12647 *"Version 7."*)
12648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 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'
12650 ;;
12651 *) # Version 8.0 or newer
12652 tmp_idyn=
12653 case $host_cpu in
12654 ia64*) tmp_idyn=' -i_dynamic';;
12655 esac
12656 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 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'
12658 ;;
12659 esac
12660 archive_cmds_need_lc_CXX=no
12661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12663 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12664 ;;
12665 pgCC* | pgcpp*)
12666 # Portland Group C++ compiler
12667 case `$CC -V` in
12668 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12669 prelink_cmds_CXX='tpldir=Template.dir~
12670 rm -rf $tpldir~
12671 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22e05272 12672 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5f520819
KY
12673 old_archive_cmds_CXX='tpldir=Template.dir~
12674 rm -rf $tpldir~
12675 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22e05272 12676 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5f520819
KY
12677 $RANLIB $oldlib'
12678 archive_cmds_CXX='tpldir=Template.dir~
12679 rm -rf $tpldir~
12680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 12681 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5f520819
KY
12682 archive_expsym_cmds_CXX='tpldir=Template.dir~
12683 rm -rf $tpldir~
12684 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 12685 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5f520819
KY
12686 ;;
12687 *) # Version 6 and above use weak symbols
12688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12689 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'
12690 ;;
12691 esac
12692
12693 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12695 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'
12696 ;;
12697 cxx*)
12698 # Compaq C++
12699 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12700 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'
12701
12702 runpath_var=LD_RUN_PATH
12703 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12704 hardcode_libdir_separator_CXX=:
12705
12706 # Commands to make compiler produce verbose output that lists
12707 # what "hidden" libraries, object files and flags are used when
12708 # linking a shared library.
12709 #
12710 # There doesn't appear to be a way to prevent this compiler from
12711 # explicitly linking system object files so we need to strip them
12712 # from the output so that they don't get included in the library
12713 # dependencies.
12714 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'
12715 ;;
12716 xl* | mpixl* | bgxl*)
12717 # IBM XL 8.0 on PPC, with GNU ld
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12720 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 if test "x$supports_anon_versioning" = xyes; then
12722 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12724 echo "local: *; };" >> $output_objdir/$libname.ver~
12725 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12726 fi
12727 ;;
12728 *)
12729 case `$CC -V 2>&1 | sed 5q` in
12730 *Sun\ C*)
12731 # Sun C++ 5.9
12732 no_undefined_flag_CXX=' -zdefs'
12733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12734 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'
12735 hardcode_libdir_flag_spec_CXX='-R$libdir'
12736 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'
12737 compiler_needs_object_CXX=yes
12738
12739 # Not sure whether something based on
12740 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12741 # would be better.
12742 output_verbose_link_cmd='func_echo_all'
12743
12744 # Archives containing C++ object files must be created using
12745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12746 # necessary to make sure instantiated templates are included
12747 # in the archive.
12748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12749 ;;
12750 esac
12751 ;;
12752 esac
12753 ;;
12754
12755 lynxos*)
12756 # FIXME: insert proper C++ library support
12757 ld_shlibs_CXX=no
12758 ;;
12759
12760 m88k*)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12763 ;;
12764
12765 mvs*)
12766 case $cc_basename in
12767 cxx*)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12770 ;;
12771 *)
12772 # FIXME: insert proper C++ library support
12773 ld_shlibs_CXX=no
12774 ;;
12775 esac
12776 ;;
12777
12778 netbsd*)
12779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12780 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12781 wlarc=
12782 hardcode_libdir_flag_spec_CXX='-R$libdir'
12783 hardcode_direct_CXX=yes
12784 hardcode_shlibpath_var_CXX=no
12785 fi
12786 # Workaround some broken pre-1.5 toolchains
12787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12788 ;;
12789
12790 *nto* | *qnx*)
12791 ld_shlibs_CXX=yes
12792 ;;
12793
12794 openbsd2*)
12795 # C++ shared libraries are fairly broken
12796 ld_shlibs_CXX=no
12797 ;;
12798
12799 openbsd*)
12800 if test -f /usr/libexec/ld.so; then
12801 hardcode_direct_CXX=yes
12802 hardcode_shlibpath_var_CXX=no
12803 hardcode_direct_absolute_CXX=yes
12804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12807 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12808 export_dynamic_flag_spec_CXX='${wl}-E'
12809 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12810 fi
12811 output_verbose_link_cmd=func_echo_all
12812 else
12813 ld_shlibs_CXX=no
12814 fi
12815 ;;
12816
12817 osf3* | osf4* | osf5*)
12818 case $cc_basename in
12819 KCC*)
12820 # Kuck and Associates, Inc. (KAI) C++ Compiler
12821
12822 # KCC will only create a shared library if the output file
12823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12824 # to its proper name (with version) after linking.
12825 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'
12826
12827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12828 hardcode_libdir_separator_CXX=:
12829
12830 # Archives containing C++ object files must be created using
12831 # the KAI C++ compiler.
12832 case $host in
12833 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12834 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12835 esac
12836 ;;
12837 RCC*)
12838 # Rational C++ 2.4.1
12839 # FIXME: insert proper C++ library support
12840 ld_shlibs_CXX=no
12841 ;;
12842 cxx*)
12843 case $host in
12844 osf3*)
12845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12846 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'
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12848 ;;
12849 *)
12850 allow_undefined_flag_CXX=' -expect_unresolved \*'
12851 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'
12852 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12853 echo "-hidden">> $lib.exp~
12854 $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~
12855 $RM $lib.exp'
12856 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12857 ;;
12858 esac
12859
12860 hardcode_libdir_separator_CXX=:
12861
12862 # Commands to make compiler produce verbose output that lists
12863 # what "hidden" libraries, object files and flags are used when
12864 # linking a shared library.
12865 #
12866 # There doesn't appear to be a way to prevent this compiler from
12867 # explicitly linking system object files so we need to strip them
12868 # from the output so that they don't get included in the library
12869 # dependencies.
12870 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"'
12871 ;;
12872 *)
12873 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12875 case $host in
12876 osf3*)
12877 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'
12878 ;;
12879 *)
12880 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'
12881 ;;
12882 esac
12883
12884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12885 hardcode_libdir_separator_CXX=:
12886
12887 # Commands to make compiler produce verbose output that lists
12888 # what "hidden" libraries, object files and flags are used when
12889 # linking a shared library.
12890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12891
12892 else
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12895 fi
12896 ;;
12897 esac
12898 ;;
12899
12900 psos*)
12901 # FIXME: insert proper C++ library support
12902 ld_shlibs_CXX=no
12903 ;;
12904
12905 sunos4*)
12906 case $cc_basename in
12907 CC*)
12908 # Sun C++ 4.x
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12911 ;;
12912 lcc*)
12913 # Lucid
12914 # FIXME: insert proper C++ library support
12915 ld_shlibs_CXX=no
12916 ;;
12917 *)
12918 # FIXME: insert proper C++ library support
12919 ld_shlibs_CXX=no
12920 ;;
12921 esac
12922 ;;
12923
12924 solaris*)
12925 case $cc_basename in
12926 CC*)
12927 # Sun C++ 4.2, 5.x and Centerline C++
12928 archive_cmds_need_lc_CXX=yes
12929 no_undefined_flag_CXX=' -zdefs'
12930 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12932 $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'
12933
12934 hardcode_libdir_flag_spec_CXX='-R$libdir'
12935 hardcode_shlibpath_var_CXX=no
12936 case $host_os in
12937 solaris2.[0-5] | solaris2.[0-5].*) ;;
12938 *)
12939 # The compiler driver will combine and reorder linker options,
12940 # but understands `-z linker_flag'.
12941 # Supported since Solaris 2.6 (maybe 2.5.1?)
12942 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12943 ;;
12944 esac
12945 link_all_deplibs_CXX=yes
12946
12947 output_verbose_link_cmd='func_echo_all'
12948
12949 # Archives containing C++ object files must be created using
12950 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12951 # necessary to make sure instantiated templates are included
12952 # in the archive.
12953 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12954 ;;
12955 gcx*)
12956 # Green Hills C++ Compiler
12957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12958
12959 # The C++ compiler must be used to create the archive.
12960 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12961 ;;
12962 *)
12963 # GNU C++ compiler with Solaris linker
12964 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12965 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12966 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12967 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12968 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12969 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12970
12971 # Commands to make compiler produce verbose output that lists
12972 # what "hidden" libraries, object files and flags are used when
12973 # linking a shared library.
12974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12975 else
12976 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12977 # platform.
12978 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12981
12982 # Commands to make compiler produce verbose output that lists
12983 # what "hidden" libraries, object files and flags are used when
12984 # linking a shared library.
12985 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12986 fi
12987
12988 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12989 case $host_os in
12990 solaris2.[0-5] | solaris2.[0-5].*) ;;
12991 *)
12992 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12993 ;;
12994 esac
12995 fi
12996 ;;
12997 esac
12998 ;;
12999
13000 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13001 no_undefined_flag_CXX='${wl}-z,text'
13002 archive_cmds_need_lc_CXX=no
13003 hardcode_shlibpath_var_CXX=no
13004 runpath_var='LD_RUN_PATH'
13005
13006 case $cc_basename in
13007 CC*)
13008 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13009 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13010 ;;
13011 *)
13012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13014 ;;
13015 esac
13016 ;;
13017
13018 sysv5* | sco3.2v5* | sco5v6*)
13019 # Note: We can NOT use -z defs as we might desire, because we do not
13020 # link with -lc, and that would cause any symbols used from libc to
13021 # always be unresolved, which means just about no library would
13022 # ever link correctly. If we're not using GNU ld we use -z text
13023 # though, which does catch some bad symbols but isn't as heavy-handed
13024 # as -z defs.
13025 no_undefined_flag_CXX='${wl}-z,text'
13026 allow_undefined_flag_CXX='${wl}-z,nodefs'
13027 archive_cmds_need_lc_CXX=no
13028 hardcode_shlibpath_var_CXX=no
13029 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13030 hardcode_libdir_separator_CXX=':'
13031 link_all_deplibs_CXX=yes
13032 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13033 runpath_var='LD_RUN_PATH'
13034
13035 case $cc_basename in
13036 CC*)
13037 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13038 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13039 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13040 '"$old_archive_cmds_CXX"
13041 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13042 '"$reload_cmds_CXX"
13043 ;;
13044 *)
13045 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13047 ;;
13048 esac
13049 ;;
13050
13051 tandem*)
13052 case $cc_basename in
13053 NCC*)
13054 # NonStop-UX NCC 3.20
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13057 ;;
13058 *)
13059 # FIXME: insert proper C++ library support
13060 ld_shlibs_CXX=no
13061 ;;
13062 esac
13063 ;;
13064
13065 vxworks*)
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13068 ;;
13069
13070 *)
13071 # FIXME: insert proper C++ library support
13072 ld_shlibs_CXX=no
13073 ;;
13074 esac
13075
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13077$as_echo "$ld_shlibs_CXX" >&6; }
13078 test "$ld_shlibs_CXX" = no && can_build_shared=no
13079
13080 GCC_CXX="$GXX"
13081 LD_CXX="$LD"
13082
13083 ## CAVEAT EMPTOR:
13084 ## There is no encapsulation within the following macros, do not change
13085 ## the running order or otherwise move them around unless you know exactly
13086 ## what you are doing...
13087 # Dependencies to place before and after the object being linked:
13088predep_objects_CXX=
13089postdep_objects_CXX=
13090predeps_CXX=
13091postdeps_CXX=
13092compiler_lib_search_path_CXX=
13093
13094cat > conftest.$ac_ext <<_LT_EOF
13095class Foo
13096{
13097public:
13098 Foo (void) { a = 0; }
13099private:
13100 int a;
13101};
13102_LT_EOF
13103
13104if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13105 (eval $ac_compile) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }; then
13109 # Parse the compiler output and extract the necessary
13110 # objects, libraries and library flags.
13111
13112 # Sentinel used to keep track of whether or not we are before
13113 # the conftest object file.
13114 pre_test_object_deps_done=no
13115
13116 for p in `eval "$output_verbose_link_cmd"`; do
13117 case $p in
13118
13119 -L* | -R* | -l*)
13120 # Some compilers place space between "-{L,R}" and the path.
13121 # Remove the space.
13122 if test $p = "-L" ||
13123 test $p = "-R"; then
13124 prev=$p
13125 continue
13126 else
13127 prev=
13128 fi
13129
13130 if test "$pre_test_object_deps_done" = no; then
13131 case $p in
13132 -L* | -R*)
13133 # Internal compiler library paths should come after those
13134 # provided the user. The postdeps already come after the
13135 # user supplied libs so there is no need to process them.
13136 if test -z "$compiler_lib_search_path_CXX"; then
13137 compiler_lib_search_path_CXX="${prev}${p}"
13138 else
13139 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13140 fi
13141 ;;
13142 # The "-l" case would never come before the object being
13143 # linked, so don't bother handling this case.
13144 esac
13145 else
13146 if test -z "$postdeps_CXX"; then
13147 postdeps_CXX="${prev}${p}"
13148 else
13149 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13150 fi
13151 fi
13152 ;;
13153
13154 *.$objext)
13155 # This assumes that the test object file only shows up
13156 # once in the compiler output.
13157 if test "$p" = "conftest.$objext"; then
13158 pre_test_object_deps_done=yes
13159 continue
13160 fi
13161
13162 if test "$pre_test_object_deps_done" = no; then
13163 if test -z "$predep_objects_CXX"; then
13164 predep_objects_CXX="$p"
13165 else
13166 predep_objects_CXX="$predep_objects_CXX $p"
13167 fi
13168 else
13169 if test -z "$postdep_objects_CXX"; then
13170 postdep_objects_CXX="$p"
13171 else
13172 postdep_objects_CXX="$postdep_objects_CXX $p"
13173 fi
13174 fi
13175 ;;
13176
13177 *) ;; # Ignore the rest.
13178
13179 esac
13180 done
13181
13182 # Clean up.
13183 rm -f a.out a.exe
13184else
13185 echo "libtool.m4: error: problem compiling CXX test program"
13186fi
13187
13188$RM -f confest.$objext
13189
13190# PORTME: override above test on systems where it is broken
13191case $host_os in
13192interix[3-9]*)
13193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13194 # hack all around it, let's just trust "g++" to DTRT.
13195 predep_objects_CXX=
13196 postdep_objects_CXX=
13197 postdeps_CXX=
13198 ;;
13199
13200linux*)
13201 case `$CC -V 2>&1 | sed 5q` in
13202 *Sun\ C*)
13203 # Sun C++ 5.9
13204
13205 # The more standards-conforming stlport4 library is
13206 # incompatible with the Cstd library. Avoid specifying
13207 # it if it's in CXXFLAGS. Ignore libCrun as
13208 # -library=stlport4 depends on it.
13209 case " $CXX $CXXFLAGS " in
13210 *" -library=stlport4 "*)
13211 solaris_use_stlport4=yes
13212 ;;
13213 esac
13214
13215 if test "$solaris_use_stlport4" != yes; then
13216 postdeps_CXX='-library=Cstd -library=Crun'
13217 fi
13218 ;;
13219 esac
13220 ;;
13221
13222solaris*)
13223 case $cc_basename in
13224 CC*)
13225 # The more standards-conforming stlport4 library is
13226 # incompatible with the Cstd library. Avoid specifying
13227 # it if it's in CXXFLAGS. Ignore libCrun as
13228 # -library=stlport4 depends on it.
13229 case " $CXX $CXXFLAGS " in
13230 *" -library=stlport4 "*)
13231 solaris_use_stlport4=yes
13232 ;;
13233 esac
13234
13235 # Adding this requires a known-good setup of shared libraries for
13236 # Sun compiler versions before 5.6, else PIC objects from an old
13237 # archive will be linked into the output, leading to subtle bugs.
13238 if test "$solaris_use_stlport4" != yes; then
13239 postdeps_CXX='-library=Cstd -library=Crun'
13240 fi
13241 ;;
13242 esac
13243 ;;
13244esac
13245
13246
13247case " $postdeps_CXX " in
13248*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13249esac
13250 compiler_lib_search_dirs_CXX=
13251if test -n "${compiler_lib_search_path_CXX}"; then
13252 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13253fi
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285 lt_prog_compiler_wl_CXX=
13286lt_prog_compiler_pic_CXX=
13287lt_prog_compiler_static_CXX=
13288
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13290$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13291
13292 # C++ specific cases for pic, static, wl, etc.
13293 if test "$GXX" = yes; then
13294 lt_prog_compiler_wl_CXX='-Wl,'
13295 lt_prog_compiler_static_CXX='-static'
13296
13297 case $host_os in
13298 aix*)
13299 # All AIX code is PIC.
13300 if test "$host_cpu" = ia64; then
13301 # AIX 5 now supports IA64 processor
13302 lt_prog_compiler_static_CXX='-Bstatic'
13303 fi
13304 lt_prog_compiler_pic_CXX='-fPIC'
13305 ;;
13306
13307 amigaos*)
13308 case $host_cpu in
13309 powerpc)
13310 # see comment about AmigaOS4 .so support
13311 lt_prog_compiler_pic_CXX='-fPIC'
13312 ;;
13313 m68k)
13314 # FIXME: we need at least 68020 code to build shared libraries, but
13315 # adding the `-m68020' flag to GCC prevents building anything better,
13316 # like `-m68040'.
13317 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13318 ;;
13319 esac
13320 ;;
13321
13322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13323 # PIC is the default for these OSes.
13324 ;;
13325 mingw* | cygwin* | os2* | pw32* | cegcc*)
13326 # This hack is so that the source file can tell whether it is being
13327 # built for inclusion in a dll (and should export symbols for example).
13328 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13329 # (--disable-auto-import) libraries
13330 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13331 ;;
13332 darwin* | rhapsody*)
13333 # PIC is the default on this platform
13334 # Common symbols not allowed in MH_DYLIB files
13335 lt_prog_compiler_pic_CXX='-fno-common'
13336 ;;
13337 *djgpp*)
13338 # DJGPP does not support shared libraries at all
13339 lt_prog_compiler_pic_CXX=
13340 ;;
13341 haiku*)
13342 # PIC is the default for Haiku.
13343 # The "-static" flag exists, but is broken.
13344 lt_prog_compiler_static_CXX=
13345 ;;
13346 interix[3-9]*)
13347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13348 # Instead, we relocate shared libraries at runtime.
13349 ;;
13350 sysv4*MP*)
13351 if test -d /usr/nec; then
13352 lt_prog_compiler_pic_CXX=-Kconform_pic
13353 fi
13354 ;;
13355 hpux*)
13356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13358 # sets the default TLS model and affects inlining.
13359 case $host_cpu in
13360 hppa*64*)
13361 ;;
13362 *)
13363 lt_prog_compiler_pic_CXX='-fPIC'
13364 ;;
13365 esac
13366 ;;
13367 *qnx* | *nto*)
13368 # QNX uses GNU C++, but need to define -shared option too, otherwise
13369 # it will coredump.
13370 lt_prog_compiler_pic_CXX='-fPIC -shared'
13371 ;;
13372 *)
13373 lt_prog_compiler_pic_CXX='-fPIC'
13374 ;;
13375 esac
13376 else
13377 case $host_os in
13378 aix[4-9]*)
13379 # All AIX code is PIC.
13380 if test "$host_cpu" = ia64; then
13381 # AIX 5 now supports IA64 processor
13382 lt_prog_compiler_static_CXX='-Bstatic'
13383 else
13384 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13385 fi
13386 ;;
13387 chorus*)
13388 case $cc_basename in
13389 cxch68*)
13390 # Green Hills C++ Compiler
13391 # _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"
13392 ;;
13393 esac
13394 ;;
13395 dgux*)
13396 case $cc_basename in
13397 ec++*)
13398 lt_prog_compiler_pic_CXX='-KPIC'
13399 ;;
13400 ghcx*)
13401 # Green Hills C++ Compiler
13402 lt_prog_compiler_pic_CXX='-pic'
13403 ;;
13404 *)
13405 ;;
13406 esac
13407 ;;
13408 freebsd* | dragonfly*)
13409 # FreeBSD uses GNU C++
13410 ;;
13411 hpux9* | hpux10* | hpux11*)
13412 case $cc_basename in
13413 CC*)
13414 lt_prog_compiler_wl_CXX='-Wl,'
13415 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13416 if test "$host_cpu" != ia64; then
13417 lt_prog_compiler_pic_CXX='+Z'
13418 fi
13419 ;;
13420 aCC*)
13421 lt_prog_compiler_wl_CXX='-Wl,'
13422 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13423 case $host_cpu in
13424 hppa*64*|ia64*)
13425 # +Z the default
13426 ;;
13427 *)
13428 lt_prog_compiler_pic_CXX='+Z'
13429 ;;
13430 esac
13431 ;;
13432 *)
13433 ;;
13434 esac
13435 ;;
13436 interix*)
13437 # This is c89, which is MS Visual C++ (no shared libs)
13438 # Anyone wants to do a port?
13439 ;;
13440 irix5* | irix6* | nonstopux*)
13441 case $cc_basename in
13442 CC*)
13443 lt_prog_compiler_wl_CXX='-Wl,'
13444 lt_prog_compiler_static_CXX='-non_shared'
13445 # CC pic flag -KPIC is the default.
13446 ;;
13447 *)
13448 ;;
13449 esac
13450 ;;
13451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13452 case $cc_basename in
13453 KCC*)
13454 # KAI C++ Compiler
13455 lt_prog_compiler_wl_CXX='--backend -Wl,'
13456 lt_prog_compiler_pic_CXX='-fPIC'
13457 ;;
13458 ecpc* )
13459 # old Intel C++ for x86_64 which still supported -KPIC.
13460 lt_prog_compiler_wl_CXX='-Wl,'
13461 lt_prog_compiler_pic_CXX='-KPIC'
13462 lt_prog_compiler_static_CXX='-static'
13463 ;;
13464 icpc* )
13465 # Intel C++, used to be incompatible with GCC.
13466 # ICC 10 doesn't accept -KPIC any more.
13467 lt_prog_compiler_wl_CXX='-Wl,'
13468 lt_prog_compiler_pic_CXX='-fPIC'
13469 lt_prog_compiler_static_CXX='-static'
13470 ;;
13471 pgCC* | pgcpp*)
13472 # Portland Group C++ compiler
13473 lt_prog_compiler_wl_CXX='-Wl,'
13474 lt_prog_compiler_pic_CXX='-fpic'
13475 lt_prog_compiler_static_CXX='-Bstatic'
13476 ;;
13477 cxx*)
13478 # Compaq C++
13479 # Make sure the PIC flag is empty. It appears that all Alpha
13480 # Linux and Compaq Tru64 Unix objects are PIC.
13481 lt_prog_compiler_pic_CXX=
13482 lt_prog_compiler_static_CXX='-non_shared'
13483 ;;
13484 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13485 # IBM XL 8.0, 9.0 on PPC and BlueGene
13486 lt_prog_compiler_wl_CXX='-Wl,'
13487 lt_prog_compiler_pic_CXX='-qpic'
13488 lt_prog_compiler_static_CXX='-qstaticlink'
13489 ;;
13490 *)
13491 case `$CC -V 2>&1 | sed 5q` in
13492 *Sun\ C*)
13493 # Sun C++ 5.9
13494 lt_prog_compiler_pic_CXX='-KPIC'
13495 lt_prog_compiler_static_CXX='-Bstatic'
13496 lt_prog_compiler_wl_CXX='-Qoption ld '
13497 ;;
13498 esac
13499 ;;
13500 esac
13501 ;;
13502 lynxos*)
13503 ;;
13504 m88k*)
13505 ;;
13506 mvs*)
13507 case $cc_basename in
13508 cxx*)
13509 lt_prog_compiler_pic_CXX='-W c,exportall'
13510 ;;
13511 *)
13512 ;;
13513 esac
13514 ;;
13515 netbsd*)
13516 ;;
13517 *qnx* | *nto*)
13518 # QNX uses GNU C++, but need to define -shared option too, otherwise
13519 # it will coredump.
13520 lt_prog_compiler_pic_CXX='-fPIC -shared'
13521 ;;
13522 osf3* | osf4* | osf5*)
13523 case $cc_basename in
13524 KCC*)
13525 lt_prog_compiler_wl_CXX='--backend -Wl,'
13526 ;;
13527 RCC*)
13528 # Rational C++ 2.4.1
13529 lt_prog_compiler_pic_CXX='-pic'
13530 ;;
13531 cxx*)
13532 # Digital/Compaq C++
13533 lt_prog_compiler_wl_CXX='-Wl,'
13534 # Make sure the PIC flag is empty. It appears that all Alpha
13535 # Linux and Compaq Tru64 Unix objects are PIC.
13536 lt_prog_compiler_pic_CXX=
13537 lt_prog_compiler_static_CXX='-non_shared'
13538 ;;
13539 *)
13540 ;;
13541 esac
13542 ;;
13543 psos*)
13544 ;;
13545 solaris*)
13546 case $cc_basename in
13547 CC*)
13548 # Sun C++ 4.2, 5.x and Centerline C++
13549 lt_prog_compiler_pic_CXX='-KPIC'
13550 lt_prog_compiler_static_CXX='-Bstatic'
13551 lt_prog_compiler_wl_CXX='-Qoption ld '
13552 ;;
13553 gcx*)
13554 # Green Hills C++ Compiler
13555 lt_prog_compiler_pic_CXX='-PIC'
13556 ;;
13557 *)
13558 ;;
13559 esac
13560 ;;
13561 sunos4*)
13562 case $cc_basename in
13563 CC*)
13564 # Sun C++ 4.x
13565 lt_prog_compiler_pic_CXX='-pic'
13566 lt_prog_compiler_static_CXX='-Bstatic'
13567 ;;
13568 lcc*)
13569 # Lucid
13570 lt_prog_compiler_pic_CXX='-pic'
13571 ;;
13572 *)
13573 ;;
13574 esac
13575 ;;
13576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13577 case $cc_basename in
13578 CC*)
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_pic_CXX='-KPIC'
13581 lt_prog_compiler_static_CXX='-Bstatic'
13582 ;;
13583 esac
13584 ;;
13585 tandem*)
13586 case $cc_basename in
13587 NCC*)
13588 # NonStop-UX NCC 3.20
13589 lt_prog_compiler_pic_CXX='-KPIC'
13590 ;;
13591 *)
13592 ;;
13593 esac
13594 ;;
13595 vxworks*)
13596 ;;
13597 *)
13598 lt_prog_compiler_can_build_shared_CXX=no
13599 ;;
13600 esac
13601 fi
13602
13603case $host_os in
13604 # For platforms which do not support PIC, -DPIC is meaningless:
13605 *djgpp*)
13606 lt_prog_compiler_pic_CXX=
13607 ;;
13608 *)
13609 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13610 ;;
13611esac
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13613$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13614
13615
13616
13617#
13618# Check to make sure the PIC flag actually works.
13619#
13620if test -n "$lt_prog_compiler_pic_CXX"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13622$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 13623if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
5f520819
KY
13624 $as_echo_n "(cached) " >&6
13625else
13626 lt_cv_prog_compiler_pic_works_CXX=no
13627 ac_outfile=conftest.$ac_objext
13628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13629 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13630 # Insert the option either (1) after the last *FLAGS variable, or
13631 # (2) before a word containing "conftest.", or (3) at the end.
13632 # Note that $ac_compile itself does not contain backslashes and begins
13633 # with a dollar sign (not a hyphen), so the echo should work correctly.
13634 # The option is referenced via a variable to avoid confusing sed.
13635 lt_compile=`echo "$ac_compile" | $SED \
13636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13638 -e 's:$: $lt_compiler_flag:'`
13639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13640 (eval "$lt_compile" 2>conftest.err)
13641 ac_status=$?
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 if (exit $ac_status) && test -s "$ac_outfile"; then
13645 # The compiler can only warn and ignore the option if not recognized
13646 # So say no if there are warnings other than the usual output.
13647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13650 lt_cv_prog_compiler_pic_works_CXX=yes
13651 fi
13652 fi
13653 $RM conftest*
13654
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13657$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13658
13659if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13660 case $lt_prog_compiler_pic_CXX in
13661 "" | " "*) ;;
13662 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13663 esac
13664else
13665 lt_prog_compiler_pic_CXX=
13666 lt_prog_compiler_can_build_shared_CXX=no
13667fi
13668
13669fi
13670
13671
13672
13673#
13674# Check to make sure the static flag actually works.
13675#
13676wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13678$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 13679if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
5f520819
KY
13680 $as_echo_n "(cached) " >&6
13681else
13682 lt_cv_prog_compiler_static_works_CXX=no
13683 save_LDFLAGS="$LDFLAGS"
13684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13687 # The linker can only warn and ignore the option if not recognized
13688 # So say no if there are warnings
13689 if test -s conftest.err; then
13690 # Append any errors to the config.log.
13691 cat conftest.err 1>&5
13692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13694 if diff conftest.exp conftest.er2 >/dev/null; then
13695 lt_cv_prog_compiler_static_works_CXX=yes
13696 fi
13697 else
13698 lt_cv_prog_compiler_static_works_CXX=yes
13699 fi
13700 fi
13701 $RM -r conftest*
13702 LDFLAGS="$save_LDFLAGS"
13703
13704fi
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13706$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13707
13708if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13709 :
13710else
13711 lt_prog_compiler_static_CXX=
13712fi
13713
13714
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13718$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 13719if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
5f520819
KY
13720 $as_echo_n "(cached) " >&6
13721else
13722 lt_cv_prog_compiler_c_o_CXX=no
13723 $RM -r conftest 2>/dev/null
13724 mkdir conftest
13725 cd conftest
13726 mkdir out
13727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13728
13729 lt_compiler_flag="-o out/conftest2.$ac_objext"
13730 # Insert the option either (1) after the last *FLAGS variable, or
13731 # (2) before a word containing "conftest.", or (3) at the end.
13732 # Note that $ac_compile itself does not contain backslashes and begins
13733 # with a dollar sign (not a hyphen), so the echo should work correctly.
13734 lt_compile=`echo "$ac_compile" | $SED \
13735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13737 -e 's:$: $lt_compiler_flag:'`
13738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13739 (eval "$lt_compile" 2>out/conftest.err)
13740 ac_status=$?
13741 cat out/conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13744 then
13745 # The compiler can only warn and ignore the option if not recognized
13746 # So say no if there are warnings
13747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13750 lt_cv_prog_compiler_c_o_CXX=yes
13751 fi
13752 fi
13753 chmod u+w . 2>&5
13754 $RM conftest*
13755 # SGI C++ compiler will create directory out/ii_files/ for
13756 # template instantiation
13757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13758 $RM out/* && rmdir out
13759 cd ..
13760 $RM -r conftest
13761 $RM conftest*
13762
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13765$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13766
13767
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 13771if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
5f520819
KY
13772 $as_echo_n "(cached) " >&6
13773else
13774 lt_cv_prog_compiler_c_o_CXX=no
13775 $RM -r conftest 2>/dev/null
13776 mkdir conftest
13777 cd conftest
13778 mkdir out
13779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13780
13781 lt_compiler_flag="-o out/conftest2.$ac_objext"
13782 # Insert the option either (1) after the last *FLAGS variable, or
13783 # (2) before a word containing "conftest.", or (3) at the end.
13784 # Note that $ac_compile itself does not contain backslashes and begins
13785 # with a dollar sign (not a hyphen), so the echo should work correctly.
13786 lt_compile=`echo "$ac_compile" | $SED \
13787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13789 -e 's:$: $lt_compiler_flag:'`
13790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13791 (eval "$lt_compile" 2>out/conftest.err)
13792 ac_status=$?
13793 cat out/conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13796 then
13797 # The compiler can only warn and ignore the option if not recognized
13798 # So say no if there are warnings
13799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13802 lt_cv_prog_compiler_c_o_CXX=yes
13803 fi
13804 fi
13805 chmod u+w . 2>&5
13806 $RM conftest*
13807 # SGI C++ compiler will create directory out/ii_files/ for
13808 # template instantiation
13809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13810 $RM out/* && rmdir out
13811 cd ..
13812 $RM -r conftest
13813 $RM conftest*
13814
13815fi
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13817$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13818
13819
13820
13821
13822hard_links="nottested"
13823if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13824 # do not overwrite the value of need_locks provided by the user
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13826$as_echo_n "checking if we can lock with hard links... " >&6; }
13827 hard_links=yes
13828 $RM conftest*
13829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13830 touch conftest.a
13831 ln conftest.a conftest.b 2>&5 || hard_links=no
13832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13834$as_echo "$hard_links" >&6; }
13835 if test "$hard_links" = no; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13837$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13838 need_locks=warn
13839 fi
13840else
13841 need_locks=no
13842fi
13843
13844
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13847$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13848
13849 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13850 case $host_os in
13851 aix[4-9]*)
13852 # If we're using GNU nm, then we don't want the "-C" option.
13853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13854 # Also, AIX nm treats weak defined symbols like other global defined
13855 # symbols, whereas GNU nm marks them as "W".
13856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13857 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'
13858 else
84c1b9d3 13859 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'
5f520819
KY
13860 fi
13861 ;;
13862 pw32*)
13863 export_symbols_cmds_CXX="$ltdll_cmds"
13864 ;;
13865 cygwin* | mingw* | cegcc*)
13866 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'
13867 ;;
13868 *)
13869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13870 ;;
13871 esac
13872 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13873
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13875$as_echo "$ld_shlibs_CXX" >&6; }
13876test "$ld_shlibs_CXX" = no && can_build_shared=no
13877
13878with_gnu_ld_CXX=$with_gnu_ld
13879
13880
13881
13882
13883
13884
13885#
13886# Do we need to explicitly link libc?
13887#
13888case "x$archive_cmds_need_lc_CXX" in
13889x|xyes)
13890 # Assume -lc should be added
13891 archive_cmds_need_lc_CXX=yes
13892
13893 if test "$enable_shared" = yes && test "$GCC" = yes; then
13894 case $archive_cmds_CXX in
13895 *'~'*)
13896 # FIXME: we may have to deal with multi-command sequences.
13897 ;;
13898 '$CC '*)
13899 # Test whether the compiler implicitly links with -lc since on some
13900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13901 # to ld, don't add -lc before -lgcc.
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13903$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13904if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
5f520819
KY
13905 $as_echo_n "(cached) " >&6
13906else
13907 $RM conftest*
13908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13909
13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911 (eval $ac_compile) 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; } 2>conftest.err; then
13915 soname=conftest
13916 lib=conftest
13917 libobjs=conftest.$ac_objext
13918 deplibs=
13919 wl=$lt_prog_compiler_wl_CXX
13920 pic_flag=$lt_prog_compiler_pic_CXX
13921 compiler_flags=-v
13922 linker_flags=-v
13923 verstring=
13924 output_objdir=.
13925 libname=conftest
13926 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13927 allow_undefined_flag_CXX=
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13929 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; }
13933 then
13934 lt_cv_archive_cmds_need_lc_CXX=no
13935 else
13936 lt_cv_archive_cmds_need_lc_CXX=yes
13937 fi
13938 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13939 else
13940 cat conftest.err 1>&5
13941 fi
13942 $RM conftest*
13943
13944fi
13945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13946$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13947 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13948 ;;
13949 esac
13950 fi
13951 ;;
13952esac
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14018$as_echo_n "checking dynamic linker characteristics... " >&6; }
14019
14020library_names_spec=
14021libname_spec='lib$name'
14022soname_spec=
14023shrext_cmds=".so"
14024postinstall_cmds=
14025postuninstall_cmds=
14026finish_cmds=
14027finish_eval=
14028shlibpath_var=
14029shlibpath_overrides_runpath=unknown
14030version_type=none
14031dynamic_linker="$host_os ld.so"
14032sys_lib_dlsearch_path_spec="/lib /usr/lib"
14033need_lib_prefix=unknown
14034hardcode_into_libs=no
14035
14036# when you set need_version to no, make sure it does not cause -set_version
14037# flags to be left without arguments
14038need_version=unknown
14039
14040case $host_os in
14041aix3*)
14042 version_type=linux
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14044 shlibpath_var=LIBPATH
14045
14046 # AIX 3 has no versioning support, so we append a major version to the name.
14047 soname_spec='${libname}${release}${shared_ext}$major'
14048 ;;
14049
14050aix[4-9]*)
14051 version_type=linux
14052 need_lib_prefix=no
14053 need_version=no
14054 hardcode_into_libs=yes
14055 if test "$host_cpu" = ia64; then
14056 # AIX 5 supports IA64
14057 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 else
14060 # With GCC up to 2.95.x, collect2 would create an import file
14061 # for dependence libraries. The import file would start with
14062 # the line `#! .'. This would cause the generated library to
14063 # depend on `.', always an invalid library. This was fixed in
14064 # development snapshots of GCC prior to 3.0.
14065 case $host_os in
14066 aix4 | aix4.[01] | aix4.[01].*)
14067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14068 echo ' yes '
14069 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14070 :
14071 else
14072 can_build_shared=no
14073 fi
14074 ;;
14075 esac
14076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14077 # soname into executable. Probably we can add versioning support to
14078 # collect2, so additional links can be useful in future.
14079 if test "$aix_use_runtimelinking" = yes; then
14080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14081 # instead of lib<name>.a to let people know that these are not
14082 # typical AIX shared libraries.
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 else
14085 # We preserve .a as extension for shared libraries through AIX4.2
14086 # and later when we are not doing run time linking.
14087 library_names_spec='${libname}${release}.a $libname.a'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14089 fi
14090 shlibpath_var=LIBPATH
14091 fi
14092 ;;
14093
14094amigaos*)
14095 case $host_cpu in
14096 powerpc)
14097 # Since July 2007 AmigaOS4 officially supports .so libraries.
14098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 ;;
14101 m68k)
14102 library_names_spec='$libname.ixlibrary $libname.a'
14103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14104 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'
14105 ;;
14106 esac
14107 ;;
14108
14109beos*)
14110 library_names_spec='${libname}${shared_ext}'
14111 dynamic_linker="$host_os ld.so"
14112 shlibpath_var=LIBRARY_PATH
14113 ;;
14114
14115bsdi[45]*)
14116 version_type=linux
14117 need_version=no
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14124 # the default ld.so.conf also contains /usr/contrib/lib and
14125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14126 # libtool to hard-code these into programs
14127 ;;
14128
14129cygwin* | mingw* | pw32* | cegcc*)
14130 version_type=windows
14131 shrext_cmds=".dll"
14132 need_version=no
14133 need_lib_prefix=no
14134
14135 case $GCC,$host_os in
14136 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14137 library_names_spec='$libname.dll.a'
14138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14139 postinstall_cmds='base_file=`basename \${file}`~
14140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14141 dldir=$destdir/`dirname \$dlpath`~
14142 test -d \$dldir || mkdir -p \$dldir~
14143 $install_prog $dir/$dlname \$dldir/$dlname~
14144 chmod a+x \$dldir/$dlname~
14145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14147 fi'
14148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14149 dlpath=$dir/\$dldll~
14150 $RM \$dlpath'
14151 shlibpath_overrides_runpath=yes
14152
14153 case $host_os in
14154 cygwin*)
14155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14157
14158 ;;
14159 mingw* | cegcc*)
14160 # MinGW DLLs use traditional 'lib' prefix
14161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162 ;;
14163 pw32*)
14164 # pw32 DLLs use 'pw' prefix rather than 'lib'
14165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14166 ;;
14167 esac
14168 ;;
14169
14170 *)
14171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14172 ;;
14173 esac
14174 dynamic_linker='Win32 ld.exe'
14175 # FIXME: first we should search . and the directory the executable is in
14176 shlibpath_var=PATH
14177 ;;
14178
14179darwin* | rhapsody*)
14180 dynamic_linker="$host_os dyld"
14181 version_type=darwin
14182 need_lib_prefix=no
14183 need_version=no
14184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14185 soname_spec='${libname}${release}${major}$shared_ext'
14186 shlibpath_overrides_runpath=yes
14187 shlibpath_var=DYLD_LIBRARY_PATH
14188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14189
14190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14191 ;;
14192
14193dgux*)
14194 version_type=linux
14195 need_lib_prefix=no
14196 need_version=no
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 ;;
14201
14202freebsd* | dragonfly*)
14203 # DragonFly does not have aout. When/if they implement a new
14204 # versioning mechanism, adjust this.
14205 if test -x /usr/bin/objformat; then
14206 objformat=`/usr/bin/objformat`
14207 else
14208 case $host_os in
14209 freebsd[23].*) objformat=aout ;;
14210 *) objformat=elf ;;
14211 esac
14212 fi
14213 version_type=freebsd-$objformat
14214 case $version_type in
14215 freebsd-elf*)
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14217 need_version=no
14218 need_lib_prefix=no
14219 ;;
14220 freebsd-*)
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14222 need_version=yes
14223 ;;
14224 esac
14225 shlibpath_var=LD_LIBRARY_PATH
14226 case $host_os in
14227 freebsd2.*)
14228 shlibpath_overrides_runpath=yes
14229 ;;
14230 freebsd3.[01]* | freebsdelf3.[01]*)
14231 shlibpath_overrides_runpath=yes
14232 hardcode_into_libs=yes
14233 ;;
14234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14236 shlibpath_overrides_runpath=no
14237 hardcode_into_libs=yes
14238 ;;
14239 *) # from 4.6 on, and DragonFly
14240 shlibpath_overrides_runpath=yes
14241 hardcode_into_libs=yes
14242 ;;
14243 esac
14244 ;;
14245
14246gnu*)
14247 version_type=linux
14248 need_lib_prefix=no
14249 need_version=no
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 hardcode_into_libs=yes
14254 ;;
14255
14256haiku*)
14257 version_type=linux
14258 need_lib_prefix=no
14259 need_version=no
14260 dynamic_linker="$host_os runtime_loader"
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LIBRARY_PATH
14264 shlibpath_overrides_runpath=yes
14265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14266 hardcode_into_libs=yes
14267 ;;
14268
14269hpux9* | hpux10* | hpux11*)
14270 # Give a soname corresponding to the major version so that dld.sl refuses to
14271 # link against other versions.
14272 version_type=sunos
14273 need_lib_prefix=no
14274 need_version=no
14275 case $host_cpu in
14276 ia64*)
14277 shrext_cmds='.so'
14278 hardcode_into_libs=yes
14279 dynamic_linker="$host_os dld.so"
14280 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 if test "X$HPUX_IA64_MODE" = X32; then
14285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14286 else
14287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14288 fi
14289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14290 ;;
14291 hppa*64*)
14292 shrext_cmds='.sl'
14293 hardcode_into_libs=yes
14294 dynamic_linker="$host_os dld.sl"
14295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14301 ;;
14302 *)
14303 shrext_cmds='.sl'
14304 dynamic_linker="$host_os dld.sl"
14305 shlibpath_var=SHLIB_PATH
14306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 ;;
14310 esac
14311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14312 postinstall_cmds='chmod 555 $lib'
14313 # or fails outright, so override atomically:
14314 install_override_mode=555
14315 ;;
14316
14317interix[3-9]*)
14318 version_type=linux
14319 need_lib_prefix=no
14320 need_version=no
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 shlibpath_overrides_runpath=no
14326 hardcode_into_libs=yes
14327 ;;
14328
14329irix5* | irix6* | nonstopux*)
14330 case $host_os in
14331 nonstopux*) version_type=nonstopux ;;
14332 *)
14333 if test "$lt_cv_prog_gnu_ld" = yes; then
14334 version_type=linux
14335 else
14336 version_type=irix
14337 fi ;;
14338 esac
14339 need_lib_prefix=no
14340 need_version=no
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14343 case $host_os in
14344 irix5* | nonstopux*)
14345 libsuff= shlibsuff=
14346 ;;
14347 *)
14348 case $LD in # libtool.m4 will add one of these switches to LD
14349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14350 libsuff= shlibsuff= libmagic=32-bit;;
14351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14352 libsuff=32 shlibsuff=N32 libmagic=N32;;
14353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14355 *) libsuff= shlibsuff= libmagic=never-match;;
14356 esac
14357 ;;
14358 esac
14359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14360 shlibpath_overrides_runpath=no
14361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14363 hardcode_into_libs=yes
14364 ;;
14365
14366# No shared lib support for Linux oldld, aout, or coff.
14367linux*oldld* | linux*aout* | linux*coff*)
14368 dynamic_linker=no
14369 ;;
14370
14371# This must be Linux ELF.
14372linux* | k*bsd*-gnu | kopensolaris*-gnu)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=no
14381
14382 # Some binutils ld are patched to set DT_RUNPATH
22e05272 14383 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5f520819
KY
14384 $as_echo_n "(cached) " >&6
14385else
14386 lt_cv_shlibpath_overrides_runpath=no
14387 save_LDFLAGS=$LDFLAGS
14388 save_libdir=$libdir
14389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392/* end confdefs.h. */
14393
14394int
14395main ()
14396{
14397
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402if ac_fn_cxx_try_link "$LINENO"; then :
14403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14404 lt_cv_shlibpath_overrides_runpath=yes
14405fi
14406fi
14407rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LDFLAGS=$save_LDFLAGS
14410 libdir=$save_libdir
14411
14412fi
14413
14414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14415
14416 # This implies no fast_install, which is unacceptable.
14417 # Some rework will be needed to allow for fast_install
14418 # before this can be enabled.
14419 hardcode_into_libs=yes
14420
14421 # Append ld.so.conf contents to the search path
14422 if test -f /etc/ld.so.conf; then
14423 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' ' '`
14424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14425 fi
14426
14427 # We used to test for /lib/ld.so.1 and disable shared libraries on
14428 # powerpc, because MkLinux only supported shared libraries with the
14429 # GNU dynamic linker. Since this was broken with cross compilers,
14430 # most powerpc-linux boxes support dynamic linking these days and
14431 # people can always --disable-shared, the test was removed, and we
14432 # assume the GNU/Linux dynamic linker is in use.
14433 dynamic_linker='GNU/Linux ld.so'
14434 ;;
14435
14436netbsd*)
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443 dynamic_linker='NetBSD (a.out) ld.so'
14444 else
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 dynamic_linker='NetBSD ld.elf_so'
14448 fi
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 hardcode_into_libs=yes
14452 ;;
14453
14454newsos6)
14455 version_type=linux
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath=yes
14459 ;;
14460
14461*nto* | *qnx*)
14462 version_type=qnx
14463 need_lib_prefix=no
14464 need_version=no
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=no
14469 hardcode_into_libs=yes
14470 dynamic_linker='ldqnx.so'
14471 ;;
14472
14473openbsd*)
14474 version_type=sunos
14475 sys_lib_dlsearch_path_spec="/usr/lib"
14476 need_lib_prefix=no
14477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14478 case $host_os in
14479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14480 *) need_version=no ;;
14481 esac
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14486 case $host_os in
14487 openbsd2.[89] | openbsd2.[89].*)
14488 shlibpath_overrides_runpath=no
14489 ;;
14490 *)
14491 shlibpath_overrides_runpath=yes
14492 ;;
14493 esac
14494 else
14495 shlibpath_overrides_runpath=yes
14496 fi
14497 ;;
14498
14499os2*)
14500 libname_spec='$name'
14501 shrext_cmds=".dll"
14502 need_lib_prefix=no
14503 library_names_spec='$libname${shared_ext} $libname.a'
14504 dynamic_linker='OS/2 ld.exe'
14505 shlibpath_var=LIBPATH
14506 ;;
14507
14508osf3* | osf4* | osf5*)
14509 version_type=osf
14510 need_lib_prefix=no
14511 need_version=no
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14517 ;;
14518
14519rdos*)
14520 dynamic_linker=no
14521 ;;
14522
14523solaris*)
14524 version_type=linux
14525 need_lib_prefix=no
14526 need_version=no
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 shlibpath_overrides_runpath=yes
14531 hardcode_into_libs=yes
14532 # ldd complains unless libraries are executable
14533 postinstall_cmds='chmod +x $lib'
14534 ;;
14535
14536sunos4*)
14537 version_type=sunos
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=yes
14542 if test "$with_gnu_ld" = yes; then
14543 need_lib_prefix=no
14544 fi
14545 need_version=yes
14546 ;;
14547
14548sysv4 | sysv4.3*)
14549 version_type=linux
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 case $host_vendor in
14554 sni)
14555 shlibpath_overrides_runpath=no
14556 need_lib_prefix=no
14557 runpath_var=LD_RUN_PATH
14558 ;;
14559 siemens)
14560 need_lib_prefix=no
14561 ;;
14562 motorola)
14563 need_lib_prefix=no
14564 need_version=no
14565 shlibpath_overrides_runpath=no
14566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14567 ;;
14568 esac
14569 ;;
14570
14571sysv4*MP*)
14572 if test -d /usr/nec ;then
14573 version_type=linux
14574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14575 soname_spec='$libname${shared_ext}.$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 fi
14578 ;;
14579
14580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14581 version_type=freebsd-elf
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 hardcode_into_libs=yes
14589 if test "$with_gnu_ld" = yes; then
14590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14591 else
14592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14593 case $host_os in
14594 sco3.2v5*)
14595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14596 ;;
14597 esac
14598 fi
14599 sys_lib_dlsearch_path_spec='/usr/lib'
14600 ;;
14601
14602tpf*)
14603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14604 version_type=linux
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14611 ;;
14612
14613uts4*)
14614 version_type=linux
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 ;;
14619
14620*)
14621 dynamic_linker=no
14622 ;;
14623esac
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14625$as_echo "$dynamic_linker" >&6; }
14626test "$dynamic_linker" = no && can_build_shared=no
14627
14628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14629if test "$GCC" = yes; then
14630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14631fi
14632
14633if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14635fi
14636if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14638fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14678$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14679hardcode_action_CXX=
14680if test -n "$hardcode_libdir_flag_spec_CXX" ||
14681 test -n "$runpath_var_CXX" ||
14682 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14683
14684 # We can hardcode non-existent directories.
14685 if test "$hardcode_direct_CXX" != no &&
14686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14687 # have to relink, otherwise we might link with an installed library
14688 # when we should be linking with a yet-to-be-installed one
14689 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14690 test "$hardcode_minus_L_CXX" != no; then
14691 # Linking always hardcodes the temporary library directory.
14692 hardcode_action_CXX=relink
14693 else
14694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14695 hardcode_action_CXX=immediate
14696 fi
14697else
14698 # We cannot hardcode anything, or else we can only hardcode existing
14699 # directories.
14700 hardcode_action_CXX=unsupported
14701fi
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14703$as_echo "$hardcode_action_CXX" >&6; }
14704
14705if test "$hardcode_action_CXX" = relink ||
14706 test "$inherit_rpath_CXX" = yes; then
14707 # Fast installation is not supported
14708 enable_fast_install=no
14709elif test "$shlibpath_overrides_runpath" = yes ||
14710 test "$enable_shared" = no; then
14711 # Fast installation is not necessary
14712 enable_fast_install=needless
14713fi
14714
14715
14716
14717
14718
14719
14720
14721 fi # test -n "$compiler"
14722
14723 CC=$lt_save_CC
14724 LDCXX=$LD
14725 LD=$lt_save_LD
14726 GCC=$lt_save_GCC
14727 with_gnu_ld=$lt_save_with_gnu_ld
14728 lt_cv_path_LDCXX=$lt_cv_path_LD
14729 lt_cv_path_LD=$lt_save_path_LD
14730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14732fi # test "$_lt_caught_CXX_error" != yes
14733
14734ac_ext=c
14735ac_cpp='$CPP $CPPFLAGS'
14736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738ac_compiler_gnu=$ac_cv_c_compiler_gnu
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752 ac_config_commands="$ac_config_commands libtool"
14753
14754
14755
14756
14757# Only expand once:
14758
14759
14760# Forbid libtool to hardcode RPATH, because we want to be able to specify
14761# library search directory using LD_LIBRARY_PATH
14762hardcode_into_libs=no
14763
14764
14765
14766
14767
14768if test $enable_shared = yes; then
14769 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14770 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14771else
14772 link_offloadmic_host="-loffloadmic_host $LIBS"
14773 link_offloadmic_target="-loffloadmic_target $LIBS"
14774fi
14775
14776
14777
3c36aa6b
JJ
14778# Determine what GCC version number to use in filesystem paths.
14779
14780 get_gcc_base_ver="cat"
14781
14782# Check whether --with-gcc-major-version-only was given.
14783if test "${with_gcc_major_version_only+set}" = set; then :
14784 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 14785 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
14786 fi
14787
14788fi
14789
14790
14791
14792
5f520819
KY
14793# Must be last
14794cat >confcache <<\_ACEOF
14795# This file is a shell script that caches the results of configure
14796# tests run on this system so they can be shared between configure
14797# scripts and configure runs, see configure's option --config-cache.
14798# It is not useful on other systems. If it contains results you don't
14799# want to keep, you may remove or edit it.
14800#
14801# config.status only pays attention to the cache file if you give it
14802# the --recheck option to rerun configure.
14803#
14804# `ac_cv_env_foo' variables (set or unset) will be overridden when
14805# loading this file, other *unset* `ac_cv_foo' will be assigned the
14806# following values.
14807
14808_ACEOF
14809
14810# The following way of writing the cache mishandles newlines in values,
14811# but we know of no workaround that is simple, portable, and efficient.
14812# So, we kill variables containing newlines.
14813# Ultrix sh set writes to stderr and can't be redirected directly,
14814# and sets the high bit in the cache file unless we assign to the vars.
14815(
14816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14817 eval ac_val=\$$ac_var
14818 case $ac_val in #(
14819 *${as_nl}*)
14820 case $ac_var in #(
14821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14822$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14823 esac
14824 case $ac_var in #(
14825 _ | IFS | as_nl) ;; #(
14826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14827 *) { eval $ac_var=; unset $ac_var;} ;;
14828 esac ;;
14829 esac
14830 done
14831
14832 (set) 2>&1 |
14833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14834 *${as_nl}ac_space=\ *)
14835 # `set' does not quote correctly, so add quotes: double-quote
14836 # substitution turns \\\\ into \\, and sed turns \\ into \.
14837 sed -n \
14838 "s/'/'\\\\''/g;
14839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14840 ;; #(
14841 *)
14842 # `set' quotes correctly as required by POSIX, so do not add quotes.
14843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14844 ;;
14845 esac |
14846 sort
14847) |
14848 sed '
14849 /^ac_cv_env_/b end
14850 t clear
14851 :clear
14852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14853 t end
14854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14855 :end' >>confcache
14856if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14857 if test -w "$cache_file"; then
22e05272 14858 if test "x$cache_file" != "x/dev/null"; then
5f520819
KY
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14860$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
14861 if test ! -f "$cache_file" || test -h "$cache_file"; then
14862 cat confcache >"$cache_file"
14863 else
14864 case $cache_file in #(
14865 */* | ?:*)
14866 mv -f confcache "$cache_file"$$ &&
14867 mv -f "$cache_file"$$ "$cache_file" ;; #(
14868 *)
14869 mv -f confcache "$cache_file" ;;
14870 esac
14871 fi
14872 fi
5f520819
KY
14873 else
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14875$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14876 fi
14877fi
14878rm -f confcache
14879
14880test "x$prefix" = xNONE && prefix=$ac_default_prefix
14881# Let make expand exec_prefix.
14882test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14883
14884# Transform confdefs.h into DEFS.
14885# Protect against shell expansion while executing Makefile rules.
14886# Protect against Makefile macro expansion.
14887#
14888# If the first sed substitution is executed (which looks for macros that
14889# take arguments), then branch to the quote section. Otherwise,
14890# look for a macro that doesn't take arguments.
14891ac_script='
14892:mline
14893/\\$/{
14894 N
14895 s,\\\n,,
14896 b mline
14897}
14898t clear
14899:clear
14900s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14901t quote
14902s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14903t quote
14904b any
14905:quote
14906s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14907s/\[/\\&/g
14908s/\]/\\&/g
14909s/\$/$$/g
14910H
14911:any
14912${
14913 g
14914 s/^\n//
14915 s/\n/ /g
14916 p
14917}
14918'
14919DEFS=`sed -n "$ac_script" confdefs.h`
14920
14921
14922ac_libobjs=
14923ac_ltlibobjs=
22e05272 14924U=
5f520819
KY
14925for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14926 # 1. Remove the extension, and $U if already installed.
14927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14930 # will be set to the directory where LIBOBJS objects are built.
14931 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14932 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14933done
14934LIBOBJS=$ac_libobjs
14935
14936LTLIBOBJS=$ac_ltlibobjs
14937
14938
22e05272
JM
14939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14940$as_echo_n "checking that generated files are newer than configure... " >&6; }
14941 if test -n "$am_sleep_pid"; then
14942 # Hide warnings about reused PIDs.
14943 wait $am_sleep_pid 2>/dev/null
14944 fi
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14946$as_echo "done" >&6; }
5f520819
KY
14947 if test -n "$EXEEXT"; then
14948 am__EXEEXT_TRUE=
14949 am__EXEEXT_FALSE='#'
14950else
14951 am__EXEEXT_TRUE='#'
14952 am__EXEEXT_FALSE=
14953fi
14954
14955if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 14956 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5f520819
KY
14957Usually this means the macro was only invoked conditionally." "$LINENO" 5
14958fi
14959if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 14960 as_fn_error $? "conditional \"AMDEP\" was never defined.
5f520819
KY
14961Usually this means the macro was only invoked conditionally." "$LINENO" 5
14962fi
14963if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 14964 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5f520819
KY
14965Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966fi
14967if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 14968 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5f520819
KY
14969Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970fi
14971if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
22e05272 14972 as_fn_error $? "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
5f520819
KY
14973Usually this means the macro was only invoked conditionally." "$LINENO" 5
14974fi
14975
22e05272 14976: "${CONFIG_STATUS=./config.status}"
5f520819
KY
14977ac_write_fail=0
14978ac_clean_files_save=$ac_clean_files
14979ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14980{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14981$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14982as_write_fail=0
14983cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14984#! $SHELL
14985# Generated by $as_me.
14986# Run this file to recreate the current configuration.
14987# Compiler output produced by configure, useful for debugging
14988# configure, is in config.log if it exists.
14989
14990debug=false
14991ac_cs_recheck=false
14992ac_cs_silent=false
14993
14994SHELL=\${CONFIG_SHELL-$SHELL}
14995export SHELL
14996_ASEOF
14997cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14998## -------------------- ##
14999## M4sh Initialization. ##
15000## -------------------- ##
15001
15002# Be more Bourne compatible
15003DUALCASE=1; export DUALCASE # for MKS sh
15004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15005 emulate sh
15006 NULLCMD=:
15007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15008 # is contrary to our usage. Disable this feature.
15009 alias -g '${1+"$@"}'='"$@"'
15010 setopt NO_GLOB_SUBST
15011else
15012 case `(set -o) 2>/dev/null` in #(
15013 *posix*) :
15014 set -o posix ;; #(
15015 *) :
15016 ;;
15017esac
15018fi
15019
15020
15021as_nl='
15022'
15023export as_nl
15024# Printing a long string crashes Solaris 7 /usr/bin/printf.
15025as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15026as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15027as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15028# Prefer a ksh shell builtin over an external printf program on Solaris,
15029# but without wasting forks for bash or zsh.
15030if test -z "$BASH_VERSION$ZSH_VERSION" \
15031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15032 as_echo='print -r --'
15033 as_echo_n='print -rn --'
15034elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15035 as_echo='printf %s\n'
15036 as_echo_n='printf %s'
15037else
15038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15040 as_echo_n='/usr/ucb/echo -n'
15041 else
15042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15043 as_echo_n_body='eval
15044 arg=$1;
15045 case $arg in #(
15046 *"$as_nl"*)
15047 expr "X$arg" : "X\\(.*\\)$as_nl";
15048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15049 esac;
15050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15051 '
15052 export as_echo_n_body
15053 as_echo_n='sh -c $as_echo_n_body as_echo'
15054 fi
15055 export as_echo_body
15056 as_echo='sh -c $as_echo_body as_echo'
15057fi
15058
15059# The user is always right.
15060if test "${PATH_SEPARATOR+set}" != set; then
15061 PATH_SEPARATOR=:
15062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15064 PATH_SEPARATOR=';'
15065 }
15066fi
15067
15068
15069# IFS
15070# We need space, tab and new line, in precisely that order. Quoting is
15071# there to prevent editors from complaining about space-tab.
15072# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15073# splitting by setting IFS to empty value.)
15074IFS=" "" $as_nl"
15075
15076# Find who we are. Look in the path if we contain no directory separator.
22e05272 15077as_myself=
5f520819
KY
15078case $0 in #((
15079 *[\\/]* ) as_myself=$0 ;;
15080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15081for as_dir in $PATH
15082do
15083 IFS=$as_save_IFS
15084 test -z "$as_dir" && as_dir=.
15085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15086 done
15087IFS=$as_save_IFS
15088
15089 ;;
15090esac
15091# We did not find ourselves, most probably we were run as `sh COMMAND'
15092# in which case we are not to be found in the path.
15093if test "x$as_myself" = x; then
15094 as_myself=$0
15095fi
15096if test ! -f "$as_myself"; then
15097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15098 exit 1
15099fi
15100
15101# Unset variables that we do not need and which cause bugs (e.g. in
15102# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15103# suppresses any "Segmentation fault" message there. '((' could
15104# trigger a bug in pdksh 5.2.14.
15105for as_var in BASH_ENV ENV MAIL MAILPATH
15106do eval test x\${$as_var+set} = xset \
15107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15108done
15109PS1='$ '
15110PS2='> '
15111PS4='+ '
15112
15113# NLS nuisances.
15114LC_ALL=C
15115export LC_ALL
15116LANGUAGE=C
15117export LANGUAGE
15118
15119# CDPATH.
15120(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15121
15122
22e05272
JM
15123# as_fn_error STATUS ERROR [LINENO LOG_FD]
15124# ----------------------------------------
5f520819
KY
15125# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15126# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 15127# script with STATUS, using 1 if that was 0.
5f520819
KY
15128as_fn_error ()
15129{
22e05272
JM
15130 as_status=$1; test $as_status -eq 0 && as_status=1
15131 if test "$4"; then
15132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5f520819 15134 fi
22e05272 15135 $as_echo "$as_me: error: $2" >&2
5f520819
KY
15136 as_fn_exit $as_status
15137} # as_fn_error
15138
15139
15140# as_fn_set_status STATUS
15141# -----------------------
15142# Set $? to STATUS, without forking.
15143as_fn_set_status ()
15144{
15145 return $1
15146} # as_fn_set_status
15147
15148# as_fn_exit STATUS
15149# -----------------
15150# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15151as_fn_exit ()
15152{
15153 set +e
15154 as_fn_set_status $1
15155 exit $1
15156} # as_fn_exit
15157
15158# as_fn_unset VAR
15159# ---------------
15160# Portably unset VAR.
15161as_fn_unset ()
15162{
15163 { eval $1=; unset $1;}
15164}
15165as_unset=as_fn_unset
15166# as_fn_append VAR VALUE
15167# ----------------------
15168# Append the text in VALUE to the end of the definition contained in VAR. Take
15169# advantage of any shell optimizations that allow amortized linear growth over
15170# repeated appends, instead of the typical quadratic growth present in naive
15171# implementations.
15172if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15173 eval 'as_fn_append ()
15174 {
15175 eval $1+=\$2
15176 }'
15177else
15178 as_fn_append ()
15179 {
15180 eval $1=\$$1\$2
15181 }
15182fi # as_fn_append
15183
15184# as_fn_arith ARG...
15185# ------------------
15186# Perform arithmetic evaluation on the ARGs, and store the result in the
15187# global $as_val. Take advantage of shells that can avoid forks. The arguments
15188# must be portable across $(()) and expr.
15189if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15190 eval 'as_fn_arith ()
15191 {
15192 as_val=$(( $* ))
15193 }'
15194else
15195 as_fn_arith ()
15196 {
15197 as_val=`expr "$@" || test $? -eq 1`
15198 }
15199fi # as_fn_arith
15200
15201
15202if expr a : '\(a\)' >/dev/null 2>&1 &&
15203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15204 as_expr=expr
15205else
15206 as_expr=false
15207fi
15208
15209if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15210 as_basename=basename
15211else
15212 as_basename=false
15213fi
15214
15215if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15216 as_dirname=dirname
15217else
15218 as_dirname=false
15219fi
15220
15221as_me=`$as_basename -- "$0" ||
15222$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15223 X"$0" : 'X\(//\)$' \| \
15224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15225$as_echo X/"$0" |
15226 sed '/^.*\/\([^/][^/]*\)\/*$/{
15227 s//\1/
15228 q
15229 }
15230 /^X\/\(\/\/\)$/{
15231 s//\1/
15232 q
15233 }
15234 /^X\/\(\/\).*/{
15235 s//\1/
15236 q
15237 }
15238 s/.*/./; q'`
15239
15240# Avoid depending upon Character Ranges.
15241as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15242as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15243as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15244as_cr_digits='0123456789'
15245as_cr_alnum=$as_cr_Letters$as_cr_digits
15246
15247ECHO_C= ECHO_N= ECHO_T=
15248case `echo -n x` in #(((((
15249-n*)
15250 case `echo 'xy\c'` in
15251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15252 xy) ECHO_C='\c';;
15253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15254 ECHO_T=' ';;
15255 esac;;
15256*)
15257 ECHO_N='-n';;
15258esac
15259
15260rm -f conf$$ conf$$.exe conf$$.file
15261if test -d conf$$.dir; then
15262 rm -f conf$$.dir/conf$$.file
15263else
15264 rm -f conf$$.dir
15265 mkdir conf$$.dir 2>/dev/null
15266fi
15267if (echo >conf$$.file) 2>/dev/null; then
15268 if ln -s conf$$.file conf$$ 2>/dev/null; then
15269 as_ln_s='ln -s'
15270 # ... but there are two gotchas:
15271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 15273 # In both cases, we have to default to `cp -pR'.
5f520819 15274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 15275 as_ln_s='cp -pR'
5f520819
KY
15276 elif ln conf$$.file conf$$ 2>/dev/null; then
15277 as_ln_s=ln
15278 else
22e05272 15279 as_ln_s='cp -pR'
5f520819
KY
15280 fi
15281else
22e05272 15282 as_ln_s='cp -pR'
5f520819
KY
15283fi
15284rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15285rmdir conf$$.dir 2>/dev/null
15286
15287
15288# as_fn_mkdir_p
15289# -------------
15290# Create "$as_dir" as a directory, including parents if necessary.
15291as_fn_mkdir_p ()
15292{
15293
15294 case $as_dir in #(
15295 -*) as_dir=./$as_dir;;
15296 esac
15297 test -d "$as_dir" || eval $as_mkdir_p || {
15298 as_dirs=
15299 while :; do
15300 case $as_dir in #(
15301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15302 *) as_qdir=$as_dir;;
15303 esac
15304 as_dirs="'$as_qdir' $as_dirs"
15305 as_dir=`$as_dirname -- "$as_dir" ||
15306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15307 X"$as_dir" : 'X\(//\)[^/]' \| \
15308 X"$as_dir" : 'X\(//\)$' \| \
15309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15310$as_echo X"$as_dir" |
15311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15312 s//\1/
15313 q
15314 }
15315 /^X\(\/\/\)[^/].*/{
15316 s//\1/
15317 q
15318 }
15319 /^X\(\/\/\)$/{
15320 s//\1/
15321 q
15322 }
15323 /^X\(\/\).*/{
15324 s//\1/
15325 q
15326 }
15327 s/.*/./; q'`
15328 test -d "$as_dir" && break
15329 done
15330 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 15331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5f520819
KY
15332
15333
15334} # as_fn_mkdir_p
15335if mkdir -p . 2>/dev/null; then
15336 as_mkdir_p='mkdir -p "$as_dir"'
15337else
15338 test -d ./-p && rmdir ./-p
15339 as_mkdir_p=false
15340fi
15341
22e05272
JM
15342
15343# as_fn_executable_p FILE
15344# -----------------------
15345# Test if FILE is an executable regular file.
15346as_fn_executable_p ()
15347{
15348 test -f "$1" && test -x "$1"
15349} # as_fn_executable_p
15350as_test_x='test -x'
15351as_executable_p=as_fn_executable_p
5f520819
KY
15352
15353# Sed expression to map a string onto a valid CPP name.
15354as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15355
15356# Sed expression to map a string onto a valid variable name.
15357as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15358
15359
15360exec 6>&1
15361## ----------------------------------- ##
15362## Main body of $CONFIG_STATUS script. ##
15363## ----------------------------------- ##
15364_ASEOF
15365test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15366
15367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368# Save the log message, to keep $0 and so on meaningful, and to
15369# report actual input values of CONFIG_FILES etc. instead of their
15370# values after options handling.
15371ac_log="
15372This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
22e05272 15373generated by GNU Autoconf 2.69. Invocation command line was
5f520819
KY
15374
15375 CONFIG_FILES = $CONFIG_FILES
15376 CONFIG_HEADERS = $CONFIG_HEADERS
15377 CONFIG_LINKS = $CONFIG_LINKS
15378 CONFIG_COMMANDS = $CONFIG_COMMANDS
15379 $ $0 $@
15380
15381on `(hostname || uname -n) 2>/dev/null | sed 1q`
15382"
15383
15384_ACEOF
15385
15386case $ac_config_files in *"
15387"*) set x $ac_config_files; shift; ac_config_files=$*;;
15388esac
15389
15390
15391
15392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15393# Files that config.status was made for.
15394config_files="$ac_config_files"
15395config_commands="$ac_config_commands"
15396
15397_ACEOF
15398
15399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400ac_cs_usage="\
15401\`$as_me' instantiates files and other configuration actions
15402from templates according to the current configuration. Unless the files
15403and actions are specified as TAGs, all are instantiated by default.
15404
15405Usage: $0 [OPTION]... [TAG]...
15406
15407 -h, --help print this help, then exit
15408 -V, --version print version number and configuration settings, then exit
22e05272 15409 --config print configuration, then exit
5f520819
KY
15410 -q, --quiet, --silent
15411 do not print progress messages
15412 -d, --debug don't remove temporary files
15413 --recheck update $as_me by reconfiguring in the same conditions
15414 --file=FILE[:TEMPLATE]
15415 instantiate the configuration file FILE
15416
15417Configuration files:
15418$config_files
15419
15420Configuration commands:
15421$config_commands
15422
15423Report bugs to the package provider."
15424
15425_ACEOF
15426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15427ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5f520819
KY
15428ac_cs_version="\\
15429MIC Offload Runtime Library config.status 1.0
22e05272
JM
15430configured by $0, generated by GNU Autoconf 2.69,
15431 with options \\"\$ac_cs_config\\"
5f520819 15432
22e05272 15433Copyright (C) 2012 Free Software Foundation, Inc.
5f520819
KY
15434This config.status script is free software; the Free Software Foundation
15435gives unlimited permission to copy, distribute and modify it."
15436
15437ac_pwd='$ac_pwd'
15438srcdir='$srcdir'
15439INSTALL='$INSTALL'
15440MKDIR_P='$MKDIR_P'
15441AWK='$AWK'
15442test -n "\$AWK" || AWK=awk
15443_ACEOF
15444
15445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15446# The default lists apply if the user does not specify any file.
15447ac_need_defaults=:
15448while test $# != 0
15449do
15450 case $1 in
22e05272 15451 --*=?*)
5f520819
KY
15452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15454 ac_shift=:
15455 ;;
22e05272
JM
15456 --*=)
15457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15458 ac_optarg=
15459 ac_shift=:
15460 ;;
5f520819
KY
15461 *)
15462 ac_option=$1
15463 ac_optarg=$2
15464 ac_shift=shift
15465 ;;
15466 esac
15467
15468 case $ac_option in
15469 # Handling of the options.
15470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15471 ac_cs_recheck=: ;;
15472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15473 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
15474 --config | --confi | --conf | --con | --co | --c )
15475 $as_echo "$ac_cs_config"; exit ;;
5f520819
KY
15476 --debug | --debu | --deb | --de | --d | -d )
15477 debug=: ;;
15478 --file | --fil | --fi | --f )
15479 $ac_shift
15480 case $ac_optarg in
15481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 15482 '') as_fn_error $? "missing file argument" ;;
5f520819
KY
15483 esac
15484 as_fn_append CONFIG_FILES " '$ac_optarg'"
15485 ac_need_defaults=false;;
15486 --he | --h | --help | --hel | -h )
15487 $as_echo "$ac_cs_usage"; exit ;;
15488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15490 ac_cs_silent=: ;;
15491
15492 # This is an error.
22e05272 15493 -*) as_fn_error $? "unrecognized option: \`$1'
5f520819
KY
15494Try \`$0 --help' for more information." ;;
15495
15496 *) as_fn_append ac_config_targets " $1"
15497 ac_need_defaults=false ;;
15498
15499 esac
15500 shift
15501done
15502
15503ac_configure_extra_args=
15504
15505if $ac_cs_silent; then
15506 exec 6>/dev/null
15507 ac_configure_extra_args="$ac_configure_extra_args --silent"
15508fi
15509
15510_ACEOF
15511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512if \$ac_cs_recheck; then
22e05272 15513 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5f520819
KY
15514 shift
15515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15516 CONFIG_SHELL='$SHELL'
15517 export CONFIG_SHELL
15518 exec "\$@"
15519fi
15520
15521_ACEOF
15522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523exec 5>>config.log
15524{
15525 echo
15526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15527## Running $as_me. ##
15528_ASBOX
15529 $as_echo "$ac_log"
15530} >&5
15531
15532_ACEOF
15533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534#
15535# INIT-COMMANDS
15536#
15537AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15538
15539srcdir="$srcdir"
15540host="$host"
15541target="$target"
15542with_multisubdir="$with_multisubdir"
15543with_multisrctop="$with_multisrctop"
15544with_target_subdir="$with_target_subdir"
15545ac_configure_args="${multilib_arg} ${ac_configure_args}"
15546multi_basedir="$multi_basedir"
15547CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15548CC="$CC"
15549CXX="$CXX"
15550GFORTRAN="$GFORTRAN"
22e05272 15551GDC="$GDC"
5f520819
KY
15552
15553
15554# The HP-UX ksh and POSIX shell print the target directory to stdout
15555# if CDPATH is set.
15556(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15557
15558sed_quote_subst='$sed_quote_subst'
15559double_quote_subst='$double_quote_subst'
15560delay_variable_subst='$delay_variable_subst'
15561macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15562macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15563enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15564enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15565pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15566enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15567SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15568ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15569host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15570host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15571host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15572build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15573build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15574build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15575SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15576Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15577GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15578EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15579FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15580LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15581NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15582LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15583max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15584ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15585exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15586lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15587lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15588lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15589reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15590reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15591OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15592deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15593file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15594AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15595AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15596STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15597RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15598old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15599old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15600old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15601lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15602CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15603CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15604compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15605GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15606lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15607lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15608lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15609lt_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"`'
15610objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15611MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15612lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15613lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15614lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15615lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15616lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15617need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15618DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15619NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15620LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15621OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15622OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15623libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15624shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15625extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15626archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15627enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15628export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15629whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15630compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15631old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15632old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15633archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15634archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15635module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15636module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15637with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15638allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15639no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15640hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15641hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15642hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15643hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15644hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15645hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15646hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15647hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15648inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15649link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15650fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15651always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15652export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15653exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15654include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15655prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15656file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15657variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15658need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15659need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15660version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15661runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15662shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15663shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15664libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15665library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15666soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15667install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15668postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15669postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15670finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15671finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15672hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15673sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15674sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15675hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15676enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15677enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15678enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15679old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15680striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15681compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15682predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15683postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15684predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15685postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15686compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15687LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15688reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15689reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15690old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15691compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15692GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15693lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15694lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15695lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15696lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15697lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15698archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15699enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15700export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15701whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15702compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15703old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15704old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15705archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15706archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15707module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15708module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15709with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15710allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15711no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15712hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15713hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15714hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15715hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15716hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15717hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15718hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15719hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15720inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15721link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15722fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15723always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15724export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15725exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15726include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15727prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15728file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15729hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15730compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15731predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15732postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15733predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15734postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15735compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15736
15737LTCC='$LTCC'
15738LTCFLAGS='$LTCFLAGS'
15739compiler='$compiler_DEFAULT'
15740
15741# A function that is used when there is no print builtin or printf.
15742func_fallback_echo ()
15743{
15744 eval 'cat <<_LTECHO_EOF
15745\$1
15746_LTECHO_EOF'
15747}
15748
15749# Quote evaled strings.
15750for var in SHELL \
15751ECHO \
15752SED \
15753GREP \
15754EGREP \
15755FGREP \
15756LD \
15757NM \
15758LN_S \
15759lt_SP2NL \
15760lt_NL2SP \
15761reload_flag \
15762OBJDUMP \
15763deplibs_check_method \
15764file_magic_cmd \
15765AR \
15766AR_FLAGS \
15767STRIP \
15768RANLIB \
15769CC \
15770CFLAGS \
15771compiler \
15772lt_cv_sys_global_symbol_pipe \
15773lt_cv_sys_global_symbol_to_cdecl \
15774lt_cv_sys_global_symbol_to_c_name_address \
15775lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15776lt_prog_compiler_no_builtin_flag \
15777lt_prog_compiler_wl \
15778lt_prog_compiler_pic \
15779lt_prog_compiler_static \
15780lt_cv_prog_compiler_c_o \
15781need_locks \
15782DSYMUTIL \
15783NMEDIT \
15784LIPO \
15785OTOOL \
15786OTOOL64 \
15787shrext_cmds \
15788export_dynamic_flag_spec \
15789whole_archive_flag_spec \
15790compiler_needs_object \
15791with_gnu_ld \
15792allow_undefined_flag \
15793no_undefined_flag \
15794hardcode_libdir_flag_spec \
15795hardcode_libdir_flag_spec_ld \
15796hardcode_libdir_separator \
15797fix_srcfile_path \
15798exclude_expsyms \
15799include_expsyms \
15800file_list_spec \
15801variables_saved_for_relink \
15802libname_spec \
15803library_names_spec \
15804soname_spec \
15805install_override_mode \
15806finish_eval \
15807old_striplib \
15808striplib \
15809compiler_lib_search_dirs \
15810predep_objects \
15811postdep_objects \
15812predeps \
15813postdeps \
15814compiler_lib_search_path \
15815LD_CXX \
15816reload_flag_CXX \
15817compiler_CXX \
15818lt_prog_compiler_no_builtin_flag_CXX \
15819lt_prog_compiler_wl_CXX \
15820lt_prog_compiler_pic_CXX \
15821lt_prog_compiler_static_CXX \
15822lt_cv_prog_compiler_c_o_CXX \
15823export_dynamic_flag_spec_CXX \
15824whole_archive_flag_spec_CXX \
15825compiler_needs_object_CXX \
15826with_gnu_ld_CXX \
15827allow_undefined_flag_CXX \
15828no_undefined_flag_CXX \
15829hardcode_libdir_flag_spec_CXX \
15830hardcode_libdir_flag_spec_ld_CXX \
15831hardcode_libdir_separator_CXX \
15832fix_srcfile_path_CXX \
15833exclude_expsyms_CXX \
15834include_expsyms_CXX \
15835file_list_spec_CXX \
15836compiler_lib_search_dirs_CXX \
15837predep_objects_CXX \
15838postdep_objects_CXX \
15839predeps_CXX \
15840postdeps_CXX \
15841compiler_lib_search_path_CXX; do
15842 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15843 *[\\\\\\\`\\"\\\$]*)
15844 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15845 ;;
15846 *)
15847 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15848 ;;
15849 esac
15850done
15851
15852# Double-quote double-evaled strings.
15853for var in reload_cmds \
15854old_postinstall_cmds \
15855old_postuninstall_cmds \
15856old_archive_cmds \
15857extract_expsyms_cmds \
15858old_archive_from_new_cmds \
15859old_archive_from_expsyms_cmds \
15860archive_cmds \
15861archive_expsym_cmds \
15862module_cmds \
15863module_expsym_cmds \
15864export_symbols_cmds \
15865prelink_cmds \
15866postinstall_cmds \
15867postuninstall_cmds \
15868finish_cmds \
15869sys_lib_search_path_spec \
15870sys_lib_dlsearch_path_spec \
15871reload_cmds_CXX \
15872old_archive_cmds_CXX \
15873old_archive_from_new_cmds_CXX \
15874old_archive_from_expsyms_cmds_CXX \
15875archive_cmds_CXX \
15876archive_expsym_cmds_CXX \
15877module_cmds_CXX \
15878module_expsym_cmds_CXX \
15879export_symbols_cmds_CXX \
15880prelink_cmds_CXX; do
15881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15882 *[\\\\\\\`\\"\\\$]*)
15883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15884 ;;
15885 *)
15886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15887 ;;
15888 esac
15889done
15890
15891ac_aux_dir='$ac_aux_dir'
15892xsi_shell='$xsi_shell'
15893lt_shell_append='$lt_shell_append'
15894
15895# See if we are running on zsh, and set the options which allow our
15896# commands through without removal of \ escapes INIT.
15897if test -n "\${ZSH_VERSION+set}" ; then
15898 setopt NO_GLOB_SUBST
15899fi
15900
15901
15902 PACKAGE='$PACKAGE'
15903 VERSION='$VERSION'
15904 TIMESTAMP='$TIMESTAMP'
15905 RM='$RM'
15906 ofile='$ofile'
15907
15908
15909
15910
15911
15912
15913_ACEOF
15914
15915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15916
15917# Handling of arguments.
15918for ac_config_target in $ac_config_targets
15919do
15920 case $ac_config_target in
15921 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15922 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15923 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15924 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15925 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15926 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15927
22e05272 15928 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5f520819
KY
15929 esac
15930done
15931
15932
15933# If the user did not use the arguments to specify the items to instantiate,
15934# then the envvar interface is used. Set only those that are not.
15935# We use the long form for the default assignment because of an extremely
15936# bizarre bug on SunOS 4.1.3.
15937if $ac_need_defaults; then
15938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15940fi
15941
15942# Have a temporary directory for convenience. Make it in the build tree
15943# simply because there is no reason against having it here, and in addition,
15944# creating and moving files from /tmp can sometimes cause problems.
15945# Hook for its removal unless debugging.
15946# Note that there is a small window in which the directory will not be cleaned:
15947# after its creation but before its name has been assigned to `$tmp'.
15948$debug ||
15949{
22e05272 15950 tmp= ac_tmp=
5f520819 15951 trap 'exit_status=$?
22e05272
JM
15952 : "${ac_tmp:=$tmp}"
15953 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5f520819
KY
15954' 0
15955 trap 'as_fn_exit 1' 1 2 13 15
15956}
15957# Create a (secure) tmp directory for tmp files.
15958
15959{
15960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 15961 test -d "$tmp"
5f520819
KY
15962} ||
15963{
15964 tmp=./conf$$-$RANDOM
15965 (umask 077 && mkdir "$tmp")
22e05272
JM
15966} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15967ac_tmp=$tmp
5f520819
KY
15968
15969# Set up the scripts for CONFIG_FILES section.
15970# No need to generate them if there are no CONFIG_FILES.
15971# This happens for instance with `./config.status config.h'.
15972if test -n "$CONFIG_FILES"; then
15973
15974
15975ac_cr=`echo X | tr X '\015'`
15976# On cygwin, bash can eat \r inside `` if the user requested igncr.
15977# But we know of no other shell where ac_cr would be empty at this
15978# point, so we can use a bashism as a fallback.
15979if test "x$ac_cr" = x; then
15980 eval ac_cr=\$\'\\r\'
15981fi
15982ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15983if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 15984 ac_cs_awk_cr='\\r'
5f520819
KY
15985else
15986 ac_cs_awk_cr=$ac_cr
15987fi
15988
22e05272 15989echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5f520819
KY
15990_ACEOF
15991
15992
15993{
15994 echo "cat >conf$$subs.awk <<_ACEOF" &&
15995 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15996 echo "_ACEOF"
15997} >conf$$subs.sh ||
22e05272
JM
15998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15999ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5f520819
KY
16000ac_delim='%!_!# '
16001for ac_last_try in false false false false false :; do
16002 . ./conf$$subs.sh ||
22e05272 16003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5f520819
KY
16004
16005 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16006 if test $ac_delim_n = $ac_delim_num; then
16007 break
16008 elif $ac_last_try; then
22e05272 16009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5f520819
KY
16010 else
16011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16012 fi
16013done
16014rm -f conf$$subs.sh
16015
16016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16017cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5f520819
KY
16018_ACEOF
16019sed -n '
16020h
16021s/^/S["/; s/!.*/"]=/
16022p
16023g
16024s/^[^!]*!//
16025:repl
16026t repl
16027s/'"$ac_delim"'$//
16028t delim
16029:nl
16030h
22e05272 16031s/\(.\{148\}\)..*/\1/
5f520819
KY
16032t more1
16033s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16034p
16035n
16036b repl
16037:more1
16038s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16039p
16040g
16041s/.\{148\}//
16042t nl
16043:delim
16044h
22e05272 16045s/\(.\{148\}\)..*/\1/
5f520819
KY
16046t more2
16047s/["\\]/\\&/g; s/^/"/; s/$/"/
16048p
16049b
16050:more2
16051s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16052p
16053g
16054s/.\{148\}//
16055t delim
16056' <conf$$subs.awk | sed '
16057/^[^""]/{
16058 N
16059 s/\n//
16060}
16061' >>$CONFIG_STATUS || ac_write_fail=1
16062rm -f conf$$subs.awk
16063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16064_ACAWK
22e05272 16065cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5f520819
KY
16066 for (key in S) S_is_set[key] = 1
16067 FS = "\a"
16068
16069}
16070{
16071 line = $ 0
16072 nfields = split(line, field, "@")
16073 substed = 0
16074 len = length(field[1])
16075 for (i = 2; i < nfields; i++) {
16076 key = field[i]
16077 keylen = length(key)
16078 if (S_is_set[key]) {
16079 value = S[key]
16080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16081 len += length(value) + length(field[++i])
16082 substed = 1
16083 } else
16084 len += 1 + keylen
16085 }
16086
16087 print line
16088}
16089
16090_ACAWK
16091_ACEOF
16092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16095else
16096 cat
22e05272
JM
16097fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16098 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5f520819
KY
16099_ACEOF
16100
22e05272
JM
16101# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16102# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5f520819
KY
16103# trailing colons and then remove the whole line if VPATH becomes empty
16104# (actually we leave an empty line to preserve line numbers).
16105if test "x$srcdir" = x.; then
22e05272
JM
16106 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16107h
16108s///
16109s/^/:/
16110s/[ ]*$/:/
16111s/:\$(srcdir):/:/g
16112s/:\${srcdir}:/:/g
16113s/:@srcdir@:/:/g
16114s/^:*//
5f520819 16115s/:*$//
22e05272
JM
16116x
16117s/\(=[ ]*\).*/\1/
16118G
16119s/\n//
5f520819
KY
16120s/^[^=]*=[ ]*$//
16121}'
16122fi
16123
16124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125fi # test -n "$CONFIG_FILES"
16126
16127
16128eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16129shift
16130for ac_tag
16131do
16132 case $ac_tag in
16133 :[FHLC]) ac_mode=$ac_tag; continue;;
16134 esac
16135 case $ac_mode$ac_tag in
16136 :[FHL]*:*);;
22e05272 16137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5f520819
KY
16138 :[FH]-) ac_tag=-:-;;
16139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16140 esac
16141 ac_save_IFS=$IFS
16142 IFS=:
16143 set x $ac_tag
16144 IFS=$ac_save_IFS
16145 shift
16146 ac_file=$1
16147 shift
16148
16149 case $ac_mode in
16150 :L) ac_source=$1;;
16151 :[FH])
16152 ac_file_inputs=
16153 for ac_f
16154 do
16155 case $ac_f in
22e05272 16156 -) ac_f="$ac_tmp/stdin";;
5f520819
KY
16157 *) # Look for the file first in the build tree, then in the source tree
16158 # (if the path is not absolute). The absolute path cannot be DOS-style,
16159 # because $ac_f cannot contain `:'.
16160 test -f "$ac_f" ||
16161 case $ac_f in
16162 [\\/$]*) false;;
16163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16164 esac ||
22e05272 16165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5f520819
KY
16166 esac
16167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16168 as_fn_append ac_file_inputs " '$ac_f'"
16169 done
16170
16171 # Let's still pretend it is `configure' which instantiates (i.e., don't
16172 # use $as_me), people would be surprised to read:
16173 # /* config.h. Generated by config.status. */
16174 configure_input='Generated from '`
16175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16176 `' by configure.'
16177 if test x"$ac_file" != x-; then
16178 configure_input="$ac_file. $configure_input"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16180$as_echo "$as_me: creating $ac_file" >&6;}
16181 fi
16182 # Neutralize special characters interpreted by sed in replacement strings.
16183 case $configure_input in #(
16184 *\&* | *\|* | *\\* )
16185 ac_sed_conf_input=`$as_echo "$configure_input" |
16186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16187 *) ac_sed_conf_input=$configure_input;;
16188 esac
16189
16190 case $ac_tag in
22e05272
JM
16191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5f520819
KY
16193 esac
16194 ;;
16195 esac
16196
16197 ac_dir=`$as_dirname -- "$ac_file" ||
16198$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16199 X"$ac_file" : 'X\(//\)[^/]' \| \
16200 X"$ac_file" : 'X\(//\)$' \| \
16201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16202$as_echo X"$ac_file" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)[^/].*/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\/\)$/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\).*/{
16216 s//\1/
16217 q
16218 }
16219 s/.*/./; q'`
16220 as_dir="$ac_dir"; as_fn_mkdir_p
16221 ac_builddir=.
16222
16223case "$ac_dir" in
16224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16225*)
16226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16227 # A ".." for each directory in $ac_dir_suffix.
16228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16229 case $ac_top_builddir_sub in
16230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16232 esac ;;
16233esac
16234ac_abs_top_builddir=$ac_pwd
16235ac_abs_builddir=$ac_pwd$ac_dir_suffix
16236# for backward compatibility:
16237ac_top_builddir=$ac_top_build_prefix
16238
16239case $srcdir in
16240 .) # We are building in place.
16241 ac_srcdir=.
16242 ac_top_srcdir=$ac_top_builddir_sub
16243 ac_abs_top_srcdir=$ac_pwd ;;
16244 [\\/]* | ?:[\\/]* ) # Absolute name.
16245 ac_srcdir=$srcdir$ac_dir_suffix;
16246 ac_top_srcdir=$srcdir
16247 ac_abs_top_srcdir=$srcdir ;;
16248 *) # Relative name.
16249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16250 ac_top_srcdir=$ac_top_build_prefix$srcdir
16251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16252esac
16253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16254
16255
16256 case $ac_mode in
16257 :F)
16258 #
16259 # CONFIG_FILE
16260 #
16261
16262 case $INSTALL in
16263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16265 esac
16266 ac_MKDIR_P=$MKDIR_P
16267 case $MKDIR_P in
16268 [\\/$]* | ?:[\\/]* ) ;;
16269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16270 esac
16271_ACEOF
16272
16273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274# If the template does not know about datarootdir, expand it.
16275# FIXME: This hack should be removed a few years after 2.60.
16276ac_datarootdir_hack=; ac_datarootdir_seen=
16277ac_sed_dataroot='
16278/datarootdir/ {
16279 p
16280 q
16281}
16282/@datadir@/p
16283/@docdir@/p
16284/@infodir@/p
16285/@localedir@/p
16286/@mandir@/p'
16287case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16288*datarootdir*) ac_datarootdir_seen=yes;;
16289*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16291$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16292_ACEOF
16293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 ac_datarootdir_hack='
16295 s&@datadir@&$datadir&g
16296 s&@docdir@&$docdir&g
16297 s&@infodir@&$infodir&g
16298 s&@localedir@&$localedir&g
16299 s&@mandir@&$mandir&g
16300 s&\\\${datarootdir}&$datarootdir&g' ;;
16301esac
16302_ACEOF
16303
16304# Neutralize VPATH when `$srcdir' = `.'.
16305# Shell code in configure.ac might set extrasub.
16306# FIXME: do we really want to maintain this feature?
16307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308ac_sed_extra="$ac_vpsub
16309$extrasub
16310_ACEOF
16311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16312:t
16313/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16314s|@configure_input@|$ac_sed_conf_input|;t t
16315s&@top_builddir@&$ac_top_builddir_sub&;t t
16316s&@top_build_prefix@&$ac_top_build_prefix&;t t
16317s&@srcdir@&$ac_srcdir&;t t
16318s&@abs_srcdir@&$ac_abs_srcdir&;t t
16319s&@top_srcdir@&$ac_top_srcdir&;t t
16320s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16321s&@builddir@&$ac_builddir&;t t
16322s&@abs_builddir@&$ac_abs_builddir&;t t
16323s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16324s&@INSTALL@&$ac_INSTALL&;t t
16325s&@MKDIR_P@&$ac_MKDIR_P&;t t
16326$ac_datarootdir_hack
16327"
22e05272
JM
16328eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16329 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5f520819
KY
16330
16331test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
16332 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16334 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5f520819 16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16336which seems to be undefined. Please make sure it is defined" >&5
5f520819 16337$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 16338which seems to be undefined. Please make sure it is defined" >&2;}
5f520819 16339
22e05272 16340 rm -f "$ac_tmp/stdin"
5f520819 16341 case $ac_file in
22e05272
JM
16342 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16343 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5f520819 16344 esac \
22e05272 16345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5f520819
KY
16346 ;;
16347
16348
16349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16350$as_echo "$as_me: executing $ac_file commands" >&6;}
16351 ;;
16352 esac
16353
16354
16355 case $ac_file$ac_mode in
16356 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 16357 # Older Autoconf quotes --file arguments for eval, but not when files
5f520819
KY
16358 # are listed without --file. Let's play safe and only enable the eval
16359 # if we detect the quoting.
16360 case $CONFIG_FILES in
16361 *\'*) eval set x "$CONFIG_FILES" ;;
16362 *) set x $CONFIG_FILES ;;
16363 esac
16364 shift
16365 for mf
16366 do
16367 # Strip MF so we end up with the name of the file.
16368 mf=`echo "$mf" | sed -e 's/:.*$//'`
16369 # Check whether this is an Automake generated Makefile or not.
22e05272 16370 # We used to match only the files named 'Makefile.in', but
5f520819
KY
16371 # some people rename them; so instead we look at the file content.
16372 # Grep'ing the first line is not enough: some people post-process
16373 # each Makefile.in and add a new line on top of each file to say so.
16374 # Grep'ing the whole file is not good either: AIX grep has a line
16375 # limit of 2048, but all sed's we know have understand at least 4000.
16376 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16377 dirpart=`$as_dirname -- "$mf" ||
16378$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16379 X"$mf" : 'X\(//\)[^/]' \| \
16380 X"$mf" : 'X\(//\)$' \| \
16381 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16382$as_echo X"$mf" |
16383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16384 s//\1/
16385 q
16386 }
16387 /^X\(\/\/\)[^/].*/{
16388 s//\1/
16389 q
16390 }
16391 /^X\(\/\/\)$/{
16392 s//\1/
16393 q
16394 }
16395 /^X\(\/\).*/{
16396 s//\1/
16397 q
16398 }
16399 s/.*/./; q'`
16400 else
16401 continue
16402 fi
16403 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 16404 # from the Makefile without running 'make'.
5f520819
KY
16405 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16406 test -z "$DEPDIR" && continue
16407 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 16408 test -z "$am__include" && continue
5f520819 16409 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5f520819
KY
16410 # Find all dependency output files, they are included files with
16411 # $(DEPDIR) in their names. We invoke sed twice because it is the
16412 # simplest approach to changing $(DEPDIR) to its actual value in the
16413 # expansion.
16414 for file in `sed -n "
16415 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 16416 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5f520819
KY
16417 # Make sure the directory exists.
16418 test -f "$dirpart/$file" && continue
16419 fdir=`$as_dirname -- "$file" ||
16420$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16421 X"$file" : 'X\(//\)[^/]' \| \
16422 X"$file" : 'X\(//\)$' \| \
16423 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16424$as_echo X"$file" |
16425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16426 s//\1/
16427 q
16428 }
16429 /^X\(\/\/\)[^/].*/{
16430 s//\1/
16431 q
16432 }
16433 /^X\(\/\/\)$/{
16434 s//\1/
16435 q
16436 }
16437 /^X\(\/\).*/{
16438 s//\1/
16439 q
16440 }
16441 s/.*/./; q'`
16442 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16443 # echo "creating $dirpart/$file"
16444 echo '# dummy' > "$dirpart/$file"
16445 done
16446 done
16447}
16448 ;;
16449 "default-1":C)
16450# Only add multilib support code if we just rebuilt the top-level
16451# Makefile.
16452case " $CONFIG_FILES " in
16453 *" Makefile "*)
16454 ac_file=Makefile . ${multi_basedir}/config-ml.in
16455 ;;
16456esac ;;
16457 "libtool":C)
16458
16459 # See if we are running on zsh, and set the options which allow our
16460 # commands through without removal of \ escapes.
16461 if test -n "${ZSH_VERSION+set}" ; then
16462 setopt NO_GLOB_SUBST
16463 fi
16464
16465 cfgfile="${ofile}T"
16466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16467 $RM "$cfgfile"
16468
16469 cat <<_LT_EOF >> "$cfgfile"
16470#! $SHELL
16471
16472# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16473# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16474# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16475# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16476#
16477# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16478# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16479# Written by Gordon Matzigkeit, 1996
16480#
16481# This file is part of GNU Libtool.
16482#
16483# GNU Libtool is free software; you can redistribute it and/or
16484# modify it under the terms of the GNU General Public License as
16485# published by the Free Software Foundation; either version 2 of
16486# the License, or (at your option) any later version.
16487#
16488# As a special exception to the GNU General Public License,
16489# if you distribute this file as part of a program or library that
16490# is built using GNU Libtool, you may include this file under the
16491# same distribution terms that you use for the rest of that program.
16492#
16493# GNU Libtool is distributed in the hope that it will be useful,
16494# but WITHOUT ANY WARRANTY; without even the implied warranty of
16495# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16496# GNU General Public License for more details.
16497#
16498# You should have received a copy of the GNU General Public License
16499# along with GNU Libtool; see the file COPYING. If not, a copy
16500# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16501# obtained by writing to the Free Software Foundation, Inc.,
16502# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16503
16504
16505# The names of the tagged configurations supported by this script.
16506available_tags="CXX "
16507
16508# ### BEGIN LIBTOOL CONFIG
16509
16510# Which release of libtool.m4 was used?
16511macro_version=$macro_version
16512macro_revision=$macro_revision
16513
16514# Whether or not to build shared libraries.
16515build_libtool_libs=$enable_shared
16516
16517# Whether or not to build static libraries.
16518build_old_libs=$enable_static
16519
16520# What type of objects to build.
16521pic_mode=$pic_mode
16522
16523# Whether or not to optimize for fast installation.
16524fast_install=$enable_fast_install
16525
16526# Shell to use when invoking shell scripts.
16527SHELL=$lt_SHELL
16528
16529# An echo program that protects backslashes.
16530ECHO=$lt_ECHO
16531
16532# The host system.
16533host_alias=$host_alias
16534host=$host
16535host_os=$host_os
16536
16537# The build system.
16538build_alias=$build_alias
16539build=$build
16540build_os=$build_os
16541
16542# A sed program that does not truncate output.
16543SED=$lt_SED
16544
16545# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16546Xsed="\$SED -e 1s/^X//"
16547
16548# A grep program that handles long lines.
16549GREP=$lt_GREP
16550
16551# An ERE matcher.
16552EGREP=$lt_EGREP
16553
16554# A literal string matcher.
16555FGREP=$lt_FGREP
16556
16557# A BSD- or MS-compatible name lister.
16558NM=$lt_NM
16559
16560# Whether we need soft or hard links.
16561LN_S=$lt_LN_S
16562
16563# What is the maximum length of a command?
16564max_cmd_len=$max_cmd_len
16565
16566# Object file suffix (normally "o").
16567objext=$ac_objext
16568
16569# Executable file suffix (normally "").
16570exeext=$exeext
16571
16572# whether the shell understands "unset".
16573lt_unset=$lt_unset
16574
16575# turn spaces into newlines.
16576SP2NL=$lt_lt_SP2NL
16577
16578# turn newlines into spaces.
16579NL2SP=$lt_lt_NL2SP
16580
16581# An object symbol dumper.
16582OBJDUMP=$lt_OBJDUMP
16583
16584# Method to check whether dependent libraries are shared objects.
16585deplibs_check_method=$lt_deplibs_check_method
16586
16587# Command to use when deplibs_check_method == "file_magic".
16588file_magic_cmd=$lt_file_magic_cmd
16589
16590# The archiver.
16591AR=$lt_AR
16592AR_FLAGS=$lt_AR_FLAGS
16593
16594# A symbol stripping program.
16595STRIP=$lt_STRIP
16596
16597# Commands used to install an old-style archive.
16598RANLIB=$lt_RANLIB
16599old_postinstall_cmds=$lt_old_postinstall_cmds
16600old_postuninstall_cmds=$lt_old_postuninstall_cmds
16601
16602# Whether to use a lock for old archive extraction.
16603lock_old_archive_extraction=$lock_old_archive_extraction
16604
16605# A C compiler.
16606LTCC=$lt_CC
16607
16608# LTCC compiler flags.
16609LTCFLAGS=$lt_CFLAGS
16610
16611# Take the output of nm and produce a listing of raw symbols and C names.
16612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16613
16614# Transform the output of nm in a proper C declaration.
16615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16616
16617# Transform the output of nm in a C name address pair.
16618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16619
16620# Transform the output of nm in a C name address pair when lib prefix is needed.
16621global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16622
16623# The name of the directory that contains temporary libtool files.
16624objdir=$objdir
16625
16626# Used to examine libraries when file_magic_cmd begins with "file".
16627MAGIC_CMD=$MAGIC_CMD
16628
16629# Must we lock files when doing compilation?
16630need_locks=$lt_need_locks
16631
16632# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16633DSYMUTIL=$lt_DSYMUTIL
16634
16635# Tool to change global to local symbols on Mac OS X.
16636NMEDIT=$lt_NMEDIT
16637
16638# Tool to manipulate fat objects and archives on Mac OS X.
16639LIPO=$lt_LIPO
16640
16641# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16642OTOOL=$lt_OTOOL
16643
16644# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16645OTOOL64=$lt_OTOOL64
16646
16647# Old archive suffix (normally "a").
16648libext=$libext
16649
16650# Shared library suffix (normally ".so").
16651shrext_cmds=$lt_shrext_cmds
16652
16653# The commands to extract the exported symbol list from a shared archive.
16654extract_expsyms_cmds=$lt_extract_expsyms_cmds
16655
16656# Variables whose values should be saved in libtool wrapper scripts and
16657# restored at link time.
16658variables_saved_for_relink=$lt_variables_saved_for_relink
16659
16660# Do we need the "lib" prefix for modules?
16661need_lib_prefix=$need_lib_prefix
16662
16663# Do we need a version for libraries?
16664need_version=$need_version
16665
16666# Library versioning type.
16667version_type=$version_type
16668
16669# Shared library runtime path variable.
16670runpath_var=$runpath_var
16671
16672# Shared library path variable.
16673shlibpath_var=$shlibpath_var
16674
16675# Is shlibpath searched before the hard-coded library search path?
16676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16677
16678# Format of library name prefix.
16679libname_spec=$lt_libname_spec
16680
16681# List of archive names. First name is the real one, the rest are links.
16682# The last name is the one that the linker finds with -lNAME
16683library_names_spec=$lt_library_names_spec
16684
16685# The coded name of the library, if different from the real name.
16686soname_spec=$lt_soname_spec
16687
16688# Permission mode override for installation of shared libraries.
16689install_override_mode=$lt_install_override_mode
16690
16691# Command to use after installation of a shared archive.
16692postinstall_cmds=$lt_postinstall_cmds
16693
16694# Command to use after uninstallation of a shared archive.
16695postuninstall_cmds=$lt_postuninstall_cmds
16696
16697# Commands used to finish a libtool library installation in a directory.
16698finish_cmds=$lt_finish_cmds
16699
16700# As "finish_cmds", except a single script fragment to be evaled but
16701# not shown.
16702finish_eval=$lt_finish_eval
16703
16704# Whether we should hardcode library paths into libraries.
16705hardcode_into_libs=$hardcode_into_libs
16706
16707# Compile-time system search path for libraries.
16708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16709
16710# Run-time system search path for libraries.
16711sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16712
16713# Whether dlopen is supported.
16714dlopen_support=$enable_dlopen
16715
16716# Whether dlopen of programs is supported.
16717dlopen_self=$enable_dlopen_self
16718
16719# Whether dlopen of statically linked programs is supported.
16720dlopen_self_static=$enable_dlopen_self_static
16721
16722# Commands to strip libraries.
16723old_striplib=$lt_old_striplib
16724striplib=$lt_striplib
16725
16726
16727# The linker used to build libraries.
16728LD=$lt_LD
16729
16730# How to create reloadable object files.
16731reload_flag=$lt_reload_flag
16732reload_cmds=$lt_reload_cmds
16733
16734# Commands used to build an old-style archive.
16735old_archive_cmds=$lt_old_archive_cmds
16736
16737# A language specific compiler.
16738CC=$lt_compiler
16739
16740# Is the compiler the GNU compiler?
16741with_gcc=$GCC
16742
16743# Compiler flag to turn off builtin functions.
16744no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16745
16746# How to pass a linker flag through the compiler.
16747wl=$lt_lt_prog_compiler_wl
16748
16749# Additional compiler flags for building library objects.
16750pic_flag=$lt_lt_prog_compiler_pic
16751
16752# Compiler flag to prevent dynamic linking.
16753link_static_flag=$lt_lt_prog_compiler_static
16754
16755# Does compiler simultaneously support -c and -o options?
16756compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16757
16758# Whether or not to add -lc for building shared libraries.
16759build_libtool_need_lc=$archive_cmds_need_lc
16760
16761# Whether or not to disallow shared libs when runtime libs are static.
16762allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16763
16764# Compiler flag to allow reflexive dlopens.
16765export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16766
16767# Compiler flag to generate shared objects directly from archives.
16768whole_archive_flag_spec=$lt_whole_archive_flag_spec
16769
16770# Whether the compiler copes with passing no objects directly.
16771compiler_needs_object=$lt_compiler_needs_object
16772
16773# Create an old-style archive from a shared archive.
16774old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16775
16776# Create a temporary old-style archive to link instead of a shared archive.
16777old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16778
16779# Commands used to build a shared archive.
16780archive_cmds=$lt_archive_cmds
16781archive_expsym_cmds=$lt_archive_expsym_cmds
16782
16783# Commands used to build a loadable module if different from building
16784# a shared archive.
16785module_cmds=$lt_module_cmds
16786module_expsym_cmds=$lt_module_expsym_cmds
16787
16788# Whether we are building with GNU ld or not.
16789with_gnu_ld=$lt_with_gnu_ld
16790
16791# Flag that allows shared libraries with undefined symbols to be built.
16792allow_undefined_flag=$lt_allow_undefined_flag
16793
16794# Flag that enforces no undefined symbols.
16795no_undefined_flag=$lt_no_undefined_flag
16796
16797# Flag to hardcode \$libdir into a binary during linking.
16798# This must work even if \$libdir does not exist
16799hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16800
16801# If ld is used when linking, flag to hardcode \$libdir into a binary
16802# during linking. This must work even if \$libdir does not exist.
16803hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16804
16805# Whether we need a single "-rpath" flag with a separated argument.
16806hardcode_libdir_separator=$lt_hardcode_libdir_separator
16807
16808# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16809# DIR into the resulting binary.
16810hardcode_direct=$hardcode_direct
16811
16812# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16813# DIR into the resulting binary and the resulting library dependency is
16814# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16815# library is relocated.
16816hardcode_direct_absolute=$hardcode_direct_absolute
16817
16818# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16819# into the resulting binary.
16820hardcode_minus_L=$hardcode_minus_L
16821
16822# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16823# into the resulting binary.
16824hardcode_shlibpath_var=$hardcode_shlibpath_var
16825
16826# Set to "yes" if building a shared library automatically hardcodes DIR
16827# into the library and all subsequent libraries and executables linked
16828# against it.
16829hardcode_automatic=$hardcode_automatic
16830
16831# Set to yes if linker adds runtime paths of dependent libraries
16832# to runtime path list.
16833inherit_rpath=$inherit_rpath
16834
16835# Whether libtool must link a program against all its dependency libraries.
16836link_all_deplibs=$link_all_deplibs
16837
16838# Fix the shell variable \$srcfile for the compiler.
16839fix_srcfile_path=$lt_fix_srcfile_path
16840
16841# Set to "yes" if exported symbols are required.
16842always_export_symbols=$always_export_symbols
16843
16844# The commands to list exported symbols.
16845export_symbols_cmds=$lt_export_symbols_cmds
16846
16847# Symbols that should not be listed in the preloaded symbols.
16848exclude_expsyms=$lt_exclude_expsyms
16849
16850# Symbols that must always be exported.
16851include_expsyms=$lt_include_expsyms
16852
16853# Commands necessary for linking programs (against libraries) with templates.
16854prelink_cmds=$lt_prelink_cmds
16855
16856# Specify filename containing input files.
16857file_list_spec=$lt_file_list_spec
16858
16859# How to hardcode a shared library path into an executable.
16860hardcode_action=$hardcode_action
16861
16862# The directories searched by this compiler when creating a shared library.
16863compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16864
16865# Dependencies to place before and after the objects being linked to
16866# create a shared library.
16867predep_objects=$lt_predep_objects
16868postdep_objects=$lt_postdep_objects
16869predeps=$lt_predeps
16870postdeps=$lt_postdeps
16871
16872# The library search path used internally by the compiler when linking
16873# a shared library.
16874compiler_lib_search_path=$lt_compiler_lib_search_path
16875
16876# ### END LIBTOOL CONFIG
16877
16878_LT_EOF
16879
16880 case $host_os in
16881 aix3*)
16882 cat <<\_LT_EOF >> "$cfgfile"
16883# AIX sometimes has problems with the GCC collect2 program. For some
16884# reason, if we set the COLLECT_NAMES environment variable, the problems
16885# vanish in a puff of smoke.
16886if test "X${COLLECT_NAMES+set}" != Xset; then
16887 COLLECT_NAMES=
16888 export COLLECT_NAMES
16889fi
16890_LT_EOF
16891 ;;
16892 esac
16893
16894
16895ltmain="$ac_aux_dir/ltmain.sh"
16896
16897
16898 # We use sed instead of cat because bash on DJGPP gets confused if
16899 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16900 # text mode, it properly converts lines to CR/LF. This bash problem
16901 # is reportedly fixed, but why not run on old versions too?
16902 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16903 || (rm -f "$cfgfile"; exit 1)
16904
16905 case $xsi_shell in
16906 yes)
16907 cat << \_LT_EOF >> "$cfgfile"
16908
16909# func_dirname file append nondir_replacement
16910# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16911# otherwise set result to NONDIR_REPLACEMENT.
16912func_dirname ()
16913{
16914 case ${1} in
16915 */*) func_dirname_result="${1%/*}${2}" ;;
16916 * ) func_dirname_result="${3}" ;;
16917 esac
16918}
16919
16920# func_basename file
16921func_basename ()
16922{
16923 func_basename_result="${1##*/}"
16924}
16925
16926# func_dirname_and_basename file append nondir_replacement
16927# perform func_basename and func_dirname in a single function
16928# call:
16929# dirname: Compute the dirname of FILE. If nonempty,
16930# add APPEND to the result, otherwise set result
16931# to NONDIR_REPLACEMENT.
16932# value returned in "$func_dirname_result"
16933# basename: Compute filename of FILE.
16934# value retuned in "$func_basename_result"
16935# Implementation must be kept synchronized with func_dirname
16936# and func_basename. For efficiency, we do not delegate to
16937# those functions but instead duplicate the functionality here.
16938func_dirname_and_basename ()
16939{
16940 case ${1} in
16941 */*) func_dirname_result="${1%/*}${2}" ;;
16942 * ) func_dirname_result="${3}" ;;
16943 esac
16944 func_basename_result="${1##*/}"
16945}
16946
16947# func_stripname prefix suffix name
16948# strip PREFIX and SUFFIX off of NAME.
16949# PREFIX and SUFFIX must not contain globbing or regex special
16950# characters, hashes, percent signs, but SUFFIX may contain a leading
16951# dot (in which case that matches only a dot).
16952func_stripname ()
16953{
16954 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16955 # positional parameters, so assign one to ordinary parameter first.
16956 func_stripname_result=${3}
16957 func_stripname_result=${func_stripname_result#"${1}"}
16958 func_stripname_result=${func_stripname_result%"${2}"}
16959}
16960
16961# func_opt_split
16962func_opt_split ()
16963{
16964 func_opt_split_opt=${1%%=*}
16965 func_opt_split_arg=${1#*=}
16966}
16967
16968# func_lo2o object
16969func_lo2o ()
16970{
16971 case ${1} in
16972 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16973 *) func_lo2o_result=${1} ;;
16974 esac
16975}
16976
16977# func_xform libobj-or-source
16978func_xform ()
16979{
16980 func_xform_result=${1%.*}.lo
16981}
16982
16983# func_arith arithmetic-term...
16984func_arith ()
16985{
16986 func_arith_result=$(( $* ))
16987}
16988
16989# func_len string
16990# STRING may not start with a hyphen.
16991func_len ()
16992{
16993 func_len_result=${#1}
16994}
16995
16996_LT_EOF
16997 ;;
16998 *) # Bourne compatible functions.
16999 cat << \_LT_EOF >> "$cfgfile"
17000
17001# func_dirname file append nondir_replacement
17002# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17003# otherwise set result to NONDIR_REPLACEMENT.
17004func_dirname ()
17005{
17006 # Extract subdirectory from the argument.
17007 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17008 if test "X$func_dirname_result" = "X${1}"; then
17009 func_dirname_result="${3}"
17010 else
17011 func_dirname_result="$func_dirname_result${2}"
17012 fi
17013}
17014
17015# func_basename file
17016func_basename ()
17017{
17018 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17019}
17020
17021
17022# func_stripname prefix suffix name
17023# strip PREFIX and SUFFIX off of NAME.
17024# PREFIX and SUFFIX must not contain globbing or regex special
17025# characters, hashes, percent signs, but SUFFIX may contain a leading
17026# dot (in which case that matches only a dot).
17027# func_strip_suffix prefix name
17028func_stripname ()
17029{
17030 case ${2} in
17031 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17032 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17033 esac
17034}
17035
17036# sed scripts:
17037my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17038my_sed_long_arg='1s/^-[^=]*=//'
17039
17040# func_opt_split
17041func_opt_split ()
17042{
17043 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17044 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17045}
17046
17047# func_lo2o object
17048func_lo2o ()
17049{
17050 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17051}
17052
17053# func_xform libobj-or-source
17054func_xform ()
17055{
17056 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17057}
17058
17059# func_arith arithmetic-term...
17060func_arith ()
17061{
17062 func_arith_result=`expr "$@"`
17063}
17064
17065# func_len string
17066# STRING may not start with a hyphen.
17067func_len ()
17068{
17069 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17070}
17071
17072_LT_EOF
17073esac
17074
17075case $lt_shell_append in
17076 yes)
17077 cat << \_LT_EOF >> "$cfgfile"
17078
17079# func_append var value
17080# Append VALUE to the end of shell variable VAR.
17081func_append ()
17082{
17083 eval "$1+=\$2"
17084}
17085_LT_EOF
17086 ;;
17087 *)
17088 cat << \_LT_EOF >> "$cfgfile"
17089
17090# func_append var value
17091# Append VALUE to the end of shell variable VAR.
17092func_append ()
17093{
17094 eval "$1=\$$1\$2"
17095}
17096
17097_LT_EOF
17098 ;;
17099 esac
17100
17101
17102 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17103 || (rm -f "$cfgfile"; exit 1)
17104
17105 mv -f "$cfgfile" "$ofile" ||
17106 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17107 chmod +x "$ofile"
17108
17109
17110 cat <<_LT_EOF >> "$ofile"
17111
17112# ### BEGIN LIBTOOL TAG CONFIG: CXX
17113
17114# The linker used to build libraries.
17115LD=$lt_LD_CXX
17116
17117# How to create reloadable object files.
17118reload_flag=$lt_reload_flag_CXX
17119reload_cmds=$lt_reload_cmds_CXX
17120
17121# Commands used to build an old-style archive.
17122old_archive_cmds=$lt_old_archive_cmds_CXX
17123
17124# A language specific compiler.
17125CC=$lt_compiler_CXX
17126
17127# Is the compiler the GNU compiler?
17128with_gcc=$GCC_CXX
17129
17130# Compiler flag to turn off builtin functions.
17131no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17132
17133# How to pass a linker flag through the compiler.
17134wl=$lt_lt_prog_compiler_wl_CXX
17135
17136# Additional compiler flags for building library objects.
17137pic_flag=$lt_lt_prog_compiler_pic_CXX
17138
17139# Compiler flag to prevent dynamic linking.
17140link_static_flag=$lt_lt_prog_compiler_static_CXX
17141
17142# Does compiler simultaneously support -c and -o options?
17143compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17144
17145# Whether or not to add -lc for building shared libraries.
17146build_libtool_need_lc=$archive_cmds_need_lc_CXX
17147
17148# Whether or not to disallow shared libs when runtime libs are static.
17149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17150
17151# Compiler flag to allow reflexive dlopens.
17152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17153
17154# Compiler flag to generate shared objects directly from archives.
17155whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17156
17157# Whether the compiler copes with passing no objects directly.
17158compiler_needs_object=$lt_compiler_needs_object_CXX
17159
17160# Create an old-style archive from a shared archive.
17161old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17162
17163# Create a temporary old-style archive to link instead of a shared archive.
17164old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17165
17166# Commands used to build a shared archive.
17167archive_cmds=$lt_archive_cmds_CXX
17168archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17169
17170# Commands used to build a loadable module if different from building
17171# a shared archive.
17172module_cmds=$lt_module_cmds_CXX
17173module_expsym_cmds=$lt_module_expsym_cmds_CXX
17174
17175# Whether we are building with GNU ld or not.
17176with_gnu_ld=$lt_with_gnu_ld_CXX
17177
17178# Flag that allows shared libraries with undefined symbols to be built.
17179allow_undefined_flag=$lt_allow_undefined_flag_CXX
17180
17181# Flag that enforces no undefined symbols.
17182no_undefined_flag=$lt_no_undefined_flag_CXX
17183
17184# Flag to hardcode \$libdir into a binary during linking.
17185# This must work even if \$libdir does not exist
17186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17187
17188# If ld is used when linking, flag to hardcode \$libdir into a binary
17189# during linking. This must work even if \$libdir does not exist.
17190hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17191
17192# Whether we need a single "-rpath" flag with a separated argument.
17193hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17194
17195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17196# DIR into the resulting binary.
17197hardcode_direct=$hardcode_direct_CXX
17198
17199# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17200# DIR into the resulting binary and the resulting library dependency is
17201# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17202# library is relocated.
17203hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17204
17205# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17206# into the resulting binary.
17207hardcode_minus_L=$hardcode_minus_L_CXX
17208
17209# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17210# into the resulting binary.
17211hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17212
17213# Set to "yes" if building a shared library automatically hardcodes DIR
17214# into the library and all subsequent libraries and executables linked
17215# against it.
17216hardcode_automatic=$hardcode_automatic_CXX
17217
17218# Set to yes if linker adds runtime paths of dependent libraries
17219# to runtime path list.
17220inherit_rpath=$inherit_rpath_CXX
17221
17222# Whether libtool must link a program against all its dependency libraries.
17223link_all_deplibs=$link_all_deplibs_CXX
17224
17225# Fix the shell variable \$srcfile for the compiler.
17226fix_srcfile_path=$lt_fix_srcfile_path_CXX
17227
17228# Set to "yes" if exported symbols are required.
17229always_export_symbols=$always_export_symbols_CXX
17230
17231# The commands to list exported symbols.
17232export_symbols_cmds=$lt_export_symbols_cmds_CXX
17233
17234# Symbols that should not be listed in the preloaded symbols.
17235exclude_expsyms=$lt_exclude_expsyms_CXX
17236
17237# Symbols that must always be exported.
17238include_expsyms=$lt_include_expsyms_CXX
17239
17240# Commands necessary for linking programs (against libraries) with templates.
17241prelink_cmds=$lt_prelink_cmds_CXX
17242
17243# Specify filename containing input files.
17244file_list_spec=$lt_file_list_spec_CXX
17245
17246# How to hardcode a shared library path into an executable.
17247hardcode_action=$hardcode_action_CXX
17248
17249# The directories searched by this compiler when creating a shared library.
17250compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17251
17252# Dependencies to place before and after the objects being linked to
17253# create a shared library.
17254predep_objects=$lt_predep_objects_CXX
17255postdep_objects=$lt_postdep_objects_CXX
17256predeps=$lt_predeps_CXX
17257postdeps=$lt_postdeps_CXX
17258
17259# The library search path used internally by the compiler when linking
17260# a shared library.
17261compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17262
17263# ### END LIBTOOL TAG CONFIG: CXX
17264_LT_EOF
17265
17266 ;;
17267
17268 esac
17269done # for ac_tag
17270
17271
17272as_fn_exit 0
17273_ACEOF
17274ac_clean_files=$ac_clean_files_save
17275
17276test $ac_write_fail = 0 ||
22e05272 17277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5f520819
KY
17278
17279
17280# configure is writing to config.log, and then calls config.status.
17281# config.status does its own redirection, appending to config.log.
17282# Unfortunately, on DOS this fails, as config.log is still kept open
17283# by configure, so config.status won't be able to write to it; its
17284# output is simply discarded. So we exec the FD to /dev/null,
17285# effectively closing config.log, so it can be properly (re)opened and
17286# appended to by config.status. When coming back to configure, we
17287# need to make the FD available again.
17288if test "$no_create" != yes; then
17289 ac_cs_success=:
17290 ac_config_status_args=
17291 test "$silent" = yes &&
17292 ac_config_status_args="$ac_config_status_args --quiet"
17293 exec 5>/dev/null
17294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17295 exec 5>>config.log
17296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17297 # would make configure fail if this is the last instruction.
22e05272 17298 $ac_cs_success || as_fn_exit 1
5f520819 17299fi
9d73ec14
IV
17300
17301#
17302# CONFIG_SUBDIRS section.
17303#
17304if test "$no_recursion" != yes; then
17305
17306 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17307 # so they do not pile up.
17308 ac_sub_configure_args=
17309 ac_prev=
17310 eval "set x $ac_configure_args"
17311 shift
17312 for ac_arg
17313 do
17314 if test -n "$ac_prev"; then
17315 ac_prev=
17316 continue
17317 fi
17318 case $ac_arg in
17319 -cache-file | --cache-file | --cache-fil | --cache-fi \
17320 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17321 ac_prev=cache_file ;;
17322 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17323 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17324 | --c=*)
17325 ;;
17326 --config-cache | -C)
17327 ;;
17328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17329 ac_prev=srcdir ;;
17330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17331 ;;
17332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17333 ac_prev=prefix ;;
17334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17335 ;;
17336 --disable-option-checking)
17337 ;;
17338 *)
17339 case $ac_arg in
17340 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17341 esac
17342 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17343 esac
17344 done
17345
17346 # Always prepend --prefix to ensure using the same prefix
17347 # in subdir configurations.
17348 ac_arg="--prefix=$prefix"
17349 case $ac_arg in
17350 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17351 esac
17352 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17353
17354 # Pass --silent
17355 if test "$silent" = yes; then
17356 ac_sub_configure_args="--silent $ac_sub_configure_args"
17357 fi
17358
17359 # Always prepend --disable-option-checking to silence warnings, since
17360 # different subdirs can have different --enable and --with options.
17361 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17362
17363 ac_popdir=`pwd`
17364 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17365
17366 # Do not complain, so a configure script can configure whichever
17367 # parts of a large source tree are present.
17368 test -d "$srcdir/$ac_dir" || continue
17369
17370 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17371 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17372 $as_echo "$ac_msg" >&6
17373 as_dir="$ac_dir"; as_fn_mkdir_p
17374 ac_builddir=.
17375
17376case "$ac_dir" in
17377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17378*)
17379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17380 # A ".." for each directory in $ac_dir_suffix.
17381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17382 case $ac_top_builddir_sub in
17383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17385 esac ;;
17386esac
17387ac_abs_top_builddir=$ac_pwd
17388ac_abs_builddir=$ac_pwd$ac_dir_suffix
17389# for backward compatibility:
17390ac_top_builddir=$ac_top_build_prefix
17391
17392case $srcdir in
17393 .) # We are building in place.
17394 ac_srcdir=.
17395 ac_top_srcdir=$ac_top_builddir_sub
17396 ac_abs_top_srcdir=$ac_pwd ;;
17397 [\\/]* | ?:[\\/]* ) # Absolute name.
17398 ac_srcdir=$srcdir$ac_dir_suffix;
17399 ac_top_srcdir=$srcdir
17400 ac_abs_top_srcdir=$srcdir ;;
17401 *) # Relative name.
17402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17403 ac_top_srcdir=$ac_top_build_prefix$srcdir
17404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17405esac
17406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17407
17408
17409 cd "$ac_dir"
17410
17411 # Check for guested configure; otherwise get Cygnus style configure.
17412 if test -f "$ac_srcdir/configure.gnu"; then
17413 ac_sub_configure=$ac_srcdir/configure.gnu
17414 elif test -f "$ac_srcdir/configure"; then
17415 ac_sub_configure=$ac_srcdir/configure
3c36aa6b 17416 elif test -f "$ac_srcdir/configure.in"; then
9d73ec14
IV
17417 # This should be Cygnus configure.
17418 ac_sub_configure=$ac_aux_dir/configure
17419 else
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17421$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17422 ac_sub_configure=
17423 fi
17424
17425 # The recursion is here.
17426 if test -n "$ac_sub_configure"; then
17427 # Make the cache file name correct relative to the subdirectory.
17428 case $cache_file in
17429 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17430 *) # Relative name.
17431 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17432 esac
17433
17434 { $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
17435$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17436 # The eval makes quoting arguments work.
17437 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17438 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22e05272 17439 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9d73ec14
IV
17440 fi
17441
17442 cd "$ac_popdir"
17443 done
17444fi
5f520819
KY
17445if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17447$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17448fi
17449