blob: 816ff61d9e2a7489e082afd98f3b653b71a41937 [file] [log] [blame]
Haibo Huangb16e0172018-07-02 14:40:07 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Haibo Huang40a71912019-10-11 11:13:39 -07003# Generated by GNU Autoconf 2.69 for expat 2.2.9.
Haibo Huangb16e0172018-07-02 14:40:07 -07004#
5# Report bugs to <expat-bugs@libexpat.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: expat-bugs@libexpat.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='expat'
592PACKAGE_TARNAME='expat'
Haibo Huang40a71912019-10-11 11:13:39 -0700593PACKAGE_VERSION='2.2.9'
594PACKAGE_STRING='expat 2.2.9'
Haibo Huangb16e0172018-07-02 14:40:07 -0700595PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
596PACKAGE_URL=''
597
598ac_unique_file="Makefile.in"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640WITH_DOCBOOK_FALSE
641WITH_DOCBOOK_TRUE
642DOCBOOK_TO_MAN
643FILEMAP
644UNICODE_FALSE
645UNICODE_TRUE
646MINGW_FALSE
647MINGW_TRUE
Haibo Huangfd5e81a2019-06-20 12:09:36 -0700648WITH_TESTS_FALSE
649WITH_TESTS_TRUE
650WITH_EXAMPLES_FALSE
651WITH_EXAMPLES_TRUE
Haibo Huangb16e0172018-07-02 14:40:07 -0700652WITH_XMLWF_FALSE
653WITH_XMLWF_TRUE
654CXXCPP
655am__fastdepCXX_FALSE
656am__fastdepCXX_TRUE
657CXXDEPMODE
658ac_ct_CXX
659CXXFLAGS
660CXX
661LIBAGE
662LIBREVISION
663LIBCURRENT
664CPP
665LT_SYS_LIBRARY_PATH
666OTOOL64
667OTOOL
668LIPO
669NMEDIT
670DSYMUTIL
671MANIFEST_TOOL
672RANLIB
Haibo Huangb16e0172018-07-02 14:40:07 -0700673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
678EGREP
679GREP
680SED
Haibo Huangfd5e81a2019-06-20 12:09:36 -0700681LIBTOOL
682OBJDUMP
683DLLTOOL
684AS
685LN_S
Haibo Huangb16e0172018-07-02 14:40:07 -0700686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
Haibo Huangb16e0172018-07-02 14:40:07 -0700693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
Haibo Huangfd5e81a2019-06-20 12:09:36 -0700702ac_ct_AR
703AR
Haibo Huangb16e0172018-07-02 14:40:07 -0700704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
Haibo Huang40a71912019-10-11 11:13:39 -0700731host_os
732host_vendor
733host_cpu
734host
735build_os
736build_vendor
737build_cpu
738build
Haibo Huangb16e0172018-07-02 14:40:07 -0700739target_alias
740host_alias
741build_alias
742LIBS
743ECHO_T
744ECHO_N
745ECHO_C
746DEFS
747mandir
748localedir
749libdir
750psdir
751pdfdir
752dvidir
753htmldir
754infodir
755docdir
756oldincludedir
757includedir
758localstatedir
759sharedstatedir
760sysconfdir
761datadir
762datarootdir
763libexecdir
764sbindir
765bindir
766program_transform_name
767prefix
768exec_prefix
769PACKAGE_URL
770PACKAGE_BUGREPORT
771PACKAGE_STRING
772PACKAGE_VERSION
773PACKAGE_TARNAME
774PACKAGE_NAME
775PATH_SEPARATOR
Haibo Huangfd5e81a2019-06-20 12:09:36 -0700776SHELL
777am__quote'
Haibo Huangb16e0172018-07-02 14:40:07 -0700778ac_subst_files=''
779ac_user_opts='
780enable_option_checking
781enable_silent_rules
Haibo Huangfd5e81a2019-06-20 12:09:36 -0700782enable_dependency_tracking
Haibo Huangb16e0172018-07-02 14:40:07 -0700783enable_shared
784enable_static
785with_pic
786enable_fast_install
787with_aix_soname
Haibo Huangb16e0172018-07-02 14:40:07 -0700788with_gnu_ld
789with_sysroot
790enable_libtool_lock
791with_xmlwf
Haibo Huangfd5e81a2019-06-20 12:09:36 -0700792with_examples
793with_tests
Haibo Huangb16e0172018-07-02 14:40:07 -0700794with_libbsd
Haibo Huang40a71912019-10-11 11:13:39 -0700795with_getrandom
796with_sys_getrandom
797enable_xml_attr_info
Haibo Huangb16e0172018-07-02 14:40:07 -0700798enable_xml_context
799with_docbook
800'
801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809LT_SYS_LIBRARY_PATH
810CPP
811CXX
812CXXFLAGS
813CCC
814CXXCPP
815DOCBOOK_TO_MAN'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error $? "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321else
1322 ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
Haibo Huang40a71912019-10-11 11:13:39 -07001356\`configure' configures expat 2.2.9 to adapt to many kinds of systems.
Haibo Huangb16e0172018-07-02 14:40:07 -07001357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking ...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409_ACEOF
1410
1411 cat <<\_ACEOF
1412
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425 case $ac_init_help in
Haibo Huang40a71912019-10-11 11:13:39 -07001426 short | recursive ) echo "Configuration of expat 2.2.9:";;
Haibo Huangb16e0172018-07-02 14:40:07 -07001427 esac
1428 cat <<\_ACEOF
1429
1430Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
Haibo Huangb16e0172018-07-02 14:40:07 -07001436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
Haibo Huangfd5e81a2019-06-20 12:09:36 -07001440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
Haibo Huangb16e0172018-07-02 14:40:07 -07001444 --disable-libtool-lock avoid locking (might break parallel builds)
Haibo Huang40a71912019-10-11 11:13:39 -07001445 --enable-xml-attr-info Enable retrieving the byte offsets for attribute
1446 names and values [default=no]
Haibo Huangb16e0172018-07-02 14:40:07 -07001447 --enable-xml-context [COUNT]
1448 Retain context around the current parse point;
1449 default is enabled and a size of 1024 bytes
1450 --disable-xml-context Do not retain context around the current parse point
1451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-aix-soname=aix|svr4|both
1458 shared library versioning (aka "SONAME") variant to
1459 provide on AIX, [default=aix].
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1462 compiler's sysroot if not specified).
Haibo Huangb16e0172018-07-02 14:40:07 -07001463 --without-xmlwf do not build xmlwf
Haibo Huangfd5e81a2019-06-20 12:09:36 -07001464 --without-examples do not build examples [default=included]
Haibo Huangfd5e81a2019-06-20 12:09:36 -07001465 --without-tests do not build tests [default=included]
1466 --with-libbsd utilize libbsd (for arc4random_buf)
Haibo Huang40a71912019-10-11 11:13:39 -07001467 --with-getrandom enforce the use of getrandom function in the system
1468 [default=check]
1469 --without-getrandom skip auto detect of getrandom [default=check]
1470 --with-sys-getrandom enforce the use of syscall SYS_getrandom function in
1471 the system [default=check]
1472 --without-sys-getrandom skip auto detect of syscall SYS_getrandom
1473 [default=check]
Haibo Huangb16e0172018-07-02 14:40:07 -07001474 --with-docbook enforce XML to man page compilation [default=check]
1475 --without-docbook skip XML to man page compilation [default=check]
1476
1477Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 LT_SYS_LIBRARY_PATH
1486 User-defined run-time library search path.
1487 CPP C preprocessor
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1490 CXXCPP C++ preprocessor
1491 DOCBOOK_TO_MAN
1492 docbook2x-man command
1493
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
1497Report bugs to <expat-bugs@libexpat.org>.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559 cat <<\_ACEOF
Haibo Huang40a71912019-10-11 11:13:39 -07001560expat configure 2.2.9
Haibo Huangb16e0172018-07-02 14:40:07 -07001561generated by GNU Autoconf 2.69
1562
1563Copyright (C) 2012 Free Software Foundation, Inc.
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567 exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_compile
1611
1612# ac_fn_c_try_link LINENO
1613# -----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_link ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 test -x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656} # ac_fn_c_try_link
1657
1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659# -------------------------------------------------------
1660# Tests whether HEADER exists and can be compiled using the include files in
1661# INCLUDES, setting the cache variable VAR accordingly.
1662ac_fn_c_check_header_compile ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
1667if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1669else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677else
1678 eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_compile
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } > conftest.i && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_c_try_run LINENO
1727# ----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729# that executables *can* be run.
1730ac_fn_c_try_run ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_run
1767
1768# ac_fn_c_check_func LINENO FUNC VAR
1769# ----------------------------------
1770# Tests whether FUNC exists, setting the cache variable VAR accordingly
1771ac_fn_c_check_func ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
1776if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783#define $2 innocuous_$2
1784
1785/* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790#ifdef __STDC__
1791# include <limits.h>
1792#else
1793# include <assert.h>
1794#endif
1795
1796#undef $2
1797
1798/* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801#ifdef __cplusplus
1802extern "C"
1803#endif
1804char $2 ();
1805/* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808#if defined __stub_$2 || defined __stub___$2
1809choke me
1810#endif
1811
1812int
1813main ()
1814{
1815return $2 ();
1816 ;
1817 return 0;
1818}
1819_ACEOF
1820if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822else
1823 eval "$3=no"
1824fi
1825rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_c_check_func
1834
1835# ac_fn_cxx_try_compile LINENO
1836# ----------------------------
1837# Try to compile conftest.$ac_ext, and return whether this succeeded.
1838ac_fn_cxx_try_compile ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext
1842 if { { ac_try="$ac_compile"
1843case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848$as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1861 ac_retval=0
1862else
1863 $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866 ac_retval=1
1867fi
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1870
1871} # ac_fn_cxx_try_compile
1872
1873# ac_fn_cxx_try_cpp LINENO
1874# ------------------------
1875# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876ac_fn_cxx_try_cpp ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } > conftest.i && {
1895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1896 test ! -s conftest.err
1897 }; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=1
1904fi
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1907
1908} # ac_fn_cxx_try_cpp
1909
1910# ac_fn_cxx_try_link LINENO
1911# -------------------------
1912# Try to link conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_cxx_try_link ()
1914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_cxx_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest$ac_exeext && {
1936 test "$cross_compiling" = yes ||
1937 test -x conftest$ac_exeext
1938 }; then :
1939 ac_retval=0
1940else
1941 $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944 ac_retval=1
1945fi
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954} # ac_fn_cxx_try_link
1955
1956# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1957# -------------------------------------------
1958# Tests whether TYPE exists after having included INCLUDES, setting cache
1959# variable VAR accordingly.
1960ac_fn_c_check_type ()
1961{
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967else
1968 eval "$3=no"
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h. */
1971$4
1972int
1973main ()
1974{
1975if (sizeof ($2))
1976 return 0;
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h. */
1984$4
1985int
1986main ()
1987{
1988if (sizeof (($2)))
1989 return 0;
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"; then :
1995
1996else
1997 eval "$3=yes"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008} # ac_fn_c_check_type
2009
2010# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2011# -------------------------------------------------------
2012# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2013# the include files in INCLUDES and setting the cache variable VAR
2014# accordingly.
2015ac_fn_c_check_header_mongrel ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if eval \${$3+:} false; then :
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023fi
2024eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027else
2028 # Is the header compilable?
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2030$as_echo_n "checking $2 usability... " >&6; }
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034#include <$2>
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_header_compiler=yes
2038else
2039 ac_header_compiler=no
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2043$as_echo "$ac_header_compiler" >&6; }
2044
2045# Is the header present?
2046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2047$as_echo_n "checking $2 presence... " >&6; }
2048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050#include <$2>
2051_ACEOF
2052if ac_fn_c_try_cpp "$LINENO"; then :
2053 ac_header_preproc=yes
2054else
2055 ac_header_preproc=no
2056fi
2057rm -f conftest.err conftest.i conftest.$ac_ext
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2059$as_echo "$ac_header_preproc" >&6; }
2060
2061# So? What about this header?
2062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2063 yes:no: )
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2065$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2067$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 ;;
2069 no:yes:* )
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2071$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2073$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2075$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2077$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2080( $as_echo "## -------------------------------------- ##
2081## Report this to expat-bugs@libexpat.org ##
2082## -------------------------------------- ##"
2083 ) | sed "s/^/$as_me: WARNING: /" >&2
2084 ;;
2085esac
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090else
2091 eval "$3=\$ac_header_compiler"
2092fi
2093eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095$as_echo "$ac_res" >&6; }
2096fi
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099} # ac_fn_c_check_header_mongrel
2100cat >config.log <<_ACEOF
2101This file contains any messages produced by compilers while
2102running configure, to aid debugging if configure makes a mistake.
2103
Haibo Huang40a71912019-10-11 11:13:39 -07002104It was created by expat $as_me 2.2.9, which was
Haibo Huangb16e0172018-07-02 14:40:07 -07002105generated by GNU Autoconf 2.69. Invocation command line was
2106
2107 $ $0 $@
2108
2109_ACEOF
2110exec 5>>config.log
2111{
2112cat <<_ASUNAME
2113## --------- ##
2114## Platform. ##
2115## --------- ##
2116
2117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122
2123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125
2126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133
2134_ASUNAME
2135
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2142 done
2143IFS=$as_save_IFS
2144
2145} >&5
2146
2147cat >&5 <<_ACEOF
2148
2149
2150## ----------- ##
2151## Core tests. ##
2152## ----------- ##
2153
2154_ACEOF
2155
2156
2157# Keep a trace of the command line.
2158# Strip out --no-create and --no-recursion so they do not pile up.
2159# Strip out --silent because we don't want to record it for future runs.
2160# Also quote any args containing shell meta-characters.
2161# Make two passes to allow for proper duplicate-argument suppression.
2162ac_configure_args=
2163ac_configure_args0=
2164ac_configure_args1=
2165ac_must_keep_next=false
2166for ac_pass in 1 2
2167do
2168 for ac_arg
2169 do
2170 case $ac_arg in
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2174 continue ;;
2175 *\'*)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 esac
2178 case $ac_pass in
2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 2)
2181 as_fn_append ac_configure_args1 " '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2184 else
2185 case $ac_arg in
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 esac
2193 ;;
2194 -* ) ac_must_keep_next=true ;;
2195 esac
2196 fi
2197 as_fn_append ac_configure_args " '$ac_arg'"
2198 ;;
2199 esac
2200 done
2201done
2202{ ac_configure_args0=; unset ac_configure_args0;}
2203{ ac_configure_args1=; unset ac_configure_args1;}
2204
2205# When interrupted or exit'd, cleanup temporary files, and complete
2206# config.log. We remove comments because anyway the quotes in there
2207# would cause problems or look ugly.
2208# WARNING: Use '\'' to represent an apostrophe within the trap.
2209# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2212 {
2213 echo
2214
2215 $as_echo "## ---------------- ##
2216## Cache variables. ##
2217## ---------------- ##"
2218 echo
2219 # The following way of writing the cache mishandles newlines in values,
2220(
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in #(
2224 *${as_nl}*)
2225 case $ac_var in #(
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 esac
2229 case $ac_var in #(
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2233 esac ;;
2234 esac
2235 done
2236 (set) 2>&1 |
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2239 sed -n \
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 ;; #(
2243 *)
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 ;;
2246 esac |
2247 sort
2248)
2249 echo
2250
2251 $as_echo "## ----------------- ##
2252## Output variables. ##
2253## ----------------- ##"
2254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
2266 $as_echo "## ------------------- ##
2267## File substitutions. ##
2268## ------------------- ##"
2269 echo
2270 for ac_var in $ac_subst_files
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279 fi
2280
2281 if test -s confdefs.h; then
2282 $as_echo "## ----------- ##
2283## confdefs.h. ##
2284## ----------- ##"
2285 echo
2286 cat confdefs.h
2287 echo
2288 fi
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2296' 0
2297for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299done
2300ac_signal=0
2301
2302# confdefs.h avoids OS command line length limits that DEFS can exceed.
2303rm -f -r conftest* confdefs.h
2304
2305$as_echo "/* confdefs.h */" > confdefs.h
2306
2307# Predefined preprocessor variables.
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_NAME "$PACKAGE_NAME"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_VERSION "$PACKAGE_VERSION"
2319_ACEOF
2320
2321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_STRING "$PACKAGE_STRING"
2323_ACEOF
2324
2325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327_ACEOF
2328
2329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_URL "$PACKAGE_URL"
2331_ACEOF
2332
2333
2334# Let the site file select an alternate cache file if it wants to.
2335# Prefer an explicitly selected file to automatically selected ones.
2336ac_site_file1=NONE
2337ac_site_file2=NONE
2338if test -n "$CONFIG_SITE"; then
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1=./$CONFIG_SITE;;
2342 */*) ac_site_file1=$CONFIG_SITE;;
2343 *) ac_site_file1=./$CONFIG_SITE;;
2344 esac
2345elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2351fi
2352for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353do
2354 test "x$ac_site_file" = xNONE && continue
2355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file" \
2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362as_fn_error $? "failed to load site script $ac_site_file
2363See \`config.log' for more details" "$LINENO" 5; }
2364 fi
2365done
2366
2367if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372$as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2377 fi
2378else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380$as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2382fi
2383
2384as_fn_append ac_header_list " stdlib.h"
2385as_fn_append ac_header_list " unistd.h"
2386as_fn_append ac_header_list " sys/param.h"
2387# Check that the precious variables saved in the cache have kept the same
2388# value.
2389ac_cache_corrupted=false
2390for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2405 *)
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2418 fi
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2435 fi
2436done
2437if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443fi
2444## -------------------- ##
2445## Main body of script. ##
2446## -------------------- ##
2447
2448ac_ext=c
2449ac_cpp='$CPP $CPPFLAGS'
2450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
2454
2455
2456
2457
2458ac_aux_dir=
2459for ac_dir in conftools "$srcdir"/conftools; do
2460 if test -f "$ac_dir/install-sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install-sh -c"
2463 break
2464 elif test -f "$ac_dir/install.sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install.sh -c"
2467 break
2468 elif test -f "$ac_dir/shtool"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/shtool install -c"
2471 break
2472 fi
2473done
2474if test -z "$ac_aux_dir"; then
2475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
2476fi
2477
2478# These three variables are undocumented and unsupported,
2479# and are intended to be withdrawn in a future Autoconf release.
2480# They can cause serious problems if a builder's source tree is in a directory
2481# whose full name contains unusual characters.
2482ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485
2486
Haibo Huangfd5e81a2019-06-20 12:09:36 -07002487
Haibo Huang40a71912019-10-11 11:13:39 -07002488# Make sure we can run config.sub.
2489$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2491
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2493$as_echo_n "checking build system type... " >&6; }
2494if ${ac_cv_build+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496else
2497 ac_build_alias=$build_alias
2498test "x$ac_build_alias" = x &&
2499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2500test "x$ac_build_alias" = x &&
2501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2502ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2504
2505fi
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2507$as_echo "$ac_cv_build" >&6; }
2508case $ac_cv_build in
2509*-*-*) ;;
2510*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2511esac
2512build=$ac_cv_build
2513ac_save_IFS=$IFS; IFS='-'
2514set x $ac_cv_build
2515shift
2516build_cpu=$1
2517build_vendor=$2
2518shift; shift
2519# Remember, the first character of IFS is used to create $*,
2520# except with old shells:
2521build_os=$*
2522IFS=$ac_save_IFS
2523case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2524
2525
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2527$as_echo_n "checking host system type... " >&6; }
2528if ${ac_cv_host+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530else
2531 if test "x$host_alias" = x; then
2532 ac_cv_host=$ac_cv_build
2533else
2534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2536fi
2537
2538fi
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2540$as_echo "$ac_cv_host" >&6; }
2541case $ac_cv_host in
2542*-*-*) ;;
2543*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2544esac
2545host=$ac_cv_host
2546ac_save_IFS=$IFS; IFS='-'
2547set x $ac_cv_host
2548shift
2549host_cpu=$1
2550host_vendor=$2
2551shift; shift
2552# Remember, the first character of IFS is used to create $*,
2553# except with old shells:
2554host_os=$*
2555IFS=$ac_save_IFS
2556case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2557
2558
Haibo Huangfd5e81a2019-06-20 12:09:36 -07002559am__api_version='1.16'
Haibo Huangb16e0172018-07-02 14:40:07 -07002560
2561# Find a good install program. We prefer a C program (faster),
2562# so one script is as good as another. But avoid the broken or
2563# incompatible versions:
2564# SysV /etc/install, /usr/sbin/install
2565# SunOS /usr/etc/install
2566# IRIX /sbin/install
2567# AIX /bin/install
2568# AmigaOS /C/install, which installs bootblocks on floppy discs
2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572# OS/2's system install, which has a completely different semantic
2573# ./install, which can be erroneously created by make from ./install.sh.
2574# Reject install programs that cannot install multiple files.
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577if test -z "$INSTALL"; then
2578if ${ac_cv_path_install+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in #((
2588 ./ | .// | /[cC]/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591 /usr/ucb/* ) ;;
2592 *)
2593 # OSF1 and SCO ODT 3.0 have their own names for install.
2594 # Don't use installbsd from OSF since it installs stuff as root
2595 # by default.
2596 for ac_prog in ginstall scoinst install; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599 if test $ac_prog = install &&
2600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # AIX install. It has an incompatible calling convention.
2602 :
2603 elif test $ac_prog = install &&
2604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # program-specific install script used by HP pwplus--don't use.
2606 :
2607 else
2608 rm -rf conftest.one conftest.two conftest.dir
2609 echo one > conftest.one
2610 echo two > conftest.two
2611 mkdir conftest.dir
2612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613 test -s conftest.one && test -s conftest.two &&
2614 test -s conftest.dir/conftest.one &&
2615 test -s conftest.dir/conftest.two
2616 then
2617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618 break 3
2619 fi
2620 fi
2621 fi
2622 done
2623 done
2624 ;;
2625esac
2626
2627 done
2628IFS=$as_save_IFS
2629
2630rm -rf conftest.one conftest.two conftest.dir
2631
2632fi
2633 if test "${ac_cv_path_install+set}" = set; then
2634 INSTALL=$ac_cv_path_install
2635 else
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for INSTALL within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 INSTALL=$ac_install_sh
2641 fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644$as_echo "$INSTALL" >&6; }
2645
2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647# It thinks the first close brace ends the variable substitution.
2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655$as_echo_n "checking whether build environment is sane... " >&6; }
2656# Reject unsafe characters in $srcdir or the absolute working directory
2657# name. Accept space and tab only in the latter.
2658am_lf='
2659'
2660case `pwd` in
2661 *[\\\"\#\$\&\'\`$am_lf]*)
2662 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2663esac
2664case $srcdir in
2665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2667esac
2668
2669# Do 'set' in a subshell so we don't clobber the current shell's
2670# arguments. Must try -L first in case configure is actually a
2671# symlink; some systems play weird games with the mod time of symlinks
2672# (eg FreeBSD returns the mod time of the symlink's containing
2673# directory).
2674if (
2675 am_has_slept=no
2676 for am_try in 1 2; do
2677 echo "timestamp, slept: $am_has_slept" > conftest.file
2678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679 if test "$*" = "X"; then
2680 # -L didn't work.
2681 set X `ls -t "$srcdir/configure" conftest.file`
2682 fi
2683 if test "$*" != "X $srcdir/configure conftest.file" \
2684 && test "$*" != "X conftest.file $srcdir/configure"; then
2685
2686 # If neither matched, then we have a broken ls. This can happen
2687 # if, for instance, CONFIG_SHELL is bash and it inherits a
2688 # broken ls alias from the environment. This has actually
2689 # happened. Such a system could not be considered "sane".
2690 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2691 alias in your environment" "$LINENO" 5
2692 fi
2693 if test "$2" = conftest.file || test $am_try -eq 2; then
2694 break
2695 fi
2696 # Just in case.
2697 sleep 1
2698 am_has_slept=yes
2699 done
2700 test "$2" = conftest.file
2701 )
2702then
2703 # Ok.
2704 :
2705else
2706 as_fn_error $? "newly created file is older than distributed files!
2707Check your system clock" "$LINENO" 5
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710$as_echo "yes" >&6; }
2711# If we didn't sleep, we still need to ensure time stamps of config.status and
2712# generated files are strictly newer.
2713am_sleep_pid=
2714if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2715 ( sleep 1 ) &
2716 am_sleep_pid=$!
2717fi
2718
2719rm -f conftest.file
2720
2721test "$program_prefix" != NONE &&
2722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723# Use a double $ so make ignores it.
2724test "$program_suffix" != NONE &&
2725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726# Double any \ or $.
2727# By default was `s,x,x', remove it if useless.
2728ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2730
2731# Expand $ac_aux_dir to an absolute path.
2732am_aux_dir=`cd "$ac_aux_dir" && pwd`
2733
2734if test x"${MISSING+set}" != xset; then
2735 case $am_aux_dir in
2736 *\ * | *\ *)
2737 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2738 *)
2739 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2740 esac
2741fi
2742# Use eval to expand $SHELL
2743if eval "$MISSING --is-lightweight"; then
2744 am_missing_run="$MISSING "
2745else
2746 am_missing_run=
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2748$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2749fi
2750
2751if test x"${install_sh+set}" != xset; then
2752 case $am_aux_dir in
2753 *\ * | *\ *)
2754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2755 *)
2756 install_sh="\${SHELL} $am_aux_dir/install-sh"
2757 esac
2758fi
2759
2760# Installed binaries are usually stripped using 'strip' when the user
2761# run "make install-strip". However 'strip' might not be the right
2762# tool to use in cross-compilation environments, therefore Automake
2763# will honor the 'STRIP' environment variable to overrule this program.
2764if test "$cross_compiling" != no; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}strip; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_STRIP+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772else
2773 if test -n "$STRIP"; then
2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2786 fi
2787done
2788 done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793STRIP=$ac_cv_prog_STRIP
2794if test -n "$STRIP"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796$as_echo "$STRIP" >&6; }
2797else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802
2803fi
2804if test -z "$ac_cv_prog_STRIP"; then
2805 ac_ct_STRIP=$STRIP
2806 # Extract the first word of "strip", so it can be a program name with args.
2807set dummy strip; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812else
2813 if test -n "$ac_ct_STRIP"; then
2814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_STRIP="strip"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828 done
2829IFS=$as_save_IFS
2830
2831fi
2832fi
2833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834if test -n "$ac_ct_STRIP"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836$as_echo "$ac_ct_STRIP" >&6; }
2837else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842 if test "x$ac_ct_STRIP" = x; then
2843 STRIP=":"
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846yes:)
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849ac_tool_warned=yes ;;
2850esac
2851 STRIP=$ac_ct_STRIP
2852 fi
2853else
2854 STRIP="$ac_cv_prog_STRIP"
2855fi
2856
2857fi
2858INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2859
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862if test -z "$MKDIR_P"; then
2863 if ${ac_cv_path_mkdir+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_prog in mkdir gmkdir; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2874 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875 'mkdir (GNU coreutils) '* | \
2876 'mkdir (coreutils) '* | \
2877 'mkdir (fileutils) '4.1*)
2878 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2879 break 3;;
2880 esac
2881 done
2882 done
2883 done
2884IFS=$as_save_IFS
2885
2886fi
2887
2888 test -d ./--version && rmdir ./--version
2889 if test "${ac_cv_path_mkdir+set}" = set; then
2890 MKDIR_P="$ac_cv_path_mkdir -p"
2891 else
2892 # As a last resort, use the slow shell script. Don't cache a
2893 # value for MKDIR_P within a source directory, because that will
2894 # break other packages using the cache if that directory is
2895 # removed, or if the value is a relative name.
2896 MKDIR_P="$ac_install_sh -d"
2897 fi
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900$as_echo "$MKDIR_P" >&6; }
2901
2902for ac_prog in gawk mawk nawk awk
2903do
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905set dummy $ac_prog; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if ${ac_cv_prog_AWK+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910else
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_AWK="$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925done
2926 done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931AWK=$ac_cv_prog_AWK
2932if test -n "$AWK"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934$as_echo "$AWK" >&6; }
2935else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941 test -n "$AWK" && break
2942done
2943
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946set x ${MAKE-make}
2947ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950else
2951 cat >conftest.make <<\_ACEOF
2952SHELL = /bin/sh
2953all:
2954 @echo '@@@%%%=$(MAKE)=@@@%%%'
2955_ACEOF
2956# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958 *@@@%%%=?*=@@@%%%*)
2959 eval ac_cv_prog_make_${ac_make}_set=yes;;
2960 *)
2961 eval ac_cv_prog_make_${ac_make}_set=no;;
2962esac
2963rm -f conftest.make
2964fi
2965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967$as_echo "yes" >&6; }
2968 SET_MAKE=
2969else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972 SET_MAKE="MAKE=${MAKE-make}"
2973fi
2974
2975rm -rf .tst 2>/dev/null
2976mkdir .tst 2>/dev/null
2977if test -d .tst; then
2978 am__leading_dot=.
2979else
2980 am__leading_dot=_
2981fi
2982rmdir .tst 2>/dev/null
2983
2984# Check whether --enable-silent-rules was given.
2985if test "${enable_silent_rules+set}" = set; then :
2986 enableval=$enable_silent_rules;
2987fi
2988
2989case $enable_silent_rules in # (((
2990 yes) AM_DEFAULT_VERBOSITY=0;;
2991 no) AM_DEFAULT_VERBOSITY=1;;
2992 *) AM_DEFAULT_VERBOSITY=1;;
2993esac
2994am_make=${MAKE-make}
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2996$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2997if ${am_cv_make_support_nested_variables+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999else
3000 if $as_echo 'TRUE=$(BAR$(V))
3001BAR0=false
3002BAR1=true
3003V=1
3004am__doit:
3005 @$(TRUE)
3006.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007 am_cv_make_support_nested_variables=yes
3008else
3009 am_cv_make_support_nested_variables=no
3010fi
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3013$as_echo "$am_cv_make_support_nested_variables" >&6; }
3014if test $am_cv_make_support_nested_variables = yes; then
3015 AM_V='$(V)'
3016 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3017else
3018 AM_V=$AM_DEFAULT_VERBOSITY
3019 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3020fi
3021AM_BACKSLASH='\'
3022
3023if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025 # is not polluted with repeated "-I."
3026 am__isrc=' -I$(srcdir)'
3027 # test to see if srcdir already configured
3028 if test -f $srcdir/config.status; then
3029 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3030 fi
3031fi
3032
3033# test whether we have cygpath
3034if test -z "$CYGPATH_W"; then
3035 if (cygpath --version) >/dev/null 2>/dev/null; then
3036 CYGPATH_W='cygpath -w'
3037 else
3038 CYGPATH_W=echo
3039 fi
3040fi
3041
3042
3043# Define the identity of the package.
3044 PACKAGE='expat'
Haibo Huang40a71912019-10-11 11:13:39 -07003045 VERSION='2.2.9'
Haibo Huangb16e0172018-07-02 14:40:07 -07003046
3047
3048cat >>confdefs.h <<_ACEOF
3049#define PACKAGE "$PACKAGE"
3050_ACEOF
3051
3052
3053cat >>confdefs.h <<_ACEOF
3054#define VERSION "$VERSION"
3055_ACEOF
3056
3057# Some tools Automake needs.
3058
3059ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073# For better backward compatibility. To be removed once Automake 1.9.x
3074# dies out for good. For more background, see:
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003075# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
Haibo Huangb16e0172018-07-02 14:40:07 -07003077mkdir_p='$(MKDIR_P)'
3078
3079# We need awk for the "check" target (and possibly the TAP driver). The
3080# system "awk" is bad on some platforms.
3081# Always define AMTAR for backward compatibility. Yes, it's still used
3082# in the wild :-( We should find a proper way to deprecate it ...
3083AMTAR='$${TAR-tar}'
3084
3085
3086# We'll loop over all known methods to create a tar archive until one works.
3087_am_tools='gnutar pax cpio none'
3088
3089am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090
3091
3092
3093
3094
3095
3096# POSIX will say in a future version that running "rm -f" with no argument
3097# is OK; and we want to be able to make that assumption in our Makefile
3098# recipes. So use an aggressive probe to check that the usage we want is
3099# actually supported "in the wild" to an acceptable degree.
3100# See automake bug#10828.
3101# To make any issue more visible, cause the running configure to be aborted
3102# by default if the 'rm' program in use doesn't match our expectations; the
3103# user can still override this though.
3104if rm -f && rm -fr && rm -rf; then : OK; else
3105 cat >&2 <<'END'
3106Oops!
3107
3108Your 'rm' program seems unable to run without file operands specified
3109on the command line, even when the '-f' option is present. This is contrary
3110to the behaviour of most rm programs out there, and not conforming with
3111the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3112
3113Please tell bug-automake@gnu.org about your system, including the value
3114of your $PATH and any error possibly output before this message. This
3115can help us improve future automake versions.
3116
3117END
3118 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3119 echo 'Configuration will proceed anyway, since you have set the' >&2
3120 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3121 echo >&2
3122 else
3123 cat >&2 <<'END'
3124Aborting the configuration process, to ensure you take notice of the issue.
3125
3126You can download and install GNU coreutils to get an 'rm' implementation
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003127that behaves properly: <https://www.gnu.org/software/coreutils/>.
Haibo Huangb16e0172018-07-02 14:40:07 -07003128
3129If you want to complete the configuration process using your problematic
3130'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3131to "yes", and re-run configure.
3132
3133END
3134 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3135 fi
3136fi
3137
3138
3139
3140
Haibo Huang40a71912019-10-11 11:13:39 -07003141LIBCURRENT=7 # sync
3142LIBREVISION=11 # with
3143LIBAGE=6 # CMakeLists.txt!
Haibo Huangb16e0172018-07-02 14:40:07 -07003144
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003145
3146if ${CPPFLAGS+:} false; then :
3147
3148 case " $CPPFLAGS " in #(
3149 *" -DHAVE_EXPAT_CONFIG_H "*) :
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H"; } >&5
3151 (: CPPFLAGS already contains -DHAVE_EXPAT_CONFIG_H) 2>&5
3152 ac_status=$?
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; } ;; #(
3155 *) :
3156
3157 as_fn_append CPPFLAGS " -DHAVE_EXPAT_CONFIG_H"
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
3159 (: CPPFLAGS="$CPPFLAGS") 2>&5
3160 ac_status=$?
3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 ;;
3164esac
3165
3166else
3167
3168 CPPFLAGS=-DHAVE_EXPAT_CONFIG_H
3169 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CPPFLAGS=\"\$CPPFLAGS\""; } >&5
3170 (: CPPFLAGS="$CPPFLAGS") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174
3175fi
3176
Haibo Huangb16e0172018-07-02 14:40:07 -07003177ac_config_headers="$ac_config_headers expat_config.h"
3178
3179
Haibo Huangb16e0172018-07-02 14:40:07 -07003180DEPDIR="${am__leading_dot}deps"
3181
3182ac_config_commands="$ac_config_commands depfiles"
3183
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3185$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3186cat > confinc.mk << 'END'
Haibo Huangb16e0172018-07-02 14:40:07 -07003187am__doit:
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003188 @echo this is the am__doit target >confinc.out
Haibo Huangb16e0172018-07-02 14:40:07 -07003189.PHONY: am__doit
3190END
Haibo Huangb16e0172018-07-02 14:40:07 -07003191am__include="#"
3192am__quote=
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003193# BSD make does it like this.
3194echo '.include "confinc.mk" # ignored' > confmf.BSD
3195# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3196echo 'include confinc.mk # ignored' > confmf.GNU
3197_am_result=no
3198for s in GNU BSD; do
3199 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3200 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }
3204 case $?:`cat confinc.out 2>/dev/null` in #(
3205 '0:this is the am__doit target') :
3206 case $s in #(
3207 BSD) :
3208 am__include='.include' am__quote='"' ;; #(
3209 *) :
3210 am__include='include' am__quote='' ;;
3211esac ;; #(
3212 *) :
Haibo Huangb16e0172018-07-02 14:40:07 -07003213 ;;
Haibo Huangfd5e81a2019-06-20 12:09:36 -07003214esac
3215 if test "$am__include" != "#"; then
3216 _am_result="yes ($s style)"
3217 break
3218 fi
3219done
3220rm -f confinc.* confmf.*
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3222$as_echo "${_am_result}" >&6; }
Haibo Huangb16e0172018-07-02 14:40:07 -07003223
3224# Check whether --enable-dependency-tracking was given.
3225if test "${enable_dependency_tracking+set}" = set; then :
3226 enableval=$enable_dependency_tracking;
3227fi
3228
3229if test "x$enable_dependency_tracking" != xno; then
3230 am_depcomp="$ac_aux_dir/depcomp"
3231 AMDEPBACKSLASH='\'
3232 am__nodep='_no'
3233fi
3234 if test "x$enable_dependency_tracking" != xno; then
3235 AMDEP_TRUE=
3236 AMDEP_FALSE='#'
3237else
3238 AMDEP_TRUE='#'
3239 AMDEP_FALSE=
3240fi
3241
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3250set dummy ${ac_tool_prefix}gcc; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if ${ac_cv_prog_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271 done
3272IFS=$as_save_IFS
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279$as_echo "$CC" >&6; }
3280else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286fi
3287if test -z "$ac_cv_prog_CC"; then
3288 ac_ct_CC=$CC
3289 # Extract the first word of "gcc", so it can be a program name with args.
3290set dummy gcc; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if ${ac_cv_prog_ac_ct_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_ac_ct_CC="gcc"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311 done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317if test -n "$ac_ct_CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3319$as_echo "$ac_ct_CC" >&6; }
3320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325 if test "x$ac_ct_CC" = x; then
3326 CC=""
3327 else
3328 case $cross_compiling:$ac_tool_warned in
3329yes:)
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332ac_tool_warned=yes ;;
3333esac
3334 CC=$ac_ct_CC
3335 fi
3336else
3337 CC="$ac_cv_prog_CC"
3338fi
3339
3340if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3343set dummy ${ac_tool_prefix}cc; ac_word=$2
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345$as_echo_n "checking for $ac_word... " >&6; }
3346if ${ac_cv_prog_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348else
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_CC="${ac_tool_prefix}cc"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363done
3364 done
3365IFS=$as_save_IFS
3366
3367fi
3368fi
3369CC=$ac_cv_prog_CC
3370if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372$as_echo "$CC" >&6; }
3373else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375$as_echo "no" >&6; }
3376fi
3377
3378
3379 fi
3380fi
3381if test -z "$CC"; then
3382 # Extract the first word of "cc", so it can be a program name with args.
3383set dummy cc; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if ${ac_cv_prog_CC+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391else
3392 ac_prog_rejected=no
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3401 ac_prog_rejected=yes
3402 continue
3403 fi
3404 ac_cv_prog_CC="cc"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408done
3409 done
3410IFS=$as_save_IFS
3411
3412if test $ac_prog_rejected = yes; then
3413 # We found a bogon in the path, so make sure we never use it.
3414 set dummy $ac_cv_prog_CC
3415 shift
3416 if test $# != 0; then
3417 # We chose a different compiler from the bogus one.
3418 # However, it has the same basename, so the bogon will be chosen
3419 # first if we set CC to just the basename; use the full file name.
3420 shift
3421 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3422 fi
3423fi
3424fi
3425fi
3426CC=$ac_cv_prog_CC
3427if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429$as_echo "$CC" >&6; }
3430else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433fi
3434
3435
3436fi
3437if test -z "$CC"; then
3438 if test -n "$ac_tool_prefix"; then
3439 for ac_prog in cl.exe
3440 do
3441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444$as_echo_n "checking for $ac_word... " >&6; }
3445if ${ac_cv_prog_CC+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450else
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463 done
3464IFS=$as_save_IFS
3465
3466fi
3467fi
3468CC=$ac_cv_prog_CC
3469if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471$as_echo "$CC" >&6; }
3472else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475fi
3476
3477
3478 test -n "$CC" && break
3479 done
3480fi
3481if test -z "$CC"; then
3482 ac_ct_CC=$CC
3483 for ac_prog in cl.exe
3484do
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486set dummy $ac_prog; ac_word=$2
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488$as_echo_n "checking for $ac_word... " >&6; }
3489if ${ac_cv_prog_ac_ct_CC+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491else
3492 if test -n "$ac_ct_CC"; then
3493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3494else
3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH
3497do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_ac_ct_CC="$ac_prog"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506done
3507 done
3508IFS=$as_save_IFS
3509
3510fi
3511fi
3512ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513if test -n "$ac_ct_CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3515$as_echo "$ac_ct_CC" >&6; }
3516else
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518$as_echo "no" >&6; }
3519fi
3520
3521
3522 test -n "$ac_ct_CC" && break
3523done
3524
3525 if test "x$ac_ct_CC" = x; then
3526 CC=""
3527 else
3528 case $cross_compiling:$ac_tool_warned in
3529yes:)
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532ac_tool_warned=yes ;;
3533esac
3534 CC=$ac_ct_CC
3535 fi
3536fi
3537
3538fi
3539
3540
3541test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543as_fn_error $? "no acceptable C compiler found in \$PATH
3544See \`config.log' for more details" "$LINENO" 5; }
3545
3546# Provide some information about the compiler.
3547$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3548set X $ac_compile
3549ac_compiler=$2
3550for ac_option in --version -v -V -qversion; do
3551 { { ac_try="$ac_compiler $ac_option >&5"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3559 ac_status=$?
3560 if test -s conftest.err; then
3561 sed '10a\
3562... rest of stderr output deleted ...
3563 10q' conftest.err >conftest.er1
3564 cat conftest.er1 >&5
3565 fi
3566 rm -f conftest.er1 conftest.err
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }
3569done
3570
3571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582ac_clean_files_save=$ac_clean_files
3583ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3584# Try to create an executable without -o first, disregard a.out.
3585# It will help us diagnose broken compilers, and finding out an intuition
3586# of exeext.
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3588$as_echo_n "checking whether the C compiler works... " >&6; }
3589ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3590
3591# The possible output files:
3592ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3593
3594ac_rmfiles=
3595for ac_file in $ac_files
3596do
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3599 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3600 esac
3601done
3602rm -f $ac_rmfiles
3603
3604if { { ac_try="$ac_link_default"
3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link_default") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
3615 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3616# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3617# in a Makefile. We should not override ac_cv_exeext if it was cached,
3618# so that the user can short-circuit this test for compilers unknown to
3619# Autoconf.
3620for ac_file in $ac_files ''
3621do
3622 test -f "$ac_file" || continue
3623 case $ac_file in
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3625 ;;
3626 [ab].out )
3627 # We found the default executable, but exeext='' is most
3628 # certainly right.
3629 break;;
3630 *.* )
3631 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3632 then :; else
3633 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634 fi
3635 # We set ac_cv_exeext here because the later test for it is not
3636 # safe: cross compilers may not add the suffix if given an `-o'
3637 # argument, so we may need to know it at that point already.
3638 # Even if this section looks crufty: it has the advantage of
3639 # actually working.
3640 break;;
3641 * )
3642 break;;
3643 esac
3644done
3645test "$ac_cv_exeext" = no && ac_cv_exeext=
3646
3647else
3648 ac_file=''
3649fi
3650if test -z "$ac_file"; then :
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652$as_echo "no" >&6; }
3653$as_echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
3656{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658as_fn_error 77 "C compiler cannot create executables
3659See \`config.log' for more details" "$LINENO" 5; }
3660else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662$as_echo "yes" >&6; }
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3665$as_echo_n "checking for C compiler default output file name... " >&6; }
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3667$as_echo "$ac_file" >&6; }
3668ac_exeext=$ac_cv_exeext
3669
3670rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3671ac_clean_files=$ac_clean_files_save
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3673$as_echo_n "checking for suffix of executables... " >&6; }
3674if { { ac_try="$ac_link"
3675case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678esac
3679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680$as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_link") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; then :
3685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3686# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3687# work properly (i.e., refer to `conftest.exe'), while it won't with
3688# `rm'.
3689for ac_file in conftest.exe conftest conftest.*; do
3690 test -f "$ac_file" || continue
3691 case $ac_file in
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694 break;;
3695 * ) break;;
3696 esac
3697done
3698else
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3702See \`config.log' for more details" "$LINENO" 5; }
3703fi
3704rm -f conftest conftest$ac_cv_exeext
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3706$as_echo "$ac_cv_exeext" >&6; }
3707
3708rm -f conftest.$ac_ext
3709EXEEXT=$ac_cv_exeext
3710ac_exeext=$EXEEXT
3711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h. */
3713#include <stdio.h>
3714int
3715main ()
3716{
3717FILE *f = fopen ("conftest.out", "w");
3718 return ferror (f) || fclose (f) != 0;
3719
3720 ;
3721 return 0;
3722}
3723_ACEOF
3724ac_clean_files="$ac_clean_files conftest.out"
3725# Check that the compiler produces executables we can run. If not, either
3726# the compiler is broken, or we cross compile.
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3728$as_echo_n "checking whether we are cross compiling... " >&6; }
3729if test "$cross_compiling" != yes; then
3730 { { ac_try="$ac_link"
3731case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734esac
3735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736$as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link") 2>&5
3738 ac_status=$?
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }
3741 if { ac_try='./conftest$ac_cv_exeext'
3742 { { case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745esac
3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747$as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_try") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; }; then
3752 cross_compiling=no
3753 else
3754 if test "$cross_compiling" = maybe; then
3755 cross_compiling=yes
3756 else
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759as_fn_error $? "cannot run C compiled programs.
3760If you meant to cross compile, use \`--host'.
3761See \`config.log' for more details" "$LINENO" 5; }
3762 fi
3763 fi
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3766$as_echo "$cross_compiling" >&6; }
3767
3768rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3769ac_clean_files=$ac_clean_files_save
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3771$as_echo_n "checking for suffix of object files... " >&6; }
3772if ${ac_cv_objext+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774else
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h. */
3777
3778int
3779main ()
3780{
3781
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.o conftest.obj
3787if { { ac_try="$ac_compile"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793$as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_compile") 2>&5
3795 ac_status=$?
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then :
3798 for ac_file in conftest.o conftest.obj conftest.*; do
3799 test -f "$ac_file" || continue;
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3802 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3803 break;;
3804 esac
3805done
3806else
3807 $as_echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812as_fn_error $? "cannot compute suffix of object files: cannot compile
3813See \`config.log' for more details" "$LINENO" 5; }
3814fi
3815rm -f conftest.$ac_cv_objext conftest.$ac_ext
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3818$as_echo "$ac_cv_objext" >&6; }
3819OBJEXT=$ac_cv_objext
3820ac_objext=$OBJEXT
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3822$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3823if ${ac_cv_c_compiler_gnu+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h. */
3828
3829int
3830main ()
3831{
3832#ifndef __GNUC__
3833 choke me
3834#endif
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_compiler_gnu=yes
3842else
3843 ac_compiler_gnu=no
3844fi
3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846ac_cv_c_compiler_gnu=$ac_compiler_gnu
3847
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3850$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3851if test $ac_compiler_gnu = yes; then
3852 GCC=yes
3853else
3854 GCC=
3855fi
3856ac_test_CFLAGS=${CFLAGS+set}
3857ac_save_CFLAGS=$CFLAGS
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3859$as_echo_n "checking whether $CC accepts -g... " >&6; }
3860if ${ac_cv_prog_cc_g+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862else
3863 ac_save_c_werror_flag=$ac_c_werror_flag
3864 ac_c_werror_flag=yes
3865 ac_cv_prog_cc_g=no
3866 CFLAGS="-g"
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h. */
3869
3870int
3871main ()
3872{
3873
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_prog_cc_g=yes
3880else
3881 CFLAGS=""
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h. */
3884
3885int
3886main ()
3887{
3888
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893if ac_fn_c_try_compile "$LINENO"; then :
3894
3895else
3896 ac_c_werror_flag=$ac_save_c_werror_flag
3897 CFLAGS="-g"
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899/* end confdefs.h. */
3900
3901int
3902main ()
3903{
3904
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_g=yes
3911fi
3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913fi
3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915fi
3916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3920$as_echo "$ac_cv_prog_cc_g" >&6; }
3921if test "$ac_test_CFLAGS" = set; then
3922 CFLAGS=$ac_save_CFLAGS
3923elif test $ac_cv_prog_cc_g = yes; then
3924 if test "$GCC" = yes; then
3925 CFLAGS="-g -O2"
3926 else
3927 CFLAGS="-g"
3928 fi
3929else
3930 if test "$GCC" = yes; then
3931 CFLAGS="-O2"
3932 else
3933 CFLAGS=
3934 fi
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3937$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3938if ${ac_cv_prog_cc_c89+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 ac_cv_prog_cc_c89=no
3942ac_save_CC=$CC
3943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h. */
3945#include <stdarg.h>
3946#include <stdio.h>
3947struct stat;
3948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3949struct buf { int x; };
3950FILE * (*rcsopen) (struct buf *, struct stat *, int);
3951static char *e (p, i)
3952 char **p;
3953 int i;
3954{
3955 return p[i];
3956}
3957static char *f (char * (*g) (char **, int), char **p, ...)
3958{
3959 char *s;
3960 va_list v;
3961 va_start (v,p);
3962 s = g (p, va_arg (v,int));
3963 va_end (v);
3964 return s;
3965}
3966
3967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3968 function prototypes and stuff, but not '\xHH' hex character constants.
3969 These don't provoke an error unfortunately, instead are silently treated
3970 as 'x'. The following induces an error, until -std is added to get
3971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3972 array size at least. It's necessary to write '\x00'==0 to get something
3973 that's true only with -std. */
3974int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3975
3976/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3977 inside strings and character constants. */
3978#define FOO(x) 'x'
3979int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3980
3981int test (int i, double x);
3982struct s1 {int (*f) (int a);};
3983struct s2 {int (*f) (double a);};
3984int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3985int argc;
3986char **argv;
3987int
3988main ()
3989{
3990return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3997do
3998 CC="$ac_save_CC $ac_arg"
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_prog_cc_c89=$ac_arg
4001fi
4002rm -f core conftest.err conftest.$ac_objext
4003 test "x$ac_cv_prog_cc_c89" != "xno" && break
4004done
4005rm -f conftest.$ac_ext
4006CC=$ac_save_CC
4007
4008fi
4009# AC_CACHE_VAL
4010case "x$ac_cv_prog_cc_c89" in
4011 x)
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4013$as_echo "none needed" >&6; } ;;
4014 xno)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4016$as_echo "unsupported" >&6; } ;;
4017 *)
4018 CC="$CC $ac_cv_prog_cc_c89"
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4020$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4021esac
4022if test "x$ac_cv_prog_cc_c89" != xno; then :
4023
4024fi
4025
4026ac_ext=c
4027ac_cpp='$CPP $CPPFLAGS'
4028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031
4032ac_ext=c
4033ac_cpp='$CPP $CPPFLAGS'
4034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4038$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4039if ${am_cv_prog_cc_c_o+:} false; then :
4040 $as_echo_n "(cached) " >&6
4041else
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053 # Make sure it works both with $CC and with simple cc.
4054 # Following AC_PROG_CC_C_O, we do the test twice because some
4055 # compilers refuse to overwrite an existing .o file with -o,
4056 # though they will create one.
4057 am_cv_prog_cc_c_o=yes
4058 for am_i in 1 2; do
4059 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4060 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } \
4064 && test -f conftest2.$ac_objext; then
4065 : OK
4066 else
4067 am_cv_prog_cc_c_o=no
4068 break
4069 fi
4070 done
4071 rm -f core conftest*
4072 unset am_i
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4075$as_echo "$am_cv_prog_cc_c_o" >&6; }
4076if test "$am_cv_prog_cc_c_o" != yes; then
4077 # Losing compiler, so override with the script.
4078 # FIXME: It is wrong to rewrite CC.
4079 # But if we don't then we get into trouble of one sort or another.
4080 # A longer-term fix would be to have automake use am__CC in this case,
4081 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4082 CC="$am_aux_dir/compile $CC"
4083fi
4084ac_ext=c
4085ac_cpp='$CPP $CPPFLAGS'
4086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
4091depcc="$CC" am_compiler_list=
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4094$as_echo_n "checking dependency style of $depcc... " >&6; }
4095if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4096 $as_echo_n "(cached) " >&6
4097else
4098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4099 # We make a subdir and do the tests there. Otherwise we can end up
4100 # making bogus files that we don't know about and never remove. For
4101 # instance it was reported that on HP-UX the gcc test will end up
4102 # making a dummy file named 'D' -- because '-MD' means "put the output
4103 # in D".
4104 rm -rf conftest.dir
4105 mkdir conftest.dir
4106 # Copy depcomp to subdir because otherwise we won't find it if we're
4107 # using a relative directory.
4108 cp "$am_depcomp" conftest.dir
4109 cd conftest.dir
4110 # We will build objects and dependencies in a subdirectory because
4111 # it helps to detect inapplicable dependency modes. For instance
4112 # both Tru64's cc and ICC support -MD to output dependencies as a
4113 # side effect of compilation, but ICC will put the dependencies in
4114 # the current directory while Tru64 will put them in the object
4115 # directory.
4116 mkdir sub
4117
4118 am_cv_CC_dependencies_compiler_type=none
4119 if test "$am_compiler_list" = ""; then
4120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4121 fi
4122 am__universal=false
4123 case " $depcc " in #(
4124 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4125 esac
4126
4127 for depmode in $am_compiler_list; do
4128 # Setup a source with many dependencies, because some compilers
4129 # like to wrap large dependency lists on column 80 (with \), and
4130 # we should not choose a depcomp mode which is confused by this.
4131 #
4132 # We need to recreate these files for each test, as the compiler may
4133 # overwrite some of them when testing with obscure command lines.
4134 # This happens at least with the AIX C compiler.
4135 : > sub/conftest.c
4136 for i in 1 2 3 4 5 6; do
4137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4138 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4139 # Solaris 10 /bin/sh.
4140 echo '/* dummy */' > sub/conftst$i.h
4141 done
4142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4143
4144 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4145 # mode. It turns out that the SunPro C++ compiler does not properly
4146 # handle '-M -o', and we need to detect this. Also, some Intel
4147 # versions had trouble with output in subdirs.
4148 am__obj=sub/conftest.${OBJEXT-o}
4149 am__minus_obj="-o $am__obj"
4150 case $depmode in
4151 gcc)
4152 # This depmode causes a compiler race in universal mode.
4153 test "$am__universal" = false || continue
4154 ;;
4155 nosideeffect)
4156 # After this tag, mechanisms are not by side-effect, so they'll
4157 # only be used when explicitly requested.
4158 if test "x$enable_dependency_tracking" = xyes; then
4159 continue
4160 else
4161 break
4162 fi
4163 ;;
4164 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4165 # This compiler won't grok '-c -o', but also, the minuso test has
4166 # not run yet. These depmodes are late enough in the game, and
4167 # so weak that their functioning should not be impacted.
4168 am__obj=conftest.${OBJEXT-o}
4169 am__minus_obj=
4170 ;;
4171 none) break ;;
4172 esac
4173 if depmode=$depmode \
4174 source=sub/conftest.c object=$am__obj \
4175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4177 >/dev/null 2>conftest.err &&
4178 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4180 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4181 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4182 # icc doesn't choke on unknown options, it will just issue warnings
4183 # or remarks (even with -Werror). So we grep stderr for any message
4184 # that says an option was ignored or not supported.
4185 # When given -MP, icc 7.0 and 7.1 complain thusly:
4186 # icc: Command line warning: ignoring option '-M'; no argument required
4187 # The diagnosis changed in icc 8.0:
4188 # icc: Command line remark: option '-MP' not supported
4189 if (grep 'ignoring option' conftest.err ||
4190 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4191 am_cv_CC_dependencies_compiler_type=$depmode
4192 break
4193 fi
4194 fi
4195 done
4196
4197 cd ..
4198 rm -rf conftest.dir
4199else
4200 am_cv_CC_dependencies_compiler_type=none
4201fi
4202
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4205$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4206CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4207
4208 if
4209 test "x$enable_dependency_tracking" != xno \
4210 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4211 am__fastdepCC_TRUE=
4212 am__fastdepCC_FALSE='#'
4213else
4214 am__fastdepCC_TRUE='#'
4215 am__fastdepCC_FALSE=
4216fi
4217
4218
Haibo Huangfd5e81a2019-06-20 12:09:36 -07004219
4220if test -n "$ac_tool_prefix"; then
4221 for ac_prog in ar lib "link -lib"
4222 do
4223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
4227if ${ac_cv_prog_AR+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229else
4230 if test -n "$AR"; then
4231 ac_cv_prog_AR="$AR" # Let the user override the test.
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244done
4245 done
4246IFS=$as_save_IFS
4247
4248fi
4249fi
4250AR=$ac_cv_prog_AR
4251if test -n "$AR"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4253$as_echo "$AR" >&6; }
4254else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
4257fi
4258
4259
4260 test -n "$AR" && break
4261 done
4262fi
4263if test -z "$AR"; then
4264 ac_ct_AR=$AR
4265 for ac_prog in ar lib "link -lib"
4266do
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268set dummy $ac_prog; ac_word=$2
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
4271if ${ac_cv_prog_ac_ct_AR+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 if test -n "$ac_ct_AR"; then
4275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_ac_ct_AR="$ac_prog"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289 done
4290IFS=$as_save_IFS
4291
4292fi
4293fi
4294ac_ct_AR=$ac_cv_prog_ac_ct_AR
4295if test -n "$ac_ct_AR"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4297$as_echo "$ac_ct_AR" >&6; }
4298else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
4301fi
4302
4303
4304 test -n "$ac_ct_AR" && break
4305done
4306
4307 if test "x$ac_ct_AR" = x; then
4308 AR="false"
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311yes:)
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314ac_tool_warned=yes ;;
4315esac
4316 AR=$ac_ct_AR
4317 fi
4318fi
4319
4320: ${AR=ar}
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4323$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4324if ${am_cv_ar_interface+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326else
4327 ac_ext=c
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333 am_cv_ar_interface=ar
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h. */
4336int some_variable = 0;
4337_ACEOF
4338if ac_fn_c_try_compile "$LINENO"; then :
4339 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4341 (eval $am_ar_try) 2>&5
4342 ac_status=$?
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 if test "$ac_status" -eq 0; then
4346 am_cv_ar_interface=ar
4347 else
4348 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4350 (eval $am_ar_try) 2>&5
4351 ac_status=$?
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }
4354 if test "$ac_status" -eq 0; then
4355 am_cv_ar_interface=lib
4356 else
4357 am_cv_ar_interface=unknown
4358 fi
4359 fi
4360 rm -f conftest.lib libconftest.a
4361
4362fi
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 ac_ext=c
4365ac_cpp='$CPP $CPPFLAGS'
4366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369
4370fi
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4372$as_echo "$am_cv_ar_interface" >&6; }
4373
4374case $am_cv_ar_interface in
4375ar)
4376 ;;
4377lib)
4378 # Microsoft lib, so override with the ar-lib wrapper script.
4379 # FIXME: It is wrong to rewrite AR.
4380 # But if we don't then we get into trouble of one sort or another.
4381 # A longer-term fix would be to have automake use am__AR in this case,
4382 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4383 # similar.
4384 AR="$am_aux_dir/ar-lib $AR"
4385 ;;
4386unknown)
4387 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4388 ;;
4389esac
4390
4391
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4393$as_echo_n "checking whether ln -s works... " >&6; }
4394LN_S=$as_ln_s
4395if test "$LN_S" = "ln -s"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397$as_echo "yes" >&6; }
4398else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4400$as_echo "no, using $LN_S" >&6; }
4401fi
4402
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4404$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4405set x ${MAKE-make}
4406ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4407if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409else
4410 cat >conftest.make <<\_ACEOF
4411SHELL = /bin/sh
4412all:
4413 @echo '@@@%%%=$(MAKE)=@@@%%%'
4414_ACEOF
4415# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4416case `${MAKE-make} -f conftest.make 2>/dev/null` in
4417 *@@@%%%=?*=@@@%%%*)
4418 eval ac_cv_prog_make_${ac_make}_set=yes;;
4419 *)
4420 eval ac_cv_prog_make_${ac_make}_set=no;;
4421esac
4422rm -f conftest.make
4423fi
4424if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426$as_echo "yes" >&6; }
4427 SET_MAKE=
4428else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430$as_echo "no" >&6; }
4431 SET_MAKE="MAKE=${MAKE-make}"
4432fi
4433
4434
4435
4436case `pwd` in
4437 *\ * | *\ *)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4439$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4440esac
4441
4442
4443
4444macro_version='2.4.6'
4445macro_revision='2.4.6'
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459ltmain=$ac_aux_dir/ltmain.sh
4460
Haibo Huangfd5e81a2019-06-20 12:09:36 -07004461# Backslashify metacharacters that are still active within
4462# double-quoted strings.
4463sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4464
4465# Same as above, but do not quote variable references.
4466double_quote_subst='s/\(["`\\]\)/\\\1/g'
4467
4468# Sed substitution to delay expansion of an escaped shell variable in a
4469# double_quote_subst'ed string.
4470delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4471
4472# Sed substitution to delay expansion of an escaped single quote.
4473delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4474
4475# Sed substitution to avoid accidental globbing in evaled expressions
4476no_glob_subst='s/\*/\\\*/g'
4477
4478ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4479ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4480ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4483$as_echo_n "checking how to print strings... " >&6; }
4484# Test print first, because it will be a builtin if present.
4485if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4486 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4487 ECHO='print -r --'
4488elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4489 ECHO='printf %s\n'
4490else
4491 # Use this function as a fallback that always works.
4492 func_fallback_echo ()
4493 {
4494 eval 'cat <<_LTECHO_EOF
4495$1
4496_LTECHO_EOF'
4497 }
4498 ECHO='func_fallback_echo'
4499fi
4500
4501# func_echo_all arg...
4502# Invoke $ECHO with all args, space-separated.
4503func_echo_all ()
4504{
4505 $ECHO ""
4506}
4507
4508case $ECHO in
4509 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4510$as_echo "printf" >&6; } ;;
4511 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4512$as_echo "print -r" >&6; } ;;
4513 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4514$as_echo "cat" >&6; } ;;
4515esac
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
Haibo Huangb16e0172018-07-02 14:40:07 -07004530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4531$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4532if ${ac_cv_path_SED+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4536 for ac_i in 1 2 3 4 5 6 7; do
4537 ac_script="$ac_script$as_nl$ac_script"
4538 done
4539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4540 { ac_script=; unset ac_script;}
4541 if test -z "$SED"; then
4542 ac_path_SED_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in sed gsed; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_SED" || continue
4553# Check for GNU ac_path_SED and select it if it is found.
4554 # Check for GNU $ac_path_SED
4555case `"$ac_path_SED" --version 2>&1` in
4556*GNU*)
4557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4558*)
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo '' >> "conftest.nl"
4567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_SED_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_SED="$ac_path_SED"
4573 ac_path_SED_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579esac
4580
4581 $ac_path_SED_found && break 3
4582 done
4583 done
4584 done
4585IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_SED"; then
4587 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4588 fi
4589else
4590 ac_cv_path_SED=$SED
4591fi
4592
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4595$as_echo "$ac_cv_path_SED" >&6; }
4596 SED="$ac_cv_path_SED"
4597 rm -f conftest.sed
4598
4599test -z "$SED" && SED=sed
4600Xsed="$SED -e 1s/^X//"
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614if ${ac_cv_path_GREP+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616else
4617 if test -z "$GREP"; then
4618 ac_path_GREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in grep ggrep; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628 as_fn_executable_p "$ac_path_GREP" || continue
4629# Check for GNU ac_path_GREP and select it if it is found.
4630 # Check for GNU $ac_path_GREP
4631case `"$ac_path_GREP" --version 2>&1` in
4632*GNU*)
4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4634*)
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4638 do
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo 'GREP' >> "conftest.nl"
4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_GREP="$ac_path_GREP"
4649 ac_path_GREP_max=$ac_count
4650 fi
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4653 done
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655esac
4656
4657 $ac_path_GREP_found && break 3
4658 done
4659 done
4660 done
4661IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_GREP"; then
4663 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4664 fi
4665else
4666 ac_cv_path_GREP=$GREP
4667fi
4668
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671$as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
4673
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676$as_echo_n "checking for egrep... " >&6; }
4677if ${ac_cv_path_EGREP+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679else
4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681 then ac_cv_path_EGREP="$GREP -E"
4682 else
4683 if test -z "$EGREP"; then
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_prog in egrep; do
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 as_fn_executable_p "$ac_path_EGREP" || continue
4695# Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697case `"$ac_path_EGREP" --version 2>&1` in
4698*GNU*)
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4700*)
4701 ac_count=0
4702 $as_echo_n 0123456789 >"conftest.in"
4703 while :
4704 do
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 as_fn_arith $ac_count + 1 && ac_count=$as_val
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
4716 fi
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4719 done
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721esac
4722
4723 $ac_path_EGREP_found && break 3
4724 done
4725 done
4726 done
4727IFS=$as_save_IFS
4728 if test -z "$ac_cv_path_EGREP"; then
4729 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4730 fi
4731else
4732 ac_cv_path_EGREP=$EGREP
4733fi
4734
4735 fi
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738$as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
4740
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4743$as_echo_n "checking for fgrep... " >&6; }
4744if ${ac_cv_path_FGREP+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746else
4747 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4748 then ac_cv_path_FGREP="$GREP -F"
4749 else
4750 if test -z "$FGREP"; then
4751 ac_path_FGREP_found=false
4752 # Loop through the user's path and test for each of PROGNAME-LIST
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_prog in fgrep; do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4761 as_fn_executable_p "$ac_path_FGREP" || continue
4762# Check for GNU ac_path_FGREP and select it if it is found.
4763 # Check for GNU $ac_path_FGREP
4764case `"$ac_path_FGREP" --version 2>&1` in
4765*GNU*)
4766 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4767*)
4768 ac_count=0
4769 $as_echo_n 0123456789 >"conftest.in"
4770 while :
4771 do
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 $as_echo 'FGREP' >> "conftest.nl"
4776 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_FGREP="$ac_path_FGREP"
4782 ac_path_FGREP_max=$ac_count
4783 fi
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788esac
4789
4790 $ac_path_FGREP_found && break 3
4791 done
4792 done
4793 done
4794IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_FGREP"; then
4796 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4797 fi
4798else
4799 ac_cv_path_FGREP=$FGREP
4800fi
4801
4802 fi
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4805$as_echo "$ac_cv_path_FGREP" >&6; }
4806 FGREP="$ac_cv_path_FGREP"
4807
4808
4809test -z "$GREP" && GREP=grep
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829# Check whether --with-gnu-ld was given.
4830if test "${with_gnu_ld+set}" = set; then :
4831 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4832else
4833 with_gnu_ld=no
4834fi
4835
4836ac_prog=ld
4837if test yes = "$GCC"; then
4838 # Check if gcc -print-prog-name=ld gives a path.
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4840$as_echo_n "checking for ld used by $CC... " >&6; }
4841 case $host in
4842 *-*-mingw*)
4843 # gcc leaves a trailing carriage return, which upsets mingw
4844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4845 *)
4846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4847 esac
4848 case $ac_prog in
4849 # Accept absolute paths.
4850 [\\/]* | ?:[\\/]*)
4851 re_direlt='/[^/][^/]*/\.\./'
4852 # Canonicalize the pathname of ld
4853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4856 done
4857 test -z "$LD" && LD=$ac_prog
4858 ;;
4859 "")
4860 # If it fails, then pretend we aren't using GCC.
4861 ac_prog=ld
4862 ;;
4863 *)
4864 # If it is relative, then search for the first ld in PATH.
4865 with_gnu_ld=unknown
4866 ;;
4867 esac
4868elif test yes = "$with_gnu_ld"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4870$as_echo_n "checking for GNU ld... " >&6; }
4871else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4873$as_echo_n "checking for non-GNU ld... " >&6; }
4874fi
4875if ${lt_cv_path_LD+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877else
4878 if test -z "$LD"; then
4879 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4880 for ac_dir in $PATH; do
4881 IFS=$lt_save_ifs
4882 test -z "$ac_dir" && ac_dir=.
4883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4884 lt_cv_path_LD=$ac_dir/$ac_prog
4885 # Check to see if the program is GNU ld. I'd rather use --version,
4886 # but apparently some variants of GNU ld only accept -v.
4887 # Break only if it was the GNU/non-GNU ld that we prefer.
4888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4889 *GNU* | *'with BFD'*)
4890 test no != "$with_gnu_ld" && break
4891 ;;
4892 *)
4893 test yes != "$with_gnu_ld" && break
4894 ;;
4895 esac
4896 fi
4897 done
4898 IFS=$lt_save_ifs
4899else
4900 lt_cv_path_LD=$LD # Let the user override the test with a path.
4901fi
4902fi
4903
4904LD=$lt_cv_path_LD
4905if test -n "$LD"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4907$as_echo "$LD" >&6; }
4908else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910$as_echo "no" >&6; }
4911fi
4912test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4914$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4915if ${lt_cv_prog_gnu_ld+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917else
4918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4919case `$LD -v 2>&1 </dev/null` in
4920*GNU* | *'with BFD'*)
4921 lt_cv_prog_gnu_ld=yes
4922 ;;
4923*)
4924 lt_cv_prog_gnu_ld=no
4925 ;;
4926esac
4927fi
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4929$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4930with_gnu_ld=$lt_cv_prog_gnu_ld
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4941$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4942if ${lt_cv_path_NM+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944else
4945 if test -n "$NM"; then
4946 # Let the user override the test.
4947 lt_cv_path_NM=$NM
4948else
4949 lt_nm_to_check=${ac_tool_prefix}nm
4950 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4951 lt_nm_to_check="$lt_nm_to_check nm"
4952 fi
4953 for lt_tmp_nm in $lt_nm_to_check; do
4954 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4955 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4956 IFS=$lt_save_ifs
4957 test -z "$ac_dir" && ac_dir=.
4958 tmp_nm=$ac_dir/$lt_tmp_nm
4959 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4960 # Check to see if the nm accepts a BSD-compat flag.
4961 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4962 # nm: unknown option "B" ignored
4963 # Tru64's nm complains that /dev/null is an invalid object file
4964 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4965 case $build_os in
4966 mingw*) lt_bad_file=conftest.nm/nofile ;;
4967 *) lt_bad_file=/dev/null ;;
4968 esac
4969 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4970 *$lt_bad_file* | *'Invalid file or object type'*)
4971 lt_cv_path_NM="$tmp_nm -B"
4972 break 2
4973 ;;
4974 *)
4975 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4976 */dev/null*)
4977 lt_cv_path_NM="$tmp_nm -p"
4978 break 2
4979 ;;
4980 *)
4981 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4982 continue # so that we can try to find one that supports BSD flags
4983 ;;
4984 esac
4985 ;;
4986 esac
4987 fi
4988 done
4989 IFS=$lt_save_ifs
4990 done
4991 : ${lt_cv_path_NM=no}
4992fi
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4995$as_echo "$lt_cv_path_NM" >&6; }
4996if test no != "$lt_cv_path_NM"; then
4997 NM=$lt_cv_path_NM
4998else
4999 # Didn't find any BSD compatible name lister, look for dumpbin.
5000 if test -n "$DUMPBIN"; then :
5001 # Let the user override the test.
5002 else
5003 if test -n "$ac_tool_prefix"; then
5004 for ac_prog in dumpbin "link -dump"
5005 do
5006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_DUMPBIN+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012else
5013 if test -n "$DUMPBIN"; then
5014 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027done
5028 done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033DUMPBIN=$ac_cv_prog_DUMPBIN
5034if test -n "$DUMPBIN"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5036$as_echo "$DUMPBIN" >&6; }
5037else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042
5043 test -n "$DUMPBIN" && break
5044 done
5045fi
5046if test -z "$DUMPBIN"; then
5047 ac_ct_DUMPBIN=$DUMPBIN
5048 for ac_prog in dumpbin "link -dump"
5049do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051set dummy $ac_prog; ac_word=$2
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053$as_echo_n "checking for $ac_word... " >&6; }
5054if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056else
5057 if test -n "$ac_ct_DUMPBIN"; then
5058 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071done
5072 done
5073IFS=$as_save_IFS
5074
5075fi
5076fi
5077ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5078if test -n "$ac_ct_DUMPBIN"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5080$as_echo "$ac_ct_DUMPBIN" >&6; }
5081else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084fi
5085
5086
5087 test -n "$ac_ct_DUMPBIN" && break
5088done
5089
5090 if test "x$ac_ct_DUMPBIN" = x; then
5091 DUMPBIN=":"
5092 else
5093 case $cross_compiling:$ac_tool_warned in
5094yes:)
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097ac_tool_warned=yes ;;
5098esac
5099 DUMPBIN=$ac_ct_DUMPBIN
5100 fi
5101fi
5102
5103 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5104 *COFF*)
5105 DUMPBIN="$DUMPBIN -symbols -headers"
5106 ;;
5107 *)
5108 DUMPBIN=:
5109 ;;
5110 esac
5111 fi
5112
5113 if test : != "$DUMPBIN"; then
5114 NM=$DUMPBIN
5115 fi
5116fi
5117test -z "$NM" && NM=nm
5118
5119
5120
5121
5122
5123
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5125$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5126if ${lt_cv_nm_interface+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128else
5129 lt_cv_nm_interface="BSD nm"
5130 echo "int some_variable = 0;" > conftest.$ac_ext
5131 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5132 (eval "$ac_compile" 2>conftest.err)
5133 cat conftest.err >&5
5134 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5135 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5136 cat conftest.err >&5
5137 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5138 cat conftest.out >&5
5139 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5140 lt_cv_nm_interface="MS dumpbin"
5141 fi
5142 rm -f conftest*
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5145$as_echo "$lt_cv_nm_interface" >&6; }
5146
Haibo Huangb16e0172018-07-02 14:40:07 -07005147# find the maximum length of command line arguments
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5149$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5150if ${lt_cv_sys_max_cmd_len+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 i=0
5154 teststring=ABCD
5155
5156 case $build_os in
5157 msdosdjgpp*)
5158 # On DJGPP, this test can blow up pretty badly due to problems in libc
5159 # (any single argument exceeding 2000 bytes causes a buffer overrun
5160 # during glob expansion). Even if it were fixed, the result of this
5161 # check would be larger than it should be.
5162 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5163 ;;
5164
5165 gnu*)
5166 # Under GNU Hurd, this test is not required because there is
5167 # no limit to the length of command line arguments.
5168 # Libtool will interpret -1 as no limit whatsoever
5169 lt_cv_sys_max_cmd_len=-1;
5170 ;;
5171
5172 cygwin* | mingw* | cegcc*)
5173 # On Win9x/ME, this test blows up -- it succeeds, but takes
5174 # about 5 minutes as the teststring grows exponentially.
5175 # Worse, since 9x/ME are not pre-emptively multitasking,
5176 # you end up with a "frozen" computer, even though with patience
5177 # the test eventually succeeds (with a max line length of 256k).
5178 # Instead, let's just punt: use the minimum linelength reported by
5179 # all of the supported platforms: 8192 (on NT/2K/XP).
5180 lt_cv_sys_max_cmd_len=8192;
5181 ;;
5182
5183 mint*)
5184 # On MiNT this can take a long time and run out of memory.
5185 lt_cv_sys_max_cmd_len=8192;
5186 ;;
5187
5188 mint*)
5189 # On MiNT this can take a long time and run out of memory.
5190 lt_cv_sys_max_cmd_len=8192;
5191 ;;
5192
5193 amigaos*)
5194 # On AmigaOS with pdksh, this test takes hours, literally.
5195 # So we just punt and use a minimum line length of 8192.
5196 lt_cv_sys_max_cmd_len=8192;
5197 ;;
5198
5199 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5200 # This has been around since 386BSD, at least. Likely further.
5201 if test -x /sbin/sysctl; then
5202 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5203 elif test -x /usr/sbin/sysctl; then
5204 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5205 else
5206 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5207 fi
5208 # And add a safety zone
5209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5211 ;;
5212
5213 interix*)
5214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5215 lt_cv_sys_max_cmd_len=196608
5216 ;;
5217
5218 os2*)
5219 # The test takes a long time on OS/2.
5220 lt_cv_sys_max_cmd_len=8192
5221 ;;
5222
5223 osf*)
5224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5226 # nice to cause kernel panics so lets avoid the loop below.
5227 # First set a reasonable default.
5228 lt_cv_sys_max_cmd_len=16384
5229 #
5230 if test -x /sbin/sysconfig; then
5231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5233 esac
5234 fi
5235 ;;
5236 sco3.2v5*)
5237 lt_cv_sys_max_cmd_len=102400
5238 ;;
5239 sysv5* | sco5v6* | sysv4.2uw2*)
5240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5241 if test -n "$kargmax"; then
5242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5243 else
5244 lt_cv_sys_max_cmd_len=32768
5245 fi
5246 ;;
5247 *)
5248 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5249 if test -n "$lt_cv_sys_max_cmd_len" && \
5250 test undefined != "$lt_cv_sys_max_cmd_len"; then
5251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5253 else
5254 # Make teststring a little bigger before we do anything with it.
5255 # a 1K string should be a reasonable start.
5256 for i in 1 2 3 4 5 6 7 8; do
5257 teststring=$teststring$teststring
5258 done
5259 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5260 # If test is not a shell built-in, we'll probably end up computing a
5261 # maximum length that is only half of the actual maximum length, but
5262 # we can't tell.
5263 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5264 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5265 test 17 != "$i" # 1/2 MB should be enough
5266 do
5267 i=`expr $i + 1`
5268 teststring=$teststring$teststring
5269 done
5270 # Only check the string length outside the loop.
5271 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5272 teststring=
5273 # Add a significant safety factor because C++ compilers can tack on
5274 # massive amounts of additional arguments before passing them to the
5275 # linker. It appears as though 1/2 is a usable value.
5276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5277 fi
5278 ;;
5279 esac
5280
5281fi
5282
5283if test -n "$lt_cv_sys_max_cmd_len"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5285$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5286else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5288$as_echo "none" >&6; }
5289fi
5290max_cmd_len=$lt_cv_sys_max_cmd_len
5291
5292
5293
5294
5295
5296
5297: ${CP="cp -f"}
5298: ${MV="mv -f"}
5299: ${RM="rm -f"}
5300
5301if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5302 lt_unset=unset
5303else
5304 lt_unset=false
5305fi
5306
5307
5308
5309
5310
5311# test EBCDIC or ASCII
5312case `echo X|tr X '\101'` in
5313 A) # ASCII based system
5314 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5315 lt_SP2NL='tr \040 \012'
5316 lt_NL2SP='tr \015\012 \040\040'
5317 ;;
5318 *) # EBCDIC based system
5319 lt_SP2NL='tr \100 \n'
5320 lt_NL2SP='tr \r\n \100\100'
5321 ;;
5322esac
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5333$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5334if ${lt_cv_to_host_file_cmd+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336else
5337 case $host in
5338 *-*-mingw* )
5339 case $build in
5340 *-*-mingw* ) # actually msys
5341 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5342 ;;
5343 *-*-cygwin* )
5344 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5345 ;;
5346 * ) # otherwise, assume *nix
5347 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5348 ;;
5349 esac
5350 ;;
5351 *-*-cygwin* )
5352 case $build in
5353 *-*-mingw* ) # actually msys
5354 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5355 ;;
5356 *-*-cygwin* )
5357 lt_cv_to_host_file_cmd=func_convert_file_noop
5358 ;;
5359 * ) # otherwise, assume *nix
5360 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5361 ;;
5362 esac
5363 ;;
5364 * ) # unhandled hosts (and "normal" native builds)
5365 lt_cv_to_host_file_cmd=func_convert_file_noop
5366 ;;
5367esac
5368
5369fi
5370
5371to_host_file_cmd=$lt_cv_to_host_file_cmd
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5373$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5374
5375
5376
5377
5378
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5380$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5381if ${lt_cv_to_tool_file_cmd+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383else
5384 #assume ordinary cross tools, or native build.
5385lt_cv_to_tool_file_cmd=func_convert_file_noop
5386case $host in
5387 *-*-mingw* )
5388 case $build in
5389 *-*-mingw* ) # actually msys
5390 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5391 ;;
5392 esac
5393 ;;
5394esac
5395
5396fi
5397
5398to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5400$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5401
5402
5403
5404
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5407$as_echo_n "checking for $LD option to reload object files... " >&6; }
5408if ${lt_cv_ld_reload_flag+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410else
5411 lt_cv_ld_reload_flag='-r'
5412fi
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5414$as_echo "$lt_cv_ld_reload_flag" >&6; }
5415reload_flag=$lt_cv_ld_reload_flag
5416case $reload_flag in
5417"" | " "*) ;;
5418*) reload_flag=" $reload_flag" ;;
5419esac
5420reload_cmds='$LD$reload_flag -o $output$reload_objs'
5421case $host_os in
5422 cygwin* | mingw* | pw32* | cegcc*)
5423 if test yes != "$GCC"; then
5424 reload_cmds=false
5425 fi
5426 ;;
5427 darwin*)
5428 if test yes = "$GCC"; then
5429 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5430 else
5431 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5432 fi
5433 ;;
5434esac
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5446set dummy ${ac_tool_prefix}objdump; ac_word=$2
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448$as_echo_n "checking for $ac_word... " >&6; }
5449if ${ac_cv_prog_OBJDUMP+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451else
5452 if test -n "$OBJDUMP"; then
5453 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466done
5467 done
5468IFS=$as_save_IFS
5469
5470fi
5471fi
5472OBJDUMP=$ac_cv_prog_OBJDUMP
5473if test -n "$OBJDUMP"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5475$as_echo "$OBJDUMP" >&6; }
5476else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478$as_echo "no" >&6; }
5479fi
5480
5481
5482fi
5483if test -z "$ac_cv_prog_OBJDUMP"; then
5484 ac_ct_OBJDUMP=$OBJDUMP
5485 # Extract the first word of "objdump", so it can be a program name with args.
5486set dummy objdump; ac_word=$2
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 if test -n "$ac_ct_OBJDUMP"; then
5493 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506done
5507 done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5513if test -n "$ac_ct_OBJDUMP"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5515$as_echo "$ac_ct_OBJDUMP" >&6; }
5516else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521 if test "x$ac_ct_OBJDUMP" = x; then
5522 OBJDUMP="false"
5523 else
5524 case $cross_compiling:$ac_tool_warned in
5525yes:)
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528ac_tool_warned=yes ;;
5529esac
5530 OBJDUMP=$ac_ct_OBJDUMP
5531 fi
5532else
5533 OBJDUMP="$ac_cv_prog_OBJDUMP"
5534fi
5535
5536test -z "$OBJDUMP" && OBJDUMP=objdump
5537
5538
5539
5540
5541
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5544$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5545if ${lt_cv_deplibs_check_method+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547else
5548 lt_cv_file_magic_cmd='$MAGIC_CMD'
5549lt_cv_file_magic_test_file=
5550lt_cv_deplibs_check_method='unknown'
5551# Need to set the preceding variable on all platforms that support
5552# interlibrary dependencies.
5553# 'none' -- dependencies not supported.
5554# 'unknown' -- same as none, but documents that we really don't know.
5555# 'pass_all' -- all dependencies passed with no checks.
5556# 'test_compile' -- check by making test program.
5557# 'file_magic [[regex]]' -- check by looking for files in library path
5558# that responds to the $file_magic_cmd with a given extended regex.
5559# If you have 'file' or equivalent on your system and you're not sure
5560# whether 'pass_all' will *always* work, you probably want this one.
5561
5562case $host_os in
5563aix[4-9]*)
5564 lt_cv_deplibs_check_method=pass_all
5565 ;;
5566
5567beos*)
5568 lt_cv_deplibs_check_method=pass_all
5569 ;;
5570
5571bsdi[45]*)
5572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5573 lt_cv_file_magic_cmd='/usr/bin/file -L'
5574 lt_cv_file_magic_test_file=/shlib/libc.so
5575 ;;
5576
5577cygwin*)
5578 # func_win32_libid is a shell function defined in ltmain.sh
5579 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5580 lt_cv_file_magic_cmd='func_win32_libid'
5581 ;;
5582
5583mingw* | pw32*)
5584 # Base MSYS/MinGW do not provide the 'file' command needed by
5585 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5586 # unless we find 'file', for example because we are cross-compiling.
5587 if ( file / ) >/dev/null 2>&1; then
5588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5589 lt_cv_file_magic_cmd='func_win32_libid'
5590 else
5591 # Keep this pattern in sync with the one in func_win32_libid.
5592 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5593 lt_cv_file_magic_cmd='$OBJDUMP -f'
5594 fi
5595 ;;
5596
5597cegcc*)
5598 # use the weaker test based on 'objdump'. See mingw*.
5599 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5600 lt_cv_file_magic_cmd='$OBJDUMP -f'
5601 ;;
5602
5603darwin* | rhapsody*)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606
5607freebsd* | dragonfly*)
5608 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5609 case $host_cpu in
5610 i*86 )
5611 # Not sure whether the presence of OpenBSD here was a mistake.
5612 # Let's accept both of them until this is cleared up.
5613 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5614 lt_cv_file_magic_cmd=/usr/bin/file
5615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5616 ;;
5617 esac
5618 else
5619 lt_cv_deplibs_check_method=pass_all
5620 fi
5621 ;;
5622
5623haiku*)
5624 lt_cv_deplibs_check_method=pass_all
5625 ;;
5626
5627hpux10.20* | hpux11*)
5628 lt_cv_file_magic_cmd=/usr/bin/file
5629 case $host_cpu in
5630 ia64*)
5631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5633 ;;
5634 hppa*64*)
5635 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]'
5636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5637 ;;
5638 *)
5639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5641 ;;
5642 esac
5643 ;;
5644
5645interix[3-9]*)
5646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5648 ;;
5649
5650irix5* | irix6* | nonstopux*)
5651 case $LD in
5652 *-32|*"-32 ") libmagic=32-bit;;
5653 *-n32|*"-n32 ") libmagic=N32;;
5654 *-64|*"-64 ") libmagic=64-bit;;
5655 *) libmagic=never-match;;
5656 esac
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660# This must be glibc/ELF.
5661linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664
5665netbsd*)
5666 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5668 else
5669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5670 fi
5671 ;;
5672
5673newos6*)
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5675 lt_cv_file_magic_cmd=/usr/bin/file
5676 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5677 ;;
5678
5679*nto* | *qnx*)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682
5683openbsd* | bitrig*)
5684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5686 else
5687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5688 fi
5689 ;;
5690
5691osf3* | osf4* | osf5*)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694
5695rdos*)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698
5699solaris*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
5707sysv4 | sysv4.3*)
5708 case $host_vendor in
5709 motorola)
5710 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]'
5711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5712 ;;
5713 ncr)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716 sequent)
5717 lt_cv_file_magic_cmd='/bin/file'
5718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5719 ;;
5720 sni)
5721 lt_cv_file_magic_cmd='/bin/file'
5722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5723 lt_cv_file_magic_test_file=/lib/libc.so
5724 ;;
5725 siemens)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728 pc)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731 esac
5732 ;;
5733
5734tpf*)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737os2*)
5738 lt_cv_deplibs_check_method=pass_all
5739 ;;
5740esac
5741
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5744$as_echo "$lt_cv_deplibs_check_method" >&6; }
5745
5746file_magic_glob=
5747want_nocaseglob=no
5748if test "$build" = "$host"; then
5749 case $host_os in
5750 mingw* | pw32*)
5751 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5752 want_nocaseglob=yes
5753 else
5754 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5755 fi
5756 ;;
5757 esac
5758fi
5759
5760file_magic_cmd=$lt_cv_file_magic_cmd
5761deplibs_check_method=$lt_cv_deplibs_check_method
5762test -z "$deplibs_check_method" && deplibs_check_method=unknown
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5787set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789$as_echo_n "checking for $ac_word... " >&6; }
5790if ${ac_cv_prog_DLLTOOL+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792else
5793 if test -n "$DLLTOOL"; then
5794 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808 done
5809IFS=$as_save_IFS
5810
5811fi
5812fi
5813DLLTOOL=$ac_cv_prog_DLLTOOL
5814if test -n "$DLLTOOL"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5816$as_echo "$DLLTOOL" >&6; }
5817else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819$as_echo "no" >&6; }
5820fi
5821
5822
5823fi
5824if test -z "$ac_cv_prog_DLLTOOL"; then
5825 ac_ct_DLLTOOL=$DLLTOOL
5826 # Extract the first word of "dlltool", so it can be a program name with args.
5827set dummy dlltool; ac_word=$2
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829$as_echo_n "checking for $ac_word... " >&6; }
5830if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832else
5833 if test -n "$ac_ct_DLLTOOL"; then
5834 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847done
5848 done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5854if test -n "$ac_ct_DLLTOOL"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5856$as_echo "$ac_ct_DLLTOOL" >&6; }
5857else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862 if test "x$ac_ct_DLLTOOL" = x; then
5863 DLLTOOL="false"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866yes:)
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869ac_tool_warned=yes ;;
5870esac
5871 DLLTOOL=$ac_ct_DLLTOOL
5872 fi
5873else
5874 DLLTOOL="$ac_cv_prog_DLLTOOL"
5875fi
5876
5877test -z "$DLLTOOL" && DLLTOOL=dlltool
5878
5879
5880
5881
5882
5883
5884
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5886$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5887if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889else
5890 lt_cv_sharedlib_from_linklib_cmd='unknown'
5891
5892case $host_os in
5893cygwin* | mingw* | pw32* | cegcc*)
5894 # two different shell functions defined in ltmain.sh;
5895 # decide which one to use based on capabilities of $DLLTOOL
5896 case `$DLLTOOL --help 2>&1` in
5897 *--identify-strict*)
5898 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5899 ;;
5900 *)
5901 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5902 ;;
5903 esac
5904 ;;
5905*)
5906 # fallback: assume linklib IS sharedlib
5907 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5908 ;;
5909esac
5910
5911fi
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5913$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5914sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5915test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5916
5917
5918
5919
5920
5921
5922
Haibo Huangb16e0172018-07-02 14:40:07 -07005923if test -n "$ac_tool_prefix"; then
5924 for ac_prog in ar
5925 do
5926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
5930if ${ac_cv_prog_AR+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932else
5933 if test -n "$AR"; then
5934 ac_cv_prog_AR="$AR" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948 done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
5953AR=$ac_cv_prog_AR
5954if test -n "$AR"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5956$as_echo "$AR" >&6; }
5957else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
5962
5963 test -n "$AR" && break
5964 done
5965fi
5966if test -z "$AR"; then
5967 ac_ct_AR=$AR
5968 for ac_prog in ar
5969do
5970 # Extract the first word of "$ac_prog", so it can be a program name with args.
5971set dummy $ac_prog; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if ${ac_cv_prog_ac_ct_AR+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$ac_ct_AR"; then
5978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_ac_ct_AR="$ac_prog"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992 done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997ac_ct_AR=$ac_cv_prog_ac_ct_AR
5998if test -n "$ac_ct_AR"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6000$as_echo "$ac_ct_AR" >&6; }
6001else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007 test -n "$ac_ct_AR" && break
6008done
6009
6010 if test "x$ac_ct_AR" = x; then
6011 AR="false"
6012 else
6013 case $cross_compiling:$ac_tool_warned in
6014yes:)
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6017ac_tool_warned=yes ;;
6018esac
6019 AR=$ac_ct_AR
6020 fi
6021fi
6022
6023: ${AR=ar}
6024: ${AR_FLAGS=cru}
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6037$as_echo_n "checking for archiver @FILE support... " >&6; }
6038if ${lt_cv_ar_at_file+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040else
6041 lt_cv_ar_at_file=no
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
6054 echo conftest.$ac_objext > conftest.lst
6055 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6057 (eval $lt_ar_try) 2>&5
6058 ac_status=$?
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }
6061 if test 0 -eq "$ac_status"; then
6062 # Ensure the archiver fails upon bogus file names.
6063 rm -f conftest.$ac_objext libconftest.a
6064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6065 (eval $lt_ar_try) 2>&5
6066 ac_status=$?
6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6068 test $ac_status = 0; }
6069 if test 0 -ne "$ac_status"; then
6070 lt_cv_ar_at_file=@
6071 fi
6072 fi
6073 rm -f conftest.* libconftest.a
6074
6075fi
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6080$as_echo "$lt_cv_ar_at_file" >&6; }
6081
6082if test no = "$lt_cv_ar_at_file"; then
6083 archiver_list_spec=
6084else
6085 archiver_list_spec=$lt_cv_ar_at_file
6086fi
6087
6088
6089
6090
6091
6092
6093
6094if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6096set dummy ${ac_tool_prefix}strip; ac_word=$2
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if ${ac_cv_prog_STRIP+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 if test -n "$STRIP"; then
6103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6104else
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116done
6117 done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122STRIP=$ac_cv_prog_STRIP
6123if test -n "$STRIP"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6125$as_echo "$STRIP" >&6; }
6126else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
6129fi
6130
6131
6132fi
6133if test -z "$ac_cv_prog_STRIP"; then
6134 ac_ct_STRIP=$STRIP
6135 # Extract the first word of "strip", so it can be a program name with args.
6136set dummy strip; ac_word=$2
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138$as_echo_n "checking for $ac_word... " >&6; }
6139if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141else
6142 if test -n "$ac_ct_STRIP"; then
6143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6144else
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_ac_ct_STRIP="strip"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156done
6157 done
6158IFS=$as_save_IFS
6159
6160fi
6161fi
6162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6163if test -n "$ac_ct_STRIP"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6165$as_echo "$ac_ct_STRIP" >&6; }
6166else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168$as_echo "no" >&6; }
6169fi
6170
6171 if test "x$ac_ct_STRIP" = x; then
6172 STRIP=":"
6173 else
6174 case $cross_compiling:$ac_tool_warned in
6175yes:)
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6178ac_tool_warned=yes ;;
6179esac
6180 STRIP=$ac_ct_STRIP
6181 fi
6182else
6183 STRIP="$ac_cv_prog_STRIP"
6184fi
6185
6186test -z "$STRIP" && STRIP=:
6187
6188
6189
6190
6191
6192
6193if test -n "$ac_tool_prefix"; then
6194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6195set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197$as_echo_n "checking for $ac_word... " >&6; }
6198if ${ac_cv_prog_RANLIB+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200else
6201 if test -n "$RANLIB"; then
6202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215done
6216 done
6217IFS=$as_save_IFS
6218
6219fi
6220fi
6221RANLIB=$ac_cv_prog_RANLIB
6222if test -n "$RANLIB"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6224$as_echo "$RANLIB" >&6; }
6225else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227$as_echo "no" >&6; }
6228fi
6229
6230
6231fi
6232if test -z "$ac_cv_prog_RANLIB"; then
6233 ac_ct_RANLIB=$RANLIB
6234 # Extract the first word of "ranlib", so it can be a program name with args.
6235set dummy ranlib; ac_word=$2
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237$as_echo_n "checking for $ac_word... " >&6; }
6238if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240else
6241 if test -n "$ac_ct_RANLIB"; then
6242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_ac_ct_RANLIB="ranlib"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255done
6256 done
6257IFS=$as_save_IFS
6258
6259fi
6260fi
6261ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6262if test -n "$ac_ct_RANLIB"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6264$as_echo "$ac_ct_RANLIB" >&6; }
6265else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267$as_echo "no" >&6; }
6268fi
6269
6270 if test "x$ac_ct_RANLIB" = x; then
6271 RANLIB=":"
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274yes:)
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277ac_tool_warned=yes ;;
6278esac
6279 RANLIB=$ac_ct_RANLIB
6280 fi
6281else
6282 RANLIB="$ac_cv_prog_RANLIB"
6283fi
6284
6285test -z "$RANLIB" && RANLIB=:
6286
6287
6288
6289
6290
6291
6292# Determine commands to create old-style static archives.
6293old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6294old_postinstall_cmds='chmod 644 $oldlib'
6295old_postuninstall_cmds=
6296
6297if test -n "$RANLIB"; then
6298 case $host_os in
6299 bitrig* | openbsd*)
6300 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6301 ;;
6302 *)
6303 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6304 ;;
6305 esac
6306 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6307fi
6308
6309case $host_os in
6310 darwin*)
6311 lock_old_archive_extraction=yes ;;
6312 *)
6313 lock_old_archive_extraction=no ;;
6314esac
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354# If no C compiler was specified, use CC.
6355LTCC=${LTCC-"$CC"}
6356
6357# If no C compiler flags were specified, use CFLAGS.
6358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6359
6360# Allow CC to be a program name with arguments.
6361compiler=$CC
6362
6363
6364# Check for command to grab the raw symbol name followed by C symbol from nm.
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6366$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6367if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369else
6370
6371# These are sane defaults that work on at least a few old systems.
6372# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6373
6374# Character class describing NM global symbol codes.
6375symcode='[BCDEGRST]'
6376
6377# Regexp to match symbols that can be accessed directly from C.
6378sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6379
6380# Define system-specific variables.
6381case $host_os in
6382aix*)
6383 symcode='[BCDT]'
6384 ;;
6385cygwin* | mingw* | pw32* | cegcc*)
6386 symcode='[ABCDGISTW]'
6387 ;;
6388hpux*)
6389 if test ia64 = "$host_cpu"; then
6390 symcode='[ABCDEGRST]'
6391 fi
6392 ;;
6393irix* | nonstopux*)
6394 symcode='[BCDEGRST]'
6395 ;;
6396osf*)
6397 symcode='[BCDEGQRST]'
6398 ;;
6399solaris*)
6400 symcode='[BDRT]'
6401 ;;
6402sco3.2v5*)
6403 symcode='[DT]'
6404 ;;
6405sysv4.2uw2*)
6406 symcode='[DT]'
6407 ;;
6408sysv5* | sco5v6* | unixware* | OpenUNIX*)
6409 symcode='[ABDT]'
6410 ;;
6411sysv4)
6412 symcode='[DFNSTU]'
6413 ;;
6414esac
6415
6416# If we're using GNU nm, then use its standard symbol codes.
6417case `$NM -V 2>&1` in
6418*GNU* | *'with BFD'*)
6419 symcode='[ABCDGIRSTW]' ;;
6420esac
6421
6422if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6423 # Gets list of data symbols to import.
6424 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6425 # Adjust the below global symbol transforms to fixup imported variables.
6426 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6427 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6428 lt_c_name_lib_hook="\
6429 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6430 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6431else
6432 # Disable hooks by default.
6433 lt_cv_sys_global_symbol_to_import=
6434 lt_cdecl_hook=
6435 lt_c_name_hook=
6436 lt_c_name_lib_hook=
6437fi
6438
6439# Transform an extracted symbol line into a proper C declaration.
6440# Some systems (esp. on ia64) link data and code symbols differently,
6441# so use this general approach.
6442lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6443$lt_cdecl_hook\
6444" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6445" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6446
6447# Transform an extracted symbol line into symbol name and symbol address
6448lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6449$lt_c_name_hook\
6450" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6451" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6452
6453# Transform an extracted symbol line into symbol name with lib prefix and
6454# symbol address.
6455lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6456$lt_c_name_lib_hook\
6457" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6458" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6459" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6460
6461# Handle CRLF in mingw tool chain
6462opt_cr=
6463case $build_os in
6464mingw*)
6465 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6466 ;;
6467esac
6468
6469# Try without a prefix underscore, then with it.
6470for ac_symprfx in "" "_"; do
6471
6472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6473 symxfrm="\\1 $ac_symprfx\\2 \\2"
6474
6475 # Write the raw and C identifiers.
6476 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6477 # Fake it for dumpbin and say T for any non-static function,
6478 # D for any global variable and I for any imported variable.
6479 # Also find C++ and __fastcall symbols from MSVC++,
6480 # which start with @ or ?.
6481 lt_cv_sys_global_symbol_pipe="$AWK '"\
6482" {last_section=section; section=\$ 3};"\
6483" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6484" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6485" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6486" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6487" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6488" \$ 0!~/External *\|/{next};"\
6489" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6490" {if(hide[section]) next};"\
6491" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6492" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6493" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6494" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6495" ' prfx=^$ac_symprfx"
6496 else
6497 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6498 fi
6499 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6500
6501 # Check to see that the pipe works correctly.
6502 pipe_works=no
6503
6504 rm -f conftest*
6505 cat > conftest.$ac_ext <<_LT_EOF
6506#ifdef __cplusplus
6507extern "C" {
6508#endif
6509char nm_test_var;
6510void nm_test_func(void);
6511void nm_test_func(void){}
6512#ifdef __cplusplus
6513}
6514#endif
6515int main(){nm_test_var='a';nm_test_func();return(0);}
6516_LT_EOF
6517
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519 (eval $ac_compile) 2>&5
6520 ac_status=$?
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; }; then
6523 # Now try to grab the symbols.
6524 nlist=conftest.nm
6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6526 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6527 ac_status=$?
6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6529 test $ac_status = 0; } && test -s "$nlist"; then
6530 # Try sorting and uniquifying the output.
6531 if sort "$nlist" | uniq > "$nlist"T; then
6532 mv -f "$nlist"T "$nlist"
6533 else
6534 rm -f "$nlist"T
6535 fi
6536
6537 # Make sure that we snagged all the symbols we need.
6538 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6539 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6540 cat <<_LT_EOF > conftest.$ac_ext
6541/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6542#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6543/* DATA imports from DLLs on WIN32 can't be const, because runtime
6544 relocations are performed -- see ld's documentation on pseudo-relocs. */
6545# define LT_DLSYM_CONST
6546#elif defined __osf__
6547/* This system does not cope well with relocations in const data. */
6548# define LT_DLSYM_CONST
6549#else
6550# define LT_DLSYM_CONST const
6551#endif
6552
6553#ifdef __cplusplus
6554extern "C" {
6555#endif
6556
6557_LT_EOF
6558 # Now generate the symbol file.
6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6560
6561 cat <<_LT_EOF >> conftest.$ac_ext
6562
6563/* The mapping between symbol names and symbols. */
6564LT_DLSYM_CONST struct {
6565 const char *name;
6566 void *address;
6567}
6568lt__PROGRAM__LTX_preloaded_symbols[] =
6569{
6570 { "@PROGRAM@", (void *) 0 },
6571_LT_EOF
6572 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6573 cat <<\_LT_EOF >> conftest.$ac_ext
6574 {0, (void *) 0}
6575};
6576
6577/* This works around a problem in FreeBSD linker */
6578#ifdef FREEBSD_WORKAROUND
6579static const void *lt_preloaded_setup() {
6580 return lt__PROGRAM__LTX_preloaded_symbols;
6581}
6582#endif
6583
6584#ifdef __cplusplus
6585}
6586#endif
6587_LT_EOF
6588 # Now try linking the two files.
6589 mv conftest.$ac_objext conftstm.$ac_objext
6590 lt_globsym_save_LIBS=$LIBS
6591 lt_globsym_save_CFLAGS=$CFLAGS
6592 LIBS=conftstm.$ac_objext
6593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6599 pipe_works=yes
6600 fi
6601 LIBS=$lt_globsym_save_LIBS
6602 CFLAGS=$lt_globsym_save_CFLAGS
6603 else
6604 echo "cannot find nm_test_func in $nlist" >&5
6605 fi
6606 else
6607 echo "cannot find nm_test_var in $nlist" >&5
6608 fi
6609 else
6610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6611 fi
6612 else
6613 echo "$progname: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 fi
6616 rm -rf conftest* conftst*
6617
6618 # Do not use the global_symbol_pipe unless it works.
6619 if test yes = "$pipe_works"; then
6620 break
6621 else
6622 lt_cv_sys_global_symbol_pipe=
6623 fi
6624done
6625
6626fi
6627
6628if test -z "$lt_cv_sys_global_symbol_pipe"; then
6629 lt_cv_sys_global_symbol_to_cdecl=
6630fi
6631if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6633$as_echo "failed" >&6; }
6634else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6636$as_echo "ok" >&6; }
6637fi
6638
6639# Response file support.
6640if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6641 nm_file_list_spec='@'
6642elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6643 nm_file_list_spec='@'
6644fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6683$as_echo_n "checking for sysroot... " >&6; }
6684
6685# Check whether --with-sysroot was given.
6686if test "${with_sysroot+set}" = set; then :
6687 withval=$with_sysroot;
6688else
6689 with_sysroot=no
6690fi
6691
6692
6693lt_sysroot=
6694case $with_sysroot in #(
6695 yes)
6696 if test yes = "$GCC"; then
6697 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6698 fi
6699 ;; #(
6700 /*)
6701 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6702 ;; #(
6703 no|'')
6704 ;; #(
6705 *)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6707$as_echo "$with_sysroot" >&6; }
6708 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6709 ;;
6710esac
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6713$as_echo "${lt_sysroot:-no}" >&6; }
6714
6715
6716
6717
6718
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6720$as_echo_n "checking for a working dd... " >&6; }
6721if ${ac_cv_path_lt_DD+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723else
6724 printf 0123456789abcdef0123456789abcdef >conftest.i
6725cat conftest.i conftest.i >conftest2.i
6726: ${lt_DD:=$DD}
6727if test -z "$lt_DD"; then
6728 ac_path_lt_DD_found=false
6729 # Loop through the user's path and test for each of PROGNAME-LIST
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_prog in dd; do
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6738 as_fn_executable_p "$ac_path_lt_DD" || continue
6739if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6740 cmp -s conftest.i conftest.out \
6741 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6742fi
6743 $ac_path_lt_DD_found && break 3
6744 done
6745 done
6746 done
6747IFS=$as_save_IFS
6748 if test -z "$ac_cv_path_lt_DD"; then
6749 :
6750 fi
6751else
6752 ac_cv_path_lt_DD=$lt_DD
6753fi
6754
6755rm -f conftest.i conftest2.i conftest.out
6756fi
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6758$as_echo "$ac_cv_path_lt_DD" >&6; }
6759
6760
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6762$as_echo_n "checking how to truncate binary pipes... " >&6; }
6763if ${lt_cv_truncate_bin+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765else
6766 printf 0123456789abcdef0123456789abcdef >conftest.i
6767cat conftest.i conftest.i >conftest2.i
6768lt_cv_truncate_bin=
6769if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6770 cmp -s conftest.i conftest.out \
6771 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6772fi
6773rm -f conftest.i conftest2.i conftest.out
6774test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6777$as_echo "$lt_cv_truncate_bin" >&6; }
6778
6779
6780
6781
6782
6783
6784
6785# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6786func_cc_basename ()
6787{
6788 for cc_temp in $*""; do
6789 case $cc_temp in
6790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6792 \-*) ;;
6793 *) break;;
6794 esac
6795 done
6796 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6797}
6798
6799# Check whether --enable-libtool-lock was given.
6800if test "${enable_libtool_lock+set}" = set; then :
6801 enableval=$enable_libtool_lock;
6802fi
6803
6804test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6805
6806# Some flags need to be propagated to the compiler or linker for good
6807# libtool support.
6808case $host in
6809ia64-*-hpux*)
6810 # Find out what ABI is being produced by ac_compile, and set mode
6811 # options accordingly.
6812 echo 'int i;' > conftest.$ac_ext
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814 (eval $ac_compile) 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; }; then
6818 case `/usr/bin/file conftest.$ac_objext` in
6819 *ELF-32*)
6820 HPUX_IA64_MODE=32
6821 ;;
6822 *ELF-64*)
6823 HPUX_IA64_MODE=64
6824 ;;
6825 esac
6826 fi
6827 rm -rf conftest*
6828 ;;
6829*-*-irix6*)
6830 # Find out what ABI is being produced by ac_compile, and set linker
6831 # options accordingly.
6832 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834 (eval $ac_compile) 2>&5
6835 ac_status=$?
6836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }; then
6838 if test yes = "$lt_cv_prog_gnu_ld"; then
6839 case `/usr/bin/file conftest.$ac_objext` in
6840 *32-bit*)
6841 LD="${LD-ld} -melf32bsmip"
6842 ;;
6843 *N32*)
6844 LD="${LD-ld} -melf32bmipn32"
6845 ;;
6846 *64-bit*)
6847 LD="${LD-ld} -melf64bmip"
6848 ;;
6849 esac
6850 else
6851 case `/usr/bin/file conftest.$ac_objext` in
6852 *32-bit*)
6853 LD="${LD-ld} -32"
6854 ;;
6855 *N32*)
6856 LD="${LD-ld} -n32"
6857 ;;
6858 *64-bit*)
6859 LD="${LD-ld} -64"
6860 ;;
6861 esac
6862 fi
6863 fi
6864 rm -rf conftest*
6865 ;;
6866
6867mips64*-*linux*)
6868 # Find out what ABI is being produced by ac_compile, and set linker
6869 # options accordingly.
6870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 emul=elf
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *32-bit*)
6879 emul="${emul}32"
6880 ;;
6881 *64-bit*)
6882 emul="${emul}64"
6883 ;;
6884 esac
6885 case `/usr/bin/file conftest.$ac_objext` in
6886 *MSB*)
6887 emul="${emul}btsmip"
6888 ;;
6889 *LSB*)
6890 emul="${emul}ltsmip"
6891 ;;
6892 esac
6893 case `/usr/bin/file conftest.$ac_objext` in
6894 *N32*)
6895 emul="${emul}n32"
6896 ;;
6897 esac
6898 LD="${LD-ld} -m $emul"
6899 fi
6900 rm -rf conftest*
6901 ;;
6902
6903x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6904s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6905 # Find out what ABI is being produced by ac_compile, and set linker
6906 # options accordingly. Note that the listed cases only cover the
6907 # situations where additional linker options are needed (such as when
6908 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6909 # vice versa); the common cases where no linker options are needed do
6910 # not appear in the list.
6911 echo 'int i;' > conftest.$ac_ext
6912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6913 (eval $ac_compile) 2>&5
6914 ac_status=$?
6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6916 test $ac_status = 0; }; then
6917 case `/usr/bin/file conftest.o` in
6918 *32-bit*)
6919 case $host in
6920 x86_64-*kfreebsd*-gnu)
6921 LD="${LD-ld} -m elf_i386_fbsd"
6922 ;;
6923 x86_64-*linux*)
6924 case `/usr/bin/file conftest.o` in
6925 *x86-64*)
6926 LD="${LD-ld} -m elf32_x86_64"
6927 ;;
6928 *)
6929 LD="${LD-ld} -m elf_i386"
6930 ;;
6931 esac
6932 ;;
6933 powerpc64le-*linux*)
6934 LD="${LD-ld} -m elf32lppclinux"
6935 ;;
6936 powerpc64-*linux*)
6937 LD="${LD-ld} -m elf32ppclinux"
6938 ;;
6939 s390x-*linux*)
6940 LD="${LD-ld} -m elf_s390"
6941 ;;
6942 sparc64-*linux*)
6943 LD="${LD-ld} -m elf32_sparc"
6944 ;;
6945 esac
6946 ;;
6947 *64-bit*)
6948 case $host in
6949 x86_64-*kfreebsd*-gnu)
6950 LD="${LD-ld} -m elf_x86_64_fbsd"
6951 ;;
6952 x86_64-*linux*)
6953 LD="${LD-ld} -m elf_x86_64"
6954 ;;
6955 powerpcle-*linux*|powerpc64le-*linux*)
6956 LD="${LD-ld} -m elf64lppc"
6957 ;;
6958 powerpc-*linux*|powerpc64-*linux*)
6959 LD="${LD-ld} -m elf64ppc"
6960 ;;
6961 s390*-*linux*|s390*-*tpf*)
6962 LD="${LD-ld} -m elf64_s390"
6963 ;;
6964 sparc*-*linux*)
6965 LD="${LD-ld} -m elf64_sparc"
6966 ;;
6967 esac
6968 ;;
6969 esac
6970 fi
6971 rm -rf conftest*
6972 ;;
6973
6974*-*-sco3.2v5*)
6975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976 SAVE_CFLAGS=$CFLAGS
6977 CFLAGS="$CFLAGS -belf"
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6979$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6980if ${lt_cv_cc_needs_belf+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982else
6983 ac_ext=c
6984ac_cpp='$CPP $CPPFLAGS'
6985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990/* end confdefs.h. */
6991
6992int
6993main ()
6994{
6995
6996 ;
6997 return 0;
6998}
6999_ACEOF
7000if ac_fn_c_try_link "$LINENO"; then :
7001 lt_cv_cc_needs_belf=yes
7002else
7003 lt_cv_cc_needs_belf=no
7004fi
7005rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7007 ac_ext=c
7008ac_cpp='$CPP $CPPFLAGS'
7009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7015$as_echo "$lt_cv_cc_needs_belf" >&6; }
7016 if test yes != "$lt_cv_cc_needs_belf"; then
7017 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7018 CFLAGS=$SAVE_CFLAGS
7019 fi
7020 ;;
7021*-*solaris*)
7022 # Find out what ABI is being produced by ac_compile, and set linker
7023 # options accordingly.
7024 echo 'int i;' > conftest.$ac_ext
7025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026 (eval $ac_compile) 2>&5
7027 ac_status=$?
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }; then
7030 case `/usr/bin/file conftest.o` in
7031 *64-bit*)
7032 case $lt_cv_prog_gnu_ld in
7033 yes*)
7034 case $host in
7035 i?86-*-solaris*|x86_64-*-solaris*)
7036 LD="${LD-ld} -m elf_x86_64"
7037 ;;
7038 sparc*-*-solaris*)
7039 LD="${LD-ld} -m elf64_sparc"
7040 ;;
7041 esac
7042 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7043 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7044 LD=${LD-ld}_sol2
7045 fi
7046 ;;
7047 *)
7048 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7049 LD="${LD-ld} -64"
7050 fi
7051 ;;
7052 esac
7053 ;;
7054 esac
7055 fi
7056 rm -rf conftest*
7057 ;;
7058esac
7059
7060need_locks=$enable_libtool_lock
7061
7062if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7064set dummy ${ac_tool_prefix}mt; ac_word=$2
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
7067if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069else
7070 if test -n "$MANIFEST_TOOL"; then
7071 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7072else
7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074for as_dir in $PATH
7075do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084done
7085 done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7091if test -n "$MANIFEST_TOOL"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7093$as_echo "$MANIFEST_TOOL" >&6; }
7094else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096$as_echo "no" >&6; }
7097fi
7098
7099
7100fi
7101if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7102 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7103 # Extract the first word of "mt", so it can be a program name with args.
7104set dummy mt; ac_word=$2
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106$as_echo_n "checking for $ac_word... " >&6; }
7107if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109else
7110 if test -n "$ac_ct_MANIFEST_TOOL"; then
7111 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125 done
7126IFS=$as_save_IFS
7127
7128fi
7129fi
7130ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7131if test -n "$ac_ct_MANIFEST_TOOL"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7133$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7134else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137fi
7138
7139 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7140 MANIFEST_TOOL=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143yes:)
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146ac_tool_warned=yes ;;
7147esac
7148 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7149 fi
7150else
7151 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7152fi
7153
7154test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7156$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7157if ${lt_cv_path_mainfest_tool+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159else
7160 lt_cv_path_mainfest_tool=no
7161 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7162 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7163 cat conftest.err >&5
7164 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7165 lt_cv_path_mainfest_tool=yes
7166 fi
7167 rm -f conftest*
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7170$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7171if test yes != "$lt_cv_path_mainfest_tool"; then
7172 MANIFEST_TOOL=:
7173fi
7174
7175
7176
7177
7178
7179
7180 case $host_os in
7181 rhapsody* | darwin*)
7182 if test -n "$ac_tool_prefix"; then
7183 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7184set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if ${ac_cv_prog_DSYMUTIL+:} false; then :
7188 $as_echo_n "(cached) " >&6
7189else
7190 if test -n "$DSYMUTIL"; then
7191 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205 done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210DSYMUTIL=$ac_cv_prog_DSYMUTIL
7211if test -n "$DSYMUTIL"; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7213$as_echo "$DSYMUTIL" >&6; }
7214else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219
7220fi
7221if test -z "$ac_cv_prog_DSYMUTIL"; then
7222 ac_ct_DSYMUTIL=$DSYMUTIL
7223 # Extract the first word of "dsymutil", so it can be a program name with args.
7224set dummy dsymutil; ac_word=$2
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229else
7230 if test -n "$ac_ct_DSYMUTIL"; then
7231 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7243 fi
7244done
7245 done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7251if test -n "$ac_ct_DSYMUTIL"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7253$as_echo "$ac_ct_DSYMUTIL" >&6; }
7254else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259 if test "x$ac_ct_DSYMUTIL" = x; then
7260 DSYMUTIL=":"
7261 else
7262 case $cross_compiling:$ac_tool_warned in
7263yes:)
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266ac_tool_warned=yes ;;
7267esac
7268 DSYMUTIL=$ac_ct_DSYMUTIL
7269 fi
7270else
7271 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7272fi
7273
7274 if test -n "$ac_tool_prefix"; then
7275 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7276set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
7279if ${ac_cv_prog_NMEDIT+:} false; then :
7280 $as_echo_n "(cached) " >&6
7281else
7282 if test -n "$NMEDIT"; then
7283 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288 IFS=$as_save_IFS
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 break 2
7295 fi
7296done
7297 done
7298IFS=$as_save_IFS
7299
7300fi
7301fi
7302NMEDIT=$ac_cv_prog_NMEDIT
7303if test -n "$NMEDIT"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7305$as_echo "$NMEDIT" >&6; }
7306else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
7309fi
7310
7311
7312fi
7313if test -z "$ac_cv_prog_NMEDIT"; then
7314 ac_ct_NMEDIT=$NMEDIT
7315 # Extract the first word of "nmedit", so it can be a program name with args.
7316set dummy nmedit; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321else
7322 if test -n "$ac_ct_NMEDIT"; then
7323 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337 done
7338IFS=$as_save_IFS
7339
7340fi
7341fi
7342ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7343if test -n "$ac_ct_NMEDIT"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7345$as_echo "$ac_ct_NMEDIT" >&6; }
7346else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
7349fi
7350
7351 if test "x$ac_ct_NMEDIT" = x; then
7352 NMEDIT=":"
7353 else
7354 case $cross_compiling:$ac_tool_warned in
7355yes:)
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358ac_tool_warned=yes ;;
7359esac
7360 NMEDIT=$ac_ct_NMEDIT
7361 fi
7362else
7363 NMEDIT="$ac_cv_prog_NMEDIT"
7364fi
7365
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7368set dummy ${ac_tool_prefix}lipo; ac_word=$2
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370$as_echo_n "checking for $ac_word... " >&6; }
7371if ${ac_cv_prog_LIPO+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373else
7374 if test -n "$LIPO"; then
7375 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7376else
7377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378for as_dir in $PATH
7379do
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7387 fi
7388done
7389 done
7390IFS=$as_save_IFS
7391
7392fi
7393fi
7394LIPO=$ac_cv_prog_LIPO
7395if test -n "$LIPO"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7397$as_echo "$LIPO" >&6; }
7398else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401fi
7402
7403
7404fi
7405if test -z "$ac_cv_prog_LIPO"; then
7406 ac_ct_LIPO=$LIPO
7407 # Extract the first word of "lipo", so it can be a program name with args.
7408set dummy lipo; ac_word=$2
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410$as_echo_n "checking for $ac_word... " >&6; }
7411if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413else
7414 if test -n "$ac_ct_LIPO"; then
7415 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7416else
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_ac_ct_LIPO="lipo"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428done
7429 done
7430IFS=$as_save_IFS
7431
7432fi
7433fi
7434ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7435if test -n "$ac_ct_LIPO"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7437$as_echo "$ac_ct_LIPO" >&6; }
7438else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440$as_echo "no" >&6; }
7441fi
7442
7443 if test "x$ac_ct_LIPO" = x; then
7444 LIPO=":"
7445 else
7446 case $cross_compiling:$ac_tool_warned in
7447yes:)
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450ac_tool_warned=yes ;;
7451esac
7452 LIPO=$ac_ct_LIPO
7453 fi
7454else
7455 LIPO="$ac_cv_prog_LIPO"
7456fi
7457
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7460set dummy ${ac_tool_prefix}otool; ac_word=$2
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462$as_echo_n "checking for $ac_word... " >&6; }
7463if ${ac_cv_prog_OTOOL+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 if test -n "$OTOOL"; then
7467 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480done
7481 done
7482IFS=$as_save_IFS
7483
7484fi
7485fi
7486OTOOL=$ac_cv_prog_OTOOL
7487if test -n "$OTOOL"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7489$as_echo "$OTOOL" >&6; }
7490else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492$as_echo "no" >&6; }
7493fi
7494
7495
7496fi
7497if test -z "$ac_cv_prog_OTOOL"; then
7498 ac_ct_OTOOL=$OTOOL
7499 # Extract the first word of "otool", so it can be a program name with args.
7500set dummy otool; ac_word=$2
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502$as_echo_n "checking for $ac_word... " >&6; }
7503if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505else
7506 if test -n "$ac_ct_OTOOL"; then
7507 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_OTOOL="otool"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520done
7521 done
7522IFS=$as_save_IFS
7523
7524fi
7525fi
7526ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7527if test -n "$ac_ct_OTOOL"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7529$as_echo "$ac_ct_OTOOL" >&6; }
7530else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532$as_echo "no" >&6; }
7533fi
7534
7535 if test "x$ac_ct_OTOOL" = x; then
7536 OTOOL=":"
7537 else
7538 case $cross_compiling:$ac_tool_warned in
7539yes:)
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542ac_tool_warned=yes ;;
7543esac
7544 OTOOL=$ac_ct_OTOOL
7545 fi
7546else
7547 OTOOL="$ac_cv_prog_OTOOL"
7548fi
7549
7550 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7552set dummy ${ac_tool_prefix}otool64; ac_word=$2
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554$as_echo_n "checking for $ac_word... " >&6; }
7555if ${ac_cv_prog_OTOOL64+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557else
7558 if test -n "$OTOOL64"; then
7559 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572done
7573 done
7574IFS=$as_save_IFS
7575
7576fi
7577fi
7578OTOOL64=$ac_cv_prog_OTOOL64
7579if test -n "$OTOOL64"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7581$as_echo "$OTOOL64" >&6; }
7582else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585fi
7586
7587
7588fi
7589if test -z "$ac_cv_prog_OTOOL64"; then
7590 ac_ct_OTOOL64=$OTOOL64
7591 # Extract the first word of "otool64", so it can be a program name with args.
7592set dummy otool64; ac_word=$2
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594$as_echo_n "checking for $ac_word... " >&6; }
7595if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597else
7598 if test -n "$ac_ct_OTOOL64"; then
7599 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_ac_ct_OTOOL64="otool64"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613 done
7614IFS=$as_save_IFS
7615
7616fi
7617fi
7618ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7619if test -n "$ac_ct_OTOOL64"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7621$as_echo "$ac_ct_OTOOL64" >&6; }
7622else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624$as_echo "no" >&6; }
7625fi
7626
7627 if test "x$ac_ct_OTOOL64" = x; then
7628 OTOOL64=":"
7629 else
7630 case $cross_compiling:$ac_tool_warned in
7631yes:)
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634ac_tool_warned=yes ;;
7635esac
7636 OTOOL64=$ac_ct_OTOOL64
7637 fi
7638else
7639 OTOOL64="$ac_cv_prog_OTOOL64"
7640fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7669$as_echo_n "checking for -single_module linker flag... " >&6; }
7670if ${lt_cv_apple_cc_single_mod+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672else
7673 lt_cv_apple_cc_single_mod=no
7674 if test -z "$LT_MULTI_MODULE"; then
7675 # By default we will add the -single_module flag. You can override
7676 # by either setting the environment variable LT_MULTI_MODULE
7677 # non-empty at configure time, or by adding -multi_module to the
7678 # link flags.
7679 rm -rf libconftest.dylib*
7680 echo "int foo(void){return 1;}" > conftest.c
7681 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7682-dynamiclib -Wl,-single_module conftest.c" >&5
7683 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7685 _lt_result=$?
7686 # If there is a non-empty error log, and "single_module"
7687 # appears in it, assume the flag caused a linker warning
7688 if test -s conftest.err && $GREP single_module conftest.err; then
7689 cat conftest.err >&5
7690 # Otherwise, if the output was created with a 0 exit code from
7691 # the compiler, it worked.
7692 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7693 lt_cv_apple_cc_single_mod=yes
7694 else
7695 cat conftest.err >&5
7696 fi
7697 rm -rf libconftest.dylib*
7698 rm -f conftest.*
7699 fi
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7702$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7705$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7706if ${lt_cv_ld_exported_symbols_list+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708else
7709 lt_cv_ld_exported_symbols_list=no
7710 save_LDFLAGS=$LDFLAGS
7711 echo "_main" > conftest.sym
7712 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h. */
7715
7716int
7717main ()
7718{
7719
7720 ;
7721 return 0;
7722}
7723_ACEOF
7724if ac_fn_c_try_link "$LINENO"; then :
7725 lt_cv_ld_exported_symbols_list=yes
7726else
7727 lt_cv_ld_exported_symbols_list=no
7728fi
7729rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 LDFLAGS=$save_LDFLAGS
7732
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7735$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7736
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7738$as_echo_n "checking for -force_load linker flag... " >&6; }
7739if ${lt_cv_ld_force_load+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741else
7742 lt_cv_ld_force_load=no
7743 cat > conftest.c << _LT_EOF
7744int forced_loaded() { return 2;}
7745_LT_EOF
7746 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7747 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7748 echo "$AR cru libconftest.a conftest.o" >&5
7749 $AR cru libconftest.a conftest.o 2>&5
7750 echo "$RANLIB libconftest.a" >&5
7751 $RANLIB libconftest.a 2>&5
7752 cat > conftest.c << _LT_EOF
7753int main() { return 0;}
7754_LT_EOF
7755 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7756 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7757 _lt_result=$?
7758 if test -s conftest.err && $GREP force_load conftest.err; then
7759 cat conftest.err >&5
7760 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7761 lt_cv_ld_force_load=yes
7762 else
7763 cat conftest.err >&5
7764 fi
7765 rm -f conftest.err libconftest.a conftest conftest.c
7766 rm -rf conftest.dSYM
7767
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7770$as_echo "$lt_cv_ld_force_load" >&6; }
7771 case $host_os in
7772 rhapsody* | darwin1.[012])
7773 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7774 darwin1.*)
7775 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7776 darwin*) # darwin 5.x on
7777 # if running on 10.5 or later, the deployment target defaults
7778 # to the OS version, if on x86, and 10.4, the deployment
7779 # target defaults to 10.4. Don't you love it?
7780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7781 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7782 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7783 10.[012][,.]*)
7784 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7785 10.*)
7786 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7787 esac
7788 ;;
7789 esac
7790 if test yes = "$lt_cv_apple_cc_single_mod"; then
7791 _lt_dar_single_mod='$single_module'
7792 fi
7793 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7794 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7795 else
7796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7797 fi
7798 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7799 _lt_dsymutil='~$DSYMUTIL $lib || :'
7800 else
7801 _lt_dsymutil=
7802 fi
7803 ;;
7804 esac
7805
7806# func_munge_path_list VARIABLE PATH
7807# -----------------------------------
7808# VARIABLE is name of variable containing _space_ separated list of
7809# directories to be munged by the contents of PATH, which is string
7810# having a format:
7811# "DIR[:DIR]:"
7812# string "DIR[ DIR]" will be prepended to VARIABLE
7813# ":DIR[:DIR]"
7814# string "DIR[ DIR]" will be appended to VARIABLE
7815# "DIRP[:DIRP]::[DIRA:]DIRA"
7816# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7817# "DIRA[ DIRA]" will be appended to VARIABLE
7818# "DIR[:DIR]"
7819# VARIABLE will be replaced by "DIR[ DIR]"
7820func_munge_path_list ()
7821{
7822 case x$2 in
7823 x)
7824 ;;
7825 *:)
7826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7827 ;;
7828 x:*)
7829 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7830 ;;
7831 *::*)
7832 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7833 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7834 ;;
7835 *)
7836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7837 ;;
7838 esac
7839}
7840
7841ac_ext=c
7842ac_cpp='$CPP $CPPFLAGS'
7843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7847$as_echo_n "checking how to run the C preprocessor... " >&6; }
7848# On Suns, sometimes $CPP names a directory.
7849if test -n "$CPP" && test -d "$CPP"; then
7850 CPP=
7851fi
7852if test -z "$CPP"; then
7853 if ${ac_cv_prog_CPP+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855else
7856 # Double quotes because CPP needs to be expanded
7857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7858 do
7859 ac_preproc_ok=false
7860for ac_c_preproc_warn_flag in '' yes
7861do
7862 # Use a header file that comes with gcc, so configuring glibc
7863 # with a fresh cross-compiler works.
7864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865 # <limits.h> exists even on freestanding compilers.
7866 # On the NeXT, cc -E runs the code through the compiler's parser,
7867 # not just through cpp. "Syntax error" is here to catch this case.
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h. */
7870#ifdef __STDC__
7871# include <limits.h>
7872#else
7873# include <assert.h>
7874#endif
7875 Syntax error
7876_ACEOF
7877if ac_fn_c_try_cpp "$LINENO"; then :
7878
7879else
7880 # Broken: fails on valid input.
7881continue
7882fi
7883rm -f conftest.err conftest.i conftest.$ac_ext
7884
7885 # OK, works on sane cases. Now check whether nonexistent headers
7886 # can be detected and how.
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h. */
7889#include <ac_nonexistent.h>
7890_ACEOF
7891if ac_fn_c_try_cpp "$LINENO"; then :
7892 # Broken: success on invalid input.
7893continue
7894else
7895 # Passes both tests.
7896ac_preproc_ok=:
7897break
7898fi
7899rm -f conftest.err conftest.i conftest.$ac_ext
7900
7901done
7902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7903rm -f conftest.i conftest.err conftest.$ac_ext
7904if $ac_preproc_ok; then :
7905 break
7906fi
7907
7908 done
7909 ac_cv_prog_CPP=$CPP
7910
7911fi
7912 CPP=$ac_cv_prog_CPP
7913else
7914 ac_cv_prog_CPP=$CPP
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7917$as_echo "$CPP" >&6; }
7918ac_preproc_ok=false
7919for ac_c_preproc_warn_flag in '' yes
7920do
7921 # Use a header file that comes with gcc, so configuring glibc
7922 # with a fresh cross-compiler works.
7923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924 # <limits.h> exists even on freestanding compilers.
7925 # On the NeXT, cc -E runs the code through the compiler's parser,
7926 # not just through cpp. "Syntax error" is here to catch this case.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h. */
7929#ifdef __STDC__
7930# include <limits.h>
7931#else
7932# include <assert.h>
7933#endif
7934 Syntax error
7935_ACEOF
7936if ac_fn_c_try_cpp "$LINENO"; then :
7937
7938else
7939 # Broken: fails on valid input.
7940continue
7941fi
7942rm -f conftest.err conftest.i conftest.$ac_ext
7943
7944 # OK, works on sane cases. Now check whether nonexistent headers
7945 # can be detected and how.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h. */
7948#include <ac_nonexistent.h>
7949_ACEOF
7950if ac_fn_c_try_cpp "$LINENO"; then :
7951 # Broken: success on invalid input.
7952continue
7953else
7954 # Passes both tests.
7955ac_preproc_ok=:
7956break
7957fi
7958rm -f conftest.err conftest.i conftest.$ac_ext
7959
7960done
7961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7962rm -f conftest.i conftest.err conftest.$ac_ext
7963if $ac_preproc_ok; then :
7964
7965else
7966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7968as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7969See \`config.log' for more details" "$LINENO" 5; }
7970fi
7971
7972ac_ext=c
7973ac_cpp='$CPP $CPPFLAGS'
7974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7976ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977
7978
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7980$as_echo_n "checking for ANSI C header files... " >&6; }
7981if ${ac_cv_header_stdc+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h. */
7986#include <stdlib.h>
7987#include <stdarg.h>
7988#include <string.h>
7989#include <float.h>
7990
7991int
7992main ()
7993{
7994
7995 ;
7996 return 0;
7997}
7998_ACEOF
7999if ac_fn_c_try_compile "$LINENO"; then :
8000 ac_cv_header_stdc=yes
8001else
8002 ac_cv_header_stdc=no
8003fi
8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005
8006if test $ac_cv_header_stdc = yes; then
8007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009/* end confdefs.h. */
8010#include <string.h>
8011
8012_ACEOF
8013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "memchr" >/dev/null 2>&1; then :
8015
8016else
8017 ac_cv_header_stdc=no
8018fi
8019rm -f conftest*
8020
8021fi
8022
8023if test $ac_cv_header_stdc = yes; then
8024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h. */
8027#include <stdlib.h>
8028
8029_ACEOF
8030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031 $EGREP "free" >/dev/null 2>&1; then :
8032
8033else
8034 ac_cv_header_stdc=no
8035fi
8036rm -f conftest*
8037
8038fi
8039
8040if test $ac_cv_header_stdc = yes; then
8041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8042 if test "$cross_compiling" = yes; then :
8043 :
8044else
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h. */
8047#include <ctype.h>
8048#include <stdlib.h>
8049#if ((' ' & 0x0FF) == 0x020)
8050# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8051# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8052#else
8053# define ISLOWER(c) \
8054 (('a' <= (c) && (c) <= 'i') \
8055 || ('j' <= (c) && (c) <= 'r') \
8056 || ('s' <= (c) && (c) <= 'z'))
8057# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8058#endif
8059
8060#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8061int
8062main ()
8063{
8064 int i;
8065 for (i = 0; i < 256; i++)
8066 if (XOR (islower (i), ISLOWER (i))
8067 || toupper (i) != TOUPPER (i))
8068 return 2;
8069 return 0;
8070}
8071_ACEOF
8072if ac_fn_c_try_run "$LINENO"; then :
8073
8074else
8075 ac_cv_header_stdc=no
8076fi
8077rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8078 conftest.$ac_objext conftest.beam conftest.$ac_ext
8079fi
8080
8081fi
8082fi
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8084$as_echo "$ac_cv_header_stdc" >&6; }
8085if test $ac_cv_header_stdc = yes; then
8086
8087$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8088
8089fi
8090
8091# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8093 inttypes.h stdint.h unistd.h
8094do :
8095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8096ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8097"
8098if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8099 cat >>confdefs.h <<_ACEOF
8100#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8101_ACEOF
8102
8103fi
8104
8105done
8106
8107
8108for ac_header in dlfcn.h
8109do :
8110 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8111"
8112if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8113 cat >>confdefs.h <<_ACEOF
8114#define HAVE_DLFCN_H 1
8115_ACEOF
8116
8117fi
8118
8119done
8120
8121
8122
8123
8124
8125# Set options
Haibo Huangfd5e81a2019-06-20 12:09:36 -07008126enable_win32_dll=yes
8127
8128case $host in
8129*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8132set dummy ${ac_tool_prefix}as; ac_word=$2
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134$as_echo_n "checking for $ac_word... " >&6; }
8135if ${ac_cv_prog_AS+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137else
8138 if test -n "$AS"; then
8139 ac_cv_prog_AS="$AS" # Let the user override the test.
8140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_AS="${ac_tool_prefix}as"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152done
8153 done
8154IFS=$as_save_IFS
8155
8156fi
8157fi
8158AS=$ac_cv_prog_AS
8159if test -n "$AS"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8161$as_echo "$AS" >&6; }
8162else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
8165fi
8166
8167
8168fi
8169if test -z "$ac_cv_prog_AS"; then
8170 ac_ct_AS=$AS
8171 # Extract the first word of "as", so it can be a program name with args.
8172set dummy as; ac_word=$2
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174$as_echo_n "checking for $ac_word... " >&6; }
8175if ${ac_cv_prog_ac_ct_AS+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177else
8178 if test -n "$ac_ct_AS"; then
8179 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8180else
8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182for as_dir in $PATH
8183do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_AS="as"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192done
8193 done
8194IFS=$as_save_IFS
8195
8196fi
8197fi
8198ac_ct_AS=$ac_cv_prog_ac_ct_AS
8199if test -n "$ac_ct_AS"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8201$as_echo "$ac_ct_AS" >&6; }
8202else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
8205fi
8206
8207 if test "x$ac_ct_AS" = x; then
8208 AS="false"
8209 else
8210 case $cross_compiling:$ac_tool_warned in
8211yes:)
8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214ac_tool_warned=yes ;;
8215esac
8216 AS=$ac_ct_AS
8217 fi
8218else
8219 AS="$ac_cv_prog_AS"
8220fi
8221
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8224set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226$as_echo_n "checking for $ac_word... " >&6; }
8227if ${ac_cv_prog_DLLTOOL+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229else
8230 if test -n "$DLLTOOL"; then
8231 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8232else
8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234for as_dir in $PATH
8235do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244done
8245 done
8246IFS=$as_save_IFS
8247
8248fi
8249fi
8250DLLTOOL=$ac_cv_prog_DLLTOOL
8251if test -n "$DLLTOOL"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8253$as_echo "$DLLTOOL" >&6; }
8254else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256$as_echo "no" >&6; }
8257fi
8258
8259
8260fi
8261if test -z "$ac_cv_prog_DLLTOOL"; then
8262 ac_ct_DLLTOOL=$DLLTOOL
8263 # Extract the first word of "dlltool", so it can be a program name with args.
8264set dummy dlltool; ac_word=$2
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266$as_echo_n "checking for $ac_word... " >&6; }
8267if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269else
8270 if test -n "$ac_ct_DLLTOOL"; then
8271 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8272else
8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284done
8285 done
8286IFS=$as_save_IFS
8287
8288fi
8289fi
8290ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8291if test -n "$ac_ct_DLLTOOL"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8293$as_echo "$ac_ct_DLLTOOL" >&6; }
8294else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
8297fi
8298
8299 if test "x$ac_ct_DLLTOOL" = x; then
8300 DLLTOOL="false"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303yes:)
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306ac_tool_warned=yes ;;
8307esac
8308 DLLTOOL=$ac_ct_DLLTOOL
8309 fi
8310else
8311 DLLTOOL="$ac_cv_prog_DLLTOOL"
8312fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8316set dummy ${ac_tool_prefix}objdump; ac_word=$2
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318$as_echo_n "checking for $ac_word... " >&6; }
8319if ${ac_cv_prog_OBJDUMP+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321else
8322 if test -n "$OBJDUMP"; then
8323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8324else
8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336done
8337 done
8338IFS=$as_save_IFS
8339
8340fi
8341fi
8342OBJDUMP=$ac_cv_prog_OBJDUMP
8343if test -n "$OBJDUMP"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8345$as_echo "$OBJDUMP" >&6; }
8346else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348$as_echo "no" >&6; }
8349fi
8350
8351
8352fi
8353if test -z "$ac_cv_prog_OBJDUMP"; then
8354 ac_ct_OBJDUMP=$OBJDUMP
8355 # Extract the first word of "objdump", so it can be a program name with args.
8356set dummy objdump; ac_word=$2
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
8359if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361else
8362 if test -n "$ac_ct_OBJDUMP"; then
8363 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8364else
8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366for as_dir in $PATH
8367do
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377 done
8378IFS=$as_save_IFS
8379
8380fi
8381fi
8382ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8383if test -n "$ac_ct_OBJDUMP"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8385$as_echo "$ac_ct_OBJDUMP" >&6; }
8386else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391 if test "x$ac_ct_OBJDUMP" = x; then
8392 OBJDUMP="false"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395yes:)
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398ac_tool_warned=yes ;;
8399esac
8400 OBJDUMP=$ac_ct_OBJDUMP
8401 fi
8402else
8403 OBJDUMP="$ac_cv_prog_OBJDUMP"
8404fi
8405
8406 ;;
8407esac
8408
8409test -z "$AS" && AS=as
8410
8411
8412
8413
8414
8415test -z "$DLLTOOL" && DLLTOOL=dlltool
8416
8417
8418
8419
8420
8421test -z "$OBJDUMP" && OBJDUMP=objdump
8422
8423
8424
8425
Haibo Huangb16e0172018-07-02 14:40:07 -07008426
8427
8428
8429 enable_dlopen=no
8430
8431
8432
8433 # Check whether --enable-shared was given.
8434if test "${enable_shared+set}" = set; then :
8435 enableval=$enable_shared; p=${PACKAGE-default}
8436 case $enableval in
8437 yes) enable_shared=yes ;;
8438 no) enable_shared=no ;;
8439 *)
8440 enable_shared=no
8441 # Look at the argument we got. We use all the common list separators.
8442 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8443 for pkg in $enableval; do
8444 IFS=$lt_save_ifs
8445 if test "X$pkg" = "X$p"; then
8446 enable_shared=yes
8447 fi
8448 done
8449 IFS=$lt_save_ifs
8450 ;;
8451 esac
8452else
8453 enable_shared=yes
8454fi
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 # Check whether --enable-static was given.
8465if test "${enable_static+set}" = set; then :
8466 enableval=$enable_static; p=${PACKAGE-default}
8467 case $enableval in
8468 yes) enable_static=yes ;;
8469 no) enable_static=no ;;
8470 *)
8471 enable_static=no
8472 # Look at the argument we got. We use all the common list separators.
8473 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8474 for pkg in $enableval; do
8475 IFS=$lt_save_ifs
8476 if test "X$pkg" = "X$p"; then
8477 enable_static=yes
8478 fi
8479 done
8480 IFS=$lt_save_ifs
8481 ;;
8482 esac
8483else
8484 enable_static=yes
8485fi
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496# Check whether --with-pic was given.
8497if test "${with_pic+set}" = set; then :
8498 withval=$with_pic; lt_p=${PACKAGE-default}
8499 case $withval in
8500 yes|no) pic_mode=$withval ;;
8501 *)
8502 pic_mode=default
8503 # Look at the argument we got. We use all the common list separators.
8504 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8505 for lt_pkg in $withval; do
8506 IFS=$lt_save_ifs
8507 if test "X$lt_pkg" = "X$lt_p"; then
8508 pic_mode=yes
8509 fi
8510 done
8511 IFS=$lt_save_ifs
8512 ;;
8513 esac
8514else
8515 pic_mode=default
8516fi
8517
8518
8519
8520
8521
8522
8523
8524
8525 # Check whether --enable-fast-install was given.
8526if test "${enable_fast_install+set}" = set; then :
8527 enableval=$enable_fast_install; p=${PACKAGE-default}
8528 case $enableval in
8529 yes) enable_fast_install=yes ;;
8530 no) enable_fast_install=no ;;
8531 *)
8532 enable_fast_install=no
8533 # Look at the argument we got. We use all the common list separators.
8534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8535 for pkg in $enableval; do
8536 IFS=$lt_save_ifs
8537 if test "X$pkg" = "X$p"; then
8538 enable_fast_install=yes
8539 fi
8540 done
8541 IFS=$lt_save_ifs
8542 ;;
8543 esac
8544else
8545 enable_fast_install=yes
8546fi
8547
8548
8549
8550
8551
8552
8553
8554
8555 shared_archive_member_spec=
8556case $host,$enable_shared in
8557power*-*-aix[5-9]*,yes)
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8559$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8560
8561# Check whether --with-aix-soname was given.
8562if test "${with_aix_soname+set}" = set; then :
8563 withval=$with_aix_soname; case $withval in
8564 aix|svr4|both)
8565 ;;
8566 *)
8567 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8568 ;;
8569 esac
8570 lt_cv_with_aix_soname=$with_aix_soname
8571else
8572 if ${lt_cv_with_aix_soname+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574else
8575 lt_cv_with_aix_soname=aix
8576fi
8577
8578 with_aix_soname=$lt_cv_with_aix_soname
8579fi
8580
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8582$as_echo "$with_aix_soname" >&6; }
8583 if test aix != "$with_aix_soname"; then
8584 # For the AIX way of multilib, we name the shared archive member
8585 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8586 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8587 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8588 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8589 if test 64 = "${OBJECT_MODE-32}"; then
8590 shared_archive_member_spec=shr_64
8591 else
8592 shared_archive_member_spec=shr
8593 fi
8594 fi
8595 ;;
8596*)
8597 with_aix_soname=aix
8598 ;;
8599esac
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610# This can be used to rebuild libtool when needed
8611LIBTOOL_DEPS=$ltmain
8612
8613# Always use our own libtool.
8614LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645test -z "$LN_S" && LN_S="ln -s"
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660if test -n "${ZSH_VERSION+set}"; then
8661 setopt NO_GLOB_SUBST
8662fi
8663
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8665$as_echo_n "checking for objdir... " >&6; }
8666if ${lt_cv_objdir+:} false; then :
8667 $as_echo_n "(cached) " >&6
8668else
8669 rm -f .libs 2>/dev/null
8670mkdir .libs 2>/dev/null
8671if test -d .libs; then
8672 lt_cv_objdir=.libs
8673else
8674 # MS-DOS does not allow filenames that begin with a dot.
8675 lt_cv_objdir=_libs
8676fi
8677rmdir .libs 2>/dev/null
8678fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8680$as_echo "$lt_cv_objdir" >&6; }
8681objdir=$lt_cv_objdir
8682
8683
8684
8685
8686
8687cat >>confdefs.h <<_ACEOF
8688#define LT_OBJDIR "$lt_cv_objdir/"
8689_ACEOF
8690
8691
8692
8693
8694case $host_os in
8695aix3*)
8696 # AIX sometimes has problems with the GCC collect2 program. For some
8697 # reason, if we set the COLLECT_NAMES environment variable, the problems
8698 # vanish in a puff of smoke.
8699 if test set != "${COLLECT_NAMES+set}"; then
8700 COLLECT_NAMES=
8701 export COLLECT_NAMES
8702 fi
8703 ;;
8704esac
8705
8706# Global variables:
8707ofile=libtool
8708can_build_shared=yes
8709
8710# All known linkers require a '.a' archive for static linking (except MSVC,
8711# which needs '.lib').
8712libext=a
8713
8714with_gnu_ld=$lt_cv_prog_gnu_ld
8715
8716old_CC=$CC
8717old_CFLAGS=$CFLAGS
8718
8719# Set sane defaults for various variables
8720test -z "$CC" && CC=cc
8721test -z "$LTCC" && LTCC=$CC
8722test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8723test -z "$LD" && LD=ld
8724test -z "$ac_objext" && ac_objext=o
8725
8726func_cc_basename $compiler
8727cc_basename=$func_cc_basename_result
8728
8729
8730# Only perform the check for file, if the check method requires it
8731test -z "$MAGIC_CMD" && MAGIC_CMD=file
8732case $deplibs_check_method in
8733file_magic*)
8734 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8736$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8737if ${lt_cv_path_MAGIC_CMD+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739else
8740 case $MAGIC_CMD in
8741[\\/*] | ?:[\\/]*)
8742 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8743 ;;
8744*)
8745 lt_save_MAGIC_CMD=$MAGIC_CMD
8746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8748 for ac_dir in $ac_dummy; do
8749 IFS=$lt_save_ifs
8750 test -z "$ac_dir" && ac_dir=.
8751 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8752 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8753 if test -n "$file_magic_test_file"; then
8754 case $deplibs_check_method in
8755 "file_magic "*)
8756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8757 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8759 $EGREP "$file_magic_regex" > /dev/null; then
8760 :
8761 else
8762 cat <<_LT_EOF 1>&2
8763
8764*** Warning: the command libtool uses to detect shared libraries,
8765*** $file_magic_cmd, produces output that libtool cannot recognize.
8766*** The result is that libtool may fail to recognize shared libraries
8767*** as such. This will affect the creation of libtool libraries that
8768*** depend on shared libraries, but programs linked with such libtool
8769*** libraries will work regardless of this problem. Nevertheless, you
8770*** may want to report the problem to your system manager and/or to
8771*** bug-libtool@gnu.org
8772
8773_LT_EOF
8774 fi ;;
8775 esac
8776 fi
8777 break
8778 fi
8779 done
8780 IFS=$lt_save_ifs
8781 MAGIC_CMD=$lt_save_MAGIC_CMD
8782 ;;
8783esac
8784fi
8785
8786MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8787if test -n "$MAGIC_CMD"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8789$as_echo "$MAGIC_CMD" >&6; }
8790else
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
8793fi
8794
8795
8796
8797
8798
8799if test -z "$lt_cv_path_MAGIC_CMD"; then
8800 if test -n "$ac_tool_prefix"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8802$as_echo_n "checking for file... " >&6; }
8803if ${lt_cv_path_MAGIC_CMD+:} false; then :
8804 $as_echo_n "(cached) " >&6
8805else
8806 case $MAGIC_CMD in
8807[\\/*] | ?:[\\/]*)
8808 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8809 ;;
8810*)
8811 lt_save_MAGIC_CMD=$MAGIC_CMD
8812 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8813 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8814 for ac_dir in $ac_dummy; do
8815 IFS=$lt_save_ifs
8816 test -z "$ac_dir" && ac_dir=.
8817 if test -f "$ac_dir/file"; then
8818 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8819 if test -n "$file_magic_test_file"; then
8820 case $deplibs_check_method in
8821 "file_magic "*)
8822 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8823 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8824 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8825 $EGREP "$file_magic_regex" > /dev/null; then
8826 :
8827 else
8828 cat <<_LT_EOF 1>&2
8829
8830*** Warning: the command libtool uses to detect shared libraries,
8831*** $file_magic_cmd, produces output that libtool cannot recognize.
8832*** The result is that libtool may fail to recognize shared libraries
8833*** as such. This will affect the creation of libtool libraries that
8834*** depend on shared libraries, but programs linked with such libtool
8835*** libraries will work regardless of this problem. Nevertheless, you
8836*** may want to report the problem to your system manager and/or to
8837*** bug-libtool@gnu.org
8838
8839_LT_EOF
8840 fi ;;
8841 esac
8842 fi
8843 break
8844 fi
8845 done
8846 IFS=$lt_save_ifs
8847 MAGIC_CMD=$lt_save_MAGIC_CMD
8848 ;;
8849esac
8850fi
8851
8852MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8853if test -n "$MAGIC_CMD"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8855$as_echo "$MAGIC_CMD" >&6; }
8856else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
8859fi
8860
8861
8862 else
8863 MAGIC_CMD=:
8864 fi
8865fi
8866
8867 fi
8868 ;;
8869esac
8870
8871# Use C for the default configuration in the libtool script
8872
8873lt_save_CC=$CC
8874ac_ext=c
8875ac_cpp='$CPP $CPPFLAGS'
8876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878ac_compiler_gnu=$ac_cv_c_compiler_gnu
8879
8880
8881# Source file extension for C test sources.
8882ac_ext=c
8883
8884# Object file extension for compiled C test sources.
8885objext=o
8886objext=$objext
8887
8888# Code to be used in simple compile tests
8889lt_simple_compile_test_code="int some_variable = 0;"
8890
8891# Code to be used in simple link tests
8892lt_simple_link_test_code='int main(){return(0);}'
8893
8894
8895
8896
8897
8898
8899
8900# If no C compiler was specified, use CC.
8901LTCC=${LTCC-"$CC"}
8902
8903# If no C compiler flags were specified, use CFLAGS.
8904LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8905
8906# Allow CC to be a program name with arguments.
8907compiler=$CC
8908
8909# Save the default compiler, since it gets overwritten when the other
8910# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8911compiler_DEFAULT=$CC
8912
8913# save warnings/boilerplate of simple test code
8914ac_outfile=conftest.$ac_objext
8915echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8916eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8917_lt_compiler_boilerplate=`cat conftest.err`
8918$RM conftest*
8919
8920ac_outfile=conftest.$ac_objext
8921echo "$lt_simple_link_test_code" >conftest.$ac_ext
8922eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8923_lt_linker_boilerplate=`cat conftest.err`
8924$RM -r conftest*
8925
8926
8927## CAVEAT EMPTOR:
8928## There is no encapsulation within the following macros, do not change
8929## the running order or otherwise move them around unless you know exactly
8930## what you are doing...
8931if test -n "$compiler"; then
8932
8933lt_prog_compiler_no_builtin_flag=
8934
8935if test yes = "$GCC"; then
8936 case $cc_basename in
8937 nvcc*)
8938 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8939 *)
8940 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8941 esac
8942
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8944$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8945if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947else
8948 lt_cv_prog_compiler_rtti_exceptions=no
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 # The option is referenced via a variable to avoid confusing sed.
8957 lt_compile=`echo "$ac_compile" | $SED \
8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960 -e 's:$: $lt_compiler_flag:'`
8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962 (eval "$lt_compile" 2>conftest.err)
8963 ac_status=$?
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 if (exit $ac_status) && test -s "$ac_outfile"; then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings other than the usual output.
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_rtti_exceptions=yes
8973 fi
8974 fi
8975 $RM conftest*
8976
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8979$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8980
8981if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8982 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8983else
8984 :
8985fi
8986
8987fi
8988
8989
8990
8991
8992
8993
8994 lt_prog_compiler_wl=
8995lt_prog_compiler_pic=
8996lt_prog_compiler_static=
8997
8998
8999 if test yes = "$GCC"; then
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_static='-static'
9002
9003 case $host_os in
9004 aix*)
9005 # All AIX code is PIC.
9006 if test ia64 = "$host_cpu"; then
9007 # AIX 5 now supports IA64 processor
9008 lt_prog_compiler_static='-Bstatic'
9009 fi
9010 lt_prog_compiler_pic='-fPIC'
9011 ;;
9012
9013 amigaos*)
9014 case $host_cpu in
9015 powerpc)
9016 # see comment about AmigaOS4 .so support
9017 lt_prog_compiler_pic='-fPIC'
9018 ;;
9019 m68k)
9020 # FIXME: we need at least 68020 code to build shared libraries, but
9021 # adding the '-m68020' flag to GCC prevents building anything better,
9022 # like '-m68040'.
9023 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9024 ;;
9025 esac
9026 ;;
9027
9028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9029 # PIC is the default for these OSes.
9030 ;;
9031
9032 mingw* | cygwin* | pw32* | os2* | cegcc*)
9033 # This hack is so that the source file can tell whether it is being
9034 # built for inclusion in a dll (and should export symbols for example).
9035 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9036 # (--disable-auto-import) libraries
9037 lt_prog_compiler_pic='-DDLL_EXPORT'
9038 case $host_os in
9039 os2*)
9040 lt_prog_compiler_static='$wl-static'
9041 ;;
9042 esac
9043 ;;
9044
9045 darwin* | rhapsody*)
9046 # PIC is the default on this platform
9047 # Common symbols not allowed in MH_DYLIB files
9048 lt_prog_compiler_pic='-fno-common'
9049 ;;
9050
9051 haiku*)
9052 # PIC is the default for Haiku.
9053 # The "-static" flag exists, but is broken.
9054 lt_prog_compiler_static=
9055 ;;
9056
9057 hpux*)
9058 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9059 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9060 # sets the default TLS model and affects inlining.
9061 case $host_cpu in
9062 hppa*64*)
9063 # +Z the default
9064 ;;
9065 *)
9066 lt_prog_compiler_pic='-fPIC'
9067 ;;
9068 esac
9069 ;;
9070
9071 interix[3-9]*)
9072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9073 # Instead, we relocate shared libraries at runtime.
9074 ;;
9075
9076 msdosdjgpp*)
9077 # Just because we use GCC doesn't mean we suddenly get shared libraries
9078 # on systems that don't support them.
9079 lt_prog_compiler_can_build_shared=no
9080 enable_shared=no
9081 ;;
9082
9083 *nto* | *qnx*)
9084 # QNX uses GNU C++, but need to define -shared option too, otherwise
9085 # it will coredump.
9086 lt_prog_compiler_pic='-fPIC -shared'
9087 ;;
9088
9089 sysv4*MP*)
9090 if test -d /usr/nec; then
9091 lt_prog_compiler_pic=-Kconform_pic
9092 fi
9093 ;;
9094
9095 *)
9096 lt_prog_compiler_pic='-fPIC'
9097 ;;
9098 esac
9099
9100 case $cc_basename in
9101 nvcc*) # Cuda Compiler Driver 2.2
9102 lt_prog_compiler_wl='-Xlinker '
9103 if test -n "$lt_prog_compiler_pic"; then
9104 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9105 fi
9106 ;;
9107 esac
9108 else
9109 # PORTME Check for flag to pass linker flags through the system compiler.
9110 case $host_os in
9111 aix*)
9112 lt_prog_compiler_wl='-Wl,'
9113 if test ia64 = "$host_cpu"; then
9114 # AIX 5 now supports IA64 processor
9115 lt_prog_compiler_static='-Bstatic'
9116 else
9117 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9118 fi
9119 ;;
9120
9121 darwin* | rhapsody*)
9122 # PIC is the default on this platform
9123 # Common symbols not allowed in MH_DYLIB files
9124 lt_prog_compiler_pic='-fno-common'
9125 case $cc_basename in
9126 nagfor*)
9127 # NAG Fortran compiler
9128 lt_prog_compiler_wl='-Wl,-Wl,,'
9129 lt_prog_compiler_pic='-PIC'
9130 lt_prog_compiler_static='-Bstatic'
9131 ;;
9132 esac
9133 ;;
9134
9135 mingw* | cygwin* | pw32* | os2* | cegcc*)
9136 # This hack is so that the source file can tell whether it is being
9137 # built for inclusion in a dll (and should export symbols for example).
9138 lt_prog_compiler_pic='-DDLL_EXPORT'
9139 case $host_os in
9140 os2*)
9141 lt_prog_compiler_static='$wl-static'
9142 ;;
9143 esac
9144 ;;
9145
9146 hpux9* | hpux10* | hpux11*)
9147 lt_prog_compiler_wl='-Wl,'
9148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9149 # not for PA HP-UX.
9150 case $host_cpu in
9151 hppa*64*|ia64*)
9152 # +Z the default
9153 ;;
9154 *)
9155 lt_prog_compiler_pic='+Z'
9156 ;;
9157 esac
9158 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9159 lt_prog_compiler_static='$wl-a ${wl}archive'
9160 ;;
9161
9162 irix5* | irix6* | nonstopux*)
9163 lt_prog_compiler_wl='-Wl,'
9164 # PIC (with -KPIC) is the default.
9165 lt_prog_compiler_static='-non_shared'
9166 ;;
9167
9168 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9169 case $cc_basename in
9170 # old Intel for x86_64, which still supported -KPIC.
9171 ecc*)
9172 lt_prog_compiler_wl='-Wl,'
9173 lt_prog_compiler_pic='-KPIC'
9174 lt_prog_compiler_static='-static'
9175 ;;
9176 # icc used to be incompatible with GCC.
9177 # ICC 10 doesn't accept -KPIC any more.
9178 icc* | ifort*)
9179 lt_prog_compiler_wl='-Wl,'
9180 lt_prog_compiler_pic='-fPIC'
9181 lt_prog_compiler_static='-static'
9182 ;;
9183 # Lahey Fortran 8.1.
9184 lf95*)
9185 lt_prog_compiler_wl='-Wl,'
9186 lt_prog_compiler_pic='--shared'
9187 lt_prog_compiler_static='--static'
9188 ;;
9189 nagfor*)
9190 # NAG Fortran compiler
9191 lt_prog_compiler_wl='-Wl,-Wl,,'
9192 lt_prog_compiler_pic='-PIC'
9193 lt_prog_compiler_static='-Bstatic'
9194 ;;
9195 tcc*)
9196 # Fabrice Bellard et al's Tiny C Compiler
9197 lt_prog_compiler_wl='-Wl,'
9198 lt_prog_compiler_pic='-fPIC'
9199 lt_prog_compiler_static='-static'
9200 ;;
9201 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9202 # Portland Group compilers (*not* the Pentium gcc compiler,
9203 # which looks to be a dead project)
9204 lt_prog_compiler_wl='-Wl,'
9205 lt_prog_compiler_pic='-fpic'
9206 lt_prog_compiler_static='-Bstatic'
9207 ;;
9208 ccc*)
9209 lt_prog_compiler_wl='-Wl,'
9210 # All Alpha code is PIC.
9211 lt_prog_compiler_static='-non_shared'
9212 ;;
9213 xl* | bgxl* | bgf* | mpixl*)
9214 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9215 lt_prog_compiler_wl='-Wl,'
9216 lt_prog_compiler_pic='-qpic'
9217 lt_prog_compiler_static='-qstaticlink'
9218 ;;
9219 *)
9220 case `$CC -V 2>&1 | sed 5q` in
9221 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9222 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9223 lt_prog_compiler_pic='-KPIC'
9224 lt_prog_compiler_static='-Bstatic'
9225 lt_prog_compiler_wl=''
9226 ;;
9227 *Sun\ F* | *Sun*Fortran*)
9228 lt_prog_compiler_pic='-KPIC'
9229 lt_prog_compiler_static='-Bstatic'
9230 lt_prog_compiler_wl='-Qoption ld '
9231 ;;
9232 *Sun\ C*)
9233 # Sun C 5.9
9234 lt_prog_compiler_pic='-KPIC'
9235 lt_prog_compiler_static='-Bstatic'
9236 lt_prog_compiler_wl='-Wl,'
9237 ;;
9238 *Intel*\ [CF]*Compiler*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-fPIC'
9241 lt_prog_compiler_static='-static'
9242 ;;
9243 *Portland\ Group*)
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='-fpic'
9246 lt_prog_compiler_static='-Bstatic'
9247 ;;
9248 esac
9249 ;;
9250 esac
9251 ;;
9252
9253 newsos6)
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-Bstatic'
9256 ;;
9257
9258 *nto* | *qnx*)
9259 # QNX uses GNU C++, but need to define -shared option too, otherwise
9260 # it will coredump.
9261 lt_prog_compiler_pic='-fPIC -shared'
9262 ;;
9263
9264 osf3* | osf4* | osf5*)
9265 lt_prog_compiler_wl='-Wl,'
9266 # All OSF/1 code is PIC.
9267 lt_prog_compiler_static='-non_shared'
9268 ;;
9269
9270 rdos*)
9271 lt_prog_compiler_static='-non_shared'
9272 ;;
9273
9274 solaris*)
9275 lt_prog_compiler_pic='-KPIC'
9276 lt_prog_compiler_static='-Bstatic'
9277 case $cc_basename in
9278 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9279 lt_prog_compiler_wl='-Qoption ld ';;
9280 *)
9281 lt_prog_compiler_wl='-Wl,';;
9282 esac
9283 ;;
9284
9285 sunos4*)
9286 lt_prog_compiler_wl='-Qoption ld '
9287 lt_prog_compiler_pic='-PIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290
9291 sysv4 | sysv4.2uw2* | sysv4.3*)
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-KPIC'
9294 lt_prog_compiler_static='-Bstatic'
9295 ;;
9296
9297 sysv4*MP*)
9298 if test -d /usr/nec; then
9299 lt_prog_compiler_pic='-Kconform_pic'
9300 lt_prog_compiler_static='-Bstatic'
9301 fi
9302 ;;
9303
9304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9305 lt_prog_compiler_wl='-Wl,'
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 ;;
9309
9310 unicos*)
9311 lt_prog_compiler_wl='-Wl,'
9312 lt_prog_compiler_can_build_shared=no
9313 ;;
9314
9315 uts4*)
9316 lt_prog_compiler_pic='-pic'
9317 lt_prog_compiler_static='-Bstatic'
9318 ;;
9319
9320 *)
9321 lt_prog_compiler_can_build_shared=no
9322 ;;
9323 esac
9324 fi
9325
9326case $host_os in
9327 # For platforms that do not support PIC, -DPIC is meaningless:
9328 *djgpp*)
9329 lt_prog_compiler_pic=
9330 ;;
9331 *)
9332 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9333 ;;
9334esac
9335
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9337$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9338if ${lt_cv_prog_compiler_pic+:} false; then :
9339 $as_echo_n "(cached) " >&6
9340else
9341 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9344$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9345lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9346
9347#
9348# Check to make sure the PIC flag actually works.
9349#
9350if test -n "$lt_prog_compiler_pic"; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9352$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9353if ${lt_cv_prog_compiler_pic_works+:} false; then :
9354 $as_echo_n "(cached) " >&6
9355else
9356 lt_cv_prog_compiler_pic_works=no
9357 ac_outfile=conftest.$ac_objext
9358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9359 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9360 # Insert the option either (1) after the last *FLAGS variable, or
9361 # (2) before a word containing "conftest.", or (3) at the end.
9362 # Note that $ac_compile itself does not contain backslashes and begins
9363 # with a dollar sign (not a hyphen), so the echo should work correctly.
9364 # The option is referenced via a variable to avoid confusing sed.
9365 lt_compile=`echo "$ac_compile" | $SED \
9366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9368 -e 's:$: $lt_compiler_flag:'`
9369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9370 (eval "$lt_compile" 2>conftest.err)
9371 ac_status=$?
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 if (exit $ac_status) && test -s "$ac_outfile"; then
9375 # The compiler can only warn and ignore the option if not recognized
9376 # So say no if there are warnings other than the usual output.
9377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9380 lt_cv_prog_compiler_pic_works=yes
9381 fi
9382 fi
9383 $RM conftest*
9384
9385fi
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9387$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9388
9389if test yes = "$lt_cv_prog_compiler_pic_works"; then
9390 case $lt_prog_compiler_pic in
9391 "" | " "*) ;;
9392 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9393 esac
9394else
9395 lt_prog_compiler_pic=
9396 lt_prog_compiler_can_build_shared=no
9397fi
9398
9399fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411#
9412# Check to make sure the static flag actually works.
9413#
9414wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9416$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9417if ${lt_cv_prog_compiler_static_works+:} false; then :
9418 $as_echo_n "(cached) " >&6
9419else
9420 lt_cv_prog_compiler_static_works=no
9421 save_LDFLAGS=$LDFLAGS
9422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9425 # The linker can only warn and ignore the option if not recognized
9426 # So say no if there are warnings
9427 if test -s conftest.err; then
9428 # Append any errors to the config.log.
9429 cat conftest.err 1>&5
9430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9432 if diff conftest.exp conftest.er2 >/dev/null; then
9433 lt_cv_prog_compiler_static_works=yes
9434 fi
9435 else
9436 lt_cv_prog_compiler_static_works=yes
9437 fi
9438 fi
9439 $RM -r conftest*
9440 LDFLAGS=$save_LDFLAGS
9441
9442fi
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9444$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9445
9446if test yes = "$lt_cv_prog_compiler_static_works"; then
9447 :
9448else
9449 lt_prog_compiler_static=
9450fi
9451
9452
9453
9454
9455
9456
9457
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9460if ${lt_cv_prog_compiler_c_o+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462else
9463 lt_cv_prog_compiler_c_o=no
9464 $RM -r conftest 2>/dev/null
9465 mkdir conftest
9466 cd conftest
9467 mkdir out
9468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9469
9470 lt_compiler_flag="-o out/conftest2.$ac_objext"
9471 # Insert the option either (1) after the last *FLAGS variable, or
9472 # (2) before a word containing "conftest.", or (3) at the end.
9473 # Note that $ac_compile itself does not contain backslashes and begins
9474 # with a dollar sign (not a hyphen), so the echo should work correctly.
9475 lt_compile=`echo "$ac_compile" | $SED \
9476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9478 -e 's:$: $lt_compiler_flag:'`
9479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9480 (eval "$lt_compile" 2>out/conftest.err)
9481 ac_status=$?
9482 cat out/conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9485 then
9486 # The compiler can only warn and ignore the option if not recognized
9487 # So say no if there are warnings
9488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9491 lt_cv_prog_compiler_c_o=yes
9492 fi
9493 fi
9494 chmod u+w . 2>&5
9495 $RM conftest*
9496 # SGI C++ compiler will create directory out/ii_files/ for
9497 # template instantiation
9498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9499 $RM out/* && rmdir out
9500 cd ..
9501 $RM -r conftest
9502 $RM conftest*
9503
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9506$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9507
9508
9509
9510
9511
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9514$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9515if ${lt_cv_prog_compiler_c_o+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517else
9518 lt_cv_prog_compiler_c_o=no
9519 $RM -r conftest 2>/dev/null
9520 mkdir conftest
9521 cd conftest
9522 mkdir out
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524
9525 lt_compiler_flag="-o out/conftest2.$ac_objext"
9526 # Insert the option either (1) after the last *FLAGS variable, or
9527 # (2) before a word containing "conftest.", or (3) at the end.
9528 # Note that $ac_compile itself does not contain backslashes and begins
9529 # with a dollar sign (not a hyphen), so the echo should work correctly.
9530 lt_compile=`echo "$ac_compile" | $SED \
9531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9533 -e 's:$: $lt_compiler_flag:'`
9534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9535 (eval "$lt_compile" 2>out/conftest.err)
9536 ac_status=$?
9537 cat out/conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9540 then
9541 # The compiler can only warn and ignore the option if not recognized
9542 # So say no if there are warnings
9543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9546 lt_cv_prog_compiler_c_o=yes
9547 fi
9548 fi
9549 chmod u+w . 2>&5
9550 $RM conftest*
9551 # SGI C++ compiler will create directory out/ii_files/ for
9552 # template instantiation
9553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9554 $RM out/* && rmdir out
9555 cd ..
9556 $RM -r conftest
9557 $RM conftest*
9558
9559fi
9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9561$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9562
9563
9564
9565
9566hard_links=nottested
9567if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9568 # do not overwrite the value of need_locks provided by the user
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9570$as_echo_n "checking if we can lock with hard links... " >&6; }
9571 hard_links=yes
9572 $RM conftest*
9573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9574 touch conftest.a
9575 ln conftest.a conftest.b 2>&5 || hard_links=no
9576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9578$as_echo "$hard_links" >&6; }
9579 if test no = "$hard_links"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9581$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9582 need_locks=warn
9583 fi
9584else
9585 need_locks=no
9586fi
9587
9588
9589
9590
9591
9592
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9594$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9595
9596 runpath_var=
9597 allow_undefined_flag=
9598 always_export_symbols=no
9599 archive_cmds=
9600 archive_expsym_cmds=
9601 compiler_needs_object=no
9602 enable_shared_with_static_runtimes=no
9603 export_dynamic_flag_spec=
9604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9605 hardcode_automatic=no
9606 hardcode_direct=no
9607 hardcode_direct_absolute=no
9608 hardcode_libdir_flag_spec=
9609 hardcode_libdir_separator=
9610 hardcode_minus_L=no
9611 hardcode_shlibpath_var=unsupported
9612 inherit_rpath=no
9613 link_all_deplibs=unknown
9614 module_cmds=
9615 module_expsym_cmds=
9616 old_archive_from_new_cmds=
9617 old_archive_from_expsyms_cmds=
9618 thread_safe_flag_spec=
9619 whole_archive_flag_spec=
9620 # include_expsyms should be a list of space-separated symbols to be *always*
9621 # included in the symbol list
9622 include_expsyms=
9623 # exclude_expsyms can be an extended regexp of symbols to exclude
9624 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9625 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9626 # as well as any symbol that contains 'd'.
9627 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9629 # platforms (ab)use it in PIC code, but their linkers get confused if
9630 # the symbol is explicitly referenced. Since portable code cannot
9631 # rely on this symbol name, it's probably fine to never include it in
9632 # preloaded symbol tables.
9633 # Exclude shared library initialization/finalization symbols.
9634 extract_expsyms_cmds=
9635
9636 case $host_os in
9637 cygwin* | mingw* | pw32* | cegcc*)
9638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9639 # When not using gcc, we currently assume that we are using
9640 # Microsoft Visual C++.
9641 if test yes != "$GCC"; then
9642 with_gnu_ld=no
9643 fi
9644 ;;
9645 interix*)
9646 # we just hope/assume this is gcc and not c89 (= MSVC++)
9647 with_gnu_ld=yes
9648 ;;
9649 openbsd* | bitrig*)
9650 with_gnu_ld=no
9651 ;;
9652 esac
9653
9654 ld_shlibs=yes
9655
9656 # On some targets, GNU ld is compatible enough with the native linker
9657 # that we're better off using the native interface for both.
9658 lt_use_gnu_ld_interface=no
9659 if test yes = "$with_gnu_ld"; then
9660 case $host_os in
9661 aix*)
9662 # The AIX port of GNU ld has always aspired to compatibility
9663 # with the native linker. However, as the warning in the GNU ld
9664 # block says, versions before 2.19.5* couldn't really create working
9665 # shared libraries, regardless of the interface used.
9666 case `$LD -v 2>&1` in
9667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9668 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9669 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9670 *)
9671 lt_use_gnu_ld_interface=yes
9672 ;;
9673 esac
9674 ;;
9675 *)
9676 lt_use_gnu_ld_interface=yes
9677 ;;
9678 esac
9679 fi
9680
9681 if test yes = "$lt_use_gnu_ld_interface"; then
9682 # If archive_cmds runs LD, not CC, wlarc should be empty
9683 wlarc='$wl'
9684
9685 # Set some defaults for GNU ld with shared library support. These
9686 # are reset later if shared libraries are not supported. Putting them
9687 # here allows them to be overridden if necessary.
9688 runpath_var=LD_RUN_PATH
9689 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9690 export_dynamic_flag_spec='$wl--export-dynamic'
9691 # ancient GNU ld didn't support --whole-archive et. al.
9692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9693 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9694 else
9695 whole_archive_flag_spec=
9696 fi
9697 supports_anon_versioning=no
9698 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9699 *GNU\ gold*) supports_anon_versioning=yes ;;
9700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9703 *\ 2.11.*) ;; # other 2.11 versions
9704 *) supports_anon_versioning=yes ;;
9705 esac
9706
9707 # See if GNU ld supports shared libraries.
9708 case $host_os in
9709 aix[3-9]*)
9710 # On AIX/PPC, the GNU linker is very broken
9711 if test ia64 != "$host_cpu"; then
9712 ld_shlibs=no
9713 cat <<_LT_EOF 1>&2
9714
9715*** Warning: the GNU linker, at least up to release 2.19, is reported
9716*** to be unable to reliably create shared libraries on AIX.
9717*** Therefore, libtool is disabling shared libraries support. If you
9718*** really care for shared libraries, you may want to install binutils
9719*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9720*** You will then need to restart the configuration process.
9721
9722_LT_EOF
9723 fi
9724 ;;
9725
9726 amigaos*)
9727 case $host_cpu in
9728 powerpc)
9729 # see comment about AmigaOS4 .so support
9730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9731 archive_expsym_cmds=''
9732 ;;
9733 m68k)
9734 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)'
9735 hardcode_libdir_flag_spec='-L$libdir'
9736 hardcode_minus_L=yes
9737 ;;
9738 esac
9739 ;;
9740
9741 beos*)
9742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9743 allow_undefined_flag=unsupported
9744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9745 # support --undefined. This deserves some investigation. FIXME
9746 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9747 else
9748 ld_shlibs=no
9749 fi
9750 ;;
9751
9752 cygwin* | mingw* | pw32* | cegcc*)
9753 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9754 # as there is no search path for DLLs.
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 export_dynamic_flag_spec='$wl--export-all-symbols'
9757 allow_undefined_flag=unsupported
9758 always_export_symbols=no
9759 enable_shared_with_static_runtimes=yes
9760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9761 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9762
9763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9765 # If the export-symbols file already is a .def file, use it as
9766 # is; otherwise, prepend EXPORTS...
9767 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9768 cp $export_symbols $output_objdir/$soname.def;
9769 else
9770 echo EXPORTS > $output_objdir/$soname.def;
9771 cat $export_symbols >> $output_objdir/$soname.def;
9772 fi~
9773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9774 else
9775 ld_shlibs=no
9776 fi
9777 ;;
9778
9779 haiku*)
9780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9781 link_all_deplibs=yes
9782 ;;
9783
9784 os2*)
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_minus_L=yes
9787 allow_undefined_flag=unsupported
9788 shrext_cmds=.dll
9789 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9790 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9791 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9792 $ECHO EXPORTS >> $output_objdir/$libname.def~
9793 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9794 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9795 emximp -o $lib $output_objdir/$libname.def'
9796 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9797 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9798 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9799 $ECHO EXPORTS >> $output_objdir/$libname.def~
9800 prefix_cmds="$SED"~
9801 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9802 prefix_cmds="$prefix_cmds -e 1d";
9803 fi~
9804 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9805 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9806 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9807 emximp -o $lib $output_objdir/$libname.def'
9808 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9809 enable_shared_with_static_runtimes=yes
9810 ;;
9811
9812 interix[3-9]*)
9813 hardcode_direct=no
9814 hardcode_shlibpath_var=no
9815 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9816 export_dynamic_flag_spec='$wl-E'
9817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9818 # Instead, shared libraries are loaded at an image base (0x10000000 by
9819 # default) and relocated if they conflict, which is a slow very memory
9820 # consuming and fragmenting process. To avoid this, we pick a random,
9821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9824 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'
9825 ;;
9826
9827 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9828 tmp_diet=no
9829 if test linux-dietlibc = "$host_os"; then
9830 case $cc_basename in
9831 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9832 esac
9833 fi
9834 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9835 && test no = "$tmp_diet"
9836 then
9837 tmp_addflag=' $pic_flag'
9838 tmp_sharedflag='-shared'
9839 case $cc_basename,$host_cpu in
9840 pgcc*) # Portland Group C compiler
9841 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'
9842 tmp_addflag=' $pic_flag'
9843 ;;
9844 pgf77* | pgf90* | pgf95* | pgfortran*)
9845 # Portland Group f77 and f90 compilers
9846 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'
9847 tmp_addflag=' $pic_flag -Mnomain' ;;
9848 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9849 tmp_addflag=' -i_dynamic' ;;
9850 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9851 tmp_addflag=' -i_dynamic -nofor_main' ;;
9852 ifc* | ifort*) # Intel Fortran compiler
9853 tmp_addflag=' -nofor_main' ;;
9854 lf95*) # Lahey Fortran 8.1
9855 whole_archive_flag_spec=
9856 tmp_sharedflag='--shared' ;;
9857 nagfor*) # NAGFOR 5.3
9858 tmp_sharedflag='-Wl,-shared' ;;
9859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9860 tmp_sharedflag='-qmkshrobj'
9861 tmp_addflag= ;;
9862 nvcc*) # Cuda Compiler Driver 2.2
9863 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'
9864 compiler_needs_object=yes
9865 ;;
9866 esac
9867 case `$CC -V 2>&1 | sed 5q` in
9868 *Sun\ C*) # Sun C 5.9
9869 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'
9870 compiler_needs_object=yes
9871 tmp_sharedflag='-G' ;;
9872 *Sun\ F*) # Sun Fortran 8.3
9873 tmp_sharedflag='-G' ;;
9874 esac
9875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9876
9877 if test yes = "$supports_anon_versioning"; then
9878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9880 echo "local: *; };" >> $output_objdir/$libname.ver~
9881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9882 fi
9883
9884 case $cc_basename in
9885 tcc*)
9886 export_dynamic_flag_spec='-rdynamic'
9887 ;;
9888 xlf* | bgf* | bgxlf* | mpixlf*)
9889 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9890 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9892 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9893 if test yes = "$supports_anon_versioning"; then
9894 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9896 echo "local: *; };" >> $output_objdir/$libname.ver~
9897 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9898 fi
9899 ;;
9900 esac
9901 else
9902 ld_shlibs=no
9903 fi
9904 ;;
9905
9906 netbsd*)
9907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9908 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9909 wlarc=
9910 else
9911 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9912 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9913 fi
9914 ;;
9915
9916 solaris*)
9917 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9918 ld_shlibs=no
9919 cat <<_LT_EOF 1>&2
9920
9921*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9922*** create shared libraries on Solaris systems. Therefore, libtool
9923*** is disabling shared libraries support. We urge you to upgrade GNU
9924*** binutils to release 2.9.1 or newer. Another option is to modify
9925*** your PATH or compiler configuration so that the native linker is
9926*** used, and then restart.
9927
9928_LT_EOF
9929 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9931 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936
9937 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9938 case `$LD -v 2>&1` in
9939 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9942
9943*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9944*** reliably create shared libraries on SCO systems. Therefore, libtool
9945*** is disabling shared libraries support. We urge you to upgrade GNU
9946*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9947*** your PATH or compiler configuration so that the native linker is
9948*** used, and then restart.
9949
9950_LT_EOF
9951 ;;
9952 *)
9953 # For security reasons, it is highly recommended that you always
9954 # use absolute paths for naming shared libraries, and exclude the
9955 # DT_RUNPATH tag from executables and libraries. But doing so
9956 # requires that you compile everything twice, which is a pain.
9957 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9960 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9961 else
9962 ld_shlibs=no
9963 fi
9964 ;;
9965 esac
9966 ;;
9967
9968 sunos4*)
9969 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9970 wlarc=
9971 hardcode_direct=yes
9972 hardcode_shlibpath_var=no
9973 ;;
9974
9975 *)
9976 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9977 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9978 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9979 else
9980 ld_shlibs=no
9981 fi
9982 ;;
9983 esac
9984
9985 if test no = "$ld_shlibs"; then
9986 runpath_var=
9987 hardcode_libdir_flag_spec=
9988 export_dynamic_flag_spec=
9989 whole_archive_flag_spec=
9990 fi
9991 else
9992 # PORTME fill in a description of your system's linker (not GNU ld)
9993 case $host_os in
9994 aix3*)
9995 allow_undefined_flag=unsupported
9996 always_export_symbols=yes
9997 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'
9998 # Note: this linker hardcodes the directories in LIBPATH if there
9999 # are no directories specified by -L.
10000 hardcode_minus_L=yes
10001 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10002 # Neither direct hardcoding nor static linking is supported with a
10003 # broken collect2.
10004 hardcode_direct=unsupported
10005 fi
10006 ;;
10007
10008 aix[4-9]*)
10009 if test ia64 = "$host_cpu"; then
10010 # On IA64, the linker does run time linking by default, so we don't
10011 # have to do anything special.
10012 aix_use_runtimelinking=no
10013 exp_sym_flag='-Bexport'
10014 no_entry_flag=
10015 else
10016 # If we're using GNU nm, then we don't want the "-C" option.
10017 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10018 # Without the "-l" option, or with the "-B" option, AIX nm treats
10019 # weak defined symbols like other global defined symbols, whereas
10020 # GNU nm marks them as "W".
10021 # While the 'weak' keyword is ignored in the Export File, we need
10022 # it in the Import File for the 'aix-soname' feature, so we have
10023 # to replace the "-B" option with "-P" for AIX nm.
10024 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10025 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10026 else
10027 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10028 fi
10029 aix_use_runtimelinking=no
10030
10031 # Test if we are trying to use run time linking or normal
10032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10033 # have runtime linking enabled, and use it for executables.
10034 # For shared libraries, we enable/disable runtime linking
10035 # depending on the kind of the shared library created -
10036 # when "with_aix_soname,aix_use_runtimelinking" is:
10037 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10038 # "aix,yes" lib.so shared, rtl:yes, for executables
10039 # lib.a static archive
10040 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10041 # lib.a(lib.so.V) shared, rtl:no, for executables
10042 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10043 # lib.a(lib.so.V) shared, rtl:no
10044 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10045 # lib.a static archive
10046 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10047 for ld_flag in $LDFLAGS; do
10048 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10049 aix_use_runtimelinking=yes
10050 break
10051 fi
10052 done
10053 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10054 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10055 # so we don't have lib.a shared libs to link our executables.
10056 # We have to force runtime linking in this case.
10057 aix_use_runtimelinking=yes
10058 LDFLAGS="$LDFLAGS -Wl,-brtl"
10059 fi
10060 ;;
10061 esac
10062
10063 exp_sym_flag='-bexport'
10064 no_entry_flag='-bnoentry'
10065 fi
10066
10067 # When large executables or shared objects are built, AIX ld can
10068 # have problems creating the table of contents. If linking a library
10069 # or program results in "error TOC overflow" add -mminimal-toc to
10070 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10071 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10072
10073 archive_cmds=''
10074 hardcode_direct=yes
10075 hardcode_direct_absolute=yes
10076 hardcode_libdir_separator=':'
10077 link_all_deplibs=yes
10078 file_list_spec='$wl-f,'
10079 case $with_aix_soname,$aix_use_runtimelinking in
10080 aix,*) ;; # traditional, no import file
10081 svr4,* | *,yes) # use import file
10082 # The Import File defines what to hardcode.
10083 hardcode_direct=no
10084 hardcode_direct_absolute=no
10085 ;;
10086 esac
10087
10088 if test yes = "$GCC"; then
10089 case $host_os in aix4.[012]|aix4.[012].*)
10090 # We only want to do this on AIX 4.2 and lower, the check
10091 # below for broken collect2 doesn't work under 4.3+
10092 collect2name=`$CC -print-prog-name=collect2`
10093 if test -f "$collect2name" &&
10094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10095 then
10096 # We have reworked collect2
10097 :
10098 else
10099 # We have old collect2
10100 hardcode_direct=unsupported
10101 # It fails to find uninstalled libraries when the uninstalled
10102 # path is not listed in the libpath. Setting hardcode_minus_L
10103 # to unsupported forces relinking
10104 hardcode_minus_L=yes
10105 hardcode_libdir_flag_spec='-L$libdir'
10106 hardcode_libdir_separator=
10107 fi
10108 ;;
10109 esac
10110 shared_flag='-shared'
10111 if test yes = "$aix_use_runtimelinking"; then
10112 shared_flag="$shared_flag "'$wl-G'
10113 fi
10114 # Need to ensure runtime linking is disabled for the traditional
10115 # shared library, or the linker may eventually find shared libraries
10116 # /with/ Import File - we do not want to mix them.
10117 shared_flag_aix='-shared'
10118 shared_flag_svr4='-shared $wl-G'
10119 else
10120 # not using gcc
10121 if test ia64 = "$host_cpu"; then
10122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10123 # chokes on -Wl,-G. The following line is correct:
10124 shared_flag='-G'
10125 else
10126 if test yes = "$aix_use_runtimelinking"; then
10127 shared_flag='$wl-G'
10128 else
10129 shared_flag='$wl-bM:SRE'
10130 fi
10131 shared_flag_aix='$wl-bM:SRE'
10132 shared_flag_svr4='$wl-G'
10133 fi
10134 fi
10135
10136 export_dynamic_flag_spec='$wl-bexpall'
10137 # It seems that -bexpall does not export symbols beginning with
10138 # underscore (_), so it is better to generate a list of symbols to export.
10139 always_export_symbols=yes
10140 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10141 # Warning - without using the other runtime loading flags (-brtl),
10142 # -berok will link without error, but may produce a broken library.
10143 allow_undefined_flag='-berok'
10144 # Determine the default libpath from the value encoded in an
10145 # empty executable.
10146 if test set = "${lt_cv_aix_libpath+set}"; then
10147 aix_libpath=$lt_cv_aix_libpath
10148else
10149 if ${lt_cv_aix_libpath_+:} false; then :
10150 $as_echo_n "(cached) " >&6
10151else
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h. */
10154
10155int
10156main ()
10157{
10158
10159 ;
10160 return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"; then :
10164
10165 lt_aix_libpath_sed='
10166 /Import File Strings/,/^$/ {
10167 /^0/ {
10168 s/^0 *\([^ ]*\) *$/\1/
10169 p
10170 }
10171 }'
10172 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10173 # Check for a 64-bit object if we didn't find anything.
10174 if test -z "$lt_cv_aix_libpath_"; then
10175 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10176 fi
10177fi
10178rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 if test -z "$lt_cv_aix_libpath_"; then
10181 lt_cv_aix_libpath_=/usr/lib:/lib
10182 fi
10183
10184fi
10185
10186 aix_libpath=$lt_cv_aix_libpath_
10187fi
10188
10189 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10190 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10191 else
10192 if test ia64 = "$host_cpu"; then
10193 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10194 allow_undefined_flag="-z nodefs"
10195 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"
10196 else
10197 # Determine the default libpath from the value encoded in an
10198 # empty executable.
10199 if test set = "${lt_cv_aix_libpath+set}"; then
10200 aix_libpath=$lt_cv_aix_libpath
10201else
10202 if ${lt_cv_aix_libpath_+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204else
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h. */
10207
10208int
10209main ()
10210{
10211
10212 ;
10213 return 0;
10214}
10215_ACEOF
10216if ac_fn_c_try_link "$LINENO"; then :
10217
10218 lt_aix_libpath_sed='
10219 /Import File Strings/,/^$/ {
10220 /^0/ {
10221 s/^0 *\([^ ]*\) *$/\1/
10222 p
10223 }
10224 }'
10225 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10226 # Check for a 64-bit object if we didn't find anything.
10227 if test -z "$lt_cv_aix_libpath_"; then
10228 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10229 fi
10230fi
10231rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 if test -z "$lt_cv_aix_libpath_"; then
10234 lt_cv_aix_libpath_=/usr/lib:/lib
10235 fi
10236
10237fi
10238
10239 aix_libpath=$lt_cv_aix_libpath_
10240fi
10241
10242 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10243 # Warning - without using the other run time loading flags,
10244 # -berok will link without error, but may produce a broken library.
10245 no_undefined_flag=' $wl-bernotok'
10246 allow_undefined_flag=' $wl-berok'
10247 if test yes = "$with_gnu_ld"; then
10248 # We only use this code for GNU lds that support --whole-archive.
10249 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10250 else
10251 # Exported symbols can be pulled into shared objects from archives
10252 whole_archive_flag_spec='$convenience'
10253 fi
10254 archive_cmds_need_lc=yes
10255 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10256 # -brtl affects multiple linker settings, -berok does not and is overridden later
10257 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10258 if test svr4 != "$with_aix_soname"; then
10259 # This is similar to how AIX traditionally builds its shared libraries.
10260 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10261 fi
10262 if test aix != "$with_aix_soname"; then
10263 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10264 else
10265 # used by -dlpreopen to get the symbols
10266 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10267 fi
10268 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10269 fi
10270 fi
10271 ;;
10272
10273 amigaos*)
10274 case $host_cpu in
10275 powerpc)
10276 # see comment about AmigaOS4 .so support
10277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10278 archive_expsym_cmds=''
10279 ;;
10280 m68k)
10281 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)'
10282 hardcode_libdir_flag_spec='-L$libdir'
10283 hardcode_minus_L=yes
10284 ;;
10285 esac
10286 ;;
10287
10288 bsdi[45]*)
10289 export_dynamic_flag_spec=-rdynamic
10290 ;;
10291
10292 cygwin* | mingw* | pw32* | cegcc*)
10293 # When not using gcc, we currently assume that we are using
10294 # Microsoft Visual C++.
10295 # hardcode_libdir_flag_spec is actually meaningless, as there is
10296 # no search path for DLLs.
10297 case $cc_basename in
10298 cl*)
10299 # Native MSVC
10300 hardcode_libdir_flag_spec=' '
10301 allow_undefined_flag=unsupported
10302 always_export_symbols=yes
10303 file_list_spec='@'
10304 # Tell ltmain to make .lib files, not .a files.
10305 libext=lib
10306 # Tell ltmain to make .dll files, not .so files.
10307 shrext_cmds=.dll
10308 # FIXME: Setting linknames here is a bad hack.
10309 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10310 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10311 cp "$export_symbols" "$output_objdir/$soname.def";
10312 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10313 else
10314 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10315 fi~
10316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10317 linknames='
10318 # The linker will not automatically build a static lib if we build a DLL.
10319 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10320 enable_shared_with_static_runtimes=yes
10321 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10323 # Don't use ranlib
10324 old_postinstall_cmds='chmod 644 $oldlib'
10325 postlink_cmds='lt_outputfile="@OUTPUT@"~
10326 lt_tool_outputfile="@TOOL_OUTPUT@"~
10327 case $lt_outputfile in
10328 *.exe|*.EXE) ;;
10329 *)
10330 lt_outputfile=$lt_outputfile.exe
10331 lt_tool_outputfile=$lt_tool_outputfile.exe
10332 ;;
10333 esac~
10334 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10335 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10336 $RM "$lt_outputfile.manifest";
10337 fi'
10338 ;;
10339 *)
10340 # Assume MSVC wrapper
10341 hardcode_libdir_flag_spec=' '
10342 allow_undefined_flag=unsupported
10343 # Tell ltmain to make .lib files, not .a files.
10344 libext=lib
10345 # Tell ltmain to make .dll files, not .so files.
10346 shrext_cmds=.dll
10347 # FIXME: Setting linknames here is a bad hack.
10348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10349 # The linker will automatically build a .lib file if we build a DLL.
10350 old_archive_from_new_cmds='true'
10351 # FIXME: Should let the user specify the lib program.
10352 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10353 enable_shared_with_static_runtimes=yes
10354 ;;
10355 esac
10356 ;;
10357
10358 darwin* | rhapsody*)
10359
10360
10361 archive_cmds_need_lc=no
10362 hardcode_direct=no
10363 hardcode_automatic=yes
10364 hardcode_shlibpath_var=unsupported
10365 if test yes = "$lt_cv_ld_force_load"; then
10366 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\"`'
10367
10368 else
10369 whole_archive_flag_spec=''
10370 fi
10371 link_all_deplibs=yes
10372 allow_undefined_flag=$_lt_dar_allow_undefined
10373 case $cc_basename in
10374 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10375 *) _lt_dar_can_shared=$GCC ;;
10376 esac
10377 if test yes = "$_lt_dar_can_shared"; then
10378 output_verbose_link_cmd=func_echo_all
10379 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10380 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10381 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"
10382 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"
10383
10384 else
10385 ld_shlibs=no
10386 fi
10387
10388 ;;
10389
10390 dgux*)
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10397 # support. Future versions do this automatically, but an explicit c++rt0.o
10398 # does not break anything, and helps significantly (at the cost of a little
10399 # extra space).
10400 freebsd2.2*)
10401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_direct=yes
10404 hardcode_shlibpath_var=no
10405 ;;
10406
10407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10408 freebsd2.*)
10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_direct=yes
10411 hardcode_minus_L=yes
10412 hardcode_shlibpath_var=no
10413 ;;
10414
10415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10416 freebsd* | dragonfly*)
10417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418 hardcode_libdir_flag_spec='-R$libdir'
10419 hardcode_direct=yes
10420 hardcode_shlibpath_var=no
10421 ;;
10422
10423 hpux9*)
10424 if test yes = "$GCC"; then
10425 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10426 else
10427 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10428 fi
10429 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_direct=yes
10432
10433 # hardcode_minus_L: Not really in the search PATH,
10434 # but as the default location of the library.
10435 hardcode_minus_L=yes
10436 export_dynamic_flag_spec='$wl-E'
10437 ;;
10438
10439 hpux10*)
10440 if test yes,no = "$GCC,$with_gnu_ld"; then
10441 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 else
10443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10444 fi
10445 if test no = "$with_gnu_ld"; then
10446 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10447 hardcode_libdir_separator=:
10448 hardcode_direct=yes
10449 hardcode_direct_absolute=yes
10450 export_dynamic_flag_spec='$wl-E'
10451 # hardcode_minus_L: Not really in the search PATH,
10452 # but as the default location of the library.
10453 hardcode_minus_L=yes
10454 fi
10455 ;;
10456
10457 hpux11*)
10458 if test yes,no = "$GCC,$with_gnu_ld"; then
10459 case $host_cpu in
10460 hppa*64*)
10461 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 ;;
10463 ia64*)
10464 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465 ;;
10466 *)
10467 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10468 ;;
10469 esac
10470 else
10471 case $host_cpu in
10472 hppa*64*)
10473 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 ;;
10475 ia64*)
10476 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10477 ;;
10478 *)
10479
10480 # Older versions of the 11.00 compiler do not understand -b yet
10481 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10483$as_echo_n "checking if $CC understands -b... " >&6; }
10484if ${lt_cv_prog_compiler__b+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486else
10487 lt_cv_prog_compiler__b=no
10488 save_LDFLAGS=$LDFLAGS
10489 LDFLAGS="$LDFLAGS -b"
10490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10492 # The linker can only warn and ignore the option if not recognized
10493 # So say no if there are warnings
10494 if test -s conftest.err; then
10495 # Append any errors to the config.log.
10496 cat conftest.err 1>&5
10497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10499 if diff conftest.exp conftest.er2 >/dev/null; then
10500 lt_cv_prog_compiler__b=yes
10501 fi
10502 else
10503 lt_cv_prog_compiler__b=yes
10504 fi
10505 fi
10506 $RM -r conftest*
10507 LDFLAGS=$save_LDFLAGS
10508
10509fi
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10511$as_echo "$lt_cv_prog_compiler__b" >&6; }
10512
10513if test yes = "$lt_cv_prog_compiler__b"; then
10514 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515else
10516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10517fi
10518
10519 ;;
10520 esac
10521 fi
10522 if test no = "$with_gnu_ld"; then
10523 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10524 hardcode_libdir_separator=:
10525
10526 case $host_cpu in
10527 hppa*64*|ia64*)
10528 hardcode_direct=no
10529 hardcode_shlibpath_var=no
10530 ;;
10531 *)
10532 hardcode_direct=yes
10533 hardcode_direct_absolute=yes
10534 export_dynamic_flag_spec='$wl-E'
10535
10536 # hardcode_minus_L: Not really in the search PATH,
10537 # but as the default location of the library.
10538 hardcode_minus_L=yes
10539 ;;
10540 esac
10541 fi
10542 ;;
10543
10544 irix5* | irix6* | nonstopux*)
10545 if test yes = "$GCC"; then
10546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10547 # Try to use the -exported_symbol ld option, if it does not
10548 # work, assume that -exports_file does not work either and
10549 # implicitly export all symbols.
10550 # This should be the same for all languages, so no per-tag cache variable.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10552$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10553if ${lt_cv_irix_exported_symbol+:} false; then :
10554 $as_echo_n "(cached) " >&6
10555else
10556 save_LDFLAGS=$LDFLAGS
10557 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559/* end confdefs.h. */
10560int foo (void) { return 0; }
10561_ACEOF
10562if ac_fn_c_try_link "$LINENO"; then :
10563 lt_cv_irix_exported_symbol=yes
10564else
10565 lt_cv_irix_exported_symbol=no
10566fi
10567rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LDFLAGS=$save_LDFLAGS
10570fi
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10572$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10573 if test yes = "$lt_cv_irix_exported_symbol"; then
10574 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10575 fi
10576 else
10577 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'
10578 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'
10579 fi
10580 archive_cmds_need_lc='no'
10581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10582 hardcode_libdir_separator=:
10583 inherit_rpath=yes
10584 link_all_deplibs=yes
10585 ;;
10586
10587 linux*)
10588 case $cc_basename in
10589 tcc*)
10590 # Fabrice Bellard et al's Tiny C Compiler
10591 ld_shlibs=yes
10592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10593 ;;
10594 esac
10595 ;;
10596
10597 netbsd*)
10598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10600 else
10601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10602 fi
10603 hardcode_libdir_flag_spec='-R$libdir'
10604 hardcode_direct=yes
10605 hardcode_shlibpath_var=no
10606 ;;
10607
10608 newsos6)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_direct=yes
10611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10612 hardcode_libdir_separator=:
10613 hardcode_shlibpath_var=no
10614 ;;
10615
10616 *nto* | *qnx*)
10617 ;;
10618
10619 openbsd* | bitrig*)
10620 if test -f /usr/libexec/ld.so; then
10621 hardcode_direct=yes
10622 hardcode_shlibpath_var=no
10623 hardcode_direct_absolute=yes
10624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10627 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10628 export_dynamic_flag_spec='$wl-E'
10629 else
10630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10631 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10632 fi
10633 else
10634 ld_shlibs=no
10635 fi
10636 ;;
10637
10638 os2*)
10639 hardcode_libdir_flag_spec='-L$libdir'
10640 hardcode_minus_L=yes
10641 allow_undefined_flag=unsupported
10642 shrext_cmds=.dll
10643 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10644 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10645 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10646 $ECHO EXPORTS >> $output_objdir/$libname.def~
10647 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10648 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10649 emximp -o $lib $output_objdir/$libname.def'
10650 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10651 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10652 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10653 $ECHO EXPORTS >> $output_objdir/$libname.def~
10654 prefix_cmds="$SED"~
10655 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10656 prefix_cmds="$prefix_cmds -e 1d";
10657 fi~
10658 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10659 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10660 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10661 emximp -o $lib $output_objdir/$libname.def'
10662 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10663 enable_shared_with_static_runtimes=yes
10664 ;;
10665
10666 osf3*)
10667 if test yes = "$GCC"; then
10668 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10669 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'
10670 else
10671 allow_undefined_flag=' -expect_unresolved \*'
10672 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'
10673 fi
10674 archive_cmds_need_lc='no'
10675 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10676 hardcode_libdir_separator=:
10677 ;;
10678
10679 osf4* | osf5*) # as osf3* with the addition of -msym flag
10680 if test yes = "$GCC"; then
10681 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10682 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10683 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10684 else
10685 allow_undefined_flag=' -expect_unresolved \*'
10686 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'
10687 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~
10688 $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'
10689
10690 # Both c and cxx compiler support -rpath directly
10691 hardcode_libdir_flag_spec='-rpath $libdir'
10692 fi
10693 archive_cmds_need_lc='no'
10694 hardcode_libdir_separator=:
10695 ;;
10696
10697 solaris*)
10698 no_undefined_flag=' -z defs'
10699 if test yes = "$GCC"; then
10700 wlarc='$wl'
10701 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10703 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10704 else
10705 case `$CC -V 2>&1` in
10706 *"Compilers 5.0"*)
10707 wlarc=''
10708 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10710 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10711 ;;
10712 *)
10713 wlarc='$wl'
10714 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10716 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10717 ;;
10718 esac
10719 fi
10720 hardcode_libdir_flag_spec='-R$libdir'
10721 hardcode_shlibpath_var=no
10722 case $host_os in
10723 solaris2.[0-5] | solaris2.[0-5].*) ;;
10724 *)
10725 # The compiler driver will combine and reorder linker options,
10726 # but understands '-z linker_flag'. GCC discards it without '$wl',
10727 # but is careful enough not to reorder.
10728 # Supported since Solaris 2.6 (maybe 2.5.1?)
10729 if test yes = "$GCC"; then
10730 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10731 else
10732 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10733 fi
10734 ;;
10735 esac
10736 link_all_deplibs=yes
10737 ;;
10738
10739 sunos4*)
10740 if test sequent = "$host_vendor"; then
10741 # Use $CC to link under sequent, because it throws in some extra .o
10742 # files that make .init and .fini sections work.
10743 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10744 else
10745 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10746 fi
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 hardcode_direct=yes
10749 hardcode_minus_L=yes
10750 hardcode_shlibpath_var=no
10751 ;;
10752
10753 sysv4)
10754 case $host_vendor in
10755 sni)
10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10757 hardcode_direct=yes # is this really true???
10758 ;;
10759 siemens)
10760 ## LD is ld it makes a PLAMLIB
10761 ## CC just makes a GrossModule.
10762 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10763 reload_cmds='$CC -r -o $output$reload_objs'
10764 hardcode_direct=no
10765 ;;
10766 motorola)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10769 ;;
10770 esac
10771 runpath_var='LD_RUN_PATH'
10772 hardcode_shlibpath_var=no
10773 ;;
10774
10775 sysv4.3*)
10776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10777 hardcode_shlibpath_var=no
10778 export_dynamic_flag_spec='-Bexport'
10779 ;;
10780
10781 sysv4*MP*)
10782 if test -d /usr/nec; then
10783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784 hardcode_shlibpath_var=no
10785 runpath_var=LD_RUN_PATH
10786 hardcode_runpath_var=yes
10787 ld_shlibs=yes
10788 fi
10789 ;;
10790
10791 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10792 no_undefined_flag='$wl-z,text'
10793 archive_cmds_need_lc=no
10794 hardcode_shlibpath_var=no
10795 runpath_var='LD_RUN_PATH'
10796
10797 if test yes = "$GCC"; then
10798 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800 else
10801 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10802 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10803 fi
10804 ;;
10805
10806 sysv5* | sco3.2v5* | sco5v6*)
10807 # Note: We CANNOT use -z defs as we might desire, because we do not
10808 # link with -lc, and that would cause any symbols used from libc to
10809 # always be unresolved, which means just about no library would
10810 # ever link correctly. If we're not using GNU ld we use -z text
10811 # though, which does catch some bad symbols but isn't as heavy-handed
10812 # as -z defs.
10813 no_undefined_flag='$wl-z,text'
10814 allow_undefined_flag='$wl-z,nodefs'
10815 archive_cmds_need_lc=no
10816 hardcode_shlibpath_var=no
10817 hardcode_libdir_flag_spec='$wl-R,$libdir'
10818 hardcode_libdir_separator=':'
10819 link_all_deplibs=yes
10820 export_dynamic_flag_spec='$wl-Bexport'
10821 runpath_var='LD_RUN_PATH'
10822
10823 if test yes = "$GCC"; then
10824 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 else
10827 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10828 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 fi
10830 ;;
10831
10832 uts4*)
10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10834 hardcode_libdir_flag_spec='-L$libdir'
10835 hardcode_shlibpath_var=no
10836 ;;
10837
10838 *)
10839 ld_shlibs=no
10840 ;;
10841 esac
10842
10843 if test sni = "$host_vendor"; then
10844 case $host in
10845 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10846 export_dynamic_flag_spec='$wl-Blargedynsym'
10847 ;;
10848 esac
10849 fi
10850 fi
10851
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10853$as_echo "$ld_shlibs" >&6; }
10854test no = "$ld_shlibs" && can_build_shared=no
10855
10856with_gnu_ld=$with_gnu_ld
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872#
10873# Do we need to explicitly link libc?
10874#
10875case "x$archive_cmds_need_lc" in
10876x|xyes)
10877 # Assume -lc should be added
10878 archive_cmds_need_lc=yes
10879
10880 if test yes,yes = "$GCC,$enable_shared"; then
10881 case $archive_cmds in
10882 *'~'*)
10883 # FIXME: we may have to deal with multi-command sequences.
10884 ;;
10885 '$CC '*)
10886 # Test whether the compiler implicitly links with -lc since on some
10887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10888 # to ld, don't add -lc before -lgcc.
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10890$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10891if ${lt_cv_archive_cmds_need_lc+:} false; then :
10892 $as_echo_n "(cached) " >&6
10893else
10894 $RM conftest*
10895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10896
10897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10898 (eval $ac_compile) 2>&5
10899 ac_status=$?
10900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901 test $ac_status = 0; } 2>conftest.err; then
10902 soname=conftest
10903 lib=conftest
10904 libobjs=conftest.$ac_objext
10905 deplibs=
10906 wl=$lt_prog_compiler_wl
10907 pic_flag=$lt_prog_compiler_pic
10908 compiler_flags=-v
10909 linker_flags=-v
10910 verstring=
10911 output_objdir=.
10912 libname=conftest
10913 lt_save_allow_undefined_flag=$allow_undefined_flag
10914 allow_undefined_flag=
10915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10916 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10917 ac_status=$?
10918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10919 test $ac_status = 0; }
10920 then
10921 lt_cv_archive_cmds_need_lc=no
10922 else
10923 lt_cv_archive_cmds_need_lc=yes
10924 fi
10925 allow_undefined_flag=$lt_save_allow_undefined_flag
10926 else
10927 cat conftest.err 1>&5
10928 fi
10929 $RM conftest*
10930
10931fi
10932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10933$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10934 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10935 ;;
10936 esac
10937 fi
10938 ;;
10939esac
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
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
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11093$as_echo_n "checking dynamic linker characteristics... " >&6; }
11094
11095if test yes = "$GCC"; then
11096 case $host_os in
11097 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11098 *) lt_awk_arg='/^libraries:/' ;;
11099 esac
11100 case $host_os in
11101 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11102 *) lt_sed_strip_eq='s|=/|/|g' ;;
11103 esac
11104 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11105 case $lt_search_path_spec in
11106 *\;*)
11107 # if the path contains ";" then we assume it to be the separator
11108 # otherwise default to the standard path separator (i.e. ":") - it is
11109 # assumed that no part of a normal pathname contains ";" but that should
11110 # okay in the real world where ";" in dirpaths is itself problematic.
11111 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11112 ;;
11113 *)
11114 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11115 ;;
11116 esac
11117 # Ok, now we have the path, separated by spaces, we can step through it
11118 # and add multilib dir if necessary...
11119 lt_tmp_lt_search_path_spec=
11120 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11121 # ...but if some path component already ends with the multilib dir we assume
11122 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11123 case "$lt_multi_os_dir; $lt_search_path_spec " in
11124 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11125 lt_multi_os_dir=
11126 ;;
11127 esac
11128 for lt_sys_path in $lt_search_path_spec; do
11129 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11130 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11131 elif test -n "$lt_multi_os_dir"; then
11132 test -d "$lt_sys_path" && \
11133 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11134 fi
11135 done
11136 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11137BEGIN {RS = " "; FS = "/|\n";} {
11138 lt_foo = "";
11139 lt_count = 0;
11140 for (lt_i = NF; lt_i > 0; lt_i--) {
11141 if ($lt_i != "" && $lt_i != ".") {
11142 if ($lt_i == "..") {
11143 lt_count++;
11144 } else {
11145 if (lt_count == 0) {
11146 lt_foo = "/" $lt_i lt_foo;
11147 } else {
11148 lt_count--;
11149 }
11150 }
11151 }
11152 }
11153 if (lt_foo != "") { lt_freq[lt_foo]++; }
11154 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11155}'`
11156 # AWK program above erroneously prepends '/' to C:/dos/paths
11157 # for these hosts.
11158 case $host_os in
11159 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11160 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11161 esac
11162 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11163else
11164 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11165fi
11166library_names_spec=
11167libname_spec='lib$name'
11168soname_spec=
11169shrext_cmds=.so
11170postinstall_cmds=
11171postuninstall_cmds=
11172finish_cmds=
11173finish_eval=
11174shlibpath_var=
11175shlibpath_overrides_runpath=unknown
11176version_type=none
11177dynamic_linker="$host_os ld.so"
11178sys_lib_dlsearch_path_spec="/lib /usr/lib"
11179need_lib_prefix=unknown
11180hardcode_into_libs=no
11181
11182# when you set need_version to no, make sure it does not cause -set_version
11183# flags to be left without arguments
11184need_version=unknown
11185
11186
11187
11188case $host_os in
11189aix3*)
11190 version_type=linux # correct to gnu/linux during the next big refactor
11191 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11192 shlibpath_var=LIBPATH
11193
11194 # AIX 3 has no versioning support, so we append a major version to the name.
11195 soname_spec='$libname$release$shared_ext$major'
11196 ;;
11197
11198aix[4-9]*)
11199 version_type=linux # correct to gnu/linux during the next big refactor
11200 need_lib_prefix=no
11201 need_version=no
11202 hardcode_into_libs=yes
11203 if test ia64 = "$host_cpu"; then
11204 # AIX 5 supports IA64
11205 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 else
11208 # With GCC up to 2.95.x, collect2 would create an import file
11209 # for dependence libraries. The import file would start with
11210 # the line '#! .'. This would cause the generated library to
11211 # depend on '.', always an invalid library. This was fixed in
11212 # development snapshots of GCC prior to 3.0.
11213 case $host_os in
11214 aix4 | aix4.[01] | aix4.[01].*)
11215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11216 echo ' yes '
11217 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11218 :
11219 else
11220 can_build_shared=no
11221 fi
11222 ;;
11223 esac
11224 # Using Import Files as archive members, it is possible to support
11225 # filename-based versioning of shared library archives on AIX. While
11226 # this would work for both with and without runtime linking, it will
11227 # prevent static linking of such archives. So we do filename-based
11228 # shared library versioning with .so extension only, which is used
11229 # when both runtime linking and shared linking is enabled.
11230 # Unfortunately, runtime linking may impact performance, so we do
11231 # not want this to be the default eventually. Also, we use the
11232 # versioned .so libs for executables only if there is the -brtl
11233 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11234 # To allow for filename-based versioning support, we need to create
11235 # libNAME.so.V as an archive file, containing:
11236 # *) an Import File, referring to the versioned filename of the
11237 # archive as well as the shared archive member, telling the
11238 # bitwidth (32 or 64) of that shared object, and providing the
11239 # list of exported symbols of that shared object, eventually
11240 # decorated with the 'weak' keyword
11241 # *) the shared object with the F_LOADONLY flag set, to really avoid
11242 # it being seen by the linker.
11243 # At run time we better use the real file rather than another symlink,
11244 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11245
11246 case $with_aix_soname,$aix_use_runtimelinking in
11247 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11248 # soname into executable. Probably we can add versioning support to
11249 # collect2, so additional links can be useful in future.
11250 aix,yes) # traditional libtool
11251 dynamic_linker='AIX unversionable lib.so'
11252 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11253 # instead of lib<name>.a to let people know that these are not
11254 # typical AIX shared libraries.
11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256 ;;
11257 aix,no) # traditional AIX only
11258 dynamic_linker='AIX lib.a(lib.so.V)'
11259 # We preserve .a as extension for shared libraries through AIX4.2
11260 # and later when we are not doing run time linking.
11261 library_names_spec='$libname$release.a $libname.a'
11262 soname_spec='$libname$release$shared_ext$major'
11263 ;;
11264 svr4,*) # full svr4 only
11265 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11266 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11267 # We do not specify a path in Import Files, so LIBPATH fires.
11268 shlibpath_overrides_runpath=yes
11269 ;;
11270 *,yes) # both, prefer svr4
11271 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11272 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11273 # unpreferred sharedlib libNAME.a needs extra handling
11274 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11275 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11276 # We do not specify a path in Import Files, so LIBPATH fires.
11277 shlibpath_overrides_runpath=yes
11278 ;;
11279 *,no) # both, prefer aix
11280 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11281 library_names_spec='$libname$release.a $libname.a'
11282 soname_spec='$libname$release$shared_ext$major'
11283 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11284 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11285 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11286 ;;
11287 esac
11288 shlibpath_var=LIBPATH
11289 fi
11290 ;;
11291
11292amigaos*)
11293 case $host_cpu in
11294 powerpc)
11295 # Since July 2007 AmigaOS4 officially supports .so libraries.
11296 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11298 ;;
11299 m68k)
11300 library_names_spec='$libname.ixlibrary $libname.a'
11301 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11302 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11303 ;;
11304 esac
11305 ;;
11306
11307beos*)
11308 library_names_spec='$libname$shared_ext'
11309 dynamic_linker="$host_os ld.so"
11310 shlibpath_var=LIBRARY_PATH
11311 ;;
11312
11313bsdi[45]*)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 need_version=no
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317 soname_spec='$libname$release$shared_ext$major'
11318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11322 # the default ld.so.conf also contains /usr/contrib/lib and
11323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11324 # libtool to hard-code these into programs
11325 ;;
11326
11327cygwin* | mingw* | pw32* | cegcc*)
11328 version_type=windows
11329 shrext_cmds=.dll
11330 need_version=no
11331 need_lib_prefix=no
11332
11333 case $GCC,$cc_basename in
11334 yes,*)
11335 # gcc
11336 library_names_spec='$libname.dll.a'
11337 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11338 postinstall_cmds='base_file=`basename \$file`~
11339 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11340 dldir=$destdir/`dirname \$dlpath`~
11341 test -d \$dldir || mkdir -p \$dldir~
11342 $install_prog $dir/$dlname \$dldir/$dlname~
11343 chmod a+x \$dldir/$dlname~
11344 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11345 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11346 fi'
11347 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11348 dlpath=$dir/\$dldll~
11349 $RM \$dlpath'
11350 shlibpath_overrides_runpath=yes
11351
11352 case $host_os in
11353 cygwin*)
11354 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11355 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11356
11357 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11358 ;;
11359 mingw* | cegcc*)
11360 # MinGW DLLs use traditional 'lib' prefix
11361 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11362 ;;
11363 pw32*)
11364 # pw32 DLLs use 'pw' prefix rather than 'lib'
11365 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11366 ;;
11367 esac
11368 dynamic_linker='Win32 ld.exe'
11369 ;;
11370
11371 *,cl*)
11372 # Native MSVC
11373 libname_spec='$name'
11374 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11375 library_names_spec='$libname.dll.lib'
11376
11377 case $build_os in
11378 mingw*)
11379 sys_lib_search_path_spec=
11380 lt_save_ifs=$IFS
11381 IFS=';'
11382 for lt_path in $LIB
11383 do
11384 IFS=$lt_save_ifs
11385 # Let DOS variable expansion print the short 8.3 style file name.
11386 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11387 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11388 done
11389 IFS=$lt_save_ifs
11390 # Convert to MSYS style.
11391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11392 ;;
11393 cygwin*)
11394 # Convert to unix form, then to dos form, then back to unix form
11395 # but this time dos style (no spaces!) so that the unix form looks
11396 # like /cygdrive/c/PROGRA~1:/cygdr...
11397 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11398 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11399 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11400 ;;
11401 *)
11402 sys_lib_search_path_spec=$LIB
11403 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11404 # It is most probably a Windows format PATH.
11405 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11406 else
11407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11408 fi
11409 # FIXME: find the short name or the path components, as spaces are
11410 # common. (e.g. "Program Files" -> "PROGRA~1")
11411 ;;
11412 esac
11413
11414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11415 postinstall_cmds='base_file=`basename \$file`~
11416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11417 dldir=$destdir/`dirname \$dlpath`~
11418 test -d \$dldir || mkdir -p \$dldir~
11419 $install_prog $dir/$dlname \$dldir/$dlname'
11420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11421 dlpath=$dir/\$dldll~
11422 $RM \$dlpath'
11423 shlibpath_overrides_runpath=yes
11424 dynamic_linker='Win32 link.exe'
11425 ;;
11426
11427 *)
11428 # Assume MSVC wrapper
11429 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11430 dynamic_linker='Win32 ld.exe'
11431 ;;
11432 esac
11433 # FIXME: first we should search . and the directory the executable is in
11434 shlibpath_var=PATH
11435 ;;
11436
11437darwin* | rhapsody*)
11438 dynamic_linker="$host_os dyld"
11439 version_type=darwin
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11443 soname_spec='$libname$release$major$shared_ext'
11444 shlibpath_overrides_runpath=yes
11445 shlibpath_var=DYLD_LIBRARY_PATH
11446 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11447
11448 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11450 ;;
11451
11452dgux*)
11453 version_type=linux # correct to gnu/linux during the next big refactor
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457 soname_spec='$libname$release$shared_ext$major'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 ;;
11460
11461freebsd* | dragonfly*)
11462 # DragonFly does not have aout. When/if they implement a new
11463 # versioning mechanism, adjust this.
11464 if test -x /usr/bin/objformat; then
11465 objformat=`/usr/bin/objformat`
11466 else
11467 case $host_os in
11468 freebsd[23].*) objformat=aout ;;
11469 *) objformat=elf ;;
11470 esac
11471 fi
11472 # Handle Gentoo/FreeBSD as it was Linux
11473 case $host_vendor in
11474 gentoo)
11475 version_type=linux ;;
11476 *)
11477 version_type=freebsd-$objformat ;;
11478 esac
11479
11480 case $version_type in
11481 freebsd-elf*)
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 need_version=no
11485 need_lib_prefix=no
11486 ;;
11487 freebsd-*)
11488 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11489 need_version=yes
11490 ;;
11491 linux)
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 need_lib_prefix=no
11495 need_version=no
11496 ;;
11497 esac
11498 shlibpath_var=LD_LIBRARY_PATH
11499 case $host_os in
11500 freebsd2.*)
11501 shlibpath_overrides_runpath=yes
11502 ;;
11503 freebsd3.[01]* | freebsdelf3.[01]*)
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 ;;
11507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11509 shlibpath_overrides_runpath=no
11510 hardcode_into_libs=yes
11511 ;;
11512 *) # from 4.6 on, and DragonFly
11513 shlibpath_overrides_runpath=yes
11514 hardcode_into_libs=yes
11515 ;;
11516 esac
11517 ;;
11518
11519haiku*)
11520 version_type=linux # correct to gnu/linux during the next big refactor
11521 need_lib_prefix=no
11522 need_version=no
11523 dynamic_linker="$host_os runtime_loader"
11524 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525 soname_spec='$libname$release$shared_ext$major'
11526 shlibpath_var=LIBRARY_PATH
11527 shlibpath_overrides_runpath=no
11528 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11529 hardcode_into_libs=yes
11530 ;;
11531
11532hpux9* | hpux10* | hpux11*)
11533 # Give a soname corresponding to the major version so that dld.sl refuses to
11534 # link against other versions.
11535 version_type=sunos
11536 need_lib_prefix=no
11537 need_version=no
11538 case $host_cpu in
11539 ia64*)
11540 shrext_cmds='.so'
11541 hardcode_into_libs=yes
11542 dynamic_linker="$host_os dld.so"
11543 shlibpath_var=LD_LIBRARY_PATH
11544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11546 soname_spec='$libname$release$shared_ext$major'
11547 if test 32 = "$HPUX_IA64_MODE"; then
11548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11549 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11550 else
11551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11552 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11553 fi
11554 ;;
11555 hppa*64*)
11556 shrext_cmds='.sl'
11557 hardcode_into_libs=yes
11558 dynamic_linker="$host_os dld.sl"
11559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562 soname_spec='$libname$release$shared_ext$major'
11563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565 ;;
11566 *)
11567 shrext_cmds='.sl'
11568 dynamic_linker="$host_os dld.sl"
11569 shlibpath_var=SHLIB_PATH
11570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572 soname_spec='$libname$release$shared_ext$major'
11573 ;;
11574 esac
11575 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11576 postinstall_cmds='chmod 555 $lib'
11577 # or fails outright, so override atomically:
11578 install_override_mode=555
11579 ;;
11580
11581interix[3-9]*)
11582 version_type=linux # correct to gnu/linux during the next big refactor
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586 soname_spec='$libname$release$shared_ext$major'
11587 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=no
11590 hardcode_into_libs=yes
11591 ;;
11592
11593irix5* | irix6* | nonstopux*)
11594 case $host_os in
11595 nonstopux*) version_type=nonstopux ;;
11596 *)
11597 if test yes = "$lt_cv_prog_gnu_ld"; then
11598 version_type=linux # correct to gnu/linux during the next big refactor
11599 else
11600 version_type=irix
11601 fi ;;
11602 esac
11603 need_lib_prefix=no
11604 need_version=no
11605 soname_spec='$libname$release$shared_ext$major'
11606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11607 case $host_os in
11608 irix5* | nonstopux*)
11609 libsuff= shlibsuff=
11610 ;;
11611 *)
11612 case $LD in # libtool.m4 will add one of these switches to LD
11613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11614 libsuff= shlibsuff= libmagic=32-bit;;
11615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11616 libsuff=32 shlibsuff=N32 libmagic=N32;;
11617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11618 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11619 *) libsuff= shlibsuff= libmagic=never-match;;
11620 esac
11621 ;;
11622 esac
11623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11624 shlibpath_overrides_runpath=no
11625 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11626 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11627 hardcode_into_libs=yes
11628 ;;
11629
11630# No shared lib support for Linux oldld, aout, or coff.
11631linux*oldld* | linux*aout* | linux*coff*)
11632 dynamic_linker=no
11633 ;;
11634
11635linux*android*)
11636 version_type=none # Android doesn't support versioned libraries.
11637 need_lib_prefix=no
11638 need_version=no
11639 library_names_spec='$libname$release$shared_ext'
11640 soname_spec='$libname$release$shared_ext'
11641 finish_cmds=
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=yes
11644
11645 # This implies no fast_install, which is unacceptable.
11646 # Some rework will be needed to allow for fast_install
11647 # before this can be enabled.
11648 hardcode_into_libs=yes
11649
11650 dynamic_linker='Android linker'
11651 # Don't embed -rpath directories since the linker doesn't support them.
11652 hardcode_libdir_flag_spec='-L$libdir'
11653 ;;
11654
11655# This must be glibc/ELF.
11656linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11657 version_type=linux # correct to gnu/linux during the next big refactor
11658 need_lib_prefix=no
11659 need_version=no
11660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11661 soname_spec='$libname$release$shared_ext$major'
11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 shlibpath_overrides_runpath=no
11665
11666 # Some binutils ld are patched to set DT_RUNPATH
11667 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669else
11670 lt_cv_shlibpath_overrides_runpath=no
11671 save_LDFLAGS=$LDFLAGS
11672 save_libdir=$libdir
11673 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11674 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676/* end confdefs.h. */
11677
11678int
11679main ()
11680{
11681
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686if ac_fn_c_try_link "$LINENO"; then :
11687 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11688 lt_cv_shlibpath_overrides_runpath=yes
11689fi
11690fi
11691rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LDFLAGS=$save_LDFLAGS
11694 libdir=$save_libdir
11695
11696fi
11697
11698 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11699
11700 # This implies no fast_install, which is unacceptable.
11701 # Some rework will be needed to allow for fast_install
11702 # before this can be enabled.
11703 hardcode_into_libs=yes
11704
11705 # Ideally, we could use ldconfig to report *all* directores which are
11706 # searched for libraries, however this is still not possible. Aside from not
11707 # being certain /sbin/ldconfig is available, command
11708 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11709 # even though it is searched at run-time. Try to do the best guess by
11710 # appending ld.so.conf contents (and includes) to the search path.
11711 if test -f /etc/ld.so.conf; then
11712 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' ' '`
11713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11714 fi
11715
11716 # We used to test for /lib/ld.so.1 and disable shared libraries on
11717 # powerpc, because MkLinux only supported shared libraries with the
11718 # GNU dynamic linker. Since this was broken with cross compilers,
11719 # most powerpc-linux boxes support dynamic linking these days and
11720 # people can always --disable-shared, the test was removed, and we
11721 # assume the GNU/Linux dynamic linker is in use.
11722 dynamic_linker='GNU/Linux ld.so'
11723 ;;
11724
11725netbsd*)
11726 version_type=sunos
11727 need_lib_prefix=no
11728 need_version=no
11729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11732 dynamic_linker='NetBSD (a.out) ld.so'
11733 else
11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11735 soname_spec='$libname$release$shared_ext$major'
11736 dynamic_linker='NetBSD ld.elf_so'
11737 fi
11738 shlibpath_var=LD_LIBRARY_PATH
11739 shlibpath_overrides_runpath=yes
11740 hardcode_into_libs=yes
11741 ;;
11742
11743newsos6)
11744 version_type=linux # correct to gnu/linux during the next big refactor
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746 shlibpath_var=LD_LIBRARY_PATH
11747 shlibpath_overrides_runpath=yes
11748 ;;
11749
11750*nto* | *qnx*)
11751 version_type=qnx
11752 need_lib_prefix=no
11753 need_version=no
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11755 soname_spec='$libname$release$shared_ext$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=no
11758 hardcode_into_libs=yes
11759 dynamic_linker='ldqnx.so'
11760 ;;
11761
11762openbsd* | bitrig*)
11763 version_type=sunos
11764 sys_lib_dlsearch_path_spec=/usr/lib
11765 need_lib_prefix=no
11766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11767 need_version=no
11768 else
11769 need_version=yes
11770 fi
11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 ;;
11776
11777os2*)
11778 libname_spec='$name'
11779 version_type=windows
11780 shrext_cmds=.dll
11781 need_version=no
11782 need_lib_prefix=no
11783 # OS/2 can only load a DLL with a base name of 8 characters or less.
11784 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11785 v=$($ECHO $release$versuffix | tr -d .-);
11786 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11787 $ECHO $n$v`$shared_ext'
11788 library_names_spec='${libname}_dll.$libext'
11789 dynamic_linker='OS/2 ld.exe'
11790 shlibpath_var=BEGINLIBPATH
11791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11793 postinstall_cmds='base_file=`basename \$file`~
11794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11795 dldir=$destdir/`dirname \$dlpath`~
11796 test -d \$dldir || mkdir -p \$dldir~
11797 $install_prog $dir/$dlname \$dldir/$dlname~
11798 chmod a+x \$dldir/$dlname~
11799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11801 fi'
11802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11803 dlpath=$dir/\$dldll~
11804 $RM \$dlpath'
11805 ;;
11806
11807osf3* | osf4* | osf5*)
11808 version_type=osf
11809 need_lib_prefix=no
11810 need_version=no
11811 soname_spec='$libname$release$shared_ext$major'
11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11816 ;;
11817
11818rdos*)
11819 dynamic_linker=no
11820 ;;
11821
11822solaris*)
11823 version_type=linux # correct to gnu/linux during the next big refactor
11824 need_lib_prefix=no
11825 need_version=no
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11827 soname_spec='$libname$release$shared_ext$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11830 hardcode_into_libs=yes
11831 # ldd complains unless libraries are executable
11832 postinstall_cmds='chmod +x $lib'
11833 ;;
11834
11835sunos4*)
11836 version_type=sunos
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 shlibpath_overrides_runpath=yes
11841 if test yes = "$with_gnu_ld"; then
11842 need_lib_prefix=no
11843 fi
11844 need_version=yes
11845 ;;
11846
11847sysv4 | sysv4.3*)
11848 version_type=linux # correct to gnu/linux during the next big refactor
11849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11850 soname_spec='$libname$release$shared_ext$major'
11851 shlibpath_var=LD_LIBRARY_PATH
11852 case $host_vendor in
11853 sni)
11854 shlibpath_overrides_runpath=no
11855 need_lib_prefix=no
11856 runpath_var=LD_RUN_PATH
11857 ;;
11858 siemens)
11859 need_lib_prefix=no
11860 ;;
11861 motorola)
11862 need_lib_prefix=no
11863 need_version=no
11864 shlibpath_overrides_runpath=no
11865 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11866 ;;
11867 esac
11868 ;;
11869
11870sysv4*MP*)
11871 if test -d /usr/nec; then
11872 version_type=linux # correct to gnu/linux during the next big refactor
11873 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11874 soname_spec='$libname$shared_ext.$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 fi
11877 ;;
11878
11879sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11880 version_type=sco
11881 need_lib_prefix=no
11882 need_version=no
11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11884 soname_spec='$libname$release$shared_ext$major'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 hardcode_into_libs=yes
11888 if test yes = "$with_gnu_ld"; then
11889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11890 else
11891 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11892 case $host_os in
11893 sco3.2v5*)
11894 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11895 ;;
11896 esac
11897 fi
11898 sys_lib_dlsearch_path_spec='/usr/lib'
11899 ;;
11900
11901tpf*)
11902 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11903 version_type=linux # correct to gnu/linux during the next big refactor
11904 need_lib_prefix=no
11905 need_version=no
11906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=no
11909 hardcode_into_libs=yes
11910 ;;
11911
11912uts4*)
11913 version_type=linux # correct to gnu/linux during the next big refactor
11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11915 soname_spec='$libname$release$shared_ext$major'
11916 shlibpath_var=LD_LIBRARY_PATH
11917 ;;
11918
11919*)
11920 dynamic_linker=no
11921 ;;
11922esac
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11924$as_echo "$dynamic_linker" >&6; }
11925test no = "$dynamic_linker" && can_build_shared=no
11926
11927variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11928if test yes = "$GCC"; then
11929 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11930fi
11931
11932if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11933 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11934fi
11935
11936if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11937 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11938fi
11939
11940# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11941configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11942
11943# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11944func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11945
11946# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11947configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12046$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12047hardcode_action=
12048if test -n "$hardcode_libdir_flag_spec" ||
12049 test -n "$runpath_var" ||
12050 test yes = "$hardcode_automatic"; then
12051
12052 # We can hardcode non-existent directories.
12053 if test no != "$hardcode_direct" &&
12054 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12055 # have to relink, otherwise we might link with an installed library
12056 # when we should be linking with a yet-to-be-installed one
12057 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12058 test no != "$hardcode_minus_L"; then
12059 # Linking always hardcodes the temporary library directory.
12060 hardcode_action=relink
12061 else
12062 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12063 hardcode_action=immediate
12064 fi
12065else
12066 # We cannot hardcode anything, or else we can only hardcode existing
12067 # directories.
12068 hardcode_action=unsupported
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12071$as_echo "$hardcode_action" >&6; }
12072
12073if test relink = "$hardcode_action" ||
12074 test yes = "$inherit_rpath"; then
12075 # Fast installation is not supported
12076 enable_fast_install=no
12077elif test yes = "$shlibpath_overrides_runpath" ||
12078 test no = "$enable_shared"; then
12079 # Fast installation is not necessary
12080 enable_fast_install=needless
12081fi
12082
12083
12084
12085
12086
12087
12088 if test yes != "$enable_dlopen"; then
12089 enable_dlopen=unknown
12090 enable_dlopen_self=unknown
12091 enable_dlopen_self_static=unknown
12092else
12093 lt_cv_dlopen=no
12094 lt_cv_dlopen_libs=
12095
12096 case $host_os in
12097 beos*)
12098 lt_cv_dlopen=load_add_on
12099 lt_cv_dlopen_libs=
12100 lt_cv_dlopen_self=yes
12101 ;;
12102
12103 mingw* | pw32* | cegcc*)
12104 lt_cv_dlopen=LoadLibrary
12105 lt_cv_dlopen_libs=
12106 ;;
12107
12108 cygwin*)
12109 lt_cv_dlopen=dlopen
12110 lt_cv_dlopen_libs=
12111 ;;
12112
12113 darwin*)
12114 # if libdl is installed we need to link against it
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12116$as_echo_n "checking for dlopen in -ldl... " >&6; }
12117if ${ac_cv_lib_dl_dlopen+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119else
12120 ac_check_lib_save_LIBS=$LIBS
12121LIBS="-ldl $LIBS"
12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124
12125/* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128#ifdef __cplusplus
12129extern "C"
12130#endif
12131char dlopen ();
12132int
12133main ()
12134{
12135return dlopen ();
12136 ;
12137 return 0;
12138}
12139_ACEOF
12140if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_dl_dlopen=yes
12142else
12143 ac_cv_lib_dl_dlopen=no
12144fi
12145rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147LIBS=$ac_check_lib_save_LIBS
12148fi
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12150$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12151if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12152 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12153else
12154
12155 lt_cv_dlopen=dyld
12156 lt_cv_dlopen_libs=
12157 lt_cv_dlopen_self=yes
12158
12159fi
12160
12161 ;;
12162
12163 tpf*)
12164 # Don't try to run any link tests for TPF. We know it's impossible
12165 # because TPF is a cross-compiler, and we know how we open DSOs.
12166 lt_cv_dlopen=dlopen
12167 lt_cv_dlopen_libs=
12168 lt_cv_dlopen_self=no
12169 ;;
12170
12171 *)
12172 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12173if test "x$ac_cv_func_shl_load" = xyes; then :
12174 lt_cv_dlopen=shl_load
12175else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12177$as_echo_n "checking for shl_load in -ldld... " >&6; }
12178if ${ac_cv_lib_dld_shl_load+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180else
12181 ac_check_lib_save_LIBS=$LIBS
12182LIBS="-ldld $LIBS"
12183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h. */
12185
12186/* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189#ifdef __cplusplus
12190extern "C"
12191#endif
12192char shl_load ();
12193int
12194main ()
12195{
12196return shl_load ();
12197 ;
12198 return 0;
12199}
12200_ACEOF
12201if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_lib_dld_shl_load=yes
12203else
12204 ac_cv_lib_dld_shl_load=no
12205fi
12206rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208LIBS=$ac_check_lib_save_LIBS
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12211$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12212if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12213 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12214else
12215 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12216if test "x$ac_cv_func_dlopen" = xyes; then :
12217 lt_cv_dlopen=dlopen
12218else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12220$as_echo_n "checking for dlopen in -ldl... " >&6; }
12221if ${ac_cv_lib_dl_dlopen+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223else
12224 ac_check_lib_save_LIBS=$LIBS
12225LIBS="-ldl $LIBS"
12226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227/* end confdefs.h. */
12228
12229/* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12232#ifdef __cplusplus
12233extern "C"
12234#endif
12235char dlopen ();
12236int
12237main ()
12238{
12239return dlopen ();
12240 ;
12241 return 0;
12242}
12243_ACEOF
12244if ac_fn_c_try_link "$LINENO"; then :
12245 ac_cv_lib_dl_dlopen=yes
12246else
12247 ac_cv_lib_dl_dlopen=no
12248fi
12249rm -f core conftest.err conftest.$ac_objext \
12250 conftest$ac_exeext conftest.$ac_ext
12251LIBS=$ac_check_lib_save_LIBS
12252fi
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12254$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12255if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12256 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12257else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12259$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12260if ${ac_cv_lib_svld_dlopen+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262else
12263 ac_check_lib_save_LIBS=$LIBS
12264LIBS="-lsvld $LIBS"
12265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266/* end confdefs.h. */
12267
12268/* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12271#ifdef __cplusplus
12272extern "C"
12273#endif
12274char dlopen ();
12275int
12276main ()
12277{
12278return dlopen ();
12279 ;
12280 return 0;
12281}
12282_ACEOF
12283if ac_fn_c_try_link "$LINENO"; then :
12284 ac_cv_lib_svld_dlopen=yes
12285else
12286 ac_cv_lib_svld_dlopen=no
12287fi
12288rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290LIBS=$ac_check_lib_save_LIBS
12291fi
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12293$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12294if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12295 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12296else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12298$as_echo_n "checking for dld_link in -ldld... " >&6; }
12299if ${ac_cv_lib_dld_dld_link+:} false; then :
12300 $as_echo_n "(cached) " >&6
12301else
12302 ac_check_lib_save_LIBS=$LIBS
12303LIBS="-ldld $LIBS"
12304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h. */
12306
12307/* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12310#ifdef __cplusplus
12311extern "C"
12312#endif
12313char dld_link ();
12314int
12315main ()
12316{
12317return dld_link ();
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322if ac_fn_c_try_link "$LINENO"; then :
12323 ac_cv_lib_dld_dld_link=yes
12324else
12325 ac_cv_lib_dld_dld_link=no
12326fi
12327rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329LIBS=$ac_check_lib_save_LIBS
12330fi
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12332$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12333if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12334 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12335fi
12336
12337
12338fi
12339
12340
12341fi
12342
12343
12344fi
12345
12346
12347fi
12348
12349
12350fi
12351
12352 ;;
12353 esac
12354
12355 if test no = "$lt_cv_dlopen"; then
12356 enable_dlopen=no
12357 else
12358 enable_dlopen=yes
12359 fi
12360
12361 case $lt_cv_dlopen in
12362 dlopen)
12363 save_CPPFLAGS=$CPPFLAGS
12364 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12365
12366 save_LDFLAGS=$LDFLAGS
12367 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12368
12369 save_LIBS=$LIBS
12370 LIBS="$lt_cv_dlopen_libs $LIBS"
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12373$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12374if ${lt_cv_dlopen_self+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376else
12377 if test yes = "$cross_compiling"; then :
12378 lt_cv_dlopen_self=cross
12379else
12380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12381 lt_status=$lt_dlunknown
12382 cat > conftest.$ac_ext <<_LT_EOF
12383#line $LINENO "configure"
12384#include "confdefs.h"
12385
12386#if HAVE_DLFCN_H
12387#include <dlfcn.h>
12388#endif
12389
12390#include <stdio.h>
12391
12392#ifdef RTLD_GLOBAL
12393# define LT_DLGLOBAL RTLD_GLOBAL
12394#else
12395# ifdef DL_GLOBAL
12396# define LT_DLGLOBAL DL_GLOBAL
12397# else
12398# define LT_DLGLOBAL 0
12399# endif
12400#endif
12401
12402/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12403 find out it does not work in some platform. */
12404#ifndef LT_DLLAZY_OR_NOW
12405# ifdef RTLD_LAZY
12406# define LT_DLLAZY_OR_NOW RTLD_LAZY
12407# else
12408# ifdef DL_LAZY
12409# define LT_DLLAZY_OR_NOW DL_LAZY
12410# else
12411# ifdef RTLD_NOW
12412# define LT_DLLAZY_OR_NOW RTLD_NOW
12413# else
12414# ifdef DL_NOW
12415# define LT_DLLAZY_OR_NOW DL_NOW
12416# else
12417# define LT_DLLAZY_OR_NOW 0
12418# endif
12419# endif
12420# endif
12421# endif
12422#endif
12423
12424/* When -fvisibility=hidden is used, assume the code has been annotated
12425 correspondingly for the symbols needed. */
12426#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12427int fnord () __attribute__((visibility("default")));
12428#endif
12429
12430int fnord () { return 42; }
12431int main ()
12432{
12433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434 int status = $lt_dlunknown;
12435
12436 if (self)
12437 {
12438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12439 else
12440 {
12441 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12442 else puts (dlerror ());
12443 }
12444 /* dlclose (self); */
12445 }
12446 else
12447 puts (dlerror ());
12448
12449 return status;
12450}
12451_LT_EOF
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12453 (eval $ac_link) 2>&5
12454 ac_status=$?
12455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12457 (./conftest; exit; ) >&5 2>/dev/null
12458 lt_status=$?
12459 case x$lt_status in
12460 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12461 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12462 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12463 esac
12464 else :
12465 # compilation failed
12466 lt_cv_dlopen_self=no
12467 fi
12468fi
12469rm -fr conftest*
12470
12471
12472fi
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12474$as_echo "$lt_cv_dlopen_self" >&6; }
12475
12476 if test yes = "$lt_cv_dlopen_self"; then
12477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12479$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12480if ${lt_cv_dlopen_self_static+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482else
12483 if test yes = "$cross_compiling"; then :
12484 lt_cv_dlopen_self_static=cross
12485else
12486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12487 lt_status=$lt_dlunknown
12488 cat > conftest.$ac_ext <<_LT_EOF
12489#line $LINENO "configure"
12490#include "confdefs.h"
12491
12492#if HAVE_DLFCN_H
12493#include <dlfcn.h>
12494#endif
12495
12496#include <stdio.h>
12497
12498#ifdef RTLD_GLOBAL
12499# define LT_DLGLOBAL RTLD_GLOBAL
12500#else
12501# ifdef DL_GLOBAL
12502# define LT_DLGLOBAL DL_GLOBAL
12503# else
12504# define LT_DLGLOBAL 0
12505# endif
12506#endif
12507
12508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12509 find out it does not work in some platform. */
12510#ifndef LT_DLLAZY_OR_NOW
12511# ifdef RTLD_LAZY
12512# define LT_DLLAZY_OR_NOW RTLD_LAZY
12513# else
12514# ifdef DL_LAZY
12515# define LT_DLLAZY_OR_NOW DL_LAZY
12516# else
12517# ifdef RTLD_NOW
12518# define LT_DLLAZY_OR_NOW RTLD_NOW
12519# else
12520# ifdef DL_NOW
12521# define LT_DLLAZY_OR_NOW DL_NOW
12522# else
12523# define LT_DLLAZY_OR_NOW 0
12524# endif
12525# endif
12526# endif
12527# endif
12528#endif
12529
12530/* When -fvisibility=hidden is used, assume the code has been annotated
12531 correspondingly for the symbols needed. */
12532#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12533int fnord () __attribute__((visibility("default")));
12534#endif
12535
12536int fnord () { return 42; }
12537int main ()
12538{
12539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12540 int status = $lt_dlunknown;
12541
12542 if (self)
12543 {
12544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12545 else
12546 {
12547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12548 else puts (dlerror ());
12549 }
12550 /* dlclose (self); */
12551 }
12552 else
12553 puts (dlerror ());
12554
12555 return status;
12556}
12557_LT_EOF
12558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12559 (eval $ac_link) 2>&5
12560 ac_status=$?
12561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12563 (./conftest; exit; ) >&5 2>/dev/null
12564 lt_status=$?
12565 case x$lt_status in
12566 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12567 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12568 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12569 esac
12570 else :
12571 # compilation failed
12572 lt_cv_dlopen_self_static=no
12573 fi
12574fi
12575rm -fr conftest*
12576
12577
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12580$as_echo "$lt_cv_dlopen_self_static" >&6; }
12581 fi
12582
12583 CPPFLAGS=$save_CPPFLAGS
12584 LDFLAGS=$save_LDFLAGS
12585 LIBS=$save_LIBS
12586 ;;
12587 esac
12588
12589 case $lt_cv_dlopen_self in
12590 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12591 *) enable_dlopen_self=unknown ;;
12592 esac
12593
12594 case $lt_cv_dlopen_self_static in
12595 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12596 *) enable_dlopen_self_static=unknown ;;
12597 esac
12598fi
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616striplib=
12617old_striplib=
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12619$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12620if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12621 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12622 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624$as_echo "yes" >&6; }
12625else
12626# FIXME - insert some real tests, host_os isn't really good enough
12627 case $host_os in
12628 darwin*)
12629 if test -n "$STRIP"; then
12630 striplib="$STRIP -x"
12631 old_striplib="$STRIP -S"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633$as_echo "yes" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637 fi
12638 ;;
12639 *)
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641$as_echo "no" >&6; }
12642 ;;
12643 esac
12644fi
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657 # Report what library types will actually be built
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12659$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12661$as_echo "$can_build_shared" >&6; }
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12664$as_echo_n "checking whether to build shared libraries... " >&6; }
12665 test no = "$can_build_shared" && enable_shared=no
12666
12667 # On AIX, shared libraries and static libraries use the same namespace, and
12668 # are all built from PIC.
12669 case $host_os in
12670 aix3*)
12671 test yes = "$enable_shared" && enable_static=no
12672 if test -n "$RANLIB"; then
12673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12674 postinstall_cmds='$RANLIB $lib'
12675 fi
12676 ;;
12677
12678 aix[4-9]*)
12679 if test ia64 != "$host_cpu"; then
12680 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12681 yes,aix,yes) ;; # shared object as lib.so file only
12682 yes,svr4,*) ;; # shared object as lib.so archive member only
12683 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12684 esac
12685 fi
12686 ;;
12687 esac
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12689$as_echo "$enable_shared" >&6; }
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12692$as_echo_n "checking whether to build static libraries... " >&6; }
12693 # Make sure either enable_shared or enable_static is yes.
12694 test yes = "$enable_shared" || enable_static=yes
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12696$as_echo "$enable_static" >&6; }
12697
12698
12699
12700
12701fi
12702ac_ext=c
12703ac_cpp='$CPP $CPPFLAGS'
12704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706ac_compiler_gnu=$ac_cv_c_compiler_gnu
12707
12708CC=$lt_save_CC
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724 ac_config_commands="$ac_config_commands libtool"
12725
12726
12727
12728
12729# Only expand once:
12730
12731
12732
12733
12734
12735
12736
Haibo Huangfd5e81a2019-06-20 12:09:36 -070012737ac_ext=c
12738ac_cpp='$CPP $CPPFLAGS'
12739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12741ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742
Haibo Huangb16e0172018-07-02 14:40:07 -070012743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12744$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12745if ${ac_cv_prog_cc_c99+:} false; then :
12746 $as_echo_n "(cached) " >&6
12747else
12748 ac_cv_prog_cc_c99=no
12749ac_save_CC=$CC
12750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751/* end confdefs.h. */
12752#include <stdarg.h>
12753#include <stdbool.h>
12754#include <stdlib.h>
12755#include <wchar.h>
12756#include <stdio.h>
12757
12758// Check varargs macros. These examples are taken from C99 6.10.3.5.
12759#define debug(...) fprintf (stderr, __VA_ARGS__)
12760#define showlist(...) puts (#__VA_ARGS__)
12761#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12762static void
12763test_varargs_macros (void)
12764{
12765 int x = 1234;
12766 int y = 5678;
12767 debug ("Flag");
12768 debug ("X = %d\n", x);
12769 showlist (The first, second, and third items.);
12770 report (x>y, "x is %d but y is %d", x, y);
12771}
12772
12773// Check long long types.
12774#define BIG64 18446744073709551615ull
12775#define BIG32 4294967295ul
12776#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12777#if !BIG_OK
12778 your preprocessor is broken;
12779#endif
12780#if BIG_OK
12781#else
12782 your preprocessor is broken;
12783#endif
12784static long long int bignum = -9223372036854775807LL;
12785static unsigned long long int ubignum = BIG64;
12786
12787struct incomplete_array
12788{
12789 int datasize;
12790 double data[];
12791};
12792
12793struct named_init {
12794 int number;
12795 const wchar_t *name;
12796 double average;
12797};
12798
12799typedef const char *ccp;
12800
12801static inline int
12802test_restrict (ccp restrict text)
12803{
12804 // See if C++-style comments work.
12805 // Iterate through items via the restricted pointer.
12806 // Also check for declarations in for loops.
12807 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12808 continue;
12809 return 0;
12810}
12811
12812// Check varargs and va_copy.
12813static void
12814test_varargs (const char *format, ...)
12815{
12816 va_list args;
12817 va_start (args, format);
12818 va_list args_copy;
12819 va_copy (args_copy, args);
12820
12821 const char *str;
12822 int number;
12823 float fnumber;
12824
12825 while (*format)
12826 {
12827 switch (*format++)
12828 {
12829 case 's': // string
12830 str = va_arg (args_copy, const char *);
12831 break;
12832 case 'd': // int
12833 number = va_arg (args_copy, int);
12834 break;
12835 case 'f': // float
12836 fnumber = va_arg (args_copy, double);
12837 break;
12838 default:
12839 break;
12840 }
12841 }
12842 va_end (args_copy);
12843 va_end (args);
12844}
12845
12846int
12847main ()
12848{
12849
12850 // Check bool.
12851 _Bool success = false;
12852
12853 // Check restrict.
12854 if (test_restrict ("String literal") == 0)
12855 success = true;
12856 char *restrict newvar = "Another string";
12857
12858 // Check varargs.
12859 test_varargs ("s, d' f .", "string", 65, 34.234);
12860 test_varargs_macros ();
12861
12862 // Check flexible array members.
12863 struct incomplete_array *ia =
12864 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12865 ia->datasize = 10;
12866 for (int i = 0; i < ia->datasize; ++i)
12867 ia->data[i] = i * 1.234;
12868
12869 // Check named initializers.
12870 struct named_init ni = {
12871 .number = 34,
12872 .name = L"Test wide string",
12873 .average = 543.34343,
12874 };
12875
12876 ni.number = 58;
12877
12878 int dynamic_array[ni.number];
12879 dynamic_array[ni.number - 1] = 543;
12880
12881 // work around unused variable warnings
12882 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12883 || dynamic_array[ni.number - 1] != 543);
12884
12885 ;
12886 return 0;
12887}
12888_ACEOF
12889for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12890do
12891 CC="$ac_save_CC $ac_arg"
12892 if ac_fn_c_try_compile "$LINENO"; then :
12893 ac_cv_prog_cc_c99=$ac_arg
12894fi
12895rm -f core conftest.err conftest.$ac_objext
12896 test "x$ac_cv_prog_cc_c99" != "xno" && break
12897done
12898rm -f conftest.$ac_ext
12899CC=$ac_save_CC
12900
12901fi
12902# AC_CACHE_VAL
12903case "x$ac_cv_prog_cc_c99" in
12904 x)
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12906$as_echo "none needed" >&6; } ;;
12907 xno)
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12909$as_echo "unsupported" >&6; } ;;
12910 *)
12911 CC="$CC $ac_cv_prog_cc_c99"
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12913$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12914esac
12915if test "x$ac_cv_prog_cc_c99" != xno; then :
12916
12917fi
12918
12919
Haibo Huangfd5e81a2019-06-20 12:09:36 -070012920if test "$GCC" = yes; then :
12921
12922
12923
12924
12925for flag in -Wall -Wextra; do
12926 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12928$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12929if eval \${$as_CACHEVAR+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931else
12932
12933 ax_check_save_flags=$CFLAGS
12934 CFLAGS="$CFLAGS $flag"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h. */
12937
12938int
12939main ()
12940{
12941
12942 ;
12943 return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_compile "$LINENO"; then :
12947 eval "$as_CACHEVAR=yes"
12948else
12949 eval "$as_CACHEVAR=no"
12950fi
12951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952 CFLAGS=$ax_check_save_flags
12953fi
12954eval ac_res=\$$as_CACHEVAR
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12956$as_echo "$ac_res" >&6; }
12957if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12958
12959if ${CFLAGS+:} false; then :
12960
12961 case " $CFLAGS " in #(
12962 *" $flag "*) :
12963 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12964 (: CFLAGS already contains $flag) 2>&5
12965 ac_status=$?
12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967 test $ac_status = 0; } ;; #(
12968 *) :
12969
12970 as_fn_append CFLAGS " $flag"
12971 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12972 (: CFLAGS="$CFLAGS") 2>&5
12973 ac_status=$?
12974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975 test $ac_status = 0; }
12976 ;;
12977esac
12978
12979else
12980
12981 CFLAGS=$flag
12982 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12983 (: CFLAGS="$CFLAGS") 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12986 test $ac_status = 0; }
12987
12988fi
12989
12990else
12991 :
12992fi
12993
12994done
12995
12996
12997
12998
12999
13000for flag in -fexceptions; do
13001 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13003$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13004if eval \${$as_CACHEVAR+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006else
13007
13008 ax_check_save_flags=$CFLAGS
13009 CFLAGS="$CFLAGS $flag"
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011/* end confdefs.h. */
13012
13013int
13014main ()
13015{
13016
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021if ac_fn_c_try_compile "$LINENO"; then :
13022 eval "$as_CACHEVAR=yes"
13023else
13024 eval "$as_CACHEVAR=no"
13025fi
13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 CFLAGS=$ax_check_save_flags
13028fi
13029eval ac_res=\$$as_CACHEVAR
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13031$as_echo "$ac_res" >&6; }
13032if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13033
13034if ${CFLAGS+:} false; then :
13035
13036 case " $CFLAGS " in #(
13037 *" $flag "*) :
13038 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13039 (: CFLAGS already contains $flag) 2>&5
13040 ac_status=$?
13041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042 test $ac_status = 0; } ;; #(
13043 *) :
13044
13045 as_fn_append CFLAGS " $flag"
13046 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13047 (: CFLAGS="$CFLAGS") 2>&5
13048 ac_status=$?
13049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050 test $ac_status = 0; }
13051 ;;
13052esac
13053
13054else
13055
13056 CFLAGS=$flag
13057 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13058 (: CFLAGS="$CFLAGS") 2>&5
13059 ac_status=$?
13060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061 test $ac_status = 0; }
13062
13063fi
13064
13065else
13066 :
13067fi
13068
13069done
13070
13071
13072
13073
13074
13075for flag in -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes; do
13076 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13078$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13079if eval \${$as_CACHEVAR+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081else
13082
13083 ax_check_save_flags=$CFLAGS
13084 CFLAGS="$CFLAGS $flag"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h. */
13087
13088int
13089main ()
13090{
13091
13092 ;
13093 return 0;
13094}
13095_ACEOF
13096if ac_fn_c_try_compile "$LINENO"; then :
13097 eval "$as_CACHEVAR=yes"
13098else
13099 eval "$as_CACHEVAR=no"
13100fi
13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 CFLAGS=$ax_check_save_flags
13103fi
13104eval ac_res=\$$as_CACHEVAR
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13106$as_echo "$ac_res" >&6; }
13107if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13108
13109if ${CFLAGS+:} false; then :
13110
13111 case " $CFLAGS " in #(
13112 *" $flag "*) :
13113 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13114 (: CFLAGS already contains $flag) 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117 test $ac_status = 0; } ;; #(
13118 *) :
13119
13120 as_fn_append CFLAGS " $flag"
13121 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13122 (: CFLAGS="$CFLAGS") 2>&5
13123 ac_status=$?
13124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13125 test $ac_status = 0; }
13126 ;;
13127esac
13128
13129else
13130
13131 CFLAGS=$flag
13132 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13133 (: CFLAGS="$CFLAGS") 2>&5
13134 ac_status=$?
13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; }
13137
13138fi
13139
13140else
13141 :
13142fi
13143
13144done
13145
13146
13147
13148
13149
13150for flag in -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op; do
13151 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13153$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13154if eval \${$as_CACHEVAR+:} false; then :
13155 $as_echo_n "(cached) " >&6
13156else
13157
13158 ax_check_save_flags=$CFLAGS
13159 CFLAGS="$CFLAGS $flag"
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161/* end confdefs.h. */
13162
13163int
13164main ()
13165{
13166
13167 ;
13168 return 0;
13169}
13170_ACEOF
13171if ac_fn_c_try_compile "$LINENO"; then :
13172 eval "$as_CACHEVAR=yes"
13173else
13174 eval "$as_CACHEVAR=no"
13175fi
13176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 CFLAGS=$ax_check_save_flags
13178fi
13179eval ac_res=\$$as_CACHEVAR
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13181$as_echo "$ac_res" >&6; }
13182if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13183
13184if ${CFLAGS+:} false; then :
13185
13186 case " $CFLAGS " in #(
13187 *" $flag "*) :
13188 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13189 (: CFLAGS already contains $flag) 2>&5
13190 ac_status=$?
13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192 test $ac_status = 0; } ;; #(
13193 *) :
13194
13195 as_fn_append CFLAGS " $flag"
13196 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13197 (: CFLAGS="$CFLAGS") 2>&5
13198 ac_status=$?
13199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13200 test $ac_status = 0; }
13201 ;;
13202esac
13203
13204else
13205
13206 CFLAGS=$flag
13207 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13208 (: CFLAGS="$CFLAGS") 2>&5
13209 ac_status=$?
13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211 test $ac_status = 0; }
13212
13213fi
13214
13215else
13216 :
13217fi
13218
13219done
13220
13221
13222
13223
13224
13225for flag in -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion; do
13226 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13228$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13229if eval \${$as_CACHEVAR+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231else
13232
13233 ax_check_save_flags=$CFLAGS
13234 CFLAGS="$CFLAGS $flag"
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236/* end confdefs.h. */
13237
13238int
13239main ()
13240{
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246if ac_fn_c_try_compile "$LINENO"; then :
13247 eval "$as_CACHEVAR=yes"
13248else
13249 eval "$as_CACHEVAR=no"
13250fi
13251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252 CFLAGS=$ax_check_save_flags
13253fi
13254eval ac_res=\$$as_CACHEVAR
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13256$as_echo "$ac_res" >&6; }
13257if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13258
13259if ${CFLAGS+:} false; then :
13260
13261 case " $CFLAGS " in #(
13262 *" $flag "*) :
13263 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13264 (: CFLAGS already contains $flag) 2>&5
13265 ac_status=$?
13266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267 test $ac_status = 0; } ;; #(
13268 *) :
13269
13270 as_fn_append CFLAGS " $flag"
13271 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13272 (: CFLAGS="$CFLAGS") 2>&5
13273 ac_status=$?
13274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13275 test $ac_status = 0; }
13276 ;;
13277esac
13278
13279else
13280
13281 CFLAGS=$flag
13282 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13283 (: CFLAGS="$CFLAGS") 2>&5
13284 ac_status=$?
13285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286 test $ac_status = 0; }
13287
13288fi
13289
13290else
13291 :
13292fi
13293
13294done
13295
13296
13297
13298
13299
13300for flag in -Wshadow -Wformat=2 -Wmisleading-indentation; do
13301 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13303$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13304if eval \${$as_CACHEVAR+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306else
13307
13308 ax_check_save_flags=$CFLAGS
13309 CFLAGS="$CFLAGS $flag"
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311/* end confdefs.h. */
13312
13313int
13314main ()
13315{
13316
13317 ;
13318 return 0;
13319}
13320_ACEOF
13321if ac_fn_c_try_compile "$LINENO"; then :
13322 eval "$as_CACHEVAR=yes"
13323else
13324 eval "$as_CACHEVAR=no"
13325fi
13326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 CFLAGS=$ax_check_save_flags
13328fi
13329eval ac_res=\$$as_CACHEVAR
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13331$as_echo "$ac_res" >&6; }
13332if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13333
13334if ${CFLAGS+:} false; then :
13335
13336 case " $CFLAGS " in #(
13337 *" $flag "*) :
13338 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13339 (: CFLAGS already contains $flag) 2>&5
13340 ac_status=$?
13341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13342 test $ac_status = 0; } ;; #(
13343 *) :
13344
13345 as_fn_append CFLAGS " $flag"
13346 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13347 (: CFLAGS="$CFLAGS") 2>&5
13348 ac_status=$?
13349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13350 test $ac_status = 0; }
13351 ;;
13352esac
13353
13354else
13355
13356 CFLAGS=$flag
13357 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13358 (: CFLAGS="$CFLAGS") 2>&5
13359 ac_status=$?
13360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13361 test $ac_status = 0; }
13362
13363fi
13364
13365else
13366 :
13367fi
13368
13369done
13370
13371fi
13372
13373ac_ext=cpp
13374ac_cpp='$CXXCPP $CPPFLAGS'
13375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13378
Haibo Huangb16e0172018-07-02 14:40:07 -070013379ac_ext=cpp
13380ac_cpp='$CXXCPP $CPPFLAGS'
13381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13384if test -z "$CXX"; then
13385 if test -n "$CCC"; then
13386 CXX=$CCC
13387 else
13388 if test -n "$ac_tool_prefix"; then
13389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13390 do
13391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394$as_echo_n "checking for $ac_word... " >&6; }
13395if ${ac_cv_prog_CXX+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397else
13398 if test -n "$CXX"; then
13399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13400else
13401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402for as_dir in $PATH
13403do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13410 break 2
13411 fi
13412done
13413 done
13414IFS=$as_save_IFS
13415
13416fi
13417fi
13418CXX=$ac_cv_prog_CXX
13419if test -n "$CXX"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13421$as_echo "$CXX" >&6; }
13422else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
13425fi
13426
13427
13428 test -n "$CXX" && break
13429 done
13430fi
13431if test -z "$CXX"; then
13432 ac_ct_CXX=$CXX
13433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13434do
13435 # Extract the first word of "$ac_prog", so it can be a program name with args.
13436set dummy $ac_prog; ac_word=$2
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438$as_echo_n "checking for $ac_word... " >&6; }
13439if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441else
13442 if test -n "$ac_ct_CXX"; then
13443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13444else
13445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446for as_dir in $PATH
13447do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452 ac_cv_prog_ac_ct_CXX="$ac_prog"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13455 fi
13456done
13457 done
13458IFS=$as_save_IFS
13459
13460fi
13461fi
13462ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13463if test -n "$ac_ct_CXX"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13465$as_echo "$ac_ct_CXX" >&6; }
13466else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468$as_echo "no" >&6; }
13469fi
13470
13471
13472 test -n "$ac_ct_CXX" && break
13473done
13474
13475 if test "x$ac_ct_CXX" = x; then
13476 CXX="g++"
13477 else
13478 case $cross_compiling:$ac_tool_warned in
13479yes:)
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13482ac_tool_warned=yes ;;
13483esac
13484 CXX=$ac_ct_CXX
13485 fi
13486fi
13487
13488 fi
13489fi
13490# Provide some information about the compiler.
13491$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13492set X $ac_compile
13493ac_compiler=$2
13494for ac_option in --version -v -V -qversion; do
13495 { { ac_try="$ac_compiler $ac_option >&5"
13496case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499esac
13500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13501$as_echo "$ac_try_echo"; } >&5
13502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13503 ac_status=$?
13504 if test -s conftest.err; then
13505 sed '10a\
13506... rest of stderr output deleted ...
13507 10q' conftest.err >conftest.er1
13508 cat conftest.er1 >&5
13509 fi
13510 rm -f conftest.er1 conftest.err
13511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13512 test $ac_status = 0; }
13513done
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13516$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13517if ${ac_cv_cxx_compiler_gnu+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h. */
13522
13523int
13524main ()
13525{
13526#ifndef __GNUC__
13527 choke me
13528#endif
13529
13530 ;
13531 return 0;
13532}
13533_ACEOF
13534if ac_fn_cxx_try_compile "$LINENO"; then :
13535 ac_compiler_gnu=yes
13536else
13537 ac_compiler_gnu=no
13538fi
13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13541
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13544$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13545if test $ac_compiler_gnu = yes; then
13546 GXX=yes
13547else
13548 GXX=
13549fi
13550ac_test_CXXFLAGS=${CXXFLAGS+set}
13551ac_save_CXXFLAGS=$CXXFLAGS
13552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13553$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13554if ${ac_cv_prog_cxx_g+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556else
13557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13558 ac_cxx_werror_flag=yes
13559 ac_cv_prog_cxx_g=no
13560 CXXFLAGS="-g"
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h. */
13563
13564int
13565main ()
13566{
13567
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572if ac_fn_cxx_try_compile "$LINENO"; then :
13573 ac_cv_prog_cxx_g=yes
13574else
13575 CXXFLAGS=""
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577/* end confdefs.h. */
13578
13579int
13580main ()
13581{
13582
13583 ;
13584 return 0;
13585}
13586_ACEOF
13587if ac_fn_cxx_try_compile "$LINENO"; then :
13588
13589else
13590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13591 CXXFLAGS="-g"
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h. */
13594
13595int
13596main ()
13597{
13598
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603if ac_fn_cxx_try_compile "$LINENO"; then :
13604 ac_cv_prog_cxx_g=yes
13605fi
13606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13607fi
13608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609fi
13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13612fi
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13614$as_echo "$ac_cv_prog_cxx_g" >&6; }
13615if test "$ac_test_CXXFLAGS" = set; then
13616 CXXFLAGS=$ac_save_CXXFLAGS
13617elif test $ac_cv_prog_cxx_g = yes; then
13618 if test "$GXX" = yes; then
13619 CXXFLAGS="-g -O2"
13620 else
13621 CXXFLAGS="-g"
13622 fi
13623else
13624 if test "$GXX" = yes; then
13625 CXXFLAGS="-O2"
13626 else
13627 CXXFLAGS=
13628 fi
13629fi
Haibo Huangfd5e81a2019-06-20 12:09:36 -070013630ac_ext=cpp
13631ac_cpp='$CXXCPP $CPPFLAGS'
13632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Haibo Huangb16e0172018-07-02 14:40:07 -070013635
13636depcc="$CXX" am_compiler_list=
13637
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13639$as_echo_n "checking dependency style of $depcc... " >&6; }
13640if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642else
13643 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13644 # We make a subdir and do the tests there. Otherwise we can end up
13645 # making bogus files that we don't know about and never remove. For
13646 # instance it was reported that on HP-UX the gcc test will end up
13647 # making a dummy file named 'D' -- because '-MD' means "put the output
13648 # in D".
13649 rm -rf conftest.dir
13650 mkdir conftest.dir
13651 # Copy depcomp to subdir because otherwise we won't find it if we're
13652 # using a relative directory.
13653 cp "$am_depcomp" conftest.dir
13654 cd conftest.dir
13655 # We will build objects and dependencies in a subdirectory because
13656 # it helps to detect inapplicable dependency modes. For instance
13657 # both Tru64's cc and ICC support -MD to output dependencies as a
13658 # side effect of compilation, but ICC will put the dependencies in
13659 # the current directory while Tru64 will put them in the object
13660 # directory.
13661 mkdir sub
13662
13663 am_cv_CXX_dependencies_compiler_type=none
13664 if test "$am_compiler_list" = ""; then
13665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13666 fi
13667 am__universal=false
13668 case " $depcc " in #(
13669 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13670 esac
13671
13672 for depmode in $am_compiler_list; do
13673 # Setup a source with many dependencies, because some compilers
13674 # like to wrap large dependency lists on column 80 (with \), and
13675 # we should not choose a depcomp mode which is confused by this.
13676 #
13677 # We need to recreate these files for each test, as the compiler may
13678 # overwrite some of them when testing with obscure command lines.
13679 # This happens at least with the AIX C compiler.
13680 : > sub/conftest.c
13681 for i in 1 2 3 4 5 6; do
13682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13683 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13684 # Solaris 10 /bin/sh.
13685 echo '/* dummy */' > sub/conftst$i.h
13686 done
13687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13688
13689 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13690 # mode. It turns out that the SunPro C++ compiler does not properly
13691 # handle '-M -o', and we need to detect this. Also, some Intel
13692 # versions had trouble with output in subdirs.
13693 am__obj=sub/conftest.${OBJEXT-o}
13694 am__minus_obj="-o $am__obj"
13695 case $depmode in
13696 gcc)
13697 # This depmode causes a compiler race in universal mode.
13698 test "$am__universal" = false || continue
13699 ;;
13700 nosideeffect)
13701 # After this tag, mechanisms are not by side-effect, so they'll
13702 # only be used when explicitly requested.
13703 if test "x$enable_dependency_tracking" = xyes; then
13704 continue
13705 else
13706 break
13707 fi
13708 ;;
13709 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13710 # This compiler won't grok '-c -o', but also, the minuso test has
13711 # not run yet. These depmodes are late enough in the game, and
13712 # so weak that their functioning should not be impacted.
13713 am__obj=conftest.${OBJEXT-o}
13714 am__minus_obj=
13715 ;;
13716 none) break ;;
13717 esac
13718 if depmode=$depmode \
13719 source=sub/conftest.c object=$am__obj \
13720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13721 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13722 >/dev/null 2>conftest.err &&
13723 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13724 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13725 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13726 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13727 # icc doesn't choke on unknown options, it will just issue warnings
13728 # or remarks (even with -Werror). So we grep stderr for any message
13729 # that says an option was ignored or not supported.
13730 # When given -MP, icc 7.0 and 7.1 complain thusly:
13731 # icc: Command line warning: ignoring option '-M'; no argument required
13732 # The diagnosis changed in icc 8.0:
13733 # icc: Command line remark: option '-MP' not supported
13734 if (grep 'ignoring option' conftest.err ||
13735 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13736 am_cv_CXX_dependencies_compiler_type=$depmode
13737 break
13738 fi
13739 fi
13740 done
13741
13742 cd ..
13743 rm -rf conftest.dir
13744else
13745 am_cv_CXX_dependencies_compiler_type=none
13746fi
13747
13748fi
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13750$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13751CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13752
13753 if
13754 test "x$enable_dependency_tracking" != xno \
13755 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13756 am__fastdepCXX_TRUE=
13757 am__fastdepCXX_FALSE='#'
13758else
13759 am__fastdepCXX_TRUE='#'
13760 am__fastdepCXX_FALSE=
13761fi
13762
13763
13764
13765
13766func_stripname_cnf ()
13767{
13768 case $2 in
13769 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13770 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13771 esac
13772} # func_stripname_cnf
13773
13774 if test -n "$CXX" && ( test no != "$CXX" &&
13775 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13776 (test g++ != "$CXX"))); then
13777 ac_ext=cpp
13778ac_cpp='$CXXCPP $CPPFLAGS'
13779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13783$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13784if test -z "$CXXCPP"; then
13785 if ${ac_cv_prog_CXXCPP+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787else
13788 # Double quotes because CXXCPP needs to be expanded
13789 for CXXCPP in "$CXX -E" "/lib/cpp"
13790 do
13791 ac_preproc_ok=false
13792for ac_cxx_preproc_warn_flag in '' yes
13793do
13794 # Use a header file that comes with gcc, so configuring glibc
13795 # with a fresh cross-compiler works.
13796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797 # <limits.h> exists even on freestanding compilers.
13798 # On the NeXT, cc -E runs the code through the compiler's parser,
13799 # not just through cpp. "Syntax error" is here to catch this case.
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801/* end confdefs.h. */
13802#ifdef __STDC__
13803# include <limits.h>
13804#else
13805# include <assert.h>
13806#endif
13807 Syntax error
13808_ACEOF
13809if ac_fn_cxx_try_cpp "$LINENO"; then :
13810
13811else
13812 # Broken: fails on valid input.
13813continue
13814fi
13815rm -f conftest.err conftest.i conftest.$ac_ext
13816
13817 # OK, works on sane cases. Now check whether nonexistent headers
13818 # can be detected and how.
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820/* end confdefs.h. */
13821#include <ac_nonexistent.h>
13822_ACEOF
13823if ac_fn_cxx_try_cpp "$LINENO"; then :
13824 # Broken: success on invalid input.
13825continue
13826else
13827 # Passes both tests.
13828ac_preproc_ok=:
13829break
13830fi
13831rm -f conftest.err conftest.i conftest.$ac_ext
13832
13833done
13834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13835rm -f conftest.i conftest.err conftest.$ac_ext
13836if $ac_preproc_ok; then :
13837 break
13838fi
13839
13840 done
13841 ac_cv_prog_CXXCPP=$CXXCPP
13842
13843fi
13844 CXXCPP=$ac_cv_prog_CXXCPP
13845else
13846 ac_cv_prog_CXXCPP=$CXXCPP
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13849$as_echo "$CXXCPP" >&6; }
13850ac_preproc_ok=false
13851for ac_cxx_preproc_warn_flag in '' yes
13852do
13853 # Use a header file that comes with gcc, so configuring glibc
13854 # with a fresh cross-compiler works.
13855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13856 # <limits.h> exists even on freestanding compilers.
13857 # On the NeXT, cc -E runs the code through the compiler's parser,
13858 # not just through cpp. "Syntax error" is here to catch this case.
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860/* end confdefs.h. */
13861#ifdef __STDC__
13862# include <limits.h>
13863#else
13864# include <assert.h>
13865#endif
13866 Syntax error
13867_ACEOF
13868if ac_fn_cxx_try_cpp "$LINENO"; then :
13869
13870else
13871 # Broken: fails on valid input.
13872continue
13873fi
13874rm -f conftest.err conftest.i conftest.$ac_ext
13875
13876 # OK, works on sane cases. Now check whether nonexistent headers
13877 # can be detected and how.
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h. */
13880#include <ac_nonexistent.h>
13881_ACEOF
13882if ac_fn_cxx_try_cpp "$LINENO"; then :
13883 # Broken: success on invalid input.
13884continue
13885else
13886 # Passes both tests.
13887ac_preproc_ok=:
13888break
13889fi
13890rm -f conftest.err conftest.i conftest.$ac_ext
13891
13892done
13893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13894rm -f conftest.i conftest.err conftest.$ac_ext
13895if $ac_preproc_ok; then :
13896
13897else
13898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13900as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13901See \`config.log' for more details" "$LINENO" 5; }
13902fi
13903
Haibo Huangfd5e81a2019-06-20 12:09:36 -070013904ac_ext=cpp
13905ac_cpp='$CXXCPP $CPPFLAGS'
13906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Haibo Huangb16e0172018-07-02 14:40:07 -070013909
13910else
13911 _lt_caught_CXX_error=yes
13912fi
13913
13914ac_ext=cpp
13915ac_cpp='$CXXCPP $CPPFLAGS'
13916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13919
13920archive_cmds_need_lc_CXX=no
13921allow_undefined_flag_CXX=
13922always_export_symbols_CXX=no
13923archive_expsym_cmds_CXX=
13924compiler_needs_object_CXX=no
13925export_dynamic_flag_spec_CXX=
13926hardcode_direct_CXX=no
13927hardcode_direct_absolute_CXX=no
13928hardcode_libdir_flag_spec_CXX=
13929hardcode_libdir_separator_CXX=
13930hardcode_minus_L_CXX=no
13931hardcode_shlibpath_var_CXX=unsupported
13932hardcode_automatic_CXX=no
13933inherit_rpath_CXX=no
13934module_cmds_CXX=
13935module_expsym_cmds_CXX=
13936link_all_deplibs_CXX=unknown
13937old_archive_cmds_CXX=$old_archive_cmds
13938reload_flag_CXX=$reload_flag
13939reload_cmds_CXX=$reload_cmds
13940no_undefined_flag_CXX=
13941whole_archive_flag_spec_CXX=
13942enable_shared_with_static_runtimes_CXX=no
13943
13944# Source file extension for C++ test sources.
13945ac_ext=cpp
13946
13947# Object file extension for compiled C++ test sources.
13948objext=o
13949objext_CXX=$objext
13950
13951# No sense in running all these tests if we already determined that
13952# the CXX compiler isn't working. Some variables (like enable_shared)
13953# are currently assumed to apply to all compilers on this platform,
13954# and will be corrupted by setting them based on a non-working compiler.
13955if test yes != "$_lt_caught_CXX_error"; then
13956 # Code to be used in simple compile tests
13957 lt_simple_compile_test_code="int some_variable = 0;"
13958
13959 # Code to be used in simple link tests
13960 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13961
13962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13963
13964
13965
13966
13967
13968
13969# If no C compiler was specified, use CC.
13970LTCC=${LTCC-"$CC"}
13971
13972# If no C compiler flags were specified, use CFLAGS.
13973LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13974
13975# Allow CC to be a program name with arguments.
13976compiler=$CC
13977
13978
13979 # save warnings/boilerplate of simple test code
13980 ac_outfile=conftest.$ac_objext
13981echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13982eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13983_lt_compiler_boilerplate=`cat conftest.err`
13984$RM conftest*
13985
13986 ac_outfile=conftest.$ac_objext
13987echo "$lt_simple_link_test_code" >conftest.$ac_ext
13988eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13989_lt_linker_boilerplate=`cat conftest.err`
13990$RM -r conftest*
13991
13992
13993 # Allow CC to be a program name with arguments.
13994 lt_save_CC=$CC
13995 lt_save_CFLAGS=$CFLAGS
13996 lt_save_LD=$LD
13997 lt_save_GCC=$GCC
13998 GCC=$GXX
13999 lt_save_with_gnu_ld=$with_gnu_ld
14000 lt_save_path_LD=$lt_cv_path_LD
14001 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14002 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14003 else
14004 $as_unset lt_cv_prog_gnu_ld
14005 fi
14006 if test -n "${lt_cv_path_LDCXX+set}"; then
14007 lt_cv_path_LD=$lt_cv_path_LDCXX
14008 else
14009 $as_unset lt_cv_path_LD
14010 fi
14011 test -z "${LDCXX+set}" || LD=$LDCXX
14012 CC=${CXX-"c++"}
14013 CFLAGS=$CXXFLAGS
14014 compiler=$CC
14015 compiler_CXX=$CC
14016 func_cc_basename $compiler
14017cc_basename=$func_cc_basename_result
14018
14019
14020 if test -n "$compiler"; then
14021 # We don't want -fno-exception when compiling C++ code, so set the
14022 # no_builtin_flag separately
14023 if test yes = "$GXX"; then
14024 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14025 else
14026 lt_prog_compiler_no_builtin_flag_CXX=
14027 fi
14028
14029 if test yes = "$GXX"; then
14030 # Set up default GNU C++ configuration
14031
14032
14033
14034# Check whether --with-gnu-ld was given.
14035if test "${with_gnu_ld+set}" = set; then :
14036 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14037else
14038 with_gnu_ld=no
14039fi
14040
14041ac_prog=ld
14042if test yes = "$GCC"; then
14043 # Check if gcc -print-prog-name=ld gives a path.
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14045$as_echo_n "checking for ld used by $CC... " >&6; }
14046 case $host in
14047 *-*-mingw*)
14048 # gcc leaves a trailing carriage return, which upsets mingw
14049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14050 *)
14051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14052 esac
14053 case $ac_prog in
14054 # Accept absolute paths.
14055 [\\/]* | ?:[\\/]*)
14056 re_direlt='/[^/][^/]*/\.\./'
14057 # Canonicalize the pathname of ld
14058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14061 done
14062 test -z "$LD" && LD=$ac_prog
14063 ;;
14064 "")
14065 # If it fails, then pretend we aren't using GCC.
14066 ac_prog=ld
14067 ;;
14068 *)
14069 # If it is relative, then search for the first ld in PATH.
14070 with_gnu_ld=unknown
14071 ;;
14072 esac
14073elif test yes = "$with_gnu_ld"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14075$as_echo_n "checking for GNU ld... " >&6; }
14076else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14078$as_echo_n "checking for non-GNU ld... " >&6; }
14079fi
14080if ${lt_cv_path_LD+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082else
14083 if test -z "$LD"; then
14084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14085 for ac_dir in $PATH; do
14086 IFS=$lt_save_ifs
14087 test -z "$ac_dir" && ac_dir=.
14088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14089 lt_cv_path_LD=$ac_dir/$ac_prog
14090 # Check to see if the program is GNU ld. I'd rather use --version,
14091 # but apparently some variants of GNU ld only accept -v.
14092 # Break only if it was the GNU/non-GNU ld that we prefer.
14093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14094 *GNU* | *'with BFD'*)
14095 test no != "$with_gnu_ld" && break
14096 ;;
14097 *)
14098 test yes != "$with_gnu_ld" && break
14099 ;;
14100 esac
14101 fi
14102 done
14103 IFS=$lt_save_ifs
14104else
14105 lt_cv_path_LD=$LD # Let the user override the test with a path.
14106fi
14107fi
14108
14109LD=$lt_cv_path_LD
14110if test -n "$LD"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14112$as_echo "$LD" >&6; }
14113else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115$as_echo "no" >&6; }
14116fi
14117test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14119$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14120if ${lt_cv_prog_gnu_ld+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122else
14123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14124case `$LD -v 2>&1 </dev/null` in
14125*GNU* | *'with BFD'*)
14126 lt_cv_prog_gnu_ld=yes
14127 ;;
14128*)
14129 lt_cv_prog_gnu_ld=no
14130 ;;
14131esac
14132fi
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14134$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14135with_gnu_ld=$lt_cv_prog_gnu_ld
14136
14137
14138
14139
14140
14141
14142
14143 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14144 # archiving commands below assume that GNU ld is being used.
14145 if test yes = "$with_gnu_ld"; then
14146 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14147 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'
14148
14149 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14150 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14151
14152 # If archive_cmds runs LD, not CC, wlarc should be empty
14153 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14154 # investigate it a little bit more. (MM)
14155 wlarc='$wl'
14156
14157 # ancient GNU ld didn't support --whole-archive et. al.
14158 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14159 $GREP 'no-whole-archive' > /dev/null; then
14160 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14161 else
14162 whole_archive_flag_spec_CXX=
14163 fi
14164 else
14165 with_gnu_ld=no
14166 wlarc=
14167
14168 # A generic and very simple default shared library creation
14169 # command for GNU C++ for the case where it uses the native
14170 # linker, instead of GNU ld. If possible, this setting should
14171 # overridden to take advantage of the native linker features on
14172 # the platform it is being used on.
14173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14174 fi
14175
14176 # Commands to make compiler produce verbose output that lists
14177 # what "hidden" libraries, object files and flags are used when
14178 # linking a shared library.
14179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14180
14181 else
14182 GXX=no
14183 with_gnu_ld=no
14184 wlarc=
14185 fi
14186
14187 # PORTME: fill in a description of your system's C++ link characteristics
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14189$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14190 ld_shlibs_CXX=yes
14191 case $host_os in
14192 aix3*)
14193 # FIXME: insert proper C++ library support
14194 ld_shlibs_CXX=no
14195 ;;
14196 aix[4-9]*)
14197 if test ia64 = "$host_cpu"; then
14198 # On IA64, the linker does run time linking by default, so we don't
14199 # have to do anything special.
14200 aix_use_runtimelinking=no
14201 exp_sym_flag='-Bexport'
14202 no_entry_flag=
14203 else
14204 aix_use_runtimelinking=no
14205
14206 # Test if we are trying to use run time linking or normal
14207 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14208 # have runtime linking enabled, and use it for executables.
14209 # For shared libraries, we enable/disable runtime linking
14210 # depending on the kind of the shared library created -
14211 # when "with_aix_soname,aix_use_runtimelinking" is:
14212 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14213 # "aix,yes" lib.so shared, rtl:yes, for executables
14214 # lib.a static archive
14215 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14216 # lib.a(lib.so.V) shared, rtl:no, for executables
14217 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14218 # lib.a(lib.so.V) shared, rtl:no
14219 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14220 # lib.a static archive
14221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14222 for ld_flag in $LDFLAGS; do
14223 case $ld_flag in
14224 *-brtl*)
14225 aix_use_runtimelinking=yes
14226 break
14227 ;;
14228 esac
14229 done
14230 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14231 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14232 # so we don't have lib.a shared libs to link our executables.
14233 # We have to force runtime linking in this case.
14234 aix_use_runtimelinking=yes
14235 LDFLAGS="$LDFLAGS -Wl,-brtl"
14236 fi
14237 ;;
14238 esac
14239
14240 exp_sym_flag='-bexport'
14241 no_entry_flag='-bnoentry'
14242 fi
14243
14244 # When large executables or shared objects are built, AIX ld can
14245 # have problems creating the table of contents. If linking a library
14246 # or program results in "error TOC overflow" add -mminimal-toc to
14247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14249
14250 archive_cmds_CXX=''
14251 hardcode_direct_CXX=yes
14252 hardcode_direct_absolute_CXX=yes
14253 hardcode_libdir_separator_CXX=':'
14254 link_all_deplibs_CXX=yes
14255 file_list_spec_CXX='$wl-f,'
14256 case $with_aix_soname,$aix_use_runtimelinking in
14257 aix,*) ;; # no import file
14258 svr4,* | *,yes) # use import file
14259 # The Import File defines what to hardcode.
14260 hardcode_direct_CXX=no
14261 hardcode_direct_absolute_CXX=no
14262 ;;
14263 esac
14264
14265 if test yes = "$GXX"; then
14266 case $host_os in aix4.[012]|aix4.[012].*)
14267 # We only want to do this on AIX 4.2 and lower, the check
14268 # below for broken collect2 doesn't work under 4.3+
14269 collect2name=`$CC -print-prog-name=collect2`
14270 if test -f "$collect2name" &&
14271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14272 then
14273 # We have reworked collect2
14274 :
14275 else
14276 # We have old collect2
14277 hardcode_direct_CXX=unsupported
14278 # It fails to find uninstalled libraries when the uninstalled
14279 # path is not listed in the libpath. Setting hardcode_minus_L
14280 # to unsupported forces relinking
14281 hardcode_minus_L_CXX=yes
14282 hardcode_libdir_flag_spec_CXX='-L$libdir'
14283 hardcode_libdir_separator_CXX=
14284 fi
14285 esac
14286 shared_flag='-shared'
14287 if test yes = "$aix_use_runtimelinking"; then
14288 shared_flag=$shared_flag' $wl-G'
14289 fi
14290 # Need to ensure runtime linking is disabled for the traditional
14291 # shared library, or the linker may eventually find shared libraries
14292 # /with/ Import File - we do not want to mix them.
14293 shared_flag_aix='-shared'
14294 shared_flag_svr4='-shared $wl-G'
14295 else
14296 # not using gcc
14297 if test ia64 = "$host_cpu"; then
14298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14299 # chokes on -Wl,-G. The following line is correct:
14300 shared_flag='-G'
14301 else
14302 if test yes = "$aix_use_runtimelinking"; then
14303 shared_flag='$wl-G'
14304 else
14305 shared_flag='$wl-bM:SRE'
14306 fi
14307 shared_flag_aix='$wl-bM:SRE'
14308 shared_flag_svr4='$wl-G'
14309 fi
14310 fi
14311
14312 export_dynamic_flag_spec_CXX='$wl-bexpall'
14313 # It seems that -bexpall does not export symbols beginning with
14314 # underscore (_), so it is better to generate a list of symbols to
14315 # export.
14316 always_export_symbols_CXX=yes
14317 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14318 # Warning - without using the other runtime loading flags (-brtl),
14319 # -berok will link without error, but may produce a broken library.
14320 # The "-G" linker flag allows undefined symbols.
14321 no_undefined_flag_CXX='-bernotok'
14322 # Determine the default libpath from the value encoded in an empty
14323 # executable.
14324 if test set = "${lt_cv_aix_libpath+set}"; then
14325 aix_libpath=$lt_cv_aix_libpath
14326else
14327 if ${lt_cv_aix_libpath__CXX+:} false; then :
14328 $as_echo_n "(cached) " >&6
14329else
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331/* end confdefs.h. */
14332
14333int
14334main ()
14335{
14336
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341if ac_fn_cxx_try_link "$LINENO"; then :
14342
14343 lt_aix_libpath_sed='
14344 /Import File Strings/,/^$/ {
14345 /^0/ {
14346 s/^0 *\([^ ]*\) *$/\1/
14347 p
14348 }
14349 }'
14350 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14351 # Check for a 64-bit object if we didn't find anything.
14352 if test -z "$lt_cv_aix_libpath__CXX"; then
14353 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14354 fi
14355fi
14356rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 if test -z "$lt_cv_aix_libpath__CXX"; then
14359 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14360 fi
14361
14362fi
14363
14364 aix_libpath=$lt_cv_aix_libpath__CXX
14365fi
14366
14367 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14368
14369 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14370 else
14371 if test ia64 = "$host_cpu"; then
14372 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14373 allow_undefined_flag_CXX="-z nodefs"
14374 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"
14375 else
14376 # Determine the default libpath from the value encoded in an
14377 # empty executable.
14378 if test set = "${lt_cv_aix_libpath+set}"; then
14379 aix_libpath=$lt_cv_aix_libpath
14380else
14381 if ${lt_cv_aix_libpath__CXX+:} false; then :
14382 $as_echo_n "(cached) " >&6
14383else
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385/* end confdefs.h. */
14386
14387int
14388main ()
14389{
14390
14391 ;
14392 return 0;
14393}
14394_ACEOF
14395if ac_fn_cxx_try_link "$LINENO"; then :
14396
14397 lt_aix_libpath_sed='
14398 /Import File Strings/,/^$/ {
14399 /^0/ {
14400 s/^0 *\([^ ]*\) *$/\1/
14401 p
14402 }
14403 }'
14404 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14405 # Check for a 64-bit object if we didn't find anything.
14406 if test -z "$lt_cv_aix_libpath__CXX"; then
14407 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14408 fi
14409fi
14410rm -f core conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14412 if test -z "$lt_cv_aix_libpath__CXX"; then
14413 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14414 fi
14415
14416fi
14417
14418 aix_libpath=$lt_cv_aix_libpath__CXX
14419fi
14420
14421 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14422 # Warning - without using the other run time loading flags,
14423 # -berok will link without error, but may produce a broken library.
14424 no_undefined_flag_CXX=' $wl-bernotok'
14425 allow_undefined_flag_CXX=' $wl-berok'
14426 if test yes = "$with_gnu_ld"; then
14427 # We only use this code for GNU lds that support --whole-archive.
14428 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14429 else
14430 # Exported symbols can be pulled into shared objects from archives
14431 whole_archive_flag_spec_CXX='$convenience'
14432 fi
14433 archive_cmds_need_lc_CXX=yes
14434 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14435 # -brtl affects multiple linker settings, -berok does not and is overridden later
14436 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14437 if test svr4 != "$with_aix_soname"; then
14438 # This is similar to how AIX traditionally builds its shared
14439 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14440 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14441 fi
14442 if test aix != "$with_aix_soname"; then
14443 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14444 else
14445 # used by -dlpreopen to get the symbols
14446 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14447 fi
14448 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14449 fi
14450 fi
14451 ;;
14452
14453 beos*)
14454 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14455 allow_undefined_flag_CXX=unsupported
14456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14457 # support --undefined. This deserves some investigation. FIXME
14458 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14459 else
14460 ld_shlibs_CXX=no
14461 fi
14462 ;;
14463
14464 chorus*)
14465 case $cc_basename in
14466 *)
14467 # FIXME: insert proper C++ library support
14468 ld_shlibs_CXX=no
14469 ;;
14470 esac
14471 ;;
14472
14473 cygwin* | mingw* | pw32* | cegcc*)
14474 case $GXX,$cc_basename in
14475 ,cl* | no,cl*)
14476 # Native MSVC
14477 # hardcode_libdir_flag_spec is actually meaningless, as there is
14478 # no search path for DLLs.
14479 hardcode_libdir_flag_spec_CXX=' '
14480 allow_undefined_flag_CXX=unsupported
14481 always_export_symbols_CXX=yes
14482 file_list_spec_CXX='@'
14483 # Tell ltmain to make .lib files, not .a files.
14484 libext=lib
14485 # Tell ltmain to make .dll files, not .so files.
14486 shrext_cmds=.dll
14487 # FIXME: Setting linknames here is a bad hack.
14488 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14489 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14490 cp "$export_symbols" "$output_objdir/$soname.def";
14491 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14492 else
14493 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14494 fi~
14495 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14496 linknames='
14497 # The linker will not automatically build a static lib if we build a DLL.
14498 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14499 enable_shared_with_static_runtimes_CXX=yes
14500 # Don't use ranlib
14501 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14502 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14503 lt_tool_outputfile="@TOOL_OUTPUT@"~
14504 case $lt_outputfile in
14505 *.exe|*.EXE) ;;
14506 *)
14507 lt_outputfile=$lt_outputfile.exe
14508 lt_tool_outputfile=$lt_tool_outputfile.exe
14509 ;;
14510 esac~
14511 func_to_tool_file "$lt_outputfile"~
14512 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14513 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14514 $RM "$lt_outputfile.manifest";
14515 fi'
14516 ;;
14517 *)
14518 # g++
14519 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14520 # as there is no search path for DLLs.
14521 hardcode_libdir_flag_spec_CXX='-L$libdir'
14522 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14523 allow_undefined_flag_CXX=unsupported
14524 always_export_symbols_CXX=no
14525 enable_shared_with_static_runtimes_CXX=yes
14526
14527 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14528 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'
14529 # If the export-symbols file already is a .def file, use it as
14530 # is; otherwise, prepend EXPORTS...
14531 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14532 cp $export_symbols $output_objdir/$soname.def;
14533 else
14534 echo EXPORTS > $output_objdir/$soname.def;
14535 cat $export_symbols >> $output_objdir/$soname.def;
14536 fi~
14537 $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'
14538 else
14539 ld_shlibs_CXX=no
14540 fi
14541 ;;
14542 esac
14543 ;;
14544 darwin* | rhapsody*)
14545
14546
14547 archive_cmds_need_lc_CXX=no
14548 hardcode_direct_CXX=no
14549 hardcode_automatic_CXX=yes
14550 hardcode_shlibpath_var_CXX=unsupported
14551 if test yes = "$lt_cv_ld_force_load"; then
14552 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\"`'
14553
14554 else
14555 whole_archive_flag_spec_CXX=''
14556 fi
14557 link_all_deplibs_CXX=yes
14558 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14559 case $cc_basename in
14560 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14561 *) _lt_dar_can_shared=$GCC ;;
14562 esac
14563 if test yes = "$_lt_dar_can_shared"; then
14564 output_verbose_link_cmd=func_echo_all
14565 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"
14566 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14567 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"
14568 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"
14569 if test yes != "$lt_cv_apple_cc_single_mod"; then
14570 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"
14571 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"
14572 fi
14573
14574 else
14575 ld_shlibs_CXX=no
14576 fi
14577
14578 ;;
14579
14580 os2*)
14581 hardcode_libdir_flag_spec_CXX='-L$libdir'
14582 hardcode_minus_L_CXX=yes
14583 allow_undefined_flag_CXX=unsupported
14584 shrext_cmds=.dll
14585 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14586 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14587 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14588 $ECHO EXPORTS >> $output_objdir/$libname.def~
14589 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14591 emximp -o $lib $output_objdir/$libname.def'
14592 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14593 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14594 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14595 $ECHO EXPORTS >> $output_objdir/$libname.def~
14596 prefix_cmds="$SED"~
14597 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14598 prefix_cmds="$prefix_cmds -e 1d";
14599 fi~
14600 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14601 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14602 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14603 emximp -o $lib $output_objdir/$libname.def'
14604 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14605 enable_shared_with_static_runtimes_CXX=yes
14606 ;;
14607
14608 dgux*)
14609 case $cc_basename in
14610 ec++*)
14611 # FIXME: insert proper C++ library support
14612 ld_shlibs_CXX=no
14613 ;;
14614 ghcx*)
14615 # Green Hills C++ Compiler
14616 # FIXME: insert proper C++ library support
14617 ld_shlibs_CXX=no
14618 ;;
14619 *)
14620 # FIXME: insert proper C++ library support
14621 ld_shlibs_CXX=no
14622 ;;
14623 esac
14624 ;;
14625
14626 freebsd2.*)
14627 # C++ shared libraries reported to be fairly broken before
14628 # switch to ELF
14629 ld_shlibs_CXX=no
14630 ;;
14631
14632 freebsd-elf*)
14633 archive_cmds_need_lc_CXX=no
14634 ;;
14635
14636 freebsd* | dragonfly*)
14637 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14638 # conventions
14639 ld_shlibs_CXX=yes
14640 ;;
14641
14642 haiku*)
14643 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14644 link_all_deplibs_CXX=yes
14645 ;;
14646
14647 hpux9*)
14648 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14649 hardcode_libdir_separator_CXX=:
14650 export_dynamic_flag_spec_CXX='$wl-E'
14651 hardcode_direct_CXX=yes
14652 hardcode_minus_L_CXX=yes # Not in the search PATH,
14653 # but as the default
14654 # location of the library.
14655
14656 case $cc_basename in
14657 CC*)
14658 # FIXME: insert proper C++ library support
14659 ld_shlibs_CXX=no
14660 ;;
14661 aCC*)
14662 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14663 # Commands to make compiler produce verbose output that lists
14664 # what "hidden" libraries, object files and flags are used when
14665 # linking a shared library.
14666 #
14667 # There doesn't appear to be a way to prevent this compiler from
14668 # explicitly linking system object files so we need to strip them
14669 # from the output so that they don't get included in the library
14670 # dependencies.
14671 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"'
14672 ;;
14673 *)
14674 if test yes = "$GXX"; then
14675 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14676 else
14677 # FIXME: insert proper C++ library support
14678 ld_shlibs_CXX=no
14679 fi
14680 ;;
14681 esac
14682 ;;
14683
14684 hpux10*|hpux11*)
14685 if test no = "$with_gnu_ld"; then
14686 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14687 hardcode_libdir_separator_CXX=:
14688
14689 case $host_cpu in
14690 hppa*64*|ia64*)
14691 ;;
14692 *)
14693 export_dynamic_flag_spec_CXX='$wl-E'
14694 ;;
14695 esac
14696 fi
14697 case $host_cpu in
14698 hppa*64*|ia64*)
14699 hardcode_direct_CXX=no
14700 hardcode_shlibpath_var_CXX=no
14701 ;;
14702 *)
14703 hardcode_direct_CXX=yes
14704 hardcode_direct_absolute_CXX=yes
14705 hardcode_minus_L_CXX=yes # Not in the search PATH,
14706 # but as the default
14707 # location of the library.
14708 ;;
14709 esac
14710
14711 case $cc_basename in
14712 CC*)
14713 # FIXME: insert proper C++ library support
14714 ld_shlibs_CXX=no
14715 ;;
14716 aCC*)
14717 case $host_cpu in
14718 hppa*64*)
14719 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14720 ;;
14721 ia64*)
14722 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14723 ;;
14724 *)
14725 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14726 ;;
14727 esac
14728 # Commands to make compiler produce verbose output that lists
14729 # what "hidden" libraries, object files and flags are used when
14730 # linking a shared library.
14731 #
14732 # There doesn't appear to be a way to prevent this compiler from
14733 # explicitly linking system object files so we need to strip them
14734 # from the output so that they don't get included in the library
14735 # dependencies.
14736 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"'
14737 ;;
14738 *)
14739 if test yes = "$GXX"; then
14740 if test no = "$with_gnu_ld"; then
14741 case $host_cpu in
14742 hppa*64*)
14743 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14744 ;;
14745 ia64*)
14746 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14747 ;;
14748 *)
14749 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14750 ;;
14751 esac
14752 fi
14753 else
14754 # FIXME: insert proper C++ library support
14755 ld_shlibs_CXX=no
14756 fi
14757 ;;
14758 esac
14759 ;;
14760
14761 interix[3-9]*)
14762 hardcode_direct_CXX=no
14763 hardcode_shlibpath_var_CXX=no
14764 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14765 export_dynamic_flag_spec_CXX='$wl-E'
14766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14767 # Instead, shared libraries are loaded at an image base (0x10000000 by
14768 # default) and relocated if they conflict, which is a slow very memory
14769 # consuming and fragmenting process. To avoid this, we pick a random,
14770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14771 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14772 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'
14773 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'
14774 ;;
14775 irix5* | irix6*)
14776 case $cc_basename in
14777 CC*)
14778 # SGI C++
14779 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'
14780
14781 # Archives containing C++ object files must be created using
14782 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14783 # necessary to make sure instantiated templates are included
14784 # in the archive.
14785 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14786 ;;
14787 *)
14788 if test yes = "$GXX"; then
14789 if test no = "$with_gnu_ld"; then
14790 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14791 else
14792 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14793 fi
14794 fi
14795 link_all_deplibs_CXX=yes
14796 ;;
14797 esac
14798 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14799 hardcode_libdir_separator_CXX=:
14800 inherit_rpath_CXX=yes
14801 ;;
14802
14803 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14804 case $cc_basename in
14805 KCC*)
14806 # Kuck and Associates, Inc. (KAI) C++ Compiler
14807
14808 # KCC will only create a shared library if the output file
14809 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14810 # to its proper name (with version) after linking.
14811 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'
14812 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'
14813 # Commands to make compiler produce verbose output that lists
14814 # what "hidden" libraries, object files and flags are used when
14815 # linking a shared library.
14816 #
14817 # There doesn't appear to be a way to prevent this compiler from
14818 # explicitly linking system object files so we need to strip them
14819 # from the output so that they don't get included in the library
14820 # dependencies.
14821 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"'
14822
14823 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14824 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14825
14826 # Archives containing C++ object files must be created using
14827 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14828 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14829 ;;
14830 icpc* | ecpc* )
14831 # Intel C++
14832 with_gnu_ld=yes
14833 # version 8.0 and above of icpc choke on multiply defined symbols
14834 # if we add $predep_objects and $postdep_objects, however 7.1 and
14835 # earlier do not add the objects themselves.
14836 case `$CC -V 2>&1` in
14837 *"Version 7."*)
14838 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14839 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'
14840 ;;
14841 *) # Version 8.0 or newer
14842 tmp_idyn=
14843 case $host_cpu in
14844 ia64*) tmp_idyn=' -i_dynamic';;
14845 esac
14846 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14847 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'
14848 ;;
14849 esac
14850 archive_cmds_need_lc_CXX=no
14851 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14852 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14853 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14854 ;;
14855 pgCC* | pgcpp*)
14856 # Portland Group C++ compiler
14857 case `$CC -V` in
14858 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14859 prelink_cmds_CXX='tpldir=Template.dir~
14860 rm -rf $tpldir~
14861 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14862 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14863 old_archive_cmds_CXX='tpldir=Template.dir~
14864 rm -rf $tpldir~
14865 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14866 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14867 $RANLIB $oldlib'
14868 archive_cmds_CXX='tpldir=Template.dir~
14869 rm -rf $tpldir~
14870 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14871 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14872 archive_expsym_cmds_CXX='tpldir=Template.dir~
14873 rm -rf $tpldir~
14874 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14875 $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'
14876 ;;
14877 *) # Version 6 and above use weak symbols
14878 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14879 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'
14880 ;;
14881 esac
14882
14883 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14884 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14885 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'
14886 ;;
14887 cxx*)
14888 # Compaq C++
14889 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14890 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'
14891
14892 runpath_var=LD_RUN_PATH
14893 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14894 hardcode_libdir_separator_CXX=:
14895
14896 # Commands to make compiler produce verbose output that lists
14897 # what "hidden" libraries, object files and flags are used when
14898 # linking a shared library.
14899 #
14900 # There doesn't appear to be a way to prevent this compiler from
14901 # explicitly linking system object files so we need to strip them
14902 # from the output so that they don't get included in the library
14903 # dependencies.
14904 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'
14905 ;;
14906 xl* | mpixl* | bgxl*)
14907 # IBM XL 8.0 on PPC, with GNU ld
14908 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14909 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14910 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14911 if test yes = "$supports_anon_versioning"; then
14912 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14913 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14914 echo "local: *; };" >> $output_objdir/$libname.ver~
14915 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14916 fi
14917 ;;
14918 *)
14919 case `$CC -V 2>&1 | sed 5q` in
14920 *Sun\ C*)
14921 # Sun C++ 5.9
14922 no_undefined_flag_CXX=' -zdefs'
14923 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14924 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'
14925 hardcode_libdir_flag_spec_CXX='-R$libdir'
14926 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'
14927 compiler_needs_object_CXX=yes
14928
14929 # Not sure whether something based on
14930 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14931 # would be better.
14932 output_verbose_link_cmd='func_echo_all'
14933
14934 # Archives containing C++ object files must be created using
14935 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14936 # necessary to make sure instantiated templates are included
14937 # in the archive.
14938 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14939 ;;
14940 esac
14941 ;;
14942 esac
14943 ;;
14944
14945 lynxos*)
14946 # FIXME: insert proper C++ library support
14947 ld_shlibs_CXX=no
14948 ;;
14949
14950 m88k*)
14951 # FIXME: insert proper C++ library support
14952 ld_shlibs_CXX=no
14953 ;;
14954
14955 mvs*)
14956 case $cc_basename in
14957 cxx*)
14958 # FIXME: insert proper C++ library support
14959 ld_shlibs_CXX=no
14960 ;;
14961 *)
14962 # FIXME: insert proper C++ library support
14963 ld_shlibs_CXX=no
14964 ;;
14965 esac
14966 ;;
14967
14968 netbsd*)
14969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14970 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14971 wlarc=
14972 hardcode_libdir_flag_spec_CXX='-R$libdir'
14973 hardcode_direct_CXX=yes
14974 hardcode_shlibpath_var_CXX=no
14975 fi
14976 # Workaround some broken pre-1.5 toolchains
14977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14978 ;;
14979
14980 *nto* | *qnx*)
14981 ld_shlibs_CXX=yes
14982 ;;
14983
14984 openbsd* | bitrig*)
14985 if test -f /usr/libexec/ld.so; then
14986 hardcode_direct_CXX=yes
14987 hardcode_shlibpath_var_CXX=no
14988 hardcode_direct_absolute_CXX=yes
14989 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14990 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14991 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14992 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14993 export_dynamic_flag_spec_CXX='$wl-E'
14994 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14995 fi
14996 output_verbose_link_cmd=func_echo_all
14997 else
14998 ld_shlibs_CXX=no
14999 fi
15000 ;;
15001
15002 osf3* | osf4* | osf5*)
15003 case $cc_basename in
15004 KCC*)
15005 # Kuck and Associates, Inc. (KAI) C++ Compiler
15006
15007 # KCC will only create a shared library if the output file
15008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15009 # to its proper name (with version) after linking.
15010 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'
15011
15012 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15013 hardcode_libdir_separator_CXX=:
15014
15015 # Archives containing C++ object files must be created using
15016 # the KAI C++ compiler.
15017 case $host in
15018 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15019 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15020 esac
15021 ;;
15022 RCC*)
15023 # Rational C++ 2.4.1
15024 # FIXME: insert proper C++ library support
15025 ld_shlibs_CXX=no
15026 ;;
15027 cxx*)
15028 case $host in
15029 osf3*)
15030 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15031 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'
15032 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15033 ;;
15034 *)
15035 allow_undefined_flag_CXX=' -expect_unresolved \*'
15036 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'
15037 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15038 echo "-hidden">> $lib.exp~
15039 $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~
15040 $RM $lib.exp'
15041 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15042 ;;
15043 esac
15044
15045 hardcode_libdir_separator_CXX=:
15046
15047 # Commands to make compiler produce verbose output that lists
15048 # what "hidden" libraries, object files and flags are used when
15049 # linking a shared library.
15050 #
15051 # There doesn't appear to be a way to prevent this compiler from
15052 # explicitly linking system object files so we need to strip them
15053 # from the output so that they don't get included in the library
15054 # dependencies.
15055 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"'
15056 ;;
15057 *)
15058 if test yes,no = "$GXX,$with_gnu_ld"; then
15059 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15060 case $host in
15061 osf3*)
15062 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'
15063 ;;
15064 *)
15065 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15066 ;;
15067 esac
15068
15069 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15070 hardcode_libdir_separator_CXX=:
15071
15072 # Commands to make compiler produce verbose output that lists
15073 # what "hidden" libraries, object files and flags are used when
15074 # linking a shared library.
15075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15076
15077 else
15078 # FIXME: insert proper C++ library support
15079 ld_shlibs_CXX=no
15080 fi
15081 ;;
15082 esac
15083 ;;
15084
15085 psos*)
15086 # FIXME: insert proper C++ library support
15087 ld_shlibs_CXX=no
15088 ;;
15089
15090 sunos4*)
15091 case $cc_basename in
15092 CC*)
15093 # Sun C++ 4.x
15094 # FIXME: insert proper C++ library support
15095 ld_shlibs_CXX=no
15096 ;;
15097 lcc*)
15098 # Lucid
15099 # FIXME: insert proper C++ library support
15100 ld_shlibs_CXX=no
15101 ;;
15102 *)
15103 # FIXME: insert proper C++ library support
15104 ld_shlibs_CXX=no
15105 ;;
15106 esac
15107 ;;
15108
15109 solaris*)
15110 case $cc_basename in
15111 CC* | sunCC*)
15112 # Sun C++ 4.2, 5.x and Centerline C++
15113 archive_cmds_need_lc_CXX=yes
15114 no_undefined_flag_CXX=' -zdefs'
15115 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15116 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15117 $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'
15118
15119 hardcode_libdir_flag_spec_CXX='-R$libdir'
15120 hardcode_shlibpath_var_CXX=no
15121 case $host_os in
15122 solaris2.[0-5] | solaris2.[0-5].*) ;;
15123 *)
15124 # The compiler driver will combine and reorder linker options,
15125 # but understands '-z linker_flag'.
15126 # Supported since Solaris 2.6 (maybe 2.5.1?)
15127 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15128 ;;
15129 esac
15130 link_all_deplibs_CXX=yes
15131
15132 output_verbose_link_cmd='func_echo_all'
15133
15134 # Archives containing C++ object files must be created using
15135 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15136 # necessary to make sure instantiated templates are included
15137 # in the archive.
15138 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15139 ;;
15140 gcx*)
15141 # Green Hills C++ Compiler
15142 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15143
15144 # The C++ compiler must be used to create the archive.
15145 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15146 ;;
15147 *)
15148 # GNU C++ compiler with Solaris linker
15149 if test yes,no = "$GXX,$with_gnu_ld"; then
15150 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15151 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15152 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15154 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15155
15156 # Commands to make compiler produce verbose output that lists
15157 # what "hidden" libraries, object files and flags are used when
15158 # linking a shared library.
15159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15160 else
15161 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15162 # platform.
15163 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15164 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15165 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15166
15167 # Commands to make compiler produce verbose output that lists
15168 # what "hidden" libraries, object files and flags are used when
15169 # linking a shared library.
15170 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15171 fi
15172
15173 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15174 case $host_os in
15175 solaris2.[0-5] | solaris2.[0-5].*) ;;
15176 *)
15177 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15178 ;;
15179 esac
15180 fi
15181 ;;
15182 esac
15183 ;;
15184
15185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15186 no_undefined_flag_CXX='$wl-z,text'
15187 archive_cmds_need_lc_CXX=no
15188 hardcode_shlibpath_var_CXX=no
15189 runpath_var='LD_RUN_PATH'
15190
15191 case $cc_basename in
15192 CC*)
15193 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 ;;
15196 *)
15197 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 ;;
15200 esac
15201 ;;
15202
15203 sysv5* | sco3.2v5* | sco5v6*)
15204 # Note: We CANNOT use -z defs as we might desire, because we do not
15205 # link with -lc, and that would cause any symbols used from libc to
15206 # always be unresolved, which means just about no library would
15207 # ever link correctly. If we're not using GNU ld we use -z text
15208 # though, which does catch some bad symbols but isn't as heavy-handed
15209 # as -z defs.
15210 no_undefined_flag_CXX='$wl-z,text'
15211 allow_undefined_flag_CXX='$wl-z,nodefs'
15212 archive_cmds_need_lc_CXX=no
15213 hardcode_shlibpath_var_CXX=no
15214 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15215 hardcode_libdir_separator_CXX=':'
15216 link_all_deplibs_CXX=yes
15217 export_dynamic_flag_spec_CXX='$wl-Bexport'
15218 runpath_var='LD_RUN_PATH'
15219
15220 case $cc_basename in
15221 CC*)
15222 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15223 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15225 '"$old_archive_cmds_CXX"
15226 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15227 '"$reload_cmds_CXX"
15228 ;;
15229 *)
15230 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15231 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 ;;
15233 esac
15234 ;;
15235
15236 tandem*)
15237 case $cc_basename in
15238 NCC*)
15239 # NonStop-UX NCC 3.20
15240 # FIXME: insert proper C++ library support
15241 ld_shlibs_CXX=no
15242 ;;
15243 *)
15244 # FIXME: insert proper C++ library support
15245 ld_shlibs_CXX=no
15246 ;;
15247 esac
15248 ;;
15249
15250 vxworks*)
15251 # FIXME: insert proper C++ library support
15252 ld_shlibs_CXX=no
15253 ;;
15254
15255 *)
15256 # FIXME: insert proper C++ library support
15257 ld_shlibs_CXX=no
15258 ;;
15259 esac
15260
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15262$as_echo "$ld_shlibs_CXX" >&6; }
15263 test no = "$ld_shlibs_CXX" && can_build_shared=no
15264
15265 GCC_CXX=$GXX
15266 LD_CXX=$LD
15267
15268 ## CAVEAT EMPTOR:
15269 ## There is no encapsulation within the following macros, do not change
15270 ## the running order or otherwise move them around unless you know exactly
15271 ## what you are doing...
15272 # Dependencies to place before and after the object being linked:
15273predep_objects_CXX=
15274postdep_objects_CXX=
15275predeps_CXX=
15276postdeps_CXX=
15277compiler_lib_search_path_CXX=
15278
15279cat > conftest.$ac_ext <<_LT_EOF
15280class Foo
15281{
15282public:
15283 Foo (void) { a = 0; }
15284private:
15285 int a;
15286};
15287_LT_EOF
15288
15289
15290_lt_libdeps_save_CFLAGS=$CFLAGS
15291case "$CC $CFLAGS " in #(
15292*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15293*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15294*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15295esac
15296
15297if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15298 (eval $ac_compile) 2>&5
15299 ac_status=$?
15300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15301 test $ac_status = 0; }; then
15302 # Parse the compiler output and extract the necessary
15303 # objects, libraries and library flags.
15304
15305 # Sentinel used to keep track of whether or not we are before
15306 # the conftest object file.
15307 pre_test_object_deps_done=no
15308
15309 for p in `eval "$output_verbose_link_cmd"`; do
15310 case $prev$p in
15311
15312 -L* | -R* | -l*)
15313 # Some compilers place space between "-{L,R}" and the path.
15314 # Remove the space.
15315 if test x-L = "$p" ||
15316 test x-R = "$p"; then
15317 prev=$p
15318 continue
15319 fi
15320
15321 # Expand the sysroot to ease extracting the directories later.
15322 if test -z "$prev"; then
15323 case $p in
15324 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15325 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15326 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15327 esac
15328 fi
15329 case $p in
15330 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15331 esac
15332 if test no = "$pre_test_object_deps_done"; then
15333 case $prev in
15334 -L | -R)
15335 # Internal compiler library paths should come after those
15336 # provided the user. The postdeps already come after the
15337 # user supplied libs so there is no need to process them.
15338 if test -z "$compiler_lib_search_path_CXX"; then
15339 compiler_lib_search_path_CXX=$prev$p
15340 else
15341 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15342 fi
15343 ;;
15344 # The "-l" case would never come before the object being
15345 # linked, so don't bother handling this case.
15346 esac
15347 else
15348 if test -z "$postdeps_CXX"; then
15349 postdeps_CXX=$prev$p
15350 else
15351 postdeps_CXX="${postdeps_CXX} $prev$p"
15352 fi
15353 fi
15354 prev=
15355 ;;
15356
15357 *.lto.$objext) ;; # Ignore GCC LTO objects
15358 *.$objext)
15359 # This assumes that the test object file only shows up
15360 # once in the compiler output.
15361 if test "$p" = "conftest.$objext"; then
15362 pre_test_object_deps_done=yes
15363 continue
15364 fi
15365
15366 if test no = "$pre_test_object_deps_done"; then
15367 if test -z "$predep_objects_CXX"; then
15368 predep_objects_CXX=$p
15369 else
15370 predep_objects_CXX="$predep_objects_CXX $p"
15371 fi
15372 else
15373 if test -z "$postdep_objects_CXX"; then
15374 postdep_objects_CXX=$p
15375 else
15376 postdep_objects_CXX="$postdep_objects_CXX $p"
15377 fi
15378 fi
15379 ;;
15380
15381 *) ;; # Ignore the rest.
15382
15383 esac
15384 done
15385
15386 # Clean up.
15387 rm -f a.out a.exe
15388else
15389 echo "libtool.m4: error: problem compiling CXX test program"
15390fi
15391
15392$RM -f confest.$objext
15393CFLAGS=$_lt_libdeps_save_CFLAGS
15394
15395# PORTME: override above test on systems where it is broken
15396case $host_os in
15397interix[3-9]*)
15398 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15399 # hack all around it, let's just trust "g++" to DTRT.
15400 predep_objects_CXX=
15401 postdep_objects_CXX=
15402 postdeps_CXX=
15403 ;;
15404esac
15405
15406
15407case " $postdeps_CXX " in
15408*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15409esac
15410 compiler_lib_search_dirs_CXX=
15411if test -n "${compiler_lib_search_path_CXX}"; then
15412 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15413fi
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445 lt_prog_compiler_wl_CXX=
15446lt_prog_compiler_pic_CXX=
15447lt_prog_compiler_static_CXX=
15448
15449
15450 # C++ specific cases for pic, static, wl, etc.
15451 if test yes = "$GXX"; then
15452 lt_prog_compiler_wl_CXX='-Wl,'
15453 lt_prog_compiler_static_CXX='-static'
15454
15455 case $host_os in
15456 aix*)
15457 # All AIX code is PIC.
15458 if test ia64 = "$host_cpu"; then
15459 # AIX 5 now supports IA64 processor
15460 lt_prog_compiler_static_CXX='-Bstatic'
15461 fi
15462 lt_prog_compiler_pic_CXX='-fPIC'
15463 ;;
15464
15465 amigaos*)
15466 case $host_cpu in
15467 powerpc)
15468 # see comment about AmigaOS4 .so support
15469 lt_prog_compiler_pic_CXX='-fPIC'
15470 ;;
15471 m68k)
15472 # FIXME: we need at least 68020 code to build shared libraries, but
15473 # adding the '-m68020' flag to GCC prevents building anything better,
15474 # like '-m68040'.
15475 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15476 ;;
15477 esac
15478 ;;
15479
15480 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15481 # PIC is the default for these OSes.
15482 ;;
15483 mingw* | cygwin* | os2* | pw32* | cegcc*)
15484 # This hack is so that the source file can tell whether it is being
15485 # built for inclusion in a dll (and should export symbols for example).
15486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15487 # (--disable-auto-import) libraries
15488 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15489 case $host_os in
15490 os2*)
15491 lt_prog_compiler_static_CXX='$wl-static'
15492 ;;
15493 esac
15494 ;;
15495 darwin* | rhapsody*)
15496 # PIC is the default on this platform
15497 # Common symbols not allowed in MH_DYLIB files
15498 lt_prog_compiler_pic_CXX='-fno-common'
15499 ;;
15500 *djgpp*)
15501 # DJGPP does not support shared libraries at all
15502 lt_prog_compiler_pic_CXX=
15503 ;;
15504 haiku*)
15505 # PIC is the default for Haiku.
15506 # The "-static" flag exists, but is broken.
15507 lt_prog_compiler_static_CXX=
15508 ;;
15509 interix[3-9]*)
15510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15511 # Instead, we relocate shared libraries at runtime.
15512 ;;
15513 sysv4*MP*)
15514 if test -d /usr/nec; then
15515 lt_prog_compiler_pic_CXX=-Kconform_pic
15516 fi
15517 ;;
15518 hpux*)
15519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15521 # sets the default TLS model and affects inlining.
15522 case $host_cpu in
15523 hppa*64*)
15524 ;;
15525 *)
15526 lt_prog_compiler_pic_CXX='-fPIC'
15527 ;;
15528 esac
15529 ;;
15530 *qnx* | *nto*)
15531 # QNX uses GNU C++, but need to define -shared option too, otherwise
15532 # it will coredump.
15533 lt_prog_compiler_pic_CXX='-fPIC -shared'
15534 ;;
15535 *)
15536 lt_prog_compiler_pic_CXX='-fPIC'
15537 ;;
15538 esac
15539 else
15540 case $host_os in
15541 aix[4-9]*)
15542 # All AIX code is PIC.
15543 if test ia64 = "$host_cpu"; then
15544 # AIX 5 now supports IA64 processor
15545 lt_prog_compiler_static_CXX='-Bstatic'
15546 else
15547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15548 fi
15549 ;;
15550 chorus*)
15551 case $cc_basename in
15552 cxch68*)
15553 # Green Hills C++ Compiler
15554 # _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"
15555 ;;
15556 esac
15557 ;;
15558 mingw* | cygwin* | os2* | pw32* | cegcc*)
15559 # This hack is so that the source file can tell whether it is being
15560 # built for inclusion in a dll (and should export symbols for example).
15561 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15562 ;;
15563 dgux*)
15564 case $cc_basename in
15565 ec++*)
15566 lt_prog_compiler_pic_CXX='-KPIC'
15567 ;;
15568 ghcx*)
15569 # Green Hills C++ Compiler
15570 lt_prog_compiler_pic_CXX='-pic'
15571 ;;
15572 *)
15573 ;;
15574 esac
15575 ;;
15576 freebsd* | dragonfly*)
15577 # FreeBSD uses GNU C++
15578 ;;
15579 hpux9* | hpux10* | hpux11*)
15580 case $cc_basename in
15581 CC*)
15582 lt_prog_compiler_wl_CXX='-Wl,'
15583 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15584 if test ia64 != "$host_cpu"; then
15585 lt_prog_compiler_pic_CXX='+Z'
15586 fi
15587 ;;
15588 aCC*)
15589 lt_prog_compiler_wl_CXX='-Wl,'
15590 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15591 case $host_cpu in
15592 hppa*64*|ia64*)
15593 # +Z the default
15594 ;;
15595 *)
15596 lt_prog_compiler_pic_CXX='+Z'
15597 ;;
15598 esac
15599 ;;
15600 *)
15601 ;;
15602 esac
15603 ;;
15604 interix*)
15605 # This is c89, which is MS Visual C++ (no shared libs)
15606 # Anyone wants to do a port?
15607 ;;
15608 irix5* | irix6* | nonstopux*)
15609 case $cc_basename in
15610 CC*)
15611 lt_prog_compiler_wl_CXX='-Wl,'
15612 lt_prog_compiler_static_CXX='-non_shared'
15613 # CC pic flag -KPIC is the default.
15614 ;;
15615 *)
15616 ;;
15617 esac
15618 ;;
15619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15620 case $cc_basename in
15621 KCC*)
15622 # KAI C++ Compiler
15623 lt_prog_compiler_wl_CXX='--backend -Wl,'
15624 lt_prog_compiler_pic_CXX='-fPIC'
15625 ;;
15626 ecpc* )
15627 # old Intel C++ for x86_64, which still supported -KPIC.
15628 lt_prog_compiler_wl_CXX='-Wl,'
15629 lt_prog_compiler_pic_CXX='-KPIC'
15630 lt_prog_compiler_static_CXX='-static'
15631 ;;
15632 icpc* )
15633 # Intel C++, used to be incompatible with GCC.
15634 # ICC 10 doesn't accept -KPIC any more.
15635 lt_prog_compiler_wl_CXX='-Wl,'
15636 lt_prog_compiler_pic_CXX='-fPIC'
15637 lt_prog_compiler_static_CXX='-static'
15638 ;;
15639 pgCC* | pgcpp*)
15640 # Portland Group C++ compiler
15641 lt_prog_compiler_wl_CXX='-Wl,'
15642 lt_prog_compiler_pic_CXX='-fpic'
15643 lt_prog_compiler_static_CXX='-Bstatic'
15644 ;;
15645 cxx*)
15646 # Compaq C++
15647 # Make sure the PIC flag is empty. It appears that all Alpha
15648 # Linux and Compaq Tru64 Unix objects are PIC.
15649 lt_prog_compiler_pic_CXX=
15650 lt_prog_compiler_static_CXX='-non_shared'
15651 ;;
15652 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15653 # IBM XL 8.0, 9.0 on PPC and BlueGene
15654 lt_prog_compiler_wl_CXX='-Wl,'
15655 lt_prog_compiler_pic_CXX='-qpic'
15656 lt_prog_compiler_static_CXX='-qstaticlink'
15657 ;;
15658 *)
15659 case `$CC -V 2>&1 | sed 5q` in
15660 *Sun\ C*)
15661 # Sun C++ 5.9
15662 lt_prog_compiler_pic_CXX='-KPIC'
15663 lt_prog_compiler_static_CXX='-Bstatic'
15664 lt_prog_compiler_wl_CXX='-Qoption ld '
15665 ;;
15666 esac
15667 ;;
15668 esac
15669 ;;
15670 lynxos*)
15671 ;;
15672 m88k*)
15673 ;;
15674 mvs*)
15675 case $cc_basename in
15676 cxx*)
15677 lt_prog_compiler_pic_CXX='-W c,exportall'
15678 ;;
15679 *)
15680 ;;
15681 esac
15682 ;;
15683 netbsd*)
15684 ;;
15685 *qnx* | *nto*)
15686 # QNX uses GNU C++, but need to define -shared option too, otherwise
15687 # it will coredump.
15688 lt_prog_compiler_pic_CXX='-fPIC -shared'
15689 ;;
15690 osf3* | osf4* | osf5*)
15691 case $cc_basename in
15692 KCC*)
15693 lt_prog_compiler_wl_CXX='--backend -Wl,'
15694 ;;
15695 RCC*)
15696 # Rational C++ 2.4.1
15697 lt_prog_compiler_pic_CXX='-pic'
15698 ;;
15699 cxx*)
15700 # Digital/Compaq C++
15701 lt_prog_compiler_wl_CXX='-Wl,'
15702 # Make sure the PIC flag is empty. It appears that all Alpha
15703 # Linux and Compaq Tru64 Unix objects are PIC.
15704 lt_prog_compiler_pic_CXX=
15705 lt_prog_compiler_static_CXX='-non_shared'
15706 ;;
15707 *)
15708 ;;
15709 esac
15710 ;;
15711 psos*)
15712 ;;
15713 solaris*)
15714 case $cc_basename in
15715 CC* | sunCC*)
15716 # Sun C++ 4.2, 5.x and Centerline C++
15717 lt_prog_compiler_pic_CXX='-KPIC'
15718 lt_prog_compiler_static_CXX='-Bstatic'
15719 lt_prog_compiler_wl_CXX='-Qoption ld '
15720 ;;
15721 gcx*)
15722 # Green Hills C++ Compiler
15723 lt_prog_compiler_pic_CXX='-PIC'
15724 ;;
15725 *)
15726 ;;
15727 esac
15728 ;;
15729 sunos4*)
15730 case $cc_basename in
15731 CC*)
15732 # Sun C++ 4.x
15733 lt_prog_compiler_pic_CXX='-pic'
15734 lt_prog_compiler_static_CXX='-Bstatic'
15735 ;;
15736 lcc*)
15737 # Lucid
15738 lt_prog_compiler_pic_CXX='-pic'
15739 ;;
15740 *)
15741 ;;
15742 esac
15743 ;;
15744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15745 case $cc_basename in
15746 CC*)
15747 lt_prog_compiler_wl_CXX='-Wl,'
15748 lt_prog_compiler_pic_CXX='-KPIC'
15749 lt_prog_compiler_static_CXX='-Bstatic'
15750 ;;
15751 esac
15752 ;;
15753 tandem*)
15754 case $cc_basename in
15755 NCC*)
15756 # NonStop-UX NCC 3.20
15757 lt_prog_compiler_pic_CXX='-KPIC'
15758 ;;
15759 *)
15760 ;;
15761 esac
15762 ;;
15763 vxworks*)
15764 ;;
15765 *)
15766 lt_prog_compiler_can_build_shared_CXX=no
15767 ;;
15768 esac
15769 fi
15770
15771case $host_os in
15772 # For platforms that do not support PIC, -DPIC is meaningless:
15773 *djgpp*)
15774 lt_prog_compiler_pic_CXX=
15775 ;;
15776 *)
15777 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15778 ;;
15779esac
15780
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15782$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15783if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15784 $as_echo_n "(cached) " >&6
15785else
15786 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15787fi
15788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15789$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15790lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15791
15792#
15793# Check to make sure the PIC flag actually works.
15794#
15795if test -n "$lt_prog_compiler_pic_CXX"; then
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15797$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15798if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15799 $as_echo_n "(cached) " >&6
15800else
15801 lt_cv_prog_compiler_pic_works_CXX=no
15802 ac_outfile=conftest.$ac_objext
15803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15804 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15805 # Insert the option either (1) after the last *FLAGS variable, or
15806 # (2) before a word containing "conftest.", or (3) at the end.
15807 # Note that $ac_compile itself does not contain backslashes and begins
15808 # with a dollar sign (not a hyphen), so the echo should work correctly.
15809 # The option is referenced via a variable to avoid confusing sed.
15810 lt_compile=`echo "$ac_compile" | $SED \
15811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15813 -e 's:$: $lt_compiler_flag:'`
15814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15815 (eval "$lt_compile" 2>conftest.err)
15816 ac_status=$?
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 if (exit $ac_status) && test -s "$ac_outfile"; then
15820 # The compiler can only warn and ignore the option if not recognized
15821 # So say no if there are warnings other than the usual output.
15822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15825 lt_cv_prog_compiler_pic_works_CXX=yes
15826 fi
15827 fi
15828 $RM conftest*
15829
15830fi
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15832$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15833
15834if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15835 case $lt_prog_compiler_pic_CXX in
15836 "" | " "*) ;;
15837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15838 esac
15839else
15840 lt_prog_compiler_pic_CXX=
15841 lt_prog_compiler_can_build_shared_CXX=no
15842fi
15843
15844fi
15845
15846
15847
15848
15849
15850#
15851# Check to make sure the static flag actually works.
15852#
15853wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15855$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15856if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15857 $as_echo_n "(cached) " >&6
15858else
15859 lt_cv_prog_compiler_static_works_CXX=no
15860 save_LDFLAGS=$LDFLAGS
15861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15862 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15864 # The linker can only warn and ignore the option if not recognized
15865 # So say no if there are warnings
15866 if test -s conftest.err; then
15867 # Append any errors to the config.log.
15868 cat conftest.err 1>&5
15869 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15871 if diff conftest.exp conftest.er2 >/dev/null; then
15872 lt_cv_prog_compiler_static_works_CXX=yes
15873 fi
15874 else
15875 lt_cv_prog_compiler_static_works_CXX=yes
15876 fi
15877 fi
15878 $RM -r conftest*
15879 LDFLAGS=$save_LDFLAGS
15880
15881fi
15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15883$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15884
15885if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15886 :
15887else
15888 lt_prog_compiler_static_CXX=
15889fi
15890
15891
15892
15893
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15895$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15896if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898else
15899 lt_cv_prog_compiler_c_o_CXX=no
15900 $RM -r conftest 2>/dev/null
15901 mkdir conftest
15902 cd conftest
15903 mkdir out
15904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15905
15906 lt_compiler_flag="-o out/conftest2.$ac_objext"
15907 # Insert the option either (1) after the last *FLAGS variable, or
15908 # (2) before a word containing "conftest.", or (3) at the end.
15909 # Note that $ac_compile itself does not contain backslashes and begins
15910 # with a dollar sign (not a hyphen), so the echo should work correctly.
15911 lt_compile=`echo "$ac_compile" | $SED \
15912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15914 -e 's:$: $lt_compiler_flag:'`
15915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15916 (eval "$lt_compile" 2>out/conftest.err)
15917 ac_status=$?
15918 cat out/conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15921 then
15922 # The compiler can only warn and ignore the option if not recognized
15923 # So say no if there are warnings
15924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15927 lt_cv_prog_compiler_c_o_CXX=yes
15928 fi
15929 fi
15930 chmod u+w . 2>&5
15931 $RM conftest*
15932 # SGI C++ compiler will create directory out/ii_files/ for
15933 # template instantiation
15934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15935 $RM out/* && rmdir out
15936 cd ..
15937 $RM -r conftest
15938 $RM conftest*
15939
15940fi
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15942$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15943
15944
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15947$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15948if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950else
15951 lt_cv_prog_compiler_c_o_CXX=no
15952 $RM -r conftest 2>/dev/null
15953 mkdir conftest
15954 cd conftest
15955 mkdir out
15956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15957
15958 lt_compiler_flag="-o out/conftest2.$ac_objext"
15959 # Insert the option either (1) after the last *FLAGS variable, or
15960 # (2) before a word containing "conftest.", or (3) at the end.
15961 # Note that $ac_compile itself does not contain backslashes and begins
15962 # with a dollar sign (not a hyphen), so the echo should work correctly.
15963 lt_compile=`echo "$ac_compile" | $SED \
15964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15966 -e 's:$: $lt_compiler_flag:'`
15967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15968 (eval "$lt_compile" 2>out/conftest.err)
15969 ac_status=$?
15970 cat out/conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15973 then
15974 # The compiler can only warn and ignore the option if not recognized
15975 # So say no if there are warnings
15976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15979 lt_cv_prog_compiler_c_o_CXX=yes
15980 fi
15981 fi
15982 chmod u+w . 2>&5
15983 $RM conftest*
15984 # SGI C++ compiler will create directory out/ii_files/ for
15985 # template instantiation
15986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15987 $RM out/* && rmdir out
15988 cd ..
15989 $RM -r conftest
15990 $RM conftest*
15991
15992fi
15993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15994$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15995
15996
15997
15998
15999hard_links=nottested
16000if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16001 # do not overwrite the value of need_locks provided by the user
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16003$as_echo_n "checking if we can lock with hard links... " >&6; }
16004 hard_links=yes
16005 $RM conftest*
16006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007 touch conftest.a
16008 ln conftest.a conftest.b 2>&5 || hard_links=no
16009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16011$as_echo "$hard_links" >&6; }
16012 if test no = "$hard_links"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16014$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16015 need_locks=warn
16016 fi
16017else
16018 need_locks=no
16019fi
16020
16021
16022
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16024$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16025
16026 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16027 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16028 case $host_os in
16029 aix[4-9]*)
16030 # If we're using GNU nm, then we don't want the "-C" option.
16031 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16032 # Without the "-l" option, or with the "-B" option, AIX nm treats
16033 # weak defined symbols like other global defined symbols, whereas
16034 # GNU nm marks them as "W".
16035 # While the 'weak' keyword is ignored in the Export File, we need
16036 # it in the Import File for the 'aix-soname' feature, so we have
16037 # to replace the "-B" option with "-P" for AIX nm.
16038 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16039 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16040 else
16041 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16042 fi
16043 ;;
16044 pw32*)
16045 export_symbols_cmds_CXX=$ltdll_cmds
16046 ;;
16047 cygwin* | mingw* | cegcc*)
16048 case $cc_basename in
16049 cl*)
16050 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16051 ;;
16052 *)
16053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16054 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16055 ;;
16056 esac
16057 ;;
16058 *)
16059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16060 ;;
16061 esac
16062
16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16064$as_echo "$ld_shlibs_CXX" >&6; }
16065test no = "$ld_shlibs_CXX" && can_build_shared=no
16066
16067with_gnu_ld_CXX=$with_gnu_ld
16068
16069
16070
16071
16072
16073
16074#
16075# Do we need to explicitly link libc?
16076#
16077case "x$archive_cmds_need_lc_CXX" in
16078x|xyes)
16079 # Assume -lc should be added
16080 archive_cmds_need_lc_CXX=yes
16081
16082 if test yes,yes = "$GCC,$enable_shared"; then
16083 case $archive_cmds_CXX in
16084 *'~'*)
16085 # FIXME: we may have to deal with multi-command sequences.
16086 ;;
16087 '$CC '*)
16088 # Test whether the compiler implicitly links with -lc since on some
16089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16090 # to ld, don't add -lc before -lgcc.
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16092$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16093if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16094 $as_echo_n "(cached) " >&6
16095else
16096 $RM conftest*
16097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16098
16099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16100 (eval $ac_compile) 2>&5
16101 ac_status=$?
16102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16103 test $ac_status = 0; } 2>conftest.err; then
16104 soname=conftest
16105 lib=conftest
16106 libobjs=conftest.$ac_objext
16107 deplibs=
16108 wl=$lt_prog_compiler_wl_CXX
16109 pic_flag=$lt_prog_compiler_pic_CXX
16110 compiler_flags=-v
16111 linker_flags=-v
16112 verstring=
16113 output_objdir=.
16114 libname=conftest
16115 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16116 allow_undefined_flag_CXX=
16117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16118 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16119 ac_status=$?
16120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16121 test $ac_status = 0; }
16122 then
16123 lt_cv_archive_cmds_need_lc_CXX=no
16124 else
16125 lt_cv_archive_cmds_need_lc_CXX=yes
16126 fi
16127 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16128 else
16129 cat conftest.err 1>&5
16130 fi
16131 $RM conftest*
16132
16133fi
16134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16135$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16136 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16137 ;;
16138 esac
16139 fi
16140 ;;
16141esac
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16205$as_echo_n "checking dynamic linker characteristics... " >&6; }
16206
16207library_names_spec=
16208libname_spec='lib$name'
16209soname_spec=
16210shrext_cmds=.so
16211postinstall_cmds=
16212postuninstall_cmds=
16213finish_cmds=
16214finish_eval=
16215shlibpath_var=
16216shlibpath_overrides_runpath=unknown
16217version_type=none
16218dynamic_linker="$host_os ld.so"
16219sys_lib_dlsearch_path_spec="/lib /usr/lib"
16220need_lib_prefix=unknown
16221hardcode_into_libs=no
16222
16223# when you set need_version to no, make sure it does not cause -set_version
16224# flags to be left without arguments
16225need_version=unknown
16226
16227
16228
16229case $host_os in
16230aix3*)
16231 version_type=linux # correct to gnu/linux during the next big refactor
16232 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16233 shlibpath_var=LIBPATH
16234
16235 # AIX 3 has no versioning support, so we append a major version to the name.
16236 soname_spec='$libname$release$shared_ext$major'
16237 ;;
16238
16239aix[4-9]*)
16240 version_type=linux # correct to gnu/linux during the next big refactor
16241 need_lib_prefix=no
16242 need_version=no
16243 hardcode_into_libs=yes
16244 if test ia64 = "$host_cpu"; then
16245 # AIX 5 supports IA64
16246 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 else
16249 # With GCC up to 2.95.x, collect2 would create an import file
16250 # for dependence libraries. The import file would start with
16251 # the line '#! .'. This would cause the generated library to
16252 # depend on '.', always an invalid library. This was fixed in
16253 # development snapshots of GCC prior to 3.0.
16254 case $host_os in
16255 aix4 | aix4.[01] | aix4.[01].*)
16256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16257 echo ' yes '
16258 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16259 :
16260 else
16261 can_build_shared=no
16262 fi
16263 ;;
16264 esac
16265 # Using Import Files as archive members, it is possible to support
16266 # filename-based versioning of shared library archives on AIX. While
16267 # this would work for both with and without runtime linking, it will
16268 # prevent static linking of such archives. So we do filename-based
16269 # shared library versioning with .so extension only, which is used
16270 # when both runtime linking and shared linking is enabled.
16271 # Unfortunately, runtime linking may impact performance, so we do
16272 # not want this to be the default eventually. Also, we use the
16273 # versioned .so libs for executables only if there is the -brtl
16274 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16275 # To allow for filename-based versioning support, we need to create
16276 # libNAME.so.V as an archive file, containing:
16277 # *) an Import File, referring to the versioned filename of the
16278 # archive as well as the shared archive member, telling the
16279 # bitwidth (32 or 64) of that shared object, and providing the
16280 # list of exported symbols of that shared object, eventually
16281 # decorated with the 'weak' keyword
16282 # *) the shared object with the F_LOADONLY flag set, to really avoid
16283 # it being seen by the linker.
16284 # At run time we better use the real file rather than another symlink,
16285 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16286
16287 case $with_aix_soname,$aix_use_runtimelinking in
16288 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16289 # soname into executable. Probably we can add versioning support to
16290 # collect2, so additional links can be useful in future.
16291 aix,yes) # traditional libtool
16292 dynamic_linker='AIX unversionable lib.so'
16293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16294 # instead of lib<name>.a to let people know that these are not
16295 # typical AIX shared libraries.
16296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16297 ;;
16298 aix,no) # traditional AIX only
16299 dynamic_linker='AIX lib.a(lib.so.V)'
16300 # We preserve .a as extension for shared libraries through AIX4.2
16301 # and later when we are not doing run time linking.
16302 library_names_spec='$libname$release.a $libname.a'
16303 soname_spec='$libname$release$shared_ext$major'
16304 ;;
16305 svr4,*) # full svr4 only
16306 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16307 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16308 # We do not specify a path in Import Files, so LIBPATH fires.
16309 shlibpath_overrides_runpath=yes
16310 ;;
16311 *,yes) # both, prefer svr4
16312 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16313 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16314 # unpreferred sharedlib libNAME.a needs extra handling
16315 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16316 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16317 # We do not specify a path in Import Files, so LIBPATH fires.
16318 shlibpath_overrides_runpath=yes
16319 ;;
16320 *,no) # both, prefer aix
16321 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16322 library_names_spec='$libname$release.a $libname.a'
16323 soname_spec='$libname$release$shared_ext$major'
16324 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16325 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16326 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16327 ;;
16328 esac
16329 shlibpath_var=LIBPATH
16330 fi
16331 ;;
16332
16333amigaos*)
16334 case $host_cpu in
16335 powerpc)
16336 # Since July 2007 AmigaOS4 officially supports .so libraries.
16337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16339 ;;
16340 m68k)
16341 library_names_spec='$libname.ixlibrary $libname.a'
16342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16343 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16344 ;;
16345 esac
16346 ;;
16347
16348beos*)
16349 library_names_spec='$libname$shared_ext'
16350 dynamic_linker="$host_os ld.so"
16351 shlibpath_var=LIBRARY_PATH
16352 ;;
16353
16354bsdi[45]*)
16355 version_type=linux # correct to gnu/linux during the next big refactor
16356 need_version=no
16357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16358 soname_spec='$libname$release$shared_ext$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16363 # the default ld.so.conf also contains /usr/contrib/lib and
16364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16365 # libtool to hard-code these into programs
16366 ;;
16367
16368cygwin* | mingw* | pw32* | cegcc*)
16369 version_type=windows
16370 shrext_cmds=.dll
16371 need_version=no
16372 need_lib_prefix=no
16373
16374 case $GCC,$cc_basename in
16375 yes,*)
16376 # gcc
16377 library_names_spec='$libname.dll.a'
16378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16379 postinstall_cmds='base_file=`basename \$file`~
16380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16381 dldir=$destdir/`dirname \$dlpath`~
16382 test -d \$dldir || mkdir -p \$dldir~
16383 $install_prog $dir/$dlname \$dldir/$dlname~
16384 chmod a+x \$dldir/$dlname~
16385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16387 fi'
16388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16389 dlpath=$dir/\$dldll~
16390 $RM \$dlpath'
16391 shlibpath_overrides_runpath=yes
16392
16393 case $host_os in
16394 cygwin*)
16395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16396 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16397
16398 ;;
16399 mingw* | cegcc*)
16400 # MinGW DLLs use traditional 'lib' prefix
16401 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16402 ;;
16403 pw32*)
16404 # pw32 DLLs use 'pw' prefix rather than 'lib'
16405 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16406 ;;
16407 esac
16408 dynamic_linker='Win32 ld.exe'
16409 ;;
16410
16411 *,cl*)
16412 # Native MSVC
16413 libname_spec='$name'
16414 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16415 library_names_spec='$libname.dll.lib'
16416
16417 case $build_os in
16418 mingw*)
16419 sys_lib_search_path_spec=
16420 lt_save_ifs=$IFS
16421 IFS=';'
16422 for lt_path in $LIB
16423 do
16424 IFS=$lt_save_ifs
16425 # Let DOS variable expansion print the short 8.3 style file name.
16426 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16427 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16428 done
16429 IFS=$lt_save_ifs
16430 # Convert to MSYS style.
16431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16432 ;;
16433 cygwin*)
16434 # Convert to unix form, then to dos form, then back to unix form
16435 # but this time dos style (no spaces!) so that the unix form looks
16436 # like /cygdrive/c/PROGRA~1:/cygdr...
16437 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16438 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16439 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16440 ;;
16441 *)
16442 sys_lib_search_path_spec=$LIB
16443 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16444 # It is most probably a Windows format PATH.
16445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16446 else
16447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16448 fi
16449 # FIXME: find the short name or the path components, as spaces are
16450 # common. (e.g. "Program Files" -> "PROGRA~1")
16451 ;;
16452 esac
16453
16454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16455 postinstall_cmds='base_file=`basename \$file`~
16456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16457 dldir=$destdir/`dirname \$dlpath`~
16458 test -d \$dldir || mkdir -p \$dldir~
16459 $install_prog $dir/$dlname \$dldir/$dlname'
16460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16461 dlpath=$dir/\$dldll~
16462 $RM \$dlpath'
16463 shlibpath_overrides_runpath=yes
16464 dynamic_linker='Win32 link.exe'
16465 ;;
16466
16467 *)
16468 # Assume MSVC wrapper
16469 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16470 dynamic_linker='Win32 ld.exe'
16471 ;;
16472 esac
16473 # FIXME: first we should search . and the directory the executable is in
16474 shlibpath_var=PATH
16475 ;;
16476
16477darwin* | rhapsody*)
16478 dynamic_linker="$host_os dyld"
16479 version_type=darwin
16480 need_lib_prefix=no
16481 need_version=no
16482 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
16483 soname_spec='$libname$release$major$shared_ext'
16484 shlibpath_overrides_runpath=yes
16485 shlibpath_var=DYLD_LIBRARY_PATH
16486 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
16487
16488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16489 ;;
16490
16491dgux*)
16492 version_type=linux # correct to gnu/linux during the next big refactor
16493 need_lib_prefix=no
16494 need_version=no
16495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16496 soname_spec='$libname$release$shared_ext$major'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 ;;
16499
16500freebsd* | dragonfly*)
16501 # DragonFly does not have aout. When/if they implement a new
16502 # versioning mechanism, adjust this.
16503 if test -x /usr/bin/objformat; then
16504 objformat=`/usr/bin/objformat`
16505 else
16506 case $host_os in
16507 freebsd[23].*) objformat=aout ;;
16508 *) objformat=elf ;;
16509 esac
16510 fi
16511 # Handle Gentoo/FreeBSD as it was Linux
16512 case $host_vendor in
16513 gentoo)
16514 version_type=linux ;;
16515 *)
16516 version_type=freebsd-$objformat ;;
16517 esac
16518
16519 case $version_type in
16520 freebsd-elf*)
16521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16522 soname_spec='$libname$release$shared_ext$major'
16523 need_version=no
16524 need_lib_prefix=no
16525 ;;
16526 freebsd-*)
16527 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16528 need_version=yes
16529 ;;
16530 linux)
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 need_lib_prefix=no
16534 need_version=no
16535 ;;
16536 esac
16537 shlibpath_var=LD_LIBRARY_PATH
16538 case $host_os in
16539 freebsd2.*)
16540 shlibpath_overrides_runpath=yes
16541 ;;
16542 freebsd3.[01]* | freebsdelf3.[01]*)
16543 shlibpath_overrides_runpath=yes
16544 hardcode_into_libs=yes
16545 ;;
16546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16548 shlibpath_overrides_runpath=no
16549 hardcode_into_libs=yes
16550 ;;
16551 *) # from 4.6 on, and DragonFly
16552 shlibpath_overrides_runpath=yes
16553 hardcode_into_libs=yes
16554 ;;
16555 esac
16556 ;;
16557
16558haiku*)
16559 version_type=linux # correct to gnu/linux during the next big refactor
16560 need_lib_prefix=no
16561 need_version=no
16562 dynamic_linker="$host_os runtime_loader"
16563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16564 soname_spec='$libname$release$shared_ext$major'
16565 shlibpath_var=LIBRARY_PATH
16566 shlibpath_overrides_runpath=no
16567 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16568 hardcode_into_libs=yes
16569 ;;
16570
16571hpux9* | hpux10* | hpux11*)
16572 # Give a soname corresponding to the major version so that dld.sl refuses to
16573 # link against other versions.
16574 version_type=sunos
16575 need_lib_prefix=no
16576 need_version=no
16577 case $host_cpu in
16578 ia64*)
16579 shrext_cmds='.so'
16580 hardcode_into_libs=yes
16581 dynamic_linker="$host_os dld.so"
16582 shlibpath_var=LD_LIBRARY_PATH
16583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16585 soname_spec='$libname$release$shared_ext$major'
16586 if test 32 = "$HPUX_IA64_MODE"; then
16587 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16588 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16589 else
16590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16591 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16592 fi
16593 ;;
16594 hppa*64*)
16595 shrext_cmds='.sl'
16596 hardcode_into_libs=yes
16597 dynamic_linker="$host_os dld.sl"
16598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16601 soname_spec='$libname$release$shared_ext$major'
16602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16604 ;;
16605 *)
16606 shrext_cmds='.sl'
16607 dynamic_linker="$host_os dld.sl"
16608 shlibpath_var=SHLIB_PATH
16609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16611 soname_spec='$libname$release$shared_ext$major'
16612 ;;
16613 esac
16614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16615 postinstall_cmds='chmod 555 $lib'
16616 # or fails outright, so override atomically:
16617 install_override_mode=555
16618 ;;
16619
16620interix[3-9]*)
16621 version_type=linux # correct to gnu/linux during the next big refactor
16622 need_lib_prefix=no
16623 need_version=no
16624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16625 soname_spec='$libname$release$shared_ext$major'
16626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16627 shlibpath_var=LD_LIBRARY_PATH
16628 shlibpath_overrides_runpath=no
16629 hardcode_into_libs=yes
16630 ;;
16631
16632irix5* | irix6* | nonstopux*)
16633 case $host_os in
16634 nonstopux*) version_type=nonstopux ;;
16635 *)
16636 if test yes = "$lt_cv_prog_gnu_ld"; then
16637 version_type=linux # correct to gnu/linux during the next big refactor
16638 else
16639 version_type=irix
16640 fi ;;
16641 esac
16642 need_lib_prefix=no
16643 need_version=no
16644 soname_spec='$libname$release$shared_ext$major'
16645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16646 case $host_os in
16647 irix5* | nonstopux*)
16648 libsuff= shlibsuff=
16649 ;;
16650 *)
16651 case $LD in # libtool.m4 will add one of these switches to LD
16652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16653 libsuff= shlibsuff= libmagic=32-bit;;
16654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16655 libsuff=32 shlibsuff=N32 libmagic=N32;;
16656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16658 *) libsuff= shlibsuff= libmagic=never-match;;
16659 esac
16660 ;;
16661 esac
16662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16663 shlibpath_overrides_runpath=no
16664 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16665 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16666 hardcode_into_libs=yes
16667 ;;
16668
16669# No shared lib support for Linux oldld, aout, or coff.
16670linux*oldld* | linux*aout* | linux*coff*)
16671 dynamic_linker=no
16672 ;;
16673
16674linux*android*)
16675 version_type=none # Android doesn't support versioned libraries.
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='$libname$release$shared_ext'
16679 soname_spec='$libname$release$shared_ext'
16680 finish_cmds=
16681 shlibpath_var=LD_LIBRARY_PATH
16682 shlibpath_overrides_runpath=yes
16683
16684 # This implies no fast_install, which is unacceptable.
16685 # Some rework will be needed to allow for fast_install
16686 # before this can be enabled.
16687 hardcode_into_libs=yes
16688
16689 dynamic_linker='Android linker'
16690 # Don't embed -rpath directories since the linker doesn't support them.
16691 hardcode_libdir_flag_spec_CXX='-L$libdir'
16692 ;;
16693
16694# This must be glibc/ELF.
16695linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16696 version_type=linux # correct to gnu/linux during the next big refactor
16697 need_lib_prefix=no
16698 need_version=no
16699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16700 soname_spec='$libname$release$shared_ext$major'
16701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16702 shlibpath_var=LD_LIBRARY_PATH
16703 shlibpath_overrides_runpath=no
16704
16705 # Some binutils ld are patched to set DT_RUNPATH
16706 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16707 $as_echo_n "(cached) " >&6
16708else
16709 lt_cv_shlibpath_overrides_runpath=no
16710 save_LDFLAGS=$LDFLAGS
16711 save_libdir=$libdir
16712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h. */
16716
16717int
16718main ()
16719{
16720
16721 ;
16722 return 0;
16723}
16724_ACEOF
16725if ac_fn_cxx_try_link "$LINENO"; then :
16726 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16727 lt_cv_shlibpath_overrides_runpath=yes
16728fi
16729fi
16730rm -f core conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16732 LDFLAGS=$save_LDFLAGS
16733 libdir=$save_libdir
16734
16735fi
16736
16737 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16738
16739 # This implies no fast_install, which is unacceptable.
16740 # Some rework will be needed to allow for fast_install
16741 # before this can be enabled.
16742 hardcode_into_libs=yes
16743
16744 # Ideally, we could use ldconfig to report *all* directores which are
16745 # searched for libraries, however this is still not possible. Aside from not
16746 # being certain /sbin/ldconfig is available, command
16747 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16748 # even though it is searched at run-time. Try to do the best guess by
16749 # appending ld.so.conf contents (and includes) to the search path.
16750 if test -f /etc/ld.so.conf; then
16751 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' ' '`
16752 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16753 fi
16754
16755 # We used to test for /lib/ld.so.1 and disable shared libraries on
16756 # powerpc, because MkLinux only supported shared libraries with the
16757 # GNU dynamic linker. Since this was broken with cross compilers,
16758 # most powerpc-linux boxes support dynamic linking these days and
16759 # people can always --disable-shared, the test was removed, and we
16760 # assume the GNU/Linux dynamic linker is in use.
16761 dynamic_linker='GNU/Linux ld.so'
16762 ;;
16763
16764netbsd*)
16765 version_type=sunos
16766 need_lib_prefix=no
16767 need_version=no
16768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16769 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16771 dynamic_linker='NetBSD (a.out) ld.so'
16772 else
16773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16774 soname_spec='$libname$release$shared_ext$major'
16775 dynamic_linker='NetBSD ld.elf_so'
16776 fi
16777 shlibpath_var=LD_LIBRARY_PATH
16778 shlibpath_overrides_runpath=yes
16779 hardcode_into_libs=yes
16780 ;;
16781
16782newsos6)
16783 version_type=linux # correct to gnu/linux during the next big refactor
16784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 shlibpath_overrides_runpath=yes
16787 ;;
16788
16789*nto* | *qnx*)
16790 version_type=qnx
16791 need_lib_prefix=no
16792 need_version=no
16793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16794 soname_spec='$libname$release$shared_ext$major'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 shlibpath_overrides_runpath=no
16797 hardcode_into_libs=yes
16798 dynamic_linker='ldqnx.so'
16799 ;;
16800
16801openbsd* | bitrig*)
16802 version_type=sunos
16803 sys_lib_dlsearch_path_spec=/usr/lib
16804 need_lib_prefix=no
16805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16806 need_version=no
16807 else
16808 need_version=yes
16809 fi
16810 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 shlibpath_overrides_runpath=yes
16814 ;;
16815
16816os2*)
16817 libname_spec='$name'
16818 version_type=windows
16819 shrext_cmds=.dll
16820 need_version=no
16821 need_lib_prefix=no
16822 # OS/2 can only load a DLL with a base name of 8 characters or less.
16823 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16824 v=$($ECHO $release$versuffix | tr -d .-);
16825 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16826 $ECHO $n$v`$shared_ext'
16827 library_names_spec='${libname}_dll.$libext'
16828 dynamic_linker='OS/2 ld.exe'
16829 shlibpath_var=BEGINLIBPATH
16830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16832 postinstall_cmds='base_file=`basename \$file`~
16833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16834 dldir=$destdir/`dirname \$dlpath`~
16835 test -d \$dldir || mkdir -p \$dldir~
16836 $install_prog $dir/$dlname \$dldir/$dlname~
16837 chmod a+x \$dldir/$dlname~
16838 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16839 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16840 fi'
16841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16842 dlpath=$dir/\$dldll~
16843 $RM \$dlpath'
16844 ;;
16845
16846osf3* | osf4* | osf5*)
16847 version_type=osf
16848 need_lib_prefix=no
16849 need_version=no
16850 soname_spec='$libname$release$shared_ext$major'
16851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16852 shlibpath_var=LD_LIBRARY_PATH
16853 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16855 ;;
16856
16857rdos*)
16858 dynamic_linker=no
16859 ;;
16860
16861solaris*)
16862 version_type=linux # correct to gnu/linux during the next big refactor
16863 need_lib_prefix=no
16864 need_version=no
16865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16866 soname_spec='$libname$release$shared_ext$major'
16867 shlibpath_var=LD_LIBRARY_PATH
16868 shlibpath_overrides_runpath=yes
16869 hardcode_into_libs=yes
16870 # ldd complains unless libraries are executable
16871 postinstall_cmds='chmod +x $lib'
16872 ;;
16873
16874sunos4*)
16875 version_type=sunos
16876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 shlibpath_overrides_runpath=yes
16880 if test yes = "$with_gnu_ld"; then
16881 need_lib_prefix=no
16882 fi
16883 need_version=yes
16884 ;;
16885
16886sysv4 | sysv4.3*)
16887 version_type=linux # correct to gnu/linux during the next big refactor
16888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16889 soname_spec='$libname$release$shared_ext$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 case $host_vendor in
16892 sni)
16893 shlibpath_overrides_runpath=no
16894 need_lib_prefix=no
16895 runpath_var=LD_RUN_PATH
16896 ;;
16897 siemens)
16898 need_lib_prefix=no
16899 ;;
16900 motorola)
16901 need_lib_prefix=no
16902 need_version=no
16903 shlibpath_overrides_runpath=no
16904 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16905 ;;
16906 esac
16907 ;;
16908
16909sysv4*MP*)
16910 if test -d /usr/nec; then
16911 version_type=linux # correct to gnu/linux during the next big refactor
16912 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16913 soname_spec='$libname$shared_ext.$major'
16914 shlibpath_var=LD_LIBRARY_PATH
16915 fi
16916 ;;
16917
16918sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16919 version_type=sco
16920 need_lib_prefix=no
16921 need_version=no
16922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16923 soname_spec='$libname$release$shared_ext$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath=yes
16926 hardcode_into_libs=yes
16927 if test yes = "$with_gnu_ld"; then
16928 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16929 else
16930 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16931 case $host_os in
16932 sco3.2v5*)
16933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16934 ;;
16935 esac
16936 fi
16937 sys_lib_dlsearch_path_spec='/usr/lib'
16938 ;;
16939
16940tpf*)
16941 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16942 version_type=linux # correct to gnu/linux during the next big refactor
16943 need_lib_prefix=no
16944 need_version=no
16945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16946 shlibpath_var=LD_LIBRARY_PATH
16947 shlibpath_overrides_runpath=no
16948 hardcode_into_libs=yes
16949 ;;
16950
16951uts4*)
16952 version_type=linux # correct to gnu/linux during the next big refactor
16953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16954 soname_spec='$libname$release$shared_ext$major'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 ;;
16957
16958*)
16959 dynamic_linker=no
16960 ;;
16961esac
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16963$as_echo "$dynamic_linker" >&6; }
16964test no = "$dynamic_linker" && can_build_shared=no
16965
16966variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16967if test yes = "$GCC"; then
16968 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16969fi
16970
16971if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16972 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16973fi
16974
16975if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16976 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16977fi
16978
16979# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16980configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16981
16982# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16983func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16984
16985# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16986configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17028$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17029hardcode_action_CXX=
17030if test -n "$hardcode_libdir_flag_spec_CXX" ||
17031 test -n "$runpath_var_CXX" ||
17032 test yes = "$hardcode_automatic_CXX"; then
17033
17034 # We can hardcode non-existent directories.
17035 if test no != "$hardcode_direct_CXX" &&
17036 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17037 # have to relink, otherwise we might link with an installed library
17038 # when we should be linking with a yet-to-be-installed one
17039 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17040 test no != "$hardcode_minus_L_CXX"; then
17041 # Linking always hardcodes the temporary library directory.
17042 hardcode_action_CXX=relink
17043 else
17044 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17045 hardcode_action_CXX=immediate
17046 fi
17047else
17048 # We cannot hardcode anything, or else we can only hardcode existing
17049 # directories.
17050 hardcode_action_CXX=unsupported
17051fi
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17053$as_echo "$hardcode_action_CXX" >&6; }
17054
17055if test relink = "$hardcode_action_CXX" ||
17056 test yes = "$inherit_rpath_CXX"; then
17057 # Fast installation is not supported
17058 enable_fast_install=no
17059elif test yes = "$shlibpath_overrides_runpath" ||
17060 test no = "$enable_shared"; then
17061 # Fast installation is not necessary
17062 enable_fast_install=needless
17063fi
17064
17065
17066
17067
17068
17069
17070
17071 fi # test -n "$compiler"
17072
17073 CC=$lt_save_CC
17074 CFLAGS=$lt_save_CFLAGS
17075 LDCXX=$LD
17076 LD=$lt_save_LD
17077 GCC=$lt_save_GCC
17078 with_gnu_ld=$lt_save_with_gnu_ld
17079 lt_cv_path_LDCXX=$lt_cv_path_LD
17080 lt_cv_path_LD=$lt_save_path_LD
17081 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17082 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17083fi # test yes != "$_lt_caught_CXX_error"
17084
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017085ac_ext=cpp
17086ac_cpp='$CXXCPP $CPPFLAGS'
17087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17090
17091
17092if test "$GCC" = yes; then :
17093
17094
17095
17096
17097for flag in -Wall -Wextra; do
17098 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17100$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17101if eval \${$as_CACHEVAR+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103else
17104
17105 ax_check_save_flags=$CXXFLAGS
17106 CXXFLAGS="$CXXFLAGS $flag"
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h. */
17109
17110int
17111main ()
17112{
17113
17114 ;
17115 return 0;
17116}
17117_ACEOF
17118if ac_fn_cxx_try_compile "$LINENO"; then :
17119 eval "$as_CACHEVAR=yes"
17120else
17121 eval "$as_CACHEVAR=no"
17122fi
17123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 CXXFLAGS=$ax_check_save_flags
17125fi
17126eval ac_res=\$$as_CACHEVAR
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17128$as_echo "$ac_res" >&6; }
17129if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17130
17131if ${CXXFLAGS+:} false; then :
17132
17133 case " $CXXFLAGS " in #(
17134 *" $flag "*) :
17135 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
17136 (: CXXFLAGS already contains $flag) 2>&5
17137 ac_status=$?
17138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17139 test $ac_status = 0; } ;; #(
17140 *) :
17141
17142 as_fn_append CXXFLAGS " $flag"
17143 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
17144 (: CXXFLAGS="$CXXFLAGS") 2>&5
17145 ac_status=$?
17146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17147 test $ac_status = 0; }
17148 ;;
17149esac
17150
17151else
17152
17153 CXXFLAGS=$flag
17154 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
17155 (: CXXFLAGS="$CXXFLAGS") 2>&5
17156 ac_status=$?
17157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158 test $ac_status = 0; }
17159
17160fi
17161
17162else
17163 :
17164fi
17165
17166done
17167
17168
17169
17170
17171
17172for flag in -fexceptions; do
17173 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17175$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17176if eval \${$as_CACHEVAR+:} false; then :
17177 $as_echo_n "(cached) " >&6
17178else
17179
17180 ax_check_save_flags=$CXXFLAGS
17181 CXXFLAGS="$CXXFLAGS $flag"
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183/* end confdefs.h. */
17184
17185int
17186main ()
17187{
17188
17189 ;
17190 return 0;
17191}
17192_ACEOF
17193if ac_fn_cxx_try_compile "$LINENO"; then :
17194 eval "$as_CACHEVAR=yes"
17195else
17196 eval "$as_CACHEVAR=no"
17197fi
17198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199 CXXFLAGS=$ax_check_save_flags
17200fi
17201eval ac_res=\$$as_CACHEVAR
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17203$as_echo "$ac_res" >&6; }
17204if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17205
17206if ${CXXFLAGS+:} false; then :
17207
17208 case " $CXXFLAGS " in #(
17209 *" $flag "*) :
17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
17211 (: CXXFLAGS already contains $flag) 2>&5
17212 ac_status=$?
17213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214 test $ac_status = 0; } ;; #(
17215 *) :
17216
17217 as_fn_append CXXFLAGS " $flag"
17218 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
17219 (: CXXFLAGS="$CXXFLAGS") 2>&5
17220 ac_status=$?
17221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17222 test $ac_status = 0; }
17223 ;;
17224esac
17225
17226else
17227
17228 CXXFLAGS=$flag
17229 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
17230 (: CXXFLAGS="$CXXFLAGS") 2>&5
17231 ac_status=$?
17232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17233 test $ac_status = 0; }
17234
17235fi
17236
17237else
17238 :
17239fi
17240
17241done
17242
17243
17244
17245
17246
17247for flag in -fno-strict-aliasing; do
17248 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
17249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
17250$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
17251if eval \${$as_CACHEVAR+:} false; then :
17252 $as_echo_n "(cached) " >&6
17253else
17254
17255 ax_check_save_flags=$CXXFLAGS
17256 CXXFLAGS="$CXXFLAGS $flag"
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h. */
17259
17260int
17261main ()
17262{
17263
17264 ;
17265 return 0;
17266}
17267_ACEOF
17268if ac_fn_cxx_try_compile "$LINENO"; then :
17269 eval "$as_CACHEVAR=yes"
17270else
17271 eval "$as_CACHEVAR=no"
17272fi
17273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 CXXFLAGS=$ax_check_save_flags
17275fi
17276eval ac_res=\$$as_CACHEVAR
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17278$as_echo "$ac_res" >&6; }
17279if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17280
17281if ${CXXFLAGS+:} false; then :
17282
17283 case " $CXXFLAGS " in #(
17284 *" $flag "*) :
17285 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
17286 (: CXXFLAGS already contains $flag) 2>&5
17287 ac_status=$?
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; } ;; #(
17290 *) :
17291
17292 as_fn_append CXXFLAGS " $flag"
17293 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
17294 (: CXXFLAGS="$CXXFLAGS") 2>&5
17295 ac_status=$?
17296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17297 test $ac_status = 0; }
17298 ;;
17299esac
17300
17301else
17302
17303 CXXFLAGS=$flag
17304 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
17305 (: CXXFLAGS="$CXXFLAGS") 2>&5
17306 ac_status=$?
17307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17308 test $ac_status = 0; }
17309
17310fi
17311
17312else
17313 :
17314fi
17315
17316done
17317
17318fi
Haibo Huangb16e0172018-07-02 14:40:07 -070017319ac_ext=c
17320ac_cpp='$CPP $CPPFLAGS'
17321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17323ac_compiler_gnu=$ac_cv_c_compiler_gnu
17324
17325
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017326if test "$GCC" = yes; then :
Haibo Huangb16e0172018-07-02 14:40:07 -070017327
17328
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017329
17330
17331for flag in -fno-strict-aliasing; do
17332 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
17333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
17334$as_echo_n "checking whether the linker accepts $flag... " >&6; }
17335if eval \${$as_CACHEVAR+:} false; then :
17336 $as_echo_n "(cached) " >&6
17337else
17338
17339 ax_check_save_flags=$LDFLAGS
17340 LDFLAGS="$LDFLAGS $flag"
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070017342/* end confdefs.h. */
17343
17344int
17345main ()
17346{
17347
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352if ac_fn_c_try_link "$LINENO"; then :
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017353 eval "$as_CACHEVAR=yes"
Haibo Huangb16e0172018-07-02 14:40:07 -070017354else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017355 eval "$as_CACHEVAR=no"
Haibo Huangb16e0172018-07-02 14:40:07 -070017356fi
17357rm -f core conftest.err conftest.$ac_objext \
17358 conftest$ac_exeext conftest.$ac_ext
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017359 LDFLAGS=$ax_check_save_flags
17360fi
17361eval ac_res=\$$as_CACHEVAR
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17363$as_echo "$ac_res" >&6; }
17364if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
Haibo Huangb16e0172018-07-02 14:40:07 -070017365
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017366if ${LDFLAGS+:} false; then :
17367
17368 case " $LDFLAGS " in #(
17369 *" $flag "*) :
17370 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
17371 (: LDFLAGS already contains $flag) 2>&5
17372 ac_status=$?
17373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17374 test $ac_status = 0; } ;; #(
17375 *) :
17376
17377 as_fn_append LDFLAGS " $flag"
17378 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
17379 (: LDFLAGS="$LDFLAGS") 2>&5
17380 ac_status=$?
17381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17382 test $ac_status = 0; }
17383 ;;
17384esac
17385
17386else
17387
17388 LDFLAGS=$flag
17389 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
17390 (: LDFLAGS="$LDFLAGS") 2>&5
17391 ac_status=$?
17392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; }
17394
17395fi
17396
17397else
17398 :
17399fi
17400
17401done
17402
17403fi
17404
Haibo Huang40a71912019-10-11 11:13:39 -070017405case "$LD" in #(
17406 *clang*) :
17407 case "${host_os}" in #(
17408 *linux*) :
17409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' ;; #(
17410 *) :
17411 ;;
17412esac ;; #(
17413 *) :
17414 ;;
17415esac
17416
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility" >&5
17418$as_echo_n "checking whether compiler supports visibility... " >&6; }
17419if ${expatcfg_cv_compiler_supports_visibility+:} false; then :
17420 $as_echo_n "(cached) " >&6
17421else
17422 expatcfg_cv_compiler_supports_visibility=no
17423 OLDFLAGS=$CFLAGS
17424 as_fn_append CFLAGS " -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426/* end confdefs.h. */
17427
17428 void __attribute__((visibility("default"))) foo(void);
17429 void foo(void) {}
17430
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"; then :
17433 expatcfg_cv_compiler_supports_visibility=yes
17434fi
17435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 CFLAGS=$OLDFLAGS
17437fi
17438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $expatcfg_cv_compiler_supports_visibility" >&5
17439$as_echo "$expatcfg_cv_compiler_supports_visibility" >&6; }
17440 if test "$expatcfg_cv_compiler_supports_visibility" = yes; then :
17441
17442
17443if ${CFLAGS+:} false; then :
17444
17445 case " $CFLAGS " in #(
17446 *" -fvisibility=hidden "*) :
17447 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fvisibility=hidden"; } >&5
17448 (: CFLAGS already contains -fvisibility=hidden) 2>&5
17449 ac_status=$?
17450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17451 test $ac_status = 0; } ;; #(
17452 *) :
17453
17454 as_fn_append CFLAGS " -fvisibility=hidden"
17455 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17456 (: CFLAGS="$CFLAGS") 2>&5
17457 ac_status=$?
17458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17459 test $ac_status = 0; }
17460 ;;
17461esac
17462
17463else
17464
17465 CFLAGS=-fvisibility=hidden
17466 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17467 (: CFLAGS="$CFLAGS") 2>&5
17468 ac_status=$?
17469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17470 test $ac_status = 0; }
17471
17472fi
17473
17474
17475if ${CFLAGS+:} false; then :
17476
17477 case " $CFLAGS " in #(
17478 *" -DXML_ENABLE_VISIBILITY=1 "*) :
17479 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -DXML_ENABLE_VISIBILITY=1"; } >&5
17480 (: CFLAGS already contains -DXML_ENABLE_VISIBILITY=1) 2>&5
17481 ac_status=$?
17482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17483 test $ac_status = 0; } ;; #(
17484 *) :
17485
17486 as_fn_append CFLAGS " -DXML_ENABLE_VISIBILITY=1"
17487 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17488 (: CFLAGS="$CFLAGS") 2>&5
17489 ac_status=$?
17490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17491 test $ac_status = 0; }
17492 ;;
17493esac
17494
17495else
17496
17497 CFLAGS=-DXML_ENABLE_VISIBILITY=1
17498 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17499 (: CFLAGS="$CFLAGS") 2>&5
17500 ac_status=$?
17501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17502 test $ac_status = 0; }
17503
17504fi
17505
Haibo Huangb16e0172018-07-02 14:40:07 -070017506fi
17507
17508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17509$as_echo_n "checking for ANSI C header files... " >&6; }
17510if ${ac_cv_header_stdc+:} false; then :
17511 $as_echo_n "(cached) " >&6
17512else
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h. */
17515#include <stdlib.h>
17516#include <stdarg.h>
17517#include <string.h>
17518#include <float.h>
17519
17520int
17521main ()
17522{
17523
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528if ac_fn_c_try_compile "$LINENO"; then :
17529 ac_cv_header_stdc=yes
17530else
17531 ac_cv_header_stdc=no
17532fi
17533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534
17535if test $ac_cv_header_stdc = yes; then
17536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538/* end confdefs.h. */
17539#include <string.h>
17540
17541_ACEOF
17542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17543 $EGREP "memchr" >/dev/null 2>&1; then :
17544
17545else
17546 ac_cv_header_stdc=no
17547fi
17548rm -f conftest*
17549
17550fi
17551
17552if test $ac_cv_header_stdc = yes; then
17553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555/* end confdefs.h. */
17556#include <stdlib.h>
17557
17558_ACEOF
17559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17560 $EGREP "free" >/dev/null 2>&1; then :
17561
17562else
17563 ac_cv_header_stdc=no
17564fi
17565rm -f conftest*
17566
17567fi
17568
17569if test $ac_cv_header_stdc = yes; then
17570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17571 if test "$cross_compiling" = yes; then :
17572 :
17573else
17574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575/* end confdefs.h. */
17576#include <ctype.h>
17577#include <stdlib.h>
17578#if ((' ' & 0x0FF) == 0x020)
17579# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17580# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17581#else
17582# define ISLOWER(c) \
17583 (('a' <= (c) && (c) <= 'i') \
17584 || ('j' <= (c) && (c) <= 'r') \
17585 || ('s' <= (c) && (c) <= 'z'))
17586# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17587#endif
17588
17589#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17590int
17591main ()
17592{
17593 int i;
17594 for (i = 0; i < 256; i++)
17595 if (XOR (islower (i), ISLOWER (i))
17596 || toupper (i) != TOUPPER (i))
17597 return 2;
17598 return 0;
17599}
17600_ACEOF
17601if ac_fn_c_try_run "$LINENO"; then :
17602
17603else
17604 ac_cv_header_stdc=no
17605fi
17606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17607 conftest.$ac_objext conftest.beam conftest.$ac_ext
17608fi
17609
17610fi
17611fi
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17613$as_echo "$ac_cv_header_stdc" >&6; }
17614if test $ac_cv_header_stdc = yes; then
17615
17616$as_echo "#define STDC_HEADERS 1" >>confdefs.h
17617
17618fi
17619
17620
17621
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070017623$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17624if ${ac_cv_c_bigendian+:} false; then :
17625 $as_echo_n "(cached) " >&6
17626else
17627 ac_cv_c_bigendian=unknown
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017628 # See if we're dealing with a universal compiler.
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630/* end confdefs.h. */
17631#ifndef __APPLE_CC__
17632 not a universal capable compiler
17633 #endif
17634 typedef int dummy;
17635
17636_ACEOF
17637if ac_fn_c_try_compile "$LINENO"; then :
17638
17639 # Check for potential -arch flags. It is not universal unless
17640 # there are at least two -arch flags with different values.
17641 ac_arch=
17642 ac_prev=
17643 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17644 if test -n "$ac_prev"; then
17645 case $ac_word in
17646 i?86 | x86_64 | ppc | ppc64)
17647 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17648 ac_arch=$ac_word
17649 else
17650 ac_cv_c_bigendian=universal
17651 break
17652 fi
17653 ;;
17654 esac
17655 ac_prev=
17656 elif test "x$ac_word" = "x-arch"; then
17657 ac_prev=arch
17658 fi
17659 done
17660fi
17661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 if test $ac_cv_c_bigendian = unknown; then
17663 # See if sys/param.h defines the BYTE_ORDER macro.
17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070017665/* end confdefs.h. */
17666#include <sys/types.h>
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017667 #include <sys/param.h>
17668
Haibo Huangb16e0172018-07-02 14:40:07 -070017669int
17670main ()
17671{
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017672#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17673 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17674 && LITTLE_ENDIAN)
17675 bogus endian macros
17676 #endif
Haibo Huangb16e0172018-07-02 14:40:07 -070017677
Haibo Huangb16e0172018-07-02 14:40:07 -070017678 ;
17679 return 0;
17680}
17681_ACEOF
17682if ac_fn_c_try_compile "$LINENO"; then :
17683 # It does; now see whether it defined to BIG_ENDIAN or not.
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070017685/* end confdefs.h. */
17686#include <sys/types.h>
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017687 #include <sys/param.h>
17688
Haibo Huangb16e0172018-07-02 14:40:07 -070017689int
17690main ()
17691{
Haibo Huangb16e0172018-07-02 14:40:07 -070017692#if BYTE_ORDER != BIG_ENDIAN
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017693 not big endian
17694 #endif
17695
Haibo Huangb16e0172018-07-02 14:40:07 -070017696 ;
17697 return 0;
17698}
17699_ACEOF
17700if ac_fn_c_try_compile "$LINENO"; then :
17701 ac_cv_c_bigendian=yes
17702else
17703 ac_cv_c_bigendian=no
17704fi
17705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706fi
17707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017708 fi
17709 if test $ac_cv_c_bigendian = unknown; then
17710 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712/* end confdefs.h. */
17713#include <limits.h>
17714
17715int
17716main ()
17717{
17718#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17719 bogus endian macros
17720 #endif
17721
17722 ;
17723 return 0;
17724}
17725_ACEOF
17726if ac_fn_c_try_compile "$LINENO"; then :
17727 # It does; now see whether it defined to _BIG_ENDIAN or not.
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729/* end confdefs.h. */
17730#include <limits.h>
17731
17732int
17733main ()
17734{
17735#ifndef _BIG_ENDIAN
17736 not big endian
17737 #endif
17738
17739 ;
17740 return 0;
17741}
17742_ACEOF
17743if ac_fn_c_try_compile "$LINENO"; then :
17744 ac_cv_c_bigendian=yes
17745else
17746 ac_cv_c_bigendian=no
17747fi
17748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749fi
17750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17751 fi
17752 if test $ac_cv_c_bigendian = unknown; then
17753 # Compile a test program.
17754 if test "$cross_compiling" = yes; then :
17755 # Try to guess by grepping values from an object file.
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757/* end confdefs.h. */
17758short int ascii_mm[] =
17759 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17760 short int ascii_ii[] =
17761 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17762 int use_ascii (int i) {
17763 return ascii_mm[i] + ascii_ii[i];
17764 }
17765 short int ebcdic_ii[] =
17766 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17767 short int ebcdic_mm[] =
17768 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17769 int use_ebcdic (int i) {
17770 return ebcdic_mm[i] + ebcdic_ii[i];
17771 }
17772 extern int foo;
17773
17774int
17775main ()
17776{
17777return use_ascii (foo) == use_ebcdic (foo);
17778 ;
17779 return 0;
17780}
17781_ACEOF
17782if ac_fn_c_try_compile "$LINENO"; then :
17783 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17784 ac_cv_c_bigendian=yes
17785 fi
17786 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17787 if test "$ac_cv_c_bigendian" = unknown; then
17788 ac_cv_c_bigendian=no
17789 else
17790 # finding both strings is unlikely to happen, but who knows?
17791 ac_cv_c_bigendian=unknown
17792 fi
17793 fi
17794fi
17795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070017796else
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798/* end confdefs.h. */
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017799$ac_includes_default
17800int
17801main ()
17802{
17803
17804 /* Are we little or big endian? From Harbison&Steele. */
17805 union
17806 {
17807 long int l;
17808 char c[sizeof (long int)];
17809 } u;
17810 u.l = 1;
17811 return u.c[sizeof (long int) - 1] == 1;
17812
17813 ;
17814 return 0;
Haibo Huangb16e0172018-07-02 14:40:07 -070017815}
17816_ACEOF
17817if ac_fn_c_try_run "$LINENO"; then :
17818 ac_cv_c_bigendian=no
17819else
17820 ac_cv_c_bigendian=yes
17821fi
17822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17823 conftest.$ac_objext conftest.beam conftest.$ac_ext
17824fi
17825
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017826 fi
Haibo Huangb16e0172018-07-02 14:40:07 -070017827fi
17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17829$as_echo "$ac_cv_c_bigendian" >&6; }
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017830 case $ac_cv_c_bigendian in #(
17831 yes)
17832 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Haibo Huangb16e0172018-07-02 14:40:07 -070017833
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017834 BYTEORDER=4321;; #(
17835 no)
17836 BYTEORDER=1234 ;; #(
17837 universal)
Haibo Huangb16e0172018-07-02 14:40:07 -070017838
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017839$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Haibo Huangb16e0172018-07-02 14:40:07 -070017840
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017841 ;; #(
17842 *)
17843 as_fn_error $? "unknown endianness
17844 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17845 esac
17846
Haibo Huangb16e0172018-07-02 14:40:07 -070017847
17848cat >>confdefs.h <<_ACEOF
17849#define BYTEORDER $BYTEORDER
17850_ACEOF
17851
Haibo Huangb16e0172018-07-02 14:40:07 -070017852
17853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17854$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17855if ${ac_cv_c_const+:} false; then :
17856 $as_echo_n "(cached) " >&6
17857else
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859/* end confdefs.h. */
17860
17861int
17862main ()
17863{
17864
17865#ifndef __cplusplus
17866 /* Ultrix mips cc rejects this sort of thing. */
17867 typedef int charset[2];
17868 const charset cs = { 0, 0 };
17869 /* SunOS 4.1.1 cc rejects this. */
17870 char const *const *pcpcc;
17871 char **ppc;
17872 /* NEC SVR4.0.2 mips cc rejects this. */
17873 struct point {int x, y;};
17874 static struct point const zero = {0,0};
17875 /* AIX XL C 1.02.0.0 rejects this.
17876 It does not let you subtract one const X* pointer from another in
17877 an arm of an if-expression whose if-part is not a constant
17878 expression */
17879 const char *g = "string";
17880 pcpcc = &g + (g ? g-g : 0);
17881 /* HPUX 7.0 cc rejects these. */
17882 ++pcpcc;
17883 ppc = (char**) pcpcc;
17884 pcpcc = (char const *const *) ppc;
17885 { /* SCO 3.2v4 cc rejects this sort of thing. */
17886 char tx;
17887 char *t = &tx;
17888 char const *s = 0 ? (char *) 0 : (char const *) 0;
17889
17890 *t++ = 0;
17891 if (s) return 0;
17892 }
17893 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17894 int x[] = {25, 17};
17895 const int *foo = &x[0];
17896 ++foo;
17897 }
17898 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17899 typedef const int *iptr;
17900 iptr p = 0;
17901 ++p;
17902 }
17903 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17904 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17905 struct s { int j; const int *ap[3]; } bx;
17906 struct s *b = &bx; b->j = 5;
17907 }
17908 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17909 const int foo = 10;
17910 if (!foo) return 0;
17911 }
17912 return !cs[0] && !zero.x;
17913#endif
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919if ac_fn_c_try_compile "$LINENO"; then :
17920 ac_cv_c_const=yes
17921else
17922 ac_cv_c_const=no
17923fi
17924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17925fi
17926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17927$as_echo "$ac_cv_c_const" >&6; }
17928if test $ac_cv_c_const = no; then
17929
17930$as_echo "#define const /**/" >>confdefs.h
17931
17932fi
17933
17934ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17935if test "x$ac_cv_type_size_t" = xyes; then :
17936
17937else
17938
17939cat >>confdefs.h <<_ACEOF
17940#define size_t unsigned int
17941_ACEOF
17942
17943fi
17944
Haibo Huangb16e0172018-07-02 14:40:07 -070017945
17946
17947# Check whether --with-xmlwf was given.
17948if test "${with_xmlwf+set}" = set; then :
17949 withval=$with_xmlwf;
17950else
17951 with_xmlwf=yes
17952fi
17953
17954 if test x${with_xmlwf} = xyes; then
17955 WITH_XMLWF_TRUE=
17956 WITH_XMLWF_FALSE='#'
17957else
17958 WITH_XMLWF_TRUE='#'
17959 WITH_XMLWF_FALSE=
17960fi
17961
17962
Haibo Huangfd5e81a2019-06-20 12:09:36 -070017963
17964# Check whether --with-examples was given.
17965if test "${with_examples+set}" = set; then :
17966 withval=$with_examples;
17967else
17968 with_examples=yes
17969fi
17970
17971 if test x${with_examples} = xyes; then
17972 WITH_EXAMPLES_TRUE=
17973 WITH_EXAMPLES_FALSE='#'
17974else
17975 WITH_EXAMPLES_TRUE='#'
17976 WITH_EXAMPLES_FALSE=
17977fi
17978
17979
17980
17981# Check whether --with-tests was given.
17982if test "${with_tests+set}" = set; then :
17983 withval=$with_tests;
17984else
17985 with_tests=yes
17986fi
17987
17988 if test x${with_tests} = xyes; then
17989 WITH_TESTS_TRUE=
17990 WITH_TESTS_FALSE='#'
17991else
17992 WITH_TESTS_TRUE='#'
17993 WITH_TESTS_FALSE=
17994fi
17995
17996
Haibo Huang40a71912019-10-11 11:13:39 -070017997
17998EXPATCFG_ON_MINGW=no
17999case "${host_os}" in #(
18000 mingw*) :
18001 EXPATCFG_ON_MINGW=yes
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: detected OS: MinGW" >&5
18003$as_echo "$as_me: detected OS: MinGW" >&6;} ;; #(
18004 *) :
18005 ;;
18006esac
18007 if test x${EXPATCFG_ON_MINGW} = xyes; then
Haibo Huangb16e0172018-07-02 14:40:07 -070018008 MINGW_TRUE=
18009 MINGW_FALSE='#'
18010else
18011 MINGW_TRUE='#'
18012 MINGW_FALSE=
18013fi
18014
Haibo Huang40a71912019-10-11 11:13:39 -070018015
Elliott Hughesaaec48e2018-08-16 16:29:01 -070018016 if echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null; then
Haibo Huangb16e0172018-07-02 14:40:07 -070018017 UNICODE_TRUE=
18018 UNICODE_FALSE='#'
18019else
18020 UNICODE_TRUE='#'
18021 UNICODE_FALSE=
18022fi
18023
18024
18025
18026
18027# Check whether --with-libbsd was given.
18028if test "${with_libbsd+set}" = set; then :
18029 withval=$with_libbsd;
18030else
18031 with_libbsd=no
18032fi
18033
18034if test "x${with_libbsd}" != xno; then :
Haibo Huangb16e0172018-07-02 14:40:07 -070018035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
18036$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
18037if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
18038 $as_echo_n "(cached) " >&6
18039else
18040 ac_check_lib_save_LIBS=$LIBS
18041LIBS="-lbsd $LIBS"
18042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043/* end confdefs.h. */
18044
18045/* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18048#ifdef __cplusplus
18049extern "C"
18050#endif
18051char arc4random_buf ();
18052int
18053main ()
18054{
18055return arc4random_buf ();
18056 ;
18057 return 0;
18058}
18059_ACEOF
18060if ac_fn_c_try_link "$LINENO"; then :
18061 ac_cv_lib_bsd_arc4random_buf=yes
18062else
18063 ac_cv_lib_bsd_arc4random_buf=no
18064fi
18065rm -f core conftest.err conftest.$ac_objext \
18066 conftest$ac_exeext conftest.$ac_ext
18067LIBS=$ac_check_lib_save_LIBS
18068fi
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
18070$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
18071if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
18072 cat >>confdefs.h <<_ACEOF
18073#define HAVE_LIBBSD 1
18074_ACEOF
18075
18076 LIBS="-lbsd $LIBS"
18077
18078else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018079 if test "x${with_libbsd}" = xyes; then :
18080 as_fn_error $? "Enforced use of libbsd cannot be satisfied." "$LINENO" 5
Haibo Huangb16e0172018-07-02 14:40:07 -070018081fi
Haibo Huangb16e0172018-07-02 14:40:07 -070018082fi
18083
Haibo Huangb16e0172018-07-02 14:40:07 -070018084fi
18085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf (BSD or libbsd)" >&5
18086$as_echo_n "checking for arc4random_buf (BSD or libbsd)... " >&6; }
18087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088/* end confdefs.h. */
18089
Haibo Huang40a71912019-10-11 11:13:39 -070018090 #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
18091 #if defined(HAVE_LIBBSD)
18092 # include <bsd/stdlib.h>
18093 #endif
18094 int main() {
18095 arc4random_buf(NULL, 0U);
18096 return 0;
18097 }
Haibo Huangb16e0172018-07-02 14:40:07 -070018098
18099_ACEOF
18100if ac_fn_c_try_link "$LINENO"; then :
18101
Haibo Huangb16e0172018-07-02 14:40:07 -070018102$as_echo "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
18103
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018105$as_echo "yes" >&6; }
Haibo Huangb16e0172018-07-02 14:40:07 -070018106else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018108$as_echo "no" >&6; }
18109
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random (BSD, macOS or libbsd)" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018111$as_echo_n "checking for arc4random (BSD, macOS or libbsd)... " >&6; }
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070018113/* end confdefs.h. */
18114
Haibo Huang40a71912019-10-11 11:13:39 -070018115 #if defined(HAVE_LIBBSD)
18116 # include <bsd/stdlib.h>
18117 #else
18118 # include <stdlib.h>
18119 #endif
18120 int main() {
Haibo Huangb16e0172018-07-02 14:40:07 -070018121 arc4random();
18122 return 0;
Haibo Huang40a71912019-10-11 11:13:39 -070018123 }
Haibo Huangb16e0172018-07-02 14:40:07 -070018124
18125_ACEOF
18126if ac_fn_c_try_link "$LINENO"; then :
18127
Haibo Huangb16e0172018-07-02 14:40:07 -070018128$as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
18129
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018131$as_echo "yes" >&6; }
Haibo Huangb16e0172018-07-02 14:40:07 -070018132else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018134$as_echo "no" >&6; }
Haibo Huangb16e0172018-07-02 14:40:07 -070018135fi
18136rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070018138fi
18139rm -f core conftest.err conftest.$ac_objext \
18140 conftest$ac_exeext conftest.$ac_ext
18141
18142
Haibo Huang40a71912019-10-11 11:13:39 -070018143# Check whether --with-getrandom was given.
18144if test "${with_getrandom+set}" = set; then :
18145 withval=$with_getrandom;
18146else
18147 with_getrandom=check
18148fi
18149
18150
18151if test "x$with_getrandom" != xno; then :
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getrandom (Linux 3.17+, glibc 2.25+)" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018153$as_echo_n "checking for getrandom (Linux 3.17+, glibc 2.25+)... " >&6; }
Haibo Huang40a71912019-10-11 11:13:39 -070018154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070018155/* end confdefs.h. */
18156
Haibo Huang40a71912019-10-11 11:13:39 -070018157 #include <stdlib.h> /* for NULL */
18158 #include <sys/random.h>
18159 int main() {
18160 return getrandom(NULL, 0U, 0U);
18161 }
Haibo Huangb16e0172018-07-02 14:40:07 -070018162
18163_ACEOF
18164if ac_fn_c_try_link "$LINENO"; then :
18165
Haibo Huangb16e0172018-07-02 14:40:07 -070018166$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h
18167
Haibo Huang40a71912019-10-11 11:13:39 -070018168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018169$as_echo "yes" >&6; }
Haibo Huangb16e0172018-07-02 14:40:07 -070018170else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018172$as_echo "no" >&6; }
Haibo Huang40a71912019-10-11 11:13:39 -070018173 if test "x$with_getrandom" = xyes; then :
18174 as_fn_error $? "enforced the use of getrandom --with-getrandom, but not detected" "$LINENO" 5
18175fi
18176fi
18177rm -f core conftest.err conftest.$ac_objext \
18178 conftest$ac_exeext conftest.$ac_ext
18179fi
Haibo Huangb16e0172018-07-02 14:40:07 -070018180
Haibo Huang40a71912019-10-11 11:13:39 -070018181
18182# Check whether --with-sys_getrandom was given.
18183if test "${with_sys_getrandom+set}" = set; then :
18184 withval=$with_sys_getrandom;
18185else
18186 with_sys_getrandom=check
18187fi
18188
18189
18190if test "x$with_sys_getrandom" != xno; then :
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall SYS_getrandom (Linux 3.17+)" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018192$as_echo_n "checking for syscall SYS_getrandom (Linux 3.17+)... " >&6; }
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070018194/* end confdefs.h. */
18195
Haibo Huang40a71912019-10-11 11:13:39 -070018196 #include <stdlib.h> /* for NULL */
18197 #include <unistd.h> /* for syscall */
18198 #include <sys/syscall.h> /* for SYS_getrandom */
18199 int main() {
18200 syscall(SYS_getrandom, NULL, 0, 0);
18201 return 0;
18202 }
Haibo Huangb16e0172018-07-02 14:40:07 -070018203
18204_ACEOF
18205if ac_fn_c_try_link "$LINENO"; then :
18206
Haibo Huangb16e0172018-07-02 14:40:07 -070018207$as_echo "#define HAVE_SYSCALL_GETRANDOM 1" >>confdefs.h
18208
Haibo Huang40a71912019-10-11 11:13:39 -070018209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018210$as_echo "yes" >&6; }
Haibo Huangb16e0172018-07-02 14:40:07 -070018211else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Haibo Huangb16e0172018-07-02 14:40:07 -070018213$as_echo "no" >&6; }
Haibo Huang40a71912019-10-11 11:13:39 -070018214 if test "x$with_sys_getrandom" = xyes; then :
18215 as_fn_error $? "enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected" "$LINENO" 5
18216fi
Haibo Huangb16e0172018-07-02 14:40:07 -070018217fi
18218rm -f core conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
Haibo Huangb16e0172018-07-02 14:40:07 -070018220fi
Haibo Huangb16e0172018-07-02 14:40:07 -070018221
18222for ac_header in fcntl.h unistd.h
18223do :
18224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18225ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18226if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18227 cat >>confdefs.h <<_ACEOF
18228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18229_ACEOF
18230
18231fi
18232
18233done
18234
18235ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18236if test "x$ac_cv_type_off_t" = xyes; then :
18237
18238else
18239
18240cat >>confdefs.h <<_ACEOF
18241#define off_t long int
18242_ACEOF
18243
18244fi
18245
18246
18247
18248
18249 for ac_header in $ac_header_list
18250do :
18251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18252ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18253"
18254if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18255 cat >>confdefs.h <<_ACEOF
18256#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18257_ACEOF
18258
18259fi
18260
18261done
18262
18263
18264
18265
18266
18267
18268
18269
18270for ac_func in getpagesize
18271do :
18272 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18273if test "x$ac_cv_func_getpagesize" = xyes; then :
18274 cat >>confdefs.h <<_ACEOF
18275#define HAVE_GETPAGESIZE 1
18276_ACEOF
18277
18278fi
18279done
18280
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18282$as_echo_n "checking for working mmap... " >&6; }
18283if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18284 $as_echo_n "(cached) " >&6
18285else
18286 if test "$cross_compiling" = yes; then :
18287 ac_cv_func_mmap_fixed_mapped=no
18288else
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290/* end confdefs.h. */
18291$ac_includes_default
18292/* malloc might have been renamed as rpl_malloc. */
18293#undef malloc
18294
18295/* Thanks to Mike Haertel and Jim Avera for this test.
18296 Here is a matrix of mmap possibilities:
18297 mmap private not fixed
18298 mmap private fixed at somewhere currently unmapped
18299 mmap private fixed at somewhere already mapped
18300 mmap shared not fixed
18301 mmap shared fixed at somewhere currently unmapped
18302 mmap shared fixed at somewhere already mapped
18303 For private mappings, we should verify that changes cannot be read()
18304 back from the file, nor mmap's back from the file at a different
18305 address. (There have been systems where private was not correctly
18306 implemented like the infamous i386 svr4.0, and systems where the
18307 VM page cache was not coherent with the file system buffer cache
18308 like early versions of FreeBSD and possibly contemporary NetBSD.)
18309 For shared mappings, we should conversely verify that changes get
18310 propagated back to all the places they're supposed to be.
18311
18312 Grep wants private fixed already mapped.
18313 The main things grep needs to know about mmap are:
18314 * does it exist and is it safe to write into the mmap'd area
18315 * how to use it (BSD variants) */
18316
18317#include <fcntl.h>
18318#include <sys/mman.h>
18319
18320#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18321char *malloc ();
18322#endif
18323
18324/* This mess was copied from the GNU getpagesize.h. */
18325#ifndef HAVE_GETPAGESIZE
18326# ifdef _SC_PAGESIZE
18327# define getpagesize() sysconf(_SC_PAGESIZE)
18328# else /* no _SC_PAGESIZE */
18329# ifdef HAVE_SYS_PARAM_H
18330# include <sys/param.h>
18331# ifdef EXEC_PAGESIZE
18332# define getpagesize() EXEC_PAGESIZE
18333# else /* no EXEC_PAGESIZE */
18334# ifdef NBPG
18335# define getpagesize() NBPG * CLSIZE
18336# ifndef CLSIZE
18337# define CLSIZE 1
18338# endif /* no CLSIZE */
18339# else /* no NBPG */
18340# ifdef NBPC
18341# define getpagesize() NBPC
18342# else /* no NBPC */
18343# ifdef PAGESIZE
18344# define getpagesize() PAGESIZE
18345# endif /* PAGESIZE */
18346# endif /* no NBPC */
18347# endif /* no NBPG */
18348# endif /* no EXEC_PAGESIZE */
18349# else /* no HAVE_SYS_PARAM_H */
18350# define getpagesize() 8192 /* punt totally */
18351# endif /* no HAVE_SYS_PARAM_H */
18352# endif /* no _SC_PAGESIZE */
18353
18354#endif /* no HAVE_GETPAGESIZE */
18355
18356int
18357main ()
18358{
18359 char *data, *data2, *data3;
18360 const char *cdata2;
18361 int i, pagesize;
18362 int fd, fd2;
18363
18364 pagesize = getpagesize ();
18365
18366 /* First, make a file with some known garbage in it. */
18367 data = (char *) malloc (pagesize);
18368 if (!data)
18369 return 1;
18370 for (i = 0; i < pagesize; ++i)
18371 *(data + i) = rand ();
18372 umask (0);
18373 fd = creat ("conftest.mmap", 0600);
18374 if (fd < 0)
18375 return 2;
18376 if (write (fd, data, pagesize) != pagesize)
18377 return 3;
18378 close (fd);
18379
18380 /* Next, check that the tail of a page is zero-filled. File must have
18381 non-zero length, otherwise we risk SIGBUS for entire page. */
18382 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18383 if (fd2 < 0)
18384 return 4;
18385 cdata2 = "";
18386 if (write (fd2, cdata2, 1) != 1)
18387 return 5;
18388 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18389 if (data2 == MAP_FAILED)
18390 return 6;
18391 for (i = 0; i < pagesize; ++i)
18392 if (*(data2 + i))
18393 return 7;
18394 close (fd2);
18395 if (munmap (data2, pagesize))
18396 return 8;
18397
18398 /* Next, try to mmap the file at a fixed address which already has
18399 something else allocated at it. If we can, also make sure that
18400 we see the same garbage. */
18401 fd = open ("conftest.mmap", O_RDWR);
18402 if (fd < 0)
18403 return 9;
18404 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18405 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18406 return 10;
18407 for (i = 0; i < pagesize; ++i)
18408 if (*(data + i) != *(data2 + i))
18409 return 11;
18410
18411 /* Finally, make sure that changes to the mapped area do not
18412 percolate back to the file as seen by read(). (This is a bug on
18413 some variants of i386 svr4.0.) */
18414 for (i = 0; i < pagesize; ++i)
18415 *(data2 + i) = *(data2 + i) + 1;
18416 data3 = (char *) malloc (pagesize);
18417 if (!data3)
18418 return 12;
18419 if (read (fd, data3, pagesize) != pagesize)
18420 return 13;
18421 for (i = 0; i < pagesize; ++i)
18422 if (*(data + i) != *(data3 + i))
18423 return 14;
18424 close (fd);
18425 return 0;
18426}
18427_ACEOF
18428if ac_fn_c_try_run "$LINENO"; then :
18429 ac_cv_func_mmap_fixed_mapped=yes
18430else
18431 ac_cv_func_mmap_fixed_mapped=no
18432fi
18433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18434 conftest.$ac_objext conftest.beam conftest.$ac_ext
18435fi
18436
18437fi
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18439$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18440if test $ac_cv_func_mmap_fixed_mapped = yes; then
18441
18442$as_echo "#define HAVE_MMAP 1" >>confdefs.h
18443
18444fi
18445rm -f conftest.mmap conftest.txt
18446
18447
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018448if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then :
18449 FILEMAP=unixfilemap
Haibo Huangb16e0172018-07-02 14:40:07 -070018450else
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018451 FILEMAP=readfilemap
Haibo Huangb16e0172018-07-02 14:40:07 -070018452fi
18453
18454
18455
18456
18457$as_echo "#define XML_NS 1" >>confdefs.h
18458
18459
18460$as_echo "#define XML_DTD 1" >>confdefs.h
18461
18462
18463$as_echo "#define XML_DEV_URANDOM 1" >>confdefs.h
18464
18465
Haibo Huang40a71912019-10-11 11:13:39 -070018466# Check whether --enable-xml-attr-info was given.
18467if test "${enable_xml_attr_info+set}" = set; then :
18468 enableval=$enable_xml_attr_info;
18469else
18470 enable_xml_attr_info=no
18471fi
18472
18473if test "x${enable_xml_attr_info}" = "xyes"; then :
18474
18475$as_echo "#define XML_ATTR_INFO 1" >>confdefs.h
18476
18477fi
18478
Haibo Huangb16e0172018-07-02 14:40:07 -070018479# Check whether --enable-xml-context was given.
18480if test "${enable_xml_context+set}" = set; then :
18481 enableval=$enable_xml_context; enable_xml_context=${enableval}
18482fi
18483
18484if test "x${enable_xml_context}" != "xno"; then :
Haibo Huangb16e0172018-07-02 14:40:07 -070018485 if test "x${enable_xml_context}" = "xyes" \
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018486 -o "x${enable_xml_context}" = "x"; then :
18487 enable_xml_context=1024
Haibo Huangb16e0172018-07-02 14:40:07 -070018488fi
18489
18490cat >>confdefs.h <<_ACEOF
18491#define XML_CONTEXT_BYTES ${enable_xml_context}
18492_ACEOF
18493
Haibo Huangb16e0172018-07-02 14:40:07 -070018494fi
18495
18496
18497# Check whether --with-docbook was given.
18498if test "${with_docbook+set}" = set; then :
18499 withval=$with_docbook;
18500else
18501 with_docbook=check
18502fi
18503
18504
18505
18506if test "x$with_docbook" != xno; then :
Elliott Hughesaaec48e2018-08-16 16:29:01 -070018507 for ac_prog in docbook2x-man db2x_docbook2man docbook2man docbook-to-man
Haibo Huangb16e0172018-07-02 14:40:07 -070018508do
18509 # Extract the first word of "$ac_prog", so it can be a program name with args.
18510set dummy $ac_prog; ac_word=$2
18511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18512$as_echo_n "checking for $ac_word... " >&6; }
18513if ${ac_cv_prog_DOCBOOK_TO_MAN+:} false; then :
18514 $as_echo_n "(cached) " >&6
18515else
18516 if test -n "$DOCBOOK_TO_MAN"; then
18517 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test.
18518else
18519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520for as_dir in $PATH
18521do
18522 IFS=$as_save_IFS
18523 test -z "$as_dir" && as_dir=.
18524 for ac_exec_ext in '' $ac_executable_extensions; do
18525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18526 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog"
18527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18528 break 2
18529 fi
18530done
18531 done
18532IFS=$as_save_IFS
18533
18534fi
18535fi
18536DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN
18537if test -n "$DOCBOOK_TO_MAN"; then
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOK_TO_MAN" >&5
18539$as_echo "$DOCBOOK_TO_MAN" >&6; }
18540else
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18542$as_echo "no" >&6; }
18543fi
18544
18545
18546 test -n "$DOCBOOK_TO_MAN" && break
18547done
Haibo Huangb16e0172018-07-02 14:40:07 -070018548
18549fi
Elliott Hughesaaec48e2018-08-16 16:29:01 -070018550if test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes; then :
18551 as_fn_error $? "Required program 'docbook2x-man' not found." "$LINENO" 5
18552fi
18553if test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno; then :
18554 if ${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase; then :
18555 as_fn_error $? "Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
18556 than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
18557 configure to command docbook2x-man of docbook2X.
18558 Or use DOCBOOK_TO_MAN=\"xmlto man --skip-validation\" if you have xmlto around.
18559 You can also configure using --without-docbook if you can do without a man
18560 page for xmlwf." "$LINENO" 5
18561fi
18562fi
Haibo Huangb16e0172018-07-02 14:40:07 -070018563
Elliott Hughesaaec48e2018-08-16 16:29:01 -070018564 if test "x${DOCBOOK_TO_MAN}" != x; then
Haibo Huangb16e0172018-07-02 14:40:07 -070018565 WITH_DOCBOOK_TRUE=
18566 WITH_DOCBOOK_FALSE='#'
18567else
18568 WITH_DOCBOOK_TRUE='#'
18569 WITH_DOCBOOK_FALSE=
18570fi
18571
18572
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018573ac_config_files="$ac_config_files Makefile expat.pc doc/Makefile examples/Makefile lib/Makefile tests/Makefile tests/benchmark/Makefile xmlwf/Makefile"
Haibo Huangb16e0172018-07-02 14:40:07 -070018574
18575ac_config_files="$ac_config_files run.sh"
18576
18577cat >confcache <<\_ACEOF
18578# This file is a shell script that caches the results of configure
18579# tests run on this system so they can be shared between configure
18580# scripts and configure runs, see configure's option --config-cache.
18581# It is not useful on other systems. If it contains results you don't
18582# want to keep, you may remove or edit it.
18583#
18584# config.status only pays attention to the cache file if you give it
18585# the --recheck option to rerun configure.
18586#
18587# `ac_cv_env_foo' variables (set or unset) will be overridden when
18588# loading this file, other *unset* `ac_cv_foo' will be assigned the
18589# following values.
18590
18591_ACEOF
18592
18593# The following way of writing the cache mishandles newlines in values,
18594# but we know of no workaround that is simple, portable, and efficient.
18595# So, we kill variables containing newlines.
18596# Ultrix sh set writes to stderr and can't be redirected directly,
18597# and sets the high bit in the cache file unless we assign to the vars.
18598(
18599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18600 eval ac_val=\$$ac_var
18601 case $ac_val in #(
18602 *${as_nl}*)
18603 case $ac_var in #(
18604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18605$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18606 esac
18607 case $ac_var in #(
18608 _ | IFS | as_nl) ;; #(
18609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18610 *) { eval $ac_var=; unset $ac_var;} ;;
18611 esac ;;
18612 esac
18613 done
18614
18615 (set) 2>&1 |
18616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18617 *${as_nl}ac_space=\ *)
18618 # `set' does not quote correctly, so add quotes: double-quote
18619 # substitution turns \\\\ into \\, and sed turns \\ into \.
18620 sed -n \
18621 "s/'/'\\\\''/g;
18622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18623 ;; #(
18624 *)
18625 # `set' quotes correctly as required by POSIX, so do not add quotes.
18626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18627 ;;
18628 esac |
18629 sort
18630) |
18631 sed '
18632 /^ac_cv_env_/b end
18633 t clear
18634 :clear
18635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18636 t end
18637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18638 :end' >>confcache
18639if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18640 if test -w "$cache_file"; then
18641 if test "x$cache_file" != "x/dev/null"; then
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18643$as_echo "$as_me: updating cache $cache_file" >&6;}
18644 if test ! -f "$cache_file" || test -h "$cache_file"; then
18645 cat confcache >"$cache_file"
18646 else
18647 case $cache_file in #(
18648 */* | ?:*)
18649 mv -f confcache "$cache_file"$$ &&
18650 mv -f "$cache_file"$$ "$cache_file" ;; #(
18651 *)
18652 mv -f confcache "$cache_file" ;;
18653 esac
18654 fi
18655 fi
18656 else
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18658$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18659 fi
18660fi
18661rm -f confcache
18662
18663test "x$prefix" = xNONE && prefix=$ac_default_prefix
18664# Let make expand exec_prefix.
18665test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18666
18667DEFS=-DHAVE_CONFIG_H
18668
18669ac_libobjs=
18670ac_ltlibobjs=
18671U=
18672for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18673 # 1. Remove the extension, and $U if already installed.
18674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18675 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18677 # will be set to the directory where LIBOBJS objects are built.
18678 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18679 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18680done
18681LIBOBJS=$ac_libobjs
18682
18683LTLIBOBJS=$ac_ltlibobjs
18684
18685
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18687$as_echo_n "checking that generated files are newer than configure... " >&6; }
18688 if test -n "$am_sleep_pid"; then
18689 # Hide warnings about reused PIDs.
18690 wait $am_sleep_pid 2>/dev/null
18691 fi
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18693$as_echo "done" >&6; }
18694 if test -n "$EXEEXT"; then
18695 am__EXEEXT_TRUE=
18696 am__EXEEXT_FALSE='#'
18697else
18698 am__EXEEXT_TRUE='#'
18699 am__EXEEXT_FALSE=
18700fi
18701
18702if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18703 as_fn_error $? "conditional \"AMDEP\" was never defined.
18704Usually this means the macro was only invoked conditionally." "$LINENO" 5
18705fi
18706if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18707 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18708Usually this means the macro was only invoked conditionally." "$LINENO" 5
18709fi
18710if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18711 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18712Usually this means the macro was only invoked conditionally." "$LINENO" 5
18713fi
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018714
Haibo Huangb16e0172018-07-02 14:40:07 -070018715if test -z "${WITH_XMLWF_TRUE}" && test -z "${WITH_XMLWF_FALSE}"; then
18716 as_fn_error $? "conditional \"WITH_XMLWF\" was never defined.
18717Usually this means the macro was only invoked conditionally." "$LINENO" 5
18718fi
Haibo Huangfd5e81a2019-06-20 12:09:36 -070018719if test -z "${WITH_EXAMPLES_TRUE}" && test -z "${WITH_EXAMPLES_FALSE}"; then
18720 as_fn_error $? "conditional \"WITH_EXAMPLES\" was never defined.
18721Usually this means the macro was only invoked conditionally." "$LINENO" 5
18722fi
18723if test -z "${WITH_TESTS_TRUE}" && test -z "${WITH_TESTS_FALSE}"; then
18724 as_fn_error $? "conditional \"WITH_TESTS\" was never defined.
18725Usually this means the macro was only invoked conditionally." "$LINENO" 5
18726fi
Haibo Huangb16e0172018-07-02 14:40:07 -070018727if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
18728 as_fn_error $? "conditional \"MINGW\" was never defined.
18729Usually this means the macro was only invoked conditionally." "$LINENO" 5
18730fi
18731if test -z "${UNICODE_TRUE}" && test -z "${UNICODE_FALSE}"; then
18732 as_fn_error $? "conditional \"UNICODE\" was never defined.
18733Usually this means the macro was only invoked conditionally." "$LINENO" 5
18734fi
18735if test -z "${WITH_DOCBOOK_TRUE}" && test -z "${WITH_DOCBOOK_FALSE}"; then
18736 as_fn_error $? "conditional \"WITH_DOCBOOK\" was never defined.
18737Usually this means the macro was only invoked conditionally." "$LINENO" 5
18738fi
18739
18740: "${CONFIG_STATUS=./config.status}"
18741ac_write_fail=0
18742ac_clean_files_save=$ac_clean_files
18743ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18744{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18745$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18746as_write_fail=0
18747cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18748#! $SHELL
18749# Generated by $as_me.
18750# Run this file to recreate the current configuration.
18751# Compiler output produced by configure, useful for debugging
18752# configure, is in config.log if it exists.
18753
18754debug=false
18755ac_cs_recheck=false
18756ac_cs_silent=false
18757
18758SHELL=\${CONFIG_SHELL-$SHELL}
18759export SHELL
18760_ASEOF
18761cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18762## -------------------- ##
18763## M4sh Initialization. ##
18764## -------------------- ##
18765
18766# Be more Bourne compatible
18767DUALCASE=1; export DUALCASE # for MKS sh
18768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18769 emulate sh
18770 NULLCMD=:
18771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18772 # is contrary to our usage. Disable this feature.
18773 alias -g '${1+"$@"}'='"$@"'
18774 setopt NO_GLOB_SUBST
18775else
18776 case `(set -o) 2>/dev/null` in #(
18777 *posix*) :
18778 set -o posix ;; #(
18779 *) :
18780 ;;
18781esac
18782fi
18783
18784
18785as_nl='
18786'
18787export as_nl
18788# Printing a long string crashes Solaris 7 /usr/bin/printf.
18789as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18792# Prefer a ksh shell builtin over an external printf program on Solaris,
18793# but without wasting forks for bash or zsh.
18794if test -z "$BASH_VERSION$ZSH_VERSION" \
18795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18796 as_echo='print -r --'
18797 as_echo_n='print -rn --'
18798elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18799 as_echo='printf %s\n'
18800 as_echo_n='printf %s'
18801else
18802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18803 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18804 as_echo_n='/usr/ucb/echo -n'
18805 else
18806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18807 as_echo_n_body='eval
18808 arg=$1;
18809 case $arg in #(
18810 *"$as_nl"*)
18811 expr "X$arg" : "X\\(.*\\)$as_nl";
18812 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18813 esac;
18814 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18815 '
18816 export as_echo_n_body
18817 as_echo_n='sh -c $as_echo_n_body as_echo'
18818 fi
18819 export as_echo_body
18820 as_echo='sh -c $as_echo_body as_echo'
18821fi
18822
18823# The user is always right.
18824if test "${PATH_SEPARATOR+set}" != set; then
18825 PATH_SEPARATOR=:
18826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18828 PATH_SEPARATOR=';'
18829 }
18830fi
18831
18832
18833# IFS
18834# We need space, tab and new line, in precisely that order. Quoting is
18835# there to prevent editors from complaining about space-tab.
18836# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18837# splitting by setting IFS to empty value.)
18838IFS=" "" $as_nl"
18839
18840# Find who we are. Look in the path if we contain no directory separator.
18841as_myself=
18842case $0 in #((
18843 *[\\/]* ) as_myself=$0 ;;
18844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845for as_dir in $PATH
18846do
18847 IFS=$as_save_IFS
18848 test -z "$as_dir" && as_dir=.
18849 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18850 done
18851IFS=$as_save_IFS
18852
18853 ;;
18854esac
18855# We did not find ourselves, most probably we were run as `sh COMMAND'
18856# in which case we are not to be found in the path.
18857if test "x$as_myself" = x; then
18858 as_myself=$0
18859fi
18860if test ! -f "$as_myself"; then
18861 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18862 exit 1
18863fi
18864
18865# Unset variables that we do not need and which cause bugs (e.g. in
18866# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18867# suppresses any "Segmentation fault" message there. '((' could
18868# trigger a bug in pdksh 5.2.14.
18869for as_var in BASH_ENV ENV MAIL MAILPATH
18870do eval test x\${$as_var+set} = xset \
18871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18872done
18873PS1='$ '
18874PS2='> '
18875PS4='+ '
18876
18877# NLS nuisances.
18878LC_ALL=C
18879export LC_ALL
18880LANGUAGE=C
18881export LANGUAGE
18882
18883# CDPATH.
18884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18885
18886
18887# as_fn_error STATUS ERROR [LINENO LOG_FD]
18888# ----------------------------------------
18889# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18890# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18891# script with STATUS, using 1 if that was 0.
18892as_fn_error ()
18893{
18894 as_status=$1; test $as_status -eq 0 && as_status=1
18895 if test "$4"; then
18896 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18897 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18898 fi
18899 $as_echo "$as_me: error: $2" >&2
18900 as_fn_exit $as_status
18901} # as_fn_error
18902
18903
18904# as_fn_set_status STATUS
18905# -----------------------
18906# Set $? to STATUS, without forking.
18907as_fn_set_status ()
18908{
18909 return $1
18910} # as_fn_set_status
18911
18912# as_fn_exit STATUS
18913# -----------------
18914# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18915as_fn_exit ()
18916{
18917 set +e
18918 as_fn_set_status $1
18919 exit $1
18920} # as_fn_exit
18921
18922# as_fn_unset VAR
18923# ---------------
18924# Portably unset VAR.
18925as_fn_unset ()
18926{
18927 { eval $1=; unset $1;}
18928}
18929as_unset=as_fn_unset
18930# as_fn_append VAR VALUE
18931# ----------------------
18932# Append the text in VALUE to the end of the definition contained in VAR. Take
18933# advantage of any shell optimizations that allow amortized linear growth over
18934# repeated appends, instead of the typical quadratic growth present in naive
18935# implementations.
18936if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18937 eval 'as_fn_append ()
18938 {
18939 eval $1+=\$2
18940 }'
18941else
18942 as_fn_append ()
18943 {
18944 eval $1=\$$1\$2
18945 }
18946fi # as_fn_append
18947
18948# as_fn_arith ARG...
18949# ------------------
18950# Perform arithmetic evaluation on the ARGs, and store the result in the
18951# global $as_val. Take advantage of shells that can avoid forks. The arguments
18952# must be portable across $(()) and expr.
18953if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18954 eval 'as_fn_arith ()
18955 {
18956 as_val=$(( $* ))
18957 }'
18958else
18959 as_fn_arith ()
18960 {
18961 as_val=`expr "$@" || test $? -eq 1`
18962 }
18963fi # as_fn_arith
18964
18965
18966if expr a : '\(a\)' >/dev/null 2>&1 &&
18967 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18968 as_expr=expr
18969else
18970 as_expr=false
18971fi
18972
18973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18974 as_basename=basename
18975else
18976 as_basename=false
18977fi
18978
18979if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18980 as_dirname=dirname
18981else
18982 as_dirname=false
18983fi
18984
18985as_me=`$as_basename -- "$0" ||
18986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18987 X"$0" : 'X\(//\)$' \| \
18988 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18989$as_echo X/"$0" |
18990 sed '/^.*\/\([^/][^/]*\)\/*$/{
18991 s//\1/
18992 q
18993 }
18994 /^X\/\(\/\/\)$/{
18995 s//\1/
18996 q
18997 }
18998 /^X\/\(\/\).*/{
18999 s//\1/
19000 q
19001 }
19002 s/.*/./; q'`
19003
19004# Avoid depending upon Character Ranges.
19005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19008as_cr_digits='0123456789'
19009as_cr_alnum=$as_cr_Letters$as_cr_digits
19010
19011ECHO_C= ECHO_N= ECHO_T=
19012case `echo -n x` in #(((((
19013-n*)
19014 case `echo 'xy\c'` in
19015 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19016 xy) ECHO_C='\c';;
19017 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19018 ECHO_T=' ';;
19019 esac;;
19020*)
19021 ECHO_N='-n';;
19022esac
19023
19024rm -f conf$$ conf$$.exe conf$$.file
19025if test -d conf$$.dir; then
19026 rm -f conf$$.dir/conf$$.file
19027else
19028 rm -f conf$$.dir
19029 mkdir conf$$.dir 2>/dev/null
19030fi
19031if (echo >conf$$.file) 2>/dev/null; then
19032 if ln -s conf$$.file conf$$ 2>/dev/null; then
19033 as_ln_s='ln -s'
19034 # ... but there are two gotchas:
19035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19037 # In both cases, we have to default to `cp -pR'.
19038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19039 as_ln_s='cp -pR'
19040 elif ln conf$$.file conf$$ 2>/dev/null; then
19041 as_ln_s=ln
19042 else
19043 as_ln_s='cp -pR'
19044 fi
19045else
19046 as_ln_s='cp -pR'
19047fi
19048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19049rmdir conf$$.dir 2>/dev/null
19050
19051
19052# as_fn_mkdir_p
19053# -------------
19054# Create "$as_dir" as a directory, including parents if necessary.
19055as_fn_mkdir_p ()
19056{
19057
19058 case $as_dir in #(
19059 -*) as_dir=./$as_dir;;
19060 esac
19061 test -d "$as_dir" || eval $as_mkdir_p || {
19062 as_dirs=
19063 while :; do
19064 case $as_dir in #(
19065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19066 *) as_qdir=$as_dir;;
19067 esac
19068 as_dirs="'$as_qdir' $as_dirs"
19069 as_dir=`$as_dirname -- "$as_dir" ||
19070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19071 X"$as_dir" : 'X\(//\)[^/]' \| \
19072 X"$as_dir" : 'X\(//\)$' \| \
19073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19074$as_echo X"$as_dir" |
19075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19076 s//\1/
19077 q
19078 }
19079 /^X\(\/\/\)[^/].*/{
19080 s//\1/
19081 q
19082 }
19083 /^X\(\/\/\)$/{
19084 s//\1/
19085 q
19086 }
19087 /^X\(\/\).*/{
19088 s//\1/
19089 q
19090 }
19091 s/.*/./; q'`
19092 test -d "$as_dir" && break
19093 done
19094 test -z "$as_dirs" || eval "mkdir $as_dirs"
19095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19096
19097
19098} # as_fn_mkdir_p
19099if mkdir -p . 2>/dev/null; then
19100 as_mkdir_p='mkdir -p "$as_dir"'
19101else
19102 test -d ./-p && rmdir ./-p
19103 as_mkdir_p=false
19104fi
19105
19106
19107# as_fn_executable_p FILE
19108# -----------------------
19109# Test if FILE is an executable regular file.
19110as_fn_executable_p ()
19111{
19112 test -f "$1" && test -x "$1"
19113} # as_fn_executable_p
19114as_test_x='test -x'
19115as_executable_p=as_fn_executable_p
19116
19117# Sed expression to map a string onto a valid CPP name.
19118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19119
19120# Sed expression to map a string onto a valid variable name.
19121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19122
19123
19124exec 6>&1
19125## ----------------------------------- ##
19126## Main body of $CONFIG_STATUS script. ##
19127## ----------------------------------- ##
19128_ASEOF
19129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19130
19131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132# Save the log message, to keep $0 and so on meaningful, and to
19133# report actual input values of CONFIG_FILES etc. instead of their
19134# values after options handling.
19135ac_log="
Haibo Huang40a71912019-10-11 11:13:39 -070019136This file was extended by expat $as_me 2.2.9, which was
Haibo Huangb16e0172018-07-02 14:40:07 -070019137generated by GNU Autoconf 2.69. Invocation command line was
19138
19139 CONFIG_FILES = $CONFIG_FILES
19140 CONFIG_HEADERS = $CONFIG_HEADERS
19141 CONFIG_LINKS = $CONFIG_LINKS
19142 CONFIG_COMMANDS = $CONFIG_COMMANDS
19143 $ $0 $@
19144
19145on `(hostname || uname -n) 2>/dev/null | sed 1q`
19146"
19147
19148_ACEOF
19149
19150case $ac_config_files in *"
19151"*) set x $ac_config_files; shift; ac_config_files=$*;;
19152esac
19153
19154case $ac_config_headers in *"
19155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19156esac
19157
19158
19159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19160# Files that config.status was made for.
19161config_files="$ac_config_files"
19162config_headers="$ac_config_headers"
19163config_commands="$ac_config_commands"
19164
19165_ACEOF
19166
19167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168ac_cs_usage="\
19169\`$as_me' instantiates files and other configuration actions
19170from templates according to the current configuration. Unless the files
19171and actions are specified as TAGs, all are instantiated by default.
19172
19173Usage: $0 [OPTION]... [TAG]...
19174
19175 -h, --help print this help, then exit
19176 -V, --version print version number and configuration settings, then exit
19177 --config print configuration, then exit
19178 -q, --quiet, --silent
19179 do not print progress messages
19180 -d, --debug don't remove temporary files
19181 --recheck update $as_me by reconfiguring in the same conditions
19182 --file=FILE[:TEMPLATE]
19183 instantiate the configuration file FILE
19184 --header=FILE[:TEMPLATE]
19185 instantiate the configuration header FILE
19186
19187Configuration files:
19188$config_files
19189
19190Configuration headers:
19191$config_headers
19192
19193Configuration commands:
19194$config_commands
19195
19196Report bugs to <expat-bugs@libexpat.org>."
19197
19198_ACEOF
19199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19201ac_cs_version="\\
Haibo Huang40a71912019-10-11 11:13:39 -070019202expat config.status 2.2.9
Haibo Huangb16e0172018-07-02 14:40:07 -070019203configured by $0, generated by GNU Autoconf 2.69,
19204 with options \\"\$ac_cs_config\\"
19205
19206Copyright (C) 2012 Free Software Foundation, Inc.
19207This config.status script is free software; the Free Software Foundation
19208gives unlimited permission to copy, distribute and modify it."
19209
19210ac_pwd='$ac_pwd'
19211srcdir='$srcdir'
19212INSTALL='$INSTALL'
19213MKDIR_P='$MKDIR_P'
19214AWK='$AWK'
19215test -n "\$AWK" || AWK=awk
19216_ACEOF
19217
19218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19219# The default lists apply if the user does not specify any file.
19220ac_need_defaults=:
19221while test $# != 0
19222do
19223 case $1 in
19224 --*=?*)
19225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19227 ac_shift=:
19228 ;;
19229 --*=)
19230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19231 ac_optarg=
19232 ac_shift=:
19233 ;;
19234 *)
19235 ac_option=$1
19236 ac_optarg=$2
19237 ac_shift=shift
19238 ;;
19239 esac
19240
19241 case $ac_option in
19242 # Handling of the options.
19243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19244 ac_cs_recheck=: ;;
19245 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19246 $as_echo "$ac_cs_version"; exit ;;
19247 --config | --confi | --conf | --con | --co | --c )
19248 $as_echo "$ac_cs_config"; exit ;;
19249 --debug | --debu | --deb | --de | --d | -d )
19250 debug=: ;;
19251 --file | --fil | --fi | --f )
19252 $ac_shift
19253 case $ac_optarg in
19254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19255 '') as_fn_error $? "missing file argument" ;;
19256 esac
19257 as_fn_append CONFIG_FILES " '$ac_optarg'"
19258 ac_need_defaults=false;;
19259 --header | --heade | --head | --hea )
19260 $ac_shift
19261 case $ac_optarg in
19262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19263 esac
19264 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19265 ac_need_defaults=false;;
19266 --he | --h)
19267 # Conflict between --help and --header
19268 as_fn_error $? "ambiguous option: \`$1'
19269Try \`$0 --help' for more information.";;
19270 --help | --hel | -h )
19271 $as_echo "$ac_cs_usage"; exit ;;
19272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19274 ac_cs_silent=: ;;
19275
19276 # This is an error.
19277 -*) as_fn_error $? "unrecognized option: \`$1'
19278Try \`$0 --help' for more information." ;;
19279
19280 *) as_fn_append ac_config_targets " $1"
19281 ac_need_defaults=false ;;
19282
19283 esac
19284 shift
19285done
19286
19287ac_configure_extra_args=
19288
19289if $ac_cs_silent; then
19290 exec 6>/dev/null
19291 ac_configure_extra_args="$ac_configure_extra_args --silent"
19292fi
19293
19294_ACEOF
19295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19296if \$ac_cs_recheck; then
19297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19298 shift
19299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19300 CONFIG_SHELL='$SHELL'
19301 export CONFIG_SHELL
19302 exec "\$@"
19303fi
19304
19305_ACEOF
19306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19307exec 5>>config.log
19308{
19309 echo
19310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19311## Running $as_me. ##
19312_ASBOX
19313 $as_echo "$ac_log"
19314} >&5
19315
19316_ACEOF
19317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19318#
19319# INIT-COMMANDS
19320#
Haibo Huangfd5e81a2019-06-20 12:09:36 -070019321AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
Haibo Huangb16e0172018-07-02 14:40:07 -070019322
19323
19324# The HP-UX ksh and POSIX shell print the target directory to stdout
19325# if CDPATH is set.
19326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19327
19328sed_quote_subst='$sed_quote_subst'
19329double_quote_subst='$double_quote_subst'
19330delay_variable_subst='$delay_variable_subst'
Haibo Huangfd5e81a2019-06-20 12:09:36 -070019331macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19332macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
Haibo Huangb16e0172018-07-02 14:40:07 -070019333AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19334DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19335OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
Haibo Huangb16e0172018-07-02 14:40:07 -070019336enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19337enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19338pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19339enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19340shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19341SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19342ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19343PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19344host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19345host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19346host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19347build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19348build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19349build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19350SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19351Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19352GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19353EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19354FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19355LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19356NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19357LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19358max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19359ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19360exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19361lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19362lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19363lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19364lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19365lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19366reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19367reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19368deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19369file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19370file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19371want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19372sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19373AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19374AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19375archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19376STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19377RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19378old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19379old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19380old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19381lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19382CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19383CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19384compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19385GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19386lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19387lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19388lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19389lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19390lt_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"`'
19391lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19392nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19393lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19394lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19395objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19396MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19397lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19398lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19399lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19400lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19401lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19402need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19403MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19404DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19405NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19406LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19407OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19408OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19409libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19410shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19411extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19412archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19413enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19414export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19415whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19416compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19417old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19418old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19419archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19420archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19421module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19422module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19423with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19424allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19425no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19426hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19427hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19428hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19429hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19430hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19431hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19432hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19433inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19434link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19435always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19436export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19437exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19438include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19439prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19440postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19441file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19442variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19443need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19444need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19445version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19446runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19447shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19448shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19449libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19450library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19451soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19452install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19453postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19454postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19455finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19456finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19457hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19458sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19459configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19460configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19461hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19462enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19463enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19464enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19465old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19466striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19467compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19468predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19469postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19470predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19471postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19472compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19473LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19474reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19475reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19476old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19477compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19478GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19479lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19480lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19481lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19482lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19483lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19484archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19485enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19486export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19487whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19488compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19489old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19490old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19491archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19492archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19493module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19494module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19495with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19496allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19497no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19498hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19499hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19500hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19501hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19502hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19503hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19504hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19505inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19506link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19507always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19508export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19509exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19510include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19511prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19512postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19513file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19514hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19515compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19516predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19517postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19518predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19519postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19520compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19521
19522LTCC='$LTCC'
19523LTCFLAGS='$LTCFLAGS'
19524compiler='$compiler_DEFAULT'
19525
19526# A function that is used when there is no print builtin or printf.
19527func_fallback_echo ()
19528{
19529 eval 'cat <<_LTECHO_EOF
19530\$1
19531_LTECHO_EOF'
19532}
19533
19534# Quote evaled strings.
19535for var in AS \
19536DLLTOOL \
19537OBJDUMP \
19538SHELL \
19539ECHO \
19540PATH_SEPARATOR \
19541SED \
19542GREP \
19543EGREP \
19544FGREP \
19545LD \
19546NM \
19547LN_S \
19548lt_SP2NL \
19549lt_NL2SP \
19550reload_flag \
19551deplibs_check_method \
19552file_magic_cmd \
19553file_magic_glob \
19554want_nocaseglob \
19555sharedlib_from_linklib_cmd \
19556AR \
19557AR_FLAGS \
19558archiver_list_spec \
19559STRIP \
19560RANLIB \
19561CC \
19562CFLAGS \
19563compiler \
19564lt_cv_sys_global_symbol_pipe \
19565lt_cv_sys_global_symbol_to_cdecl \
19566lt_cv_sys_global_symbol_to_import \
19567lt_cv_sys_global_symbol_to_c_name_address \
19568lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19569lt_cv_nm_interface \
19570nm_file_list_spec \
19571lt_cv_truncate_bin \
19572lt_prog_compiler_no_builtin_flag \
19573lt_prog_compiler_pic \
19574lt_prog_compiler_wl \
19575lt_prog_compiler_static \
19576lt_cv_prog_compiler_c_o \
19577need_locks \
19578MANIFEST_TOOL \
19579DSYMUTIL \
19580NMEDIT \
19581LIPO \
19582OTOOL \
19583OTOOL64 \
19584shrext_cmds \
19585export_dynamic_flag_spec \
19586whole_archive_flag_spec \
19587compiler_needs_object \
19588with_gnu_ld \
19589allow_undefined_flag \
19590no_undefined_flag \
19591hardcode_libdir_flag_spec \
19592hardcode_libdir_separator \
19593exclude_expsyms \
19594include_expsyms \
19595file_list_spec \
19596variables_saved_for_relink \
19597libname_spec \
19598library_names_spec \
19599soname_spec \
19600install_override_mode \
19601finish_eval \
19602old_striplib \
19603striplib \
19604compiler_lib_search_dirs \
19605predep_objects \
19606postdep_objects \
19607predeps \
19608postdeps \
19609compiler_lib_search_path \
19610LD_CXX \
19611reload_flag_CXX \
19612compiler_CXX \
19613lt_prog_compiler_no_builtin_flag_CXX \
19614lt_prog_compiler_pic_CXX \
19615lt_prog_compiler_wl_CXX \
19616lt_prog_compiler_static_CXX \
19617lt_cv_prog_compiler_c_o_CXX \
19618export_dynamic_flag_spec_CXX \
19619whole_archive_flag_spec_CXX \
19620compiler_needs_object_CXX \
19621with_gnu_ld_CXX \
19622allow_undefined_flag_CXX \
19623no_undefined_flag_CXX \
19624hardcode_libdir_flag_spec_CXX \
19625hardcode_libdir_separator_CXX \
19626exclude_expsyms_CXX \
19627include_expsyms_CXX \
19628file_list_spec_CXX \
19629compiler_lib_search_dirs_CXX \
19630predep_objects_CXX \
19631postdep_objects_CXX \
19632predeps_CXX \
19633postdeps_CXX \
19634compiler_lib_search_path_CXX; do
19635 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19636 *[\\\\\\\`\\"\\\$]*)
19637 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19638 ;;
19639 *)
19640 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19641 ;;
19642 esac
19643done
19644
19645# Double-quote double-evaled strings.
19646for var in reload_cmds \
19647old_postinstall_cmds \
19648old_postuninstall_cmds \
19649old_archive_cmds \
19650extract_expsyms_cmds \
19651old_archive_from_new_cmds \
19652old_archive_from_expsyms_cmds \
19653archive_cmds \
19654archive_expsym_cmds \
19655module_cmds \
19656module_expsym_cmds \
19657export_symbols_cmds \
19658prelink_cmds \
19659postlink_cmds \
19660postinstall_cmds \
19661postuninstall_cmds \
19662finish_cmds \
19663sys_lib_search_path_spec \
19664configure_time_dlsearch_path \
19665configure_time_lt_sys_library_path \
19666reload_cmds_CXX \
19667old_archive_cmds_CXX \
19668old_archive_from_new_cmds_CXX \
19669old_archive_from_expsyms_cmds_CXX \
19670archive_cmds_CXX \
19671archive_expsym_cmds_CXX \
19672module_cmds_CXX \
19673module_expsym_cmds_CXX \
19674export_symbols_cmds_CXX \
19675prelink_cmds_CXX \
19676postlink_cmds_CXX; do
19677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19678 *[\\\\\\\`\\"\\\$]*)
19679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19680 ;;
19681 *)
19682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19683 ;;
19684 esac
19685done
19686
19687ac_aux_dir='$ac_aux_dir'
19688
19689# See if we are running on zsh, and set the options that allow our
19690# commands through without removal of \ escapes INIT.
19691if test -n "\${ZSH_VERSION+set}"; then
19692 setopt NO_GLOB_SUBST
19693fi
19694
19695
19696 PACKAGE='$PACKAGE'
19697 VERSION='$VERSION'
19698 RM='$RM'
19699 ofile='$ofile'
19700
19701
19702
19703
19704
19705
19706_ACEOF
19707
19708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19709
19710# Handling of arguments.
19711for ac_config_target in $ac_config_targets
19712do
19713 case $ac_config_target in
19714 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
19715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19716 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19718 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
19719 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19720 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19721 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19722 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19723 "tests/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmark/Makefile" ;;
19724 "xmlwf/Makefile") CONFIG_FILES="$CONFIG_FILES xmlwf/Makefile" ;;
19725 "run.sh") CONFIG_FILES="$CONFIG_FILES run.sh" ;;
19726
19727 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19728 esac
19729done
19730
19731
19732# If the user did not use the arguments to specify the items to instantiate,
19733# then the envvar interface is used. Set only those that are not.
19734# We use the long form for the default assignment because of an extremely
19735# bizarre bug on SunOS 4.1.3.
19736if $ac_need_defaults; then
19737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19740fi
19741
19742# Have a temporary directory for convenience. Make it in the build tree
19743# simply because there is no reason against having it here, and in addition,
19744# creating and moving files from /tmp can sometimes cause problems.
19745# Hook for its removal unless debugging.
19746# Note that there is a small window in which the directory will not be cleaned:
19747# after its creation but before its name has been assigned to `$tmp'.
19748$debug ||
19749{
19750 tmp= ac_tmp=
19751 trap 'exit_status=$?
19752 : "${ac_tmp:=$tmp}"
19753 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19754' 0
19755 trap 'as_fn_exit 1' 1 2 13 15
19756}
19757# Create a (secure) tmp directory for tmp files.
19758
19759{
19760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19761 test -d "$tmp"
19762} ||
19763{
19764 tmp=./conf$$-$RANDOM
19765 (umask 077 && mkdir "$tmp")
19766} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19767ac_tmp=$tmp
19768
19769# Set up the scripts for CONFIG_FILES section.
19770# No need to generate them if there are no CONFIG_FILES.
19771# This happens for instance with `./config.status config.h'.
19772if test -n "$CONFIG_FILES"; then
19773
19774
19775ac_cr=`echo X | tr X '\015'`
19776# On cygwin, bash can eat \r inside `` if the user requested igncr.
19777# But we know of no other shell where ac_cr would be empty at this
19778# point, so we can use a bashism as a fallback.
19779if test "x$ac_cr" = x; then
19780 eval ac_cr=\$\'\\r\'
19781fi
19782ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19783if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19784 ac_cs_awk_cr='\\r'
19785else
19786 ac_cs_awk_cr=$ac_cr
19787fi
19788
19789echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19790_ACEOF
19791
19792
19793{
19794 echo "cat >conf$$subs.awk <<_ACEOF" &&
19795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19796 echo "_ACEOF"
19797} >conf$$subs.sh ||
19798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19799ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19800ac_delim='%!_!# '
19801for ac_last_try in false false false false false :; do
19802 . ./conf$$subs.sh ||
19803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19804
19805 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19806 if test $ac_delim_n = $ac_delim_num; then
19807 break
19808 elif $ac_last_try; then
19809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19810 else
19811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19812 fi
19813done
19814rm -f conf$$subs.sh
19815
19816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19817cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19818_ACEOF
19819sed -n '
19820h
19821s/^/S["/; s/!.*/"]=/
19822p
19823g
19824s/^[^!]*!//
19825:repl
19826t repl
19827s/'"$ac_delim"'$//
19828t delim
19829:nl
19830h
19831s/\(.\{148\}\)..*/\1/
19832t more1
19833s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19834p
19835n
19836b repl
19837:more1
19838s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19839p
19840g
19841s/.\{148\}//
19842t nl
19843:delim
19844h
19845s/\(.\{148\}\)..*/\1/
19846t more2
19847s/["\\]/\\&/g; s/^/"/; s/$/"/
19848p
19849b
19850:more2
19851s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19852p
19853g
19854s/.\{148\}//
19855t delim
19856' <conf$$subs.awk | sed '
19857/^[^""]/{
19858 N
19859 s/\n//
19860}
19861' >>$CONFIG_STATUS || ac_write_fail=1
19862rm -f conf$$subs.awk
19863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19864_ACAWK
19865cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19866 for (key in S) S_is_set[key] = 1
19867 FS = ""
19868
19869}
19870{
19871 line = $ 0
19872 nfields = split(line, field, "@")
19873 substed = 0
19874 len = length(field[1])
19875 for (i = 2; i < nfields; i++) {
19876 key = field[i]
19877 keylen = length(key)
19878 if (S_is_set[key]) {
19879 value = S[key]
19880 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19881 len += length(value) + length(field[++i])
19882 substed = 1
19883 } else
19884 len += 1 + keylen
19885 }
19886
19887 print line
19888}
19889
19890_ACAWK
19891_ACEOF
19892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19893if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19895else
19896 cat
19897fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19898 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19899_ACEOF
19900
19901# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19902# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19903# trailing colons and then remove the whole line if VPATH becomes empty
19904# (actually we leave an empty line to preserve line numbers).
19905if test "x$srcdir" = x.; then
19906 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19907h
19908s///
19909s/^/:/
19910s/[ ]*$/:/
19911s/:\$(srcdir):/:/g
19912s/:\${srcdir}:/:/g
19913s/:@srcdir@:/:/g
19914s/^:*//
19915s/:*$//
19916x
19917s/\(=[ ]*\).*/\1/
19918G
19919s/\n//
19920s/^[^=]*=[ ]*$//
19921}'
19922fi
19923
19924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19925fi # test -n "$CONFIG_FILES"
19926
19927# Set up the scripts for CONFIG_HEADERS section.
19928# No need to generate them if there are no CONFIG_HEADERS.
19929# This happens for instance with `./config.status Makefile'.
19930if test -n "$CONFIG_HEADERS"; then
19931cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19932BEGIN {
19933_ACEOF
19934
19935# Transform confdefs.h into an awk script `defines.awk', embedded as
19936# here-document in config.status, that substitutes the proper values into
19937# config.h.in to produce config.h.
19938
19939# Create a delimiter string that does not exist in confdefs.h, to ease
19940# handling of long lines.
19941ac_delim='%!_!# '
19942for ac_last_try in false false :; do
19943 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19944 if test -z "$ac_tt"; then
19945 break
19946 elif $ac_last_try; then
19947 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19948 else
19949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19950 fi
19951done
19952
19953# For the awk script, D is an array of macro values keyed by name,
19954# likewise P contains macro parameters if any. Preserve backslash
19955# newline sequences.
19956
19957ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19958sed -n '
19959s/.\{148\}/&'"$ac_delim"'/g
19960t rset
19961:rset
19962s/^[ ]*#[ ]*define[ ][ ]*/ /
19963t def
19964d
19965:def
19966s/\\$//
19967t bsnl
19968s/["\\]/\\&/g
19969s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19970D["\1"]=" \3"/p
19971s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19972d
19973:bsnl
19974s/["\\]/\\&/g
19975s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19976D["\1"]=" \3\\\\\\n"\\/p
19977t cont
19978s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19979t cont
19980d
19981:cont
19982n
19983s/.\{148\}/&'"$ac_delim"'/g
19984t clear
19985:clear
19986s/\\$//
19987t bsnlc
19988s/["\\]/\\&/g; s/^/"/; s/$/"/p
19989d
19990:bsnlc
19991s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19992b cont
19993' <confdefs.h | sed '
19994s/'"$ac_delim"'/"\\\
19995"/g' >>$CONFIG_STATUS || ac_write_fail=1
19996
19997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998 for (key in D) D_is_set[key] = 1
19999 FS = ""
20000}
20001/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20002 line = \$ 0
20003 split(line, arg, " ")
20004 if (arg[1] == "#") {
20005 defundef = arg[2]
20006 mac1 = arg[3]
20007 } else {
20008 defundef = substr(arg[1], 2)
20009 mac1 = arg[2]
20010 }
20011 split(mac1, mac2, "(") #)
20012 macro = mac2[1]
20013 prefix = substr(line, 1, index(line, defundef) - 1)
20014 if (D_is_set[macro]) {
20015 # Preserve the white space surrounding the "#".
20016 print prefix "define", macro P[macro] D[macro]
20017 next
20018 } else {
20019 # Replace #undef with comments. This is necessary, for example,
20020 # in the case of _POSIX_SOURCE, which is predefined and required
20021 # on some systems where configure will not decide to define it.
20022 if (defundef == "undef") {
20023 print "/*", prefix defundef, macro, "*/"
20024 next
20025 }
20026 }
20027}
20028{ print }
20029_ACAWK
20030_ACEOF
20031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20032 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20033fi # test -n "$CONFIG_HEADERS"
20034
20035
20036eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20037shift
20038for ac_tag
20039do
20040 case $ac_tag in
20041 :[FHLC]) ac_mode=$ac_tag; continue;;
20042 esac
20043 case $ac_mode$ac_tag in
20044 :[FHL]*:*);;
20045 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20046 :[FH]-) ac_tag=-:-;;
20047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20048 esac
20049 ac_save_IFS=$IFS
20050 IFS=:
20051 set x $ac_tag
20052 IFS=$ac_save_IFS
20053 shift
20054 ac_file=$1
20055 shift
20056
20057 case $ac_mode in
20058 :L) ac_source=$1;;
20059 :[FH])
20060 ac_file_inputs=
20061 for ac_f
20062 do
20063 case $ac_f in
20064 -) ac_f="$ac_tmp/stdin";;
20065 *) # Look for the file first in the build tree, then in the source tree
20066 # (if the path is not absolute). The absolute path cannot be DOS-style,
20067 # because $ac_f cannot contain `:'.
20068 test -f "$ac_f" ||
20069 case $ac_f in
20070 [\\/$]*) false;;
20071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20072 esac ||
20073 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20074 esac
20075 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20076 as_fn_append ac_file_inputs " '$ac_f'"
20077 done
20078
20079 # Let's still pretend it is `configure' which instantiates (i.e., don't
20080 # use $as_me), people would be surprised to read:
20081 # /* config.h. Generated by config.status. */
20082 configure_input='Generated from '`
20083 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20084 `' by configure.'
20085 if test x"$ac_file" != x-; then
20086 configure_input="$ac_file. $configure_input"
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20088$as_echo "$as_me: creating $ac_file" >&6;}
20089 fi
20090 # Neutralize special characters interpreted by sed in replacement strings.
20091 case $configure_input in #(
20092 *\&* | *\|* | *\\* )
20093 ac_sed_conf_input=`$as_echo "$configure_input" |
20094 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20095 *) ac_sed_conf_input=$configure_input;;
20096 esac
20097
20098 case $ac_tag in
20099 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20101 esac
20102 ;;
20103 esac
20104
20105 ac_dir=`$as_dirname -- "$ac_file" ||
20106$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20107 X"$ac_file" : 'X\(//\)[^/]' \| \
20108 X"$ac_file" : 'X\(//\)$' \| \
20109 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20110$as_echo X"$ac_file" |
20111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20112 s//\1/
20113 q
20114 }
20115 /^X\(\/\/\)[^/].*/{
20116 s//\1/
20117 q
20118 }
20119 /^X\(\/\/\)$/{
20120 s//\1/
20121 q
20122 }
20123 /^X\(\/\).*/{
20124 s//\1/
20125 q
20126 }
20127 s/.*/./; q'`
20128 as_dir="$ac_dir"; as_fn_mkdir_p
20129 ac_builddir=.
20130
20131case "$ac_dir" in
20132.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20133*)
20134 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20135 # A ".." for each directory in $ac_dir_suffix.
20136 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20137 case $ac_top_builddir_sub in
20138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20140 esac ;;
20141esac
20142ac_abs_top_builddir=$ac_pwd
20143ac_abs_builddir=$ac_pwd$ac_dir_suffix
20144# for backward compatibility:
20145ac_top_builddir=$ac_top_build_prefix
20146
20147case $srcdir in
20148 .) # We are building in place.
20149 ac_srcdir=.
20150 ac_top_srcdir=$ac_top_builddir_sub
20151 ac_abs_top_srcdir=$ac_pwd ;;
20152 [\\/]* | ?:[\\/]* ) # Absolute name.
20153 ac_srcdir=$srcdir$ac_dir_suffix;
20154 ac_top_srcdir=$srcdir
20155 ac_abs_top_srcdir=$srcdir ;;
20156 *) # Relative name.
20157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20158 ac_top_srcdir=$ac_top_build_prefix$srcdir
20159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20160esac
20161ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20162
20163
20164 case $ac_mode in
20165 :F)
20166 #
20167 # CONFIG_FILE
20168 #
20169
20170 case $INSTALL in
20171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20173 esac
20174 ac_MKDIR_P=$MKDIR_P
20175 case $MKDIR_P in
20176 [\\/$]* | ?:[\\/]* ) ;;
20177 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20178 esac
20179_ACEOF
20180
20181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20182# If the template does not know about datarootdir, expand it.
20183# FIXME: This hack should be removed a few years after 2.60.
20184ac_datarootdir_hack=; ac_datarootdir_seen=
20185ac_sed_dataroot='
20186/datarootdir/ {
20187 p
20188 q
20189}
20190/@datadir@/p
20191/@docdir@/p
20192/@infodir@/p
20193/@localedir@/p
20194/@mandir@/p'
20195case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20196*datarootdir*) ac_datarootdir_seen=yes;;
20197*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20199$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20200_ACEOF
20201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20202 ac_datarootdir_hack='
20203 s&@datadir@&$datadir&g
20204 s&@docdir@&$docdir&g
20205 s&@infodir@&$infodir&g
20206 s&@localedir@&$localedir&g
20207 s&@mandir@&$mandir&g
20208 s&\\\${datarootdir}&$datarootdir&g' ;;
20209esac
20210_ACEOF
20211
20212# Neutralize VPATH when `$srcdir' = `.'.
20213# Shell code in configure.ac might set extrasub.
20214# FIXME: do we really want to maintain this feature?
20215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20216ac_sed_extra="$ac_vpsub
20217$extrasub
20218_ACEOF
20219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20220:t
20221/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20222s|@configure_input@|$ac_sed_conf_input|;t t
20223s&@top_builddir@&$ac_top_builddir_sub&;t t
20224s&@top_build_prefix@&$ac_top_build_prefix&;t t
20225s&@srcdir@&$ac_srcdir&;t t
20226s&@abs_srcdir@&$ac_abs_srcdir&;t t
20227s&@top_srcdir@&$ac_top_srcdir&;t t
20228s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20229s&@builddir@&$ac_builddir&;t t
20230s&@abs_builddir@&$ac_abs_builddir&;t t
20231s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20232s&@INSTALL@&$ac_INSTALL&;t t
20233s&@MKDIR_P@&$ac_MKDIR_P&;t t
20234$ac_datarootdir_hack
20235"
20236eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20237 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20238
20239test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20242 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20244which seems to be undefined. Please make sure it is defined" >&5
20245$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20246which seems to be undefined. Please make sure it is defined" >&2;}
20247
20248 rm -f "$ac_tmp/stdin"
20249 case $ac_file in
20250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20252 esac \
20253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20254 ;;
20255 :H)
20256 #
20257 # CONFIG_HEADER
20258 #
20259 if test x"$ac_file" != x-; then
20260 {
20261 $as_echo "/* $configure_input */" \
20262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20263 } >"$ac_tmp/config.h" \
20264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20267$as_echo "$as_me: $ac_file is unchanged" >&6;}
20268 else
20269 rm -f "$ac_file"
20270 mv "$ac_tmp/config.h" "$ac_file" \
20271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20272 fi
20273 else
20274 $as_echo "/* $configure_input */" \
20275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20276 || as_fn_error $? "could not create -" "$LINENO" 5
20277 fi
20278# Compute "$ac_file"'s index in $config_headers.
20279_am_arg="$ac_file"
20280_am_stamp_count=1
20281for _am_header in $config_headers :; do
20282 case $_am_header in
20283 $_am_arg | $_am_arg:* )
20284 break ;;
20285 * )
20286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20287 esac
20288done
20289echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20290$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20291 X"$_am_arg" : 'X\(//\)[^/]' \| \
20292 X"$_am_arg" : 'X\(//\)$' \| \
20293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20294$as_echo X"$_am_arg" |
20295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20296 s//\1/
20297 q
20298 }
20299 /^X\(\/\/\)[^/].*/{
20300 s//\1/
20301 q
20302 }
20303 /^X\(\/\/\)$/{
20304 s//\1/
20305 q
20306 }
20307 /^X\(\/\).*/{
20308 s//\1/
20309 q
20310 }
20311 s/.*/./; q'`/stamp-h$_am_stamp_count
20312 ;;
20313
20314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20315$as_echo "$as_me: executing $ac_file commands" >&6;}
20316 ;;
20317 esac
20318
20319
20320 case $ac_file$ac_mode in
20321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20322 # Older Autoconf quotes --file arguments for eval, but not when files
20323 # are listed without --file. Let's play safe and only enable the eval
20324 # if we detect the quoting.
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020325 # TODO: see whether this extra hack can be removed once we start
20326 # requiring Autoconf 2.70 or later.
20327 case $CONFIG_FILES in #(
20328 *\'*) :
20329 eval set x "$CONFIG_FILES" ;; #(
20330 *) :
20331 set x $CONFIG_FILES ;; #(
20332 *) :
20333 ;;
20334esac
Haibo Huangb16e0172018-07-02 14:40:07 -070020335 shift
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020336 # Used to flag and report bootstrapping failures.
20337 am_rc=0
20338 for am_mf
Haibo Huangb16e0172018-07-02 14:40:07 -070020339 do
20340 # Strip MF so we end up with the name of the file.
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020341 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20342 # Check whether this is an Automake generated Makefile which includes
20343 # dependency-tracking related rules and includes.
20344 # Grep'ing the whole file directly is not great: AIX grep has a line
Haibo Huangb16e0172018-07-02 14:40:07 -070020345 # limit of 2048, but all sed's we know have understand at least 4000.
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020346 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20347 || continue
20348 am_dirpart=`$as_dirname -- "$am_mf" ||
20349$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20350 X"$am_mf" : 'X\(//\)[^/]' \| \
20351 X"$am_mf" : 'X\(//\)$' \| \
20352 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20353$as_echo X"$am_mf" |
Haibo Huangb16e0172018-07-02 14:40:07 -070020354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20355 s//\1/
20356 q
20357 }
20358 /^X\(\/\/\)[^/].*/{
20359 s//\1/
20360 q
20361 }
20362 /^X\(\/\/\)$/{
20363 s//\1/
20364 q
20365 }
20366 /^X\(\/\).*/{
20367 s//\1/
20368 q
20369 }
20370 s/.*/./; q'`
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020371 am_filepart=`$as_basename -- "$am_mf" ||
20372$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20373 X"$am_mf" : 'X\(//\)$' \| \
20374 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20375$as_echo X/"$am_mf" |
20376 sed '/^.*\/\([^/][^/]*\)\/*$/{
Haibo Huangb16e0172018-07-02 14:40:07 -070020377 s//\1/
20378 q
20379 }
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020380 /^X\/\(\/\/\)$/{
Haibo Huangb16e0172018-07-02 14:40:07 -070020381 s//\1/
20382 q
20383 }
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020384 /^X\/\(\/\).*/{
Haibo Huangb16e0172018-07-02 14:40:07 -070020385 s//\1/
20386 q
20387 }
20388 s/.*/./; q'`
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020389 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20390 && sed -e '/# am--include-marker/d' "$am_filepart" \
20391 | $MAKE -f - am--depfiles" >&5
20392 (cd "$am_dirpart" \
20393 && sed -e '/# am--include-marker/d' "$am_filepart" \
20394 | $MAKE -f - am--depfiles) >&5 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } || am_rc=$?
Haibo Huangb16e0172018-07-02 14:40:07 -070020398 done
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020399 if test $am_rc -ne 0; then
20400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20402as_fn_error $? "Something went wrong bootstrapping makefile fragments
20403 for automatic dependency tracking. Try re-running configure with the
20404 '--disable-dependency-tracking' option to at least be able to build
20405 the package (albeit without support for automatic dependency tracking).
20406See \`config.log' for more details" "$LINENO" 5; }
20407 fi
20408 { am_dirpart=; unset am_dirpart;}
20409 { am_filepart=; unset am_filepart;}
20410 { am_mf=; unset am_mf;}
20411 { am_rc=; unset am_rc;}
20412 rm -f conftest-deps.mk
Haibo Huangb16e0172018-07-02 14:40:07 -070020413}
20414 ;;
20415 "libtool":C)
20416
20417 # See if we are running on zsh, and set the options that allow our
20418 # commands through without removal of \ escapes.
20419 if test -n "${ZSH_VERSION+set}"; then
20420 setopt NO_GLOB_SUBST
20421 fi
20422
20423 cfgfile=${ofile}T
20424 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20425 $RM "$cfgfile"
20426
20427 cat <<_LT_EOF >> "$cfgfile"
20428#! $SHELL
20429# Generated automatically by $as_me ($PACKAGE) $VERSION
20430# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20432
20433# Provide generalized library-building support services.
20434# Written by Gordon Matzigkeit, 1996
20435
20436# Copyright (C) 2014 Free Software Foundation, Inc.
20437# This is free software; see the source for copying conditions. There is NO
20438# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20439
20440# GNU Libtool is free software; you can redistribute it and/or modify
20441# it under the terms of the GNU General Public License as published by
20442# the Free Software Foundation; either version 2 of of the License, or
20443# (at your option) any later version.
20444#
20445# As a special exception to the GNU General Public License, if you
20446# distribute this file as part of a program or library that is built
20447# using GNU Libtool, you may include this file under the same
20448# distribution terms that you use for the rest of that program.
20449#
20450# GNU Libtool is distributed in the hope that it will be useful, but
20451# WITHOUT ANY WARRANTY; without even the implied warranty of
20452# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20453# GNU General Public License for more details.
20454#
20455# You should have received a copy of the GNU General Public License
20456# along with this program. If not, see <http://www.gnu.org/licenses/>.
20457
20458
20459# The names of the tagged configurations supported by this script.
20460available_tags='CXX '
20461
20462# Configured defaults for sys_lib_dlsearch_path munging.
20463: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20464
20465# ### BEGIN LIBTOOL CONFIG
20466
Haibo Huangfd5e81a2019-06-20 12:09:36 -070020467# Which release of libtool.m4 was used?
20468macro_version=$macro_version
20469macro_revision=$macro_revision
20470
Haibo Huangb16e0172018-07-02 14:40:07 -070020471# Assembler program.
20472AS=$lt_AS
20473
20474# DLL creation program.
20475DLLTOOL=$lt_DLLTOOL
20476
20477# Object dumper program.
20478OBJDUMP=$lt_OBJDUMP
20479
Haibo Huangb16e0172018-07-02 14:40:07 -070020480# Whether or not to build shared libraries.
20481build_libtool_libs=$enable_shared
20482
20483# Whether or not to build static libraries.
20484build_old_libs=$enable_static
20485
20486# What type of objects to build.
20487pic_mode=$pic_mode
20488
20489# Whether or not to optimize for fast installation.
20490fast_install=$enable_fast_install
20491
20492# Shared archive member basename,for filename based shared library versioning on AIX.
20493shared_archive_member_spec=$shared_archive_member_spec
20494
20495# Shell to use when invoking shell scripts.
20496SHELL=$lt_SHELL
20497
20498# An echo program that protects backslashes.
20499ECHO=$lt_ECHO
20500
20501# The PATH separator for the build system.
20502PATH_SEPARATOR=$lt_PATH_SEPARATOR
20503
20504# The host system.
20505host_alias=$host_alias
20506host=$host
20507host_os=$host_os
20508
20509# The build system.
20510build_alias=$build_alias
20511build=$build
20512build_os=$build_os
20513
20514# A sed program that does not truncate output.
20515SED=$lt_SED
20516
20517# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20518Xsed="\$SED -e 1s/^X//"
20519
20520# A grep program that handles long lines.
20521GREP=$lt_GREP
20522
20523# An ERE matcher.
20524EGREP=$lt_EGREP
20525
20526# A literal string matcher.
20527FGREP=$lt_FGREP
20528
20529# A BSD- or MS-compatible name lister.
20530NM=$lt_NM
20531
20532# Whether we need soft or hard links.
20533LN_S=$lt_LN_S
20534
20535# What is the maximum length of a command?
20536max_cmd_len=$max_cmd_len
20537
20538# Object file suffix (normally "o").
20539objext=$ac_objext
20540
20541# Executable file suffix (normally "").
20542exeext=$exeext
20543
20544# whether the shell understands "unset".
20545lt_unset=$lt_unset
20546
20547# turn spaces into newlines.
20548SP2NL=$lt_lt_SP2NL
20549
20550# turn newlines into spaces.
20551NL2SP=$lt_lt_NL2SP
20552
20553# convert \$build file names to \$host format.
20554to_host_file_cmd=$lt_cv_to_host_file_cmd
20555
20556# convert \$build files to toolchain format.
20557to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20558
20559# Method to check whether dependent libraries are shared objects.
20560deplibs_check_method=$lt_deplibs_check_method
20561
20562# Command to use when deplibs_check_method = "file_magic".
20563file_magic_cmd=$lt_file_magic_cmd
20564
20565# How to find potential files when deplibs_check_method = "file_magic".
20566file_magic_glob=$lt_file_magic_glob
20567
20568# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20569want_nocaseglob=$lt_want_nocaseglob
20570
20571# Command to associate shared and link libraries.
20572sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20573
20574# The archiver.
20575AR=$lt_AR
20576
20577# Flags to create an archive.
20578AR_FLAGS=$lt_AR_FLAGS
20579
20580# How to feed a file listing to the archiver.
20581archiver_list_spec=$lt_archiver_list_spec
20582
20583# A symbol stripping program.
20584STRIP=$lt_STRIP
20585
20586# Commands used to install an old-style archive.
20587RANLIB=$lt_RANLIB
20588old_postinstall_cmds=$lt_old_postinstall_cmds
20589old_postuninstall_cmds=$lt_old_postuninstall_cmds
20590
20591# Whether to use a lock for old archive extraction.
20592lock_old_archive_extraction=$lock_old_archive_extraction
20593
20594# A C compiler.
20595LTCC=$lt_CC
20596
20597# LTCC compiler flags.
20598LTCFLAGS=$lt_CFLAGS
20599
20600# Take the output of nm and produce a listing of raw symbols and C names.
20601global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20602
20603# Transform the output of nm in a proper C declaration.
20604global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20605
20606# Transform the output of nm into a list of symbols to manually relocate.
20607global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20608
20609# Transform the output of nm in a C name address pair.
20610global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20611
20612# Transform the output of nm in a C name address pair when lib prefix is needed.
20613global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20614
20615# The name lister interface.
20616nm_interface=$lt_lt_cv_nm_interface
20617
20618# Specify filename containing input files for \$NM.
20619nm_file_list_spec=$lt_nm_file_list_spec
20620
20621# The root where to search for dependent libraries,and where our libraries should be installed.
20622lt_sysroot=$lt_sysroot
20623
20624# Command to truncate a binary pipe.
20625lt_truncate_bin=$lt_lt_cv_truncate_bin
20626
20627# The name of the directory that contains temporary libtool files.
20628objdir=$objdir
20629
20630# Used to examine libraries when file_magic_cmd begins with "file".
20631MAGIC_CMD=$MAGIC_CMD
20632
20633# Must we lock files when doing compilation?
20634need_locks=$lt_need_locks
20635
20636# Manifest tool.
20637MANIFEST_TOOL=$lt_MANIFEST_TOOL
20638
20639# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20640DSYMUTIL=$lt_DSYMUTIL
20641
20642# Tool to change global to local symbols on Mac OS X.
20643NMEDIT=$lt_NMEDIT
20644
20645# Tool to manipulate fat objects and archives on Mac OS X.
20646LIPO=$lt_LIPO
20647
20648# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20649OTOOL=$lt_OTOOL
20650
20651# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20652OTOOL64=$lt_OTOOL64
20653
20654# Old archive suffix (normally "a").
20655libext=$libext
20656
20657# Shared library suffix (normally ".so").
20658shrext_cmds=$lt_shrext_cmds
20659
20660# The commands to extract the exported symbol list from a shared archive.
20661extract_expsyms_cmds=$lt_extract_expsyms_cmds
20662
20663# Variables whose values should be saved in libtool wrapper scripts and
20664# restored at link time.
20665variables_saved_for_relink=$lt_variables_saved_for_relink
20666
20667# Do we need the "lib" prefix for modules?
20668need_lib_prefix=$need_lib_prefix
20669
20670# Do we need a version for libraries?
20671need_version=$need_version
20672
20673# Library versioning type.
20674version_type=$version_type
20675
20676# Shared library runtime path variable.
20677runpath_var=$runpath_var
20678
20679# Shared library path variable.
20680shlibpath_var=$shlibpath_var
20681
20682# Is shlibpath searched before the hard-coded library search path?
20683shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20684
20685# Format of library name prefix.
20686libname_spec=$lt_libname_spec
20687
20688# List of archive names. First name is the real one, the rest are links.
20689# The last name is the one that the linker finds with -lNAME
20690library_names_spec=$lt_library_names_spec
20691
20692# The coded name of the library, if different from the real name.
20693soname_spec=$lt_soname_spec
20694
20695# Permission mode override for installation of shared libraries.
20696install_override_mode=$lt_install_override_mode
20697
20698# Command to use after installation of a shared archive.
20699postinstall_cmds=$lt_postinstall_cmds
20700
20701# Command to use after uninstallation of a shared archive.
20702postuninstall_cmds=$lt_postuninstall_cmds
20703
20704# Commands used to finish a libtool library installation in a directory.
20705finish_cmds=$lt_finish_cmds
20706
20707# As "finish_cmds", except a single script fragment to be evaled but
20708# not shown.
20709finish_eval=$lt_finish_eval
20710
20711# Whether we should hardcode library paths into libraries.
20712hardcode_into_libs=$hardcode_into_libs
20713
20714# Compile-time system search path for libraries.
20715sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20716
20717# Detected run-time system search path for libraries.
20718sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20719
20720# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20721configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20722
20723# Whether dlopen is supported.
20724dlopen_support=$enable_dlopen
20725
20726# Whether dlopen of programs is supported.
20727dlopen_self=$enable_dlopen_self
20728
20729# Whether dlopen of statically linked programs is supported.
20730dlopen_self_static=$enable_dlopen_self_static
20731
20732# Commands to strip libraries.
20733old_striplib=$lt_old_striplib
20734striplib=$lt_striplib
20735
20736
20737# The linker used to build libraries.
20738LD=$lt_LD
20739
20740# How to create reloadable object files.
20741reload_flag=$lt_reload_flag
20742reload_cmds=$lt_reload_cmds
20743
20744# Commands used to build an old-style archive.
20745old_archive_cmds=$lt_old_archive_cmds
20746
20747# A language specific compiler.
20748CC=$lt_compiler
20749
20750# Is the compiler the GNU compiler?
20751with_gcc=$GCC
20752
20753# Compiler flag to turn off builtin functions.
20754no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20755
20756# Additional compiler flags for building library objects.
20757pic_flag=$lt_lt_prog_compiler_pic
20758
20759# How to pass a linker flag through the compiler.
20760wl=$lt_lt_prog_compiler_wl
20761
20762# Compiler flag to prevent dynamic linking.
20763link_static_flag=$lt_lt_prog_compiler_static
20764
20765# Does compiler simultaneously support -c and -o options?
20766compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20767
20768# Whether or not to add -lc for building shared libraries.
20769build_libtool_need_lc=$archive_cmds_need_lc
20770
20771# Whether or not to disallow shared libs when runtime libs are static.
20772allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20773
20774# Compiler flag to allow reflexive dlopens.
20775export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20776
20777# Compiler flag to generate shared objects directly from archives.
20778whole_archive_flag_spec=$lt_whole_archive_flag_spec
20779
20780# Whether the compiler copes with passing no objects directly.
20781compiler_needs_object=$lt_compiler_needs_object
20782
20783# Create an old-style archive from a shared archive.
20784old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20785
20786# Create a temporary old-style archive to link instead of a shared archive.
20787old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20788
20789# Commands used to build a shared archive.
20790archive_cmds=$lt_archive_cmds
20791archive_expsym_cmds=$lt_archive_expsym_cmds
20792
20793# Commands used to build a loadable module if different from building
20794# a shared archive.
20795module_cmds=$lt_module_cmds
20796module_expsym_cmds=$lt_module_expsym_cmds
20797
20798# Whether we are building with GNU ld or not.
20799with_gnu_ld=$lt_with_gnu_ld
20800
20801# Flag that allows shared libraries with undefined symbols to be built.
20802allow_undefined_flag=$lt_allow_undefined_flag
20803
20804# Flag that enforces no undefined symbols.
20805no_undefined_flag=$lt_no_undefined_flag
20806
20807# Flag to hardcode \$libdir into a binary during linking.
20808# This must work even if \$libdir does not exist
20809hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20810
20811# Whether we need a single "-rpath" flag with a separated argument.
20812hardcode_libdir_separator=$lt_hardcode_libdir_separator
20813
20814# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20815# DIR into the resulting binary.
20816hardcode_direct=$hardcode_direct
20817
20818# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20819# DIR into the resulting binary and the resulting library dependency is
20820# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20821# library is relocated.
20822hardcode_direct_absolute=$hardcode_direct_absolute
20823
20824# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20825# into the resulting binary.
20826hardcode_minus_L=$hardcode_minus_L
20827
20828# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20829# into the resulting binary.
20830hardcode_shlibpath_var=$hardcode_shlibpath_var
20831
20832# Set to "yes" if building a shared library automatically hardcodes DIR
20833# into the library and all subsequent libraries and executables linked
20834# against it.
20835hardcode_automatic=$hardcode_automatic
20836
20837# Set to yes if linker adds runtime paths of dependent libraries
20838# to runtime path list.
20839inherit_rpath=$inherit_rpath
20840
20841# Whether libtool must link a program against all its dependency libraries.
20842link_all_deplibs=$link_all_deplibs
20843
20844# Set to "yes" if exported symbols are required.
20845always_export_symbols=$always_export_symbols
20846
20847# The commands to list exported symbols.
20848export_symbols_cmds=$lt_export_symbols_cmds
20849
20850# Symbols that should not be listed in the preloaded symbols.
20851exclude_expsyms=$lt_exclude_expsyms
20852
20853# Symbols that must always be exported.
20854include_expsyms=$lt_include_expsyms
20855
20856# Commands necessary for linking programs (against libraries) with templates.
20857prelink_cmds=$lt_prelink_cmds
20858
20859# Commands necessary for finishing linking programs.
20860postlink_cmds=$lt_postlink_cmds
20861
20862# Specify filename containing input files.
20863file_list_spec=$lt_file_list_spec
20864
20865# How to hardcode a shared library path into an executable.
20866hardcode_action=$hardcode_action
20867
20868# The directories searched by this compiler when creating a shared library.
20869compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20870
20871# Dependencies to place before and after the objects being linked to
20872# create a shared library.
20873predep_objects=$lt_predep_objects
20874postdep_objects=$lt_postdep_objects
20875predeps=$lt_predeps
20876postdeps=$lt_postdeps
20877
20878# The library search path used internally by the compiler when linking
20879# a shared library.
20880compiler_lib_search_path=$lt_compiler_lib_search_path
20881
20882# ### END LIBTOOL CONFIG
20883
20884_LT_EOF
20885
20886 cat <<'_LT_EOF' >> "$cfgfile"
20887
20888# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20889
20890# func_munge_path_list VARIABLE PATH
20891# -----------------------------------
20892# VARIABLE is name of variable containing _space_ separated list of
20893# directories to be munged by the contents of PATH, which is string
20894# having a format:
20895# "DIR[:DIR]:"
20896# string "DIR[ DIR]" will be prepended to VARIABLE
20897# ":DIR[:DIR]"
20898# string "DIR[ DIR]" will be appended to VARIABLE
20899# "DIRP[:DIRP]::[DIRA:]DIRA"
20900# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20901# "DIRA[ DIRA]" will be appended to VARIABLE
20902# "DIR[:DIR]"
20903# VARIABLE will be replaced by "DIR[ DIR]"
20904func_munge_path_list ()
20905{
20906 case x$2 in
20907 x)
20908 ;;
20909 *:)
20910 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20911 ;;
20912 x:*)
20913 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20914 ;;
20915 *::*)
20916 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20917 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20918 ;;
20919 *)
20920 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20921 ;;
20922 esac
20923}
20924
20925
20926# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20927func_cc_basename ()
20928{
20929 for cc_temp in $*""; do
20930 case $cc_temp in
20931 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20932 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20933 \-*) ;;
20934 *) break;;
20935 esac
20936 done
20937 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20938}
20939
20940
20941# ### END FUNCTIONS SHARED WITH CONFIGURE
20942
20943_LT_EOF
20944
20945 case $host_os in
20946 aix3*)
20947 cat <<\_LT_EOF >> "$cfgfile"
20948# AIX sometimes has problems with the GCC collect2 program. For some
20949# reason, if we set the COLLECT_NAMES environment variable, the problems
20950# vanish in a puff of smoke.
20951if test set != "${COLLECT_NAMES+set}"; then
20952 COLLECT_NAMES=
20953 export COLLECT_NAMES
20954fi
20955_LT_EOF
20956 ;;
20957 esac
20958
20959
20960ltmain=$ac_aux_dir/ltmain.sh
20961
20962
20963 # We use sed instead of cat because bash on DJGPP gets confused if
20964 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20965 # text mode, it properly converts lines to CR/LF. This bash problem
20966 # is reportedly fixed, but why not run on old versions too?
20967 sed '$q' "$ltmain" >> "$cfgfile" \
20968 || (rm -f "$cfgfile"; exit 1)
20969
20970 mv -f "$cfgfile" "$ofile" ||
20971 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20972 chmod +x "$ofile"
20973
20974
20975 cat <<_LT_EOF >> "$ofile"
20976
20977# ### BEGIN LIBTOOL TAG CONFIG: CXX
20978
20979# The linker used to build libraries.
20980LD=$lt_LD_CXX
20981
20982# How to create reloadable object files.
20983reload_flag=$lt_reload_flag_CXX
20984reload_cmds=$lt_reload_cmds_CXX
20985
20986# Commands used to build an old-style archive.
20987old_archive_cmds=$lt_old_archive_cmds_CXX
20988
20989# A language specific compiler.
20990CC=$lt_compiler_CXX
20991
20992# Is the compiler the GNU compiler?
20993with_gcc=$GCC_CXX
20994
20995# Compiler flag to turn off builtin functions.
20996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20997
20998# Additional compiler flags for building library objects.
20999pic_flag=$lt_lt_prog_compiler_pic_CXX
21000
21001# How to pass a linker flag through the compiler.
21002wl=$lt_lt_prog_compiler_wl_CXX
21003
21004# Compiler flag to prevent dynamic linking.
21005link_static_flag=$lt_lt_prog_compiler_static_CXX
21006
21007# Does compiler simultaneously support -c and -o options?
21008compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21009
21010# Whether or not to add -lc for building shared libraries.
21011build_libtool_need_lc=$archive_cmds_need_lc_CXX
21012
21013# Whether or not to disallow shared libs when runtime libs are static.
21014allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21015
21016# Compiler flag to allow reflexive dlopens.
21017export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21018
21019# Compiler flag to generate shared objects directly from archives.
21020whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21021
21022# Whether the compiler copes with passing no objects directly.
21023compiler_needs_object=$lt_compiler_needs_object_CXX
21024
21025# Create an old-style archive from a shared archive.
21026old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21027
21028# Create a temporary old-style archive to link instead of a shared archive.
21029old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21030
21031# Commands used to build a shared archive.
21032archive_cmds=$lt_archive_cmds_CXX
21033archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21034
21035# Commands used to build a loadable module if different from building
21036# a shared archive.
21037module_cmds=$lt_module_cmds_CXX
21038module_expsym_cmds=$lt_module_expsym_cmds_CXX
21039
21040# Whether we are building with GNU ld or not.
21041with_gnu_ld=$lt_with_gnu_ld_CXX
21042
21043# Flag that allows shared libraries with undefined symbols to be built.
21044allow_undefined_flag=$lt_allow_undefined_flag_CXX
21045
21046# Flag that enforces no undefined symbols.
21047no_undefined_flag=$lt_no_undefined_flag_CXX
21048
21049# Flag to hardcode \$libdir into a binary during linking.
21050# This must work even if \$libdir does not exist
21051hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21052
21053# Whether we need a single "-rpath" flag with a separated argument.
21054hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21055
21056# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21057# DIR into the resulting binary.
21058hardcode_direct=$hardcode_direct_CXX
21059
21060# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21061# DIR into the resulting binary and the resulting library dependency is
21062# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21063# library is relocated.
21064hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21065
21066# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21067# into the resulting binary.
21068hardcode_minus_L=$hardcode_minus_L_CXX
21069
21070# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21071# into the resulting binary.
21072hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21073
21074# Set to "yes" if building a shared library automatically hardcodes DIR
21075# into the library and all subsequent libraries and executables linked
21076# against it.
21077hardcode_automatic=$hardcode_automatic_CXX
21078
21079# Set to yes if linker adds runtime paths of dependent libraries
21080# to runtime path list.
21081inherit_rpath=$inherit_rpath_CXX
21082
21083# Whether libtool must link a program against all its dependency libraries.
21084link_all_deplibs=$link_all_deplibs_CXX
21085
21086# Set to "yes" if exported symbols are required.
21087always_export_symbols=$always_export_symbols_CXX
21088
21089# The commands to list exported symbols.
21090export_symbols_cmds=$lt_export_symbols_cmds_CXX
21091
21092# Symbols that should not be listed in the preloaded symbols.
21093exclude_expsyms=$lt_exclude_expsyms_CXX
21094
21095# Symbols that must always be exported.
21096include_expsyms=$lt_include_expsyms_CXX
21097
21098# Commands necessary for linking programs (against libraries) with templates.
21099prelink_cmds=$lt_prelink_cmds_CXX
21100
21101# Commands necessary for finishing linking programs.
21102postlink_cmds=$lt_postlink_cmds_CXX
21103
21104# Specify filename containing input files.
21105file_list_spec=$lt_file_list_spec_CXX
21106
21107# How to hardcode a shared library path into an executable.
21108hardcode_action=$hardcode_action_CXX
21109
21110# The directories searched by this compiler when creating a shared library.
21111compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21112
21113# Dependencies to place before and after the objects being linked to
21114# create a shared library.
21115predep_objects=$lt_predep_objects_CXX
21116postdep_objects=$lt_postdep_objects_CXX
21117predeps=$lt_predeps_CXX
21118postdeps=$lt_postdeps_CXX
21119
21120# The library search path used internally by the compiler when linking
21121# a shared library.
21122compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21123
21124# ### END LIBTOOL TAG CONFIG: CXX
21125_LT_EOF
21126
21127 ;;
21128 "run.sh":F) chmod +x run.sh ;;
21129
21130 esac
21131done # for ac_tag
21132
21133
21134as_fn_exit 0
21135_ACEOF
21136ac_clean_files=$ac_clean_files_save
21137
21138test $ac_write_fail = 0 ||
21139 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21140
21141
21142# configure is writing to config.log, and then calls config.status.
21143# config.status does its own redirection, appending to config.log.
21144# Unfortunately, on DOS this fails, as config.log is still kept open
21145# by configure, so config.status won't be able to write to it; its
21146# output is simply discarded. So we exec the FD to /dev/null,
21147# effectively closing config.log, so it can be properly (re)opened and
21148# appended to by config.status. When coming back to configure, we
21149# need to make the FD available again.
21150if test "$no_create" != yes; then
21151 ac_cs_success=:
21152 ac_config_status_args=
21153 test "$silent" = yes &&
21154 ac_config_status_args="$ac_config_status_args --quiet"
21155 exec 5>/dev/null
21156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21157 exec 5>>config.log
21158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21159 # would make configure fail if this is the last instruction.
21160 $ac_cs_success || as_fn_exit 1
21161fi
21162if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21164$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21165fi
21166