Daily bump.
[gcc.git] / libgm2 / configure
blobefe3b660769b2541d1200796278ab24f39321901
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libgm2'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_unique_file="Makefile.am"
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 TARGET_DARWIN_FALSE
639 TARGET_DARWIN_TRUE
640 BUILD_LOGLIB_FALSE
641 BUILD_LOGLIB_TRUE
642 BUILD_CORLIB_FALSE
643 BUILD_CORLIB_TRUE
644 BUILD_ISOLIB_FALSE
645 BUILD_ISOLIB_TRUE
646 BUILD_PIMLIB_FALSE
647 BUILD_PIMLIB_TRUE
648 GM2_FOR_TARGET
649 CC_FOR_BUILD
650 enable_static
651 enable_shared
652 ENABLE_DARWIN_AT_RPATH_FALSE
653 ENABLE_DARWIN_AT_RPATH_TRUE
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 OBJDUMP
660 ac_ct_DUMPBIN
661 DUMPBIN
663 FGREP
665 LIBTOOL
667 am__fastdepCCAS_FALSE
668 am__fastdepCCAS_TRUE
669 CCASDEPMODE
670 CCASFLAGS
671 CCAS
672 toolexeclibdir
673 toolexecdir
674 slibdir
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
679 target_noncanonical
680 host_noncanonical
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__fastdepCXX_FALSE
686 am__fastdepCXX_TRUE
687 CXXDEPMODE
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 GLIBCXX_LIBS
722 CXXCPP
723 ac_ct_CXX
724 CXXFLAGS
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 RANLIB
732 LN_S
733 toplevel_srcdir
734 toplevel_builddir
735 glibcxx_srcdir
736 glibcxx_builddir
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 EGREP
750 GREP
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
759 multi_basedir
760 libtool_VERSION
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 with_target_subdir
804 with_cross_host
805 with_newlib
806 enable_maintainer_mode
807 enable_libstdcxx_time
808 enable_dependency_tracking
809 enable_silent_rules
810 with_build_libsubdir
811 enable_version_specific_runtime_libs
812 with_slibdir
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_gnu_ld
818 enable_libtool_lock
819 enable_darwin_at_rpath
820 with_gcc_major_version_only
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
832 CXXFLAGS
834 CXXCPP'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 esac
1243 done
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1327 /^X\(\/\/\)$/{
1328 s//\1/
1331 /^X\(\/\).*/{
1332 s//\1/
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1340 else
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1430 cat <<\_ACEOF
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of package-unused version-unused:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-multilib build many library versions (default)
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-libstdcxx-time[=KIND]
1459 use KIND for check type [default=auto]
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --enable-darwin-at-rpath
1476 install libraries with @rpath/library-name, requires
1477 rpaths to be added to executables
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-target-subdir=SUBDIR
1483 configuring in a subdirectory
1484 --with-cross-host=HOST configuring with a cross compiler
1485 --with-newlib assume newlib as a system C library
1486 --with-cross-host=HOST Configuring with a cross compiler
1487 --with-build-libsubdir=DIR Directory where to find libraries for build system
1488 --with-slibdir=DIR shared libraries in DIR LIBDIR
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-gcc-major-version-only
1493 use only GCC major number in filesystem paths
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
1507 CCAS assembler compiler command (defaults to CC)
1508 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 package-unused configure version-unused
1577 generated by GNU Autoconf 2.69
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_cpp
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693 else
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709 else
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=\$ac_header_compiler"
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_header_mongrel
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=$ac_status
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_run
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_header_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_cxx_try_cpp LINENO
1864 # ------------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_cpp ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } > conftest.i && {
1885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1898 } # ac_fn_cxx_try_cpp
1900 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # ---------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_cxx_check_header_mongrel ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if eval \${$3+:} false; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_cxx_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_cxx_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1947 rm -f conftest.err conftest.i conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_cxx_check_header_mongrel
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=1
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2031 } # ac_fn_cxx_try_link
2033 # ac_fn_cxx_check_func LINENO FUNC VAR
2034 # ------------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_cxx_check_func ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 if test x$gcc_no_link = xyes; then
2045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2051 #define $2 innocuous_$2
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $2 (); below.
2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2056 <limits.h> exists even on freestanding compilers. */
2058 #ifdef __STDC__
2059 # include <limits.h>
2060 #else
2061 # include <assert.h>
2062 #endif
2064 #undef $2
2066 /* Override any GCC internal prototype to avoid an error.
2067 Use char because int might match the return type of a GCC
2068 builtin and then its argument prototype would still apply. */
2069 #ifdef __cplusplus
2070 extern "C"
2071 #endif
2072 char $2 ();
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined __stub_$2 || defined __stub___$2
2077 choke me
2078 #endif
2081 main ()
2083 return $2 ();
2085 return 0;
2087 _ACEOF
2088 if ac_fn_cxx_try_link "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2093 rm -f core conftest.err conftest.$ac_objext \
2094 conftest$ac_exeext conftest.$ac_ext
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_cxx_check_func
2103 # ac_fn_c_try_link LINENO
2104 # -----------------------
2105 # Try to link conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_c_try_link ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 rm -f conftest.$ac_objext conftest$ac_exeext
2110 if { { ac_try="$ac_link"
2111 case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_link") 2>conftest.err
2118 ac_status=$?
2119 if test -s conftest.err; then
2120 grep -v '^ *+' conftest.err >conftest.er1
2121 cat conftest.er1 >&5
2122 mv -f conftest.er1 conftest.err
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && {
2126 test -z "$ac_c_werror_flag" ||
2127 test ! -s conftest.err
2128 } && test -s conftest$ac_exeext && {
2129 test "$cross_compiling" = yes ||
2130 test -x conftest$ac_exeext
2131 }; then :
2132 ac_retval=0
2133 else
2134 $as_echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 ac_retval=1
2139 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2140 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2141 # interfere with the next link command; also delete a directory that is
2142 # left behind by Apple's compiler. We do this before executing the actions.
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2147 } # ac_fn_c_try_link
2149 # ac_fn_c_check_func LINENO FUNC VAR
2150 # ----------------------------------
2151 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2152 ac_fn_c_check_func ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159 else
2160 if test x$gcc_no_link = xyes; then
2161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2167 #define $2 innocuous_$2
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char $2 (); below.
2171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2172 <limits.h> exists even on freestanding compilers. */
2174 #ifdef __STDC__
2175 # include <limits.h>
2176 #else
2177 # include <assert.h>
2178 #endif
2180 #undef $2
2182 /* Override any GCC internal prototype to avoid an error.
2183 Use char because int might match the return type of a GCC
2184 builtin and then its argument prototype would still apply. */
2185 #ifdef __cplusplus
2186 extern "C"
2187 #endif
2188 char $2 ();
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined __stub_$2 || defined __stub___$2
2193 choke me
2194 #endif
2197 main ()
2199 return $2 ();
2201 return 0;
2203 _ACEOF
2204 if ac_fn_c_try_link "$LINENO"; then :
2205 eval "$3=yes"
2206 else
2207 eval "$3=no"
2209 rm -f core conftest.err conftest.$ac_objext \
2210 conftest$ac_exeext conftest.$ac_ext
2212 eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_func
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 eval "$3=no"
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 if (sizeof ($2))
2239 return 0;
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 if (sizeof (($2)))
2252 return 0;
2254 return 0;
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2259 else
2260 eval "$3=yes"
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_type
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_decl ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 as_decl_name=`echo $2|sed 's/ *(.*//'`
2281 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 main ()
2293 #ifndef $as_decl_name
2294 #ifdef __cplusplus
2295 (void) $as_decl_use;
2296 #else
2297 (void) $as_decl_name;
2298 #endif
2299 #endif
2302 return 0;
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307 else
2308 eval "$3=no"
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_decl
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by package-unused $as_me version-unused, which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2325 $ $0 $@
2327 _ACEOF
2328 exec 5>>config.log
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 _ASUNAME
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2360 done
2361 IFS=$as_save_IFS
2363 } >&5
2365 cat >&5 <<_ACEOF
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2372 _ACEOF
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2386 for ac_arg
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 esac
2396 case $ac_pass in
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2415 as_fn_append ac_configure_args " '$ac_arg'"
2417 esac
2418 done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2431 echo
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
2454 (set) 2>&1 |
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2457 sed -n \
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 esac |
2465 sort
2467 echo
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472 echo
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487 echo
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503 echo
2504 cat confdefs.h
2505 echo
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2510 } >&5
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 exit $exit_status
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566 else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2583 done
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591 case $cache_file in
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2594 esac
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 >$cache_file
2602 # Check that the precious variables saved in the cache have kept the same
2603 # value.
2604 ac_cache_corrupted=false
2605 for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2611 set,)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,set)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,);;
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2638 fi;;
2639 esac
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2642 case $ac_new_val in
2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2645 esac
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649 esac
2651 done
2652 if $ac_cache_corrupted; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659 ## -------------------- ##
2660 ## Main body of script. ##
2661 ## -------------------- ##
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 # AC_CONFIG_MACRO_DIR([config])
2675 ac_config_headers="$ac_config_headers config.h"
2678 libtool_VERSION=20:0:0
2681 # Default to --enable-multilib
2682 # Check whether --enable-multilib was given.
2683 if test "${enable_multilib+set}" = set; then :
2684 enableval=$enable_multilib; case "$enableval" in
2685 yes) multilib=yes ;;
2686 no) multilib=no ;;
2687 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2688 esac
2689 else
2690 multilib=yes
2694 # We may get other options which we leave undocumented:
2695 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2696 # See config-ml.in if you want the gory details.
2698 if test "$srcdir" = "."; then
2699 if test "$with_target_subdir" != "."; then
2700 multi_basedir="$srcdir/$with_multisrctop../.."
2701 else
2702 multi_basedir="$srcdir/$with_multisrctop.."
2704 else
2705 multi_basedir="$srcdir/.."
2709 # Even if the default multilib is not a cross compilation,
2710 # it may be that some of the other multilibs are.
2711 if test $cross_compiling = no && test $multilib = yes \
2712 && test "x${with_multisubdir}" != x ; then
2713 cross_compiling=maybe
2716 ac_config_commands="$ac_config_commands default-1"
2721 ac_aux_dir=
2722 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723 if test -f "$ac_dir/install-sh"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 break
2727 elif test -f "$ac_dir/install.sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 break
2731 elif test -f "$ac_dir/shtool"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/shtool install -c"
2734 break
2736 done
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2750 # Expand $ac_aux_dir to an absolute path.
2751 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2797 if test -z "$ac_cv_prog_CC"; then
2798 ac_ct_CC=$CC
2799 # Extract the first word of "gcc", so it can be a program name with args.
2800 set dummy gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_ac_ct_CC="gcc"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2822 IFS=$as_save_IFS
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2846 else
2847 CC="$ac_cv_prog_CC"
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_CC="${ac_tool_prefix}cc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2891 if test -z "$CC"; then
2892 # Extract the first word of "cc", so it can be a program name with args.
2893 set dummy cc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 ac_prog_rejected=no
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2911 ac_prog_rejected=yes
2912 continue
2914 ac_cv_prog_CC="cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2918 done
2919 done
2920 IFS=$as_save_IFS
2922 if test $ac_prog_rejected = yes; then
2923 # We found a bogon in the path, so make sure we never use it.
2924 set dummy $ac_cv_prog_CC
2925 shift
2926 if test $# != 0; then
2927 # We chose a different compiler from the bogus one.
2928 # However, it has the same basename, so the bogon will be chosen
2929 # first if we set CC to just the basename; use the full file name.
2930 shift
2931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in cl.exe
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$CC" && break
2989 done
2991 if test -z "$CC"; then
2992 ac_ct_CC=$CC
2993 for ac_prog in cl.exe
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$ac_ct_CC" && break
3033 done
3035 if test "x$ac_ct_CC" = x; then
3036 CC=""
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 CC=$ac_ct_CC
3051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details" "$LINENO" 5; }
3056 # Provide some information about the compiler.
3057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3058 set X $ac_compile
3059 ac_compiler=$2
3060 for ac_option in --version -v -V -qversion; do
3061 { { ac_try="$ac_compiler $ac_option >&5"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3069 ac_status=$?
3070 if test -s conftest.err; then
3071 sed '10a\
3072 ... rest of stderr output deleted ...
3073 10q' conftest.err >conftest.er1
3074 cat conftest.er1 >&5
3076 rm -f conftest.er1 conftest.err
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3079 done
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <stdio.h>
3085 main ()
3087 printf ("hello world\n");
3089 return 0;
3091 _ACEOF
3092 # FIXME: Cleanup?
3093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3094 (eval $ac_link) 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 gcc_no_link=no
3099 else
3100 gcc_no_link=yes
3102 if test x$gcc_no_link = xyes; then
3103 # Setting cross_compile will disable run tests; it will
3104 # also disable AC_CHECK_FILE but that's generally
3105 # correct if we can't link.
3106 cross_compiling=yes
3107 EXEEXT=
3108 else
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3113 main ()
3117 return 0;
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3160 test -f "$ac_file" || continue
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
3178 break;;
3180 break;;
3181 esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185 else
3186 ac_file=''
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3253 main ()
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3259 return 0;
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if ${ac_cv_objext+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.o conftest.obj
3326 if { { ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compile") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 for ac_file in conftest.o conftest.obj conftest.*; do
3338 test -f "$ac_file" || continue;
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342 break;;
3343 esac
3344 done
3345 else
3346 $as_echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details" "$LINENO" 5; }
3354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3357 $as_echo "$ac_cv_objext" >&6; }
3358 OBJEXT=$ac_cv_objext
3359 ac_objext=$OBJEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3362 if ${ac_cv_c_compiler_gnu+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 main ()
3371 #ifndef __GNUC__
3372 choke me
3373 #endif
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_compiler_gnu=yes
3381 else
3382 ac_compiler_gnu=no
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3390 if test $ac_compiler_gnu = yes; then
3391 GCC=yes
3392 else
3393 GCC=
3395 ac_test_CFLAGS=${CFLAGS+set}
3396 ac_save_CFLAGS=$CFLAGS
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3399 if ${ac_cv_prog_cc_g+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_save_c_werror_flag=$ac_c_werror_flag
3403 ac_c_werror_flag=yes
3404 ac_cv_prog_cc_g=no
3405 CFLAGS="-g"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_cv_prog_cc_g=yes
3419 else
3420 CFLAGS=""
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3434 else
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3436 CFLAGS="-g"
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 main ()
3445 return 0;
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_g=yes
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3459 $as_echo "$ac_cv_prog_cc_g" >&6; }
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS=$ac_save_CFLAGS
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3464 CFLAGS="-g -O2"
3465 else
3466 CFLAGS="-g"
3468 else
3469 if test "$GCC" = yes; then
3470 CFLAGS="-O2"
3471 else
3472 CFLAGS=
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3477 if ${ac_cv_prog_cc_c89+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 ac_cv_prog_cc_c89=no
3481 ac_save_CC=$CC
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #include <stdarg.h>
3485 #include <stdio.h>
3486 struct stat;
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491 char **p;
3492 int i;
3494 return p[i];
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3498 char *s;
3499 va_list v;
3500 va_start (v,p);
3501 s = g (p, va_arg (v,int));
3502 va_end (v);
3503 return s;
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3527 main ()
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 return 0;
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_c89=$ac_arg
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3577 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3578 if ${am_cv_prog_cc_c_o+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3585 main ()
3589 return 0;
3591 _ACEOF
3592 # Make sure it works both with $CC and with simple cc.
3593 # Following AC_PROG_CC_C_O, we do the test twice because some
3594 # compilers refuse to overwrite an existing .o file with -o,
3595 # though they will create one.
3596 am_cv_prog_cc_c_o=yes
3597 for am_i in 1 2; do
3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } \
3603 && test -f conftest2.$ac_objext; then
3604 : OK
3605 else
3606 am_cv_prog_cc_c_o=no
3607 break
3609 done
3610 rm -f core conftest*
3611 unset am_i
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3614 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3615 if test "$am_cv_prog_cc_c_o" != yes; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3642 if test -z "$CPP"; then
3643 if ${ac_cv_prog_CPP+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 # Double quotes because CPP needs to be expanded
3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3649 ac_preproc_ok=false
3650 for ac_c_preproc_warn_flag in '' yes
3652 # Use a header file that comes with gcc, so configuring glibc
3653 # with a fresh cross-compiler works.
3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655 # <limits.h> exists even on freestanding compilers.
3656 # On the NeXT, cc -E runs the code through the compiler's parser,
3657 # not just through cpp. "Syntax error" is here to catch this case.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #ifdef __STDC__
3661 # include <limits.h>
3662 #else
3663 # include <assert.h>
3664 #endif
3665 Syntax error
3666 _ACEOF
3667 if ac_fn_c_try_cpp "$LINENO"; then :
3669 else
3670 # Broken: fails on valid input.
3671 continue
3673 rm -f conftest.err conftest.i conftest.$ac_ext
3675 # OK, works on sane cases. Now check whether nonexistent headers
3676 # can be detected and how.
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <ac_nonexistent.h>
3680 _ACEOF
3681 if ac_fn_c_try_cpp "$LINENO"; then :
3682 # Broken: success on invalid input.
3683 continue
3684 else
3685 # Passes both tests.
3686 ac_preproc_ok=:
3687 break
3689 rm -f conftest.err conftest.i conftest.$ac_ext
3691 done
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.i conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then :
3695 break
3698 done
3699 ac_cv_prog_CPP=$CPP
3702 CPP=$ac_cv_prog_CPP
3703 else
3704 ac_cv_prog_CPP=$CPP
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3707 $as_echo "$CPP" >&6; }
3708 ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3728 else
3729 # Broken: fails on valid input.
3730 continue
3732 rm -f conftest.err conftest.i conftest.$ac_ext
3734 # OK, works on sane cases. Now check whether nonexistent headers
3735 # can be detected and how.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741 # Broken: success on invalid input.
3742 continue
3743 else
3744 # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3748 rm -f conftest.err conftest.i conftest.$ac_ext
3750 done
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.i conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then :
3755 else
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details" "$LINENO" 5; }
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3771 if ${ac_cv_path_GREP+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$GREP"; then
3775 ac_path_GREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in grep ggrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3785 as_fn_executable_p "$ac_path_GREP" || continue
3786 # Check for GNU ac_path_GREP and select it if it is found.
3787 # Check for GNU $ac_path_GREP
3788 case `"$ac_path_GREP" --version 2>&1` in
3789 *GNU*)
3790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3792 ac_count=0
3793 $as_echo_n 0123456789 >"conftest.in"
3794 while :
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 $as_echo 'GREP' >> "conftest.nl"
3800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 as_fn_arith $ac_count + 1 && ac_count=$as_val
3803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_GREP="$ac_path_GREP"
3806 ac_path_GREP_max=$ac_count
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3810 done
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 esac
3814 $ac_path_GREP_found && break 3
3815 done
3816 done
3817 done
3818 IFS=$as_save_IFS
3819 if test -z "$ac_cv_path_GREP"; then
3820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 else
3823 ac_cv_path_GREP=$GREP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3828 $as_echo "$ac_cv_path_GREP" >&6; }
3829 GREP="$ac_cv_path_GREP"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3833 $as_echo_n "checking for egrep... " >&6; }
3834 if ${ac_cv_path_EGREP+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838 then ac_cv_path_EGREP="$GREP -E"
3839 else
3840 if test -z "$EGREP"; then
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 as_fn_executable_p "$ac_path_EGREP" || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858 ac_count=0
3859 $as_echo_n 0123456789 >"conftest.in"
3860 while :
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3880 $ac_path_EGREP_found && break 3
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 if test -z "$ac_cv_path_EGREP"; then
3886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3888 else
3889 ac_cv_path_EGREP=$EGREP
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3895 $as_echo "$ac_cv_path_EGREP" >&6; }
3896 EGREP="$ac_cv_path_EGREP"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3900 $as_echo_n "checking for ANSI C header files... " >&6; }
3901 if ${ac_cv_header_stdc+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3907 #include <stdarg.h>
3908 #include <string.h>
3909 #include <float.h>
3912 main ()
3916 return 0;
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_header_stdc=yes
3921 else
3922 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <string.h>
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then :
3936 else
3937 ac_cv_header_stdc=no
3939 rm -f conftest*
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #include <stdlib.h>
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "free" >/dev/null 2>&1; then :
3953 else
3954 ac_cv_header_stdc=no
3956 rm -f conftest*
3960 if test $ac_cv_header_stdc = yes; then
3961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3962 if test "$cross_compiling" = yes; then :
3964 else
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <ctype.h>
3968 #include <stdlib.h>
3969 #if ((' ' & 0x0FF) == 0x020)
3970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3972 #else
3973 # define ISLOWER(c) \
3974 (('a' <= (c) && (c) <= 'i') \
3975 || ('j' <= (c) && (c) <= 'r') \
3976 || ('s' <= (c) && (c) <= 'z'))
3977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #endif
3980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982 main ()
3984 int i;
3985 for (i = 0; i < 256; i++)
3986 if (XOR (islower (i), ISLOWER (i))
3987 || toupper (i) != TOUPPER (i))
3988 return 2;
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_run "$LINENO"; then :
3994 else
3995 ac_cv_header_stdc=no
3997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3998 conftest.$ac_objext conftest.beam conftest.$ac_ext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4004 $as_echo "$ac_cv_header_stdc" >&6; }
4005 if test $ac_cv_header_stdc = yes; then
4007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4014 do :
4015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4019 cat >>confdefs.h <<_ACEOF
4020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4021 _ACEOF
4025 done
4029 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4030 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4031 MINIX=yes
4032 else
4033 MINIX=
4037 if test "$MINIX" = yes; then
4039 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4042 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4045 $as_echo "#define _MINIX 1" >>confdefs.h
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4051 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4052 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4058 # define __EXTENSIONS__ 1
4059 $ac_includes_default
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_safe_to_define___extensions__=yes
4070 else
4071 ac_cv_safe_to_define___extensions__=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4076 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4077 test $ac_cv_safe_to_define___extensions__ = yes &&
4078 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4080 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4082 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4084 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4086 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4090 # Do not delete or change the following two lines. For why, see
4091 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4092 # Make sure we can run config.sub.
4093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4094 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4097 $as_echo_n "checking build system type... " >&6; }
4098 if ${ac_cv_build+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 ac_build_alias=$build_alias
4102 test "x$ac_build_alias" = x &&
4103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4104 test "x$ac_build_alias" = x &&
4105 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4111 $as_echo "$ac_cv_build" >&6; }
4112 case $ac_cv_build in
4113 *-*-*) ;;
4114 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4115 esac
4116 build=$ac_cv_build
4117 ac_save_IFS=$IFS; IFS='-'
4118 set x $ac_cv_build
4119 shift
4120 build_cpu=$1
4121 build_vendor=$2
4122 shift; shift
4123 # Remember, the first character of IFS is used to create $*,
4124 # except with old shells:
4125 build_os=$*
4126 IFS=$ac_save_IFS
4127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4131 $as_echo_n "checking host system type... " >&6; }
4132 if ${ac_cv_host+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test "x$host_alias" = x; then
4136 ac_cv_host=$ac_cv_build
4137 else
4138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4144 $as_echo "$ac_cv_host" >&6; }
4145 case $ac_cv_host in
4146 *-*-*) ;;
4147 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4148 esac
4149 host=$ac_cv_host
4150 ac_save_IFS=$IFS; IFS='-'
4151 set x $ac_cv_host
4152 shift
4153 host_cpu=$1
4154 host_vendor=$2
4155 shift; shift
4156 # Remember, the first character of IFS is used to create $*,
4157 # except with old shells:
4158 host_os=$*
4159 IFS=$ac_save_IFS
4160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4164 $as_echo_n "checking target system type... " >&6; }
4165 if ${ac_cv_target+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test "x$target_alias" = x; then
4169 ac_cv_target=$ac_cv_host
4170 else
4171 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4172 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4177 $as_echo "$ac_cv_target" >&6; }
4178 case $ac_cv_target in
4179 *-*-*) ;;
4180 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4181 esac
4182 target=$ac_cv_target
4183 ac_save_IFS=$IFS; IFS='-'
4184 set x $ac_cv_target
4185 shift
4186 target_cpu=$1
4187 target_vendor=$2
4188 shift; shift
4189 # Remember, the first character of IFS is used to create $*,
4190 # except with old shells:
4191 target_os=$*
4192 IFS=$ac_save_IFS
4193 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4196 # The aliases save the names the user supplied, while $host etc.
4197 # will get canonicalized.
4198 test -n "$target_alias" &&
4199 test "$program_prefix$program_suffix$program_transform_name" = \
4200 NONENONEs,x,x, &&
4201 program_prefix=${target_alias}-
4203 target_alias=${target_alias-$host_alias}
4206 if test "$build" != "$host"; then
4207 # We are being configured with some form of cross compiler.
4208 GLIBCXX_IS_NATIVE=false
4209 case "$host","$target" in
4210 # Darwin crosses can use the host system's libraries and headers,
4211 # because of the fat library support. Of course, it must be the
4212 # same version of Darwin on both sides. Allow the user to
4213 # just say --target=foo-darwin without a version number to mean
4214 # "the version on this system".
4215 *-*-darwin*,*-*-darwin*)
4216 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
4217 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
4218 if test $hostos = $targetos || test $targetos = darwin ; then
4219 GLIBCXX_IS_NATIVE=true
4226 esac
4227 else
4228 GLIBCXX_IS_NATIVE=true
4231 # Runs configure.host, and assorted other critical bits. Sets
4232 # up critical shell variables.
4234 # Keep these sync'd with the list in Makefile.am. The first provides an
4235 # expandable list at autoconf time; the second provides an expandable list
4236 # (i.e., shell variable) at configure time.
4238 SUBDIRS=''
4240 # These need to be absolute paths, yet at the same time need to
4241 # canonicalize only relative paths, because then amd will not unmount
4242 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4243 glibcxx_builddir=`${PWDCMD-pwd}`
4244 case $srcdir in
4245 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
4246 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4247 esac
4248 toplevel_builddir=${glibcxx_builddir}/..
4249 toplevel_srcdir=${glibcxx_srcdir}/..
4255 # We use these options to decide which functions to include. They are
4256 # set from the top level.
4258 # Check whether --with-target-subdir was given.
4259 if test "${with_target_subdir+set}" = set; then :
4260 withval=$with_target_subdir;
4265 # Check whether --with-cross-host was given.
4266 if test "${with_cross_host+set}" = set; then :
4267 withval=$with_cross_host;
4272 # Check whether --with-newlib was given.
4273 if test "${with_newlib+set}" = set; then :
4274 withval=$with_newlib;
4278 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
4279 # available). Uncomment the next line to force a particular method.
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4281 $as_echo_n "checking whether ln -s works... " >&6; }
4282 LN_S=$as_ln_s
4283 if test "$LN_S" = "ln -s"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 $as_echo "yes" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4288 $as_echo "no, using $LN_S" >&6; }
4291 #LN_S='cp -p'
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}as; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_AS+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$AS"; then
4302 ac_cv_prog_AS="$AS" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_AS="${ac_tool_prefix}as"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
4321 AS=$ac_cv_prog_AS
4322 if test -n "$AS"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4324 $as_echo "$AS" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4332 if test -z "$ac_cv_prog_AS"; then
4333 ac_ct_AS=$AS
4334 # Extract the first word of "as", so it can be a program name with args.
4335 set dummy as; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$ac_ct_AS"; then
4342 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_ac_ct_AS="as"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4362 if test -n "$ac_ct_AS"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4364 $as_echo "$ac_ct_AS" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4370 if test "x$ac_ct_AS" = x; then
4371 AS=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 AS=$ac_ct_AS
4381 else
4382 AS="$ac_cv_prog_AS"
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}ar; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_AR+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -n "$AR"; then
4394 ac_cv_prog_AR="$AR" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_AR="${ac_tool_prefix}ar"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4409 IFS=$as_save_IFS
4413 AR=$ac_cv_prog_AR
4414 if test -n "$AR"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4416 $as_echo "$AR" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4424 if test -z "$ac_cv_prog_AR"; then
4425 ac_ct_AR=$AR
4426 # Extract the first word of "ar", so it can be a program name with args.
4427 set dummy ar; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$ac_ct_AR"; then
4434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_ac_ct_AR="ar"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4454 if test -n "$ac_ct_AR"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4456 $as_echo "$ac_ct_AR" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4462 if test "x$ac_ct_AR" = x; then
4463 AR=""
4464 else
4465 case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471 AR=$ac_ct_AR
4473 else
4474 AR="$ac_cv_prog_AR"
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_RANLIB+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -n "$RANLIB"; then
4486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4499 done
4500 done
4501 IFS=$as_save_IFS
4505 RANLIB=$ac_cv_prog_RANLIB
4506 if test -n "$RANLIB"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4508 $as_echo "$RANLIB" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4516 if test -z "$ac_cv_prog_RANLIB"; then
4517 ac_ct_RANLIB=$RANLIB
4518 # Extract the first word of "ranlib", so it can be a program name with args.
4519 set dummy ranlib; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$ac_ct_RANLIB"; then
4526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_ac_ct_RANLIB="ranlib"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4546 if test -n "$ac_ct_RANLIB"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4548 $as_echo "$ac_ct_RANLIB" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4554 if test "x$ac_ct_RANLIB" = x; then
4555 RANLIB="ranlib-not-found-in-path-error"
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4562 esac
4563 RANLIB=$ac_ct_RANLIB
4565 else
4566 RANLIB="$ac_cv_prog_RANLIB"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4572 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4573 # Check whether --enable-maintainer-mode was given.
4574 if test "${enable_maintainer_mode+set}" = set; then :
4575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4576 else
4577 USE_MAINTAINER_MODE=no
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4581 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4582 if test $USE_MAINTAINER_MODE = yes; then
4583 MAINTAINER_MODE_TRUE=
4584 MAINTAINER_MODE_FALSE='#'
4585 else
4586 MAINTAINER_MODE_TRUE='#'
4587 MAINTAINER_MODE_FALSE=
4590 MAINT=$MAINTAINER_MODE_TRUE
4594 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4595 # which are themselves conditionally expanded.
4596 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4597 ## other macros from doing the same. This should be automated.) -pme
4599 # Check for C library flavor since GNU/Linux platforms use different
4600 # configuration directories depending on the C library in use.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4604 #include <stdio.h>
4605 #if __UCLIBC__
4606 _using_uclibc
4607 #endif
4609 _ACEOF
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
4612 uclibc=yes
4613 else
4614 uclibc=no
4616 rm -f conftest*
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 #include <stdio.h>
4623 #if __BIONIC__
4624 _using_bionic
4625 #endif
4627 _ACEOF
4628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629 $EGREP "_using_bionic" >/dev/null 2>&1; then :
4630 bionic=yes
4631 else
4632 bionic=no
4634 rm -f conftest*
4637 # Find platform-specific directories containing configuration info.
4638 # Also possibly modify flags used elsewhere, as needed by the platform.
4640 . $glibcxx_srcdir/configure.host
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
4642 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
4644 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
4648 # For gettimeofday support.
4649 ac_ext=cpp
4650 ac_cpp='$CXXCPP $CPPFLAGS'
4651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4654 if test -z "$CXX"; then
4655 if test -n "$CCC"; then
4656 CXX=$CCC
4657 else
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_CXX+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$CXX"; then
4669 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 CXX=$ac_cv_prog_CXX
4689 if test -n "$CXX"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4691 $as_echo "$CXX" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4698 test -n "$CXX" && break
4699 done
4701 if test -z "$CXX"; then
4702 ac_ct_CXX=$CXX
4703 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$ac_ct_CXX"; then
4713 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_ac_ct_CXX="$ac_prog"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4726 done
4727 done
4728 IFS=$as_save_IFS
4732 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4733 if test -n "$ac_ct_CXX"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4735 $as_echo "$ac_ct_CXX" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4742 test -n "$ac_ct_CXX" && break
4743 done
4745 if test "x$ac_ct_CXX" = x; then
4746 CXX="g++"
4747 else
4748 case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4753 esac
4754 CXX=$ac_ct_CXX
4760 # Provide some information about the compiler.
4761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4762 set X $ac_compile
4763 ac_compiler=$2
4764 for ac_option in --version -v -V -qversion; do
4765 { { ac_try="$ac_compiler $ac_option >&5"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771 $as_echo "$ac_try_echo"; } >&5
4772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4773 ac_status=$?
4774 if test -s conftest.err; then
4775 sed '10a\
4776 ... rest of stderr output deleted ...
4777 10q' conftest.err >conftest.er1
4778 cat conftest.er1 >&5
4780 rm -f conftest.er1 conftest.err
4781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782 test $ac_status = 0; }
4783 done
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4786 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4787 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4794 main ()
4796 #ifndef __GNUC__
4797 choke me
4798 #endif
4801 return 0;
4803 _ACEOF
4804 if ac_fn_cxx_try_compile "$LINENO"; then :
4805 ac_compiler_gnu=yes
4806 else
4807 ac_compiler_gnu=no
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4814 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4815 if test $ac_compiler_gnu = yes; then
4816 GXX=yes
4817 else
4818 GXX=
4820 ac_test_CXXFLAGS=${CXXFLAGS+set}
4821 ac_save_CXXFLAGS=$CXXFLAGS
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4823 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4824 if ${ac_cv_prog_cxx_g+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4828 ac_cxx_werror_flag=yes
4829 ac_cv_prog_cxx_g=no
4830 CXXFLAGS="-g"
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4835 main ()
4839 return 0;
4841 _ACEOF
4842 if ac_fn_cxx_try_compile "$LINENO"; then :
4843 ac_cv_prog_cxx_g=yes
4844 else
4845 CXXFLAGS=""
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 main ()
4854 return 0;
4856 _ACEOF
4857 if ac_fn_cxx_try_compile "$LINENO"; then :
4859 else
4860 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4861 CXXFLAGS="-g"
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4866 main ()
4870 return 0;
4872 _ACEOF
4873 if ac_fn_cxx_try_compile "$LINENO"; then :
4874 ac_cv_prog_cxx_g=yes
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4884 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4885 if test "$ac_test_CXXFLAGS" = set; then
4886 CXXFLAGS=$ac_save_CXXFLAGS
4887 elif test $ac_cv_prog_cxx_g = yes; then
4888 if test "$GXX" = yes; then
4889 CXXFLAGS="-g -O2"
4890 else
4891 CXXFLAGS="-g"
4893 else
4894 if test "$GXX" = yes; then
4895 CXXFLAGS="-O2"
4896 else
4897 CXXFLAGS=
4900 ac_ext=cpp
4901 ac_cpp='$CXXCPP $CPPFLAGS'
4902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4907 ac_ext=cpp
4908 ac_cpp='$CXXCPP $CPPFLAGS'
4909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4913 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4914 if test -z "$CXXCPP"; then
4915 if ${ac_cv_prog_CXXCPP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 # Double quotes because CXXCPP needs to be expanded
4919 for CXXCPP in "$CXX -E" "/lib/cpp"
4921 ac_preproc_ok=false
4922 for ac_cxx_preproc_warn_flag in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937 Syntax error
4938 _ACEOF
4939 if ac_fn_cxx_try_cpp "$LINENO"; then :
4941 else
4942 # Broken: fails on valid input.
4943 continue
4945 rm -f conftest.err conftest.i conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_cxx_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4955 continue
4956 else
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4961 rm -f conftest.err conftest.i conftest.$ac_ext
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.i conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4967 break
4970 done
4971 ac_cv_prog_CXXCPP=$CXXCPP
4974 CXXCPP=$ac_cv_prog_CXXCPP
4975 else
4976 ac_cv_prog_CXXCPP=$CXXCPP
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4979 $as_echo "$CXXCPP" >&6; }
4980 ac_preproc_ok=false
4981 for ac_cxx_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996 Syntax error
4997 _ACEOF
4998 if ac_fn_cxx_try_cpp "$LINENO"; then :
5000 else
5001 # Broken: fails on valid input.
5002 continue
5004 rm -f conftest.err conftest.i conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if ac_fn_cxx_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5014 continue
5015 else
5016 # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5020 rm -f conftest.err conftest.i conftest.$ac_ext
5022 done
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.i conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5027 else
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5031 See \`config.log' for more details" "$LINENO" 5; }
5034 ac_ext=cpp
5035 ac_cpp='$CXXCPP $CPPFLAGS'
5036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5044 $as_echo_n "checking for gettimeofday... " >&6; }
5047 ac_ext=cpp
5048 ac_cpp='$CXXCPP $CPPFLAGS'
5049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053 ac_save_CXXFLAGS="$CXXFLAGS"
5054 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5056 ac_has_gettimeofday=no;
5057 for ac_header in sys/time.h
5058 do :
5059 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5060 if test "x$ac_cv_header_sys_time_h" = xyes; then :
5061 cat >>confdefs.h <<_ACEOF
5062 #define HAVE_SYS_TIME_H 1
5063 _ACEOF
5064 ac_has_sys_time_h=yes
5065 else
5066 ac_has_sys_time_h=no
5069 done
5071 if test x"$ac_has_sys_time_h" = x"yes"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5073 $as_echo_n "checking for gettimeofday... " >&6; }
5074 if test x$gcc_no_link = xyes; then
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <sys/time.h>
5079 main ()
5081 timeval tv; gettimeofday(&tv, 0);
5083 return 0;
5085 _ACEOF
5086 if ac_fn_cxx_try_compile "$LINENO"; then :
5087 ac_has_gettimeofday=yes
5088 else
5089 ac_has_gettimeofday=no
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 else
5093 if test x$gcc_no_link = xyes; then
5094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <sys/time.h>
5100 main ()
5102 timeval tv; gettimeofday(&tv, 0);
5104 return 0;
5106 _ACEOF
5107 if ac_fn_cxx_try_link "$LINENO"; then :
5108 ac_has_gettimeofday=yes
5109 else
5110 ac_has_gettimeofday=no
5112 rm -f core conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
5117 $as_echo "$ac_has_gettimeofday" >&6; }
5120 if test x"$ac_has_gettimeofday" = x"yes"; then
5122 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
5126 CXXFLAGS="$ac_save_CXXFLAGS"
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 # For clock_gettime, nanosleep and sched_yield support.
5138 # Check whether --enable-libstdcxx-time was given.
5139 if test "${enable_libstdcxx_time+set}" = set; then :
5140 enableval=$enable_libstdcxx_time;
5141 case "$enableval" in
5142 yes|no|rt) ;;
5143 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
5144 esac
5146 else
5147 enable_libstdcxx_time=auto
5153 ac_ext=cpp
5154 ac_cpp='$CXXCPP $CPPFLAGS'
5155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 ac_save_CXXFLAGS="$CXXFLAGS"
5160 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5161 ac_save_LIBS="$LIBS"
5163 ac_has_clock_monotonic=no
5164 ac_has_clock_realtime=no
5165 ac_has_nanosleep=no
5166 ac_has_sched_yield=no
5168 if test x"$enable_libstdcxx_time" = x"auto"; then
5170 case "${target_os}" in
5171 cygwin*)
5172 ac_has_nanosleep=yes
5174 mingw*)
5175 ac_has_win32_sleep=yes
5176 ac_has_sched_yield=yes
5178 darwin*)
5179 ac_has_nanosleep=yes
5180 ac_has_sched_yield=yes
5182 # VxWorks has nanosleep as soon as the kernel is configured with
5183 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
5184 vxworks*)
5185 ac_has_nanosleep=yes
5187 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
5188 # Don't use link test for freestanding library, in case gcc_no_link=yes
5189 if test x"$is_hosted" = xyes; then
5190 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5192 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5193 if ${ac_cv_search_clock_gettime+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 ac_func_search_save_LIBS=$LIBS
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5203 #ifdef __cplusplus
5204 extern "C"
5205 #endif
5206 char clock_gettime ();
5208 main ()
5210 return clock_gettime ();
5212 return 0;
5214 _ACEOF
5215 for ac_lib in '' rt; do
5216 if test -z "$ac_lib"; then
5217 ac_res="none required"
5218 else
5219 ac_res=-l$ac_lib
5220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5222 if test x$gcc_no_link = xyes; then
5223 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5225 if ac_fn_cxx_try_link "$LINENO"; then :
5226 ac_cv_search_clock_gettime=$ac_res
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext
5230 if ${ac_cv_search_clock_gettime+:} false; then :
5231 break
5233 done
5234 if ${ac_cv_search_clock_gettime+:} false; then :
5236 else
5237 ac_cv_search_clock_gettime=no
5239 rm conftest.$ac_ext
5240 LIBS=$ac_func_search_save_LIBS
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5243 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5244 ac_res=$ac_cv_search_clock_gettime
5245 if test "$ac_res" != no; then :
5246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5250 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
5251 ac_has_clock_monotonic=yes
5252 ac_has_clock_realtime=yes
5255 ac_has_nanosleep=yes
5256 ac_has_sched_yield=yes
5258 freebsd*|netbsd*|dragonfly*|rtems*)
5259 ac_has_clock_monotonic=yes
5260 ac_has_clock_realtime=yes
5261 ac_has_nanosleep=yes
5262 ac_has_sched_yield=yes
5264 openbsd*)
5265 ac_has_clock_monotonic=yes
5266 ac_has_clock_realtime=yes
5267 ac_has_nanosleep=yes
5269 solaris*)
5270 ac_has_clock_monotonic=yes
5271 ac_has_clock_realtime=yes
5272 ac_has_nanosleep=yes
5273 ac_has_sched_yield=yes
5275 uclinux*)
5276 ac_has_nanosleep=yes
5277 ac_has_sched_yield=yes
5278 esac
5280 elif test x"$enable_libstdcxx_time" != x"no"; then
5282 if test x"$enable_libstdcxx_time" = x"rt"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5284 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5285 if ${ac_cv_search_clock_gettime+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 ac_func_search_save_LIBS=$LIBS
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 /* Override any GCC internal prototype to avoid an error.
5293 Use char because int might match the return type of a GCC
5294 builtin and then its argument prototype would still apply. */
5295 #ifdef __cplusplus
5296 extern "C"
5297 #endif
5298 char clock_gettime ();
5300 main ()
5302 return clock_gettime ();
5304 return 0;
5306 _ACEOF
5307 for ac_lib in '' rt; do
5308 if test -z "$ac_lib"; then
5309 ac_res="none required"
5310 else
5311 ac_res=-l$ac_lib
5312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5314 if test x$gcc_no_link = xyes; then
5315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5317 if ac_fn_cxx_try_link "$LINENO"; then :
5318 ac_cv_search_clock_gettime=$ac_res
5320 rm -f core conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext
5322 if ${ac_cv_search_clock_gettime+:} false; then :
5323 break
5325 done
5326 if ${ac_cv_search_clock_gettime+:} false; then :
5328 else
5329 ac_cv_search_clock_gettime=no
5331 rm conftest.$ac_ext
5332 LIBS=$ac_func_search_save_LIBS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5335 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5336 ac_res=$ac_cv_search_clock_gettime
5337 if test "$ac_res" != no; then :
5338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
5343 $as_echo_n "checking for library containing nanosleep... " >&6; }
5344 if ${ac_cv_search_nanosleep+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 ac_func_search_save_LIBS=$LIBS
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 /* Override any GCC internal prototype to avoid an error.
5352 Use char because int might match the return type of a GCC
5353 builtin and then its argument prototype would still apply. */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 char nanosleep ();
5359 main ()
5361 return nanosleep ();
5363 return 0;
5365 _ACEOF
5366 for ac_lib in '' rt; do
5367 if test -z "$ac_lib"; then
5368 ac_res="none required"
5369 else
5370 ac_res=-l$ac_lib
5371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5373 if test x$gcc_no_link = xyes; then
5374 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5376 if ac_fn_cxx_try_link "$LINENO"; then :
5377 ac_cv_search_nanosleep=$ac_res
5379 rm -f core conftest.err conftest.$ac_objext \
5380 conftest$ac_exeext
5381 if ${ac_cv_search_nanosleep+:} false; then :
5382 break
5384 done
5385 if ${ac_cv_search_nanosleep+:} false; then :
5387 else
5388 ac_cv_search_nanosleep=no
5390 rm conftest.$ac_ext
5391 LIBS=$ac_func_search_save_LIBS
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
5394 $as_echo "$ac_cv_search_nanosleep" >&6; }
5395 ac_res=$ac_cv_search_nanosleep
5396 if test "$ac_res" != no; then :
5397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5401 else
5402 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5403 if test "x$ac_cv_func_clock_gettime" = xyes; then :
5407 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5408 if test "x$ac_cv_func_nanosleep" = xyes; then :
5414 case "$ac_cv_search_clock_gettime" in
5415 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
5417 esac
5418 case "$ac_cv_search_nanosleep" in
5419 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
5421 esac
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
5424 $as_echo_n "checking for library containing sched_yield... " >&6; }
5425 if ${ac_cv_search_sched_yield+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 ac_func_search_save_LIBS=$LIBS
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 /* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5435 #ifdef __cplusplus
5436 extern "C"
5437 #endif
5438 char sched_yield ();
5440 main ()
5442 return sched_yield ();
5444 return 0;
5446 _ACEOF
5447 for ac_lib in '' rt; do
5448 if test -z "$ac_lib"; then
5449 ac_res="none required"
5450 else
5451 ac_res=-l$ac_lib
5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5454 if test x$gcc_no_link = xyes; then
5455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5457 if ac_fn_cxx_try_link "$LINENO"; then :
5458 ac_cv_search_sched_yield=$ac_res
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext
5462 if ${ac_cv_search_sched_yield+:} false; then :
5463 break
5465 done
5466 if ${ac_cv_search_sched_yield+:} false; then :
5468 else
5469 ac_cv_search_sched_yield=no
5471 rm conftest.$ac_ext
5472 LIBS=$ac_func_search_save_LIBS
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
5475 $as_echo "$ac_cv_search_sched_yield" >&6; }
5476 ac_res=$ac_cv_search_sched_yield
5477 if test "$ac_res" != no; then :
5478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5483 case "$ac_cv_search_sched_yield" in
5484 -lrt*)
5485 if test x"$enable_libstdcxx_time" = x"rt"; then
5486 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
5487 ac_has_sched_yield=yes
5491 ac_has_sched_yield=yes
5493 esac
5495 for ac_header in unistd.h
5496 do :
5497 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5498 if test "x$ac_cv_header_unistd_h" = xyes; then :
5499 cat >>confdefs.h <<_ACEOF
5500 #define HAVE_UNISTD_H 1
5501 _ACEOF
5502 ac_has_unistd_h=yes
5503 else
5504 ac_has_unistd_h=no
5507 done
5510 if test x"$ac_has_unistd_h" = x"yes"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
5512 $as_echo_n "checking for monotonic clock... " >&6; }
5513 if test x$gcc_no_link = xyes; then
5514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #include <unistd.h>
5519 #include <time.h>
5522 main ()
5524 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5525 timespec tp;
5526 #endif
5527 clock_gettime(CLOCK_MONOTONIC, &tp);
5530 return 0;
5532 _ACEOF
5533 if ac_fn_cxx_try_link "$LINENO"; then :
5534 ac_has_clock_monotonic=yes
5535 else
5536 ac_has_clock_monotonic=no
5538 rm -f core conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
5542 $as_echo "$ac_has_clock_monotonic" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
5545 $as_echo_n "checking for realtime clock... " >&6; }
5546 if test x$gcc_no_link = xyes; then
5547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <unistd.h>
5552 #include <time.h>
5555 main ()
5557 #if _POSIX_TIMERS > 0
5558 timespec tp;
5559 #endif
5560 clock_gettime(CLOCK_REALTIME, &tp);
5563 return 0;
5565 _ACEOF
5566 if ac_fn_cxx_try_link "$LINENO"; then :
5567 ac_has_clock_realtime=yes
5568 else
5569 ac_has_clock_realtime=no
5571 rm -f core conftest.err conftest.$ac_objext \
5572 conftest$ac_exeext conftest.$ac_ext
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
5575 $as_echo "$ac_has_clock_realtime" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
5578 $as_echo_n "checking for nanosleep... " >&6; }
5579 if test x$gcc_no_link = xyes; then
5580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <unistd.h>
5585 #include <time.h>
5588 main ()
5590 #if _POSIX_TIMERS > 0
5591 timespec tp;
5592 #endif
5593 nanosleep(&tp, 0);
5596 return 0;
5598 _ACEOF
5599 if ac_fn_cxx_try_link "$LINENO"; then :
5600 ac_has_nanosleep=yes
5601 else
5602 ac_has_nanosleep=no
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
5608 $as_echo "$ac_has_nanosleep" >&6; }
5612 if test x"$ac_has_clock_monotonic" != x"yes"; then
5613 case ${target_os} in
5614 linux* | uclinux*)
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5616 $as_echo_n "checking for clock_gettime syscall... " >&6; }
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <unistd.h>
5620 #include <time.h>
5621 #include <sys/syscall.h>
5624 main ()
5626 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5627 timespec tp;
5628 #endif
5629 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
5630 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
5633 return 0;
5635 _ACEOF
5636 if ac_fn_cxx_try_compile "$LINENO"; then :
5637 ac_has_clock_gettime_syscall=yes
5638 else
5639 ac_has_clock_gettime_syscall=no
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
5643 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
5644 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
5646 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
5648 ac_has_clock_monotonic=yes
5649 ac_has_clock_realtime=yes
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
5651 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <time.h>
5655 #include <sys/syscall.h>
5658 main ()
5660 #ifdef SYS_clock_gettime64
5661 #if SYS_clock_gettime64 != SYS_clock_gettime
5662 // We need to use SYS_clock_gettime and libc appears to
5663 // also know about the SYS_clock_gettime64 syscall.
5664 // Check that userspace doesn't use time64 version of timespec.
5665 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
5666 "struct timespec must be compatible with SYS_clock_gettime");
5667 #endif
5668 #endif
5671 return 0;
5673 _ACEOF
5674 if ac_fn_cxx_try_compile "$LINENO"; then :
5675 ac_timespec_matches_syscall=yes
5676 else
5677 ac_timespec_matches_syscall=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
5681 $as_echo "$ac_timespec_matches_syscall" >&6; }
5682 if test x"$ac_timespec_matches_syscall" = no; then
5683 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
5685 fi;;
5686 esac
5689 if test x"$ac_has_clock_monotonic" = x"yes"; then
5691 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
5695 if test x"$ac_has_clock_realtime" = x"yes"; then
5697 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
5701 if test x"$ac_has_sched_yield" = x"yes"; then
5703 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
5707 if test x"$ac_has_nanosleep" = x"yes"; then
5709 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
5711 elif test x"$ac_has_win32_sleep" = x"yes"; then
5713 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
5717 $as_echo_n "checking for sleep... " >&6; }
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include <unistd.h>
5722 main ()
5724 sleep(1)
5726 return 0;
5728 _ACEOF
5729 if ac_fn_cxx_try_compile "$LINENO"; then :
5730 ac_has_sleep=yes
5731 else
5732 ac_has_sleep=no
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 if test x"$ac_has_sleep" = x"yes"; then
5737 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
5741 $as_echo "$ac_has_sleep" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
5743 $as_echo_n "checking for usleep... " >&6; }
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <unistd.h>
5748 main ()
5750 sleep(1);
5751 usleep(100);
5753 return 0;
5755 _ACEOF
5756 if ac_fn_cxx_try_compile "$LINENO"; then :
5757 ac_has_usleep=yes
5758 else
5759 ac_has_usleep=no
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 if test x"$ac_has_usleep" = x"yes"; then
5764 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
5768 $as_echo "$ac_has_usleep" >&6; }
5771 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
5773 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
5779 CXXFLAGS="$ac_save_CXXFLAGS"
5780 LIBS="$ac_save_LIBS"
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 am__api_version='1.15'
5791 # Find a good install program. We prefer a C program (faster),
5792 # so one script is as good as another. But avoid the broken or
5793 # incompatible versions:
5794 # SysV /etc/install, /usr/sbin/install
5795 # SunOS /usr/etc/install
5796 # IRIX /sbin/install
5797 # AIX /bin/install
5798 # AmigaOS /C/install, which installs bootblocks on floppy discs
5799 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5800 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5801 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5802 # OS/2's system install, which has a completely different semantic
5803 # ./install, which can be erroneously created by make from ./install.sh.
5804 # Reject install programs that cannot install multiple files.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5806 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5807 if test -z "$INSTALL"; then
5808 if ${ac_cv_path_install+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 # Account for people who put trailing slashes in PATH elements.
5817 case $as_dir/ in #((
5818 ./ | .// | /[cC]/* | \
5819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5820 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5821 /usr/ucb/* ) ;;
5823 # OSF1 and SCO ODT 3.0 have their own names for install.
5824 # Don't use installbsd from OSF since it installs stuff as root
5825 # by default.
5826 for ac_prog in ginstall scoinst install; do
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5829 if test $ac_prog = install &&
5830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5831 # AIX install. It has an incompatible calling convention.
5833 elif test $ac_prog = install &&
5834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5835 # program-specific install script used by HP pwplus--don't use.
5837 else
5838 rm -rf conftest.one conftest.two conftest.dir
5839 echo one > conftest.one
5840 echo two > conftest.two
5841 mkdir conftest.dir
5842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5843 test -s conftest.one && test -s conftest.two &&
5844 test -s conftest.dir/conftest.one &&
5845 test -s conftest.dir/conftest.two
5846 then
5847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5848 break 3
5852 done
5853 done
5855 esac
5857 done
5858 IFS=$as_save_IFS
5860 rm -rf conftest.one conftest.two conftest.dir
5863 if test "${ac_cv_path_install+set}" = set; then
5864 INSTALL=$ac_cv_path_install
5865 else
5866 # As a last resort, use the slow shell script. Don't cache a
5867 # value for INSTALL within a source directory, because that will
5868 # break other packages using the cache if that directory is
5869 # removed, or if the value is a relative name.
5870 INSTALL=$ac_install_sh
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5874 $as_echo "$INSTALL" >&6; }
5876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5877 # It thinks the first close brace ends the variable substitution.
5878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5880 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5885 $as_echo_n "checking whether build environment is sane... " >&6; }
5886 # Reject unsafe characters in $srcdir or the absolute working directory
5887 # name. Accept space and tab only in the latter.
5888 am_lf='
5890 case `pwd` in
5891 *[\\\"\#\$\&\'\`$am_lf]*)
5892 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5893 esac
5894 case $srcdir in
5895 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5896 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5897 esac
5899 # Do 'set' in a subshell so we don't clobber the current shell's
5900 # arguments. Must try -L first in case configure is actually a
5901 # symlink; some systems play weird games with the mod time of symlinks
5902 # (eg FreeBSD returns the mod time of the symlink's containing
5903 # directory).
5904 if (
5905 am_has_slept=no
5906 for am_try in 1 2; do
5907 echo "timestamp, slept: $am_has_slept" > conftest.file
5908 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5909 if test "$*" = "X"; then
5910 # -L didn't work.
5911 set X `ls -t "$srcdir/configure" conftest.file`
5913 if test "$*" != "X $srcdir/configure conftest.file" \
5914 && test "$*" != "X conftest.file $srcdir/configure"; then
5916 # If neither matched, then we have a broken ls. This can happen
5917 # if, for instance, CONFIG_SHELL is bash and it inherits a
5918 # broken ls alias from the environment. This has actually
5919 # happened. Such a system could not be considered "sane".
5920 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5921 alias in your environment" "$LINENO" 5
5923 if test "$2" = conftest.file || test $am_try -eq 2; then
5924 break
5926 # Just in case.
5927 sleep 1
5928 am_has_slept=yes
5929 done
5930 test "$2" = conftest.file
5932 then
5933 # Ok.
5935 else
5936 as_fn_error $? "newly created file is older than distributed files!
5937 Check your system clock" "$LINENO" 5
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5940 $as_echo "yes" >&6; }
5941 # If we didn't sleep, we still need to ensure time stamps of config.status and
5942 # generated files are strictly newer.
5943 am_sleep_pid=
5944 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5945 ( sleep 1 ) &
5946 am_sleep_pid=$!
5949 rm -f conftest.file
5951 test "$program_prefix" != NONE &&
5952 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5953 # Use a double $ so make ignores it.
5954 test "$program_suffix" != NONE &&
5955 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5956 # Double any \ or $.
5957 # By default was `s,x,x', remove it if useless.
5958 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5959 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5961 if test x"${MISSING+set}" != xset; then
5962 case $am_aux_dir in
5963 *\ * | *\ *)
5964 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5966 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5967 esac
5969 # Use eval to expand $SHELL
5970 if eval "$MISSING --is-lightweight"; then
5971 am_missing_run="$MISSING "
5972 else
5973 am_missing_run=
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5975 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5978 if test x"${install_sh+set}" != xset; then
5979 case $am_aux_dir in
5980 *\ * | *\ *)
5981 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5983 install_sh="\${SHELL} $am_aux_dir/install-sh"
5984 esac
5987 # Installed binaries are usually stripped using 'strip' when the user
5988 # run "make install-strip". However 'strip' might not be the right
5989 # tool to use in cross-compilation environments, therefore Automake
5990 # will honor the 'STRIP' environment variable to overrule this program.
5991 if test "$cross_compiling" != no; then
5992 if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}strip; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_prog_STRIP+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -n "$STRIP"; then
6001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6014 done
6015 done
6016 IFS=$as_save_IFS
6020 STRIP=$ac_cv_prog_STRIP
6021 if test -n "$STRIP"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6023 $as_echo "$STRIP" >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6031 if test -z "$ac_cv_prog_STRIP"; then
6032 ac_ct_STRIP=$STRIP
6033 # Extract the first word of "strip", so it can be a program name with args.
6034 set dummy strip; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$ac_ct_STRIP"; then
6041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_ac_ct_STRIP="strip"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6061 if test -n "$ac_ct_STRIP"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6063 $as_echo "$ac_ct_STRIP" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6069 if test "x$ac_ct_STRIP" = x; then
6070 STRIP=":"
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076 ac_tool_warned=yes ;;
6077 esac
6078 STRIP=$ac_ct_STRIP
6080 else
6081 STRIP="$ac_cv_prog_STRIP"
6085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6088 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6089 if test -z "$MKDIR_P"; then
6090 if ${ac_cv_path_mkdir+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_prog in mkdir gmkdir; do
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6101 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6102 'mkdir (GNU coreutils) '* | \
6103 'mkdir (coreutils) '* | \
6104 'mkdir (fileutils) '4.1*)
6105 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6106 break 3;;
6107 esac
6108 done
6109 done
6110 done
6111 IFS=$as_save_IFS
6115 test -d ./--version && rmdir ./--version
6116 if test "${ac_cv_path_mkdir+set}" = set; then
6117 MKDIR_P="$ac_cv_path_mkdir -p"
6118 else
6119 # As a last resort, use the slow shell script. Don't cache a
6120 # value for MKDIR_P within a source directory, because that will
6121 # break other packages using the cache if that directory is
6122 # removed, or if the value is a relative name.
6123 MKDIR_P="$ac_install_sh -d"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6127 $as_echo "$MKDIR_P" >&6; }
6129 for ac_prog in gawk mawk nawk awk
6131 # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_AWK+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$AWK"; then
6139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_AWK="$ac_prog"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6158 AWK=$ac_cv_prog_AWK
6159 if test -n "$AWK"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6161 $as_echo "$AWK" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6168 test -n "$AWK" && break
6169 done
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6173 set x ${MAKE-make}
6174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6175 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat >conftest.make <<\_ACEOF
6179 SHELL = /bin/sh
6180 all:
6181 @echo '@@@%%%=$(MAKE)=@@@%%%'
6182 _ACEOF
6183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6184 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6185 *@@@%%%=?*=@@@%%%*)
6186 eval ac_cv_prog_make_${ac_make}_set=yes;;
6188 eval ac_cv_prog_make_${ac_make}_set=no;;
6189 esac
6190 rm -f conftest.make
6192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6194 $as_echo "yes" >&6; }
6195 SET_MAKE=
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 SET_MAKE="MAKE=${MAKE-make}"
6202 rm -rf .tst 2>/dev/null
6203 mkdir .tst 2>/dev/null
6204 if test -d .tst; then
6205 am__leading_dot=.
6206 else
6207 am__leading_dot=_
6209 rmdir .tst 2>/dev/null
6211 DEPDIR="${am__leading_dot}deps"
6213 ac_config_commands="$ac_config_commands depfiles"
6216 am_make=${MAKE-make}
6217 cat > confinc << 'END'
6218 am__doit:
6219 @echo this is the am__doit target
6220 .PHONY: am__doit
6222 # If we don't find an include directive, just comment out the code.
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6224 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6225 am__include="#"
6226 am__quote=
6227 _am_result=none
6228 # First try GNU make style include.
6229 echo "include confinc" > confmf
6230 # Ignore all kinds of additional output from 'make'.
6231 case `$am_make -s -f confmf 2> /dev/null` in #(
6232 *the\ am__doit\ target*)
6233 am__include=include
6234 am__quote=
6235 _am_result=GNU
6237 esac
6238 # Now try BSD make style include.
6239 if test "$am__include" = "#"; then
6240 echo '.include "confinc"' > confmf
6241 case `$am_make -s -f confmf 2> /dev/null` in #(
6242 *the\ am__doit\ target*)
6243 am__include=.include
6244 am__quote="\""
6245 _am_result=BSD
6247 esac
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6252 $as_echo "$_am_result" >&6; }
6253 rm -f confinc confmf
6255 # Check whether --enable-dependency-tracking was given.
6256 if test "${enable_dependency_tracking+set}" = set; then :
6257 enableval=$enable_dependency_tracking;
6260 if test "x$enable_dependency_tracking" != xno; then
6261 am_depcomp="$ac_aux_dir/depcomp"
6262 AMDEPBACKSLASH='\'
6263 am__nodep='_no'
6265 if test "x$enable_dependency_tracking" != xno; then
6266 AMDEP_TRUE=
6267 AMDEP_FALSE='#'
6268 else
6269 AMDEP_TRUE='#'
6270 AMDEP_FALSE=
6274 # Check whether --enable-silent-rules was given.
6275 if test "${enable_silent_rules+set}" = set; then :
6276 enableval=$enable_silent_rules;
6279 case $enable_silent_rules in # (((
6280 yes) AM_DEFAULT_VERBOSITY=0;;
6281 no) AM_DEFAULT_VERBOSITY=1;;
6282 *) AM_DEFAULT_VERBOSITY=1;;
6283 esac
6284 am_make=${MAKE-make}
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6286 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6287 if ${am_cv_make_support_nested_variables+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if $as_echo 'TRUE=$(BAR$(V))
6291 BAR0=false
6292 BAR1=true
6294 am__doit:
6295 @$(TRUE)
6296 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6297 am_cv_make_support_nested_variables=yes
6298 else
6299 am_cv_make_support_nested_variables=no
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6303 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6304 if test $am_cv_make_support_nested_variables = yes; then
6305 AM_V='$(V)'
6306 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6307 else
6308 AM_V=$AM_DEFAULT_VERBOSITY
6309 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6311 AM_BACKSLASH='\'
6313 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6314 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6315 # is not polluted with repeated "-I."
6316 am__isrc=' -I$(srcdir)'
6317 # test to see if srcdir already configured
6318 if test -f $srcdir/config.status; then
6319 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6323 # test whether we have cygpath
6324 if test -z "$CYGPATH_W"; then
6325 if (cygpath --version) >/dev/null 2>/dev/null; then
6326 CYGPATH_W='cygpath -w'
6327 else
6328 CYGPATH_W=echo
6333 # Define the identity of the package.
6334 PACKAGE='libgm2'
6335 VERSION='version-unused'
6338 # Some tools Automake needs.
6340 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6343 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6346 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6349 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6352 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6354 # For better backward compatibility. To be removed once Automake 1.9.x
6355 # dies out for good. For more background, see:
6356 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6357 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6358 mkdir_p='$(MKDIR_P)'
6360 # We need awk for the "check" target (and possibly the TAP driver). The
6361 # system "awk" is bad on some platforms.
6362 # Always define AMTAR for backward compatibility. Yes, it's still used
6363 # in the wild :-( We should find a proper way to deprecate it ...
6364 AMTAR='$${TAR-tar}'
6367 # We'll loop over all known methods to create a tar archive until one works.
6368 _am_tools='gnutar pax cpio none'
6370 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6376 depcc="$CC" am_compiler_list=
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6379 $as_echo_n "checking dependency style of $depcc... " >&6; }
6380 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6384 # We make a subdir and do the tests there. Otherwise we can end up
6385 # making bogus files that we don't know about and never remove. For
6386 # instance it was reported that on HP-UX the gcc test will end up
6387 # making a dummy file named 'D' -- because '-MD' means "put the output
6388 # in D".
6389 rm -rf conftest.dir
6390 mkdir conftest.dir
6391 # Copy depcomp to subdir because otherwise we won't find it if we're
6392 # using a relative directory.
6393 cp "$am_depcomp" conftest.dir
6394 cd conftest.dir
6395 # We will build objects and dependencies in a subdirectory because
6396 # it helps to detect inapplicable dependency modes. For instance
6397 # both Tru64's cc and ICC support -MD to output dependencies as a
6398 # side effect of compilation, but ICC will put the dependencies in
6399 # the current directory while Tru64 will put them in the object
6400 # directory.
6401 mkdir sub
6403 am_cv_CC_dependencies_compiler_type=none
6404 if test "$am_compiler_list" = ""; then
6405 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6407 am__universal=false
6408 case " $depcc " in #(
6409 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6410 esac
6412 for depmode in $am_compiler_list; do
6413 # Setup a source with many dependencies, because some compilers
6414 # like to wrap large dependency lists on column 80 (with \), and
6415 # we should not choose a depcomp mode which is confused by this.
6417 # We need to recreate these files for each test, as the compiler may
6418 # overwrite some of them when testing with obscure command lines.
6419 # This happens at least with the AIX C compiler.
6420 : > sub/conftest.c
6421 for i in 1 2 3 4 5 6; do
6422 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6423 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6424 # Solaris 10 /bin/sh.
6425 echo '/* dummy */' > sub/conftst$i.h
6426 done
6427 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6429 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6430 # mode. It turns out that the SunPro C++ compiler does not properly
6431 # handle '-M -o', and we need to detect this. Also, some Intel
6432 # versions had trouble with output in subdirs.
6433 am__obj=sub/conftest.${OBJEXT-o}
6434 am__minus_obj="-o $am__obj"
6435 case $depmode in
6436 gcc)
6437 # This depmode causes a compiler race in universal mode.
6438 test "$am__universal" = false || continue
6440 nosideeffect)
6441 # After this tag, mechanisms are not by side-effect, so they'll
6442 # only be used when explicitly requested.
6443 if test "x$enable_dependency_tracking" = xyes; then
6444 continue
6445 else
6446 break
6449 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6450 # This compiler won't grok '-c -o', but also, the minuso test has
6451 # not run yet. These depmodes are late enough in the game, and
6452 # so weak that their functioning should not be impacted.
6453 am__obj=conftest.${OBJEXT-o}
6454 am__minus_obj=
6456 none) break ;;
6457 esac
6458 if depmode=$depmode \
6459 source=sub/conftest.c object=$am__obj \
6460 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6461 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6462 >/dev/null 2>conftest.err &&
6463 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6465 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6467 # icc doesn't choke on unknown options, it will just issue warnings
6468 # or remarks (even with -Werror). So we grep stderr for any message
6469 # that says an option was ignored or not supported.
6470 # When given -MP, icc 7.0 and 7.1 complain thusly:
6471 # icc: Command line warning: ignoring option '-M'; no argument required
6472 # The diagnosis changed in icc 8.0:
6473 # icc: Command line remark: option '-MP' not supported
6474 if (grep 'ignoring option' conftest.err ||
6475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6476 am_cv_CC_dependencies_compiler_type=$depmode
6477 break
6480 done
6482 cd ..
6483 rm -rf conftest.dir
6484 else
6485 am_cv_CC_dependencies_compiler_type=none
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6490 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6494 test "x$enable_dependency_tracking" != xno \
6495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6496 am__fastdepCC_TRUE=
6497 am__fastdepCC_FALSE='#'
6498 else
6499 am__fastdepCC_TRUE='#'
6500 am__fastdepCC_FALSE=
6504 depcc="$CXX" am_compiler_list=
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6507 $as_echo_n "checking dependency style of $depcc... " >&6; }
6508 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6512 # We make a subdir and do the tests there. Otherwise we can end up
6513 # making bogus files that we don't know about and never remove. For
6514 # instance it was reported that on HP-UX the gcc test will end up
6515 # making a dummy file named 'D' -- because '-MD' means "put the output
6516 # in D".
6517 rm -rf conftest.dir
6518 mkdir conftest.dir
6519 # Copy depcomp to subdir because otherwise we won't find it if we're
6520 # using a relative directory.
6521 cp "$am_depcomp" conftest.dir
6522 cd conftest.dir
6523 # We will build objects and dependencies in a subdirectory because
6524 # it helps to detect inapplicable dependency modes. For instance
6525 # both Tru64's cc and ICC support -MD to output dependencies as a
6526 # side effect of compilation, but ICC will put the dependencies in
6527 # the current directory while Tru64 will put them in the object
6528 # directory.
6529 mkdir sub
6531 am_cv_CXX_dependencies_compiler_type=none
6532 if test "$am_compiler_list" = ""; then
6533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6535 am__universal=false
6536 case " $depcc " in #(
6537 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6538 esac
6540 for depmode in $am_compiler_list; do
6541 # Setup a source with many dependencies, because some compilers
6542 # like to wrap large dependency lists on column 80 (with \), and
6543 # we should not choose a depcomp mode which is confused by this.
6545 # We need to recreate these files for each test, as the compiler may
6546 # overwrite some of them when testing with obscure command lines.
6547 # This happens at least with the AIX C compiler.
6548 : > sub/conftest.c
6549 for i in 1 2 3 4 5 6; do
6550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6551 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6552 # Solaris 10 /bin/sh.
6553 echo '/* dummy */' > sub/conftst$i.h
6554 done
6555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6557 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6558 # mode. It turns out that the SunPro C++ compiler does not properly
6559 # handle '-M -o', and we need to detect this. Also, some Intel
6560 # versions had trouble with output in subdirs.
6561 am__obj=sub/conftest.${OBJEXT-o}
6562 am__minus_obj="-o $am__obj"
6563 case $depmode in
6564 gcc)
6565 # This depmode causes a compiler race in universal mode.
6566 test "$am__universal" = false || continue
6568 nosideeffect)
6569 # After this tag, mechanisms are not by side-effect, so they'll
6570 # only be used when explicitly requested.
6571 if test "x$enable_dependency_tracking" = xyes; then
6572 continue
6573 else
6574 break
6577 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6578 # This compiler won't grok '-c -o', but also, the minuso test has
6579 # not run yet. These depmodes are late enough in the game, and
6580 # so weak that their functioning should not be impacted.
6581 am__obj=conftest.${OBJEXT-o}
6582 am__minus_obj=
6584 none) break ;;
6585 esac
6586 if depmode=$depmode \
6587 source=sub/conftest.c object=$am__obj \
6588 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6589 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6590 >/dev/null 2>conftest.err &&
6591 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6592 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6593 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6594 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6595 # icc doesn't choke on unknown options, it will just issue warnings
6596 # or remarks (even with -Werror). So we grep stderr for any message
6597 # that says an option was ignored or not supported.
6598 # When given -MP, icc 7.0 and 7.1 complain thusly:
6599 # icc: Command line warning: ignoring option '-M'; no argument required
6600 # The diagnosis changed in icc 8.0:
6601 # icc: Command line remark: option '-MP' not supported
6602 if (grep 'ignoring option' conftest.err ||
6603 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6604 am_cv_CXX_dependencies_compiler_type=$depmode
6605 break
6608 done
6610 cd ..
6611 rm -rf conftest.dir
6612 else
6613 am_cv_CXX_dependencies_compiler_type=none
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6618 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6619 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6622 test "x$enable_dependency_tracking" != xno \
6623 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6624 am__fastdepCXX_TRUE=
6625 am__fastdepCXX_FALSE='#'
6626 else
6627 am__fastdepCXX_TRUE='#'
6628 am__fastdepCXX_FALSE=
6633 # POSIX will say in a future version that running "rm -f" with no argument
6634 # is OK; and we want to be able to make that assumption in our Makefile
6635 # recipes. So use an aggressive probe to check that the usage we want is
6636 # actually supported "in the wild" to an acceptable degree.
6637 # See automake bug#10828.
6638 # To make any issue more visible, cause the running configure to be aborted
6639 # by default if the 'rm' program in use doesn't match our expectations; the
6640 # user can still override this though.
6641 if rm -f && rm -fr && rm -rf; then : OK; else
6642 cat >&2 <<'END'
6643 Oops!
6645 Your 'rm' program seems unable to run without file operands specified
6646 on the command line, even when the '-f' option is present. This is contrary
6647 to the behaviour of most rm programs out there, and not conforming with
6648 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6650 Please tell bug-automake@gnu.org about your system, including the value
6651 of your $PATH and any error possibly output before this message. This
6652 can help us improve future automake versions.
6655 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6656 echo 'Configuration will proceed anyway, since you have set the' >&2
6657 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6658 echo >&2
6659 else
6660 cat >&2 <<'END'
6661 Aborting the configuration process, to ensure you take notice of the issue.
6663 You can download and install GNU coreutils to get an 'rm' implementation
6664 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6666 If you want to complete the configuration process using your problematic
6667 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6668 to "yes", and re-run configure.
6671 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6680 # Check whether --with-cross-host was given.
6681 if test "${with_cross_host+set}" = set; then :
6682 withval=$with_cross_host;
6686 # Checks for header files.
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6688 $as_echo_n "checking for ANSI C header files... " >&6; }
6689 if ${ac_cv_header_stdc+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <stdlib.h>
6695 #include <stdarg.h>
6696 #include <string.h>
6697 #include <float.h>
6700 main ()
6704 return 0;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_header_stdc=yes
6709 else
6710 ac_cv_header_stdc=no
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 if test $ac_cv_header_stdc = yes; then
6715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <string.h>
6720 _ACEOF
6721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722 $EGREP "memchr" >/dev/null 2>&1; then :
6724 else
6725 ac_cv_header_stdc=no
6727 rm -f conftest*
6731 if test $ac_cv_header_stdc = yes; then
6732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <stdlib.h>
6737 _ACEOF
6738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739 $EGREP "free" >/dev/null 2>&1; then :
6741 else
6742 ac_cv_header_stdc=no
6744 rm -f conftest*
6748 if test $ac_cv_header_stdc = yes; then
6749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6750 if test "$cross_compiling" = yes; then :
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <ctype.h>
6756 #include <stdlib.h>
6757 #if ((' ' & 0x0FF) == 0x020)
6758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6760 #else
6761 # define ISLOWER(c) \
6762 (('a' <= (c) && (c) <= 'i') \
6763 || ('j' <= (c) && (c) <= 'r') \
6764 || ('s' <= (c) && (c) <= 'z'))
6765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6766 #endif
6768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6770 main ()
6772 int i;
6773 for (i = 0; i < 256; i++)
6774 if (XOR (islower (i), ISLOWER (i))
6775 || toupper (i) != TOUPPER (i))
6776 return 2;
6777 return 0;
6779 _ACEOF
6780 if ac_fn_c_try_run "$LINENO"; then :
6782 else
6783 ac_cv_header_stdc=no
6785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6786 conftest.$ac_objext conftest.beam conftest.$ac_ext
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6792 $as_echo "$ac_cv_header_stdc" >&6; }
6793 if test $ac_cv_header_stdc = yes; then
6795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6800 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6801 if ${ac_cv_header_sys_wait_h+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <sys/types.h>
6807 #include <sys/wait.h>
6808 #ifndef WEXITSTATUS
6809 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6810 #endif
6811 #ifndef WIFEXITED
6812 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6813 #endif
6816 main ()
6818 int s;
6819 wait (&s);
6820 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6822 return 0;
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_header_sys_wait_h=yes
6827 else
6828 ac_cv_header_sys_wait_h=no
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6833 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6834 if test $ac_cv_header_sys_wait_h = yes; then
6836 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6841 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6842 if ${ac_cv_header_time+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <sys/types.h>
6848 #include <sys/time.h>
6849 #include <time.h>
6852 main ()
6854 if ((struct tm *) 0)
6855 return 0;
6857 return 0;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 ac_cv_header_time=yes
6862 else
6863 ac_cv_header_time=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6868 $as_echo "$ac_cv_header_time" >&6; }
6869 if test $ac_cv_header_time = yes; then
6871 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6875 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
6876 if test "x$ac_cv_header_math_h" = xyes; then :
6878 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
6884 for ac_header in getopt.h limits.h stddef.h string.h strings.h \
6885 stdlib.h time.h \
6886 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
6887 sys/resource.h sys/param.h sys/times.h sys/stat.h \
6888 sys/socket.h \
6889 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
6890 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
6891 pthread.h stdarg.h stdio.h sys/types.h termios.h \
6892 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
6893 do :
6894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6895 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6897 cat >>confdefs.h <<_ACEOF
6898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6899 _ACEOF
6903 done
6907 case ${build_alias} in
6908 "") build_noncanonical=${build} ;;
6909 *) build_noncanonical=${build_alias} ;;
6910 esac
6912 case ${host_alias} in
6913 "") host_noncanonical=${build_noncanonical} ;;
6914 *) host_noncanonical=${host_alias} ;;
6915 esac
6919 case ${target_alias} in
6920 "") target_noncanonical=${host_noncanonical} ;;
6921 *) target_noncanonical=${target_alias} ;;
6922 esac
6927 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
6928 # have matching libraries, they should use host libraries: Makefile.tpl
6929 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
6930 # However, they still use the build modules, because the corresponding
6931 # host modules (e.g. bison) are only built for the host when bootstrap
6932 # finishes. So:
6933 # - build_subdir is where we find build modules, and never changes.
6934 # - build_libsubdir is where we find build libraries, and can be overridden.
6936 # Prefix 'build-' so this never conflicts with target_subdir.
6937 build_subdir="build-${build_noncanonical}"
6939 # Check whether --with-build-libsubdir was given.
6940 if test "${with_build_libsubdir+set}" = set; then :
6941 withval=$with_build_libsubdir; build_libsubdir="$withval"
6942 else
6943 build_libsubdir="$build_subdir"
6946 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
6947 if ( test $srcdir = . && test -d gcc ) \
6948 || test -d $srcdir/../host-${host_noncanonical}; then
6949 host_subdir="host-${host_noncanonical}"
6950 else
6951 host_subdir=.
6953 # No prefix.
6954 target_subdir=${target_noncanonical}
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
6958 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
6959 # Check whether --enable-version-specific-runtime-libs was given.
6960 if test "${enable_version_specific_runtime_libs+set}" = set; then :
6961 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
6962 yes) version_specific_libs=yes ;;
6963 no) version_specific_libs=no ;;
6964 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
6965 esac
6966 else
6967 version_specific_libs=no
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
6971 $as_echo "$version_specific_libs" >&6; }
6974 # Check whether --with-slibdir was given.
6975 if test "${with_slibdir+set}" = set; then :
6976 withval=$with_slibdir; slibdir="$with_slibdir"
6977 else
6978 if test "${version_specific_libs}" = yes; then
6979 slibdir='$(libsubdir)'
6980 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
6981 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
6982 else
6983 slibdir='$(libdir)'
6989 # Command-line options.
6990 # Very limited version of AC_MAINTAINER_MODE.
6991 # Check whether --enable-maintainer-mode was given.
6992 if test "${enable_maintainer_mode+set}" = set; then :
6993 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
6994 yes) MAINT='' ;;
6995 no) MAINT='#' ;;
6996 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
6997 esac
6998 maintainer_mode=${enableval}
6999 else
7000 MAINT='#'
7004 toolexecdir=no
7005 toolexeclibdir=no
7007 # Calculate toolexeclibdir
7008 # Also toolexecdir, though it's only used in toolexeclibdir
7009 case ${version_specific_libs} in
7010 yes)
7011 # Need the gcc compiler version to know where to install libraries
7012 # and header files if --enable-version-specific-runtime-libs option
7013 # is selected.
7014 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
7015 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
7018 if test -n "$with_cross_host" &&
7019 test x"$with_cross_host" != x"no"; then
7020 # Install a library built with a cross compiler in tooldir, not libdir.
7021 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
7022 toolexeclibdir='$(toolexecdir)/lib'
7023 else
7024 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
7025 toolexeclibdir='$(libdir)'
7027 multi_os_directory=`$CC -print-multi-os-directory`
7028 case $multi_os_directory in
7029 .) ;; # Avoid trailing /.
7030 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7031 esac
7033 esac
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7043 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7044 # Check whether --enable-maintainer-mode was given.
7045 if test "${enable_maintainer_mode+set}" = set; then :
7046 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7047 else
7048 USE_MAINTAINER_MODE=no
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7052 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7053 if test $USE_MAINTAINER_MODE = yes; then
7054 MAINTAINER_MODE_TRUE=
7055 MAINTAINER_MODE_FALSE='#'
7056 else
7057 MAINTAINER_MODE_TRUE='#'
7058 MAINTAINER_MODE_FALSE=
7061 MAINT=$MAINTAINER_MODE_TRUE
7065 # Check the compiler.
7066 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
7067 # We must force CC to /not/ be precious variables; otherwise
7068 # the wrong, non-multilib-adjusted value will be used in multilibs.
7069 # As a side effect, we have to subst CFLAGS ourselves.
7073 ac_ext=c
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_CC+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$CC"; then
7087 ac_cv_prog_CC="$CC" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7106 CC=$ac_cv_prog_CC
7107 if test -n "$CC"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7109 $as_echo "$CC" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7117 if test -z "$ac_cv_prog_CC"; then
7118 ac_ct_CC=$CC
7119 # Extract the first word of "gcc", so it can be a program name with args.
7120 set dummy gcc; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$ac_ct_CC"; then
7127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_CC="gcc"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7146 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7147 if test -n "$ac_ct_CC"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7149 $as_echo "$ac_ct_CC" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7155 if test "x$ac_ct_CC" = x; then
7156 CC=""
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7163 esac
7164 CC=$ac_ct_CC
7166 else
7167 CC="$ac_cv_prog_CC"
7170 if test -z "$CC"; then
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}cc; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_CC+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test -n "$CC"; then
7180 ac_cv_prog_CC="$CC" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_CC="${ac_tool_prefix}cc"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7193 done
7194 done
7195 IFS=$as_save_IFS
7199 CC=$ac_cv_prog_CC
7200 if test -n "$CC"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7202 $as_echo "$CC" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7211 if test -z "$CC"; then
7212 # Extract the first word of "cc", so it can be a program name with args.
7213 set dummy cc; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_CC+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$CC"; then
7220 ac_cv_prog_CC="$CC" # Let the user override the test.
7221 else
7222 ac_prog_rejected=no
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7231 ac_prog_rejected=yes
7232 continue
7234 ac_cv_prog_CC="cc"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7238 done
7239 done
7240 IFS=$as_save_IFS
7242 if test $ac_prog_rejected = yes; then
7243 # We found a bogon in the path, so make sure we never use it.
7244 set dummy $ac_cv_prog_CC
7245 shift
7246 if test $# != 0; then
7247 # We chose a different compiler from the bogus one.
7248 # However, it has the same basename, so the bogon will be chosen
7249 # first if we set CC to just the basename; use the full file name.
7250 shift
7251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7256 CC=$ac_cv_prog_CC
7257 if test -n "$CC"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7259 $as_echo "$CC" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7267 if test -z "$CC"; then
7268 if test -n "$ac_tool_prefix"; then
7269 for ac_prog in cl.exe
7271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_CC+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$CC"; then
7279 ac_cv_prog_CC="$CC" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7292 done
7293 done
7294 IFS=$as_save_IFS
7298 CC=$ac_cv_prog_CC
7299 if test -n "$CC"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7301 $as_echo "$CC" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7308 test -n "$CC" && break
7309 done
7311 if test -z "$CC"; then
7312 ac_ct_CC=$CC
7313 for ac_prog in cl.exe
7315 # Extract the first word of "$ac_prog", so it can be a program name with args.
7316 set dummy $ac_prog; 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; }
7319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$ac_ct_CC"; then
7323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
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_CC="$ac_prog"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7336 done
7337 done
7338 IFS=$as_save_IFS
7342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7343 if test -n "$ac_ct_CC"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7345 $as_echo "$ac_ct_CC" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7352 test -n "$ac_ct_CC" && break
7353 done
7355 if test "x$ac_ct_CC" = x; then
7356 CC=""
7357 else
7358 case $cross_compiling:$ac_tool_warned in
7359 yes:)
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362 ac_tool_warned=yes ;;
7363 esac
7364 CC=$ac_ct_CC
7371 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7373 as_fn_error $? "no acceptable C compiler found in \$PATH
7374 See \`config.log' for more details" "$LINENO" 5; }
7376 # Provide some information about the compiler.
7377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7378 set X $ac_compile
7379 ac_compiler=$2
7380 for ac_option in --version -v -V -qversion; do
7381 { { ac_try="$ac_compiler $ac_option >&5"
7382 case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7387 $as_echo "$ac_try_echo"; } >&5
7388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7389 ac_status=$?
7390 if test -s conftest.err; then
7391 sed '10a\
7392 ... rest of stderr output deleted ...
7393 10q' conftest.err >conftest.er1
7394 cat conftest.er1 >&5
7396 rm -f conftest.er1 conftest.err
7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }
7399 done
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7402 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7403 if ${ac_cv_c_compiler_gnu+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 main ()
7412 #ifndef __GNUC__
7413 choke me
7414 #endif
7417 return 0;
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421 ac_compiler_gnu=yes
7422 else
7423 ac_compiler_gnu=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7430 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7431 if test $ac_compiler_gnu = yes; then
7432 GCC=yes
7433 else
7434 GCC=
7436 ac_test_CFLAGS=${CFLAGS+set}
7437 ac_save_CFLAGS=$CFLAGS
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7439 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7440 if ${ac_cv_prog_cc_g+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 ac_save_c_werror_flag=$ac_c_werror_flag
7444 ac_c_werror_flag=yes
7445 ac_cv_prog_cc_g=no
7446 CFLAGS="-g"
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7451 main ()
7455 return 0;
7457 _ACEOF
7458 if ac_fn_c_try_compile "$LINENO"; then :
7459 ac_cv_prog_cc_g=yes
7460 else
7461 CFLAGS=""
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7466 main ()
7470 return 0;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"; then :
7475 else
7476 ac_c_werror_flag=$ac_save_c_werror_flag
7477 CFLAGS="-g"
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7482 main ()
7486 return 0;
7488 _ACEOF
7489 if ac_fn_c_try_compile "$LINENO"; then :
7490 ac_cv_prog_cc_g=yes
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 ac_c_werror_flag=$ac_save_c_werror_flag
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7500 $as_echo "$ac_cv_prog_cc_g" >&6; }
7501 if test "$ac_test_CFLAGS" = set; then
7502 CFLAGS=$ac_save_CFLAGS
7503 elif test $ac_cv_prog_cc_g = yes; then
7504 if test "$GCC" = yes; then
7505 CFLAGS="-g -O2"
7506 else
7507 CFLAGS="-g"
7509 else
7510 if test "$GCC" = yes; then
7511 CFLAGS="-O2"
7512 else
7513 CFLAGS=
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7517 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7518 if ${ac_cv_prog_cc_c89+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 ac_cv_prog_cc_c89=no
7522 ac_save_CC=$CC
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <stdarg.h>
7526 #include <stdio.h>
7527 struct stat;
7528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7529 struct buf { int x; };
7530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7531 static char *e (p, i)
7532 char **p;
7533 int i;
7535 return p[i];
7537 static char *f (char * (*g) (char **, int), char **p, ...)
7539 char *s;
7540 va_list v;
7541 va_start (v,p);
7542 s = g (p, va_arg (v,int));
7543 va_end (v);
7544 return s;
7547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7548 function prototypes and stuff, but not '\xHH' hex character constants.
7549 These don't provoke an error unfortunately, instead are silently treated
7550 as 'x'. The following induces an error, until -std is added to get
7551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7552 array size at least. It's necessary to write '\x00'==0 to get something
7553 that's true only with -std. */
7554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7557 inside strings and character constants. */
7558 #define FOO(x) 'x'
7559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7561 int test (int i, double x);
7562 struct s1 {int (*f) (int a);};
7563 struct s2 {int (*f) (double a);};
7564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7565 int argc;
7566 char **argv;
7568 main ()
7570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7572 return 0;
7574 _ACEOF
7575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7578 CC="$ac_save_CC $ac_arg"
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 ac_cv_prog_cc_c89=$ac_arg
7582 rm -f core conftest.err conftest.$ac_objext
7583 test "x$ac_cv_prog_cc_c89" != "xno" && break
7584 done
7585 rm -f conftest.$ac_ext
7586 CC=$ac_save_CC
7589 # AC_CACHE_VAL
7590 case "x$ac_cv_prog_cc_c89" in
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7593 $as_echo "none needed" >&6; } ;;
7594 xno)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7596 $as_echo "unsupported" >&6; } ;;
7598 CC="$CC $ac_cv_prog_cc_c89"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7600 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7601 esac
7602 if test "x$ac_cv_prog_cc_c89" != xno; then :
7606 ac_ext=c
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612 ac_ext=c
7613 ac_cpp='$CPP $CPPFLAGS'
7614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7618 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7619 if ${am_cv_prog_cc_c_o+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7626 main ()
7630 return 0;
7632 _ACEOF
7633 # Make sure it works both with $CC and with simple cc.
7634 # Following AC_PROG_CC_C_O, we do the test twice because some
7635 # compilers refuse to overwrite an existing .o file with -o,
7636 # though they will create one.
7637 am_cv_prog_cc_c_o=yes
7638 for am_i in 1 2; do
7639 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7640 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } \
7644 && test -f conftest2.$ac_objext; then
7645 : OK
7646 else
7647 am_cv_prog_cc_c_o=no
7648 break
7650 done
7651 rm -f core conftest*
7652 unset am_i
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7655 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7656 if test "$am_cv_prog_cc_c_o" != yes; then
7657 # Losing compiler, so override with the script.
7658 # FIXME: It is wrong to rewrite CC.
7659 # But if we don't then we get into trouble of one sort or another.
7660 # A longer-term fix would be to have automake use am__CC in this case,
7661 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7662 CC="$am_aux_dir/compile $CC"
7664 ac_ext=c
7665 ac_cpp='$CPP $CPPFLAGS'
7666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7671 ac_ext=cpp
7672 ac_cpp='$CXXCPP $CPPFLAGS'
7673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7676 if test -z "$CXX"; then
7677 if test -n "$CCC"; then
7678 CXX=$CCC
7679 else
7680 if test -n "$ac_tool_prefix"; then
7681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_CXX+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$CXX"; then
7691 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7704 done
7705 done
7706 IFS=$as_save_IFS
7710 CXX=$ac_cv_prog_CXX
7711 if test -n "$CXX"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7713 $as_echo "$CXX" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7720 test -n "$CXX" && break
7721 done
7723 if test -z "$CXX"; then
7724 ac_ct_CXX=$CXX
7725 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7727 # Extract the first word of "$ac_prog", so it can be a program name with args.
7728 set dummy $ac_prog; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 if test -n "$ac_ct_CXX"; then
7735 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_ac_ct_CXX="$ac_prog"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7748 done
7749 done
7750 IFS=$as_save_IFS
7754 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7755 if test -n "$ac_ct_CXX"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7757 $as_echo "$ac_ct_CXX" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7764 test -n "$ac_ct_CXX" && break
7765 done
7767 if test "x$ac_ct_CXX" = x; then
7768 CXX="g++"
7769 else
7770 case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776 CXX=$ac_ct_CXX
7782 # Provide some information about the compiler.
7783 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7784 set X $ac_compile
7785 ac_compiler=$2
7786 for ac_option in --version -v -V -qversion; do
7787 { { ac_try="$ac_compiler $ac_option >&5"
7788 case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791 esac
7792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7793 $as_echo "$ac_try_echo"; } >&5
7794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7795 ac_status=$?
7796 if test -s conftest.err; then
7797 sed '10a\
7798 ... rest of stderr output deleted ...
7799 10q' conftest.err >conftest.er1
7800 cat conftest.er1 >&5
7802 rm -f conftest.er1 conftest.err
7803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7804 test $ac_status = 0; }
7805 done
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7808 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7809 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7816 main ()
7818 #ifndef __GNUC__
7819 choke me
7820 #endif
7823 return 0;
7825 _ACEOF
7826 if ac_fn_cxx_try_compile "$LINENO"; then :
7827 ac_compiler_gnu=yes
7828 else
7829 ac_compiler_gnu=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7836 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7837 if test $ac_compiler_gnu = yes; then
7838 GXX=yes
7839 else
7840 GXX=
7842 ac_test_CXXFLAGS=${CXXFLAGS+set}
7843 ac_save_CXXFLAGS=$CXXFLAGS
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7845 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7846 if ${ac_cv_prog_cxx_g+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7850 ac_cxx_werror_flag=yes
7851 ac_cv_prog_cxx_g=no
7852 CXXFLAGS="-g"
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7857 main ()
7861 return 0;
7863 _ACEOF
7864 if ac_fn_cxx_try_compile "$LINENO"; then :
7865 ac_cv_prog_cxx_g=yes
7866 else
7867 CXXFLAGS=""
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7872 main ()
7876 return 0;
7878 _ACEOF
7879 if ac_fn_cxx_try_compile "$LINENO"; then :
7881 else
7882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7883 CXXFLAGS="-g"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7888 main ()
7892 return 0;
7894 _ACEOF
7895 if ac_fn_cxx_try_compile "$LINENO"; then :
7896 ac_cv_prog_cxx_g=yes
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7906 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7907 if test "$ac_test_CXXFLAGS" = set; then
7908 CXXFLAGS=$ac_save_CXXFLAGS
7909 elif test $ac_cv_prog_cxx_g = yes; then
7910 if test "$GXX" = yes; then
7911 CXXFLAGS="-g -O2"
7912 else
7913 CXXFLAGS="-g"
7915 else
7916 if test "$GXX" = yes; then
7917 CXXFLAGS="-O2"
7918 else
7919 CXXFLAGS=
7922 ac_ext=c
7923 ac_cpp='$CPP $CPPFLAGS'
7924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 # By default we simply use the C compiler to build assembly code.
7930 test "${CCAS+set}" = set || CCAS=$CC
7931 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7935 depcc="$CCAS" am_compiler_list=
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7938 $as_echo_n "checking dependency style of $depcc... " >&6; }
7939 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7943 # We make a subdir and do the tests there. Otherwise we can end up
7944 # making bogus files that we don't know about and never remove. For
7945 # instance it was reported that on HP-UX the gcc test will end up
7946 # making a dummy file named 'D' -- because '-MD' means "put the output
7947 # in D".
7948 rm -rf conftest.dir
7949 mkdir conftest.dir
7950 # Copy depcomp to subdir because otherwise we won't find it if we're
7951 # using a relative directory.
7952 cp "$am_depcomp" conftest.dir
7953 cd conftest.dir
7954 # We will build objects and dependencies in a subdirectory because
7955 # it helps to detect inapplicable dependency modes. For instance
7956 # both Tru64's cc and ICC support -MD to output dependencies as a
7957 # side effect of compilation, but ICC will put the dependencies in
7958 # the current directory while Tru64 will put them in the object
7959 # directory.
7960 mkdir sub
7962 am_cv_CCAS_dependencies_compiler_type=none
7963 if test "$am_compiler_list" = ""; then
7964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7966 am__universal=false
7969 for depmode in $am_compiler_list; do
7970 # Setup a source with many dependencies, because some compilers
7971 # like to wrap large dependency lists on column 80 (with \), and
7972 # we should not choose a depcomp mode which is confused by this.
7974 # We need to recreate these files for each test, as the compiler may
7975 # overwrite some of them when testing with obscure command lines.
7976 # This happens at least with the AIX C compiler.
7977 : > sub/conftest.c
7978 for i in 1 2 3 4 5 6; do
7979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7980 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7981 # Solaris 10 /bin/sh.
7982 echo '/* dummy */' > sub/conftst$i.h
7983 done
7984 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7986 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7987 # mode. It turns out that the SunPro C++ compiler does not properly
7988 # handle '-M -o', and we need to detect this. Also, some Intel
7989 # versions had trouble with output in subdirs.
7990 am__obj=sub/conftest.${OBJEXT-o}
7991 am__minus_obj="-o $am__obj"
7992 case $depmode in
7993 gcc)
7994 # This depmode causes a compiler race in universal mode.
7995 test "$am__universal" = false || continue
7997 nosideeffect)
7998 # After this tag, mechanisms are not by side-effect, so they'll
7999 # only be used when explicitly requested.
8000 if test "x$enable_dependency_tracking" = xyes; then
8001 continue
8002 else
8003 break
8006 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8007 # This compiler won't grok '-c -o', but also, the minuso test has
8008 # not run yet. These depmodes are late enough in the game, and
8009 # so weak that their functioning should not be impacted.
8010 am__obj=conftest.${OBJEXT-o}
8011 am__minus_obj=
8013 none) break ;;
8014 esac
8015 if depmode=$depmode \
8016 source=sub/conftest.c object=$am__obj \
8017 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8018 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8019 >/dev/null 2>conftest.err &&
8020 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8022 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8024 # icc doesn't choke on unknown options, it will just issue warnings
8025 # or remarks (even with -Werror). So we grep stderr for any message
8026 # that says an option was ignored or not supported.
8027 # When given -MP, icc 7.0 and 7.1 complain thusly:
8028 # icc: Command line warning: ignoring option '-M'; no argument required
8029 # The diagnosis changed in icc 8.0:
8030 # icc: Command line remark: option '-MP' not supported
8031 if (grep 'ignoring option' conftest.err ||
8032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8033 am_cv_CCAS_dependencies_compiler_type=$depmode
8034 break
8037 done
8039 cd ..
8040 rm -rf conftest.dir
8041 else
8042 am_cv_CCAS_dependencies_compiler_type=none
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8047 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8048 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8051 test "x$enable_dependency_tracking" != xno \
8052 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8053 am__fastdepCCAS_TRUE=
8054 am__fastdepCCAS_FALSE='#'
8055 else
8056 am__fastdepCCAS_TRUE='#'
8057 am__fastdepCCAS_FALSE=
8065 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
8066 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
8067 # in both places for now and restore CFLAGS at the end of config.
8068 save_CFLAGS="$CFLAGS"
8070 # Find other programs we need.
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}ar; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if ${ac_cv_prog_AR+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 if test -n "$AR"; then
8080 ac_cv_prog_AR="$AR" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_prog_AR="${ac_tool_prefix}ar"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 break 2
8093 done
8094 done
8095 IFS=$as_save_IFS
8099 AR=$ac_cv_prog_AR
8100 if test -n "$AR"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8102 $as_echo "$AR" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8110 if test -z "$ac_cv_prog_AR"; then
8111 ac_ct_AR=$AR
8112 # Extract the first word of "ar", so it can be a program name with args.
8113 set dummy ar; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$ac_ct_AR"; then
8120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_prog_ac_ct_AR="ar"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8140 if test -n "$ac_ct_AR"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8142 $as_echo "$ac_ct_AR" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8148 if test "x$ac_ct_AR" = x; then
8149 AR=""
8150 else
8151 case $cross_compiling:$ac_tool_warned in
8152 yes:)
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8156 esac
8157 AR=$ac_ct_AR
8159 else
8160 AR="$ac_cv_prog_AR"
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}nm; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if ${ac_cv_prog_NM+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test -n "$NM"; then
8172 ac_cv_prog_NM="$NM" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181 ac_cv_prog_NM="${ac_tool_prefix}nm"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8185 done
8186 done
8187 IFS=$as_save_IFS
8191 NM=$ac_cv_prog_NM
8192 if test -n "$NM"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8194 $as_echo "$NM" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test -z "$ac_cv_prog_NM"; then
8203 ac_ct_NM=$NM
8204 # Extract the first word of "nm", so it can be a program name with args.
8205 set dummy nm; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_ac_ct_NM+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$ac_ct_NM"; then
8212 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_ac_ct_NM="nm"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8225 done
8226 done
8227 IFS=$as_save_IFS
8231 ac_ct_NM=$ac_cv_prog_ac_ct_NM
8232 if test -n "$ac_ct_NM"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8234 $as_echo "$ac_ct_NM" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_ct_NM" = x; then
8241 NM=""
8242 else
8243 case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8248 esac
8249 NM=$ac_ct_NM
8251 else
8252 NM="$ac_cv_prog_NM"
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_prog_RANLIB+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$RANLIB"; then
8264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 RANLIB=$ac_cv_prog_RANLIB
8284 if test -n "$RANLIB"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8286 $as_echo "$RANLIB" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8294 if test -z "$ac_cv_prog_RANLIB"; then
8295 ac_ct_RANLIB=$RANLIB
8296 # Extract the first word of "ranlib", so it can be a program name with args.
8297 set dummy ranlib; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$ac_ct_RANLIB"; then
8304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_ac_ct_RANLIB="ranlib"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8317 done
8318 done
8319 IFS=$as_save_IFS
8323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8324 if test -n "$ac_ct_RANLIB"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8326 $as_echo "$ac_ct_RANLIB" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8332 if test "x$ac_ct_RANLIB" = x; then
8333 RANLIB="ranlib-not-found-in-path-error"
8334 else
8335 case $cross_compiling:$ac_tool_warned in
8336 yes:)
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8339 ac_tool_warned=yes ;;
8340 esac
8341 RANLIB=$ac_ct_RANLIB
8343 else
8344 RANLIB="$ac_cv_prog_RANLIB"
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8348 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8349 set x ${MAKE-make}
8350 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8351 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 cat >conftest.make <<\_ACEOF
8355 SHELL = /bin/sh
8356 all:
8357 @echo '@@@%%%=$(MAKE)=@@@%%%'
8358 _ACEOF
8359 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8360 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8361 *@@@%%%=?*=@@@%%%*)
8362 eval ac_cv_prog_make_${ac_make}_set=yes;;
8364 eval ac_cv_prog_make_${ac_make}_set=no;;
8365 esac
8366 rm -f conftest.make
8368 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8370 $as_echo "yes" >&6; }
8371 SET_MAKE=
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 SET_MAKE="MAKE=${MAKE-make}"
8380 case `pwd` in
8381 *\ * | *\ *)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8383 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8384 esac
8388 macro_version='2.2.7a'
8389 macro_revision='1.3134'
8403 ltmain="$ac_aux_dir/ltmain.sh"
8405 # Backslashify metacharacters that are still active within
8406 # double-quoted strings.
8407 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8409 # Same as above, but do not quote variable references.
8410 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8412 # Sed substitution to delay expansion of an escaped shell variable in a
8413 # double_quote_subst'ed string.
8414 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8416 # Sed substitution to delay expansion of an escaped single quote.
8417 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8419 # Sed substitution to avoid accidental globbing in evaled expressions
8420 no_glob_subst='s/\*/\\\*/g'
8422 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8423 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8424 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8427 $as_echo_n "checking how to print strings... " >&6; }
8428 # Test print first, because it will be a builtin if present.
8429 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
8430 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8431 ECHO='print -r --'
8432 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8433 ECHO='printf %s\n'
8434 else
8435 # Use this function as a fallback that always works.
8436 func_fallback_echo ()
8438 eval 'cat <<_LTECHO_EOF
8440 _LTECHO_EOF'
8442 ECHO='func_fallback_echo'
8445 # func_echo_all arg...
8446 # Invoke $ECHO with all args, space-separated.
8447 func_echo_all ()
8449 $ECHO ""
8452 case "$ECHO" in
8453 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8454 $as_echo "printf" >&6; } ;;
8455 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8456 $as_echo "print -r" >&6; } ;;
8457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8458 $as_echo "cat" >&6; } ;;
8459 esac
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8475 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8476 if ${ac_cv_path_SED+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8480 for ac_i in 1 2 3 4 5 6 7; do
8481 ac_script="$ac_script$as_nl$ac_script"
8482 done
8483 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8484 { ac_script=; unset ac_script;}
8485 if test -z "$SED"; then
8486 ac_path_SED_found=false
8487 # Loop through the user's path and test for each of PROGNAME-LIST
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_prog in sed gsed; do
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8496 as_fn_executable_p "$ac_path_SED" || continue
8497 # Check for GNU ac_path_SED and select it if it is found.
8498 # Check for GNU $ac_path_SED
8499 case `"$ac_path_SED" --version 2>&1` in
8500 *GNU*)
8501 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8503 ac_count=0
8504 $as_echo_n 0123456789 >"conftest.in"
8505 while :
8507 cat "conftest.in" "conftest.in" >"conftest.tmp"
8508 mv "conftest.tmp" "conftest.in"
8509 cp "conftest.in" "conftest.nl"
8510 $as_echo '' >> "conftest.nl"
8511 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8513 as_fn_arith $ac_count + 1 && ac_count=$as_val
8514 if test $ac_count -gt ${ac_path_SED_max-0}; then
8515 # Best one so far, save it but keep looking for a better one
8516 ac_cv_path_SED="$ac_path_SED"
8517 ac_path_SED_max=$ac_count
8519 # 10*(2^10) chars as input seems more than enough
8520 test $ac_count -gt 10 && break
8521 done
8522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8523 esac
8525 $ac_path_SED_found && break 3
8526 done
8527 done
8528 done
8529 IFS=$as_save_IFS
8530 if test -z "$ac_cv_path_SED"; then
8531 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8533 else
8534 ac_cv_path_SED=$SED
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8539 $as_echo "$ac_cv_path_SED" >&6; }
8540 SED="$ac_cv_path_SED"
8541 rm -f conftest.sed
8543 test -z "$SED" && SED=sed
8544 Xsed="$SED -e 1s/^X//"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8557 $as_echo_n "checking for fgrep... " >&6; }
8558 if ${ac_cv_path_FGREP+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8562 then ac_cv_path_FGREP="$GREP -F"
8563 else
8564 if test -z "$FGREP"; then
8565 ac_path_FGREP_found=false
8566 # Loop through the user's path and test for each of PROGNAME-LIST
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_prog in fgrep; do
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8575 as_fn_executable_p "$ac_path_FGREP" || continue
8576 # Check for GNU ac_path_FGREP and select it if it is found.
8577 # Check for GNU $ac_path_FGREP
8578 case `"$ac_path_FGREP" --version 2>&1` in
8579 *GNU*)
8580 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8582 ac_count=0
8583 $as_echo_n 0123456789 >"conftest.in"
8584 while :
8586 cat "conftest.in" "conftest.in" >"conftest.tmp"
8587 mv "conftest.tmp" "conftest.in"
8588 cp "conftest.in" "conftest.nl"
8589 $as_echo 'FGREP' >> "conftest.nl"
8590 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8592 as_fn_arith $ac_count + 1 && ac_count=$as_val
8593 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8594 # Best one so far, save it but keep looking for a better one
8595 ac_cv_path_FGREP="$ac_path_FGREP"
8596 ac_path_FGREP_max=$ac_count
8598 # 10*(2^10) chars as input seems more than enough
8599 test $ac_count -gt 10 && break
8600 done
8601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8602 esac
8604 $ac_path_FGREP_found && break 3
8605 done
8606 done
8607 done
8608 IFS=$as_save_IFS
8609 if test -z "$ac_cv_path_FGREP"; then
8610 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8612 else
8613 ac_cv_path_FGREP=$FGREP
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8619 $as_echo "$ac_cv_path_FGREP" >&6; }
8620 FGREP="$ac_cv_path_FGREP"
8623 test -z "$GREP" && GREP=grep
8643 # Check whether --with-gnu-ld was given.
8644 if test "${with_gnu_ld+set}" = set; then :
8645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8646 else
8647 with_gnu_ld=no
8650 ac_prog=ld
8651 if test "$GCC" = yes; then
8652 # Check if gcc -print-prog-name=ld gives a path.
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8654 $as_echo_n "checking for ld used by $CC... " >&6; }
8655 case $host in
8656 *-*-mingw*)
8657 # gcc leaves a trailing carriage return which upsets mingw
8658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8661 esac
8662 case $ac_prog in
8663 # Accept absolute paths.
8664 [\\/]* | ?:[\\/]*)
8665 re_direlt='/[^/][^/]*/\.\./'
8666 # Canonicalize the pathname of ld
8667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8670 done
8671 test -z "$LD" && LD="$ac_prog"
8674 # If it fails, then pretend we aren't using GCC.
8675 ac_prog=ld
8678 # If it is relative, then search for the first ld in PATH.
8679 with_gnu_ld=unknown
8681 esac
8682 elif test "$with_gnu_ld" = yes; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8684 $as_echo_n "checking for GNU ld... " >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8687 $as_echo_n "checking for non-GNU ld... " >&6; }
8689 if ${lt_cv_path_LD+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 if test -z "$LD"; then
8693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8694 for ac_dir in $PATH; do
8695 IFS="$lt_save_ifs"
8696 test -z "$ac_dir" && ac_dir=.
8697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8698 lt_cv_path_LD="$ac_dir/$ac_prog"
8699 # Check to see if the program is GNU ld. I'd rather use --version,
8700 # but apparently some variants of GNU ld only accept -v.
8701 # Break only if it was the GNU/non-GNU ld that we prefer.
8702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8703 *GNU* | *'with BFD'*)
8704 test "$with_gnu_ld" != no && break
8707 test "$with_gnu_ld" != yes && break
8709 esac
8711 done
8712 IFS="$lt_save_ifs"
8713 else
8714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8718 LD="$lt_cv_path_LD"
8719 if test -n "$LD"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8721 $as_echo "$LD" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8726 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8728 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8729 if ${lt_cv_prog_gnu_ld+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8733 case `$LD -v 2>&1 </dev/null` in
8734 *GNU* | *'with BFD'*)
8735 lt_cv_prog_gnu_ld=yes
8738 lt_cv_prog_gnu_ld=no
8740 esac
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8743 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8744 with_gnu_ld=$lt_cv_prog_gnu_ld
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8755 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8756 if ${lt_cv_path_NM+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 if test -n "$NM"; then
8760 # Let the user override the nm to test.
8761 lt_nm_to_check="$NM"
8762 else
8763 lt_nm_to_check="${ac_tool_prefix}nm"
8764 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8765 lt_nm_to_check="$lt_nm_to_check nm"
8768 for lt_tmp_nm in "$lt_nm_to_check"; do
8769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8770 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8771 IFS="$lt_save_ifs"
8772 test -z "$ac_dir" && ac_dir=.
8773 # Strip out any user-provided options from the nm to test twice,
8774 # the first time to test to see if nm (rather than its options) has
8775 # an explicit path, the second time to yield a file which can be
8776 # nm'ed itself.
8777 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
8778 case "$tmp_nm_path" in
8779 */*|*\\*) tmp_nm="$lt_tmp_nm";;
8780 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
8781 esac
8782 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
8783 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
8784 # Check to see if the nm accepts a BSD-compat flag.
8785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8786 # nm: unknown option "B" ignored
8787 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
8788 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
8789 break
8792 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
8793 *$tmp_nm*)
8794 lt_cv_path_NM="$tmp_nm -p"
8795 break
8798 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8799 continue # so that we can try to find one that supports BSD flags
8801 esac
8803 esac
8805 done
8806 IFS="$lt_save_ifs"
8807 done
8808 : ${lt_cv_path_NM=no}
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8811 $as_echo "$lt_cv_path_NM" >&6; }
8812 if test "$lt_cv_path_NM" != "no"; then
8813 NM="$lt_cv_path_NM"
8814 else
8815 # Didn't find any BSD compatible name lister, look for dumpbin.
8816 if test -n "$DUMPBIN"; then :
8817 # Let the user override the test.
8818 else
8819 if test -n "$ac_tool_prefix"; then
8820 for ac_prog in dumpbin "link -dump"
8822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_DUMPBIN+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 if test -n "$DUMPBIN"; then
8830 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8843 done
8844 done
8845 IFS=$as_save_IFS
8849 DUMPBIN=$ac_cv_prog_DUMPBIN
8850 if test -n "$DUMPBIN"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8852 $as_echo "$DUMPBIN" >&6; }
8853 else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8859 test -n "$DUMPBIN" && break
8860 done
8862 if test -z "$DUMPBIN"; then
8863 ac_ct_DUMPBIN=$DUMPBIN
8864 for ac_prog in dumpbin "link -dump"
8866 # Extract the first word of "$ac_prog", so it can be a program name with args.
8867 set dummy $ac_prog; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test -n "$ac_ct_DUMPBIN"; then
8874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8893 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8894 if test -n "$ac_ct_DUMPBIN"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8896 $as_echo "$ac_ct_DUMPBIN" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8903 test -n "$ac_ct_DUMPBIN" && break
8904 done
8906 if test "x$ac_ct_DUMPBIN" = x; then
8907 DUMPBIN=":"
8908 else
8909 case $cross_compiling:$ac_tool_warned in
8910 yes:)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8913 ac_tool_warned=yes ;;
8914 esac
8915 DUMPBIN=$ac_ct_DUMPBIN
8919 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8920 *COFF*)
8921 DUMPBIN="$DUMPBIN -symbols"
8924 DUMPBIN=:
8926 esac
8929 if test "$DUMPBIN" != ":"; then
8930 NM="$DUMPBIN"
8933 test -z "$NM" && NM=nm
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8941 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8942 if ${lt_cv_nm_interface+:} false; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 lt_cv_nm_interface="BSD nm"
8946 echo "int some_variable = 0;" > conftest.$ac_ext
8947 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8948 (eval "$ac_compile" 2>conftest.err)
8949 cat conftest.err >&5
8950 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8951 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8952 cat conftest.err >&5
8953 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8954 cat conftest.out >&5
8955 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8956 lt_cv_nm_interface="MS dumpbin"
8958 rm -f conftest*
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8961 $as_echo "$lt_cv_nm_interface" >&6; }
8963 # find the maximum length of command line arguments
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8965 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8966 if ${lt_cv_sys_max_cmd_len+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8970 teststring="ABCD"
8972 case $build_os in
8973 msdosdjgpp*)
8974 # On DJGPP, this test can blow up pretty badly due to problems in libc
8975 # (any single argument exceeding 2000 bytes causes a buffer overrun
8976 # during glob expansion). Even if it were fixed, the result of this
8977 # check would be larger than it should be.
8978 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8981 gnu*)
8982 # Under GNU Hurd, this test is not required because there is
8983 # no limit to the length of command line arguments.
8984 # Libtool will interpret -1 as no limit whatsoever
8985 lt_cv_sys_max_cmd_len=-1;
8988 cygwin* | mingw* | cegcc*)
8989 # On Win9x/ME, this test blows up -- it succeeds, but takes
8990 # about 5 minutes as the teststring grows exponentially.
8991 # Worse, since 9x/ME are not pre-emptively multitasking,
8992 # you end up with a "frozen" computer, even though with patience
8993 # the test eventually succeeds (with a max line length of 256k).
8994 # Instead, let's just punt: use the minimum linelength reported by
8995 # all of the supported platforms: 8192 (on NT/2K/XP).
8996 lt_cv_sys_max_cmd_len=8192;
8999 mint*)
9000 # On MiNT this can take a long time and run out of memory.
9001 lt_cv_sys_max_cmd_len=8192;
9004 amigaos*)
9005 # On AmigaOS with pdksh, this test takes hours, literally.
9006 # So we just punt and use a minimum line length of 8192.
9007 lt_cv_sys_max_cmd_len=8192;
9010 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9011 # This has been around since 386BSD, at least. Likely further.
9012 if test -x /sbin/sysctl; then
9013 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9014 elif test -x /usr/sbin/sysctl; then
9015 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9016 else
9017 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9019 # And add a safety zone
9020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9024 interix*)
9025 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9026 lt_cv_sys_max_cmd_len=196608
9029 osf*)
9030 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9031 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9032 # nice to cause kernel panics so lets avoid the loop below.
9033 # First set a reasonable default.
9034 lt_cv_sys_max_cmd_len=16384
9036 if test -x /sbin/sysconfig; then
9037 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9038 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9039 esac
9042 sco3.2v5*)
9043 lt_cv_sys_max_cmd_len=102400
9045 sysv5* | sco5v6* | sysv4.2uw2*)
9046 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9047 if test -n "$kargmax"; then
9048 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9049 else
9050 lt_cv_sys_max_cmd_len=32768
9054 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9055 if test -n "$lt_cv_sys_max_cmd_len"; then
9056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9058 else
9059 # Make teststring a little bigger before we do anything with it.
9060 # a 1K string should be a reasonable start.
9061 for i in 1 2 3 4 5 6 7 8 ; do
9062 teststring=$teststring$teststring
9063 done
9064 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9065 # If test is not a shell built-in, we'll probably end up computing a
9066 # maximum length that is only half of the actual maximum length, but
9067 # we can't tell.
9068 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9069 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9070 test $i != 17 # 1/2 MB should be enough
9072 i=`expr $i + 1`
9073 teststring=$teststring$teststring
9074 done
9075 # Only check the string length outside the loop.
9076 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9077 teststring=
9078 # Add a significant safety factor because C++ compilers can tack on
9079 # massive amounts of additional arguments before passing them to the
9080 # linker. It appears as though 1/2 is a usable value.
9081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9084 esac
9088 if test -n $lt_cv_sys_max_cmd_len ; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9090 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9093 $as_echo "none" >&6; }
9095 max_cmd_len=$lt_cv_sys_max_cmd_len
9102 : ${CP="cp -f"}
9103 : ${MV="mv -f"}
9104 : ${RM="rm -f"}
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9107 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9108 # Try some XSI features
9109 xsi_shell=no
9110 ( _lt_dummy="a/b/c"
9111 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9112 = c,a/b,, \
9113 && eval 'test $(( 1 + 1 )) -eq 2 \
9114 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9115 && xsi_shell=yes
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9117 $as_echo "$xsi_shell" >&6; }
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9121 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9122 lt_shell_append=no
9123 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9124 >/dev/null 2>&1 \
9125 && lt_shell_append=yes
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9127 $as_echo "$lt_shell_append" >&6; }
9130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9131 lt_unset=unset
9132 else
9133 lt_unset=false
9140 # test EBCDIC or ASCII
9141 case `echo X|tr X '\101'` in
9142 A) # ASCII based system
9143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9144 lt_SP2NL='tr \040 \012'
9145 lt_NL2SP='tr \015\012 \040\040'
9147 *) # EBCDIC based system
9148 lt_SP2NL='tr \100 \n'
9149 lt_NL2SP='tr \r\n \100\100'
9151 esac
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9162 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9163 if ${lt_cv_ld_reload_flag+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 lt_cv_ld_reload_flag='-r'
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9169 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9170 reload_flag=$lt_cv_ld_reload_flag
9171 case $reload_flag in
9172 "" | " "*) ;;
9173 *) reload_flag=" $reload_flag" ;;
9174 esac
9175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9176 case $host_os in
9177 darwin*)
9178 if test "$GCC" = yes; then
9179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9180 else
9181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9184 esac
9194 if test -n "$ac_tool_prefix"; then
9195 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9196 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_prog_OBJDUMP+:} false; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 if test -n "$OBJDUMP"; then
9203 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9204 else
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9212 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 break 2
9216 done
9217 done
9218 IFS=$as_save_IFS
9222 OBJDUMP=$ac_cv_prog_OBJDUMP
9223 if test -n "$OBJDUMP"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9225 $as_echo "$OBJDUMP" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9233 if test -z "$ac_cv_prog_OBJDUMP"; then
9234 ac_ct_OBJDUMP=$OBJDUMP
9235 # Extract the first word of "objdump", so it can be a program name with args.
9236 set dummy objdump; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test -n "$ac_ct_OBJDUMP"; then
9243 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9244 else
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9256 done
9257 done
9258 IFS=$as_save_IFS
9262 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9263 if test -n "$ac_ct_OBJDUMP"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9265 $as_echo "$ac_ct_OBJDUMP" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9271 if test "x$ac_ct_OBJDUMP" = x; then
9272 OBJDUMP="false"
9273 else
9274 case $cross_compiling:$ac_tool_warned in
9275 yes:)
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9278 ac_tool_warned=yes ;;
9279 esac
9280 OBJDUMP=$ac_ct_OBJDUMP
9282 else
9283 OBJDUMP="$ac_cv_prog_OBJDUMP"
9286 test -z "$OBJDUMP" && OBJDUMP=objdump
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9297 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9298 if ${lt_cv_deplibs_check_method+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 lt_cv_file_magic_cmd='$MAGIC_CMD'
9302 lt_cv_file_magic_test_file=
9303 lt_cv_deplibs_check_method='unknown'
9304 # Need to set the preceding variable on all platforms that support
9305 # interlibrary dependencies.
9306 # 'none' -- dependencies not supported.
9307 # `unknown' -- same as none, but documents that we really don't know.
9308 # 'pass_all' -- all dependencies passed with no checks.
9309 # 'test_compile' -- check by making test program.
9310 # 'file_magic [[regex]]' -- check by looking for files in library path
9311 # which responds to the $file_magic_cmd with a given extended regex.
9312 # If you have `file' or equivalent on your system and you're not sure
9313 # whether `pass_all' will *always* work, you probably want this one.
9315 case $host_os in
9316 aix[4-9]*)
9317 lt_cv_deplibs_check_method=pass_all
9320 beos*)
9321 lt_cv_deplibs_check_method=pass_all
9324 bsdi[45]*)
9325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9326 lt_cv_file_magic_cmd='/usr/bin/file -L'
9327 lt_cv_file_magic_test_file=/shlib/libc.so
9330 cygwin*)
9331 # func_win32_libid is a shell function defined in ltmain.sh
9332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9333 lt_cv_file_magic_cmd='func_win32_libid'
9336 mingw* | pw32*)
9337 # Base MSYS/MinGW do not provide the 'file' command needed by
9338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9339 # unless we find 'file', for example because we are cross-compiling.
9340 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9341 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9343 lt_cv_file_magic_cmd='func_win32_libid'
9344 else
9345 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9346 lt_cv_file_magic_cmd='$OBJDUMP -f'
9350 cegcc*)
9351 # use the weaker test based on 'objdump'. See mingw*.
9352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9353 lt_cv_file_magic_cmd='$OBJDUMP -f'
9356 darwin* | rhapsody*)
9357 lt_cv_deplibs_check_method=pass_all
9360 freebsd* | dragonfly*)
9361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9362 case $host_cpu in
9363 i*86 )
9364 # Not sure whether the presence of OpenBSD here was a mistake.
9365 # Let's accept both of them until this is cleared up.
9366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9367 lt_cv_file_magic_cmd=/usr/bin/file
9368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9370 esac
9371 else
9372 lt_cv_deplibs_check_method=pass_all
9376 gnu*)
9377 lt_cv_deplibs_check_method=pass_all
9380 haiku*)
9381 lt_cv_deplibs_check_method=pass_all
9384 hpux10.20* | hpux11*)
9385 lt_cv_file_magic_cmd=/usr/bin/file
9386 case $host_cpu in
9387 ia64*)
9388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9391 hppa*64*)
9392 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]'
9393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9397 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9399 esac
9402 interix[3-9]*)
9403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9407 irix5* | irix6* | nonstopux*)
9408 case $LD in
9409 *-32|*"-32 ") libmagic=32-bit;;
9410 *-n32|*"-n32 ") libmagic=N32;;
9411 *-64|*"-64 ") libmagic=64-bit;;
9412 *) libmagic=never-match;;
9413 esac
9414 lt_cv_deplibs_check_method=pass_all
9417 # This must be Linux ELF.
9418 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9419 lt_cv_deplibs_check_method=pass_all
9422 netbsd*)
9423 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9425 else
9426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9430 newos6*)
9431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9432 lt_cv_file_magic_cmd=/usr/bin/file
9433 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9436 *nto* | *qnx*)
9437 lt_cv_deplibs_check_method=pass_all
9440 openbsd*)
9441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9443 else
9444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9448 osf3* | osf4* | osf5*)
9449 lt_cv_deplibs_check_method=pass_all
9452 rdos*)
9453 lt_cv_deplibs_check_method=pass_all
9456 solaris*)
9457 lt_cv_deplibs_check_method=pass_all
9460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9461 lt_cv_deplibs_check_method=pass_all
9464 sysv4 | sysv4.3*)
9465 case $host_vendor in
9466 motorola)
9467 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]'
9468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9470 ncr)
9471 lt_cv_deplibs_check_method=pass_all
9473 sequent)
9474 lt_cv_file_magic_cmd='/bin/file'
9475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9477 sni)
9478 lt_cv_file_magic_cmd='/bin/file'
9479 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9480 lt_cv_file_magic_test_file=/lib/libc.so
9482 siemens)
9483 lt_cv_deplibs_check_method=pass_all
9486 lt_cv_deplibs_check_method=pass_all
9488 esac
9491 tpf*)
9492 lt_cv_deplibs_check_method=pass_all
9494 vxworks*)
9495 # Assume VxWorks cross toolchains are built on Linux, possibly
9496 # as canadian for Windows hosts.
9497 lt_cv_deplibs_check_method=pass_all
9499 esac
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9503 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9504 file_magic_cmd=$lt_cv_file_magic_cmd
9505 deplibs_check_method=$lt_cv_deplibs_check_method
9506 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9519 plugin_option=
9520 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
9521 for plugin in $plugin_names; do
9522 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
9523 if test x$plugin_so = x$plugin; then
9524 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
9526 if test x$plugin_so != x$plugin; then
9527 plugin_option="--plugin $plugin_so"
9528 break
9530 done
9532 if test -n "$ac_tool_prefix"; then
9533 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9534 set dummy ${ac_tool_prefix}ar; ac_word=$2
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9536 $as_echo_n "checking for $ac_word... " >&6; }
9537 if ${ac_cv_prog_AR+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 if test -n "$AR"; then
9541 ac_cv_prog_AR="$AR" # Let the user override the test.
9542 else
9543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550 ac_cv_prog_AR="${ac_tool_prefix}ar"
9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 break 2
9554 done
9555 done
9556 IFS=$as_save_IFS
9560 AR=$ac_cv_prog_AR
9561 if test -n "$AR"; then
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9563 $as_echo "$AR" >&6; }
9564 else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9571 if test -z "$ac_cv_prog_AR"; then
9572 ac_ct_AR=$AR
9573 # Extract the first word of "ar", so it can be a program name with args.
9574 set dummy ar; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 if test -n "$ac_ct_AR"; then
9581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9582 else
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_prog_ac_ct_AR="ar"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9594 done
9595 done
9596 IFS=$as_save_IFS
9600 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9601 if test -n "$ac_ct_AR"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9603 $as_echo "$ac_ct_AR" >&6; }
9604 else
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9609 if test "x$ac_ct_AR" = x; then
9610 AR="false"
9611 else
9612 case $cross_compiling:$ac_tool_warned in
9613 yes:)
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9616 ac_tool_warned=yes ;;
9617 esac
9618 AR=$ac_ct_AR
9620 else
9621 AR="$ac_cv_prog_AR"
9624 test -z "$AR" && AR=ar
9625 if test -n "$plugin_option"; then
9626 if $AR --help 2>&1 | grep -q "\--plugin"; then
9627 touch conftest.c
9628 $AR $plugin_option rc conftest.a conftest.c
9629 if test "$?" != 0; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
9631 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
9632 else
9633 AR="$AR $plugin_option"
9635 rm -f conftest.*
9638 test -z "$AR_FLAGS" && AR_FLAGS=cru
9650 if test -n "$ac_tool_prefix"; then
9651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9652 set dummy ${ac_tool_prefix}strip; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if ${ac_cv_prog_STRIP+:} false; then :
9656 $as_echo_n "(cached) " >&6
9657 else
9658 if test -n "$STRIP"; then
9659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9660 else
9661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 for as_dir in $PATH
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9670 break 2
9672 done
9673 done
9674 IFS=$as_save_IFS
9678 STRIP=$ac_cv_prog_STRIP
9679 if test -n "$STRIP"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9681 $as_echo "$STRIP" >&6; }
9682 else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9689 if test -z "$ac_cv_prog_STRIP"; then
9690 ac_ct_STRIP=$STRIP
9691 # Extract the first word of "strip", so it can be a program name with args.
9692 set dummy strip; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 if test -n "$ac_ct_STRIP"; then
9699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9700 else
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708 ac_cv_prog_ac_ct_STRIP="strip"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9712 done
9713 done
9714 IFS=$as_save_IFS
9718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9719 if test -n "$ac_ct_STRIP"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9721 $as_echo "$ac_ct_STRIP" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9727 if test "x$ac_ct_STRIP" = x; then
9728 STRIP=":"
9729 else
9730 case $cross_compiling:$ac_tool_warned in
9731 yes:)
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9734 ac_tool_warned=yes ;;
9735 esac
9736 STRIP=$ac_ct_STRIP
9738 else
9739 STRIP="$ac_cv_prog_STRIP"
9742 test -z "$STRIP" && STRIP=:
9749 if test -n "$ac_tool_prefix"; then
9750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_prog_RANLIB+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -n "$RANLIB"; then
9758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9759 else
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9777 RANLIB=$ac_cv_prog_RANLIB
9778 if test -n "$RANLIB"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9780 $as_echo "$RANLIB" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9788 if test -z "$ac_cv_prog_RANLIB"; then
9789 ac_ct_RANLIB=$RANLIB
9790 # Extract the first word of "ranlib", so it can be a program name with args.
9791 set dummy ranlib; ac_word=$2
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9793 $as_echo_n "checking for $ac_word... " >&6; }
9794 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 if test -n "$ac_ct_RANLIB"; then
9798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9799 else
9800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 for as_dir in $PATH
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
9805 for ac_exec_ext in '' $ac_executable_extensions; do
9806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9807 ac_cv_prog_ac_ct_RANLIB="ranlib"
9808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9809 break 2
9811 done
9812 done
9813 IFS=$as_save_IFS
9817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9818 if test -n "$ac_ct_RANLIB"; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9820 $as_echo "$ac_ct_RANLIB" >&6; }
9821 else
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823 $as_echo "no" >&6; }
9826 if test "x$ac_ct_RANLIB" = x; then
9827 RANLIB=":"
9828 else
9829 case $cross_compiling:$ac_tool_warned in
9830 yes:)
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9833 ac_tool_warned=yes ;;
9834 esac
9835 RANLIB=$ac_ct_RANLIB
9837 else
9838 RANLIB="$ac_cv_prog_RANLIB"
9841 test -z "$RANLIB" && RANLIB=:
9842 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
9843 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
9844 RANLIB="$RANLIB $plugin_option"
9853 # Determine commands to create old-style static archives.
9854 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9855 old_postinstall_cmds='chmod 644 $oldlib'
9856 old_postuninstall_cmds=
9858 if test -n "$RANLIB"; then
9859 case $host_os in
9860 openbsd*)
9861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9866 esac
9867 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9870 case $host_os in
9871 darwin*)
9872 lock_old_archive_extraction=yes ;;
9874 lock_old_archive_extraction=no ;;
9875 esac
9915 # If no C compiler was specified, use CC.
9916 LTCC=${LTCC-"$CC"}
9918 # If no C compiler flags were specified, use CFLAGS.
9919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9921 # Allow CC to be a program name with arguments.
9922 compiler=$CC
9925 # Check for command to grab the raw symbol name followed by C symbol from nm.
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9927 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9928 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9932 # These are sane defaults that work on at least a few old systems.
9933 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9935 # Character class describing NM global symbol codes.
9936 symcode='[BCDEGRST]'
9938 # Regexp to match symbols that can be accessed directly from C.
9939 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9941 # Define system-specific variables.
9942 case $host_os in
9943 aix*)
9944 symcode='[BCDT]'
9946 cygwin* | mingw* | pw32* | cegcc*)
9947 symcode='[ABCDGISTW]'
9949 hpux*)
9950 if test "$host_cpu" = ia64; then
9951 symcode='[ABCDEGRST]'
9954 irix* | nonstopux*)
9955 symcode='[BCDEGRST]'
9957 osf*)
9958 symcode='[BCDEGQRST]'
9960 solaris*)
9961 symcode='[BCDRT]'
9963 sco3.2v5*)
9964 symcode='[DT]'
9966 sysv4.2uw2*)
9967 symcode='[DT]'
9969 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9970 symcode='[ABDT]'
9972 sysv4)
9973 symcode='[DFNSTU]'
9975 esac
9977 # If we're using GNU nm, then use its standard symbol codes.
9978 case `$NM -V 2>&1` in
9979 *GNU* | *'with BFD'*)
9980 symcode='[ABCDGIRSTW]' ;;
9981 esac
9983 # Transform an extracted symbol line into a proper C declaration.
9984 # Some systems (esp. on ia64) link data and code symbols differently,
9985 # so use this general approach.
9986 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9988 # Transform an extracted symbol line into symbol name and symbol address
9989 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9992 # Handle CRLF in mingw tool chain
9993 opt_cr=
9994 case $build_os in
9995 mingw*)
9996 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9998 esac
10000 # Try without a prefix underscore, then with it.
10001 for ac_symprfx in "" "_"; do
10003 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10004 symxfrm="\\1 $ac_symprfx\\2 \\2"
10006 # Write the raw and C identifiers.
10007 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10008 # Fake it for dumpbin and say T for any non-static function
10009 # and D for any global variable.
10010 # Also find C++ and __fastcall symbols from MSVC++,
10011 # which start with @ or ?.
10012 lt_cv_sys_global_symbol_pipe="$AWK '"\
10013 " {last_section=section; section=\$ 3};"\
10014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10015 " \$ 0!~/External *\|/{next};"\
10016 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10017 " {if(hide[section]) next};"\
10018 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10019 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10020 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10021 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10022 " ' prfx=^$ac_symprfx"
10023 else
10024 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10027 # Check to see that the pipe works correctly.
10028 pipe_works=no
10030 rm -f conftest*
10031 cat > conftest.$ac_ext <<_LT_EOF
10032 #ifdef __cplusplus
10033 extern "C" {
10034 #endif
10035 char nm_test_var;
10036 void nm_test_func(void);
10037 void nm_test_func(void){}
10038 #ifdef __cplusplus
10040 #endif
10041 int main(){nm_test_var='a';nm_test_func();return(0);}
10042 _LT_EOF
10044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10045 (eval $ac_compile) 2>&5
10046 ac_status=$?
10047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10048 test $ac_status = 0; }; then
10049 # Now try to grab the symbols.
10050 nlist=conftest.nm
10051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10052 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10053 ac_status=$?
10054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055 test $ac_status = 0; } && test -s "$nlist"; then
10056 # Try sorting and uniquifying the output.
10057 if sort "$nlist" | uniq > "$nlist"T; then
10058 mv -f "$nlist"T "$nlist"
10059 else
10060 rm -f "$nlist"T
10063 # Make sure that we snagged all the symbols we need.
10064 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10065 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10066 cat <<_LT_EOF > conftest.$ac_ext
10067 #ifdef __cplusplus
10068 extern "C" {
10069 #endif
10071 _LT_EOF
10072 # Now generate the symbol file.
10073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10075 cat <<_LT_EOF >> conftest.$ac_ext
10077 /* The mapping between symbol names and symbols. */
10078 const struct {
10079 const char *name;
10080 void *address;
10082 lt__PROGRAM__LTX_preloaded_symbols[] =
10084 { "@PROGRAM@", (void *) 0 },
10085 _LT_EOF
10086 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10087 cat <<\_LT_EOF >> conftest.$ac_ext
10088 {0, (void *) 0}
10091 /* This works around a problem in FreeBSD linker */
10092 #ifdef FREEBSD_WORKAROUND
10093 static const void *lt_preloaded_setup() {
10094 return lt__PROGRAM__LTX_preloaded_symbols;
10096 #endif
10098 #ifdef __cplusplus
10100 #endif
10101 _LT_EOF
10102 # Now try linking the two files.
10103 mv conftest.$ac_objext conftstm.$ac_objext
10104 lt_save_LIBS="$LIBS"
10105 lt_save_CFLAGS="$CFLAGS"
10106 LIBS="conftstm.$ac_objext"
10107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10109 (eval $ac_link) 2>&5
10110 ac_status=$?
10111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10112 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10113 pipe_works=yes
10115 LIBS="$lt_save_LIBS"
10116 CFLAGS="$lt_save_CFLAGS"
10117 else
10118 echo "cannot find nm_test_func in $nlist" >&5
10120 else
10121 echo "cannot find nm_test_var in $nlist" >&5
10123 else
10124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10126 else
10127 echo "$progname: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10130 rm -rf conftest* conftst*
10132 # Do not use the global_symbol_pipe unless it works.
10133 if test "$pipe_works" = yes; then
10134 break
10135 else
10136 lt_cv_sys_global_symbol_pipe=
10138 done
10142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10143 lt_cv_sys_global_symbol_to_cdecl=
10145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10147 $as_echo "failed" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10150 $as_echo "ok" >&6; }
10174 # Check whether --enable-libtool-lock was given.
10175 if test "${enable_libtool_lock+set}" = set; then :
10176 enableval=$enable_libtool_lock;
10179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10181 # Some flags need to be propagated to the compiler or linker for good
10182 # libtool support.
10183 case $host in
10184 ia64-*-hpux*)
10185 # Find out which ABI we are using.
10186 echo 'int i;' > conftest.$ac_ext
10187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10188 (eval $ac_compile) 2>&5
10189 ac_status=$?
10190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191 test $ac_status = 0; }; then
10192 case `/usr/bin/file conftest.$ac_objext` in
10193 *ELF-32*)
10194 HPUX_IA64_MODE="32"
10196 *ELF-64*)
10197 HPUX_IA64_MODE="64"
10199 esac
10201 rm -rf conftest*
10203 *-*-irix6*)
10204 # Find out which ABI we are using.
10205 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10207 (eval $ac_compile) 2>&5
10208 ac_status=$?
10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10210 test $ac_status = 0; }; then
10211 if test "$lt_cv_prog_gnu_ld" = yes; then
10212 case `/usr/bin/file conftest.$ac_objext` in
10213 *32-bit*)
10214 LD="${LD-ld} -melf32bsmip"
10216 *N32*)
10217 LD="${LD-ld} -melf32bmipn32"
10219 *64-bit*)
10220 LD="${LD-ld} -melf64bmip"
10222 esac
10223 else
10224 case `/usr/bin/file conftest.$ac_objext` in
10225 *32-bit*)
10226 LD="${LD-ld} -32"
10228 *N32*)
10229 LD="${LD-ld} -n32"
10231 *64-bit*)
10232 LD="${LD-ld} -64"
10234 esac
10237 rm -rf conftest*
10240 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10241 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10242 # Find out which ABI we are using.
10243 echo 'int i;' > conftest.$ac_ext
10244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245 (eval $ac_compile) 2>&5
10246 ac_status=$?
10247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; }; then
10249 case `/usr/bin/file conftest.o` in
10250 *32-bit*)
10251 case $host in
10252 x86_64-*kfreebsd*-gnu)
10253 LD="${LD-ld} -m elf_i386_fbsd"
10255 x86_64-*linux*)
10256 case `/usr/bin/file conftest.o` in
10257 *x86-64*)
10258 LD="${LD-ld} -m elf32_x86_64"
10261 LD="${LD-ld} -m elf_i386"
10263 esac
10265 powerpc64le-*linux*)
10266 LD="${LD-ld} -m elf32lppclinux"
10268 powerpc64-*linux*)
10269 LD="${LD-ld} -m elf32ppclinux"
10271 s390x-*linux*)
10272 LD="${LD-ld} -m elf_s390"
10274 sparc64-*linux*)
10275 LD="${LD-ld} -m elf32_sparc"
10277 esac
10279 *64-bit*)
10280 case $host in
10281 x86_64-*kfreebsd*-gnu)
10282 LD="${LD-ld} -m elf_x86_64_fbsd"
10284 x86_64-*linux*)
10285 LD="${LD-ld} -m elf_x86_64"
10287 powerpcle-*linux*)
10288 LD="${LD-ld} -m elf64lppc"
10290 powerpc-*linux*)
10291 LD="${LD-ld} -m elf64ppc"
10293 s390*-*linux*|s390*-*tpf*)
10294 LD="${LD-ld} -m elf64_s390"
10296 sparc*-*linux*)
10297 LD="${LD-ld} -m elf64_sparc"
10299 esac
10301 esac
10303 rm -rf conftest*
10306 *-*-sco3.2v5*)
10307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10308 SAVE_CFLAGS="$CFLAGS"
10309 CFLAGS="$CFLAGS -belf"
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10311 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10312 if ${lt_cv_cc_needs_belf+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 ac_ext=c
10316 ac_cpp='$CPP $CPPFLAGS'
10317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321 if test x$gcc_no_link = xyes; then
10322 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10328 main ()
10332 return 0;
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"; then :
10336 lt_cv_cc_needs_belf=yes
10337 else
10338 lt_cv_cc_needs_belf=no
10340 rm -f core conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 ac_ext=c
10343 ac_cpp='$CPP $CPPFLAGS'
10344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10350 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10351 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10352 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10353 CFLAGS="$SAVE_CFLAGS"
10356 sparc*-*solaris*)
10357 # Find out which ABI we are using.
10358 echo 'int i;' > conftest.$ac_ext
10359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10360 (eval $ac_compile) 2>&5
10361 ac_status=$?
10362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363 test $ac_status = 0; }; then
10364 case `/usr/bin/file conftest.o` in
10365 *64-bit*)
10366 case $lt_cv_prog_gnu_ld in
10367 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10369 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10370 LD="${LD-ld} -64"
10373 esac
10375 esac
10377 rm -rf conftest*
10379 esac
10381 need_locks="$enable_libtool_lock"
10384 case $host_os in
10385 rhapsody* | darwin*)
10386 if test -n "$ac_tool_prefix"; then
10387 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10388 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 if test -n "$DSYMUTIL"; then
10395 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10404 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 break 2
10408 done
10409 done
10410 IFS=$as_save_IFS
10414 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10415 if test -n "$DSYMUTIL"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10417 $as_echo "$DSYMUTIL" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10425 if test -z "$ac_cv_prog_DSYMUTIL"; then
10426 ac_ct_DSYMUTIL=$DSYMUTIL
10427 # Extract the first word of "dsymutil", so it can be a program name with args.
10428 set dummy dsymutil; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test -n "$ac_ct_DSYMUTIL"; then
10435 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10454 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10455 if test -n "$ac_ct_DSYMUTIL"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10457 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10463 if test "x$ac_ct_DSYMUTIL" = x; then
10464 DSYMUTIL=":"
10465 else
10466 case $cross_compiling:$ac_tool_warned in
10467 yes:)
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10470 ac_tool_warned=yes ;;
10471 esac
10472 DSYMUTIL=$ac_ct_DSYMUTIL
10474 else
10475 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10478 if test -n "$ac_tool_prefix"; then
10479 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10480 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_prog_NMEDIT+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 if test -n "$NMEDIT"; then
10487 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10506 NMEDIT=$ac_cv_prog_NMEDIT
10507 if test -n "$NMEDIT"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10509 $as_echo "$NMEDIT" >&6; }
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10517 if test -z "$ac_cv_prog_NMEDIT"; then
10518 ac_ct_NMEDIT=$NMEDIT
10519 # Extract the first word of "nmedit", so it can be a program name with args.
10520 set dummy nmedit; ac_word=$2
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522 $as_echo_n "checking for $ac_word... " >&6; }
10523 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 if test -n "$ac_ct_NMEDIT"; then
10527 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10528 else
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in $PATH
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10540 done
10541 done
10542 IFS=$as_save_IFS
10546 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10547 if test -n "$ac_ct_NMEDIT"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10549 $as_echo "$ac_ct_NMEDIT" >&6; }
10550 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10555 if test "x$ac_ct_NMEDIT" = x; then
10556 NMEDIT=":"
10557 else
10558 case $cross_compiling:$ac_tool_warned in
10559 yes:)
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10562 ac_tool_warned=yes ;;
10563 esac
10564 NMEDIT=$ac_ct_NMEDIT
10566 else
10567 NMEDIT="$ac_cv_prog_NMEDIT"
10570 if test -n "$ac_tool_prefix"; then
10571 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10572 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_prog_LIPO+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577 else
10578 if test -n "$LIPO"; then
10579 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10592 done
10593 done
10594 IFS=$as_save_IFS
10598 LIPO=$ac_cv_prog_LIPO
10599 if test -n "$LIPO"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10601 $as_echo "$LIPO" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10609 if test -z "$ac_cv_prog_LIPO"; then
10610 ac_ct_LIPO=$LIPO
10611 # Extract the first word of "lipo", so it can be a program name with args.
10612 set dummy lipo; ac_word=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 if test -n "$ac_ct_LIPO"; then
10619 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10620 else
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $PATH
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628 ac_cv_prog_ac_ct_LIPO="lipo"
10629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10632 done
10633 done
10634 IFS=$as_save_IFS
10638 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10639 if test -n "$ac_ct_LIPO"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10641 $as_echo "$ac_ct_LIPO" >&6; }
10642 else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10647 if test "x$ac_ct_LIPO" = x; then
10648 LIPO=":"
10649 else
10650 case $cross_compiling:$ac_tool_warned in
10651 yes:)
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10654 ac_tool_warned=yes ;;
10655 esac
10656 LIPO=$ac_ct_LIPO
10658 else
10659 LIPO="$ac_cv_prog_LIPO"
10662 if test -n "$ac_tool_prefix"; then
10663 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10664 set dummy ${ac_tool_prefix}otool; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_prog_OTOOL+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 if test -n "$OTOOL"; then
10671 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10672 else
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10690 OTOOL=$ac_cv_prog_OTOOL
10691 if test -n "$OTOOL"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10693 $as_echo "$OTOOL" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10701 if test -z "$ac_cv_prog_OTOOL"; then
10702 ac_ct_OTOOL=$OTOOL
10703 # Extract the first word of "otool", so it can be a program name with args.
10704 set dummy otool; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test -n "$ac_ct_OTOOL"; then
10711 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_prog_ac_ct_OTOOL="otool"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10724 done
10725 done
10726 IFS=$as_save_IFS
10730 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10731 if test -n "$ac_ct_OTOOL"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10733 $as_echo "$ac_ct_OTOOL" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10739 if test "x$ac_ct_OTOOL" = x; then
10740 OTOOL=":"
10741 else
10742 case $cross_compiling:$ac_tool_warned in
10743 yes:)
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10746 ac_tool_warned=yes ;;
10747 esac
10748 OTOOL=$ac_ct_OTOOL
10750 else
10751 OTOOL="$ac_cv_prog_OTOOL"
10754 if test -n "$ac_tool_prefix"; then
10755 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10756 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_prog_OTOOL64+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test -n "$OTOOL64"; then
10763 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10776 done
10777 done
10778 IFS=$as_save_IFS
10782 OTOOL64=$ac_cv_prog_OTOOL64
10783 if test -n "$OTOOL64"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10785 $as_echo "$OTOOL64" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10793 if test -z "$ac_cv_prog_OTOOL64"; then
10794 ac_ct_OTOOL64=$OTOOL64
10795 # Extract the first word of "otool64", so it can be a program name with args.
10796 set dummy otool64; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 if test -n "$ac_ct_OTOOL64"; then
10803 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10804 else
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10812 ac_cv_prog_ac_ct_OTOOL64="otool64"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10816 done
10817 done
10818 IFS=$as_save_IFS
10822 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10823 if test -n "$ac_ct_OTOOL64"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10825 $as_echo "$ac_ct_OTOOL64" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10831 if test "x$ac_ct_OTOOL64" = x; then
10832 OTOOL64=":"
10833 else
10834 case $cross_compiling:$ac_tool_warned in
10835 yes:)
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10838 ac_tool_warned=yes ;;
10839 esac
10840 OTOOL64=$ac_ct_OTOOL64
10842 else
10843 OTOOL64="$ac_cv_prog_OTOOL64"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10873 $as_echo_n "checking for -single_module linker flag... " >&6; }
10874 if ${lt_cv_apple_cc_single_mod+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 lt_cv_apple_cc_single_mod=no
10878 if test -z "${LT_MULTI_MODULE}"; then
10879 # By default we will add the -single_module flag. You can override
10880 # by either setting the environment variable LT_MULTI_MODULE
10881 # non-empty at configure time, or by adding -multi_module to the
10882 # link flags.
10883 rm -rf libconftest.dylib*
10884 echo "int foo(void){return 1;}" > conftest.c
10885 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10886 -dynamiclib -Wl,-single_module conftest.c" >&5
10887 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10888 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10889 _lt_result=$?
10890 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10891 lt_cv_apple_cc_single_mod=yes
10892 else
10893 cat conftest.err >&5
10895 rm -rf libconftest.dylib*
10896 rm -f conftest.*
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10900 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10902 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10903 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 lt_cv_ld_exported_symbols_list=no
10907 save_LDFLAGS=$LDFLAGS
10908 echo "_main" > conftest.sym
10909 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10910 if test x$gcc_no_link = xyes; then
10911 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10917 main ()
10921 return 0;
10923 _ACEOF
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 lt_cv_ld_exported_symbols_list=yes
10926 else
10927 lt_cv_ld_exported_symbols_list=no
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LDFLAGS="$save_LDFLAGS"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10935 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10937 $as_echo_n "checking for -force_load linker flag... " >&6; }
10938 if ${lt_cv_ld_force_load+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 lt_cv_ld_force_load=no
10942 cat > conftest.c << _LT_EOF
10943 int forced_loaded() { return 2;}
10944 _LT_EOF
10945 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10946 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10947 echo "$AR cru libconftest.a conftest.o" >&5
10948 $AR cru libconftest.a conftest.o 2>&5
10949 cat > conftest.c << _LT_EOF
10950 int main() { return 0;}
10951 _LT_EOF
10952 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10953 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10954 _lt_result=$?
10955 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10956 lt_cv_ld_force_load=yes
10957 else
10958 cat conftest.err >&5
10960 rm -f conftest.err libconftest.a conftest conftest.c
10961 rm -rf conftest.dSYM
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10965 $as_echo "$lt_cv_ld_force_load" >&6; }
10966 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
10967 # build without first building modern cctools / linker.
10968 case $host_cpu-$host_os in
10969 *-rhapsody* | *-darwin1.[012])
10970 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10971 *-darwin1.*)
10972 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10973 *-darwin*)
10974 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
10975 # deployment target is forced to an earlier version.
10976 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
10977 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
10979 10.[012][,.]*)
10980 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10984 esac
10986 esac
10987 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10988 _lt_dar_single_mod='$single_module'
10990 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10991 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10992 else
10993 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10995 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10996 _lt_dsymutil='~$DSYMUTIL $lib || :'
10997 else
10998 _lt_dsymutil=
11001 esac
11003 for ac_header in dlfcn.h
11004 do :
11005 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11007 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11008 cat >>confdefs.h <<_ACEOF
11009 #define HAVE_DLFCN_H 1
11010 _ACEOF
11014 done
11020 # Set options
11024 enable_dlopen=no
11027 enable_win32_dll=no
11030 # Check whether --enable-shared was given.
11031 if test "${enable_shared+set}" = set; then :
11032 enableval=$enable_shared; p=${PACKAGE-default}
11033 case $enableval in
11034 yes) enable_shared=yes ;;
11035 no) enable_shared=no ;;
11037 enable_shared=no
11038 # Look at the argument we got. We use all the common list separators.
11039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11040 for pkg in $enableval; do
11041 IFS="$lt_save_ifs"
11042 if test "X$pkg" = "X$p"; then
11043 enable_shared=yes
11045 done
11046 IFS="$lt_save_ifs"
11048 esac
11049 else
11050 enable_shared=yes
11061 # Check whether --enable-static was given.
11062 if test "${enable_static+set}" = set; then :
11063 enableval=$enable_static; p=${PACKAGE-default}
11064 case $enableval in
11065 yes) enable_static=yes ;;
11066 no) enable_static=no ;;
11068 enable_static=no
11069 # Look at the argument we got. We use all the common list separators.
11070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11071 for pkg in $enableval; do
11072 IFS="$lt_save_ifs"
11073 if test "X$pkg" = "X$p"; then
11074 enable_static=yes
11076 done
11077 IFS="$lt_save_ifs"
11079 esac
11080 else
11081 enable_static=yes
11093 # Check whether --with-pic was given.
11094 if test "${with_pic+set}" = set; then :
11095 withval=$with_pic; pic_mode="$withval"
11096 else
11097 pic_mode=default
11101 test -z "$pic_mode" && pic_mode=default
11109 # Check whether --enable-fast-install was given.
11110 if test "${enable_fast_install+set}" = set; then :
11111 enableval=$enable_fast_install; p=${PACKAGE-default}
11112 case $enableval in
11113 yes) enable_fast_install=yes ;;
11114 no) enable_fast_install=no ;;
11116 enable_fast_install=no
11117 # Look at the argument we got. We use all the common list separators.
11118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11119 for pkg in $enableval; do
11120 IFS="$lt_save_ifs"
11121 if test "X$pkg" = "X$p"; then
11122 enable_fast_install=yes
11124 done
11125 IFS="$lt_save_ifs"
11127 esac
11128 else
11129 enable_fast_install=yes
11142 # This can be used to rebuild libtool when needed
11143 LIBTOOL_DEPS="$ltmain"
11145 # Always use our own libtool.
11146 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11173 test -z "$LN_S" && LN_S="ln -s"
11188 if test -n "${ZSH_VERSION+set}" ; then
11189 setopt NO_GLOB_SUBST
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11193 $as_echo_n "checking for objdir... " >&6; }
11194 if ${lt_cv_objdir+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 rm -f .libs 2>/dev/null
11198 mkdir .libs 2>/dev/null
11199 if test -d .libs; then
11200 lt_cv_objdir=.libs
11201 else
11202 # MS-DOS does not allow filenames that begin with a dot.
11203 lt_cv_objdir=_libs
11205 rmdir .libs 2>/dev/null
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11208 $as_echo "$lt_cv_objdir" >&6; }
11209 objdir=$lt_cv_objdir
11215 cat >>confdefs.h <<_ACEOF
11216 #define LT_OBJDIR "$lt_cv_objdir/"
11217 _ACEOF
11222 case $host_os in
11223 aix3*)
11224 # AIX sometimes has problems with the GCC collect2 program. For some
11225 # reason, if we set the COLLECT_NAMES environment variable, the problems
11226 # vanish in a puff of smoke.
11227 if test "X${COLLECT_NAMES+set}" != Xset; then
11228 COLLECT_NAMES=
11229 export COLLECT_NAMES
11232 esac
11234 # Global variables:
11235 ofile=libtool
11236 can_build_shared=yes
11238 # All known linkers require a `.a' archive for static linking (except MSVC,
11239 # which needs '.lib').
11240 libext=a
11242 with_gnu_ld="$lt_cv_prog_gnu_ld"
11244 old_CC="$CC"
11245 old_CFLAGS="$CFLAGS"
11247 # Set sane defaults for various variables
11248 test -z "$CC" && CC=cc
11249 test -z "$LTCC" && LTCC=$CC
11250 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11251 test -z "$LD" && LD=ld
11252 test -z "$ac_objext" && ac_objext=o
11254 for cc_temp in $compiler""; do
11255 case $cc_temp in
11256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11258 \-*) ;;
11259 *) break;;
11260 esac
11261 done
11262 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11265 # Only perform the check for file, if the check method requires it
11266 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11267 case $deplibs_check_method in
11268 file_magic*)
11269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11271 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11272 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 case $MAGIC_CMD in
11276 [\\/*] | ?:[\\/]*)
11277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11280 lt_save_MAGIC_CMD="$MAGIC_CMD"
11281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11283 for ac_dir in $ac_dummy; do
11284 IFS="$lt_save_ifs"
11285 test -z "$ac_dir" && ac_dir=.
11286 if test -f $ac_dir/${ac_tool_prefix}file; then
11287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11288 if test -n "$file_magic_test_file"; then
11289 case $deplibs_check_method in
11290 "file_magic "*)
11291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11294 $EGREP "$file_magic_regex" > /dev/null; then
11296 else
11297 cat <<_LT_EOF 1>&2
11299 *** Warning: the command libtool uses to detect shared libraries,
11300 *** $file_magic_cmd, produces output that libtool cannot recognize.
11301 *** The result is that libtool may fail to recognize shared libraries
11302 *** as such. This will affect the creation of libtool libraries that
11303 *** depend on shared libraries, but programs linked with such libtool
11304 *** libraries will work regardless of this problem. Nevertheless, you
11305 *** may want to report the problem to your system manager and/or to
11306 *** bug-libtool@gnu.org
11308 _LT_EOF
11309 fi ;;
11310 esac
11312 break
11314 done
11315 IFS="$lt_save_ifs"
11316 MAGIC_CMD="$lt_save_MAGIC_CMD"
11318 esac
11321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11322 if test -n "$MAGIC_CMD"; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11324 $as_echo "$MAGIC_CMD" >&6; }
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; }
11334 if test -z "$lt_cv_path_MAGIC_CMD"; then
11335 if test -n "$ac_tool_prefix"; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11337 $as_echo_n "checking for file... " >&6; }
11338 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 case $MAGIC_CMD in
11342 [\\/*] | ?:[\\/]*)
11343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11346 lt_save_MAGIC_CMD="$MAGIC_CMD"
11347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11349 for ac_dir in $ac_dummy; do
11350 IFS="$lt_save_ifs"
11351 test -z "$ac_dir" && ac_dir=.
11352 if test -f $ac_dir/file; then
11353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11354 if test -n "$file_magic_test_file"; then
11355 case $deplibs_check_method in
11356 "file_magic "*)
11357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11360 $EGREP "$file_magic_regex" > /dev/null; then
11362 else
11363 cat <<_LT_EOF 1>&2
11365 *** Warning: the command libtool uses to detect shared libraries,
11366 *** $file_magic_cmd, produces output that libtool cannot recognize.
11367 *** The result is that libtool may fail to recognize shared libraries
11368 *** as such. This will affect the creation of libtool libraries that
11369 *** depend on shared libraries, but programs linked with such libtool
11370 *** libraries will work regardless of this problem. Nevertheless, you
11371 *** may want to report the problem to your system manager and/or to
11372 *** bug-libtool@gnu.org
11374 _LT_EOF
11375 fi ;;
11376 esac
11378 break
11380 done
11381 IFS="$lt_save_ifs"
11382 MAGIC_CMD="$lt_save_MAGIC_CMD"
11384 esac
11387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11388 if test -n "$MAGIC_CMD"; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11390 $as_echo "$MAGIC_CMD" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11397 else
11398 MAGIC_CMD=:
11404 esac
11406 # Use C for the default configuration in the libtool script
11408 lt_save_CC="$CC"
11409 ac_ext=c
11410 ac_cpp='$CPP $CPPFLAGS'
11411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11416 # Source file extension for C test sources.
11417 ac_ext=c
11419 # Object file extension for compiled C test sources.
11420 objext=o
11421 objext=$objext
11423 # Code to be used in simple compile tests
11424 lt_simple_compile_test_code="int some_variable = 0;"
11426 # Code to be used in simple link tests
11427 lt_simple_link_test_code='int main(){return(0);}'
11435 # If no C compiler was specified, use CC.
11436 LTCC=${LTCC-"$CC"}
11438 # If no C compiler flags were specified, use CFLAGS.
11439 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11441 # Allow CC to be a program name with arguments.
11442 compiler=$CC
11444 # Save the default compiler, since it gets overwritten when the other
11445 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11446 compiler_DEFAULT=$CC
11448 # save warnings/boilerplate of simple test code
11449 ac_outfile=conftest.$ac_objext
11450 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11452 _lt_compiler_boilerplate=`cat conftest.err`
11453 $RM conftest*
11455 ac_outfile=conftest.$ac_objext
11456 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11458 _lt_linker_boilerplate=`cat conftest.err`
11459 $RM -r conftest*
11462 ## CAVEAT EMPTOR:
11463 ## There is no encapsulation within the following macros, do not change
11464 ## the running order or otherwise move them around unless you know exactly
11465 ## what you are doing...
11466 if test -n "$compiler"; then
11468 lt_prog_compiler_no_builtin_flag=
11470 if test "$GCC" = yes; then
11471 case $cc_basename in
11472 nvcc*)
11473 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11475 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11476 esac
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11479 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11480 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 lt_cv_prog_compiler_rtti_exceptions=no
11484 ac_outfile=conftest.$ac_objext
11485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11486 lt_compiler_flag="-fno-rtti -fno-exceptions"
11487 # Insert the option either (1) after the last *FLAGS variable, or
11488 # (2) before a word containing "conftest.", or (3) at the end.
11489 # Note that $ac_compile itself does not contain backslashes and begins
11490 # with a dollar sign (not a hyphen), so the echo should work correctly.
11491 # The option is referenced via a variable to avoid confusing sed.
11492 lt_compile=`echo "$ac_compile" | $SED \
11493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11495 -e 's:$: $lt_compiler_flag:'`
11496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11497 (eval "$lt_compile" 2>conftest.err)
11498 ac_status=$?
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 if (exit $ac_status) && test -s "$ac_outfile"; then
11502 # The compiler can only warn and ignore the option if not recognized
11503 # So say no if there are warnings other than the usual output.
11504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11507 lt_cv_prog_compiler_rtti_exceptions=yes
11510 $RM conftest*
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11514 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11516 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11517 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11518 else
11529 lt_prog_compiler_wl=
11530 lt_prog_compiler_pic=
11531 lt_prog_compiler_static=
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11534 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11536 if test "$GCC" = yes; then
11537 lt_prog_compiler_wl='-Wl,'
11538 lt_prog_compiler_static='-static'
11540 case $host_os in
11541 aix*)
11542 # All AIX code is PIC.
11543 if test "$host_cpu" = ia64; then
11544 # AIX 5 now supports IA64 processor
11545 lt_prog_compiler_static='-Bstatic'
11547 lt_prog_compiler_pic='-fPIC'
11550 amigaos*)
11551 case $host_cpu in
11552 powerpc)
11553 # see comment about AmigaOS4 .so support
11554 lt_prog_compiler_pic='-fPIC'
11556 m68k)
11557 # FIXME: we need at least 68020 code to build shared libraries, but
11558 # adding the `-m68020' flag to GCC prevents building anything better,
11559 # like `-m68040'.
11560 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11562 esac
11565 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11566 # PIC is the default for these OSes.
11569 mingw* | cygwin* | pw32* | os2* | cegcc*)
11570 # This hack is so that the source file can tell whether it is being
11571 # built for inclusion in a dll (and should export symbols for example).
11572 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11573 # (--disable-auto-import) libraries
11574 lt_prog_compiler_pic='-DDLL_EXPORT'
11577 darwin* | rhapsody*)
11578 # PIC is the default on this platform
11579 # Common symbols not allowed in MH_DYLIB files
11580 lt_prog_compiler_pic='-fno-common'
11583 haiku*)
11584 # PIC is the default for Haiku.
11585 # The "-static" flag exists, but is broken.
11586 lt_prog_compiler_static=
11589 hpux*)
11590 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11591 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11592 # sets the default TLS model and affects inlining.
11593 case $host_cpu in
11594 hppa*64*)
11595 # +Z the default
11598 lt_prog_compiler_pic='-fPIC'
11600 esac
11603 interix[3-9]*)
11604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11605 # Instead, we relocate shared libraries at runtime.
11608 msdosdjgpp*)
11609 # Just because we use GCC doesn't mean we suddenly get shared libraries
11610 # on systems that don't support them.
11611 lt_prog_compiler_can_build_shared=no
11612 enable_shared=no
11615 *nto* | *qnx*)
11616 # QNX uses GNU C++, but need to define -shared option too, otherwise
11617 # it will coredump.
11618 lt_prog_compiler_pic='-fPIC -shared'
11621 sysv4*MP*)
11622 if test -d /usr/nec; then
11623 lt_prog_compiler_pic=-Kconform_pic
11628 lt_prog_compiler_pic='-fPIC'
11630 esac
11632 case $cc_basename in
11633 nvcc*) # Cuda Compiler Driver 2.2
11634 lt_prog_compiler_wl='-Xlinker '
11635 lt_prog_compiler_pic='-Xcompiler -fPIC'
11637 esac
11638 else
11639 # PORTME Check for flag to pass linker flags through the system compiler.
11640 case $host_os in
11641 aix*)
11642 lt_prog_compiler_wl='-Wl,'
11643 if test "$host_cpu" = ia64; then
11644 # AIX 5 now supports IA64 processor
11645 lt_prog_compiler_static='-Bstatic'
11646 else
11647 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11651 mingw* | cygwin* | pw32* | os2* | cegcc*)
11652 # This hack is so that the source file can tell whether it is being
11653 # built for inclusion in a dll (and should export symbols for example).
11654 lt_prog_compiler_pic='-DDLL_EXPORT'
11657 hpux9* | hpux10* | hpux11*)
11658 lt_prog_compiler_wl='-Wl,'
11659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11660 # not for PA HP-UX.
11661 case $host_cpu in
11662 hppa*64*|ia64*)
11663 # +Z the default
11666 lt_prog_compiler_pic='+Z'
11668 esac
11669 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11670 lt_prog_compiler_static='${wl}-a ${wl}archive'
11673 irix5* | irix6* | nonstopux*)
11674 lt_prog_compiler_wl='-Wl,'
11675 # PIC (with -KPIC) is the default.
11676 lt_prog_compiler_static='-non_shared'
11679 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11680 case $cc_basename in
11681 # old Intel for x86_64 which still supported -KPIC.
11682 ecc*)
11683 lt_prog_compiler_wl='-Wl,'
11684 lt_prog_compiler_pic='-KPIC'
11685 lt_prog_compiler_static='-static'
11687 # icc used to be incompatible with GCC.
11688 # ICC 10 doesn't accept -KPIC any more.
11689 icc* | ifort*)
11690 lt_prog_compiler_wl='-Wl,'
11691 lt_prog_compiler_pic='-fPIC'
11692 lt_prog_compiler_static='-static'
11694 # Lahey Fortran 8.1.
11695 lf95*)
11696 lt_prog_compiler_wl='-Wl,'
11697 lt_prog_compiler_pic='--shared'
11698 lt_prog_compiler_static='--static'
11700 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11701 # Portland Group compilers (*not* the Pentium gcc compiler,
11702 # which looks to be a dead project)
11703 lt_prog_compiler_wl='-Wl,'
11704 lt_prog_compiler_pic='-fpic'
11705 lt_prog_compiler_static='-Bstatic'
11707 ccc*)
11708 lt_prog_compiler_wl='-Wl,'
11709 # All Alpha code is PIC.
11710 lt_prog_compiler_static='-non_shared'
11712 xl* | bgxl* | bgf* | mpixl*)
11713 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11714 lt_prog_compiler_wl='-Wl,'
11715 lt_prog_compiler_pic='-qpic'
11716 lt_prog_compiler_static='-qstaticlink'
11719 case `$CC -V 2>&1 | sed 5q` in
11720 *Sun\ F* | *Sun*Fortran*)
11721 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11722 lt_prog_compiler_pic='-KPIC'
11723 lt_prog_compiler_static='-Bstatic'
11724 lt_prog_compiler_wl=''
11726 *Sun\ C*)
11727 # Sun C 5.9
11728 lt_prog_compiler_pic='-KPIC'
11729 lt_prog_compiler_static='-Bstatic'
11730 lt_prog_compiler_wl='-Wl,'
11732 esac
11734 esac
11737 newsos6)
11738 lt_prog_compiler_pic='-KPIC'
11739 lt_prog_compiler_static='-Bstatic'
11742 *nto* | *qnx*)
11743 # QNX uses GNU C++, but need to define -shared option too, otherwise
11744 # it will coredump.
11745 lt_prog_compiler_pic='-fPIC -shared'
11748 osf3* | osf4* | osf5*)
11749 lt_prog_compiler_wl='-Wl,'
11750 # All OSF/1 code is PIC.
11751 lt_prog_compiler_static='-non_shared'
11754 rdos*)
11755 lt_prog_compiler_static='-non_shared'
11758 solaris*)
11759 lt_prog_compiler_pic='-KPIC'
11760 lt_prog_compiler_static='-Bstatic'
11761 case $cc_basename in
11762 f77* | f90* | f95*)
11763 lt_prog_compiler_wl='-Qoption ld ';;
11765 lt_prog_compiler_wl='-Wl,';;
11766 esac
11769 sunos4*)
11770 lt_prog_compiler_wl='-Qoption ld '
11771 lt_prog_compiler_pic='-PIC'
11772 lt_prog_compiler_static='-Bstatic'
11775 sysv4 | sysv4.2uw2* | sysv4.3*)
11776 lt_prog_compiler_wl='-Wl,'
11777 lt_prog_compiler_pic='-KPIC'
11778 lt_prog_compiler_static='-Bstatic'
11781 sysv4*MP*)
11782 if test -d /usr/nec ;then
11783 lt_prog_compiler_pic='-Kconform_pic'
11784 lt_prog_compiler_static='-Bstatic'
11788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11789 lt_prog_compiler_wl='-Wl,'
11790 lt_prog_compiler_pic='-KPIC'
11791 lt_prog_compiler_static='-Bstatic'
11794 unicos*)
11795 lt_prog_compiler_wl='-Wl,'
11796 lt_prog_compiler_can_build_shared=no
11799 uts4*)
11800 lt_prog_compiler_pic='-pic'
11801 lt_prog_compiler_static='-Bstatic'
11805 lt_prog_compiler_can_build_shared=no
11807 esac
11810 case $host_os in
11811 # For platforms which do not support PIC, -DPIC is meaningless:
11812 *djgpp*)
11813 lt_prog_compiler_pic=
11816 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11818 esac
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11820 $as_echo "$lt_prog_compiler_pic" >&6; }
11828 # Check to make sure the PIC flag actually works.
11830 if test -n "$lt_prog_compiler_pic"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11832 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11833 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 lt_cv_prog_compiler_pic_works=no
11837 ac_outfile=conftest.$ac_objext
11838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11839 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11840 # Insert the option either (1) after the last *FLAGS variable, or
11841 # (2) before a word containing "conftest.", or (3) at the end.
11842 # Note that $ac_compile itself does not contain backslashes and begins
11843 # with a dollar sign (not a hyphen), so the echo should work correctly.
11844 # The option is referenced via a variable to avoid confusing sed.
11845 lt_compile=`echo "$ac_compile" | $SED \
11846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11848 -e 's:$: $lt_compiler_flag:'`
11849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11850 (eval "$lt_compile" 2>conftest.err)
11851 ac_status=$?
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 if (exit $ac_status) && test -s "$ac_outfile"; then
11855 # The compiler can only warn and ignore the option if not recognized
11856 # So say no if there are warnings other than the usual output.
11857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11860 lt_cv_prog_compiler_pic_works=yes
11863 $RM conftest*
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11867 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11869 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11870 case $lt_prog_compiler_pic in
11871 "" | " "*) ;;
11872 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11873 esac
11874 else
11875 lt_prog_compiler_pic=
11876 lt_prog_compiler_can_build_shared=no
11887 # Check to make sure the static flag actually works.
11889 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11891 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11892 if ${lt_cv_prog_compiler_static_works+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 lt_cv_prog_compiler_static_works=no
11896 save_LDFLAGS="$LDFLAGS"
11897 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11898 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11899 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11900 # The linker can only warn and ignore the option if not recognized
11901 # So say no if there are warnings
11902 if test -s conftest.err; then
11903 # Append any errors to the config.log.
11904 cat conftest.err 1>&5
11905 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11907 if diff conftest.exp conftest.er2 >/dev/null; then
11908 lt_cv_prog_compiler_static_works=yes
11910 else
11911 lt_cv_prog_compiler_static_works=yes
11914 $RM -r conftest*
11915 LDFLAGS="$save_LDFLAGS"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11919 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11921 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11923 else
11924 lt_prog_compiler_static=
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11934 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11935 if ${lt_cv_prog_compiler_c_o+:} false; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 lt_cv_prog_compiler_c_o=no
11939 $RM -r conftest 2>/dev/null
11940 mkdir conftest
11941 cd conftest
11942 mkdir out
11943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11945 lt_compiler_flag="-o out/conftest2.$ac_objext"
11946 # Insert the option either (1) after the last *FLAGS variable, or
11947 # (2) before a word containing "conftest.", or (3) at the end.
11948 # Note that $ac_compile itself does not contain backslashes and begins
11949 # with a dollar sign (not a hyphen), so the echo should work correctly.
11950 lt_compile=`echo "$ac_compile" | $SED \
11951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11953 -e 's:$: $lt_compiler_flag:'`
11954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11955 (eval "$lt_compile" 2>out/conftest.err)
11956 ac_status=$?
11957 cat out/conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11960 then
11961 # The compiler can only warn and ignore the option if not recognized
11962 # So say no if there are warnings
11963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_c_o=yes
11969 chmod u+w . 2>&5
11970 $RM conftest*
11971 # SGI C++ compiler will create directory out/ii_files/ for
11972 # template instantiation
11973 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11974 $RM out/* && rmdir out
11975 cd ..
11976 $RM -r conftest
11977 $RM conftest*
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11981 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11989 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11990 if ${lt_cv_prog_compiler_c_o+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 lt_cv_prog_compiler_c_o=no
11994 $RM -r conftest 2>/dev/null
11995 mkdir conftest
11996 cd conftest
11997 mkdir out
11998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12000 lt_compiler_flag="-o out/conftest2.$ac_objext"
12001 # Insert the option either (1) after the last *FLAGS variable, or
12002 # (2) before a word containing "conftest.", or (3) at the end.
12003 # Note that $ac_compile itself does not contain backslashes and begins
12004 # with a dollar sign (not a hyphen), so the echo should work correctly.
12005 lt_compile=`echo "$ac_compile" | $SED \
12006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008 -e 's:$: $lt_compiler_flag:'`
12009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12010 (eval "$lt_compile" 2>out/conftest.err)
12011 ac_status=$?
12012 cat out/conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12015 then
12016 # The compiler can only warn and ignore the option if not recognized
12017 # So say no if there are warnings
12018 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12021 lt_cv_prog_compiler_c_o=yes
12024 chmod u+w . 2>&5
12025 $RM conftest*
12026 # SGI C++ compiler will create directory out/ii_files/ for
12027 # template instantiation
12028 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12029 $RM out/* && rmdir out
12030 cd ..
12031 $RM -r conftest
12032 $RM conftest*
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12036 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12041 hard_links="nottested"
12042 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12043 # do not overwrite the value of need_locks provided by the user
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12045 $as_echo_n "checking if we can lock with hard links... " >&6; }
12046 hard_links=yes
12047 $RM conftest*
12048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12049 touch conftest.a
12050 ln conftest.a conftest.b 2>&5 || hard_links=no
12051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12053 $as_echo "$hard_links" >&6; }
12054 if test "$hard_links" = no; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12056 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12057 need_locks=warn
12059 else
12060 need_locks=no
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12069 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12071 runpath_var=
12072 allow_undefined_flag=
12073 always_export_symbols=no
12074 archive_cmds=
12075 archive_expsym_cmds=
12076 compiler_needs_object=no
12077 enable_shared_with_static_runtimes=no
12078 export_dynamic_flag_spec=
12079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12080 hardcode_automatic=no
12081 hardcode_direct=no
12082 hardcode_direct_absolute=no
12083 hardcode_libdir_flag_spec=
12084 hardcode_libdir_flag_spec_ld=
12085 hardcode_libdir_separator=
12086 hardcode_minus_L=no
12087 hardcode_shlibpath_var=unsupported
12088 inherit_rpath=no
12089 link_all_deplibs=unknown
12090 module_cmds=
12091 module_expsym_cmds=
12092 old_archive_from_new_cmds=
12093 old_archive_from_expsyms_cmds=
12094 thread_safe_flag_spec=
12095 whole_archive_flag_spec=
12096 # include_expsyms should be a list of space-separated symbols to be *always*
12097 # included in the symbol list
12098 include_expsyms=
12099 # exclude_expsyms can be an extended regexp of symbols to exclude
12100 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12101 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12102 # as well as any symbol that contains `d'.
12103 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12104 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12105 # platforms (ab)use it in PIC code, but their linkers get confused if
12106 # the symbol is explicitly referenced. Since portable code cannot
12107 # rely on this symbol name, it's probably fine to never include it in
12108 # preloaded symbol tables.
12109 # Exclude shared library initialization/finalization symbols.
12110 extract_expsyms_cmds=
12112 case $host_os in
12113 cygwin* | mingw* | pw32* | cegcc*)
12114 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12115 # When not using gcc, we currently assume that we are using
12116 # Microsoft Visual C++.
12117 if test "$GCC" != yes; then
12118 with_gnu_ld=no
12121 interix*)
12122 # we just hope/assume this is gcc and not c89 (= MSVC++)
12123 with_gnu_ld=yes
12125 openbsd*)
12126 with_gnu_ld=no
12128 esac
12130 ld_shlibs=yes
12132 # On some targets, GNU ld is compatible enough with the native linker
12133 # that we're better off using the native interface for both.
12134 lt_use_gnu_ld_interface=no
12135 if test "$with_gnu_ld" = yes; then
12136 case $host_os in
12137 aix*)
12138 # The AIX port of GNU ld has always aspired to compatibility
12139 # with the native linker. However, as the warning in the GNU ld
12140 # block says, versions before 2.19.5* couldn't really create working
12141 # shared libraries, regardless of the interface used.
12142 case `$LD -v 2>&1` in
12143 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12144 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12145 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12147 lt_use_gnu_ld_interface=yes
12149 esac
12152 lt_use_gnu_ld_interface=yes
12154 esac
12157 if test "$lt_use_gnu_ld_interface" = yes; then
12158 # If archive_cmds runs LD, not CC, wlarc should be empty
12159 wlarc='${wl}'
12161 # Set some defaults for GNU ld with shared library support. These
12162 # are reset later if shared libraries are not supported. Putting them
12163 # here allows them to be overridden if necessary.
12164 runpath_var=LD_RUN_PATH
12165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12166 export_dynamic_flag_spec='${wl}--export-dynamic'
12167 # ancient GNU ld didn't support --whole-archive et. al.
12168 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12169 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12170 else
12171 whole_archive_flag_spec=
12173 supports_anon_versioning=no
12174 case `$LD -v 2>&1` in
12175 *GNU\ gold*) supports_anon_versioning=yes ;;
12176 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12177 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12178 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12179 *\ 2.11.*) ;; # other 2.11 versions
12180 *) supports_anon_versioning=yes ;;
12181 esac
12183 # See if GNU ld supports shared libraries.
12184 case $host_os in
12185 aix[3-9]*)
12186 # On AIX/PPC, the GNU linker is very broken
12187 if test "$host_cpu" != ia64; then
12188 ld_shlibs=no
12189 cat <<_LT_EOF 1>&2
12191 *** Warning: the GNU linker, at least up to release 2.19, is reported
12192 *** to be unable to reliably create shared libraries on AIX.
12193 *** Therefore, libtool is disabling shared libraries support. If you
12194 *** really care for shared libraries, you may want to install binutils
12195 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12196 *** You will then need to restart the configuration process.
12198 _LT_EOF
12202 amigaos*)
12203 case $host_cpu in
12204 powerpc)
12205 # see comment about AmigaOS4 .so support
12206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12207 archive_expsym_cmds=''
12209 m68k)
12210 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)'
12211 hardcode_libdir_flag_spec='-L$libdir'
12212 hardcode_minus_L=yes
12214 esac
12217 beos*)
12218 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12219 allow_undefined_flag=unsupported
12220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12221 # support --undefined. This deserves some investigation. FIXME
12222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223 else
12224 ld_shlibs=no
12228 cygwin* | mingw* | pw32* | cegcc*)
12229 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12230 # as there is no search path for DLLs.
12231 hardcode_libdir_flag_spec='-L$libdir'
12232 export_dynamic_flag_spec='${wl}--export-all-symbols'
12233 allow_undefined_flag=unsupported
12234 always_export_symbols=no
12235 enable_shared_with_static_runtimes=yes
12236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12238 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12240 # If the export-symbols file already is a .def file (1st line
12241 # is EXPORTS), use it as is; otherwise, prepend...
12242 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12243 cp $export_symbols $output_objdir/$soname.def;
12244 else
12245 echo EXPORTS > $output_objdir/$soname.def;
12246 cat $export_symbols >> $output_objdir/$soname.def;
12248 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12249 else
12250 ld_shlibs=no
12254 haiku*)
12255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256 link_all_deplibs=yes
12259 interix[3-9]*)
12260 hardcode_direct=no
12261 hardcode_shlibpath_var=no
12262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12263 export_dynamic_flag_spec='${wl}-E'
12264 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12265 # Instead, shared libraries are loaded at an image base (0x10000000 by
12266 # default) and relocated if they conflict, which is a slow very memory
12267 # consuming and fragmenting process. To avoid this, we pick a random,
12268 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12269 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12271 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'
12274 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12275 tmp_diet=no
12276 if test "$host_os" = linux-dietlibc; then
12277 case $cc_basename in
12278 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12279 esac
12281 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12282 && test "$tmp_diet" = no
12283 then
12284 tmp_addflag=' $pic_flag'
12285 tmp_sharedflag='-shared'
12286 case $cc_basename,$host_cpu in
12287 pgcc*) # Portland Group C compiler
12288 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'
12289 tmp_addflag=' $pic_flag'
12291 pgf77* | pgf90* | pgf95* | pgfortran*)
12292 # Portland Group f77 and f90 compilers
12293 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'
12294 tmp_addflag=' $pic_flag -Mnomain' ;;
12295 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12296 tmp_addflag=' -i_dynamic' ;;
12297 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12298 tmp_addflag=' -i_dynamic -nofor_main' ;;
12299 ifc* | ifort*) # Intel Fortran compiler
12300 tmp_addflag=' -nofor_main' ;;
12301 lf95*) # Lahey Fortran 8.1
12302 whole_archive_flag_spec=
12303 tmp_sharedflag='--shared' ;;
12304 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12305 tmp_sharedflag='-qmkshrobj'
12306 tmp_addflag= ;;
12307 nvcc*) # Cuda Compiler Driver 2.2
12308 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'
12309 compiler_needs_object=yes
12311 esac
12312 case `$CC -V 2>&1 | sed 5q` in
12313 *Sun\ C*) # Sun C 5.9
12314 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'
12315 compiler_needs_object=yes
12316 tmp_sharedflag='-G' ;;
12317 *Sun\ F*) # Sun Fortran 8.3
12318 tmp_sharedflag='-G' ;;
12319 esac
12320 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322 if test "x$supports_anon_versioning" = xyes; then
12323 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12324 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12325 echo "local: *; };" >> $output_objdir/$libname.ver~
12326 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12329 case $cc_basename in
12330 xlf* | bgf* | bgxlf* | mpixlf*)
12331 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12332 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12333 hardcode_libdir_flag_spec=
12334 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12335 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12336 if test "x$supports_anon_versioning" = xyes; then
12337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12339 echo "local: *; };" >> $output_objdir/$libname.ver~
12340 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12343 esac
12344 else
12345 ld_shlibs=no
12349 netbsd*)
12350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12352 wlarc=
12353 else
12354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12359 solaris*)
12360 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12361 ld_shlibs=no
12362 cat <<_LT_EOF 1>&2
12364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12365 *** create shared libraries on Solaris systems. Therefore, libtool
12366 *** is disabling shared libraries support. We urge you to upgrade GNU
12367 *** binutils to release 2.9.1 or newer. Another option is to modify
12368 *** your PATH or compiler configuration so that the native linker is
12369 *** used, and then restart.
12371 _LT_EOF
12372 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12375 else
12376 ld_shlibs=no
12380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12381 case `$LD -v 2>&1` in
12382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12383 ld_shlibs=no
12384 cat <<_LT_EOF 1>&2
12386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12387 *** reliably create shared libraries on SCO systems. Therefore, libtool
12388 *** is disabling shared libraries support. We urge you to upgrade GNU
12389 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12390 *** your PATH or compiler configuration so that the native linker is
12391 *** used, and then restart.
12393 _LT_EOF
12396 # For security reasons, it is highly recommended that you always
12397 # use absolute paths for naming shared libraries, and exclude the
12398 # DT_RUNPATH tag from executables and libraries. But doing so
12399 # requires that you compile everything twice, which is a pain.
12400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 else
12405 ld_shlibs=no
12408 esac
12411 sunos4*)
12412 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12413 wlarc=
12414 hardcode_direct=yes
12415 hardcode_shlibpath_var=no
12419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12422 else
12423 ld_shlibs=no
12426 esac
12428 if test "$ld_shlibs" = no; then
12429 runpath_var=
12430 hardcode_libdir_flag_spec=
12431 export_dynamic_flag_spec=
12432 whole_archive_flag_spec=
12434 else
12435 # PORTME fill in a description of your system's linker (not GNU ld)
12436 case $host_os in
12437 aix3*)
12438 allow_undefined_flag=unsupported
12439 always_export_symbols=yes
12440 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'
12441 # Note: this linker hardcodes the directories in LIBPATH if there
12442 # are no directories specified by -L.
12443 hardcode_minus_L=yes
12444 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12445 # Neither direct hardcoding nor static linking is supported with a
12446 # broken collect2.
12447 hardcode_direct=unsupported
12451 aix[4-9]*)
12452 if test "$host_cpu" = ia64; then
12453 # On IA64, the linker does run time linking by default, so we don't
12454 # have to do anything special.
12455 aix_use_runtimelinking=no
12456 exp_sym_flag='-Bexport'
12457 no_entry_flag=""
12458 else
12459 # If we're using GNU nm, then we don't want the "-C" option.
12460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12461 # Also, AIX nm treats weak defined symbols like other global
12462 # defined symbols, whereas GNU nm marks them as "W".
12463 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12464 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12465 else
12466 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12468 aix_use_runtimelinking=no
12470 # Test if we are trying to use run time linking or normal
12471 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12472 # need to do runtime linking.
12473 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12474 for ld_flag in $LDFLAGS; do
12475 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12476 aix_use_runtimelinking=yes
12477 break
12479 done
12481 esac
12483 exp_sym_flag='-bexport'
12484 no_entry_flag='-bnoentry'
12487 # When large executables or shared objects are built, AIX ld can
12488 # have problems creating the table of contents. If linking a library
12489 # or program results in "error TOC overflow" add -mminimal-toc to
12490 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12491 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12493 archive_cmds=''
12494 hardcode_direct=yes
12495 hardcode_direct_absolute=yes
12496 hardcode_libdir_separator=':'
12497 link_all_deplibs=yes
12498 file_list_spec='${wl}-f,'
12500 if test "$GCC" = yes; then
12501 case $host_os in aix4.[012]|aix4.[012].*)
12502 # We only want to do this on AIX 4.2 and lower, the check
12503 # below for broken collect2 doesn't work under 4.3+
12504 collect2name=`${CC} -print-prog-name=collect2`
12505 if test -f "$collect2name" &&
12506 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12507 then
12508 # We have reworked collect2
12510 else
12511 # We have old collect2
12512 hardcode_direct=unsupported
12513 # It fails to find uninstalled libraries when the uninstalled
12514 # path is not listed in the libpath. Setting hardcode_minus_L
12515 # to unsupported forces relinking
12516 hardcode_minus_L=yes
12517 hardcode_libdir_flag_spec='-L$libdir'
12518 hardcode_libdir_separator=
12521 esac
12522 shared_flag='-shared'
12523 if test "$aix_use_runtimelinking" = yes; then
12524 shared_flag="$shared_flag "'${wl}-G'
12526 else
12527 # not using gcc
12528 if test "$host_cpu" = ia64; then
12529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12530 # chokes on -Wl,-G. The following line is correct:
12531 shared_flag='-G'
12532 else
12533 if test "$aix_use_runtimelinking" = yes; then
12534 shared_flag='${wl}-G'
12535 else
12536 shared_flag='${wl}-bM:SRE'
12541 export_dynamic_flag_spec='${wl}-bexpall'
12542 # It seems that -bexpall does not export symbols beginning with
12543 # underscore (_), so it is better to generate a list of symbols to export.
12544 always_export_symbols=yes
12545 if test "$aix_use_runtimelinking" = yes; then
12546 # Warning - without using the other runtime loading flags (-brtl),
12547 # -berok will link without error, but may produce a broken library.
12548 allow_undefined_flag='-berok'
12549 # Determine the default libpath from the value encoded in an
12550 # empty executable.
12551 if test x$gcc_no_link = xyes; then
12552 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12558 main ()
12562 return 0;
12564 _ACEOF
12565 if ac_fn_c_try_link "$LINENO"; then :
12567 lt_aix_libpath_sed='
12568 /Import File Strings/,/^$/ {
12569 /^0/ {
12570 s/^0 *\(.*\)$/\1/
12574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12575 # Check for a 64-bit object if we didn't find anything.
12576 if test -z "$aix_libpath"; then
12577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12585 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12586 else
12587 if test "$host_cpu" = ia64; then
12588 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12589 allow_undefined_flag="-z nodefs"
12590 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"
12591 else
12592 # Determine the default libpath from the value encoded in an
12593 # empty executable.
12594 if test x$gcc_no_link = xyes; then
12595 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12601 main ()
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_link "$LINENO"; then :
12610 lt_aix_libpath_sed='
12611 /Import File Strings/,/^$/ {
12612 /^0/ {
12613 s/^0 *\(.*\)$/\1/
12617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12618 # Check for a 64-bit object if we didn't find anything.
12619 if test -z "$aix_libpath"; then
12620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12628 # Warning - without using the other run time loading flags,
12629 # -berok will link without error, but may produce a broken library.
12630 no_undefined_flag=' ${wl}-bernotok'
12631 allow_undefined_flag=' ${wl}-berok'
12632 if test "$with_gnu_ld" = yes; then
12633 # We only use this code for GNU lds that support --whole-archive.
12634 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12635 else
12636 # Exported symbols can be pulled into shared objects from archives
12637 whole_archive_flag_spec='$convenience'
12639 archive_cmds_need_lc=yes
12640 # This is similar to how AIX traditionally builds its shared libraries.
12641 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12646 amigaos*)
12647 case $host_cpu in
12648 powerpc)
12649 # see comment about AmigaOS4 .so support
12650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651 archive_expsym_cmds=''
12653 m68k)
12654 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)'
12655 hardcode_libdir_flag_spec='-L$libdir'
12656 hardcode_minus_L=yes
12658 esac
12661 bsdi[45]*)
12662 export_dynamic_flag_spec=-rdynamic
12665 cygwin* | mingw* | pw32* | cegcc*)
12666 # When not using gcc, we currently assume that we are using
12667 # Microsoft Visual C++.
12668 # hardcode_libdir_flag_spec is actually meaningless, as there is
12669 # no search path for DLLs.
12670 hardcode_libdir_flag_spec=' '
12671 allow_undefined_flag=unsupported
12672 # Tell ltmain to make .lib files, not .a files.
12673 libext=lib
12674 # Tell ltmain to make .dll files, not .so files.
12675 shrext_cmds=".dll"
12676 # FIXME: Setting linknames here is a bad hack.
12677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12678 # The linker will automatically build a .lib file if we build a DLL.
12679 old_archive_from_new_cmds='true'
12680 # FIXME: Should let the user specify the lib program.
12681 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12682 fix_srcfile_path='`cygpath -w "$srcfile"`'
12683 enable_shared_with_static_runtimes=yes
12686 darwin* | rhapsody*)
12690 # Publish an arg to allow the user to select that Darwin host (and target)
12691 # libraries should be given install-names like @rpath/libfoo.dylib. This
12692 # requires that the user of the library then adds an 'rpath' to the DSO that
12693 # needs access.
12694 # NOTE: there are defaults below, for systems that support rpaths. The person
12695 # configuring can override the defaults for any system version that supports
12696 # them - they are, however, forced off for system versions without support.
12697 # Check whether --enable-darwin-at-rpath was given.
12698 if test "${enable_darwin_at_rpath+set}" = set; then :
12699 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12700 # This is not supported before macOS 10.5 / Darwin9.
12701 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12702 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12704 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12705 enable_darwin_at_rpath=no
12707 esac
12709 else
12710 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12711 # As above, before 10.5 / Darwin9 this does not work.
12712 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12713 enable_darwin_at_rpath=no
12716 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12717 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12718 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12719 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12721 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12722 enable_darwin_at_rpath=yes
12724 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12725 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12727 esac
12732 archive_cmds_need_lc=no
12733 hardcode_direct=no
12734 hardcode_automatic=yes
12735 hardcode_shlibpath_var=unsupported
12736 if test "$lt_cv_ld_force_load" = "yes"; then
12737 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\"`'
12738 else
12739 whole_archive_flag_spec=''
12741 link_all_deplibs=yes
12742 allow_undefined_flag="$_lt_dar_allow_undefined"
12743 case $cc_basename in
12744 ifort*) _lt_dar_can_shared=yes ;;
12745 *) _lt_dar_can_shared=$GCC ;;
12746 esac
12747 if test "$_lt_dar_can_shared" = "yes"; then
12748 output_verbose_link_cmd=func_echo_all
12749 _lt_install_name='\$rpath/\$soname'
12750 if test "x$enable_darwin_at_rpath" = "xyes"; then
12751 _lt_install_name='@rpath/\$soname'
12753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
12754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12755 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
12756 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}"
12758 else
12759 ld_shlibs=no
12764 dgux*)
12765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12766 hardcode_libdir_flag_spec='-L$libdir'
12767 hardcode_shlibpath_var=no
12770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12771 # support. Future versions do this automatically, but an explicit c++rt0.o
12772 # does not break anything, and helps significantly (at the cost of a little
12773 # extra space).
12774 freebsd2.2*)
12775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12776 hardcode_libdir_flag_spec='-R$libdir'
12777 hardcode_direct=yes
12778 hardcode_shlibpath_var=no
12781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12782 freebsd2.*)
12783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12784 hardcode_direct=yes
12785 hardcode_minus_L=yes
12786 hardcode_shlibpath_var=no
12789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12790 freebsd* | dragonfly*)
12791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12792 hardcode_libdir_flag_spec='-R$libdir'
12793 hardcode_direct=yes
12794 hardcode_shlibpath_var=no
12797 hpux9*)
12798 if test "$GCC" = yes; then
12799 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12800 else
12801 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12804 hardcode_libdir_separator=:
12805 hardcode_direct=yes
12807 # hardcode_minus_L: Not really in the search PATH,
12808 # but as the default location of the library.
12809 hardcode_minus_L=yes
12810 export_dynamic_flag_spec='${wl}-E'
12813 hpux10*)
12814 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12816 else
12817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12819 if test "$with_gnu_ld" = no; then
12820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12821 hardcode_libdir_flag_spec_ld='+b $libdir'
12822 hardcode_libdir_separator=:
12823 hardcode_direct=yes
12824 hardcode_direct_absolute=yes
12825 export_dynamic_flag_spec='${wl}-E'
12826 # hardcode_minus_L: Not really in the search PATH,
12827 # but as the default location of the library.
12828 hardcode_minus_L=yes
12832 hpux11*)
12833 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12834 case $host_cpu in
12835 hppa*64*)
12836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12838 ia64*)
12839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12844 esac
12845 else
12846 case $host_cpu in
12847 hppa*64*)
12848 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12850 ia64*)
12851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12855 # Older versions of the 11.00 compiler do not understand -b yet
12856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12858 $as_echo_n "checking if $CC understands -b... " >&6; }
12859 if ${lt_cv_prog_compiler__b+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 lt_cv_prog_compiler__b=no
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS -b"
12865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12867 # The linker can only warn and ignore the option if not recognized
12868 # So say no if there are warnings
12869 if test -s conftest.err; then
12870 # Append any errors to the config.log.
12871 cat conftest.err 1>&5
12872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12874 if diff conftest.exp conftest.er2 >/dev/null; then
12875 lt_cv_prog_compiler__b=yes
12877 else
12878 lt_cv_prog_compiler__b=yes
12881 $RM -r conftest*
12882 LDFLAGS="$save_LDFLAGS"
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12886 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12888 if test x"$lt_cv_prog_compiler__b" = xyes; then
12889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12890 else
12891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12895 esac
12897 if test "$with_gnu_ld" = no; then
12898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12899 hardcode_libdir_separator=:
12901 case $host_cpu in
12902 hppa*64*|ia64*)
12903 hardcode_direct=no
12904 hardcode_shlibpath_var=no
12907 hardcode_direct=yes
12908 hardcode_direct_absolute=yes
12909 export_dynamic_flag_spec='${wl}-E'
12911 # hardcode_minus_L: Not really in the search PATH,
12912 # but as the default location of the library.
12913 hardcode_minus_L=yes
12915 esac
12919 irix5* | irix6* | nonstopux*)
12920 if test "$GCC" = yes; then
12921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12922 # Try to use the -exported_symbol ld option, if it does not
12923 # work, assume that -exports_file does not work either and
12924 # implicitly export all symbols.
12925 save_LDFLAGS="$LDFLAGS"
12926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12927 if test x$gcc_no_link = xyes; then
12928 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12932 int foo(void) {}
12933 _ACEOF
12934 if ac_fn_c_try_link "$LINENO"; then :
12935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12938 rm -f core conftest.err conftest.$ac_objext \
12939 conftest$ac_exeext conftest.$ac_ext
12940 LDFLAGS="$save_LDFLAGS"
12941 else
12942 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'
12943 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'
12945 archive_cmds_need_lc='no'
12946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12947 hardcode_libdir_separator=:
12948 inherit_rpath=yes
12949 link_all_deplibs=yes
12952 netbsd*)
12953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12955 else
12956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12958 hardcode_libdir_flag_spec='-R$libdir'
12959 hardcode_direct=yes
12960 hardcode_shlibpath_var=no
12963 newsos6)
12964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12965 hardcode_direct=yes
12966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12967 hardcode_libdir_separator=:
12968 hardcode_shlibpath_var=no
12971 *nto* | *qnx*)
12974 openbsd*)
12975 if test -f /usr/libexec/ld.so; then
12976 hardcode_direct=yes
12977 hardcode_shlibpath_var=no
12978 hardcode_direct_absolute=yes
12979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12983 export_dynamic_flag_spec='${wl}-E'
12984 else
12985 case $host_os in
12986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12988 hardcode_libdir_flag_spec='-R$libdir'
12991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12994 esac
12996 else
12997 ld_shlibs=no
13001 os2*)
13002 hardcode_libdir_flag_spec='-L$libdir'
13003 hardcode_minus_L=yes
13004 allow_undefined_flag=unsupported
13005 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13009 osf3*)
13010 if test "$GCC" = yes; then
13011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13012 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'
13013 else
13014 allow_undefined_flag=' -expect_unresolved \*'
13015 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'
13017 archive_cmds_need_lc='no'
13018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13019 hardcode_libdir_separator=:
13022 osf4* | osf5*) # as osf3* with the addition of -msym flag
13023 if test "$GCC" = yes; then
13024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13025 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13027 else
13028 allow_undefined_flag=' -expect_unresolved \*'
13029 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'
13030 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~
13031 $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'
13033 # Both c and cxx compiler support -rpath directly
13034 hardcode_libdir_flag_spec='-rpath $libdir'
13036 archive_cmds_need_lc='no'
13037 hardcode_libdir_separator=:
13040 solaris*)
13041 no_undefined_flag=' -z defs'
13042 if test "$GCC" = yes; then
13043 wlarc='${wl}'
13044 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13046 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13047 else
13048 case `$CC -V 2>&1` in
13049 *"Compilers 5.0"*)
13050 wlarc=''
13051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13056 wlarc='${wl}'
13057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13061 esac
13063 hardcode_libdir_flag_spec='-R$libdir'
13064 hardcode_shlibpath_var=no
13065 case $host_os in
13066 solaris2.[0-5] | solaris2.[0-5].*) ;;
13068 # The compiler driver will combine and reorder linker options,
13069 # but understands `-z linker_flag'. GCC discards it without `$wl',
13070 # but is careful enough not to reorder.
13071 # Supported since Solaris 2.6 (maybe 2.5.1?)
13072 if test "$GCC" = yes; then
13073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13074 else
13075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13078 esac
13079 link_all_deplibs=yes
13082 sunos4*)
13083 if test "x$host_vendor" = xsequent; then
13084 # Use $CC to link under sequent, because it throws in some extra .o
13085 # files that make .init and .fini sections work.
13086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13087 else
13088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13090 hardcode_libdir_flag_spec='-L$libdir'
13091 hardcode_direct=yes
13092 hardcode_minus_L=yes
13093 hardcode_shlibpath_var=no
13096 sysv4)
13097 case $host_vendor in
13098 sni)
13099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13100 hardcode_direct=yes # is this really true???
13102 siemens)
13103 ## LD is ld it makes a PLAMLIB
13104 ## CC just makes a GrossModule.
13105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13106 reload_cmds='$CC -r -o $output$reload_objs'
13107 hardcode_direct=no
13109 motorola)
13110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13113 esac
13114 runpath_var='LD_RUN_PATH'
13115 hardcode_shlibpath_var=no
13118 sysv4.3*)
13119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13120 hardcode_shlibpath_var=no
13121 export_dynamic_flag_spec='-Bexport'
13124 sysv4*MP*)
13125 if test -d /usr/nec; then
13126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13127 hardcode_shlibpath_var=no
13128 runpath_var=LD_RUN_PATH
13129 hardcode_runpath_var=yes
13130 ld_shlibs=yes
13134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13135 no_undefined_flag='${wl}-z,text'
13136 archive_cmds_need_lc=no
13137 hardcode_shlibpath_var=no
13138 runpath_var='LD_RUN_PATH'
13140 if test "$GCC" = yes; then
13141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13143 else
13144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13149 sysv5* | sco3.2v5* | sco5v6*)
13150 # Note: We can NOT use -z defs as we might desire, because we do not
13151 # link with -lc, and that would cause any symbols used from libc to
13152 # always be unresolved, which means just about no library would
13153 # ever link correctly. If we're not using GNU ld we use -z text
13154 # though, which does catch some bad symbols but isn't as heavy-handed
13155 # as -z defs.
13156 no_undefined_flag='${wl}-z,text'
13157 allow_undefined_flag='${wl}-z,nodefs'
13158 archive_cmds_need_lc=no
13159 hardcode_shlibpath_var=no
13160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13161 hardcode_libdir_separator=':'
13162 link_all_deplibs=yes
13163 export_dynamic_flag_spec='${wl}-Bexport'
13164 runpath_var='LD_RUN_PATH'
13166 if test "$GCC" = yes; then
13167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13169 else
13170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13175 uts4*)
13176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13177 hardcode_libdir_flag_spec='-L$libdir'
13178 hardcode_shlibpath_var=no
13182 ld_shlibs=no
13184 esac
13186 if test x$host_vendor = xsni; then
13187 case $host in
13188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13189 export_dynamic_flag_spec='${wl}-Blargedynsym'
13191 esac
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13196 $as_echo "$ld_shlibs" >&6; }
13197 test "$ld_shlibs" = no && can_build_shared=no
13199 with_gnu_ld=$with_gnu_ld
13216 # Do we need to explicitly link libc?
13218 case "x$archive_cmds_need_lc" in
13219 x|xyes)
13220 # Assume -lc should be added
13221 archive_cmds_need_lc=yes
13223 if test "$enable_shared" = yes && test "$GCC" = yes; then
13224 case $archive_cmds in
13225 *'~'*)
13226 # FIXME: we may have to deal with multi-command sequences.
13228 '$CC '*)
13229 # Test whether the compiler implicitly links with -lc since on some
13230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13231 # to ld, don't add -lc before -lgcc.
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13234 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 $RM conftest*
13238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13241 (eval $ac_compile) 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; } 2>conftest.err; then
13245 soname=conftest
13246 lib=conftest
13247 libobjs=conftest.$ac_objext
13248 deplibs=
13249 wl=$lt_prog_compiler_wl
13250 pic_flag=$lt_prog_compiler_pic
13251 compiler_flags=-v
13252 linker_flags=-v
13253 verstring=
13254 output_objdir=.
13255 libname=conftest
13256 lt_save_allow_undefined_flag=$allow_undefined_flag
13257 allow_undefined_flag=
13258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13260 ac_status=$?
13261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262 test $ac_status = 0; }
13263 then
13264 lt_cv_archive_cmds_need_lc=no
13265 else
13266 lt_cv_archive_cmds_need_lc=yes
13268 allow_undefined_flag=$lt_save_allow_undefined_flag
13269 else
13270 cat conftest.err 1>&5
13272 $RM conftest*
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13277 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13279 esac
13282 esac
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13443 if test "$GCC" = yes; then
13444 case $host_os in
13445 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13446 *) lt_awk_arg="/^libraries:/" ;;
13447 esac
13448 case $host_os in
13449 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13450 *) lt_sed_strip_eq="s,=/,/,g" ;;
13451 esac
13452 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13453 case $lt_search_path_spec in
13454 *\;*)
13455 # if the path contains ";" then we assume it to be the separator
13456 # otherwise default to the standard path separator (i.e. ":") - it is
13457 # assumed that no part of a normal pathname contains ";" but that should
13458 # okay in the real world where ";" in dirpaths is itself problematic.
13459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13464 esac
13465 # Ok, now we have the path, separated by spaces, we can step through it
13466 # and add multilib dir if necessary.
13467 lt_tmp_lt_search_path_spec=
13468 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13469 for lt_sys_path in $lt_search_path_spec; do
13470 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13472 else
13473 test -d "$lt_sys_path" && \
13474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13476 done
13477 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13478 BEGIN {RS=" "; FS="/|\n";} {
13479 lt_foo="";
13480 lt_count=0;
13481 for (lt_i = NF; lt_i > 0; lt_i--) {
13482 if ($lt_i != "" && $lt_i != ".") {
13483 if ($lt_i == "..") {
13484 lt_count++;
13485 } else {
13486 if (lt_count == 0) {
13487 lt_foo="/" $lt_i lt_foo;
13488 } else {
13489 lt_count--;
13494 if (lt_foo != "") { lt_freq[lt_foo]++; }
13495 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13497 # AWK program above erroneously prepends '/' to C:/dos/paths
13498 # for these hosts.
13499 case $host_os in
13500 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13501 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13502 esac
13503 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13504 else
13505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13507 library_names_spec=
13508 libname_spec='lib$name'
13509 soname_spec=
13510 shrext_cmds=".so"
13511 postinstall_cmds=
13512 postuninstall_cmds=
13513 finish_cmds=
13514 finish_eval=
13515 shlibpath_var=
13516 shlibpath_overrides_runpath=unknown
13517 version_type=none
13518 dynamic_linker="$host_os ld.so"
13519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13520 need_lib_prefix=unknown
13521 hardcode_into_libs=no
13523 # when you set need_version to no, make sure it does not cause -set_version
13524 # flags to be left without arguments
13525 need_version=unknown
13527 case $host_os in
13528 aix3*)
13529 version_type=linux
13530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13531 shlibpath_var=LIBPATH
13533 # AIX 3 has no versioning support, so we append a major version to the name.
13534 soname_spec='${libname}${release}${shared_ext}$major'
13537 aix[4-9]*)
13538 version_type=linux
13539 need_lib_prefix=no
13540 need_version=no
13541 hardcode_into_libs=yes
13542 if test "$host_cpu" = ia64; then
13543 # AIX 5 supports IA64
13544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13545 shlibpath_var=LD_LIBRARY_PATH
13546 else
13547 # With GCC up to 2.95.x, collect2 would create an import file
13548 # for dependence libraries. The import file would start with
13549 # the line `#! .'. This would cause the generated library to
13550 # depend on `.', always an invalid library. This was fixed in
13551 # development snapshots of GCC prior to 3.0.
13552 case $host_os in
13553 aix4 | aix4.[01] | aix4.[01].*)
13554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13555 echo ' yes '
13556 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13558 else
13559 can_build_shared=no
13562 esac
13563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13564 # soname into executable. Probably we can add versioning support to
13565 # collect2, so additional links can be useful in future.
13566 if test "$aix_use_runtimelinking" = yes; then
13567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13568 # instead of lib<name>.a to let people know that these are not
13569 # typical AIX shared libraries.
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571 else
13572 # We preserve .a as extension for shared libraries through AIX4.2
13573 # and later when we are not doing run time linking.
13574 library_names_spec='${libname}${release}.a $libname.a'
13575 soname_spec='${libname}${release}${shared_ext}$major'
13577 shlibpath_var=LIBPATH
13581 amigaos*)
13582 case $host_cpu in
13583 powerpc)
13584 # Since July 2007 AmigaOS4 officially supports .so libraries.
13585 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588 m68k)
13589 library_names_spec='$libname.ixlibrary $libname.a'
13590 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13591 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13593 esac
13596 beos*)
13597 library_names_spec='${libname}${shared_ext}'
13598 dynamic_linker="$host_os ld.so"
13599 shlibpath_var=LIBRARY_PATH
13602 bsdi[45]*)
13603 version_type=linux
13604 need_version=no
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13611 # the default ld.so.conf also contains /usr/contrib/lib and
13612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13613 # libtool to hard-code these into programs
13616 cygwin* | mingw* | pw32* | cegcc*)
13617 version_type=windows
13618 shrext_cmds=".dll"
13619 need_version=no
13620 need_lib_prefix=no
13622 case $GCC,$host_os in
13623 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13624 library_names_spec='$libname.dll.a'
13625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13626 postinstall_cmds='base_file=`basename \${file}`~
13627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13628 dldir=$destdir/`dirname \$dlpath`~
13629 test -d \$dldir || mkdir -p \$dldir~
13630 $install_prog $dir/$dlname \$dldir/$dlname~
13631 chmod a+x \$dldir/$dlname~
13632 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13633 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13635 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13636 dlpath=$dir/\$dldll~
13637 $RM \$dlpath'
13638 shlibpath_overrides_runpath=yes
13640 case $host_os in
13641 cygwin*)
13642 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13643 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13647 mingw* | cegcc*)
13648 # MinGW DLLs use traditional 'lib' prefix
13649 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13651 pw32*)
13652 # pw32 DLLs use 'pw' prefix rather than 'lib'
13653 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13655 esac
13659 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13661 esac
13662 dynamic_linker='Win32 ld.exe'
13663 # FIXME: first we should search . and the directory the executable is in
13664 shlibpath_var=PATH
13667 darwin* | rhapsody*)
13668 dynamic_linker="$host_os dyld"
13669 version_type=darwin
13670 need_lib_prefix=no
13671 need_version=no
13672 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13673 soname_spec='${libname}${release}${major}$shared_ext'
13674 shlibpath_overrides_runpath=yes
13675 shlibpath_var=DYLD_LIBRARY_PATH
13676 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13678 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13682 dgux*)
13683 version_type=linux
13684 need_lib_prefix=no
13685 need_version=no
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 shlibpath_var=LD_LIBRARY_PATH
13691 freebsd* | dragonfly*)
13692 # DragonFly does not have aout. When/if they implement a new
13693 # versioning mechanism, adjust this.
13694 if test -x /usr/bin/objformat; then
13695 objformat=`/usr/bin/objformat`
13696 else
13697 case $host_os in
13698 freebsd[23].*) objformat=aout ;;
13699 *) objformat=elf ;;
13700 esac
13702 version_type=freebsd-$objformat
13703 case $version_type in
13704 freebsd-elf*)
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13706 need_version=no
13707 need_lib_prefix=no
13709 freebsd-*)
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13711 need_version=yes
13713 esac
13714 shlibpath_var=LD_LIBRARY_PATH
13715 case $host_os in
13716 freebsd2.*)
13717 shlibpath_overrides_runpath=yes
13719 freebsd3.[01]* | freebsdelf3.[01]*)
13720 shlibpath_overrides_runpath=yes
13721 hardcode_into_libs=yes
13723 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13724 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13725 shlibpath_overrides_runpath=no
13726 hardcode_into_libs=yes
13728 *) # from 4.6 on, and DragonFly
13729 shlibpath_overrides_runpath=yes
13730 hardcode_into_libs=yes
13732 esac
13735 haiku*)
13736 version_type=linux
13737 need_lib_prefix=no
13738 need_version=no
13739 dynamic_linker="$host_os runtime_loader"
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LIBRARY_PATH
13743 shlibpath_overrides_runpath=yes
13744 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13745 hardcode_into_libs=yes
13748 hpux9* | hpux10* | hpux11*)
13749 # Give a soname corresponding to the major version so that dld.sl refuses to
13750 # link against other versions.
13751 version_type=sunos
13752 need_lib_prefix=no
13753 need_version=no
13754 case $host_cpu in
13755 ia64*)
13756 shrext_cmds='.so'
13757 hardcode_into_libs=yes
13758 dynamic_linker="$host_os dld.so"
13759 shlibpath_var=LD_LIBRARY_PATH
13760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 if test "X$HPUX_IA64_MODE" = X32; then
13764 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13765 else
13766 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13770 hppa*64*)
13771 shrext_cmds='.sl'
13772 hardcode_into_libs=yes
13773 dynamic_linker="$host_os dld.sl"
13774 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13777 soname_spec='${libname}${release}${shared_ext}$major'
13778 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13782 shrext_cmds='.sl'
13783 dynamic_linker="$host_os dld.sl"
13784 shlibpath_var=SHLIB_PATH
13785 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13787 soname_spec='${libname}${release}${shared_ext}$major'
13789 esac
13790 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13791 postinstall_cmds='chmod 555 $lib'
13792 # or fails outright, so override atomically:
13793 install_override_mode=555
13796 interix[3-9]*)
13797 version_type=linux
13798 need_lib_prefix=no
13799 need_version=no
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13803 shlibpath_var=LD_LIBRARY_PATH
13804 shlibpath_overrides_runpath=no
13805 hardcode_into_libs=yes
13808 irix5* | irix6* | nonstopux*)
13809 case $host_os in
13810 nonstopux*) version_type=nonstopux ;;
13812 if test "$lt_cv_prog_gnu_ld" = yes; then
13813 version_type=linux
13814 else
13815 version_type=irix
13816 fi ;;
13817 esac
13818 need_lib_prefix=no
13819 need_version=no
13820 soname_spec='${libname}${release}${shared_ext}$major'
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13822 case $host_os in
13823 irix5* | nonstopux*)
13824 libsuff= shlibsuff=
13827 case $LD in # libtool.m4 will add one of these switches to LD
13828 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13829 libsuff= shlibsuff= libmagic=32-bit;;
13830 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13831 libsuff=32 shlibsuff=N32 libmagic=N32;;
13832 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13833 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13834 *) libsuff= shlibsuff= libmagic=never-match;;
13835 esac
13837 esac
13838 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13839 shlibpath_overrides_runpath=no
13840 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13841 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13842 hardcode_into_libs=yes
13845 # No shared lib support for Linux oldld, aout, or coff.
13846 linux*oldld* | linux*aout* | linux*coff*)
13847 dynamic_linker=no
13850 # This must be Linux ELF.
13852 # uclinux* changes (here and below) have been submitted to the libtool
13853 # project, but have not yet been accepted: they are GCC-local changes
13854 # for the time being. (See
13855 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
13856 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
13857 version_type=linux
13858 need_lib_prefix=no
13859 need_version=no
13860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13861 soname_spec='${libname}${release}${shared_ext}$major'
13862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13863 shlibpath_var=LD_LIBRARY_PATH
13864 shlibpath_overrides_runpath=no
13866 # Some binutils ld are patched to set DT_RUNPATH
13867 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 lt_cv_shlibpath_overrides_runpath=no
13871 save_LDFLAGS=$LDFLAGS
13872 save_libdir=$libdir
13873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13875 if test x$gcc_no_link = xyes; then
13876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13882 main ()
13886 return 0;
13888 _ACEOF
13889 if ac_fn_c_try_link "$LINENO"; then :
13890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13891 lt_cv_shlibpath_overrides_runpath=yes
13894 rm -f core conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LDFLAGS=$save_LDFLAGS
13897 libdir=$save_libdir
13901 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13903 # This implies no fast_install, which is unacceptable.
13904 # Some rework will be needed to allow for fast_install
13905 # before this can be enabled.
13906 hardcode_into_libs=yes
13908 # Append ld.so.conf contents to the search path
13909 if test -f /etc/ld.so.conf; then
13910 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' ' '`
13911 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13914 # We used to test for /lib/ld.so.1 and disable shared libraries on
13915 # powerpc, because MkLinux only supported shared libraries with the
13916 # GNU dynamic linker. Since this was broken with cross compilers,
13917 # most powerpc-linux boxes support dynamic linking these days and
13918 # people can always --disable-shared, the test was removed, and we
13919 # assume the GNU/Linux dynamic linker is in use.
13920 dynamic_linker='GNU/Linux ld.so'
13923 netbsd*)
13924 version_type=sunos
13925 need_lib_prefix=no
13926 need_version=no
13927 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13930 dynamic_linker='NetBSD (a.out) ld.so'
13931 else
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13933 soname_spec='${libname}${release}${shared_ext}$major'
13934 dynamic_linker='NetBSD ld.elf_so'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 shlibpath_overrides_runpath=yes
13938 hardcode_into_libs=yes
13941 newsos6)
13942 version_type=linux
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 shlibpath_var=LD_LIBRARY_PATH
13945 shlibpath_overrides_runpath=yes
13948 *nto* | *qnx*)
13949 version_type=qnx
13950 need_lib_prefix=no
13951 need_version=no
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 shlibpath_overrides_runpath=no
13956 hardcode_into_libs=yes
13957 dynamic_linker='ldqnx.so'
13960 openbsd*)
13961 version_type=sunos
13962 sys_lib_dlsearch_path_spec="/usr/lib"
13963 need_lib_prefix=no
13964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13965 case $host_os in
13966 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13967 *) need_version=no ;;
13968 esac
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13971 shlibpath_var=LD_LIBRARY_PATH
13972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13973 case $host_os in
13974 openbsd2.[89] | openbsd2.[89].*)
13975 shlibpath_overrides_runpath=no
13978 shlibpath_overrides_runpath=yes
13980 esac
13981 else
13982 shlibpath_overrides_runpath=yes
13986 os2*)
13987 libname_spec='$name'
13988 shrext_cmds=".dll"
13989 need_lib_prefix=no
13990 library_names_spec='$libname${shared_ext} $libname.a'
13991 dynamic_linker='OS/2 ld.exe'
13992 shlibpath_var=LIBPATH
13995 osf3* | osf4* | osf5*)
13996 version_type=osf
13997 need_lib_prefix=no
13998 need_version=no
13999 soname_spec='${libname}${release}${shared_ext}$major'
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14003 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14006 rdos*)
14007 dynamic_linker=no
14010 solaris*)
14011 version_type=linux
14012 need_lib_prefix=no
14013 need_version=no
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes
14018 hardcode_into_libs=yes
14019 # ldd complains unless libraries are executable
14020 postinstall_cmds='chmod +x $lib'
14023 sunos4*)
14024 version_type=sunos
14025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14027 shlibpath_var=LD_LIBRARY_PATH
14028 shlibpath_overrides_runpath=yes
14029 if test "$with_gnu_ld" = yes; then
14030 need_lib_prefix=no
14032 need_version=yes
14035 sysv4 | sysv4.3*)
14036 version_type=linux
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 case $host_vendor in
14041 sni)
14042 shlibpath_overrides_runpath=no
14043 need_lib_prefix=no
14044 runpath_var=LD_RUN_PATH
14046 siemens)
14047 need_lib_prefix=no
14049 motorola)
14050 need_lib_prefix=no
14051 need_version=no
14052 shlibpath_overrides_runpath=no
14053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14055 esac
14058 sysv4*MP*)
14059 if test -d /usr/nec ;then
14060 version_type=linux
14061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14062 soname_spec='$libname${shared_ext}.$major'
14063 shlibpath_var=LD_LIBRARY_PATH
14067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14068 version_type=freebsd-elf
14069 need_lib_prefix=no
14070 need_version=no
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=yes
14075 hardcode_into_libs=yes
14076 if test "$with_gnu_ld" = yes; then
14077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14078 else
14079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14080 case $host_os in
14081 sco3.2v5*)
14082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14084 esac
14086 sys_lib_dlsearch_path_spec='/usr/lib'
14089 tpf*)
14090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14091 version_type=linux
14092 need_lib_prefix=no
14093 need_version=no
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=no
14097 hardcode_into_libs=yes
14100 uts4*)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 shlibpath_var=LD_LIBRARY_PATH
14107 # Shared libraries for VwWorks, >= 7 only at this stage
14108 # and (fpic) still incompatible with "large" code models
14109 # in a few configurations. Only for RTP mode in any case,
14110 # and upon explicit request at configure time.
14111 vxworks7*)
14112 dynamic_linker=no
14113 case ${with_multisubdir}-${enable_shared} in
14114 *large*)
14116 *mrtp*-yes)
14117 version_type=linux
14118 need_lib_prefix=no
14119 need_version=no
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 dynamic_linker="$host_os module_loader"
14124 esac
14127 dynamic_linker=no
14129 esac
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14131 $as_echo "$dynamic_linker" >&6; }
14132 test "$dynamic_linker" = no && can_build_shared=no
14134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14135 if test "$GCC" = yes; then
14136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14139 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14140 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14142 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14143 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14238 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14239 hardcode_action=
14240 if test -n "$hardcode_libdir_flag_spec" ||
14241 test -n "$runpath_var" ||
14242 test "X$hardcode_automatic" = "Xyes" ; then
14244 # We can hardcode non-existent directories.
14245 if test "$hardcode_direct" != no &&
14246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14247 # have to relink, otherwise we might link with an installed library
14248 # when we should be linking with a yet-to-be-installed one
14249 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14250 test "$hardcode_minus_L" != no; then
14251 # Linking always hardcodes the temporary library directory.
14252 hardcode_action=relink
14253 else
14254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14255 hardcode_action=immediate
14257 else
14258 # We cannot hardcode anything, or else we can only hardcode existing
14259 # directories.
14260 hardcode_action=unsupported
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14263 $as_echo "$hardcode_action" >&6; }
14265 if test "$hardcode_action" = relink ||
14266 test "$inherit_rpath" = yes; then
14267 # Fast installation is not supported
14268 enable_fast_install=no
14269 elif test "$shlibpath_overrides_runpath" = yes ||
14270 test "$enable_shared" = no; then
14271 # Fast installation is not necessary
14272 enable_fast_install=needless
14280 if test "x$enable_dlopen" != xyes; then
14281 enable_dlopen=unknown
14282 enable_dlopen_self=unknown
14283 enable_dlopen_self_static=unknown
14284 else
14285 lt_cv_dlopen=no
14286 lt_cv_dlopen_libs=
14288 case $host_os in
14289 beos*)
14290 lt_cv_dlopen="load_add_on"
14291 lt_cv_dlopen_libs=
14292 lt_cv_dlopen_self=yes
14295 mingw* | pw32* | cegcc*)
14296 lt_cv_dlopen="LoadLibrary"
14297 lt_cv_dlopen_libs=
14300 cygwin*)
14301 lt_cv_dlopen="dlopen"
14302 lt_cv_dlopen_libs=
14305 darwin*)
14306 # if libdl is installed we need to link against it
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14308 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14309 if ${ac_cv_lib_dl_dlopen+:} false; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 ac_check_lib_save_LIBS=$LIBS
14313 LIBS="-ldl $LIBS"
14314 if test x$gcc_no_link = xyes; then
14315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14323 #ifdef __cplusplus
14324 extern "C"
14325 #endif
14326 char dlopen ();
14328 main ()
14330 return dlopen ();
14332 return 0;
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"; then :
14336 ac_cv_lib_dl_dlopen=yes
14337 else
14338 ac_cv_lib_dl_dlopen=no
14340 rm -f core conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14345 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14346 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14348 else
14350 lt_cv_dlopen="dyld"
14351 lt_cv_dlopen_libs=
14352 lt_cv_dlopen_self=yes
14359 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14360 if test "x$ac_cv_func_shl_load" = xyes; then :
14361 lt_cv_dlopen="shl_load"
14362 else
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14364 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14365 if ${ac_cv_lib_dld_shl_load+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 ac_check_lib_save_LIBS=$LIBS
14369 LIBS="-ldld $LIBS"
14370 if test x$gcc_no_link = xyes; then
14371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14376 /* Override any GCC internal prototype to avoid an error.
14377 Use char because int might match the return type of a GCC
14378 builtin and then its argument prototype would still apply. */
14379 #ifdef __cplusplus
14380 extern "C"
14381 #endif
14382 char shl_load ();
14384 main ()
14386 return shl_load ();
14388 return 0;
14390 _ACEOF
14391 if ac_fn_c_try_link "$LINENO"; then :
14392 ac_cv_lib_dld_shl_load=yes
14393 else
14394 ac_cv_lib_dld_shl_load=no
14396 rm -f core conftest.err conftest.$ac_objext \
14397 conftest$ac_exeext conftest.$ac_ext
14398 LIBS=$ac_check_lib_save_LIBS
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14401 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14402 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14403 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14404 else
14405 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14406 if test "x$ac_cv_func_dlopen" = xyes; then :
14407 lt_cv_dlopen="dlopen"
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14411 if ${ac_cv_lib_dl_dlopen+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-ldl $LIBS"
14416 if test x$gcc_no_link = xyes; then
14417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14422 /* Override any GCC internal prototype to avoid an error.
14423 Use char because int might match the return type of a GCC
14424 builtin and then its argument prototype would still apply. */
14425 #ifdef __cplusplus
14426 extern "C"
14427 #endif
14428 char dlopen ();
14430 main ()
14432 return dlopen ();
14434 return 0;
14436 _ACEOF
14437 if ac_fn_c_try_link "$LINENO"; then :
14438 ac_cv_lib_dl_dlopen=yes
14439 else
14440 ac_cv_lib_dl_dlopen=no
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14444 LIBS=$ac_check_lib_save_LIBS
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14447 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14448 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14450 else
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14452 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14453 if ${ac_cv_lib_svld_dlopen+:} false; then :
14454 $as_echo_n "(cached) " >&6
14455 else
14456 ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lsvld $LIBS"
14458 if test x$gcc_no_link = xyes; then
14459 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char dlopen ();
14472 main ()
14474 return dlopen ();
14476 return 0;
14478 _ACEOF
14479 if ac_fn_c_try_link "$LINENO"; then :
14480 ac_cv_lib_svld_dlopen=yes
14481 else
14482 ac_cv_lib_svld_dlopen=no
14484 rm -f core conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14489 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14490 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14492 else
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14494 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14495 if ${ac_cv_lib_dld_dld_link+:} false; then :
14496 $as_echo_n "(cached) " >&6
14497 else
14498 ac_check_lib_save_LIBS=$LIBS
14499 LIBS="-ldld $LIBS"
14500 if test x$gcc_no_link = xyes; then
14501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14506 /* Override any GCC internal prototype to avoid an error.
14507 Use char because int might match the return type of a GCC
14508 builtin and then its argument prototype would still apply. */
14509 #ifdef __cplusplus
14510 extern "C"
14511 #endif
14512 char dld_link ();
14514 main ()
14516 return dld_link ();
14518 return 0;
14520 _ACEOF
14521 if ac_fn_c_try_link "$LINENO"; then :
14522 ac_cv_lib_dld_dld_link=yes
14523 else
14524 ac_cv_lib_dld_dld_link=no
14526 rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext conftest.$ac_ext
14528 LIBS=$ac_check_lib_save_LIBS
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14531 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14532 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14533 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14552 esac
14554 if test "x$lt_cv_dlopen" != xno; then
14555 enable_dlopen=yes
14556 else
14557 enable_dlopen=no
14560 case $lt_cv_dlopen in
14561 dlopen)
14562 save_CPPFLAGS="$CPPFLAGS"
14563 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14565 save_LDFLAGS="$LDFLAGS"
14566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14568 save_LIBS="$LIBS"
14569 LIBS="$lt_cv_dlopen_libs $LIBS"
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14572 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14573 if ${lt_cv_dlopen_self+:} false; then :
14574 $as_echo_n "(cached) " >&6
14575 else
14576 if test "$cross_compiling" = yes; then :
14577 lt_cv_dlopen_self=cross
14578 else
14579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14580 lt_status=$lt_dlunknown
14581 cat > conftest.$ac_ext <<_LT_EOF
14582 #line 14582 "configure"
14583 #include "confdefs.h"
14585 #if HAVE_DLFCN_H
14586 #include <dlfcn.h>
14587 #endif
14589 #include <stdio.h>
14591 #ifdef RTLD_GLOBAL
14592 # define LT_DLGLOBAL RTLD_GLOBAL
14593 #else
14594 # ifdef DL_GLOBAL
14595 # define LT_DLGLOBAL DL_GLOBAL
14596 # else
14597 # define LT_DLGLOBAL 0
14598 # endif
14599 #endif
14601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14602 find out it does not work in some platform. */
14603 #ifndef LT_DLLAZY_OR_NOW
14604 # ifdef RTLD_LAZY
14605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14606 # else
14607 # ifdef DL_LAZY
14608 # define LT_DLLAZY_OR_NOW DL_LAZY
14609 # else
14610 # ifdef RTLD_NOW
14611 # define LT_DLLAZY_OR_NOW RTLD_NOW
14612 # else
14613 # ifdef DL_NOW
14614 # define LT_DLLAZY_OR_NOW DL_NOW
14615 # else
14616 # define LT_DLLAZY_OR_NOW 0
14617 # endif
14618 # endif
14619 # endif
14620 # endif
14621 #endif
14623 /* When -fvisbility=hidden is used, assume the code has been annotated
14624 correspondingly for the symbols needed. */
14625 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14626 void fnord () __attribute__((visibility("default")));
14627 #endif
14629 void fnord () { int i=42; }
14630 int main ()
14632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14633 int status = $lt_dlunknown;
14635 if (self)
14637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14638 else
14640 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14641 else puts (dlerror ());
14643 /* dlclose (self); */
14645 else
14646 puts (dlerror ());
14648 return status;
14650 _LT_EOF
14651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14652 (eval $ac_link) 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14656 (./conftest; exit; ) >&5 2>/dev/null
14657 lt_status=$?
14658 case x$lt_status in
14659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14662 esac
14663 else :
14664 # compilation failed
14665 lt_cv_dlopen_self=no
14668 rm -fr conftest*
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14673 $as_echo "$lt_cv_dlopen_self" >&6; }
14675 if test "x$lt_cv_dlopen_self" = xyes; then
14676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14678 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14679 if ${lt_cv_dlopen_self_static+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 if test "$cross_compiling" = yes; then :
14683 lt_cv_dlopen_self_static=cross
14684 else
14685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14686 lt_status=$lt_dlunknown
14687 cat > conftest.$ac_ext <<_LT_EOF
14688 #line 14688 "configure"
14689 #include "confdefs.h"
14691 #if HAVE_DLFCN_H
14692 #include <dlfcn.h>
14693 #endif
14695 #include <stdio.h>
14697 #ifdef RTLD_GLOBAL
14698 # define LT_DLGLOBAL RTLD_GLOBAL
14699 #else
14700 # ifdef DL_GLOBAL
14701 # define LT_DLGLOBAL DL_GLOBAL
14702 # else
14703 # define LT_DLGLOBAL 0
14704 # endif
14705 #endif
14707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14708 find out it does not work in some platform. */
14709 #ifndef LT_DLLAZY_OR_NOW
14710 # ifdef RTLD_LAZY
14711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14712 # else
14713 # ifdef DL_LAZY
14714 # define LT_DLLAZY_OR_NOW DL_LAZY
14715 # else
14716 # ifdef RTLD_NOW
14717 # define LT_DLLAZY_OR_NOW RTLD_NOW
14718 # else
14719 # ifdef DL_NOW
14720 # define LT_DLLAZY_OR_NOW DL_NOW
14721 # else
14722 # define LT_DLLAZY_OR_NOW 0
14723 # endif
14724 # endif
14725 # endif
14726 # endif
14727 #endif
14729 /* When -fvisbility=hidden is used, assume the code has been annotated
14730 correspondingly for the symbols needed. */
14731 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14732 void fnord () __attribute__((visibility("default")));
14733 #endif
14735 void fnord () { int i=42; }
14736 int main ()
14738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14739 int status = $lt_dlunknown;
14741 if (self)
14743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14744 else
14746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14747 else puts (dlerror ());
14749 /* dlclose (self); */
14751 else
14752 puts (dlerror ());
14754 return status;
14756 _LT_EOF
14757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14758 (eval $ac_link) 2>&5
14759 ac_status=$?
14760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14762 (./conftest; exit; ) >&5 2>/dev/null
14763 lt_status=$?
14764 case x$lt_status in
14765 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14766 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14767 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14768 esac
14769 else :
14770 # compilation failed
14771 lt_cv_dlopen_self_static=no
14774 rm -fr conftest*
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14779 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14782 CPPFLAGS="$save_CPPFLAGS"
14783 LDFLAGS="$save_LDFLAGS"
14784 LIBS="$save_LIBS"
14786 esac
14788 case $lt_cv_dlopen_self in
14789 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14790 *) enable_dlopen_self=unknown ;;
14791 esac
14793 case $lt_cv_dlopen_self_static in
14794 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14795 *) enable_dlopen_self_static=unknown ;;
14796 esac
14815 striplib=
14816 old_striplib=
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14818 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14819 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14821 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14823 $as_echo "yes" >&6; }
14824 else
14825 # FIXME - insert some real tests, host_os isn't really good enough
14826 case $host_os in
14827 darwin*)
14828 if test -n "$STRIP" ; then
14829 striplib="$STRIP -x"
14830 old_striplib="$STRIP -S"
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14832 $as_echo "yes" >&6; }
14833 else
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835 $as_echo "no" >&6; }
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14840 $as_echo "no" >&6; }
14842 esac
14856 # Report which library types will actually be built
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14858 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14860 $as_echo "$can_build_shared" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14863 $as_echo_n "checking whether to build shared libraries... " >&6; }
14864 test "$can_build_shared" = "no" && enable_shared=no
14866 # On AIX, shared libraries and static libraries use the same namespace, and
14867 # are all built from PIC.
14868 case $host_os in
14869 aix3*)
14870 test "$enable_shared" = yes && enable_static=no
14871 if test -n "$RANLIB"; then
14872 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14873 postinstall_cmds='$RANLIB $lib'
14877 aix[4-9]*)
14878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14879 test "$enable_shared" = yes && enable_static=no
14882 esac
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14884 $as_echo "$enable_shared" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14887 $as_echo_n "checking whether to build static libraries... " >&6; }
14888 # Make sure either enable_shared or enable_static is yes.
14889 test "$enable_shared" = yes || enable_static=yes
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14891 $as_echo "$enable_static" >&6; }
14897 ac_ext=c
14898 ac_cpp='$CPP $CPPFLAGS'
14899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14903 CC="$lt_save_CC"
14905 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14906 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14907 (test "X$CXX" != "Xg++"))) ; then
14908 ac_ext=cpp
14909 ac_cpp='$CXXCPP $CPPFLAGS'
14910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14914 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14915 if test -z "$CXXCPP"; then
14916 if ${ac_cv_prog_CXXCPP+:} false; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 # Double quotes because CXXCPP needs to be expanded
14920 for CXXCPP in "$CXX -E" "/lib/cpp"
14922 ac_preproc_ok=false
14923 for ac_cxx_preproc_warn_flag in '' yes
14925 # Use a header file that comes with gcc, so configuring glibc
14926 # with a fresh cross-compiler works.
14927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14928 # <limits.h> exists even on freestanding compilers.
14929 # On the NeXT, cc -E runs the code through the compiler's parser,
14930 # not just through cpp. "Syntax error" is here to catch this case.
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14933 #ifdef __STDC__
14934 # include <limits.h>
14935 #else
14936 # include <assert.h>
14937 #endif
14938 Syntax error
14939 _ACEOF
14940 if ac_fn_cxx_try_cpp "$LINENO"; then :
14942 else
14943 # Broken: fails on valid input.
14944 continue
14946 rm -f conftest.err conftest.i conftest.$ac_ext
14948 # OK, works on sane cases. Now check whether nonexistent headers
14949 # can be detected and how.
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #include <ac_nonexistent.h>
14953 _ACEOF
14954 if ac_fn_cxx_try_cpp "$LINENO"; then :
14955 # Broken: success on invalid input.
14956 continue
14957 else
14958 # Passes both tests.
14959 ac_preproc_ok=:
14960 break
14962 rm -f conftest.err conftest.i conftest.$ac_ext
14964 done
14965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14966 rm -f conftest.i conftest.err conftest.$ac_ext
14967 if $ac_preproc_ok; then :
14968 break
14971 done
14972 ac_cv_prog_CXXCPP=$CXXCPP
14975 CXXCPP=$ac_cv_prog_CXXCPP
14976 else
14977 ac_cv_prog_CXXCPP=$CXXCPP
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14980 $as_echo "$CXXCPP" >&6; }
14981 ac_preproc_ok=false
14982 for ac_cxx_preproc_warn_flag in '' yes
14984 # Use a header file that comes with gcc, so configuring glibc
14985 # with a fresh cross-compiler works.
14986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14987 # <limits.h> exists even on freestanding compilers.
14988 # On the NeXT, cc -E runs the code through the compiler's parser,
14989 # not just through cpp. "Syntax error" is here to catch this case.
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 #ifdef __STDC__
14993 # include <limits.h>
14994 #else
14995 # include <assert.h>
14996 #endif
14997 Syntax error
14998 _ACEOF
14999 if ac_fn_cxx_try_cpp "$LINENO"; then :
15001 else
15002 # Broken: fails on valid input.
15003 continue
15005 rm -f conftest.err conftest.i conftest.$ac_ext
15007 # OK, works on sane cases. Now check whether nonexistent headers
15008 # can be detected and how.
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011 #include <ac_nonexistent.h>
15012 _ACEOF
15013 if ac_fn_cxx_try_cpp "$LINENO"; then :
15014 # Broken: success on invalid input.
15015 continue
15016 else
15017 # Passes both tests.
15018 ac_preproc_ok=:
15019 break
15021 rm -f conftest.err conftest.i conftest.$ac_ext
15023 done
15024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15025 rm -f conftest.i conftest.err conftest.$ac_ext
15026 if $ac_preproc_ok; then :
15028 else
15029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15031 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15032 See \`config.log' for more details" "$LINENO" 5; }
15035 ac_ext=c
15036 ac_cpp='$CPP $CPPFLAGS'
15037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15041 else
15042 _lt_caught_CXX_error=yes
15045 ac_ext=cpp
15046 ac_cpp='$CXXCPP $CPPFLAGS'
15047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15051 archive_cmds_need_lc_CXX=no
15052 allow_undefined_flag_CXX=
15053 always_export_symbols_CXX=no
15054 archive_expsym_cmds_CXX=
15055 compiler_needs_object_CXX=no
15056 export_dynamic_flag_spec_CXX=
15057 hardcode_direct_CXX=no
15058 hardcode_direct_absolute_CXX=no
15059 hardcode_libdir_flag_spec_CXX=
15060 hardcode_libdir_flag_spec_ld_CXX=
15061 hardcode_libdir_separator_CXX=
15062 hardcode_minus_L_CXX=no
15063 hardcode_shlibpath_var_CXX=unsupported
15064 hardcode_automatic_CXX=no
15065 inherit_rpath_CXX=no
15066 module_cmds_CXX=
15067 module_expsym_cmds_CXX=
15068 link_all_deplibs_CXX=unknown
15069 old_archive_cmds_CXX=$old_archive_cmds
15070 reload_flag_CXX=$reload_flag
15071 reload_cmds_CXX=$reload_cmds
15072 no_undefined_flag_CXX=
15073 whole_archive_flag_spec_CXX=
15074 enable_shared_with_static_runtimes_CXX=no
15076 # Source file extension for C++ test sources.
15077 ac_ext=cpp
15079 # Object file extension for compiled C++ test sources.
15080 objext=o
15081 objext_CXX=$objext
15083 # No sense in running all these tests if we already determined that
15084 # the CXX compiler isn't working. Some variables (like enable_shared)
15085 # are currently assumed to apply to all compilers on this platform,
15086 # and will be corrupted by setting them based on a non-working compiler.
15087 if test "$_lt_caught_CXX_error" != yes; then
15088 # Code to be used in simple compile tests
15089 lt_simple_compile_test_code="int some_variable = 0;"
15091 # Code to be used in simple link tests
15092 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15094 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15101 # If no C compiler was specified, use CC.
15102 LTCC=${LTCC-"$CC"}
15104 # If no C compiler flags were specified, use CFLAGS.
15105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15107 # Allow CC to be a program name with arguments.
15108 compiler=$CC
15111 # save warnings/boilerplate of simple test code
15112 ac_outfile=conftest.$ac_objext
15113 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15115 _lt_compiler_boilerplate=`cat conftest.err`
15116 $RM conftest*
15118 ac_outfile=conftest.$ac_objext
15119 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15121 _lt_linker_boilerplate=`cat conftest.err`
15122 $RM -r conftest*
15125 # Allow CC to be a program name with arguments.
15126 lt_save_CC=$CC
15127 lt_save_LD=$LD
15128 lt_save_GCC=$GCC
15129 GCC=$GXX
15130 lt_save_with_gnu_ld=$with_gnu_ld
15131 lt_save_path_LD=$lt_cv_path_LD
15132 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15133 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15134 else
15135 $as_unset lt_cv_prog_gnu_ld
15137 if test -n "${lt_cv_path_LDCXX+set}"; then
15138 lt_cv_path_LD=$lt_cv_path_LDCXX
15139 else
15140 $as_unset lt_cv_path_LD
15142 test -z "${LDCXX+set}" || LD=$LDCXX
15143 CC=${CXX-"c++"}
15144 compiler=$CC
15145 compiler_CXX=$CC
15146 for cc_temp in $compiler""; do
15147 case $cc_temp in
15148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15150 \-*) ;;
15151 *) break;;
15152 esac
15153 done
15154 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15157 if test -n "$compiler"; then
15158 # We don't want -fno-exception when compiling C++ code, so set the
15159 # no_builtin_flag separately
15160 if test "$GXX" = yes; then
15161 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15162 else
15163 lt_prog_compiler_no_builtin_flag_CXX=
15166 if test "$GXX" = yes; then
15167 # Set up default GNU C++ configuration
15171 # Check whether --with-gnu-ld was given.
15172 if test "${with_gnu_ld+set}" = set; then :
15173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15174 else
15175 with_gnu_ld=no
15178 ac_prog=ld
15179 if test "$GCC" = yes; then
15180 # Check if gcc -print-prog-name=ld gives a path.
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15182 $as_echo_n "checking for ld used by $CC... " >&6; }
15183 case $host in
15184 *-*-mingw*)
15185 # gcc leaves a trailing carriage return which upsets mingw
15186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15189 esac
15190 case $ac_prog in
15191 # Accept absolute paths.
15192 [\\/]* | ?:[\\/]*)
15193 re_direlt='/[^/][^/]*/\.\./'
15194 # Canonicalize the pathname of ld
15195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15198 done
15199 test -z "$LD" && LD="$ac_prog"
15202 # If it fails, then pretend we aren't using GCC.
15203 ac_prog=ld
15206 # If it is relative, then search for the first ld in PATH.
15207 with_gnu_ld=unknown
15209 esac
15210 elif test "$with_gnu_ld" = yes; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15212 $as_echo_n "checking for GNU ld... " >&6; }
15213 else
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15215 $as_echo_n "checking for non-GNU ld... " >&6; }
15217 if ${lt_cv_path_LD+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 if test -z "$LD"; then
15221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15222 for ac_dir in $PATH; do
15223 IFS="$lt_save_ifs"
15224 test -z "$ac_dir" && ac_dir=.
15225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15226 lt_cv_path_LD="$ac_dir/$ac_prog"
15227 # Check to see if the program is GNU ld. I'd rather use --version,
15228 # but apparently some variants of GNU ld only accept -v.
15229 # Break only if it was the GNU/non-GNU ld that we prefer.
15230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15231 *GNU* | *'with BFD'*)
15232 test "$with_gnu_ld" != no && break
15235 test "$with_gnu_ld" != yes && break
15237 esac
15239 done
15240 IFS="$lt_save_ifs"
15241 else
15242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15246 LD="$lt_cv_path_LD"
15247 if test -n "$LD"; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15249 $as_echo "$LD" >&6; }
15250 else
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252 $as_echo "no" >&6; }
15254 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15256 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15257 if ${lt_cv_prog_gnu_ld+:} false; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15261 case `$LD -v 2>&1 </dev/null` in
15262 *GNU* | *'with BFD'*)
15263 lt_cv_prog_gnu_ld=yes
15266 lt_cv_prog_gnu_ld=no
15268 esac
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15271 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15272 with_gnu_ld=$lt_cv_prog_gnu_ld
15280 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15281 # archiving commands below assume that GNU ld is being used.
15282 if test "$with_gnu_ld" = yes; then
15283 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 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'
15286 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15289 # If archive_cmds runs LD, not CC, wlarc should be empty
15290 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15291 # investigate it a little bit more. (MM)
15292 wlarc='${wl}'
15294 # ancient GNU ld didn't support --whole-archive et. al.
15295 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15296 $GREP 'no-whole-archive' > /dev/null; then
15297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15298 else
15299 whole_archive_flag_spec_CXX=
15301 else
15302 with_gnu_ld=no
15303 wlarc=
15305 # A generic and very simple default shared library creation
15306 # command for GNU C++ for the case where it uses the native
15307 # linker, instead of GNU ld. If possible, this setting should
15308 # overridden to take advantage of the native linker features on
15309 # the platform it is being used on.
15310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15313 # Commands to make compiler produce verbose output that lists
15314 # what "hidden" libraries, object files and flags are used when
15315 # linking a shared library.
15316 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15318 else
15319 GXX=no
15320 with_gnu_ld=no
15321 wlarc=
15324 # PORTME: fill in a description of your system's C++ link characteristics
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15326 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15327 ld_shlibs_CXX=yes
15328 case $host_os in
15329 aix3*)
15330 # FIXME: insert proper C++ library support
15331 ld_shlibs_CXX=no
15333 aix[4-9]*)
15334 if test "$host_cpu" = ia64; then
15335 # On IA64, the linker does run time linking by default, so we don't
15336 # have to do anything special.
15337 aix_use_runtimelinking=no
15338 exp_sym_flag='-Bexport'
15339 no_entry_flag=""
15340 else
15341 aix_use_runtimelinking=no
15343 # Test if we are trying to use run time linking or normal
15344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15345 # need to do runtime linking.
15346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15347 for ld_flag in $LDFLAGS; do
15348 case $ld_flag in
15349 *-brtl*)
15350 aix_use_runtimelinking=yes
15351 break
15353 esac
15354 done
15356 esac
15358 exp_sym_flag='-bexport'
15359 no_entry_flag='-bnoentry'
15362 # When large executables or shared objects are built, AIX ld can
15363 # have problems creating the table of contents. If linking a library
15364 # or program results in "error TOC overflow" add -mminimal-toc to
15365 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15366 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15368 archive_cmds_CXX=''
15369 hardcode_direct_CXX=yes
15370 hardcode_direct_absolute_CXX=yes
15371 hardcode_libdir_separator_CXX=':'
15372 link_all_deplibs_CXX=yes
15373 file_list_spec_CXX='${wl}-f,'
15375 if test "$GXX" = yes; then
15376 case $host_os in aix4.[012]|aix4.[012].*)
15377 # We only want to do this on AIX 4.2 and lower, the check
15378 # below for broken collect2 doesn't work under 4.3+
15379 collect2name=`${CC} -print-prog-name=collect2`
15380 if test -f "$collect2name" &&
15381 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15382 then
15383 # We have reworked collect2
15385 else
15386 # We have old collect2
15387 hardcode_direct_CXX=unsupported
15388 # It fails to find uninstalled libraries when the uninstalled
15389 # path is not listed in the libpath. Setting hardcode_minus_L
15390 # to unsupported forces relinking
15391 hardcode_minus_L_CXX=yes
15392 hardcode_libdir_flag_spec_CXX='-L$libdir'
15393 hardcode_libdir_separator_CXX=
15395 esac
15396 shared_flag='-shared'
15397 if test "$aix_use_runtimelinking" = yes; then
15398 shared_flag="$shared_flag "'${wl}-G'
15400 else
15401 # not using gcc
15402 if test "$host_cpu" = ia64; then
15403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15404 # chokes on -Wl,-G. The following line is correct:
15405 shared_flag='-G'
15406 else
15407 if test "$aix_use_runtimelinking" = yes; then
15408 shared_flag='${wl}-G'
15409 else
15410 shared_flag='${wl}-bM:SRE'
15415 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15416 # It seems that -bexpall does not export symbols beginning with
15417 # underscore (_), so it is better to generate a list of symbols to
15418 # export.
15419 always_export_symbols_CXX=yes
15420 if test "$aix_use_runtimelinking" = yes; then
15421 # Warning - without using the other runtime loading flags (-brtl),
15422 # -berok will link without error, but may produce a broken library.
15423 allow_undefined_flag_CXX='-berok'
15424 # Determine the default libpath from the value encoded in an empty
15425 # executable.
15426 if test x$gcc_no_link = xyes; then
15427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15433 main ()
15437 return 0;
15439 _ACEOF
15440 if ac_fn_cxx_try_link "$LINENO"; then :
15442 lt_aix_libpath_sed='
15443 /Import File Strings/,/^$/ {
15444 /^0/ {
15445 s/^0 *\(.*\)$/\1/
15449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15450 # Check for a 64-bit object if we didn't find anything.
15451 if test -z "$aix_libpath"; then
15452 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15455 rm -f core conftest.err conftest.$ac_objext \
15456 conftest$ac_exeext conftest.$ac_ext
15457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15461 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15462 else
15463 if test "$host_cpu" = ia64; then
15464 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15465 allow_undefined_flag_CXX="-z nodefs"
15466 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"
15467 else
15468 # Determine the default libpath from the value encoded in an
15469 # empty executable.
15470 if test x$gcc_no_link = xyes; then
15471 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15477 main ()
15481 return 0;
15483 _ACEOF
15484 if ac_fn_cxx_try_link "$LINENO"; then :
15486 lt_aix_libpath_sed='
15487 /Import File Strings/,/^$/ {
15488 /^0/ {
15489 s/^0 *\(.*\)$/\1/
15493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15494 # Check for a 64-bit object if we didn't find anything.
15495 if test -z "$aix_libpath"; then
15496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15499 rm -f core conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
15501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15503 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15504 # Warning - without using the other run time loading flags,
15505 # -berok will link without error, but may produce a broken library.
15506 no_undefined_flag_CXX=' ${wl}-bernotok'
15507 allow_undefined_flag_CXX=' ${wl}-berok'
15508 if test "$with_gnu_ld" = yes; then
15509 # We only use this code for GNU lds that support --whole-archive.
15510 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15511 else
15512 # Exported symbols can be pulled into shared objects from archives
15513 whole_archive_flag_spec_CXX='$convenience'
15515 archive_cmds_need_lc_CXX=yes
15516 # This is similar to how AIX traditionally builds its shared
15517 # libraries.
15518 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15523 beos*)
15524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15525 allow_undefined_flag_CXX=unsupported
15526 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15527 # support --undefined. This deserves some investigation. FIXME
15528 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529 else
15530 ld_shlibs_CXX=no
15534 chorus*)
15535 case $cc_basename in
15537 # FIXME: insert proper C++ library support
15538 ld_shlibs_CXX=no
15540 esac
15543 cygwin* | mingw* | pw32* | cegcc*)
15544 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15545 # as there is no search path for DLLs.
15546 hardcode_libdir_flag_spec_CXX='-L$libdir'
15547 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15548 allow_undefined_flag_CXX=unsupported
15549 always_export_symbols_CXX=no
15550 enable_shared_with_static_runtimes_CXX=yes
15552 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15553 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'
15554 # If the export-symbols file already is a .def file (1st line
15555 # is EXPORTS), use it as is; otherwise, prepend...
15556 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15557 cp $export_symbols $output_objdir/$soname.def;
15558 else
15559 echo EXPORTS > $output_objdir/$soname.def;
15560 cat $export_symbols >> $output_objdir/$soname.def;
15562 $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'
15563 else
15564 ld_shlibs_CXX=no
15567 darwin* | rhapsody*)
15571 # Publish an arg to allow the user to select that Darwin host (and target)
15572 # libraries should be given install-names like @rpath/libfoo.dylib. This
15573 # requires that the user of the library then adds an 'rpath' to the DSO that
15574 # needs access.
15575 # NOTE: there are defaults below, for systems that support rpaths. The person
15576 # configuring can override the defaults for any system version that supports
15577 # them - they are, however, forced off for system versions without support.
15578 # Check whether --enable-darwin-at-rpath was given.
15579 if test "${enable_darwin_at_rpath+set}" = set; then :
15580 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
15581 # This is not supported before macOS 10.5 / Darwin9.
15582 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15583 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
15585 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
15586 enable_darwin_at_rpath=no
15588 esac
15590 else
15591 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15592 # As above, before 10.5 / Darwin9 this does not work.
15593 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15594 enable_darwin_at_rpath=no
15597 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
15598 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
15599 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
15600 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
15602 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
15603 enable_darwin_at_rpath=yes
15605 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
15606 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
15608 esac
15613 archive_cmds_need_lc_CXX=no
15614 hardcode_direct_CXX=no
15615 hardcode_automatic_CXX=yes
15616 hardcode_shlibpath_var_CXX=unsupported
15617 if test "$lt_cv_ld_force_load" = "yes"; then
15618 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\"`'
15619 else
15620 whole_archive_flag_spec_CXX=''
15622 link_all_deplibs_CXX=yes
15623 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15624 case $cc_basename in
15625 ifort*) _lt_dar_can_shared=yes ;;
15626 *) _lt_dar_can_shared=$GCC ;;
15627 esac
15628 if test "$_lt_dar_can_shared" = "yes"; then
15629 output_verbose_link_cmd=func_echo_all
15630 _lt_install_name='\$rpath/\$soname'
15631 if test "x$enable_darwin_at_rpath" = "xyes"; then
15632 _lt_install_name='@rpath/\$soname'
15634 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
15635 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15636 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
15637 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}"
15638 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15639 _lt_install_name='\$rpath/\$soname'
15640 if test "x$enable_darwin_at_rpath" = "xyes"; then
15641 _lt_install_name='@rpath/\$soname'
15643 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
15644 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}"
15647 else
15648 ld_shlibs_CXX=no
15653 dgux*)
15654 case $cc_basename in
15655 ec++*)
15656 # FIXME: insert proper C++ library support
15657 ld_shlibs_CXX=no
15659 ghcx*)
15660 # Green Hills C++ Compiler
15661 # FIXME: insert proper C++ library support
15662 ld_shlibs_CXX=no
15665 # FIXME: insert proper C++ library support
15666 ld_shlibs_CXX=no
15668 esac
15671 freebsd2.*)
15672 # C++ shared libraries reported to be fairly broken before
15673 # switch to ELF
15674 ld_shlibs_CXX=no
15677 freebsd-elf*)
15678 archive_cmds_need_lc_CXX=no
15681 freebsd* | dragonfly*)
15682 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15683 # conventions
15684 ld_shlibs_CXX=yes
15687 gnu*)
15690 haiku*)
15691 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15692 link_all_deplibs_CXX=yes
15695 hpux9*)
15696 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15697 hardcode_libdir_separator_CXX=:
15698 export_dynamic_flag_spec_CXX='${wl}-E'
15699 hardcode_direct_CXX=yes
15700 hardcode_minus_L_CXX=yes # Not in the search PATH,
15701 # but as the default
15702 # location of the library.
15704 case $cc_basename in
15705 CC*)
15706 # FIXME: insert proper C++ library support
15707 ld_shlibs_CXX=no
15709 aCC*)
15710 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15711 # Commands to make compiler produce verbose output that lists
15712 # what "hidden" libraries, object files and flags are used when
15713 # linking a shared library.
15715 # There doesn't appear to be a way to prevent this compiler from
15716 # explicitly linking system object files so we need to strip them
15717 # from the output so that they don't get included in the library
15718 # dependencies.
15719 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"'
15722 if test "$GXX" = yes; then
15723 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15724 else
15725 # FIXME: insert proper C++ library support
15726 ld_shlibs_CXX=no
15729 esac
15732 hpux10*|hpux11*)
15733 if test $with_gnu_ld = no; then
15734 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15735 hardcode_libdir_separator_CXX=:
15737 case $host_cpu in
15738 hppa*64*|ia64*)
15741 export_dynamic_flag_spec_CXX='${wl}-E'
15743 esac
15745 case $host_cpu in
15746 hppa*64*|ia64*)
15747 hardcode_direct_CXX=no
15748 hardcode_shlibpath_var_CXX=no
15751 hardcode_direct_CXX=yes
15752 hardcode_direct_absolute_CXX=yes
15753 hardcode_minus_L_CXX=yes # Not in the search PATH,
15754 # but as the default
15755 # location of the library.
15757 esac
15759 case $cc_basename in
15760 CC*)
15761 # FIXME: insert proper C++ library support
15762 ld_shlibs_CXX=no
15764 aCC*)
15765 case $host_cpu in
15766 hppa*64*)
15767 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15769 ia64*)
15770 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15773 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15775 esac
15776 # Commands to make compiler produce verbose output that lists
15777 # what "hidden" libraries, object files and flags are used when
15778 # linking a shared library.
15780 # There doesn't appear to be a way to prevent this compiler from
15781 # explicitly linking system object files so we need to strip them
15782 # from the output so that they don't get included in the library
15783 # dependencies.
15784 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"'
15787 if test "$GXX" = yes; then
15788 if test $with_gnu_ld = no; then
15789 case $host_cpu in
15790 hppa*64*)
15791 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15793 ia64*)
15794 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15797 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15799 esac
15801 else
15802 # FIXME: insert proper C++ library support
15803 ld_shlibs_CXX=no
15806 esac
15809 interix[3-9]*)
15810 hardcode_direct_CXX=no
15811 hardcode_shlibpath_var_CXX=no
15812 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15813 export_dynamic_flag_spec_CXX='${wl}-E'
15814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15815 # Instead, shared libraries are loaded at an image base (0x10000000 by
15816 # default) and relocated if they conflict, which is a slow very memory
15817 # consuming and fragmenting process. To avoid this, we pick a random,
15818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15820 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'
15821 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'
15823 irix5* | irix6*)
15824 case $cc_basename in
15825 CC*)
15826 # SGI C++
15827 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'
15829 # Archives containing C++ object files must be created using
15830 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15831 # necessary to make sure instantiated templates are included
15832 # in the archive.
15833 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15836 if test "$GXX" = yes; then
15837 if test "$with_gnu_ld" = no; then
15838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15839 else
15840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15843 link_all_deplibs_CXX=yes
15845 esac
15846 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15847 hardcode_libdir_separator_CXX=:
15848 inherit_rpath_CXX=yes
15851 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15852 case $cc_basename in
15853 KCC*)
15854 # Kuck and Associates, Inc. (KAI) C++ Compiler
15856 # KCC will only create a shared library if the output file
15857 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15858 # to its proper name (with version) after linking.
15859 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'
15860 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'
15861 # Commands to make compiler produce verbose output that lists
15862 # what "hidden" libraries, object files and flags are used when
15863 # linking a shared library.
15865 # There doesn't appear to be a way to prevent this compiler from
15866 # explicitly linking system object files so we need to strip them
15867 # from the output so that they don't get included in the library
15868 # dependencies.
15869 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"'
15871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15872 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15874 # Archives containing C++ object files must be created using
15875 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15876 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15878 icpc* | ecpc* )
15879 # Intel C++
15880 with_gnu_ld=yes
15881 # version 8.0 and above of icpc choke on multiply defined symbols
15882 # if we add $predep_objects and $postdep_objects, however 7.1 and
15883 # earlier do not add the objects themselves.
15884 case `$CC -V 2>&1` in
15885 *"Version 7."*)
15886 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15887 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'
15889 *) # Version 8.0 or newer
15890 tmp_idyn=
15891 case $host_cpu in
15892 ia64*) tmp_idyn=' -i_dynamic';;
15893 esac
15894 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15895 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'
15897 esac
15898 archive_cmds_need_lc_CXX=no
15899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15900 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15901 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15903 pgCC* | pgcpp*)
15904 # Portland Group C++ compiler
15905 case `$CC -V` in
15906 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15907 prelink_cmds_CXX='tpldir=Template.dir~
15908 rm -rf $tpldir~
15909 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15910 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15911 old_archive_cmds_CXX='tpldir=Template.dir~
15912 rm -rf $tpldir~
15913 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15914 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15915 $RANLIB $oldlib'
15916 archive_cmds_CXX='tpldir=Template.dir~
15917 rm -rf $tpldir~
15918 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15919 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15920 archive_expsym_cmds_CXX='tpldir=Template.dir~
15921 rm -rf $tpldir~
15922 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15923 $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'
15925 *) # Version 6 and above use weak symbols
15926 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15927 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'
15929 esac
15931 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15933 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'
15935 cxx*)
15936 # Compaq C++
15937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15938 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'
15940 runpath_var=LD_RUN_PATH
15941 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15942 hardcode_libdir_separator_CXX=:
15944 # Commands to make compiler produce verbose output that lists
15945 # what "hidden" libraries, object files and flags are used when
15946 # linking a shared library.
15948 # There doesn't appear to be a way to prevent this compiler from
15949 # explicitly linking system object files so we need to strip them
15950 # from the output so that they don't get included in the library
15951 # dependencies.
15952 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'
15954 xl* | mpixl* | bgxl*)
15955 # IBM XL 8.0 on PPC, with GNU ld
15956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15958 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15959 if test "x$supports_anon_versioning" = xyes; then
15960 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15961 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15962 echo "local: *; };" >> $output_objdir/$libname.ver~
15963 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15967 case `$CC -V 2>&1 | sed 5q` in
15968 *Sun\ C*)
15969 # Sun C++ 5.9
15970 no_undefined_flag_CXX=' -zdefs'
15971 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15972 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'
15973 hardcode_libdir_flag_spec_CXX='-R$libdir'
15974 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'
15975 compiler_needs_object_CXX=yes
15977 # Not sure whether something based on
15978 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15979 # would be better.
15980 output_verbose_link_cmd='func_echo_all'
15982 # Archives containing C++ object files must be created using
15983 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15984 # necessary to make sure instantiated templates are included
15985 # in the archive.
15986 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15988 esac
15990 esac
15993 lynxos*)
15994 # FIXME: insert proper C++ library support
15995 ld_shlibs_CXX=no
15998 m88k*)
15999 # FIXME: insert proper C++ library support
16000 ld_shlibs_CXX=no
16003 mvs*)
16004 case $cc_basename in
16005 cxx*)
16006 # FIXME: insert proper C++ library support
16007 ld_shlibs_CXX=no
16010 # FIXME: insert proper C++ library support
16011 ld_shlibs_CXX=no
16013 esac
16016 netbsd*)
16017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16018 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16019 wlarc=
16020 hardcode_libdir_flag_spec_CXX='-R$libdir'
16021 hardcode_direct_CXX=yes
16022 hardcode_shlibpath_var_CXX=no
16024 # Workaround some broken pre-1.5 toolchains
16025 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16028 *nto* | *qnx*)
16029 ld_shlibs_CXX=yes
16032 openbsd2*)
16033 # C++ shared libraries are fairly broken
16034 ld_shlibs_CXX=no
16037 openbsd*)
16038 if test -f /usr/libexec/ld.so; then
16039 hardcode_direct_CXX=yes
16040 hardcode_shlibpath_var_CXX=no
16041 hardcode_direct_absolute_CXX=yes
16042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16043 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16045 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16046 export_dynamic_flag_spec_CXX='${wl}-E'
16047 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16049 output_verbose_link_cmd=func_echo_all
16050 else
16051 ld_shlibs_CXX=no
16055 osf3* | osf4* | osf5*)
16056 case $cc_basename in
16057 KCC*)
16058 # Kuck and Associates, Inc. (KAI) C++ Compiler
16060 # KCC will only create a shared library if the output file
16061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16062 # to its proper name (with version) after linking.
16063 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'
16065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16066 hardcode_libdir_separator_CXX=:
16068 # Archives containing C++ object files must be created using
16069 # the KAI C++ compiler.
16070 case $host in
16071 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16072 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16073 esac
16075 RCC*)
16076 # Rational C++ 2.4.1
16077 # FIXME: insert proper C++ library support
16078 ld_shlibs_CXX=no
16080 cxx*)
16081 case $host in
16082 osf3*)
16083 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16084 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'
16085 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16088 allow_undefined_flag_CXX=' -expect_unresolved \*'
16089 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'
16090 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16091 echo "-hidden">> $lib.exp~
16092 $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~
16093 $RM $lib.exp'
16094 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16096 esac
16098 hardcode_libdir_separator_CXX=:
16100 # Commands to make compiler produce verbose output that lists
16101 # what "hidden" libraries, object files and flags are used when
16102 # linking a shared library.
16104 # There doesn't appear to be a way to prevent this compiler from
16105 # explicitly linking system object files so we need to strip them
16106 # from the output so that they don't get included in the library
16107 # dependencies.
16108 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"'
16111 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16112 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16113 case $host in
16114 osf3*)
16115 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'
16118 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16120 esac
16122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16123 hardcode_libdir_separator_CXX=:
16125 # Commands to make compiler produce verbose output that lists
16126 # what "hidden" libraries, object files and flags are used when
16127 # linking a shared library.
16128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16130 else
16131 # FIXME: insert proper C++ library support
16132 ld_shlibs_CXX=no
16135 esac
16138 psos*)
16139 # FIXME: insert proper C++ library support
16140 ld_shlibs_CXX=no
16143 sunos4*)
16144 case $cc_basename in
16145 CC*)
16146 # Sun C++ 4.x
16147 # FIXME: insert proper C++ library support
16148 ld_shlibs_CXX=no
16150 lcc*)
16151 # Lucid
16152 # FIXME: insert proper C++ library support
16153 ld_shlibs_CXX=no
16156 # FIXME: insert proper C++ library support
16157 ld_shlibs_CXX=no
16159 esac
16162 solaris*)
16163 case $cc_basename in
16164 CC*)
16165 # Sun C++ 4.2, 5.x and Centerline C++
16166 archive_cmds_need_lc_CXX=yes
16167 no_undefined_flag_CXX=' -zdefs'
16168 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16169 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16170 $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'
16172 hardcode_libdir_flag_spec_CXX='-R$libdir'
16173 hardcode_shlibpath_var_CXX=no
16174 case $host_os in
16175 solaris2.[0-5] | solaris2.[0-5].*) ;;
16177 # The compiler driver will combine and reorder linker options,
16178 # but understands `-z linker_flag'.
16179 # Supported since Solaris 2.6 (maybe 2.5.1?)
16180 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16182 esac
16183 link_all_deplibs_CXX=yes
16185 output_verbose_link_cmd='func_echo_all'
16187 # Archives containing C++ object files must be created using
16188 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16189 # necessary to make sure instantiated templates are included
16190 # in the archive.
16191 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16193 gcx*)
16194 # Green Hills C++ Compiler
16195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16197 # The C++ compiler must be used to create the archive.
16198 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16201 # GNU C++ compiler with Solaris linker
16202 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16203 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16204 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16205 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16207 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16209 # Commands to make compiler produce verbose output that lists
16210 # what "hidden" libraries, object files and flags are used when
16211 # linking a shared library.
16212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16213 else
16214 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16215 # platform.
16216 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16218 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16220 # Commands to make compiler produce verbose output that lists
16221 # what "hidden" libraries, object files and flags are used when
16222 # linking a shared library.
16223 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16226 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16227 case $host_os in
16228 solaris2.[0-5] | solaris2.[0-5].*) ;;
16230 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16232 esac
16235 esac
16238 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16239 no_undefined_flag_CXX='${wl}-z,text'
16240 archive_cmds_need_lc_CXX=no
16241 hardcode_shlibpath_var_CXX=no
16242 runpath_var='LD_RUN_PATH'
16244 case $cc_basename in
16245 CC*)
16246 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 esac
16256 sysv5* | sco3.2v5* | sco5v6*)
16257 # Note: We can NOT use -z defs as we might desire, because we do not
16258 # link with -lc, and that would cause any symbols used from libc to
16259 # always be unresolved, which means just about no library would
16260 # ever link correctly. If we're not using GNU ld we use -z text
16261 # though, which does catch some bad symbols but isn't as heavy-handed
16262 # as -z defs.
16263 no_undefined_flag_CXX='${wl}-z,text'
16264 allow_undefined_flag_CXX='${wl}-z,nodefs'
16265 archive_cmds_need_lc_CXX=no
16266 hardcode_shlibpath_var_CXX=no
16267 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16268 hardcode_libdir_separator_CXX=':'
16269 link_all_deplibs_CXX=yes
16270 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16271 runpath_var='LD_RUN_PATH'
16273 case $cc_basename in
16274 CC*)
16275 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16276 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16277 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16278 '"$old_archive_cmds_CXX"
16279 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16280 '"$reload_cmds_CXX"
16283 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16284 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16286 esac
16289 tandem*)
16290 case $cc_basename in
16291 NCC*)
16292 # NonStop-UX NCC 3.20
16293 # FIXME: insert proper C++ library support
16294 ld_shlibs_CXX=no
16297 # FIXME: insert proper C++ library support
16298 ld_shlibs_CXX=no
16300 esac
16303 vxworks*)
16304 # For VxWorks ports, we assume the use of a GNU linker with
16305 # standard elf conventions.
16306 ld_shlibs_CXX=yes
16310 # FIXME: insert proper C++ library support
16311 ld_shlibs_CXX=no
16313 esac
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16316 $as_echo "$ld_shlibs_CXX" >&6; }
16317 test "$ld_shlibs_CXX" = no && can_build_shared=no
16319 GCC_CXX="$GXX"
16320 LD_CXX="$LD"
16322 ## CAVEAT EMPTOR:
16323 ## There is no encapsulation within the following macros, do not change
16324 ## the running order or otherwise move them around unless you know exactly
16325 ## what you are doing...
16326 # Dependencies to place before and after the object being linked:
16327 predep_objects_CXX=
16328 postdep_objects_CXX=
16329 predeps_CXX=
16330 postdeps_CXX=
16331 compiler_lib_search_path_CXX=
16333 cat > conftest.$ac_ext <<_LT_EOF
16334 class Foo
16336 public:
16337 Foo (void) { a = 0; }
16338 private:
16339 int a;
16341 _LT_EOF
16343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16344 (eval $ac_compile) 2>&5
16345 ac_status=$?
16346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16347 test $ac_status = 0; }; then
16348 # Parse the compiler output and extract the necessary
16349 # objects, libraries and library flags.
16351 # Sentinel used to keep track of whether or not we are before
16352 # the conftest object file.
16353 pre_test_object_deps_done=no
16355 for p in `eval "$output_verbose_link_cmd"`; do
16356 case $p in
16358 -L* | -R* | -l*)
16359 # Some compilers place space between "-{L,R}" and the path.
16360 # Remove the space.
16361 if test $p = "-L" ||
16362 test $p = "-R"; then
16363 prev=$p
16364 continue
16365 else
16366 prev=
16369 if test "$pre_test_object_deps_done" = no; then
16370 case $p in
16371 -L* | -R*)
16372 # Internal compiler library paths should come after those
16373 # provided the user. The postdeps already come after the
16374 # user supplied libs so there is no need to process them.
16375 if test -z "$compiler_lib_search_path_CXX"; then
16376 compiler_lib_search_path_CXX="${prev}${p}"
16377 else
16378 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16381 # The "-l" case would never come before the object being
16382 # linked, so don't bother handling this case.
16383 esac
16384 else
16385 if test -z "$postdeps_CXX"; then
16386 postdeps_CXX="${prev}${p}"
16387 else
16388 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16393 *.$objext)
16394 # This assumes that the test object file only shows up
16395 # once in the compiler output.
16396 if test "$p" = "conftest.$objext"; then
16397 pre_test_object_deps_done=yes
16398 continue
16401 if test "$pre_test_object_deps_done" = no; then
16402 if test -z "$predep_objects_CXX"; then
16403 predep_objects_CXX="$p"
16404 else
16405 predep_objects_CXX="$predep_objects_CXX $p"
16407 else
16408 if test -z "$postdep_objects_CXX"; then
16409 postdep_objects_CXX="$p"
16410 else
16411 postdep_objects_CXX="$postdep_objects_CXX $p"
16416 *) ;; # Ignore the rest.
16418 esac
16419 done
16421 # Clean up.
16422 rm -f a.out a.exe
16423 else
16424 echo "libtool.m4: error: problem compiling CXX test program"
16427 $RM -f confest.$objext
16429 # PORTME: override above test on systems where it is broken
16430 case $host_os in
16431 interix[3-9]*)
16432 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16433 # hack all around it, let's just trust "g++" to DTRT.
16434 predep_objects_CXX=
16435 postdep_objects_CXX=
16436 postdeps_CXX=
16439 linux*)
16440 case `$CC -V 2>&1 | sed 5q` in
16441 *Sun\ C*)
16442 # Sun C++ 5.9
16444 # The more standards-conforming stlport4 library is
16445 # incompatible with the Cstd library. Avoid specifying
16446 # it if it's in CXXFLAGS. Ignore libCrun as
16447 # -library=stlport4 depends on it.
16448 case " $CXX $CXXFLAGS " in
16449 *" -library=stlport4 "*)
16450 solaris_use_stlport4=yes
16452 esac
16454 if test "$solaris_use_stlport4" != yes; then
16455 postdeps_CXX='-library=Cstd -library=Crun'
16458 esac
16461 solaris*)
16462 case $cc_basename in
16463 CC*)
16464 # The more standards-conforming stlport4 library is
16465 # incompatible with the Cstd library. Avoid specifying
16466 # it if it's in CXXFLAGS. Ignore libCrun as
16467 # -library=stlport4 depends on it.
16468 case " $CXX $CXXFLAGS " in
16469 *" -library=stlport4 "*)
16470 solaris_use_stlport4=yes
16472 esac
16474 # Adding this requires a known-good setup of shared libraries for
16475 # Sun compiler versions before 5.6, else PIC objects from an old
16476 # archive will be linked into the output, leading to subtle bugs.
16477 if test "$solaris_use_stlport4" != yes; then
16478 postdeps_CXX='-library=Cstd -library=Crun'
16481 esac
16483 esac
16486 case " $postdeps_CXX " in
16487 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16488 esac
16489 compiler_lib_search_dirs_CXX=
16490 if test -n "${compiler_lib_search_path_CXX}"; then
16491 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16524 lt_prog_compiler_wl_CXX=
16525 lt_prog_compiler_pic_CXX=
16526 lt_prog_compiler_static_CXX=
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16531 # C++ specific cases for pic, static, wl, etc.
16532 if test "$GXX" = yes; then
16533 lt_prog_compiler_wl_CXX='-Wl,'
16534 lt_prog_compiler_static_CXX='-static'
16536 case $host_os in
16537 aix*)
16538 # All AIX code is PIC.
16539 if test "$host_cpu" = ia64; then
16540 # AIX 5 now supports IA64 processor
16541 lt_prog_compiler_static_CXX='-Bstatic'
16543 lt_prog_compiler_pic_CXX='-fPIC'
16546 amigaos*)
16547 case $host_cpu in
16548 powerpc)
16549 # see comment about AmigaOS4 .so support
16550 lt_prog_compiler_pic_CXX='-fPIC'
16552 m68k)
16553 # FIXME: we need at least 68020 code to build shared libraries, but
16554 # adding the `-m68020' flag to GCC prevents building anything better,
16555 # like `-m68040'.
16556 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16558 esac
16561 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16562 # PIC is the default for these OSes.
16564 mingw* | cygwin* | os2* | pw32* | cegcc*)
16565 # This hack is so that the source file can tell whether it is being
16566 # built for inclusion in a dll (and should export symbols for example).
16567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16568 # (--disable-auto-import) libraries
16569 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16571 darwin* | rhapsody*)
16572 # PIC is the default on this platform
16573 # Common symbols not allowed in MH_DYLIB files
16574 lt_prog_compiler_pic_CXX='-fno-common'
16576 *djgpp*)
16577 # DJGPP does not support shared libraries at all
16578 lt_prog_compiler_pic_CXX=
16580 haiku*)
16581 # PIC is the default for Haiku.
16582 # The "-static" flag exists, but is broken.
16583 lt_prog_compiler_static_CXX=
16585 interix[3-9]*)
16586 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16587 # Instead, we relocate shared libraries at runtime.
16589 sysv4*MP*)
16590 if test -d /usr/nec; then
16591 lt_prog_compiler_pic_CXX=-Kconform_pic
16594 hpux*)
16595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16597 # sets the default TLS model and affects inlining.
16598 case $host_cpu in
16599 hppa*64*)
16602 lt_prog_compiler_pic_CXX='-fPIC'
16604 esac
16606 *qnx* | *nto*)
16607 # QNX uses GNU C++, but need to define -shared option too, otherwise
16608 # it will coredump.
16609 lt_prog_compiler_pic_CXX='-fPIC -shared'
16612 lt_prog_compiler_pic_CXX='-fPIC'
16614 esac
16615 else
16616 case $host_os in
16617 aix[4-9]*)
16618 # All AIX code is PIC.
16619 if test "$host_cpu" = ia64; then
16620 # AIX 5 now supports IA64 processor
16621 lt_prog_compiler_static_CXX='-Bstatic'
16622 else
16623 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16626 chorus*)
16627 case $cc_basename in
16628 cxch68*)
16629 # Green Hills C++ Compiler
16630 # _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"
16632 esac
16634 dgux*)
16635 case $cc_basename in
16636 ec++*)
16637 lt_prog_compiler_pic_CXX='-KPIC'
16639 ghcx*)
16640 # Green Hills C++ Compiler
16641 lt_prog_compiler_pic_CXX='-pic'
16645 esac
16647 freebsd* | dragonfly*)
16648 # FreeBSD uses GNU C++
16650 hpux9* | hpux10* | hpux11*)
16651 case $cc_basename in
16652 CC*)
16653 lt_prog_compiler_wl_CXX='-Wl,'
16654 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16655 if test "$host_cpu" != ia64; then
16656 lt_prog_compiler_pic_CXX='+Z'
16659 aCC*)
16660 lt_prog_compiler_wl_CXX='-Wl,'
16661 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16662 case $host_cpu in
16663 hppa*64*|ia64*)
16664 # +Z the default
16667 lt_prog_compiler_pic_CXX='+Z'
16669 esac
16673 esac
16675 interix*)
16676 # This is c89, which is MS Visual C++ (no shared libs)
16677 # Anyone wants to do a port?
16679 irix5* | irix6* | nonstopux*)
16680 case $cc_basename in
16681 CC*)
16682 lt_prog_compiler_wl_CXX='-Wl,'
16683 lt_prog_compiler_static_CXX='-non_shared'
16684 # CC pic flag -KPIC is the default.
16688 esac
16690 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16691 case $cc_basename in
16692 KCC*)
16693 # KAI C++ Compiler
16694 lt_prog_compiler_wl_CXX='--backend -Wl,'
16695 lt_prog_compiler_pic_CXX='-fPIC'
16697 ecpc* )
16698 # old Intel C++ for x86_64 which still supported -KPIC.
16699 lt_prog_compiler_wl_CXX='-Wl,'
16700 lt_prog_compiler_pic_CXX='-KPIC'
16701 lt_prog_compiler_static_CXX='-static'
16703 icpc* )
16704 # Intel C++, used to be incompatible with GCC.
16705 # ICC 10 doesn't accept -KPIC any more.
16706 lt_prog_compiler_wl_CXX='-Wl,'
16707 lt_prog_compiler_pic_CXX='-fPIC'
16708 lt_prog_compiler_static_CXX='-static'
16710 pgCC* | pgcpp*)
16711 # Portland Group C++ compiler
16712 lt_prog_compiler_wl_CXX='-Wl,'
16713 lt_prog_compiler_pic_CXX='-fpic'
16714 lt_prog_compiler_static_CXX='-Bstatic'
16716 cxx*)
16717 # Compaq C++
16718 # Make sure the PIC flag is empty. It appears that all Alpha
16719 # Linux and Compaq Tru64 Unix objects are PIC.
16720 lt_prog_compiler_pic_CXX=
16721 lt_prog_compiler_static_CXX='-non_shared'
16723 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16724 # IBM XL 8.0, 9.0 on PPC and BlueGene
16725 lt_prog_compiler_wl_CXX='-Wl,'
16726 lt_prog_compiler_pic_CXX='-qpic'
16727 lt_prog_compiler_static_CXX='-qstaticlink'
16730 case `$CC -V 2>&1 | sed 5q` in
16731 *Sun\ C*)
16732 # Sun C++ 5.9
16733 lt_prog_compiler_pic_CXX='-KPIC'
16734 lt_prog_compiler_static_CXX='-Bstatic'
16735 lt_prog_compiler_wl_CXX='-Qoption ld '
16737 esac
16739 esac
16741 lynxos*)
16743 m88k*)
16745 mvs*)
16746 case $cc_basename in
16747 cxx*)
16748 lt_prog_compiler_pic_CXX='-W c,exportall'
16752 esac
16754 netbsd*)
16756 *qnx* | *nto*)
16757 # QNX uses GNU C++, but need to define -shared option too, otherwise
16758 # it will coredump.
16759 lt_prog_compiler_pic_CXX='-fPIC -shared'
16761 osf3* | osf4* | osf5*)
16762 case $cc_basename in
16763 KCC*)
16764 lt_prog_compiler_wl_CXX='--backend -Wl,'
16766 RCC*)
16767 # Rational C++ 2.4.1
16768 lt_prog_compiler_pic_CXX='-pic'
16770 cxx*)
16771 # Digital/Compaq C++
16772 lt_prog_compiler_wl_CXX='-Wl,'
16773 # Make sure the PIC flag is empty. It appears that all Alpha
16774 # Linux and Compaq Tru64 Unix objects are PIC.
16775 lt_prog_compiler_pic_CXX=
16776 lt_prog_compiler_static_CXX='-non_shared'
16780 esac
16782 psos*)
16784 solaris*)
16785 case $cc_basename in
16786 CC*)
16787 # Sun C++ 4.2, 5.x and Centerline C++
16788 lt_prog_compiler_pic_CXX='-KPIC'
16789 lt_prog_compiler_static_CXX='-Bstatic'
16790 lt_prog_compiler_wl_CXX='-Qoption ld '
16792 gcx*)
16793 # Green Hills C++ Compiler
16794 lt_prog_compiler_pic_CXX='-PIC'
16798 esac
16800 sunos4*)
16801 case $cc_basename in
16802 CC*)
16803 # Sun C++ 4.x
16804 lt_prog_compiler_pic_CXX='-pic'
16805 lt_prog_compiler_static_CXX='-Bstatic'
16807 lcc*)
16808 # Lucid
16809 lt_prog_compiler_pic_CXX='-pic'
16813 esac
16815 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16816 case $cc_basename in
16817 CC*)
16818 lt_prog_compiler_wl_CXX='-Wl,'
16819 lt_prog_compiler_pic_CXX='-KPIC'
16820 lt_prog_compiler_static_CXX='-Bstatic'
16822 esac
16824 tandem*)
16825 case $cc_basename in
16826 NCC*)
16827 # NonStop-UX NCC 3.20
16828 lt_prog_compiler_pic_CXX='-KPIC'
16832 esac
16834 vxworks*)
16837 lt_prog_compiler_can_build_shared_CXX=no
16839 esac
16842 case $host_os in
16843 # For platforms which do not support PIC, -DPIC is meaningless:
16844 *djgpp*)
16845 lt_prog_compiler_pic_CXX=
16848 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16850 esac
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16852 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16857 # Check to make sure the PIC flag actually works.
16859 if test -n "$lt_prog_compiler_pic_CXX"; then
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16861 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16862 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16863 $as_echo_n "(cached) " >&6
16864 else
16865 lt_cv_prog_compiler_pic_works_CXX=no
16866 ac_outfile=conftest.$ac_objext
16867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16868 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16869 # Insert the option either (1) after the last *FLAGS variable, or
16870 # (2) before a word containing "conftest.", or (3) at the end.
16871 # Note that $ac_compile itself does not contain backslashes and begins
16872 # with a dollar sign (not a hyphen), so the echo should work correctly.
16873 # The option is referenced via a variable to avoid confusing sed.
16874 lt_compile=`echo "$ac_compile" | $SED \
16875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16877 -e 's:$: $lt_compiler_flag:'`
16878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16879 (eval "$lt_compile" 2>conftest.err)
16880 ac_status=$?
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 if (exit $ac_status) && test -s "$ac_outfile"; then
16884 # The compiler can only warn and ignore the option if not recognized
16885 # So say no if there are warnings other than the usual output.
16886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16889 lt_cv_prog_compiler_pic_works_CXX=yes
16892 $RM conftest*
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16896 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16898 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16899 case $lt_prog_compiler_pic_CXX in
16900 "" | " "*) ;;
16901 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16902 esac
16903 else
16904 lt_prog_compiler_pic_CXX=
16905 lt_prog_compiler_can_build_shared_CXX=no
16913 # Check to make sure the static flag actually works.
16915 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16917 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16918 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16919 $as_echo_n "(cached) " >&6
16920 else
16921 lt_cv_prog_compiler_static_works_CXX=no
16922 save_LDFLAGS="$LDFLAGS"
16923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16924 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16926 # The linker can only warn and ignore the option if not recognized
16927 # So say no if there are warnings
16928 if test -s conftest.err; then
16929 # Append any errors to the config.log.
16930 cat conftest.err 1>&5
16931 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16933 if diff conftest.exp conftest.er2 >/dev/null; then
16934 lt_cv_prog_compiler_static_works_CXX=yes
16936 else
16937 lt_cv_prog_compiler_static_works_CXX=yes
16940 $RM -r conftest*
16941 LDFLAGS="$save_LDFLAGS"
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16945 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16947 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16949 else
16950 lt_prog_compiler_static_CXX=
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16958 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 lt_cv_prog_compiler_c_o_CXX=no
16962 $RM -r conftest 2>/dev/null
16963 mkdir conftest
16964 cd conftest
16965 mkdir out
16966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16968 lt_compiler_flag="-o out/conftest2.$ac_objext"
16969 # Insert the option either (1) after the last *FLAGS variable, or
16970 # (2) before a word containing "conftest.", or (3) at the end.
16971 # Note that $ac_compile itself does not contain backslashes and begins
16972 # with a dollar sign (not a hyphen), so the echo should work correctly.
16973 lt_compile=`echo "$ac_compile" | $SED \
16974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16976 -e 's:$: $lt_compiler_flag:'`
16977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16978 (eval "$lt_compile" 2>out/conftest.err)
16979 ac_status=$?
16980 cat out/conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16983 then
16984 # The compiler can only warn and ignore the option if not recognized
16985 # So say no if there are warnings
16986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16989 lt_cv_prog_compiler_c_o_CXX=yes
16992 chmod u+w . 2>&5
16993 $RM conftest*
16994 # SGI C++ compiler will create directory out/ii_files/ for
16995 # template instantiation
16996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16997 $RM out/* && rmdir out
16998 cd ..
16999 $RM -r conftest
17000 $RM conftest*
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17004 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17010 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17011 $as_echo_n "(cached) " >&6
17012 else
17013 lt_cv_prog_compiler_c_o_CXX=no
17014 $RM -r conftest 2>/dev/null
17015 mkdir conftest
17016 cd conftest
17017 mkdir out
17018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17020 lt_compiler_flag="-o out/conftest2.$ac_objext"
17021 # Insert the option either (1) after the last *FLAGS variable, or
17022 # (2) before a word containing "conftest.", or (3) at the end.
17023 # Note that $ac_compile itself does not contain backslashes and begins
17024 # with a dollar sign (not a hyphen), so the echo should work correctly.
17025 lt_compile=`echo "$ac_compile" | $SED \
17026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17028 -e 's:$: $lt_compiler_flag:'`
17029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17030 (eval "$lt_compile" 2>out/conftest.err)
17031 ac_status=$?
17032 cat out/conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17035 then
17036 # The compiler can only warn and ignore the option if not recognized
17037 # So say no if there are warnings
17038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17041 lt_cv_prog_compiler_c_o_CXX=yes
17044 chmod u+w . 2>&5
17045 $RM conftest*
17046 # SGI C++ compiler will create directory out/ii_files/ for
17047 # template instantiation
17048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17049 $RM out/* && rmdir out
17050 cd ..
17051 $RM -r conftest
17052 $RM conftest*
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17061 hard_links="nottested"
17062 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17063 # do not overwrite the value of need_locks provided by the user
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17065 $as_echo_n "checking if we can lock with hard links... " >&6; }
17066 hard_links=yes
17067 $RM conftest*
17068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17069 touch conftest.a
17070 ln conftest.a conftest.b 2>&5 || hard_links=no
17071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17073 $as_echo "$hard_links" >&6; }
17074 if test "$hard_links" = no; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17077 need_locks=warn
17079 else
17080 need_locks=no
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17086 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17088 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17089 case $host_os in
17090 aix[4-9]*)
17091 # If we're using GNU nm, then we don't want the "-C" option.
17092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17093 # Also, AIX nm treats weak defined symbols like other global defined
17094 # symbols, whereas GNU nm marks them as "W".
17095 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17096 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17097 else
17098 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17101 pw32*)
17102 export_symbols_cmds_CXX="$ltdll_cmds"
17104 cygwin* | mingw* | cegcc*)
17105 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17110 esac
17111 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17114 $as_echo "$ld_shlibs_CXX" >&6; }
17115 test "$ld_shlibs_CXX" = no && can_build_shared=no
17117 with_gnu_ld_CXX=$with_gnu_ld
17125 # Do we need to explicitly link libc?
17127 case "x$archive_cmds_need_lc_CXX" in
17128 x|xyes)
17129 # Assume -lc should be added
17130 archive_cmds_need_lc_CXX=yes
17132 if test "$enable_shared" = yes && test "$GCC" = yes; then
17133 case $archive_cmds_CXX in
17134 *'~'*)
17135 # FIXME: we may have to deal with multi-command sequences.
17137 '$CC '*)
17138 # Test whether the compiler implicitly links with -lc since on some
17139 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17140 # to ld, don't add -lc before -lgcc.
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17142 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17143 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 $RM conftest*
17147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17150 (eval $ac_compile) 2>&5
17151 ac_status=$?
17152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17153 test $ac_status = 0; } 2>conftest.err; then
17154 soname=conftest
17155 lib=conftest
17156 libobjs=conftest.$ac_objext
17157 deplibs=
17158 wl=$lt_prog_compiler_wl_CXX
17159 pic_flag=$lt_prog_compiler_pic_CXX
17160 compiler_flags=-v
17161 linker_flags=-v
17162 verstring=
17163 output_objdir=.
17164 libname=conftest
17165 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17166 allow_undefined_flag_CXX=
17167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17168 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17169 ac_status=$?
17170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17171 test $ac_status = 0; }
17172 then
17173 lt_cv_archive_cmds_need_lc_CXX=no
17174 else
17175 lt_cv_archive_cmds_need_lc_CXX=yes
17177 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17178 else
17179 cat conftest.err 1>&5
17181 $RM conftest*
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17185 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17186 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17188 esac
17191 esac
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17257 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17259 library_names_spec=
17260 libname_spec='lib$name'
17261 soname_spec=
17262 shrext_cmds=".so"
17263 postinstall_cmds=
17264 postuninstall_cmds=
17265 finish_cmds=
17266 finish_eval=
17267 shlibpath_var=
17268 shlibpath_overrides_runpath=unknown
17269 version_type=none
17270 dynamic_linker="$host_os ld.so"
17271 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17272 need_lib_prefix=unknown
17273 hardcode_into_libs=no
17275 # when you set need_version to no, make sure it does not cause -set_version
17276 # flags to be left without arguments
17277 need_version=unknown
17279 case $host_os in
17280 aix3*)
17281 version_type=linux
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17283 shlibpath_var=LIBPATH
17285 # AIX 3 has no versioning support, so we append a major version to the name.
17286 soname_spec='${libname}${release}${shared_ext}$major'
17289 aix[4-9]*)
17290 version_type=linux
17291 need_lib_prefix=no
17292 need_version=no
17293 hardcode_into_libs=yes
17294 if test "$host_cpu" = ia64; then
17295 # AIX 5 supports IA64
17296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 else
17299 # With GCC up to 2.95.x, collect2 would create an import file
17300 # for dependence libraries. The import file would start with
17301 # the line `#! .'. This would cause the generated library to
17302 # depend on `.', always an invalid library. This was fixed in
17303 # development snapshots of GCC prior to 3.0.
17304 case $host_os in
17305 aix4 | aix4.[01] | aix4.[01].*)
17306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17307 echo ' yes '
17308 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17310 else
17311 can_build_shared=no
17314 esac
17315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17316 # soname into executable. Probably we can add versioning support to
17317 # collect2, so additional links can be useful in future.
17318 if test "$aix_use_runtimelinking" = yes; then
17319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17320 # instead of lib<name>.a to let people know that these are not
17321 # typical AIX shared libraries.
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 else
17324 # We preserve .a as extension for shared libraries through AIX4.2
17325 # and later when we are not doing run time linking.
17326 library_names_spec='${libname}${release}.a $libname.a'
17327 soname_spec='${libname}${release}${shared_ext}$major'
17329 shlibpath_var=LIBPATH
17333 amigaos*)
17334 case $host_cpu in
17335 powerpc)
17336 # Since July 2007 AmigaOS4 officially supports .so libraries.
17337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 m68k)
17341 library_names_spec='$libname.ixlibrary $libname.a'
17342 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17343 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17345 esac
17348 beos*)
17349 library_names_spec='${libname}${shared_ext}'
17350 dynamic_linker="$host_os ld.so"
17351 shlibpath_var=LIBRARY_PATH
17354 bsdi[45]*)
17355 version_type=linux
17356 need_version=no
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17360 shlibpath_var=LD_LIBRARY_PATH
17361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17363 # the default ld.so.conf also contains /usr/contrib/lib and
17364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17365 # libtool to hard-code these into programs
17368 cygwin* | mingw* | pw32* | cegcc*)
17369 version_type=windows
17370 shrext_cmds=".dll"
17371 need_version=no
17372 need_lib_prefix=no
17374 case $GCC,$host_os in
17375 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17376 library_names_spec='$libname.dll.a'
17377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17378 postinstall_cmds='base_file=`basename \${file}`~
17379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17380 dldir=$destdir/`dirname \$dlpath`~
17381 test -d \$dldir || mkdir -p \$dldir~
17382 $install_prog $dir/$dlname \$dldir/$dlname~
17383 chmod a+x \$dldir/$dlname~
17384 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17385 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17388 dlpath=$dir/\$dldll~
17389 $RM \$dlpath'
17390 shlibpath_overrides_runpath=yes
17392 case $host_os in
17393 cygwin*)
17394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17395 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17398 mingw* | cegcc*)
17399 # MinGW DLLs use traditional 'lib' prefix
17400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17402 pw32*)
17403 # pw32 DLLs use 'pw' prefix rather than 'lib'
17404 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 esac
17410 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17412 esac
17413 dynamic_linker='Win32 ld.exe'
17414 # FIXME: first we should search . and the directory the executable is in
17415 shlibpath_var=PATH
17418 darwin* | rhapsody*)
17419 dynamic_linker="$host_os dyld"
17420 version_type=darwin
17421 need_lib_prefix=no
17422 need_version=no
17423 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17424 soname_spec='${libname}${release}${major}$shared_ext'
17425 shlibpath_overrides_runpath=yes
17426 shlibpath_var=DYLD_LIBRARY_PATH
17427 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17429 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17432 dgux*)
17433 version_type=linux
17434 need_lib_prefix=no
17435 need_version=no
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17441 freebsd* | dragonfly*)
17442 # DragonFly does not have aout. When/if they implement a new
17443 # versioning mechanism, adjust this.
17444 if test -x /usr/bin/objformat; then
17445 objformat=`/usr/bin/objformat`
17446 else
17447 case $host_os in
17448 freebsd[23].*) objformat=aout ;;
17449 *) objformat=elf ;;
17450 esac
17452 version_type=freebsd-$objformat
17453 case $version_type in
17454 freebsd-elf*)
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17456 need_version=no
17457 need_lib_prefix=no
17459 freebsd-*)
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17461 need_version=yes
17463 esac
17464 shlibpath_var=LD_LIBRARY_PATH
17465 case $host_os in
17466 freebsd2.*)
17467 shlibpath_overrides_runpath=yes
17469 freebsd3.[01]* | freebsdelf3.[01]*)
17470 shlibpath_overrides_runpath=yes
17471 hardcode_into_libs=yes
17473 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17474 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17475 shlibpath_overrides_runpath=no
17476 hardcode_into_libs=yes
17478 *) # from 4.6 on, and DragonFly
17479 shlibpath_overrides_runpath=yes
17480 hardcode_into_libs=yes
17482 esac
17485 haiku*)
17486 version_type=linux
17487 need_lib_prefix=no
17488 need_version=no
17489 dynamic_linker="$host_os runtime_loader"
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17491 soname_spec='${libname}${release}${shared_ext}$major'
17492 shlibpath_var=LIBRARY_PATH
17493 shlibpath_overrides_runpath=yes
17494 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17495 hardcode_into_libs=yes
17498 hpux9* | hpux10* | hpux11*)
17499 # Give a soname corresponding to the major version so that dld.sl refuses to
17500 # link against other versions.
17501 version_type=sunos
17502 need_lib_prefix=no
17503 need_version=no
17504 case $host_cpu in
17505 ia64*)
17506 shrext_cmds='.so'
17507 hardcode_into_libs=yes
17508 dynamic_linker="$host_os dld.so"
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 if test "X$HPUX_IA64_MODE" = X32; then
17514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17515 else
17516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17520 hppa*64*)
17521 shrext_cmds='.sl'
17522 hardcode_into_libs=yes
17523 dynamic_linker="$host_os dld.sl"
17524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17532 shrext_cmds='.sl'
17533 dynamic_linker="$host_os dld.sl"
17534 shlibpath_var=SHLIB_PATH
17535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17537 soname_spec='${libname}${release}${shared_ext}$major'
17539 esac
17540 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17541 postinstall_cmds='chmod 555 $lib'
17542 # or fails outright, so override atomically:
17543 install_override_mode=555
17546 interix[3-9]*)
17547 version_type=linux
17548 need_lib_prefix=no
17549 need_version=no
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=no
17555 hardcode_into_libs=yes
17558 irix5* | irix6* | nonstopux*)
17559 case $host_os in
17560 nonstopux*) version_type=nonstopux ;;
17562 if test "$lt_cv_prog_gnu_ld" = yes; then
17563 version_type=linux
17564 else
17565 version_type=irix
17566 fi ;;
17567 esac
17568 need_lib_prefix=no
17569 need_version=no
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17572 case $host_os in
17573 irix5* | nonstopux*)
17574 libsuff= shlibsuff=
17577 case $LD in # libtool.m4 will add one of these switches to LD
17578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17579 libsuff= shlibsuff= libmagic=32-bit;;
17580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17581 libsuff=32 shlibsuff=N32 libmagic=N32;;
17582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17584 *) libsuff= shlibsuff= libmagic=never-match;;
17585 esac
17587 esac
17588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17589 shlibpath_overrides_runpath=no
17590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17592 hardcode_into_libs=yes
17595 # No shared lib support for Linux oldld, aout, or coff.
17596 linux*oldld* | linux*aout* | linux*coff*)
17597 dynamic_linker=no
17600 # This must be Linux ELF.
17602 # uclinux* changes (here and below) have been submitted to the libtool
17603 # project, but have not yet been accepted: they are GCC-local changes
17604 # for the time being. (See
17605 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
17606 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
17607 version_type=linux
17608 need_lib_prefix=no
17609 need_version=no
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611 soname_spec='${libname}${release}${shared_ext}$major'
17612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 shlibpath_overrides_runpath=no
17616 # Some binutils ld are patched to set DT_RUNPATH
17617 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 lt_cv_shlibpath_overrides_runpath=no
17621 save_LDFLAGS=$LDFLAGS
17622 save_libdir=$libdir
17623 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17624 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17625 if test x$gcc_no_link = xyes; then
17626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629 /* end confdefs.h. */
17632 main ()
17636 return 0;
17638 _ACEOF
17639 if ac_fn_cxx_try_link "$LINENO"; then :
17640 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17641 lt_cv_shlibpath_overrides_runpath=yes
17644 rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646 LDFLAGS=$save_LDFLAGS
17647 libdir=$save_libdir
17651 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17653 # This implies no fast_install, which is unacceptable.
17654 # Some rework will be needed to allow for fast_install
17655 # before this can be enabled.
17656 hardcode_into_libs=yes
17658 # Append ld.so.conf contents to the search path
17659 if test -f /etc/ld.so.conf; then
17660 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' ' '`
17661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17664 # We used to test for /lib/ld.so.1 and disable shared libraries on
17665 # powerpc, because MkLinux only supported shared libraries with the
17666 # GNU dynamic linker. Since this was broken with cross compilers,
17667 # most powerpc-linux boxes support dynamic linking these days and
17668 # people can always --disable-shared, the test was removed, and we
17669 # assume the GNU/Linux dynamic linker is in use.
17670 dynamic_linker='GNU/Linux ld.so'
17673 netbsd*)
17674 version_type=sunos
17675 need_lib_prefix=no
17676 need_version=no
17677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17680 dynamic_linker='NetBSD (a.out) ld.so'
17681 else
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 dynamic_linker='NetBSD ld.elf_so'
17686 shlibpath_var=LD_LIBRARY_PATH
17687 shlibpath_overrides_runpath=yes
17688 hardcode_into_libs=yes
17691 newsos6)
17692 version_type=linux
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 shlibpath_overrides_runpath=yes
17698 *nto* | *qnx*)
17699 version_type=qnx
17700 need_lib_prefix=no
17701 need_version=no
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 shlibpath_var=LD_LIBRARY_PATH
17705 shlibpath_overrides_runpath=no
17706 hardcode_into_libs=yes
17707 dynamic_linker='ldqnx.so'
17710 openbsd*)
17711 version_type=sunos
17712 sys_lib_dlsearch_path_spec="/usr/lib"
17713 need_lib_prefix=no
17714 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17715 case $host_os in
17716 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17717 *) need_version=no ;;
17718 esac
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17721 shlibpath_var=LD_LIBRARY_PATH
17722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17723 case $host_os in
17724 openbsd2.[89] | openbsd2.[89].*)
17725 shlibpath_overrides_runpath=no
17728 shlibpath_overrides_runpath=yes
17730 esac
17731 else
17732 shlibpath_overrides_runpath=yes
17736 os2*)
17737 libname_spec='$name'
17738 shrext_cmds=".dll"
17739 need_lib_prefix=no
17740 library_names_spec='$libname${shared_ext} $libname.a'
17741 dynamic_linker='OS/2 ld.exe'
17742 shlibpath_var=LIBPATH
17745 osf3* | osf4* | osf5*)
17746 version_type=osf
17747 need_lib_prefix=no
17748 need_version=no
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17753 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17756 rdos*)
17757 dynamic_linker=no
17760 solaris*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 shlibpath_overrides_runpath=yes
17768 hardcode_into_libs=yes
17769 # ldd complains unless libraries are executable
17770 postinstall_cmds='chmod +x $lib'
17773 sunos4*)
17774 version_type=sunos
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 shlibpath_overrides_runpath=yes
17779 if test "$with_gnu_ld" = yes; then
17780 need_lib_prefix=no
17782 need_version=yes
17785 sysv4 | sysv4.3*)
17786 version_type=linux
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 case $host_vendor in
17791 sni)
17792 shlibpath_overrides_runpath=no
17793 need_lib_prefix=no
17794 runpath_var=LD_RUN_PATH
17796 siemens)
17797 need_lib_prefix=no
17799 motorola)
17800 need_lib_prefix=no
17801 need_version=no
17802 shlibpath_overrides_runpath=no
17803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17805 esac
17808 sysv4*MP*)
17809 if test -d /usr/nec ;then
17810 version_type=linux
17811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17812 soname_spec='$libname${shared_ext}.$major'
17813 shlibpath_var=LD_LIBRARY_PATH
17817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17818 version_type=freebsd-elf
17819 need_lib_prefix=no
17820 need_version=no
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath=yes
17825 hardcode_into_libs=yes
17826 if test "$with_gnu_ld" = yes; then
17827 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17828 else
17829 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17830 case $host_os in
17831 sco3.2v5*)
17832 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17834 esac
17836 sys_lib_dlsearch_path_spec='/usr/lib'
17839 tpf*)
17840 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17841 version_type=linux
17842 need_lib_prefix=no
17843 need_version=no
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 shlibpath_overrides_runpath=no
17847 hardcode_into_libs=yes
17850 uts4*)
17851 version_type=linux
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 shlibpath_var=LD_LIBRARY_PATH
17857 # Shared libraries for VwWorks, >= 7 only at this stage
17858 # and (fpic) still incompatible with "large" code models
17859 # in a few configurations. Only for RTP mode in any case,
17860 # and upon explicit request at configure time.
17861 vxworks7*)
17862 dynamic_linker=no
17863 case ${with_multisubdir}-${enable_shared} in
17864 *large*)
17866 *mrtp*-yes)
17867 version_type=linux
17868 need_lib_prefix=no
17869 need_version=no
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 dynamic_linker="$host_os module_loader"
17874 esac
17877 dynamic_linker=no
17879 esac
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17881 $as_echo "$dynamic_linker" >&6; }
17882 test "$dynamic_linker" = no && can_build_shared=no
17884 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17885 if test "$GCC" = yes; then
17886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17889 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17890 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17892 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17893 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17934 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17935 hardcode_action_CXX=
17936 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17937 test -n "$runpath_var_CXX" ||
17938 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17940 # We can hardcode non-existent directories.
17941 if test "$hardcode_direct_CXX" != no &&
17942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17943 # have to relink, otherwise we might link with an installed library
17944 # when we should be linking with a yet-to-be-installed one
17945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17946 test "$hardcode_minus_L_CXX" != no; then
17947 # Linking always hardcodes the temporary library directory.
17948 hardcode_action_CXX=relink
17949 else
17950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17951 hardcode_action_CXX=immediate
17953 else
17954 # We cannot hardcode anything, or else we can only hardcode existing
17955 # directories.
17956 hardcode_action_CXX=unsupported
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17959 $as_echo "$hardcode_action_CXX" >&6; }
17961 if test "$hardcode_action_CXX" = relink ||
17962 test "$inherit_rpath_CXX" = yes; then
17963 # Fast installation is not supported
17964 enable_fast_install=no
17965 elif test "$shlibpath_overrides_runpath" = yes ||
17966 test "$enable_shared" = no; then
17967 # Fast installation is not necessary
17968 enable_fast_install=needless
17977 fi # test -n "$compiler"
17979 CC=$lt_save_CC
17980 LDCXX=$LD
17981 LD=$lt_save_LD
17982 GCC=$lt_save_GCC
17983 with_gnu_ld=$lt_save_with_gnu_ld
17984 lt_cv_path_LDCXX=$lt_cv_path_LD
17985 lt_cv_path_LD=$lt_save_path_LD
17986 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17987 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17988 fi # test "$_lt_caught_CXX_error" != yes
17990 ac_ext=c
17991 ac_cpp='$CPP $CPPFLAGS'
17992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008 ac_config_commands="$ac_config_commands libtool"
18013 # Only expand once:
18017 enable_dlopen=yes
18022 if test x$enable_darwin_at_rpath = xyes; then
18023 ENABLE_DARWIN_AT_RPATH_TRUE=
18024 ENABLE_DARWIN_AT_RPATH_FALSE='#'
18025 else
18026 ENABLE_DARWIN_AT_RPATH_TRUE='#'
18027 ENABLE_DARWIN_AT_RPATH_FALSE=
18034 if test "${multilib}" = "yes"; then
18035 multilib_arg="--enable-multilib"
18036 else
18037 multilib_arg=
18040 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
18041 if test "x$ac_cv_type_struct_timezone" = xyes; then :
18043 cat >>confdefs.h <<_ACEOF
18044 #define HAVE_STRUCT_TIMEZONE 1
18045 _ACEOF
18049 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
18050 if test "x$ac_cv_type_struct_stat" = xyes; then :
18052 cat >>confdefs.h <<_ACEOF
18053 #define HAVE_STRUCT_STAT 1
18054 _ACEOF
18058 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
18059 if test "x$ac_cv_type_struct_timespec" = xyes; then :
18061 cat >>confdefs.h <<_ACEOF
18062 #define HAVE_STRUCT_TIMESPEC 1
18063 _ACEOF
18067 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
18068 if test "x$ac_cv_type_struct_timeval" = xyes; then :
18070 cat >>confdefs.h <<_ACEOF
18071 #define HAVE_STRUCT_TIMEVAL 1
18072 _ACEOF
18076 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
18077 if test "x$ac_cv_type_struct_tm" = xyes; then :
18079 cat >>confdefs.h <<_ACEOF
18080 #define HAVE_STRUCT_TM 1
18081 _ACEOF
18087 # Check if struct tm contains the tm_gmtoff field.
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18089 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18090 if ${ac_cv_struct_tm_gmtoff+:} false; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h. */
18096 #include <time.h>
18099 main ()
18102 struct tm tm;
18103 tm.tm_gmtoff = 1;
18106 return 0;
18108 _ACEOF
18109 if ac_fn_c_try_compile "$LINENO"; then :
18110 ac_cv_struct_tm_gmtoff=yes
18111 else
18112 ac_cv_struct_tm_gmtoff=no
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
18119 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
18121 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
18123 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
18125 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
18129 ac_ext=c
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18135 # Check the compiler.
18136 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
18137 # We must force CC to /not/ be precious variables; otherwise
18138 # the wrong, non-multilib-adjusted value will be used in multilibs.
18139 # As a side effect, we have to subst CFLAGS ourselves.
18143 ac_ext=c
18144 ac_cpp='$CPP $CPPFLAGS'
18145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18148 if test -n "$ac_tool_prefix"; then
18149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18152 $as_echo_n "checking for $ac_word... " >&6; }
18153 if ${ac_cv_prog_CC+:} false; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18156 if test -n "$CC"; then
18157 ac_cv_prog_CC="$CC" # Let the user override the test.
18158 else
18159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18160 for as_dir in $PATH
18162 IFS=$as_save_IFS
18163 test -z "$as_dir" && as_dir=.
18164 for ac_exec_ext in '' $ac_executable_extensions; do
18165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18168 break 2
18170 done
18171 done
18172 IFS=$as_save_IFS
18176 CC=$ac_cv_prog_CC
18177 if test -n "$CC"; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18179 $as_echo "$CC" >&6; }
18180 else
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18187 if test -z "$ac_cv_prog_CC"; then
18188 ac_ct_CC=$CC
18189 # Extract the first word of "gcc", so it can be a program name with args.
18190 set dummy gcc; ac_word=$2
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18192 $as_echo_n "checking for $ac_word... " >&6; }
18193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 if test -n "$ac_ct_CC"; then
18197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18198 else
18199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18200 for as_dir in $PATH
18202 IFS=$as_save_IFS
18203 test -z "$as_dir" && as_dir=.
18204 for ac_exec_ext in '' $ac_executable_extensions; do
18205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18206 ac_cv_prog_ac_ct_CC="gcc"
18207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18208 break 2
18210 done
18211 done
18212 IFS=$as_save_IFS
18216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18217 if test -n "$ac_ct_CC"; then
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18219 $as_echo "$ac_ct_CC" >&6; }
18220 else
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18222 $as_echo "no" >&6; }
18225 if test "x$ac_ct_CC" = x; then
18226 CC=""
18227 else
18228 case $cross_compiling:$ac_tool_warned in
18229 yes:)
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18232 ac_tool_warned=yes ;;
18233 esac
18234 CC=$ac_ct_CC
18236 else
18237 CC="$ac_cv_prog_CC"
18240 if test -z "$CC"; then
18241 if test -n "$ac_tool_prefix"; then
18242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18243 set dummy ${ac_tool_prefix}cc; ac_word=$2
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18245 $as_echo_n "checking for $ac_word... " >&6; }
18246 if ${ac_cv_prog_CC+:} false; then :
18247 $as_echo_n "(cached) " >&6
18248 else
18249 if test -n "$CC"; then
18250 ac_cv_prog_CC="$CC" # Let the user override the test.
18251 else
18252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18253 for as_dir in $PATH
18255 IFS=$as_save_IFS
18256 test -z "$as_dir" && as_dir=.
18257 for ac_exec_ext in '' $ac_executable_extensions; do
18258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259 ac_cv_prog_CC="${ac_tool_prefix}cc"
18260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18261 break 2
18263 done
18264 done
18265 IFS=$as_save_IFS
18269 CC=$ac_cv_prog_CC
18270 if test -n "$CC"; then
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18272 $as_echo "$CC" >&6; }
18273 else
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18275 $as_echo "no" >&6; }
18281 if test -z "$CC"; then
18282 # Extract the first word of "cc", so it can be a program name with args.
18283 set dummy cc; ac_word=$2
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18285 $as_echo_n "checking for $ac_word... " >&6; }
18286 if ${ac_cv_prog_CC+:} false; then :
18287 $as_echo_n "(cached) " >&6
18288 else
18289 if test -n "$CC"; then
18290 ac_cv_prog_CC="$CC" # Let the user override the test.
18291 else
18292 ac_prog_rejected=no
18293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18294 for as_dir in $PATH
18296 IFS=$as_save_IFS
18297 test -z "$as_dir" && as_dir=.
18298 for ac_exec_ext in '' $ac_executable_extensions; do
18299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18301 ac_prog_rejected=yes
18302 continue
18304 ac_cv_prog_CC="cc"
18305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18306 break 2
18308 done
18309 done
18310 IFS=$as_save_IFS
18312 if test $ac_prog_rejected = yes; then
18313 # We found a bogon in the path, so make sure we never use it.
18314 set dummy $ac_cv_prog_CC
18315 shift
18316 if test $# != 0; then
18317 # We chose a different compiler from the bogus one.
18318 # However, it has the same basename, so the bogon will be chosen
18319 # first if we set CC to just the basename; use the full file name.
18320 shift
18321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18326 CC=$ac_cv_prog_CC
18327 if test -n "$CC"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18329 $as_echo "$CC" >&6; }
18330 else
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18337 if test -z "$CC"; then
18338 if test -n "$ac_tool_prefix"; then
18339 for ac_prog in cl.exe
18341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18344 $as_echo_n "checking for $ac_word... " >&6; }
18345 if ${ac_cv_prog_CC+:} false; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 if test -n "$CC"; then
18349 ac_cv_prog_CC="$CC" # Let the user override the test.
18350 else
18351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18352 for as_dir in $PATH
18354 IFS=$as_save_IFS
18355 test -z "$as_dir" && as_dir=.
18356 for ac_exec_ext in '' $ac_executable_extensions; do
18357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18360 break 2
18362 done
18363 done
18364 IFS=$as_save_IFS
18368 CC=$ac_cv_prog_CC
18369 if test -n "$CC"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18371 $as_echo "$CC" >&6; }
18372 else
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374 $as_echo "no" >&6; }
18378 test -n "$CC" && break
18379 done
18381 if test -z "$CC"; then
18382 ac_ct_CC=$CC
18383 for ac_prog in cl.exe
18385 # Extract the first word of "$ac_prog", so it can be a program name with args.
18386 set dummy $ac_prog; ac_word=$2
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388 $as_echo_n "checking for $ac_word... " >&6; }
18389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 if test -n "$ac_ct_CC"; then
18393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18394 else
18395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18398 IFS=$as_save_IFS
18399 test -z "$as_dir" && as_dir=.
18400 for ac_exec_ext in '' $ac_executable_extensions; do
18401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402 ac_cv_prog_ac_ct_CC="$ac_prog"
18403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18404 break 2
18406 done
18407 done
18408 IFS=$as_save_IFS
18412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18413 if test -n "$ac_ct_CC"; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18415 $as_echo "$ac_ct_CC" >&6; }
18416 else
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418 $as_echo "no" >&6; }
18422 test -n "$ac_ct_CC" && break
18423 done
18425 if test "x$ac_ct_CC" = x; then
18426 CC=""
18427 else
18428 case $cross_compiling:$ac_tool_warned in
18429 yes:)
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18432 ac_tool_warned=yes ;;
18433 esac
18434 CC=$ac_ct_CC
18441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18443 as_fn_error $? "no acceptable C compiler found in \$PATH
18444 See \`config.log' for more details" "$LINENO" 5; }
18446 # Provide some information about the compiler.
18447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18448 set X $ac_compile
18449 ac_compiler=$2
18450 for ac_option in --version -v -V -qversion; do
18451 { { ac_try="$ac_compiler $ac_option >&5"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455 esac
18456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18457 $as_echo "$ac_try_echo"; } >&5
18458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18459 ac_status=$?
18460 if test -s conftest.err; then
18461 sed '10a\
18462 ... rest of stderr output deleted ...
18463 10q' conftest.err >conftest.er1
18464 cat conftest.er1 >&5
18466 rm -f conftest.er1 conftest.err
18467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18468 test $ac_status = 0; }
18469 done
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18472 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18473 if ${ac_cv_c_compiler_gnu+:} false; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18480 main ()
18482 #ifndef __GNUC__
18483 choke me
18484 #endif
18487 return 0;
18489 _ACEOF
18490 if ac_fn_c_try_compile "$LINENO"; then :
18491 ac_compiler_gnu=yes
18492 else
18493 ac_compiler_gnu=no
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18500 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18501 if test $ac_compiler_gnu = yes; then
18502 GCC=yes
18503 else
18504 GCC=
18506 ac_test_CFLAGS=${CFLAGS+set}
18507 ac_save_CFLAGS=$CFLAGS
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18509 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18510 if ${ac_cv_prog_cc_g+:} false; then :
18511 $as_echo_n "(cached) " >&6
18512 else
18513 ac_save_c_werror_flag=$ac_c_werror_flag
18514 ac_c_werror_flag=yes
18515 ac_cv_prog_cc_g=no
18516 CFLAGS="-g"
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18521 main ()
18525 return 0;
18527 _ACEOF
18528 if ac_fn_c_try_compile "$LINENO"; then :
18529 ac_cv_prog_cc_g=yes
18530 else
18531 CFLAGS=""
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18536 main ()
18540 return 0;
18542 _ACEOF
18543 if ac_fn_c_try_compile "$LINENO"; then :
18545 else
18546 ac_c_werror_flag=$ac_save_c_werror_flag
18547 CFLAGS="-g"
18548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18549 /* end confdefs.h. */
18552 main ()
18556 return 0;
18558 _ACEOF
18559 if ac_fn_c_try_compile "$LINENO"; then :
18560 ac_cv_prog_cc_g=yes
18562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 ac_c_werror_flag=$ac_save_c_werror_flag
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18570 $as_echo "$ac_cv_prog_cc_g" >&6; }
18571 if test "$ac_test_CFLAGS" = set; then
18572 CFLAGS=$ac_save_CFLAGS
18573 elif test $ac_cv_prog_cc_g = yes; then
18574 if test "$GCC" = yes; then
18575 CFLAGS="-g -O2"
18576 else
18577 CFLAGS="-g"
18579 else
18580 if test "$GCC" = yes; then
18581 CFLAGS="-O2"
18582 else
18583 CFLAGS=
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18587 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18588 if ${ac_cv_prog_cc_c89+:} false; then :
18589 $as_echo_n "(cached) " >&6
18590 else
18591 ac_cv_prog_cc_c89=no
18592 ac_save_CC=$CC
18593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h. */
18595 #include <stdarg.h>
18596 #include <stdio.h>
18597 struct stat;
18598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18599 struct buf { int x; };
18600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18601 static char *e (p, i)
18602 char **p;
18603 int i;
18605 return p[i];
18607 static char *f (char * (*g) (char **, int), char **p, ...)
18609 char *s;
18610 va_list v;
18611 va_start (v,p);
18612 s = g (p, va_arg (v,int));
18613 va_end (v);
18614 return s;
18617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18618 function prototypes and stuff, but not '\xHH' hex character constants.
18619 These don't provoke an error unfortunately, instead are silently treated
18620 as 'x'. The following induces an error, until -std is added to get
18621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18622 array size at least. It's necessary to write '\x00'==0 to get something
18623 that's true only with -std. */
18624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18627 inside strings and character constants. */
18628 #define FOO(x) 'x'
18629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18631 int test (int i, double x);
18632 struct s1 {int (*f) (int a);};
18633 struct s2 {int (*f) (double a);};
18634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18635 int argc;
18636 char **argv;
18638 main ()
18640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18642 return 0;
18644 _ACEOF
18645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18648 CC="$ac_save_CC $ac_arg"
18649 if ac_fn_c_try_compile "$LINENO"; then :
18650 ac_cv_prog_cc_c89=$ac_arg
18652 rm -f core conftest.err conftest.$ac_objext
18653 test "x$ac_cv_prog_cc_c89" != "xno" && break
18654 done
18655 rm -f conftest.$ac_ext
18656 CC=$ac_save_CC
18659 # AC_CACHE_VAL
18660 case "x$ac_cv_prog_cc_c89" in
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18663 $as_echo "none needed" >&6; } ;;
18664 xno)
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18666 $as_echo "unsupported" >&6; } ;;
18668 CC="$CC $ac_cv_prog_cc_c89"
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18671 esac
18672 if test "x$ac_cv_prog_cc_c89" != xno; then :
18676 ac_ext=c
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18682 ac_ext=c
18683 ac_cpp='$CPP $CPPFLAGS'
18684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18688 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18689 if ${am_cv_prog_cc_c_o+:} false; then :
18690 $as_echo_n "(cached) " >&6
18691 else
18692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18693 /* end confdefs.h. */
18696 main ()
18700 return 0;
18702 _ACEOF
18703 # Make sure it works both with $CC and with simple cc.
18704 # Following AC_PROG_CC_C_O, we do the test twice because some
18705 # compilers refuse to overwrite an existing .o file with -o,
18706 # though they will create one.
18707 am_cv_prog_cc_c_o=yes
18708 for am_i in 1 2; do
18709 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18710 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } \
18714 && test -f conftest2.$ac_objext; then
18715 : OK
18716 else
18717 am_cv_prog_cc_c_o=no
18718 break
18720 done
18721 rm -f core conftest*
18722 unset am_i
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18725 $as_echo "$am_cv_prog_cc_c_o" >&6; }
18726 if test "$am_cv_prog_cc_c_o" != yes; then
18727 # Losing compiler, so override with the script.
18728 # FIXME: It is wrong to rewrite CC.
18729 # But if we don't then we get into trouble of one sort or another.
18730 # A longer-term fix would be to have automake use am__CC in this case,
18731 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18732 CC="$am_aux_dir/compile $CC"
18734 ac_ext=c
18735 ac_cpp='$CPP $CPPFLAGS'
18736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
18751 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
18752 if test x$gcc_no_link != xyes; then
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
18754 $as_echo_n "checking for access in -lc... " >&6; }
18755 if ${ac_cv_lib_c_access+:} false; then :
18756 $as_echo_n "(cached) " >&6
18757 else
18758 ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-lc $LIBS"
18760 if test x$gcc_no_link = xyes; then
18761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18764 /* end confdefs.h. */
18766 /* Override any GCC internal prototype to avoid an error.
18767 Use char because int might match the return type of a GCC
18768 builtin and then its argument prototype would still apply. */
18769 #ifdef __cplusplus
18770 extern "C"
18771 #endif
18772 char access ();
18774 main ()
18776 return access ();
18778 return 0;
18780 _ACEOF
18781 if ac_fn_c_try_link "$LINENO"; then :
18782 ac_cv_lib_c_access=yes
18783 else
18784 ac_cv_lib_c_access=no
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
18791 $as_echo "$ac_cv_lib_c_access" >&6; }
18792 if test "x$ac_cv_lib_c_access" = xyes; then :
18794 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18796 else
18798 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
18802 else
18803 if test "x$ac_cv_lib_c_access" = xyes; then
18805 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18807 elif test "x$ac_cv_func_access" = xyes; then
18809 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18811 else
18813 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
18820 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
18821 if test x$gcc_no_link != xyes; then
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
18823 $as_echo_n "checking for brk in -lc... " >&6; }
18824 if ${ac_cv_lib_c_brk+:} false; then :
18825 $as_echo_n "(cached) " >&6
18826 else
18827 ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lc $LIBS"
18829 if test x$gcc_no_link = xyes; then
18830 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18835 /* Override any GCC internal prototype to avoid an error.
18836 Use char because int might match the return type of a GCC
18837 builtin and then its argument prototype would still apply. */
18838 #ifdef __cplusplus
18839 extern "C"
18840 #endif
18841 char brk ();
18843 main ()
18845 return brk ();
18847 return 0;
18849 _ACEOF
18850 if ac_fn_c_try_link "$LINENO"; then :
18851 ac_cv_lib_c_brk=yes
18852 else
18853 ac_cv_lib_c_brk=no
18855 rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
18860 $as_echo "$ac_cv_lib_c_brk" >&6; }
18861 if test "x$ac_cv_lib_c_brk" = xyes; then :
18863 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18865 else
18867 $as_echo "#undef HAVE_BRK" >>confdefs.h
18871 else
18872 if test "x$ac_cv_lib_c_brk" = xyes; then
18874 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18876 elif test "x$ac_cv_func_brk" = xyes; then
18878 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18880 else
18882 $as_echo "#undef HAVE_BRK" >>confdefs.h
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
18889 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
18890 if test x$gcc_no_link != xyes; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
18892 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
18893 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895 else
18896 ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-lc $LIBS"
18898 if test x$gcc_no_link = xyes; then
18899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18904 /* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 char cfmakeraw ();
18912 main ()
18914 return cfmakeraw ();
18916 return 0;
18918 _ACEOF
18919 if ac_fn_c_try_link "$LINENO"; then :
18920 ac_cv_lib_c_cfmakeraw=yes
18921 else
18922 ac_cv_lib_c_cfmakeraw=no
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
18929 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
18930 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
18932 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18934 else
18936 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
18940 else
18941 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
18943 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18945 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
18947 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18949 else
18951 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
18958 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
18959 if test x$gcc_no_link != xyes; then
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
18961 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
18962 if ${ac_cv_lib_c_clock_gettime+:} false; then :
18963 $as_echo_n "(cached) " >&6
18964 else
18965 ac_check_lib_save_LIBS=$LIBS
18966 LIBS="-lc $LIBS"
18967 if test x$gcc_no_link = xyes; then
18968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 char clock_gettime ();
18981 main ()
18983 return clock_gettime ();
18985 return 0;
18987 _ACEOF
18988 if ac_fn_c_try_link "$LINENO"; then :
18989 ac_cv_lib_c_clock_gettime=yes
18990 else
18991 ac_cv_lib_c_clock_gettime=no
18993 rm -f core conftest.err conftest.$ac_objext \
18994 conftest$ac_exeext conftest.$ac_ext
18995 LIBS=$ac_check_lib_save_LIBS
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
18998 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
18999 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
19001 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19003 else
19005 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
19009 else
19010 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
19012 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19014 elif test "x$ac_cv_func_clock_gettime" = xyes; then
19016 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19018 else
19020 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
19027 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
19028 if test x$gcc_no_link != xyes; then
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
19030 $as_echo_n "checking for clock_settime in -lc... " >&6; }
19031 if ${ac_cv_lib_c_clock_settime+:} false; then :
19032 $as_echo_n "(cached) " >&6
19033 else
19034 ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-lc $LIBS"
19036 if test x$gcc_no_link = xyes; then
19037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19042 /* Override any GCC internal prototype to avoid an error.
19043 Use char because int might match the return type of a GCC
19044 builtin and then its argument prototype would still apply. */
19045 #ifdef __cplusplus
19046 extern "C"
19047 #endif
19048 char clock_settime ();
19050 main ()
19052 return clock_settime ();
19054 return 0;
19056 _ACEOF
19057 if ac_fn_c_try_link "$LINENO"; then :
19058 ac_cv_lib_c_clock_settime=yes
19059 else
19060 ac_cv_lib_c_clock_settime=no
19062 rm -f core conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_check_lib_save_LIBS
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
19067 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
19068 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
19070 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19072 else
19074 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19078 else
19079 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
19081 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19083 elif test "x$ac_cv_func_clock_settime" = xyes; then
19085 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19087 else
19089 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
19096 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
19097 if test x$gcc_no_link != xyes; then
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
19099 $as_echo_n "checking for close in -lc... " >&6; }
19100 if ${ac_cv_lib_c_close+:} false; then :
19101 $as_echo_n "(cached) " >&6
19102 else
19103 ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-lc $LIBS"
19105 if test x$gcc_no_link = xyes; then
19106 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19109 /* end confdefs.h. */
19111 /* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19114 #ifdef __cplusplus
19115 extern "C"
19116 #endif
19117 char close ();
19119 main ()
19121 return close ();
19123 return 0;
19125 _ACEOF
19126 if ac_fn_c_try_link "$LINENO"; then :
19127 ac_cv_lib_c_close=yes
19128 else
19129 ac_cv_lib_c_close=no
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
19136 $as_echo "$ac_cv_lib_c_close" >&6; }
19137 if test "x$ac_cv_lib_c_close" = xyes; then :
19139 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19141 else
19143 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19147 else
19148 if test "x$ac_cv_lib_c_close" = xyes; then
19150 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19152 elif test "x$ac_cv_func_close" = xyes; then
19154 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19156 else
19158 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
19165 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
19166 if test x$gcc_no_link != xyes; then
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
19168 $as_echo_n "checking for ctime in -lc... " >&6; }
19169 if ${ac_cv_lib_c_ctime+:} false; then :
19170 $as_echo_n "(cached) " >&6
19171 else
19172 ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lc $LIBS"
19174 if test x$gcc_no_link = xyes; then
19175 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19180 /* Override any GCC internal prototype to avoid an error.
19181 Use char because int might match the return type of a GCC
19182 builtin and then its argument prototype would still apply. */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char ctime ();
19188 main ()
19190 return ctime ();
19192 return 0;
19194 _ACEOF
19195 if ac_fn_c_try_link "$LINENO"; then :
19196 ac_cv_lib_c_ctime=yes
19197 else
19198 ac_cv_lib_c_ctime=no
19200 rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
19205 $as_echo "$ac_cv_lib_c_ctime" >&6; }
19206 if test "x$ac_cv_lib_c_ctime" = xyes; then :
19208 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19210 else
19212 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19216 else
19217 if test "x$ac_cv_lib_c_ctime" = xyes; then
19219 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19221 elif test "x$ac_cv_func_ctime" = xyes; then
19223 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19225 else
19227 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
19234 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
19235 if test x$gcc_no_link != xyes; then
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
19237 $as_echo_n "checking for creat in -lc... " >&6; }
19238 if ${ac_cv_lib_c_creat+:} false; then :
19239 $as_echo_n "(cached) " >&6
19240 else
19241 ac_check_lib_save_LIBS=$LIBS
19242 LIBS="-lc $LIBS"
19243 if test x$gcc_no_link = xyes; then
19244 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19249 /* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19252 #ifdef __cplusplus
19253 extern "C"
19254 #endif
19255 char creat ();
19257 main ()
19259 return creat ();
19261 return 0;
19263 _ACEOF
19264 if ac_fn_c_try_link "$LINENO"; then :
19265 ac_cv_lib_c_creat=yes
19266 else
19267 ac_cv_lib_c_creat=no
19269 rm -f core conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19271 LIBS=$ac_check_lib_save_LIBS
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
19274 $as_echo "$ac_cv_lib_c_creat" >&6; }
19275 if test "x$ac_cv_lib_c_creat" = xyes; then :
19277 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19279 else
19281 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19285 else
19286 if test "x$ac_cv_lib_c_creat" = xyes; then
19288 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19290 elif test "x$ac_cv_func_creat" = xyes; then
19292 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19294 else
19296 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
19303 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
19304 if test x$gcc_no_link != xyes; then
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
19306 $as_echo_n "checking for daylight in -lc... " >&6; }
19307 if ${ac_cv_lib_c_daylight+:} false; then :
19308 $as_echo_n "(cached) " >&6
19309 else
19310 ac_check_lib_save_LIBS=$LIBS
19311 LIBS="-lc $LIBS"
19312 if test x$gcc_no_link = xyes; then
19313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19316 /* end confdefs.h. */
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char daylight ();
19326 main ()
19328 return daylight ();
19330 return 0;
19332 _ACEOF
19333 if ac_fn_c_try_link "$LINENO"; then :
19334 ac_cv_lib_c_daylight=yes
19335 else
19336 ac_cv_lib_c_daylight=no
19338 rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19340 LIBS=$ac_check_lib_save_LIBS
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
19343 $as_echo "$ac_cv_lib_c_daylight" >&6; }
19344 if test "x$ac_cv_lib_c_daylight" = xyes; then :
19346 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19348 else
19350 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19354 else
19355 if test "x$ac_cv_lib_c_daylight" = xyes; then
19357 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19359 elif test "x$ac_cv_func_daylight" = xyes; then
19361 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19363 else
19365 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
19372 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
19373 if test x$gcc_no_link != xyes; then
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
19375 $as_echo_n "checking for dup in -lc... " >&6; }
19376 if ${ac_cv_lib_c_dup+:} false; then :
19377 $as_echo_n "(cached) " >&6
19378 else
19379 ac_check_lib_save_LIBS=$LIBS
19380 LIBS="-lc $LIBS"
19381 if test x$gcc_no_link = xyes; then
19382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19387 /* Override any GCC internal prototype to avoid an error.
19388 Use char because int might match the return type of a GCC
19389 builtin and then its argument prototype would still apply. */
19390 #ifdef __cplusplus
19391 extern "C"
19392 #endif
19393 char dup ();
19395 main ()
19397 return dup ();
19399 return 0;
19401 _ACEOF
19402 if ac_fn_c_try_link "$LINENO"; then :
19403 ac_cv_lib_c_dup=yes
19404 else
19405 ac_cv_lib_c_dup=no
19407 rm -f core conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19409 LIBS=$ac_check_lib_save_LIBS
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
19412 $as_echo "$ac_cv_lib_c_dup" >&6; }
19413 if test "x$ac_cv_lib_c_dup" = xyes; then :
19415 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19417 else
19419 $as_echo "#undef HAVE_DUP" >>confdefs.h
19423 else
19424 if test "x$ac_cv_lib_c_dup" = xyes; then
19426 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19428 elif test "x$ac_cv_func_dup" = xyes; then
19430 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19432 else
19434 $as_echo "#undef HAVE_DUP" >>confdefs.h
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
19441 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
19442 if test x$gcc_no_link != xyes; then
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
19444 $as_echo_n "checking for execve in -lc... " >&6; }
19445 if ${ac_cv_lib_c_execve+:} false; then :
19446 $as_echo_n "(cached) " >&6
19447 else
19448 ac_check_lib_save_LIBS=$LIBS
19449 LIBS="-lc $LIBS"
19450 if test x$gcc_no_link = xyes; then
19451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19454 /* end confdefs.h. */
19456 /* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19459 #ifdef __cplusplus
19460 extern "C"
19461 #endif
19462 char execve ();
19464 main ()
19466 return execve ();
19468 return 0;
19470 _ACEOF
19471 if ac_fn_c_try_link "$LINENO"; then :
19472 ac_cv_lib_c_execve=yes
19473 else
19474 ac_cv_lib_c_execve=no
19476 rm -f core conftest.err conftest.$ac_objext \
19477 conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
19481 $as_echo "$ac_cv_lib_c_execve" >&6; }
19482 if test "x$ac_cv_lib_c_execve" = xyes; then :
19484 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19486 else
19488 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19492 else
19493 if test "x$ac_cv_lib_c_execve" = xyes; then
19495 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19497 elif test "x$ac_cv_func_execve" = xyes; then
19499 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19501 else
19503 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
19510 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
19511 if test x$gcc_no_link != xyes; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
19513 $as_echo_n "checking for exit in -lc... " >&6; }
19514 if ${ac_cv_lib_c_exit+:} false; then :
19515 $as_echo_n "(cached) " >&6
19516 else
19517 ac_check_lib_save_LIBS=$LIBS
19518 LIBS="-lc $LIBS"
19519 if test x$gcc_no_link = xyes; then
19520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h. */
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 char exit ();
19533 main ()
19535 return exit ();
19537 return 0;
19539 _ACEOF
19540 if ac_fn_c_try_link "$LINENO"; then :
19541 ac_cv_lib_c_exit=yes
19542 else
19543 ac_cv_lib_c_exit=no
19545 rm -f core conftest.err conftest.$ac_objext \
19546 conftest$ac_exeext conftest.$ac_ext
19547 LIBS=$ac_check_lib_save_LIBS
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
19550 $as_echo "$ac_cv_lib_c_exit" >&6; }
19551 if test "x$ac_cv_lib_c_exit" = xyes; then :
19553 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19555 else
19557 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19561 else
19562 if test "x$ac_cv_lib_c_exit" = xyes; then
19564 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19566 elif test "x$ac_cv_func_exit" = xyes; then
19568 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19570 else
19572 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
19579 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
19580 if test x$gcc_no_link != xyes; then
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
19582 $as_echo_n "checking for fcntl in -lc... " >&6; }
19583 if ${ac_cv_lib_c_fcntl+:} false; then :
19584 $as_echo_n "(cached) " >&6
19585 else
19586 ac_check_lib_save_LIBS=$LIBS
19587 LIBS="-lc $LIBS"
19588 if test x$gcc_no_link = xyes; then
19589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19592 /* end confdefs.h. */
19594 /* Override any GCC internal prototype to avoid an error.
19595 Use char because int might match the return type of a GCC
19596 builtin and then its argument prototype would still apply. */
19597 #ifdef __cplusplus
19598 extern "C"
19599 #endif
19600 char fcntl ();
19602 main ()
19604 return fcntl ();
19606 return 0;
19608 _ACEOF
19609 if ac_fn_c_try_link "$LINENO"; then :
19610 ac_cv_lib_c_fcntl=yes
19611 else
19612 ac_cv_lib_c_fcntl=no
19614 rm -f core conftest.err conftest.$ac_objext \
19615 conftest$ac_exeext conftest.$ac_ext
19616 LIBS=$ac_check_lib_save_LIBS
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
19619 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
19620 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
19622 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19624 else
19626 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19630 else
19631 if test "x$ac_cv_lib_c_fcntl" = xyes; then
19633 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19635 elif test "x$ac_cv_func_fcntl" = xyes; then
19637 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19639 else
19641 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
19648 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
19649 if test x$gcc_no_link != xyes; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
19651 $as_echo_n "checking for fstat in -lc... " >&6; }
19652 if ${ac_cv_lib_c_fstat+:} false; then :
19653 $as_echo_n "(cached) " >&6
19654 else
19655 ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-lc $LIBS"
19657 if test x$gcc_no_link = xyes; then
19658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661 /* end confdefs.h. */
19663 /* Override any GCC internal prototype to avoid an error.
19664 Use char because int might match the return type of a GCC
19665 builtin and then its argument prototype would still apply. */
19666 #ifdef __cplusplus
19667 extern "C"
19668 #endif
19669 char fstat ();
19671 main ()
19673 return fstat ();
19675 return 0;
19677 _ACEOF
19678 if ac_fn_c_try_link "$LINENO"; then :
19679 ac_cv_lib_c_fstat=yes
19680 else
19681 ac_cv_lib_c_fstat=no
19683 rm -f core conftest.err conftest.$ac_objext \
19684 conftest$ac_exeext conftest.$ac_ext
19685 LIBS=$ac_check_lib_save_LIBS
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
19688 $as_echo "$ac_cv_lib_c_fstat" >&6; }
19689 if test "x$ac_cv_lib_c_fstat" = xyes; then :
19691 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19693 else
19695 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19699 else
19700 if test "x$ac_cv_lib_c_fstat" = xyes; then
19702 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19704 elif test "x$ac_cv_func_fstat" = xyes; then
19706 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19708 else
19710 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
19717 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
19718 if test x$gcc_no_link != xyes; then
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
19720 $as_echo_n "checking for getdents in -lc... " >&6; }
19721 if ${ac_cv_lib_c_getdents+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-lc $LIBS"
19726 if test x$gcc_no_link = xyes; then
19727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h. */
19732 /* Override any GCC internal prototype to avoid an error.
19733 Use char because int might match the return type of a GCC
19734 builtin and then its argument prototype would still apply. */
19735 #ifdef __cplusplus
19736 extern "C"
19737 #endif
19738 char getdents ();
19740 main ()
19742 return getdents ();
19744 return 0;
19746 _ACEOF
19747 if ac_fn_c_try_link "$LINENO"; then :
19748 ac_cv_lib_c_getdents=yes
19749 else
19750 ac_cv_lib_c_getdents=no
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
19757 $as_echo "$ac_cv_lib_c_getdents" >&6; }
19758 if test "x$ac_cv_lib_c_getdents" = xyes; then :
19760 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19762 else
19764 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
19768 else
19769 if test "x$ac_cv_lib_c_getdents" = xyes; then
19771 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19773 elif test "x$ac_cv_func_getdents" = xyes; then
19775 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19777 else
19779 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
19786 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
19787 if test x$gcc_no_link != xyes; then
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
19789 $as_echo_n "checking for getgid in -lc... " >&6; }
19790 if ${ac_cv_lib_c_getgid+:} false; then :
19791 $as_echo_n "(cached) " >&6
19792 else
19793 ac_check_lib_save_LIBS=$LIBS
19794 LIBS="-lc $LIBS"
19795 if test x$gcc_no_link = xyes; then
19796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h. */
19801 /* Override any GCC internal prototype to avoid an error.
19802 Use char because int might match the return type of a GCC
19803 builtin and then its argument prototype would still apply. */
19804 #ifdef __cplusplus
19805 extern "C"
19806 #endif
19807 char getgid ();
19809 main ()
19811 return getgid ();
19813 return 0;
19815 _ACEOF
19816 if ac_fn_c_try_link "$LINENO"; then :
19817 ac_cv_lib_c_getgid=yes
19818 else
19819 ac_cv_lib_c_getgid=no
19821 rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
19826 $as_echo "$ac_cv_lib_c_getgid" >&6; }
19827 if test "x$ac_cv_lib_c_getgid" = xyes; then :
19829 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19831 else
19833 $as_echo "#undef HAVE_GETGID" >>confdefs.h
19837 else
19838 if test "x$ac_cv_lib_c_getgid" = xyes; then
19840 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19842 elif test "x$ac_cv_func_getgid" = xyes; then
19844 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19846 else
19848 $as_echo "#undef HAVE_GETGID" >>confdefs.h
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long" >&5
19855 $as_echo_n "checking m2 front end checking c library for getopt_long... " >&6; }
19856 if test x$gcc_no_link != xyes; then
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lc" >&5
19858 $as_echo_n "checking for getopt_long in -lc... " >&6; }
19859 if ${ac_cv_lib_c_getopt_long+:} false; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 ac_check_lib_save_LIBS=$LIBS
19863 LIBS="-lc $LIBS"
19864 if test x$gcc_no_link = xyes; then
19865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19868 /* end confdefs.h. */
19870 /* Override any GCC internal prototype to avoid an error.
19871 Use char because int might match the return type of a GCC
19872 builtin and then its argument prototype would still apply. */
19873 #ifdef __cplusplus
19874 extern "C"
19875 #endif
19876 char getopt_long ();
19878 main ()
19880 return getopt_long ();
19882 return 0;
19884 _ACEOF
19885 if ac_fn_c_try_link "$LINENO"; then :
19886 ac_cv_lib_c_getopt_long=yes
19887 else
19888 ac_cv_lib_c_getopt_long=no
19890 rm -f core conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
19892 LIBS=$ac_check_lib_save_LIBS
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long" >&5
19895 $as_echo "$ac_cv_lib_c_getopt_long" >&6; }
19896 if test "x$ac_cv_lib_c_getopt_long" = xyes; then :
19898 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19900 else
19902 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
19906 else
19907 if test "x$ac_cv_lib_c_getopt_long" = xyes; then
19909 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19911 elif test "x$ac_cv_func_getopt_long" = xyes; then
19913 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19915 else
19917 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long_only" >&5
19924 $as_echo_n "checking m2 front end checking c library for getopt_long_only... " >&6; }
19925 if test x$gcc_no_link != xyes; then
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long_only in -lc" >&5
19927 $as_echo_n "checking for getopt_long_only in -lc... " >&6; }
19928 if ${ac_cv_lib_c_getopt_long_only+:} false; then :
19929 $as_echo_n "(cached) " >&6
19930 else
19931 ac_check_lib_save_LIBS=$LIBS
19932 LIBS="-lc $LIBS"
19933 if test x$gcc_no_link = xyes; then
19934 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19939 /* Override any GCC internal prototype to avoid an error.
19940 Use char because int might match the return type of a GCC
19941 builtin and then its argument prototype would still apply. */
19942 #ifdef __cplusplus
19943 extern "C"
19944 #endif
19945 char getopt_long_only ();
19947 main ()
19949 return getopt_long_only ();
19951 return 0;
19953 _ACEOF
19954 if ac_fn_c_try_link "$LINENO"; then :
19955 ac_cv_lib_c_getopt_long_only=yes
19956 else
19957 ac_cv_lib_c_getopt_long_only=no
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19961 LIBS=$ac_check_lib_save_LIBS
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long_only" >&5
19964 $as_echo "$ac_cv_lib_c_getopt_long_only" >&6; }
19965 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then :
19967 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19969 else
19971 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
19975 else
19976 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then
19978 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19980 elif test "x$ac_cv_func_getopt_long_only" = xyes; then
19982 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19984 else
19986 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
19993 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
19994 if test x$gcc_no_link != xyes; then
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
19996 $as_echo_n "checking for getpid in -lc... " >&6; }
19997 if ${ac_cv_lib_c_getpid+:} false; then :
19998 $as_echo_n "(cached) " >&6
19999 else
20000 ac_check_lib_save_LIBS=$LIBS
20001 LIBS="-lc $LIBS"
20002 if test x$gcc_no_link = xyes; then
20003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char getpid ();
20016 main ()
20018 return getpid ();
20020 return 0;
20022 _ACEOF
20023 if ac_fn_c_try_link "$LINENO"; then :
20024 ac_cv_lib_c_getpid=yes
20025 else
20026 ac_cv_lib_c_getpid=no
20028 rm -f core conftest.err conftest.$ac_objext \
20029 conftest$ac_exeext conftest.$ac_ext
20030 LIBS=$ac_check_lib_save_LIBS
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
20033 $as_echo "$ac_cv_lib_c_getpid" >&6; }
20034 if test "x$ac_cv_lib_c_getpid" = xyes; then :
20036 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20038 else
20040 $as_echo "#undef HAVE_GETPID" >>confdefs.h
20044 else
20045 if test "x$ac_cv_lib_c_getpid" = xyes; then
20047 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20049 elif test "x$ac_cv_func_getpid" = xyes; then
20051 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20053 else
20055 $as_echo "#undef HAVE_GETPID" >>confdefs.h
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
20062 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
20063 if test x$gcc_no_link != xyes; then
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
20065 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
20066 if ${ac_cv_lib_c_gettimeofday+:} false; then :
20067 $as_echo_n "(cached) " >&6
20068 else
20069 ac_check_lib_save_LIBS=$LIBS
20070 LIBS="-lc $LIBS"
20071 if test x$gcc_no_link = xyes; then
20072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char gettimeofday ();
20085 main ()
20087 return gettimeofday ();
20089 return 0;
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_lib_c_gettimeofday=yes
20094 else
20095 ac_cv_lib_c_gettimeofday=no
20097 rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
20102 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
20103 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
20105 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20107 else
20109 $as_echo "#undef HAVE_GETTIMEOFDAY" >>confdefs.h
20113 else
20114 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
20116 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20118 elif test "x$ac_cv_func_gettimeofday" = xyes; then
20120 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20122 else
20124 $as_echo "#undef HAVE_GETTIMEOFDAY" >>confdefs.h
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
20131 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
20132 if test x$gcc_no_link != xyes; then
20133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
20134 $as_echo_n "checking for getuid in -lc... " >&6; }
20135 if ${ac_cv_lib_c_getuid+:} false; then :
20136 $as_echo_n "(cached) " >&6
20137 else
20138 ac_check_lib_save_LIBS=$LIBS
20139 LIBS="-lc $LIBS"
20140 if test x$gcc_no_link = xyes; then
20141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20146 /* Override any GCC internal prototype to avoid an error.
20147 Use char because int might match the return type of a GCC
20148 builtin and then its argument prototype would still apply. */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char getuid ();
20154 main ()
20156 return getuid ();
20158 return 0;
20160 _ACEOF
20161 if ac_fn_c_try_link "$LINENO"; then :
20162 ac_cv_lib_c_getuid=yes
20163 else
20164 ac_cv_lib_c_getuid=no
20166 rm -f core conftest.err conftest.$ac_objext \
20167 conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
20171 $as_echo "$ac_cv_lib_c_getuid" >&6; }
20172 if test "x$ac_cv_lib_c_getuid" = xyes; then :
20174 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20176 else
20178 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20182 else
20183 if test "x$ac_cv_lib_c_getuid" = xyes; then
20185 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20187 elif test "x$ac_cv_func_getuid" = xyes; then
20189 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20191 else
20193 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
20200 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
20201 if test x$gcc_no_link != xyes; then
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
20203 $as_echo_n "checking for ioctl in -lc... " >&6; }
20204 if ${ac_cv_lib_c_ioctl+:} false; then :
20205 $as_echo_n "(cached) " >&6
20206 else
20207 ac_check_lib_save_LIBS=$LIBS
20208 LIBS="-lc $LIBS"
20209 if test x$gcc_no_link = xyes; then
20210 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20215 /* Override any GCC internal prototype to avoid an error.
20216 Use char because int might match the return type of a GCC
20217 builtin and then its argument prototype would still apply. */
20218 #ifdef __cplusplus
20219 extern "C"
20220 #endif
20221 char ioctl ();
20223 main ()
20225 return ioctl ();
20227 return 0;
20229 _ACEOF
20230 if ac_fn_c_try_link "$LINENO"; then :
20231 ac_cv_lib_c_ioctl=yes
20232 else
20233 ac_cv_lib_c_ioctl=no
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
20240 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
20241 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
20243 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20245 else
20247 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20251 else
20252 if test "x$ac_cv_lib_c_ioctl" = xyes; then
20254 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20256 elif test "x$ac_cv_func_ioctl" = xyes; then
20258 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20260 else
20262 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
20269 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
20270 if test x$gcc_no_link != xyes; then
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
20272 $as_echo_n "checking for kill in -lc... " >&6; }
20273 if ${ac_cv_lib_c_kill+:} false; then :
20274 $as_echo_n "(cached) " >&6
20275 else
20276 ac_check_lib_save_LIBS=$LIBS
20277 LIBS="-lc $LIBS"
20278 if test x$gcc_no_link = xyes; then
20279 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20284 /* Override any GCC internal prototype to avoid an error.
20285 Use char because int might match the return type of a GCC
20286 builtin and then its argument prototype would still apply. */
20287 #ifdef __cplusplus
20288 extern "C"
20289 #endif
20290 char kill ();
20292 main ()
20294 return kill ();
20296 return 0;
20298 _ACEOF
20299 if ac_fn_c_try_link "$LINENO"; then :
20300 ac_cv_lib_c_kill=yes
20301 else
20302 ac_cv_lib_c_kill=no
20304 rm -f core conftest.err conftest.$ac_objext \
20305 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
20309 $as_echo "$ac_cv_lib_c_kill" >&6; }
20310 if test "x$ac_cv_lib_c_kill" = xyes; then :
20312 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20314 else
20316 $as_echo "#undef HAVE_KILL" >>confdefs.h
20320 else
20321 if test "x$ac_cv_lib_c_kill" = xyes; then
20323 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20325 elif test "x$ac_cv_func_kill" = xyes; then
20327 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20329 else
20331 $as_echo "#undef HAVE_KILL" >>confdefs.h
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
20338 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
20339 if test x$gcc_no_link != xyes; then
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
20341 $as_echo_n "checking for link in -lc... " >&6; }
20342 if ${ac_cv_lib_c_link+:} false; then :
20343 $as_echo_n "(cached) " >&6
20344 else
20345 ac_check_lib_save_LIBS=$LIBS
20346 LIBS="-lc $LIBS"
20347 if test x$gcc_no_link = xyes; then
20348 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20356 #ifdef __cplusplus
20357 extern "C"
20358 #endif
20359 char link ();
20361 main ()
20363 return link ();
20365 return 0;
20367 _ACEOF
20368 if ac_fn_c_try_link "$LINENO"; then :
20369 ac_cv_lib_c_link=yes
20370 else
20371 ac_cv_lib_c_link=no
20373 rm -f core conftest.err conftest.$ac_objext \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
20378 $as_echo "$ac_cv_lib_c_link" >&6; }
20379 if test "x$ac_cv_lib_c_link" = xyes; then :
20381 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20383 else
20385 $as_echo "#undef HAVE_LINK" >>confdefs.h
20389 else
20390 if test "x$ac_cv_lib_c_link" = xyes; then
20392 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20394 elif test "x$ac_cv_func_link" = xyes; then
20396 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20398 else
20400 $as_echo "#undef HAVE_LINK" >>confdefs.h
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
20407 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
20408 if test x$gcc_no_link != xyes; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
20410 $as_echo_n "checking for lseek in -lc... " >&6; }
20411 if ${ac_cv_lib_c_lseek+:} false; then :
20412 $as_echo_n "(cached) " >&6
20413 else
20414 ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lc $LIBS"
20416 if test x$gcc_no_link = xyes; then
20417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char lseek ();
20430 main ()
20432 return lseek ();
20434 return 0;
20436 _ACEOF
20437 if ac_fn_c_try_link "$LINENO"; then :
20438 ac_cv_lib_c_lseek=yes
20439 else
20440 ac_cv_lib_c_lseek=no
20442 rm -f core conftest.err conftest.$ac_objext \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
20447 $as_echo "$ac_cv_lib_c_lseek" >&6; }
20448 if test "x$ac_cv_lib_c_lseek" = xyes; then :
20450 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20452 else
20454 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20458 else
20459 if test "x$ac_cv_lib_c_lseek" = xyes; then
20461 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20463 elif test "x$ac_cv_func_lseek" = xyes; then
20465 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20467 else
20469 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
20476 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
20477 if test x$gcc_no_link != xyes; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
20479 $as_echo_n "checking for open in -lc... " >&6; }
20480 if ${ac_cv_lib_c_open+:} false; then :
20481 $as_echo_n "(cached) " >&6
20482 else
20483 ac_check_lib_save_LIBS=$LIBS
20484 LIBS="-lc $LIBS"
20485 if test x$gcc_no_link = xyes; then
20486 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20491 /* Override any GCC internal prototype to avoid an error.
20492 Use char because int might match the return type of a GCC
20493 builtin and then its argument prototype would still apply. */
20494 #ifdef __cplusplus
20495 extern "C"
20496 #endif
20497 char open ();
20499 main ()
20501 return open ();
20503 return 0;
20505 _ACEOF
20506 if ac_fn_c_try_link "$LINENO"; then :
20507 ac_cv_lib_c_open=yes
20508 else
20509 ac_cv_lib_c_open=no
20511 rm -f core conftest.err conftest.$ac_objext \
20512 conftest$ac_exeext conftest.$ac_ext
20513 LIBS=$ac_check_lib_save_LIBS
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
20516 $as_echo "$ac_cv_lib_c_open" >&6; }
20517 if test "x$ac_cv_lib_c_open" = xyes; then :
20519 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20521 else
20523 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20527 else
20528 if test "x$ac_cv_lib_c_open" = xyes; then
20530 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20532 elif test "x$ac_cv_func_open" = xyes; then
20534 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20536 else
20538 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
20545 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
20546 if test x$gcc_no_link != xyes; then
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
20548 $as_echo_n "checking for pause in -lc... " >&6; }
20549 if ${ac_cv_lib_c_pause+:} false; then :
20550 $as_echo_n "(cached) " >&6
20551 else
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-lc $LIBS"
20554 if test x$gcc_no_link = xyes; then
20555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20560 /* Override any GCC internal prototype to avoid an error.
20561 Use char because int might match the return type of a GCC
20562 builtin and then its argument prototype would still apply. */
20563 #ifdef __cplusplus
20564 extern "C"
20565 #endif
20566 char pause ();
20568 main ()
20570 return pause ();
20572 return 0;
20574 _ACEOF
20575 if ac_fn_c_try_link "$LINENO"; then :
20576 ac_cv_lib_c_pause=yes
20577 else
20578 ac_cv_lib_c_pause=no
20580 rm -f core conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
20585 $as_echo "$ac_cv_lib_c_pause" >&6; }
20586 if test "x$ac_cv_lib_c_pause" = xyes; then :
20588 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20590 else
20592 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20596 else
20597 if test "x$ac_cv_lib_c_pause" = xyes; then
20599 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20601 elif test "x$ac_cv_func_pause" = xyes; then
20603 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20605 else
20607 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
20614 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
20615 if test x$gcc_no_link != xyes; then
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
20617 $as_echo_n "checking for pipe in -lc... " >&6; }
20618 if ${ac_cv_lib_c_pipe+:} false; then :
20619 $as_echo_n "(cached) " >&6
20620 else
20621 ac_check_lib_save_LIBS=$LIBS
20622 LIBS="-lc $LIBS"
20623 if test x$gcc_no_link = xyes; then
20624 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20627 /* end confdefs.h. */
20629 /* Override any GCC internal prototype to avoid an error.
20630 Use char because int might match the return type of a GCC
20631 builtin and then its argument prototype would still apply. */
20632 #ifdef __cplusplus
20633 extern "C"
20634 #endif
20635 char pipe ();
20637 main ()
20639 return pipe ();
20641 return 0;
20643 _ACEOF
20644 if ac_fn_c_try_link "$LINENO"; then :
20645 ac_cv_lib_c_pipe=yes
20646 else
20647 ac_cv_lib_c_pipe=no
20649 rm -f core conftest.err conftest.$ac_objext \
20650 conftest$ac_exeext conftest.$ac_ext
20651 LIBS=$ac_check_lib_save_LIBS
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
20654 $as_echo "$ac_cv_lib_c_pipe" >&6; }
20655 if test "x$ac_cv_lib_c_pipe" = xyes; then :
20657 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20659 else
20661 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20665 else
20666 if test "x$ac_cv_lib_c_pipe" = xyes; then
20668 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20670 elif test "x$ac_cv_func_pipe" = xyes; then
20672 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20674 else
20676 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
20683 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
20684 if test x$gcc_no_link != xyes; then
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
20686 $as_echo_n "checking for rand in -lc... " >&6; }
20687 if ${ac_cv_lib_c_rand+:} false; then :
20688 $as_echo_n "(cached) " >&6
20689 else
20690 ac_check_lib_save_LIBS=$LIBS
20691 LIBS="-lc $LIBS"
20692 if test x$gcc_no_link = xyes; then
20693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20698 /* Override any GCC internal prototype to avoid an error.
20699 Use char because int might match the return type of a GCC
20700 builtin and then its argument prototype would still apply. */
20701 #ifdef __cplusplus
20702 extern "C"
20703 #endif
20704 char rand ();
20706 main ()
20708 return rand ();
20710 return 0;
20712 _ACEOF
20713 if ac_fn_c_try_link "$LINENO"; then :
20714 ac_cv_lib_c_rand=yes
20715 else
20716 ac_cv_lib_c_rand=no
20718 rm -f core conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
20723 $as_echo "$ac_cv_lib_c_rand" >&6; }
20724 if test "x$ac_cv_lib_c_rand" = xyes; then :
20726 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20728 else
20730 $as_echo "#undef HAVE_RAND" >>confdefs.h
20734 else
20735 if test "x$ac_cv_lib_c_rand" = xyes; then
20737 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20739 elif test "x$ac_cv_func_rand" = xyes; then
20741 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20743 else
20745 $as_echo "#undef HAVE_RAND" >>confdefs.h
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
20752 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
20753 if test x$gcc_no_link != xyes; then
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
20755 $as_echo_n "checking for read in -lc... " >&6; }
20756 if ${ac_cv_lib_c_read+:} false; then :
20757 $as_echo_n "(cached) " >&6
20758 else
20759 ac_check_lib_save_LIBS=$LIBS
20760 LIBS="-lc $LIBS"
20761 if test x$gcc_no_link = xyes; then
20762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20767 /* Override any GCC internal prototype to avoid an error.
20768 Use char because int might match the return type of a GCC
20769 builtin and then its argument prototype would still apply. */
20770 #ifdef __cplusplus
20771 extern "C"
20772 #endif
20773 char read ();
20775 main ()
20777 return read ();
20779 return 0;
20781 _ACEOF
20782 if ac_fn_c_try_link "$LINENO"; then :
20783 ac_cv_lib_c_read=yes
20784 else
20785 ac_cv_lib_c_read=no
20787 rm -f core conftest.err conftest.$ac_objext \
20788 conftest$ac_exeext conftest.$ac_ext
20789 LIBS=$ac_check_lib_save_LIBS
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
20792 $as_echo "$ac_cv_lib_c_read" >&6; }
20793 if test "x$ac_cv_lib_c_read" = xyes; then :
20795 $as_echo "#define HAVE_READ 1" >>confdefs.h
20797 else
20799 $as_echo "#undef HAVE_READ" >>confdefs.h
20803 else
20804 if test "x$ac_cv_lib_c_read" = xyes; then
20806 $as_echo "#define HAVE_READ 1" >>confdefs.h
20808 elif test "x$ac_cv_func_read" = xyes; then
20810 $as_echo "#define HAVE_READ 1" >>confdefs.h
20812 else
20814 $as_echo "#undef HAVE_READ" >>confdefs.h
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
20821 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
20822 if test x$gcc_no_link != xyes; then
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
20824 $as_echo_n "checking for select in -lc... " >&6; }
20825 if ${ac_cv_lib_c_select+:} false; then :
20826 $as_echo_n "(cached) " >&6
20827 else
20828 ac_check_lib_save_LIBS=$LIBS
20829 LIBS="-lc $LIBS"
20830 if test x$gcc_no_link = xyes; then
20831 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834 /* end confdefs.h. */
20836 /* Override any GCC internal prototype to avoid an error.
20837 Use char because int might match the return type of a GCC
20838 builtin and then its argument prototype would still apply. */
20839 #ifdef __cplusplus
20840 extern "C"
20841 #endif
20842 char select ();
20844 main ()
20846 return select ();
20848 return 0;
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"; then :
20852 ac_cv_lib_c_select=yes
20853 else
20854 ac_cv_lib_c_select=no
20856 rm -f core conftest.err conftest.$ac_objext \
20857 conftest$ac_exeext conftest.$ac_ext
20858 LIBS=$ac_check_lib_save_LIBS
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
20861 $as_echo "$ac_cv_lib_c_select" >&6; }
20862 if test "x$ac_cv_lib_c_select" = xyes; then :
20864 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20866 else
20868 $as_echo "#undef HAVE_SELECT" >>confdefs.h
20872 else
20873 if test "x$ac_cv_lib_c_select" = xyes; then
20875 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20877 elif test "x$ac_cv_func_select" = xyes; then
20879 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20881 else
20883 $as_echo "#undef HAVE_SELECT" >>confdefs.h
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
20890 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
20891 if test x$gcc_no_link != xyes; then
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
20893 $as_echo_n "checking for setitimer in -lc... " >&6; }
20894 if ${ac_cv_lib_c_setitimer+:} false; then :
20895 $as_echo_n "(cached) " >&6
20896 else
20897 ac_check_lib_save_LIBS=$LIBS
20898 LIBS="-lc $LIBS"
20899 if test x$gcc_no_link = xyes; then
20900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20905 /* Override any GCC internal prototype to avoid an error.
20906 Use char because int might match the return type of a GCC
20907 builtin and then its argument prototype would still apply. */
20908 #ifdef __cplusplus
20909 extern "C"
20910 #endif
20911 char setitimer ();
20913 main ()
20915 return setitimer ();
20917 return 0;
20919 _ACEOF
20920 if ac_fn_c_try_link "$LINENO"; then :
20921 ac_cv_lib_c_setitimer=yes
20922 else
20923 ac_cv_lib_c_setitimer=no
20925 rm -f core conftest.err conftest.$ac_objext \
20926 conftest$ac_exeext conftest.$ac_ext
20927 LIBS=$ac_check_lib_save_LIBS
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
20930 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
20931 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
20933 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20935 else
20937 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
20941 else
20942 if test "x$ac_cv_lib_c_setitimer" = xyes; then
20944 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20946 elif test "x$ac_cv_func_setitimer" = xyes; then
20948 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20950 else
20952 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
20959 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
20960 if test x$gcc_no_link != xyes; then
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
20962 $as_echo_n "checking for setgid in -lc... " >&6; }
20963 if ${ac_cv_lib_c_setgid+:} false; then :
20964 $as_echo_n "(cached) " >&6
20965 else
20966 ac_check_lib_save_LIBS=$LIBS
20967 LIBS="-lc $LIBS"
20968 if test x$gcc_no_link = xyes; then
20969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972 /* end confdefs.h. */
20974 /* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20977 #ifdef __cplusplus
20978 extern "C"
20979 #endif
20980 char setgid ();
20982 main ()
20984 return setgid ();
20986 return 0;
20988 _ACEOF
20989 if ac_fn_c_try_link "$LINENO"; then :
20990 ac_cv_lib_c_setgid=yes
20991 else
20992 ac_cv_lib_c_setgid=no
20994 rm -f core conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext
20996 LIBS=$ac_check_lib_save_LIBS
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
20999 $as_echo "$ac_cv_lib_c_setgid" >&6; }
21000 if test "x$ac_cv_lib_c_setgid" = xyes; then :
21002 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
21004 else
21006 $as_echo "#undef HAVE_SETGID" >>confdefs.h
21010 else
21011 if test "x$ac_cv_lib_c_setgid" = xyes; then
21013 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
21015 elif test "x$ac_cv_func_setgid" = xyes; then
21017 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
21019 else
21021 $as_echo "#undef HAVE_SETGID" >>confdefs.h
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for settimeofday" >&5
21028 $as_echo_n "checking m2 front end checking c library for settimeofday... " >&6; }
21029 if test x$gcc_no_link != xyes; then
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for settimeofday in -lc" >&5
21031 $as_echo_n "checking for settimeofday in -lc... " >&6; }
21032 if ${ac_cv_lib_c_settimeofday+:} false; then :
21033 $as_echo_n "(cached) " >&6
21034 else
21035 ac_check_lib_save_LIBS=$LIBS
21036 LIBS="-lc $LIBS"
21037 if test x$gcc_no_link = xyes; then
21038 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21043 /* Override any GCC internal prototype to avoid an error.
21044 Use char because int might match the return type of a GCC
21045 builtin and then its argument prototype would still apply. */
21046 #ifdef __cplusplus
21047 extern "C"
21048 #endif
21049 char settimeofday ();
21051 main ()
21053 return settimeofday ();
21055 return 0;
21057 _ACEOF
21058 if ac_fn_c_try_link "$LINENO"; then :
21059 ac_cv_lib_c_settimeofday=yes
21060 else
21061 ac_cv_lib_c_settimeofday=no
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21065 LIBS=$ac_check_lib_save_LIBS
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_settimeofday" >&5
21068 $as_echo "$ac_cv_lib_c_settimeofday" >&6; }
21069 if test "x$ac_cv_lib_c_settimeofday" = xyes; then :
21071 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21073 else
21075 $as_echo "#undef HAVE_SETTIMEOFDAY" >>confdefs.h
21079 else
21080 if test "x$ac_cv_lib_c_settimeofday" = xyes; then
21082 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21084 elif test "x$ac_cv_func_settimeofday" = xyes; then
21086 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21088 else
21090 $as_echo "#undef HAVE_SETTIMEOFDAY" >>confdefs.h
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
21097 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
21098 if test x$gcc_no_link != xyes; then
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
21100 $as_echo_n "checking for setuid in -lc... " >&6; }
21101 if ${ac_cv_lib_c_setuid+:} false; then :
21102 $as_echo_n "(cached) " >&6
21103 else
21104 ac_check_lib_save_LIBS=$LIBS
21105 LIBS="-lc $LIBS"
21106 if test x$gcc_no_link = xyes; then
21107 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21110 /* end confdefs.h. */
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21115 #ifdef __cplusplus
21116 extern "C"
21117 #endif
21118 char setuid ();
21120 main ()
21122 return setuid ();
21124 return 0;
21126 _ACEOF
21127 if ac_fn_c_try_link "$LINENO"; then :
21128 ac_cv_lib_c_setuid=yes
21129 else
21130 ac_cv_lib_c_setuid=no
21132 rm -f core conftest.err conftest.$ac_objext \
21133 conftest$ac_exeext conftest.$ac_ext
21134 LIBS=$ac_check_lib_save_LIBS
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
21137 $as_echo "$ac_cv_lib_c_setuid" >&6; }
21138 if test "x$ac_cv_lib_c_setuid" = xyes; then :
21140 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21142 else
21144 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21148 else
21149 if test "x$ac_cv_lib_c_setuid" = xyes; then
21151 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21153 elif test "x$ac_cv_func_setuid" = xyes; then
21155 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21157 else
21159 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
21166 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
21167 if test x$gcc_no_link != xyes; then
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
21169 $as_echo_n "checking for stat in -lc... " >&6; }
21170 if ${ac_cv_lib_c_stat+:} false; then :
21171 $as_echo_n "(cached) " >&6
21172 else
21173 ac_check_lib_save_LIBS=$LIBS
21174 LIBS="-lc $LIBS"
21175 if test x$gcc_no_link = xyes; then
21176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21181 /* Override any GCC internal prototype to avoid an error.
21182 Use char because int might match the return type of a GCC
21183 builtin and then its argument prototype would still apply. */
21184 #ifdef __cplusplus
21185 extern "C"
21186 #endif
21187 char stat ();
21189 main ()
21191 return stat ();
21193 return 0;
21195 _ACEOF
21196 if ac_fn_c_try_link "$LINENO"; then :
21197 ac_cv_lib_c_stat=yes
21198 else
21199 ac_cv_lib_c_stat=no
21201 rm -f core conftest.err conftest.$ac_objext \
21202 conftest$ac_exeext conftest.$ac_ext
21203 LIBS=$ac_check_lib_save_LIBS
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
21206 $as_echo "$ac_cv_lib_c_stat" >&6; }
21207 if test "x$ac_cv_lib_c_stat" = xyes; then :
21209 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21211 else
21213 $as_echo "#undef HAVE_STAT" >>confdefs.h
21217 else
21218 if test "x$ac_cv_lib_c_stat" = xyes; then
21220 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21222 elif test "x$ac_cv_func_stat" = xyes; then
21224 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21226 else
21228 $as_echo "#undef HAVE_STAT" >>confdefs.h
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
21235 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
21236 if test x$gcc_no_link != xyes; then
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
21238 $as_echo_n "checking for strsignal in -lc... " >&6; }
21239 if ${ac_cv_lib_c_strsignal+:} false; then :
21240 $as_echo_n "(cached) " >&6
21241 else
21242 ac_check_lib_save_LIBS=$LIBS
21243 LIBS="-lc $LIBS"
21244 if test x$gcc_no_link = xyes; then
21245 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248 /* end confdefs.h. */
21250 /* Override any GCC internal prototype to avoid an error.
21251 Use char because int might match the return type of a GCC
21252 builtin and then its argument prototype would still apply. */
21253 #ifdef __cplusplus
21254 extern "C"
21255 #endif
21256 char strsignal ();
21258 main ()
21260 return strsignal ();
21262 return 0;
21264 _ACEOF
21265 if ac_fn_c_try_link "$LINENO"; then :
21266 ac_cv_lib_c_strsignal=yes
21267 else
21268 ac_cv_lib_c_strsignal=no
21270 rm -f core conftest.err conftest.$ac_objext \
21271 conftest$ac_exeext conftest.$ac_ext
21272 LIBS=$ac_check_lib_save_LIBS
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
21275 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
21276 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
21278 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21280 else
21282 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21286 else
21287 if test "x$ac_cv_lib_c_strsignal" = xyes; then
21289 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21291 elif test "x$ac_cv_func_strsignal" = xyes; then
21293 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21295 else
21297 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
21304 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
21305 if test x$gcc_no_link != xyes; then
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
21307 $as_echo_n "checking for strtod in -lc... " >&6; }
21308 if ${ac_cv_lib_c_strtod+:} false; then :
21309 $as_echo_n "(cached) " >&6
21310 else
21311 ac_check_lib_save_LIBS=$LIBS
21312 LIBS="-lc $LIBS"
21313 if test x$gcc_no_link = xyes; then
21314 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21319 /* Override any GCC internal prototype to avoid an error.
21320 Use char because int might match the return type of a GCC
21321 builtin and then its argument prototype would still apply. */
21322 #ifdef __cplusplus
21323 extern "C"
21324 #endif
21325 char strtod ();
21327 main ()
21329 return strtod ();
21331 return 0;
21333 _ACEOF
21334 if ac_fn_c_try_link "$LINENO"; then :
21335 ac_cv_lib_c_strtod=yes
21336 else
21337 ac_cv_lib_c_strtod=no
21339 rm -f core conftest.err conftest.$ac_objext \
21340 conftest$ac_exeext conftest.$ac_ext
21341 LIBS=$ac_check_lib_save_LIBS
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
21344 $as_echo "$ac_cv_lib_c_strtod" >&6; }
21345 if test "x$ac_cv_lib_c_strtod" = xyes; then :
21347 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21349 else
21351 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21355 else
21356 if test "x$ac_cv_lib_c_strtod" = xyes; then
21358 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21360 elif test "x$ac_cv_func_strtod" = xyes; then
21362 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21364 else
21366 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
21373 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
21374 if test x$gcc_no_link != xyes; then
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
21376 $as_echo_n "checking for strtold in -lc... " >&6; }
21377 if ${ac_cv_lib_c_strtold+:} false; then :
21378 $as_echo_n "(cached) " >&6
21379 else
21380 ac_check_lib_save_LIBS=$LIBS
21381 LIBS="-lc $LIBS"
21382 if test x$gcc_no_link = xyes; then
21383 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21388 /* Override any GCC internal prototype to avoid an error.
21389 Use char because int might match the return type of a GCC
21390 builtin and then its argument prototype would still apply. */
21391 #ifdef __cplusplus
21392 extern "C"
21393 #endif
21394 char strtold ();
21396 main ()
21398 return strtold ();
21400 return 0;
21402 _ACEOF
21403 if ac_fn_c_try_link "$LINENO"; then :
21404 ac_cv_lib_c_strtold=yes
21405 else
21406 ac_cv_lib_c_strtold=no
21408 rm -f core conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21410 LIBS=$ac_check_lib_save_LIBS
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
21413 $as_echo "$ac_cv_lib_c_strtold" >&6; }
21414 if test "x$ac_cv_lib_c_strtold" = xyes; then :
21416 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21418 else
21420 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21424 else
21425 if test "x$ac_cv_lib_c_strtold" = xyes; then
21427 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21429 elif test "x$ac_cv_func_strtold" = xyes; then
21431 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21433 else
21435 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
21442 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
21443 if test x$gcc_no_link != xyes; then
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
21445 $as_echo_n "checking for times in -lc... " >&6; }
21446 if ${ac_cv_lib_c_times+:} false; then :
21447 $as_echo_n "(cached) " >&6
21448 else
21449 ac_check_lib_save_LIBS=$LIBS
21450 LIBS="-lc $LIBS"
21451 if test x$gcc_no_link = xyes; then
21452 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21457 /* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
21460 #ifdef __cplusplus
21461 extern "C"
21462 #endif
21463 char times ();
21465 main ()
21467 return times ();
21469 return 0;
21471 _ACEOF
21472 if ac_fn_c_try_link "$LINENO"; then :
21473 ac_cv_lib_c_times=yes
21474 else
21475 ac_cv_lib_c_times=no
21477 rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
21479 LIBS=$ac_check_lib_save_LIBS
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
21482 $as_echo "$ac_cv_lib_c_times" >&6; }
21483 if test "x$ac_cv_lib_c_times" = xyes; then :
21485 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21487 else
21489 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21493 else
21494 if test "x$ac_cv_lib_c_times" = xyes; then
21496 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21498 elif test "x$ac_cv_func_times" = xyes; then
21500 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21502 else
21504 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
21511 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
21512 if test x$gcc_no_link != xyes; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
21514 $as_echo_n "checking for timezone in -lc... " >&6; }
21515 if ${ac_cv_lib_c_timezone+:} false; then :
21516 $as_echo_n "(cached) " >&6
21517 else
21518 ac_check_lib_save_LIBS=$LIBS
21519 LIBS="-lc $LIBS"
21520 if test x$gcc_no_link = xyes; then
21521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21526 /* Override any GCC internal prototype to avoid an error.
21527 Use char because int might match the return type of a GCC
21528 builtin and then its argument prototype would still apply. */
21529 #ifdef __cplusplus
21530 extern "C"
21531 #endif
21532 char timezone ();
21534 main ()
21536 return timezone ();
21538 return 0;
21540 _ACEOF
21541 if ac_fn_c_try_link "$LINENO"; then :
21542 ac_cv_lib_c_timezone=yes
21543 else
21544 ac_cv_lib_c_timezone=no
21546 rm -f core conftest.err conftest.$ac_objext \
21547 conftest$ac_exeext conftest.$ac_ext
21548 LIBS=$ac_check_lib_save_LIBS
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
21551 $as_echo "$ac_cv_lib_c_timezone" >&6; }
21552 if test "x$ac_cv_lib_c_timezone" = xyes; then :
21554 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21556 else
21558 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21562 else
21563 if test "x$ac_cv_lib_c_timezone" = xyes; then
21565 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21567 elif test "x$ac_cv_func_timezone" = xyes; then
21569 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21571 else
21573 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
21580 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
21581 if test x$gcc_no_link != xyes; then
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
21583 $as_echo_n "checking for tzname in -lc... " >&6; }
21584 if ${ac_cv_lib_c_tzname+:} false; then :
21585 $as_echo_n "(cached) " >&6
21586 else
21587 ac_check_lib_save_LIBS=$LIBS
21588 LIBS="-lc $LIBS"
21589 if test x$gcc_no_link = xyes; then
21590 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21593 /* end confdefs.h. */
21595 /* Override any GCC internal prototype to avoid an error.
21596 Use char because int might match the return type of a GCC
21597 builtin and then its argument prototype would still apply. */
21598 #ifdef __cplusplus
21599 extern "C"
21600 #endif
21601 char tzname ();
21603 main ()
21605 return tzname ();
21607 return 0;
21609 _ACEOF
21610 if ac_fn_c_try_link "$LINENO"; then :
21611 ac_cv_lib_c_tzname=yes
21612 else
21613 ac_cv_lib_c_tzname=no
21615 rm -f core conftest.err conftest.$ac_objext \
21616 conftest$ac_exeext conftest.$ac_ext
21617 LIBS=$ac_check_lib_save_LIBS
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
21620 $as_echo "$ac_cv_lib_c_tzname" >&6; }
21621 if test "x$ac_cv_lib_c_tzname" = xyes; then :
21623 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21625 else
21627 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21631 else
21632 if test "x$ac_cv_lib_c_tzname" = xyes; then
21634 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21636 elif test "x$ac_cv_func_tzname" = xyes; then
21638 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21640 else
21642 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
21649 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
21650 if test x$gcc_no_link != xyes; then
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
21652 $as_echo_n "checking for unlink in -lc... " >&6; }
21653 if ${ac_cv_lib_c_unlink+:} false; then :
21654 $as_echo_n "(cached) " >&6
21655 else
21656 ac_check_lib_save_LIBS=$LIBS
21657 LIBS="-lc $LIBS"
21658 if test x$gcc_no_link = xyes; then
21659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21662 /* end confdefs.h. */
21664 /* Override any GCC internal prototype to avoid an error.
21665 Use char because int might match the return type of a GCC
21666 builtin and then its argument prototype would still apply. */
21667 #ifdef __cplusplus
21668 extern "C"
21669 #endif
21670 char unlink ();
21672 main ()
21674 return unlink ();
21676 return 0;
21678 _ACEOF
21679 if ac_fn_c_try_link "$LINENO"; then :
21680 ac_cv_lib_c_unlink=yes
21681 else
21682 ac_cv_lib_c_unlink=no
21684 rm -f core conftest.err conftest.$ac_objext \
21685 conftest$ac_exeext conftest.$ac_ext
21686 LIBS=$ac_check_lib_save_LIBS
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
21689 $as_echo "$ac_cv_lib_c_unlink" >&6; }
21690 if test "x$ac_cv_lib_c_unlink" = xyes; then :
21692 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21694 else
21696 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21700 else
21701 if test "x$ac_cv_lib_c_unlink" = xyes; then
21703 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21705 elif test "x$ac_cv_func_unlink" = xyes; then
21707 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21709 else
21711 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
21718 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
21719 if test x$gcc_no_link != xyes; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
21721 $as_echo_n "checking for wait in -lc... " >&6; }
21722 if ${ac_cv_lib_c_wait+:} false; then :
21723 $as_echo_n "(cached) " >&6
21724 else
21725 ac_check_lib_save_LIBS=$LIBS
21726 LIBS="-lc $LIBS"
21727 if test x$gcc_no_link = xyes; then
21728 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h. */
21733 /* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736 #ifdef __cplusplus
21737 extern "C"
21738 #endif
21739 char wait ();
21741 main ()
21743 return wait ();
21745 return 0;
21747 _ACEOF
21748 if ac_fn_c_try_link "$LINENO"; then :
21749 ac_cv_lib_c_wait=yes
21750 else
21751 ac_cv_lib_c_wait=no
21753 rm -f core conftest.err conftest.$ac_objext \
21754 conftest$ac_exeext conftest.$ac_ext
21755 LIBS=$ac_check_lib_save_LIBS
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
21758 $as_echo "$ac_cv_lib_c_wait" >&6; }
21759 if test "x$ac_cv_lib_c_wait" = xyes; then :
21761 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21763 else
21765 $as_echo "#undef HAVE_WAIT" >>confdefs.h
21769 else
21770 if test "x$ac_cv_lib_c_wait" = xyes; then
21772 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21774 elif test "x$ac_cv_func_wait" = xyes; then
21776 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21778 else
21780 $as_echo "#undef HAVE_WAIT" >>confdefs.h
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
21787 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
21788 if test x$gcc_no_link != xyes; then
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
21790 $as_echo_n "checking for write in -lc... " >&6; }
21791 if ${ac_cv_lib_c_write+:} false; then :
21792 $as_echo_n "(cached) " >&6
21793 else
21794 ac_check_lib_save_LIBS=$LIBS
21795 LIBS="-lc $LIBS"
21796 if test x$gcc_no_link = xyes; then
21797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21805 #ifdef __cplusplus
21806 extern "C"
21807 #endif
21808 char write ();
21810 main ()
21812 return write ();
21814 return 0;
21816 _ACEOF
21817 if ac_fn_c_try_link "$LINENO"; then :
21818 ac_cv_lib_c_write=yes
21819 else
21820 ac_cv_lib_c_write=no
21822 rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21824 LIBS=$ac_check_lib_save_LIBS
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
21827 $as_echo "$ac_cv_lib_c_write" >&6; }
21828 if test "x$ac_cv_lib_c_write" = xyes; then :
21830 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21832 else
21834 $as_echo "#undef HAVE_WRITE" >>confdefs.h
21838 else
21839 if test "x$ac_cv_lib_c_write" = xyes; then
21841 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21843 elif test "x$ac_cv_func_write" = xyes; then
21845 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21847 else
21849 $as_echo "#undef HAVE_WRITE" >>confdefs.h
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10" >&5
21857 $as_echo_n "checking m2 front end checking m library for exp10... " >&6; }
21858 if test x$gcc_no_link != xyes; then
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5
21860 $as_echo_n "checking for exp10 in -lm... " >&6; }
21861 if ${ac_cv_lib_m_exp10+:} false; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 ac_check_lib_save_LIBS=$LIBS
21865 LIBS="-lm $LIBS"
21866 if test x$gcc_no_link = xyes; then
21867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21872 /* Override any GCC internal prototype to avoid an error.
21873 Use char because int might match the return type of a GCC
21874 builtin and then its argument prototype would still apply. */
21875 #ifdef __cplusplus
21876 extern "C"
21877 #endif
21878 char exp10 ();
21880 main ()
21882 return exp10 ();
21884 return 0;
21886 _ACEOF
21887 if ac_fn_c_try_link "$LINENO"; then :
21888 ac_cv_lib_m_exp10=yes
21889 else
21890 ac_cv_lib_m_exp10=no
21892 rm -f core conftest.err conftest.$ac_objext \
21893 conftest$ac_exeext conftest.$ac_ext
21894 LIBS=$ac_check_lib_save_LIBS
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5
21897 $as_echo "$ac_cv_lib_m_exp10" >&6; }
21898 if test "x$ac_cv_lib_m_exp10" = xyes; then :
21900 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
21902 else
21904 $as_echo "#undef HAVE_EXP10" >>confdefs.h
21908 else
21909 if test "x$ac_cv_lib_m_exp10" = xyes; then
21911 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
21913 elif test "x$ac_cv_func_exp10" = xyes; then
21915 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
21917 else
21919 $as_echo "#undef HAVE_EXP10" >>confdefs.h
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10f" >&5
21926 $as_echo_n "checking m2 front end checking m library for exp10f... " >&6; }
21927 if test x$gcc_no_link != xyes; then
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10f in -lm" >&5
21929 $as_echo_n "checking for exp10f in -lm... " >&6; }
21930 if ${ac_cv_lib_m_exp10f+:} false; then :
21931 $as_echo_n "(cached) " >&6
21932 else
21933 ac_check_lib_save_LIBS=$LIBS
21934 LIBS="-lm $LIBS"
21935 if test x$gcc_no_link = xyes; then
21936 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h. */
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21944 #ifdef __cplusplus
21945 extern "C"
21946 #endif
21947 char exp10f ();
21949 main ()
21951 return exp10f ();
21953 return 0;
21955 _ACEOF
21956 if ac_fn_c_try_link "$LINENO"; then :
21957 ac_cv_lib_m_exp10f=yes
21958 else
21959 ac_cv_lib_m_exp10f=no
21961 rm -f core conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21963 LIBS=$ac_check_lib_save_LIBS
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10f" >&5
21966 $as_echo "$ac_cv_lib_m_exp10f" >&6; }
21967 if test "x$ac_cv_lib_m_exp10f" = xyes; then :
21969 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
21971 else
21973 $as_echo "#undef HAVE_EXP10F" >>confdefs.h
21977 else
21978 if test "x$ac_cv_lib_m_exp10f" = xyes; then
21980 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
21982 elif test "x$ac_cv_func_exp10f" = xyes; then
21984 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
21986 else
21988 $as_echo "#undef HAVE_EXP10F" >>confdefs.h
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10l" >&5
21995 $as_echo_n "checking m2 front end checking m library for exp10l... " >&6; }
21996 if test x$gcc_no_link != xyes; then
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10l in -lm" >&5
21998 $as_echo_n "checking for exp10l in -lm... " >&6; }
21999 if ${ac_cv_lib_m_exp10l+:} false; then :
22000 $as_echo_n "(cached) " >&6
22001 else
22002 ac_check_lib_save_LIBS=$LIBS
22003 LIBS="-lm $LIBS"
22004 if test x$gcc_no_link = xyes; then
22005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22008 /* end confdefs.h. */
22010 /* Override any GCC internal prototype to avoid an error.
22011 Use char because int might match the return type of a GCC
22012 builtin and then its argument prototype would still apply. */
22013 #ifdef __cplusplus
22014 extern "C"
22015 #endif
22016 char exp10l ();
22018 main ()
22020 return exp10l ();
22022 return 0;
22024 _ACEOF
22025 if ac_fn_c_try_link "$LINENO"; then :
22026 ac_cv_lib_m_exp10l=yes
22027 else
22028 ac_cv_lib_m_exp10l=no
22030 rm -f core conftest.err conftest.$ac_objext \
22031 conftest$ac_exeext conftest.$ac_ext
22032 LIBS=$ac_check_lib_save_LIBS
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10l" >&5
22035 $as_echo "$ac_cv_lib_m_exp10l" >&6; }
22036 if test "x$ac_cv_lib_m_exp10l" = xyes; then :
22038 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22040 else
22042 $as_echo "#undef HAVE_EXP10L" >>confdefs.h
22046 else
22047 if test "x$ac_cv_lib_m_exp10l" = xyes; then
22049 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22051 elif test "x$ac_cv_func_exp10l" = xyes; then
22053 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22055 else
22057 $as_echo "#undef HAVE_EXP10L" >>confdefs.h
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
22064 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
22065 if test x$gcc_no_link != xyes; then
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
22067 $as_echo_n "checking for signbit in -lm... " >&6; }
22068 if ${ac_cv_lib_m_signbit+:} false; then :
22069 $as_echo_n "(cached) " >&6
22070 else
22071 ac_check_lib_save_LIBS=$LIBS
22072 LIBS="-lm $LIBS"
22073 if test x$gcc_no_link = xyes; then
22074 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22079 /* Override any GCC internal prototype to avoid an error.
22080 Use char because int might match the return type of a GCC
22081 builtin and then its argument prototype would still apply. */
22082 #ifdef __cplusplus
22083 extern "C"
22084 #endif
22085 char signbit ();
22087 main ()
22089 return signbit ();
22091 return 0;
22093 _ACEOF
22094 if ac_fn_c_try_link "$LINENO"; then :
22095 ac_cv_lib_m_signbit=yes
22096 else
22097 ac_cv_lib_m_signbit=no
22099 rm -f core conftest.err conftest.$ac_objext \
22100 conftest$ac_exeext conftest.$ac_ext
22101 LIBS=$ac_check_lib_save_LIBS
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
22104 $as_echo "$ac_cv_lib_m_signbit" >&6; }
22105 if test "x$ac_cv_lib_m_signbit" = xyes; then :
22107 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22109 else
22111 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
22115 else
22116 if test "x$ac_cv_lib_m_signbit" = xyes; then
22118 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22120 elif test "x$ac_cv_func_signbit" = xyes; then
22122 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22124 else
22126 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
22133 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
22134 if test x$gcc_no_link != xyes; then
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
22136 $as_echo_n "checking for signbitf in -lm... " >&6; }
22137 if ${ac_cv_lib_m_signbitf+:} false; then :
22138 $as_echo_n "(cached) " >&6
22139 else
22140 ac_check_lib_save_LIBS=$LIBS
22141 LIBS="-lm $LIBS"
22142 if test x$gcc_no_link = xyes; then
22143 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22146 /* end confdefs.h. */
22148 /* Override any GCC internal prototype to avoid an error.
22149 Use char because int might match the return type of a GCC
22150 builtin and then its argument prototype would still apply. */
22151 #ifdef __cplusplus
22152 extern "C"
22153 #endif
22154 char signbitf ();
22156 main ()
22158 return signbitf ();
22160 return 0;
22162 _ACEOF
22163 if ac_fn_c_try_link "$LINENO"; then :
22164 ac_cv_lib_m_signbitf=yes
22165 else
22166 ac_cv_lib_m_signbitf=no
22168 rm -f core conftest.err conftest.$ac_objext \
22169 conftest$ac_exeext conftest.$ac_ext
22170 LIBS=$ac_check_lib_save_LIBS
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
22173 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
22174 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
22176 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22178 else
22180 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
22184 else
22185 if test "x$ac_cv_lib_m_signbitf" = xyes; then
22187 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22189 elif test "x$ac_cv_func_signbitf" = xyes; then
22191 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22193 else
22195 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
22202 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
22203 if test x$gcc_no_link != xyes; then
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
22205 $as_echo_n "checking for signbitl in -lm... " >&6; }
22206 if ${ac_cv_lib_m_signbitl+:} false; then :
22207 $as_echo_n "(cached) " >&6
22208 else
22209 ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lm $LIBS"
22211 if test x$gcc_no_link = xyes; then
22212 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22217 /* Override any GCC internal prototype to avoid an error.
22218 Use char because int might match the return type of a GCC
22219 builtin and then its argument prototype would still apply. */
22220 #ifdef __cplusplus
22221 extern "C"
22222 #endif
22223 char signbitl ();
22225 main ()
22227 return signbitl ();
22229 return 0;
22231 _ACEOF
22232 if ac_fn_c_try_link "$LINENO"; then :
22233 ac_cv_lib_m_signbitl=yes
22234 else
22235 ac_cv_lib_m_signbitl=no
22237 rm -f core conftest.err conftest.$ac_objext \
22238 conftest$ac_exeext conftest.$ac_ext
22239 LIBS=$ac_check_lib_save_LIBS
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
22242 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
22243 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
22245 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22247 else
22249 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
22253 else
22254 if test "x$ac_cv_lib_m_signbitl" = xyes; then
22256 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22258 elif test "x$ac_cv_func_signbitl" = xyes; then
22260 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22262 else
22264 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
22270 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22271 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22272 ac_have_decl=1
22273 else
22274 ac_have_decl=0
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_DECL_GETENV $ac_have_decl
22279 _ACEOF
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
22283 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
22285 # We test the host here and later on check the target.
22287 # All known M2_HOST_OS values. This is the union of all host operating systems
22288 # supported by gm2.
22290 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
22292 M2_HOST_OS=unknown
22294 case ${host} in
22295 *-*-darwin*) M2_HOST_OS=darwin ;;
22296 *-*-freebsd*) M2_HOST_OS=freebsd ;;
22297 *-*-linux*) M2_HOST_OS=linux ;;
22298 *-*-netbsd*) M2_HOST_OS=netbsd ;;
22299 *-*-openbsd*) M2_HOST_OS=openbsd ;;
22300 *-*-solaris2*) M2_HOST_OS=solaris ;;
22301 *-*-aix*) M2_HOST_OS=aix ;;
22302 *-*-gnu*) M2_HOST_OS=hurd ;;
22303 esac
22305 M2_TARGET_OS=unknown
22307 case ${target} in
22308 *-*-darwin*) M2_TARGET_OS=darwin ;;
22309 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
22310 *-*-linux*) M2_TARGET_OS=linux ;;
22311 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
22312 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
22313 *-*-solaris2*) M2_TARGET_OS=solaris ;;
22314 *-*-aix*) M2_TARGET_OS=aix ;;
22315 *-*-gnu*) M2_TARGET_OS=hurd ;;
22316 esac
22318 # M2_HOST_OS=unknown
22319 if test x${M2_HOST_OS} = xunknown; then
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
22321 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
22322 BUILD_PIMLIB=false
22323 BUILD_ISOLIB=false
22324 BUILD_CORLIB=false
22325 BUILD_LOGLIB=false
22326 else
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
22328 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
22329 BUILD_PIMLIB=true
22330 BUILD_ISOLIB=true
22331 BUILD_CORLIB=true
22332 BUILD_LOGLIB=true
22335 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
22338 # Propagate GM2_FOR_TARGET into Makefiles
22339 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
22342 # Now we check the target as long as it is a supported host.
22343 # For some embedded targets we choose minimal runtime system which is
22344 # just enough to satisfy the linker targetting raw metal.
22345 if test x${M2_HOST_OS} != xunknown; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
22347 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
22348 case "$target" in
22350 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
22351 BUILD_PIMLIB=false
22352 BUILD_ISOLIB=false
22353 BUILD_CORLIB=false
22354 BUILD_LOGLIB=false
22357 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
22358 BUILD_PIMLIB=false
22359 BUILD_ISOLIB=false
22360 BUILD_CORLIB=false
22361 BUILD_LOGLIB=false
22364 avr3-*-*)
22365 BUILD_PIMLIB=true
22366 BUILD_ISOLIB=true
22367 BUILD_CORLIB=true
22368 BUILD_LOGLIB=true
22370 esp32-*-*)
22371 BUILD_PIMLIB=false
22372 BUILD_ISOLIB=false
22373 BUILD_CORLIB=false
22374 BUILD_LOGLIB=false
22377 esac
22380 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
22381 # in the second parameter is printed as a "yes" or "no".
22385 if test x${M2_HOST_OS} = xunknown; then
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
22387 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
22388 else
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
22391 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
22392 if test x${BUILD_PIMLIB} = xtrue; then
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22394 $as_echo "yes" >&6; }
22395 else
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22397 $as_echo "no" >&6; }
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
22402 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
22403 if test x${BUILD_ISOLIB} = xtrue; then
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22405 $as_echo "yes" >&6; }
22406 else
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
22413 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
22414 if test x${BUILD_CORLIB} = xtrue; then
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22416 $as_echo "yes" >&6; }
22417 else
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22419 $as_echo "no" >&6; }
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
22424 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
22425 if test x${BUILD_LOGLIB} = xtrue; then
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427 $as_echo "yes" >&6; }
22428 else
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22430 $as_echo "no" >&6; }
22435 if test x$BUILD_PIMLIB = xtrue; then
22436 BUILD_PIMLIB_TRUE=
22437 BUILD_PIMLIB_FALSE='#'
22438 else
22439 BUILD_PIMLIB_TRUE='#'
22440 BUILD_PIMLIB_FALSE=
22443 if test x$BUILD_ISOLIB = xtrue; then
22444 BUILD_ISOLIB_TRUE=
22445 BUILD_ISOLIB_FALSE='#'
22446 else
22447 BUILD_ISOLIB_TRUE='#'
22448 BUILD_ISOLIB_FALSE=
22451 if test x$BUILD_CORLIB = xtrue; then
22452 BUILD_CORLIB_TRUE=
22453 BUILD_CORLIB_FALSE='#'
22454 else
22455 BUILD_CORLIB_TRUE='#'
22456 BUILD_CORLIB_FALSE=
22459 if test x$BUILD_LOGLIB = xtrue; then
22460 BUILD_LOGLIB_TRUE=
22461 BUILD_LOGLIB_FALSE='#'
22462 else
22463 BUILD_LOGLIB_TRUE='#'
22464 BUILD_LOGLIB_FALSE=
22467 if test x$M2_TARGET_OS = xdarwin; then
22468 TARGET_DARWIN_TRUE=
22469 TARGET_DARWIN_FALSE='#'
22470 else
22471 TARGET_DARWIN_TRUE='#'
22472 TARGET_DARWIN_FALSE=
22476 # Determine what GCC version number to use in filesystem paths.
22478 get_gcc_base_ver="cat"
22480 # Check whether --with-gcc-major-version-only was given.
22481 if test "${with_gcc_major_version_only+set}" = set; then :
22482 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
22483 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
22492 ac_config_files="$ac_config_files Makefile"
22495 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
22499 $as_echo "$as_me: libgm2 has been configured." >&6;}
22501 cat >confcache <<\_ACEOF
22502 # This file is a shell script that caches the results of configure
22503 # tests run on this system so they can be shared between configure
22504 # scripts and configure runs, see configure's option --config-cache.
22505 # It is not useful on other systems. If it contains results you don't
22506 # want to keep, you may remove or edit it.
22508 # config.status only pays attention to the cache file if you give it
22509 # the --recheck option to rerun configure.
22511 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22512 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22513 # following values.
22515 _ACEOF
22517 # The following way of writing the cache mishandles newlines in values,
22518 # but we know of no workaround that is simple, portable, and efficient.
22519 # So, we kill variables containing newlines.
22520 # Ultrix sh set writes to stderr and can't be redirected directly,
22521 # and sets the high bit in the cache file unless we assign to the vars.
22523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22524 eval ac_val=\$$ac_var
22525 case $ac_val in #(
22526 *${as_nl}*)
22527 case $ac_var in #(
22528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22529 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22530 esac
22531 case $ac_var in #(
22532 _ | IFS | as_nl) ;; #(
22533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22534 *) { eval $ac_var=; unset $ac_var;} ;;
22535 esac ;;
22536 esac
22537 done
22539 (set) 2>&1 |
22540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22541 *${as_nl}ac_space=\ *)
22542 # `set' does not quote correctly, so add quotes: double-quote
22543 # substitution turns \\\\ into \\, and sed turns \\ into \.
22544 sed -n \
22545 "s/'/'\\\\''/g;
22546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22547 ;; #(
22549 # `set' quotes correctly as required by POSIX, so do not add quotes.
22550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22552 esac |
22553 sort
22555 sed '
22556 /^ac_cv_env_/b end
22557 t clear
22558 :clear
22559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22560 t end
22561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22562 :end' >>confcache
22563 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22564 if test -w "$cache_file"; then
22565 if test "x$cache_file" != "x/dev/null"; then
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22567 $as_echo "$as_me: updating cache $cache_file" >&6;}
22568 if test ! -f "$cache_file" || test -h "$cache_file"; then
22569 cat confcache >"$cache_file"
22570 else
22571 case $cache_file in #(
22572 */* | ?:*)
22573 mv -f confcache "$cache_file"$$ &&
22574 mv -f "$cache_file"$$ "$cache_file" ;; #(
22576 mv -f confcache "$cache_file" ;;
22577 esac
22580 else
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22582 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22585 rm -f confcache
22587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22588 # Let make expand exec_prefix.
22589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22591 DEFS=-DHAVE_CONFIG_H
22593 ac_libobjs=
22594 ac_ltlibobjs=
22596 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22597 # 1. Remove the extension, and $U if already installed.
22598 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22599 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22601 # will be set to the directory where LIBOBJS objects are built.
22602 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22603 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22604 done
22605 LIBOBJS=$ac_libobjs
22607 LTLIBOBJS=$ac_ltlibobjs
22610 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22611 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22615 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22616 if test -n "$am_sleep_pid"; then
22617 # Hide warnings about reused PIDs.
22618 wait $am_sleep_pid 2>/dev/null
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22621 $as_echo "done" >&6; }
22622 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22623 as_fn_error $? "conditional \"AMDEP\" was never defined.
22624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22626 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22627 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22630 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22631 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22634 if test -n "$EXEEXT"; then
22635 am__EXEEXT_TRUE=
22636 am__EXEEXT_FALSE='#'
22637 else
22638 am__EXEEXT_TRUE='#'
22639 am__EXEEXT_FALSE=
22642 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22643 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22646 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22647 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22650 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
22651 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
22652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22654 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
22655 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
22656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22658 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
22659 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
22660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22662 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
22663 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
22664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
22667 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
22668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22670 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
22671 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
22672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22675 : "${CONFIG_STATUS=./config.status}"
22676 ac_write_fail=0
22677 ac_clean_files_save=$ac_clean_files
22678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22681 as_write_fail=0
22682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22683 #! $SHELL
22684 # Generated by $as_me.
22685 # Run this file to recreate the current configuration.
22686 # Compiler output produced by configure, useful for debugging
22687 # configure, is in config.log if it exists.
22689 debug=false
22690 ac_cs_recheck=false
22691 ac_cs_silent=false
22693 SHELL=\${CONFIG_SHELL-$SHELL}
22694 export SHELL
22695 _ASEOF
22696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22697 ## -------------------- ##
22698 ## M4sh Initialization. ##
22699 ## -------------------- ##
22701 # Be more Bourne compatible
22702 DUALCASE=1; export DUALCASE # for MKS sh
22703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22704 emulate sh
22705 NULLCMD=:
22706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22707 # is contrary to our usage. Disable this feature.
22708 alias -g '${1+"$@"}'='"$@"'
22709 setopt NO_GLOB_SUBST
22710 else
22711 case `(set -o) 2>/dev/null` in #(
22712 *posix*) :
22713 set -o posix ;; #(
22714 *) :
22716 esac
22720 as_nl='
22722 export as_nl
22723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22727 # Prefer a ksh shell builtin over an external printf program on Solaris,
22728 # but without wasting forks for bash or zsh.
22729 if test -z "$BASH_VERSION$ZSH_VERSION" \
22730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22731 as_echo='print -r --'
22732 as_echo_n='print -rn --'
22733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22734 as_echo='printf %s\n'
22735 as_echo_n='printf %s'
22736 else
22737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22739 as_echo_n='/usr/ucb/echo -n'
22740 else
22741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22742 as_echo_n_body='eval
22743 arg=$1;
22744 case $arg in #(
22745 *"$as_nl"*)
22746 expr "X$arg" : "X\\(.*\\)$as_nl";
22747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22748 esac;
22749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22751 export as_echo_n_body
22752 as_echo_n='sh -c $as_echo_n_body as_echo'
22754 export as_echo_body
22755 as_echo='sh -c $as_echo_body as_echo'
22758 # The user is always right.
22759 if test "${PATH_SEPARATOR+set}" != set; then
22760 PATH_SEPARATOR=:
22761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22763 PATH_SEPARATOR=';'
22768 # IFS
22769 # We need space, tab and new line, in precisely that order. Quoting is
22770 # there to prevent editors from complaining about space-tab.
22771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22772 # splitting by setting IFS to empty value.)
22773 IFS=" "" $as_nl"
22775 # Find who we are. Look in the path if we contain no directory separator.
22776 as_myself=
22777 case $0 in #((
22778 *[\\/]* ) as_myself=$0 ;;
22779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22780 for as_dir in $PATH
22782 IFS=$as_save_IFS
22783 test -z "$as_dir" && as_dir=.
22784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22785 done
22786 IFS=$as_save_IFS
22789 esac
22790 # We did not find ourselves, most probably we were run as `sh COMMAND'
22791 # in which case we are not to be found in the path.
22792 if test "x$as_myself" = x; then
22793 as_myself=$0
22795 if test ! -f "$as_myself"; then
22796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22797 exit 1
22800 # Unset variables that we do not need and which cause bugs (e.g. in
22801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22802 # suppresses any "Segmentation fault" message there. '((' could
22803 # trigger a bug in pdksh 5.2.14.
22804 for as_var in BASH_ENV ENV MAIL MAILPATH
22805 do eval test x\${$as_var+set} = xset \
22806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22807 done
22808 PS1='$ '
22809 PS2='> '
22810 PS4='+ '
22812 # NLS nuisances.
22813 LC_ALL=C
22814 export LC_ALL
22815 LANGUAGE=C
22816 export LANGUAGE
22818 # CDPATH.
22819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22823 # ----------------------------------------
22824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22826 # script with STATUS, using 1 if that was 0.
22827 as_fn_error ()
22829 as_status=$1; test $as_status -eq 0 && as_status=1
22830 if test "$4"; then
22831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22834 $as_echo "$as_me: error: $2" >&2
22835 as_fn_exit $as_status
22836 } # as_fn_error
22839 # as_fn_set_status STATUS
22840 # -----------------------
22841 # Set $? to STATUS, without forking.
22842 as_fn_set_status ()
22844 return $1
22845 } # as_fn_set_status
22847 # as_fn_exit STATUS
22848 # -----------------
22849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22850 as_fn_exit ()
22852 set +e
22853 as_fn_set_status $1
22854 exit $1
22855 } # as_fn_exit
22857 # as_fn_unset VAR
22858 # ---------------
22859 # Portably unset VAR.
22860 as_fn_unset ()
22862 { eval $1=; unset $1;}
22864 as_unset=as_fn_unset
22865 # as_fn_append VAR VALUE
22866 # ----------------------
22867 # Append the text in VALUE to the end of the definition contained in VAR. Take
22868 # advantage of any shell optimizations that allow amortized linear growth over
22869 # repeated appends, instead of the typical quadratic growth present in naive
22870 # implementations.
22871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22872 eval 'as_fn_append ()
22874 eval $1+=\$2
22876 else
22877 as_fn_append ()
22879 eval $1=\$$1\$2
22881 fi # as_fn_append
22883 # as_fn_arith ARG...
22884 # ------------------
22885 # Perform arithmetic evaluation on the ARGs, and store the result in the
22886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22887 # must be portable across $(()) and expr.
22888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22889 eval 'as_fn_arith ()
22891 as_val=$(( $* ))
22893 else
22894 as_fn_arith ()
22896 as_val=`expr "$@" || test $? -eq 1`
22898 fi # as_fn_arith
22901 if expr a : '\(a\)' >/dev/null 2>&1 &&
22902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22903 as_expr=expr
22904 else
22905 as_expr=false
22908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22909 as_basename=basename
22910 else
22911 as_basename=false
22914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22915 as_dirname=dirname
22916 else
22917 as_dirname=false
22920 as_me=`$as_basename -- "$0" ||
22921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22922 X"$0" : 'X\(//\)$' \| \
22923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22924 $as_echo X/"$0" |
22925 sed '/^.*\/\([^/][^/]*\)\/*$/{
22926 s//\1/
22929 /^X\/\(\/\/\)$/{
22930 s//\1/
22933 /^X\/\(\/\).*/{
22934 s//\1/
22937 s/.*/./; q'`
22939 # Avoid depending upon Character Ranges.
22940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22943 as_cr_digits='0123456789'
22944 as_cr_alnum=$as_cr_Letters$as_cr_digits
22946 ECHO_C= ECHO_N= ECHO_T=
22947 case `echo -n x` in #(((((
22948 -n*)
22949 case `echo 'xy\c'` in
22950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22951 xy) ECHO_C='\c';;
22952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22953 ECHO_T=' ';;
22954 esac;;
22956 ECHO_N='-n';;
22957 esac
22959 rm -f conf$$ conf$$.exe conf$$.file
22960 if test -d conf$$.dir; then
22961 rm -f conf$$.dir/conf$$.file
22962 else
22963 rm -f conf$$.dir
22964 mkdir conf$$.dir 2>/dev/null
22966 if (echo >conf$$.file) 2>/dev/null; then
22967 if ln -s conf$$.file conf$$ 2>/dev/null; then
22968 as_ln_s='ln -s'
22969 # ... but there are two gotchas:
22970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22972 # In both cases, we have to default to `cp -pR'.
22973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22974 as_ln_s='cp -pR'
22975 elif ln conf$$.file conf$$ 2>/dev/null; then
22976 as_ln_s=ln
22977 else
22978 as_ln_s='cp -pR'
22980 else
22981 as_ln_s='cp -pR'
22983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22984 rmdir conf$$.dir 2>/dev/null
22987 # as_fn_mkdir_p
22988 # -------------
22989 # Create "$as_dir" as a directory, including parents if necessary.
22990 as_fn_mkdir_p ()
22993 case $as_dir in #(
22994 -*) as_dir=./$as_dir;;
22995 esac
22996 test -d "$as_dir" || eval $as_mkdir_p || {
22997 as_dirs=
22998 while :; do
22999 case $as_dir in #(
23000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23001 *) as_qdir=$as_dir;;
23002 esac
23003 as_dirs="'$as_qdir' $as_dirs"
23004 as_dir=`$as_dirname -- "$as_dir" ||
23005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23006 X"$as_dir" : 'X\(//\)[^/]' \| \
23007 X"$as_dir" : 'X\(//\)$' \| \
23008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23009 $as_echo X"$as_dir" |
23010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23011 s//\1/
23014 /^X\(\/\/\)[^/].*/{
23015 s//\1/
23018 /^X\(\/\/\)$/{
23019 s//\1/
23022 /^X\(\/\).*/{
23023 s//\1/
23026 s/.*/./; q'`
23027 test -d "$as_dir" && break
23028 done
23029 test -z "$as_dirs" || eval "mkdir $as_dirs"
23030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23033 } # as_fn_mkdir_p
23034 if mkdir -p . 2>/dev/null; then
23035 as_mkdir_p='mkdir -p "$as_dir"'
23036 else
23037 test -d ./-p && rmdir ./-p
23038 as_mkdir_p=false
23042 # as_fn_executable_p FILE
23043 # -----------------------
23044 # Test if FILE is an executable regular file.
23045 as_fn_executable_p ()
23047 test -f "$1" && test -x "$1"
23048 } # as_fn_executable_p
23049 as_test_x='test -x'
23050 as_executable_p=as_fn_executable_p
23052 # Sed expression to map a string onto a valid CPP name.
23053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23055 # Sed expression to map a string onto a valid variable name.
23056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23059 exec 6>&1
23060 ## ----------------------------------- ##
23061 ## Main body of $CONFIG_STATUS script. ##
23062 ## ----------------------------------- ##
23063 _ASEOF
23064 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23067 # Save the log message, to keep $0 and so on meaningful, and to
23068 # report actual input values of CONFIG_FILES etc. instead of their
23069 # values after options handling.
23070 ac_log="
23071 This file was extended by package-unused $as_me version-unused, which was
23072 generated by GNU Autoconf 2.69. Invocation command line was
23074 CONFIG_FILES = $CONFIG_FILES
23075 CONFIG_HEADERS = $CONFIG_HEADERS
23076 CONFIG_LINKS = $CONFIG_LINKS
23077 CONFIG_COMMANDS = $CONFIG_COMMANDS
23078 $ $0 $@
23080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23083 _ACEOF
23085 case $ac_config_files in *"
23086 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23087 esac
23089 case $ac_config_headers in *"
23090 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23091 esac
23094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23095 # Files that config.status was made for.
23096 config_files="$ac_config_files"
23097 config_headers="$ac_config_headers"
23098 config_commands="$ac_config_commands"
23100 _ACEOF
23102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23103 ac_cs_usage="\
23104 \`$as_me' instantiates files and other configuration actions
23105 from templates according to the current configuration. Unless the files
23106 and actions are specified as TAGs, all are instantiated by default.
23108 Usage: $0 [OPTION]... [TAG]...
23110 -h, --help print this help, then exit
23111 -V, --version print version number and configuration settings, then exit
23112 --config print configuration, then exit
23113 -q, --quiet, --silent
23114 do not print progress messages
23115 -d, --debug don't remove temporary files
23116 --recheck update $as_me by reconfiguring in the same conditions
23117 --file=FILE[:TEMPLATE]
23118 instantiate the configuration file FILE
23119 --header=FILE[:TEMPLATE]
23120 instantiate the configuration header FILE
23122 Configuration files:
23123 $config_files
23125 Configuration headers:
23126 $config_headers
23128 Configuration commands:
23129 $config_commands
23131 Report bugs to the package provider."
23133 _ACEOF
23134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23135 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23136 ac_cs_version="\\
23137 package-unused config.status version-unused
23138 configured by $0, generated by GNU Autoconf 2.69,
23139 with options \\"\$ac_cs_config\\"
23141 Copyright (C) 2012 Free Software Foundation, Inc.
23142 This config.status script is free software; the Free Software Foundation
23143 gives unlimited permission to copy, distribute and modify it."
23145 ac_pwd='$ac_pwd'
23146 srcdir='$srcdir'
23147 INSTALL='$INSTALL'
23148 MKDIR_P='$MKDIR_P'
23149 AWK='$AWK'
23150 test -n "\$AWK" || AWK=awk
23151 _ACEOF
23153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23154 # The default lists apply if the user does not specify any file.
23155 ac_need_defaults=:
23156 while test $# != 0
23158 case $1 in
23159 --*=?*)
23160 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23161 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23162 ac_shift=:
23164 --*=)
23165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23166 ac_optarg=
23167 ac_shift=:
23170 ac_option=$1
23171 ac_optarg=$2
23172 ac_shift=shift
23174 esac
23176 case $ac_option in
23177 # Handling of the options.
23178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23179 ac_cs_recheck=: ;;
23180 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23181 $as_echo "$ac_cs_version"; exit ;;
23182 --config | --confi | --conf | --con | --co | --c )
23183 $as_echo "$ac_cs_config"; exit ;;
23184 --debug | --debu | --deb | --de | --d | -d )
23185 debug=: ;;
23186 --file | --fil | --fi | --f )
23187 $ac_shift
23188 case $ac_optarg in
23189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23190 '') as_fn_error $? "missing file argument" ;;
23191 esac
23192 as_fn_append CONFIG_FILES " '$ac_optarg'"
23193 ac_need_defaults=false;;
23194 --header | --heade | --head | --hea )
23195 $ac_shift
23196 case $ac_optarg in
23197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23198 esac
23199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23200 ac_need_defaults=false;;
23201 --he | --h)
23202 # Conflict between --help and --header
23203 as_fn_error $? "ambiguous option: \`$1'
23204 Try \`$0 --help' for more information.";;
23205 --help | --hel | -h )
23206 $as_echo "$ac_cs_usage"; exit ;;
23207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23209 ac_cs_silent=: ;;
23211 # This is an error.
23212 -*) as_fn_error $? "unrecognized option: \`$1'
23213 Try \`$0 --help' for more information." ;;
23215 *) as_fn_append ac_config_targets " $1"
23216 ac_need_defaults=false ;;
23218 esac
23219 shift
23220 done
23222 ac_configure_extra_args=
23224 if $ac_cs_silent; then
23225 exec 6>/dev/null
23226 ac_configure_extra_args="$ac_configure_extra_args --silent"
23229 _ACEOF
23230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23231 if \$ac_cs_recheck; then
23232 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23233 shift
23234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23235 CONFIG_SHELL='$SHELL'
23236 export CONFIG_SHELL
23237 exec "\$@"
23240 _ACEOF
23241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23242 exec 5>>config.log
23244 echo
23245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23246 ## Running $as_me. ##
23247 _ASBOX
23248 $as_echo "$ac_log"
23249 } >&5
23251 _ACEOF
23252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23254 # INIT-COMMANDS
23257 srcdir="$srcdir"
23258 host="$host"
23259 target="$target"
23260 with_multisubdir="$with_multisubdir"
23261 with_multisrctop="$with_multisrctop"
23262 with_target_subdir="$with_target_subdir"
23263 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23264 multi_basedir="$multi_basedir"
23265 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23266 CC="$CC"
23267 CXX="$CXX"
23268 GFORTRAN="$GFORTRAN"
23269 GDC="$GDC"
23270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23273 # The HP-UX ksh and POSIX shell print the target directory to stdout
23274 # if CDPATH is set.
23275 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23277 sed_quote_subst='$sed_quote_subst'
23278 double_quote_subst='$double_quote_subst'
23279 delay_variable_subst='$delay_variable_subst'
23280 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23281 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23282 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23283 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23284 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23285 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23286 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23287 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23288 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23289 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23290 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23291 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23292 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23293 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23294 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23295 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23296 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23297 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23298 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23299 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23300 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23301 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23302 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23303 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23304 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23305 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23306 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23307 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23308 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23309 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23310 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23311 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23312 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23313 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23314 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23315 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23316 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23317 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23318 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23319 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23320 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23321 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23322 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23323 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23324 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23325 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23326 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23327 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23328 lt_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"`'
23329 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23330 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23331 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23332 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23333 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23334 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23335 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23336 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23337 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23338 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23339 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23340 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23341 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23342 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23343 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23344 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23345 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23346 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23347 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23348 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23349 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23350 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23351 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23352 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23353 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23354 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23355 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23356 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23357 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23358 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23359 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23360 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
23361 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23362 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23363 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23364 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23365 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23366 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23367 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23368 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23369 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
23370 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23371 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23372 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23373 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23374 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23375 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23376 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23377 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23378 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23379 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23380 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23381 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23382 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23383 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23384 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23385 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23386 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23387 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23388 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23389 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23390 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23391 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23392 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23393 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23394 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23395 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23396 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23397 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23398 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23399 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23400 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23401 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23402 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23403 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23404 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23405 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23406 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23407 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23408 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23409 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23410 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23411 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23412 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23413 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23414 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23415 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23416 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23417 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23418 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23419 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23420 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23421 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23422 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23423 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23424 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23425 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23426 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23427 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23428 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23429 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23430 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23431 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23432 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
23433 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23434 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23435 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23436 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23437 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23438 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23439 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23440 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23441 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
23442 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23443 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23444 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23445 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23446 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23447 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23448 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23449 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23450 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23451 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23452 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23453 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23454 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23456 LTCC='$LTCC'
23457 LTCFLAGS='$LTCFLAGS'
23458 compiler='$compiler_DEFAULT'
23460 # A function that is used when there is no print builtin or printf.
23461 func_fallback_echo ()
23463 eval 'cat <<_LTECHO_EOF
23465 _LTECHO_EOF'
23468 # Quote evaled strings.
23469 for var in SHELL \
23470 ECHO \
23471 SED \
23472 GREP \
23473 EGREP \
23474 FGREP \
23475 LD \
23476 NM \
23477 LN_S \
23478 lt_SP2NL \
23479 lt_NL2SP \
23480 reload_flag \
23481 OBJDUMP \
23482 deplibs_check_method \
23483 file_magic_cmd \
23484 AR \
23485 AR_FLAGS \
23486 STRIP \
23487 RANLIB \
23488 CC \
23489 CFLAGS \
23490 compiler \
23491 lt_cv_sys_global_symbol_pipe \
23492 lt_cv_sys_global_symbol_to_cdecl \
23493 lt_cv_sys_global_symbol_to_c_name_address \
23494 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23495 lt_prog_compiler_no_builtin_flag \
23496 lt_prog_compiler_wl \
23497 lt_prog_compiler_pic \
23498 lt_prog_compiler_static \
23499 lt_cv_prog_compiler_c_o \
23500 need_locks \
23501 DSYMUTIL \
23502 NMEDIT \
23503 LIPO \
23504 OTOOL \
23505 OTOOL64 \
23506 shrext_cmds \
23507 export_dynamic_flag_spec \
23508 whole_archive_flag_spec \
23509 compiler_needs_object \
23510 with_gnu_ld \
23511 allow_undefined_flag \
23512 no_undefined_flag \
23513 hardcode_libdir_flag_spec \
23514 hardcode_libdir_flag_spec_ld \
23515 hardcode_libdir_separator \
23516 fix_srcfile_path \
23517 exclude_expsyms \
23518 include_expsyms \
23519 file_list_spec \
23520 variables_saved_for_relink \
23521 libname_spec \
23522 library_names_spec \
23523 soname_spec \
23524 install_override_mode \
23525 finish_eval \
23526 old_striplib \
23527 striplib \
23528 compiler_lib_search_dirs \
23529 predep_objects \
23530 postdep_objects \
23531 predeps \
23532 postdeps \
23533 compiler_lib_search_path \
23534 LD_CXX \
23535 reload_flag_CXX \
23536 compiler_CXX \
23537 lt_prog_compiler_no_builtin_flag_CXX \
23538 lt_prog_compiler_wl_CXX \
23539 lt_prog_compiler_pic_CXX \
23540 lt_prog_compiler_static_CXX \
23541 lt_cv_prog_compiler_c_o_CXX \
23542 export_dynamic_flag_spec_CXX \
23543 whole_archive_flag_spec_CXX \
23544 compiler_needs_object_CXX \
23545 with_gnu_ld_CXX \
23546 allow_undefined_flag_CXX \
23547 no_undefined_flag_CXX \
23548 hardcode_libdir_flag_spec_CXX \
23549 hardcode_libdir_flag_spec_ld_CXX \
23550 hardcode_libdir_separator_CXX \
23551 fix_srcfile_path_CXX \
23552 exclude_expsyms_CXX \
23553 include_expsyms_CXX \
23554 file_list_spec_CXX \
23555 compiler_lib_search_dirs_CXX \
23556 predep_objects_CXX \
23557 postdep_objects_CXX \
23558 predeps_CXX \
23559 postdeps_CXX \
23560 compiler_lib_search_path_CXX; do
23561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23562 *[\\\\\\\`\\"\\\$]*)
23563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23568 esac
23569 done
23571 # Double-quote double-evaled strings.
23572 for var in reload_cmds \
23573 old_postinstall_cmds \
23574 old_postuninstall_cmds \
23575 old_archive_cmds \
23576 extract_expsyms_cmds \
23577 old_archive_from_new_cmds \
23578 old_archive_from_expsyms_cmds \
23579 archive_cmds \
23580 archive_expsym_cmds \
23581 module_cmds \
23582 module_expsym_cmds \
23583 export_symbols_cmds \
23584 prelink_cmds \
23585 postinstall_cmds \
23586 postuninstall_cmds \
23587 finish_cmds \
23588 sys_lib_search_path_spec \
23589 sys_lib_dlsearch_path_spec \
23590 reload_cmds_CXX \
23591 old_archive_cmds_CXX \
23592 old_archive_from_new_cmds_CXX \
23593 old_archive_from_expsyms_cmds_CXX \
23594 archive_cmds_CXX \
23595 archive_expsym_cmds_CXX \
23596 module_cmds_CXX \
23597 module_expsym_cmds_CXX \
23598 export_symbols_cmds_CXX \
23599 prelink_cmds_CXX; do
23600 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23601 *[\\\\\\\`\\"\\\$]*)
23602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23607 esac
23608 done
23610 ac_aux_dir='$ac_aux_dir'
23611 xsi_shell='$xsi_shell'
23612 lt_shell_append='$lt_shell_append'
23614 # See if we are running on zsh, and set the options which allow our
23615 # commands through without removal of \ escapes INIT.
23616 if test -n "\${ZSH_VERSION+set}" ; then
23617 setopt NO_GLOB_SUBST
23621 PACKAGE='$PACKAGE'
23622 VERSION='$VERSION'
23623 TIMESTAMP='$TIMESTAMP'
23624 RM='$RM'
23625 ofile='$ofile'
23632 _ACEOF
23634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23636 # Handling of arguments.
23637 for ac_config_target in $ac_config_targets
23639 case $ac_config_target in
23640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23641 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23643 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23645 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
23646 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
23647 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
23648 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
23649 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
23651 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23652 esac
23653 done
23656 # If the user did not use the arguments to specify the items to instantiate,
23657 # then the envvar interface is used. Set only those that are not.
23658 # We use the long form for the default assignment because of an extremely
23659 # bizarre bug on SunOS 4.1.3.
23660 if $ac_need_defaults; then
23661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23666 # Have a temporary directory for convenience. Make it in the build tree
23667 # simply because there is no reason against having it here, and in addition,
23668 # creating and moving files from /tmp can sometimes cause problems.
23669 # Hook for its removal unless debugging.
23670 # Note that there is a small window in which the directory will not be cleaned:
23671 # after its creation but before its name has been assigned to `$tmp'.
23672 $debug ||
23674 tmp= ac_tmp=
23675 trap 'exit_status=$?
23676 : "${ac_tmp:=$tmp}"
23677 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23679 trap 'as_fn_exit 1' 1 2 13 15
23681 # Create a (secure) tmp directory for tmp files.
23684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23685 test -d "$tmp"
23686 } ||
23688 tmp=./conf$$-$RANDOM
23689 (umask 077 && mkdir "$tmp")
23690 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23691 ac_tmp=$tmp
23693 # Set up the scripts for CONFIG_FILES section.
23694 # No need to generate them if there are no CONFIG_FILES.
23695 # This happens for instance with `./config.status config.h'.
23696 if test -n "$CONFIG_FILES"; then
23699 ac_cr=`echo X | tr X '\015'`
23700 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23701 # But we know of no other shell where ac_cr would be empty at this
23702 # point, so we can use a bashism as a fallback.
23703 if test "x$ac_cr" = x; then
23704 eval ac_cr=\$\'\\r\'
23706 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23707 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23708 ac_cs_awk_cr='\\r'
23709 else
23710 ac_cs_awk_cr=$ac_cr
23713 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23714 _ACEOF
23718 echo "cat >conf$$subs.awk <<_ACEOF" &&
23719 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23720 echo "_ACEOF"
23721 } >conf$$subs.sh ||
23722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23723 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23724 ac_delim='%!_!# '
23725 for ac_last_try in false false false false false :; do
23726 . ./conf$$subs.sh ||
23727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23729 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23730 if test $ac_delim_n = $ac_delim_num; then
23731 break
23732 elif $ac_last_try; then
23733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23734 else
23735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23737 done
23738 rm -f conf$$subs.sh
23740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23741 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23742 _ACEOF
23743 sed -n '
23745 s/^/S["/; s/!.*/"]=/
23748 s/^[^!]*!//
23749 :repl
23750 t repl
23751 s/'"$ac_delim"'$//
23752 t delim
23755 s/\(.\{148\}\)..*/\1/
23756 t more1
23757 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23760 b repl
23761 :more1
23762 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23765 s/.\{148\}//
23766 t nl
23767 :delim
23769 s/\(.\{148\}\)..*/\1/
23770 t more2
23771 s/["\\]/\\&/g; s/^/"/; s/$/"/
23774 :more2
23775 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23778 s/.\{148\}//
23779 t delim
23780 ' <conf$$subs.awk | sed '
23781 /^[^""]/{
23783 s/\n//
23785 ' >>$CONFIG_STATUS || ac_write_fail=1
23786 rm -f conf$$subs.awk
23787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788 _ACAWK
23789 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23790 for (key in S) S_is_set[key] = 1
23791 FS = "\a"
23795 line = $ 0
23796 nfields = split(line, field, "@")
23797 substed = 0
23798 len = length(field[1])
23799 for (i = 2; i < nfields; i++) {
23800 key = field[i]
23801 keylen = length(key)
23802 if (S_is_set[key]) {
23803 value = S[key]
23804 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23805 len += length(value) + length(field[++i])
23806 substed = 1
23807 } else
23808 len += 1 + keylen
23811 print line
23814 _ACAWK
23815 _ACEOF
23816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23817 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23818 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23819 else
23821 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23822 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23823 _ACEOF
23825 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23826 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23827 # trailing colons and then remove the whole line if VPATH becomes empty
23828 # (actually we leave an empty line to preserve line numbers).
23829 if test "x$srcdir" = x.; then
23830 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23832 s///
23833 s/^/:/
23834 s/[ ]*$/:/
23835 s/:\$(srcdir):/:/g
23836 s/:\${srcdir}:/:/g
23837 s/:@srcdir@:/:/g
23838 s/^:*//
23839 s/:*$//
23841 s/\(=[ ]*\).*/\1/
23843 s/\n//
23844 s/^[^=]*=[ ]*$//
23848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23849 fi # test -n "$CONFIG_FILES"
23851 # Set up the scripts for CONFIG_HEADERS section.
23852 # No need to generate them if there are no CONFIG_HEADERS.
23853 # This happens for instance with `./config.status Makefile'.
23854 if test -n "$CONFIG_HEADERS"; then
23855 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23856 BEGIN {
23857 _ACEOF
23859 # Transform confdefs.h into an awk script `defines.awk', embedded as
23860 # here-document in config.status, that substitutes the proper values into
23861 # config.h.in to produce config.h.
23863 # Create a delimiter string that does not exist in confdefs.h, to ease
23864 # handling of long lines.
23865 ac_delim='%!_!# '
23866 for ac_last_try in false false :; do
23867 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23868 if test -z "$ac_tt"; then
23869 break
23870 elif $ac_last_try; then
23871 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23872 else
23873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23875 done
23877 # For the awk script, D is an array of macro values keyed by name,
23878 # likewise P contains macro parameters if any. Preserve backslash
23879 # newline sequences.
23881 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23882 sed -n '
23883 s/.\{148\}/&'"$ac_delim"'/g
23884 t rset
23885 :rset
23886 s/^[ ]*#[ ]*define[ ][ ]*/ /
23887 t def
23889 :def
23890 s/\\$//
23891 t bsnl
23892 s/["\\]/\\&/g
23893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23894 D["\1"]=" \3"/p
23895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23897 :bsnl
23898 s/["\\]/\\&/g
23899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23900 D["\1"]=" \3\\\\\\n"\\/p
23901 t cont
23902 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23903 t cont
23905 :cont
23907 s/.\{148\}/&'"$ac_delim"'/g
23908 t clear
23909 :clear
23910 s/\\$//
23911 t bsnlc
23912 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23914 :bsnlc
23915 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23916 b cont
23917 ' <confdefs.h | sed '
23918 s/'"$ac_delim"'/"\\\
23919 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23922 for (key in D) D_is_set[key] = 1
23923 FS = "\a"
23925 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23926 line = \$ 0
23927 split(line, arg, " ")
23928 if (arg[1] == "#") {
23929 defundef = arg[2]
23930 mac1 = arg[3]
23931 } else {
23932 defundef = substr(arg[1], 2)
23933 mac1 = arg[2]
23935 split(mac1, mac2, "(") #)
23936 macro = mac2[1]
23937 prefix = substr(line, 1, index(line, defundef) - 1)
23938 if (D_is_set[macro]) {
23939 # Preserve the white space surrounding the "#".
23940 print prefix "define", macro P[macro] D[macro]
23941 next
23942 } else {
23943 # Replace #undef with comments. This is necessary, for example,
23944 # in the case of _POSIX_SOURCE, which is predefined and required
23945 # on some systems where configure will not decide to define it.
23946 if (defundef == "undef") {
23947 print "/*", prefix defundef, macro, "*/"
23948 next
23952 { print }
23953 _ACAWK
23954 _ACEOF
23955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23956 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23957 fi # test -n "$CONFIG_HEADERS"
23960 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23961 shift
23962 for ac_tag
23964 case $ac_tag in
23965 :[FHLC]) ac_mode=$ac_tag; continue;;
23966 esac
23967 case $ac_mode$ac_tag in
23968 :[FHL]*:*);;
23969 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23970 :[FH]-) ac_tag=-:-;;
23971 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23972 esac
23973 ac_save_IFS=$IFS
23974 IFS=:
23975 set x $ac_tag
23976 IFS=$ac_save_IFS
23977 shift
23978 ac_file=$1
23979 shift
23981 case $ac_mode in
23982 :L) ac_source=$1;;
23983 :[FH])
23984 ac_file_inputs=
23985 for ac_f
23987 case $ac_f in
23988 -) ac_f="$ac_tmp/stdin";;
23989 *) # Look for the file first in the build tree, then in the source tree
23990 # (if the path is not absolute). The absolute path cannot be DOS-style,
23991 # because $ac_f cannot contain `:'.
23992 test -f "$ac_f" ||
23993 case $ac_f in
23994 [\\/$]*) false;;
23995 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23996 esac ||
23997 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23998 esac
23999 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24000 as_fn_append ac_file_inputs " '$ac_f'"
24001 done
24003 # Let's still pretend it is `configure' which instantiates (i.e., don't
24004 # use $as_me), people would be surprised to read:
24005 # /* config.h. Generated by config.status. */
24006 configure_input='Generated from '`
24007 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24008 `' by configure.'
24009 if test x"$ac_file" != x-; then
24010 configure_input="$ac_file. $configure_input"
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24012 $as_echo "$as_me: creating $ac_file" >&6;}
24014 # Neutralize special characters interpreted by sed in replacement strings.
24015 case $configure_input in #(
24016 *\&* | *\|* | *\\* )
24017 ac_sed_conf_input=`$as_echo "$configure_input" |
24018 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24019 *) ac_sed_conf_input=$configure_input;;
24020 esac
24022 case $ac_tag in
24023 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24025 esac
24027 esac
24029 ac_dir=`$as_dirname -- "$ac_file" ||
24030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24031 X"$ac_file" : 'X\(//\)[^/]' \| \
24032 X"$ac_file" : 'X\(//\)$' \| \
24033 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24034 $as_echo X"$ac_file" |
24035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24036 s//\1/
24039 /^X\(\/\/\)[^/].*/{
24040 s//\1/
24043 /^X\(\/\/\)$/{
24044 s//\1/
24047 /^X\(\/\).*/{
24048 s//\1/
24051 s/.*/./; q'`
24052 as_dir="$ac_dir"; as_fn_mkdir_p
24053 ac_builddir=.
24055 case "$ac_dir" in
24056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24059 # A ".." for each directory in $ac_dir_suffix.
24060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24061 case $ac_top_builddir_sub in
24062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24064 esac ;;
24065 esac
24066 ac_abs_top_builddir=$ac_pwd
24067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24068 # for backward compatibility:
24069 ac_top_builddir=$ac_top_build_prefix
24071 case $srcdir in
24072 .) # We are building in place.
24073 ac_srcdir=.
24074 ac_top_srcdir=$ac_top_builddir_sub
24075 ac_abs_top_srcdir=$ac_pwd ;;
24076 [\\/]* | ?:[\\/]* ) # Absolute name.
24077 ac_srcdir=$srcdir$ac_dir_suffix;
24078 ac_top_srcdir=$srcdir
24079 ac_abs_top_srcdir=$srcdir ;;
24080 *) # Relative name.
24081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24082 ac_top_srcdir=$ac_top_build_prefix$srcdir
24083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24084 esac
24085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24088 case $ac_mode in
24091 # CONFIG_FILE
24094 case $INSTALL in
24095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24096 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24097 esac
24098 ac_MKDIR_P=$MKDIR_P
24099 case $MKDIR_P in
24100 [\\/$]* | ?:[\\/]* ) ;;
24101 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24102 esac
24103 _ACEOF
24105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24106 # If the template does not know about datarootdir, expand it.
24107 # FIXME: This hack should be removed a few years after 2.60.
24108 ac_datarootdir_hack=; ac_datarootdir_seen=
24109 ac_sed_dataroot='
24110 /datarootdir/ {
24114 /@datadir@/p
24115 /@docdir@/p
24116 /@infodir@/p
24117 /@localedir@/p
24118 /@mandir@/p'
24119 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24120 *datarootdir*) ac_datarootdir_seen=yes;;
24121 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24123 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24124 _ACEOF
24125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24126 ac_datarootdir_hack='
24127 s&@datadir@&$datadir&g
24128 s&@docdir@&$docdir&g
24129 s&@infodir@&$infodir&g
24130 s&@localedir@&$localedir&g
24131 s&@mandir@&$mandir&g
24132 s&\\\${datarootdir}&$datarootdir&g' ;;
24133 esac
24134 _ACEOF
24136 # Neutralize VPATH when `$srcdir' = `.'.
24137 # Shell code in configure.ac might set extrasub.
24138 # FIXME: do we really want to maintain this feature?
24139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24140 ac_sed_extra="$ac_vpsub
24141 $extrasub
24142 _ACEOF
24143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24146 s|@configure_input@|$ac_sed_conf_input|;t t
24147 s&@top_builddir@&$ac_top_builddir_sub&;t t
24148 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24149 s&@srcdir@&$ac_srcdir&;t t
24150 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24151 s&@top_srcdir@&$ac_top_srcdir&;t t
24152 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24153 s&@builddir@&$ac_builddir&;t t
24154 s&@abs_builddir@&$ac_abs_builddir&;t t
24155 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24156 s&@INSTALL@&$ac_INSTALL&;t t
24157 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24158 $ac_datarootdir_hack
24160 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24161 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24163 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24164 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24165 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24166 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24168 which seems to be undefined. Please make sure it is defined" >&5
24169 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24170 which seems to be undefined. Please make sure it is defined" >&2;}
24172 rm -f "$ac_tmp/stdin"
24173 case $ac_file in
24174 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24175 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24176 esac \
24177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24181 # CONFIG_HEADER
24183 if test x"$ac_file" != x-; then
24185 $as_echo "/* $configure_input */" \
24186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24187 } >"$ac_tmp/config.h" \
24188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24189 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24191 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24192 else
24193 rm -f "$ac_file"
24194 mv "$ac_tmp/config.h" "$ac_file" \
24195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24197 else
24198 $as_echo "/* $configure_input */" \
24199 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24200 || as_fn_error $? "could not create -" "$LINENO" 5
24202 # Compute "$ac_file"'s index in $config_headers.
24203 _am_arg="$ac_file"
24204 _am_stamp_count=1
24205 for _am_header in $config_headers :; do
24206 case $_am_header in
24207 $_am_arg | $_am_arg:* )
24208 break ;;
24210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24211 esac
24212 done
24213 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24214 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24215 X"$_am_arg" : 'X\(//\)[^/]' \| \
24216 X"$_am_arg" : 'X\(//\)$' \| \
24217 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24218 $as_echo X"$_am_arg" |
24219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24220 s//\1/
24223 /^X\(\/\/\)[^/].*/{
24224 s//\1/
24227 /^X\(\/\/\)$/{
24228 s//\1/
24231 /^X\(\/\).*/{
24232 s//\1/
24235 s/.*/./; q'`/stamp-h$_am_stamp_count
24238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24239 $as_echo "$as_me: executing $ac_file commands" >&6;}
24241 esac
24244 case $ac_file$ac_mode in
24245 "default-1":C)
24246 # Only add multilib support code if we just rebuilt the top-level
24247 # Makefile.
24248 case " $CONFIG_FILES " in
24249 *" Makefile "*)
24250 ac_file=Makefile . ${multi_basedir}/config-ml.in
24252 esac ;;
24253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24254 # Older Autoconf quotes --file arguments for eval, but not when files
24255 # are listed without --file. Let's play safe and only enable the eval
24256 # if we detect the quoting.
24257 case $CONFIG_FILES in
24258 *\'*) eval set x "$CONFIG_FILES" ;;
24259 *) set x $CONFIG_FILES ;;
24260 esac
24261 shift
24262 for mf
24264 # Strip MF so we end up with the name of the file.
24265 mf=`echo "$mf" | sed -e 's/:.*$//'`
24266 # Check whether this is an Automake generated Makefile or not.
24267 # We used to match only the files named 'Makefile.in', but
24268 # some people rename them; so instead we look at the file content.
24269 # Grep'ing the first line is not enough: some people post-process
24270 # each Makefile.in and add a new line on top of each file to say so.
24271 # Grep'ing the whole file is not good either: AIX grep has a line
24272 # limit of 2048, but all sed's we know have understand at least 4000.
24273 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24274 dirpart=`$as_dirname -- "$mf" ||
24275 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24276 X"$mf" : 'X\(//\)[^/]' \| \
24277 X"$mf" : 'X\(//\)$' \| \
24278 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24279 $as_echo X"$mf" |
24280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24281 s//\1/
24284 /^X\(\/\/\)[^/].*/{
24285 s//\1/
24288 /^X\(\/\/\)$/{
24289 s//\1/
24292 /^X\(\/\).*/{
24293 s//\1/
24296 s/.*/./; q'`
24297 else
24298 continue
24300 # Extract the definition of DEPDIR, am__include, and am__quote
24301 # from the Makefile without running 'make'.
24302 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24303 test -z "$DEPDIR" && continue
24304 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24305 test -z "$am__include" && continue
24306 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24307 # Find all dependency output files, they are included files with
24308 # $(DEPDIR) in their names. We invoke sed twice because it is the
24309 # simplest approach to changing $(DEPDIR) to its actual value in the
24310 # expansion.
24311 for file in `sed -n "
24312 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24313 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24314 # Make sure the directory exists.
24315 test -f "$dirpart/$file" && continue
24316 fdir=`$as_dirname -- "$file" ||
24317 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24318 X"$file" : 'X\(//\)[^/]' \| \
24319 X"$file" : 'X\(//\)$' \| \
24320 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24321 $as_echo X"$file" |
24322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24323 s//\1/
24326 /^X\(\/\/\)[^/].*/{
24327 s//\1/
24330 /^X\(\/\/\)$/{
24331 s//\1/
24334 /^X\(\/\).*/{
24335 s//\1/
24338 s/.*/./; q'`
24339 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24340 # echo "creating $dirpart/$file"
24341 echo '# dummy' > "$dirpart/$file"
24342 done
24343 done
24346 "libtool":C)
24348 # See if we are running on zsh, and set the options which allow our
24349 # commands through without removal of \ escapes.
24350 if test -n "${ZSH_VERSION+set}" ; then
24351 setopt NO_GLOB_SUBST
24354 cfgfile="${ofile}T"
24355 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24356 $RM "$cfgfile"
24358 cat <<_LT_EOF >> "$cfgfile"
24359 #! $SHELL
24361 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24362 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24364 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24366 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24367 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
24368 # Written by Gordon Matzigkeit, 1996
24370 # This file is part of GNU Libtool.
24372 # GNU Libtool is free software; you can redistribute it and/or
24373 # modify it under the terms of the GNU General Public License as
24374 # published by the Free Software Foundation; either version 2 of
24375 # the License, or (at your option) any later version.
24377 # As a special exception to the GNU General Public License,
24378 # if you distribute this file as part of a program or library that
24379 # is built using GNU Libtool, you may include this file under the
24380 # same distribution terms that you use for the rest of that program.
24382 # GNU Libtool is distributed in the hope that it will be useful,
24383 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24385 # GNU General Public License for more details.
24387 # You should have received a copy of the GNU General Public License
24388 # along with GNU Libtool; see the file COPYING. If not, a copy
24389 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24390 # obtained by writing to the Free Software Foundation, Inc.,
24391 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24394 # The names of the tagged configurations supported by this script.
24395 available_tags="CXX "
24397 # ### BEGIN LIBTOOL CONFIG
24399 # Which release of libtool.m4 was used?
24400 macro_version=$macro_version
24401 macro_revision=$macro_revision
24403 # Whether or not to build shared libraries.
24404 build_libtool_libs=$enable_shared
24406 # Whether or not to build static libraries.
24407 build_old_libs=$enable_static
24409 # What type of objects to build.
24410 pic_mode=$pic_mode
24412 # Whether or not to optimize for fast installation.
24413 fast_install=$enable_fast_install
24415 # Shell to use when invoking shell scripts.
24416 SHELL=$lt_SHELL
24418 # An echo program that protects backslashes.
24419 ECHO=$lt_ECHO
24421 # The host system.
24422 host_alias=$host_alias
24423 host=$host
24424 host_os=$host_os
24426 # The build system.
24427 build_alias=$build_alias
24428 build=$build
24429 build_os=$build_os
24431 # A sed program that does not truncate output.
24432 SED=$lt_SED
24434 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24435 Xsed="\$SED -e 1s/^X//"
24437 # A grep program that handles long lines.
24438 GREP=$lt_GREP
24440 # An ERE matcher.
24441 EGREP=$lt_EGREP
24443 # A literal string matcher.
24444 FGREP=$lt_FGREP
24446 # A BSD- or MS-compatible name lister.
24447 NM=$lt_NM
24449 # Whether we need soft or hard links.
24450 LN_S=$lt_LN_S
24452 # What is the maximum length of a command?
24453 max_cmd_len=$max_cmd_len
24455 # Object file suffix (normally "o").
24456 objext=$ac_objext
24458 # Executable file suffix (normally "").
24459 exeext=$exeext
24461 # whether the shell understands "unset".
24462 lt_unset=$lt_unset
24464 # turn spaces into newlines.
24465 SP2NL=$lt_lt_SP2NL
24467 # turn newlines into spaces.
24468 NL2SP=$lt_lt_NL2SP
24470 # An object symbol dumper.
24471 OBJDUMP=$lt_OBJDUMP
24473 # Method to check whether dependent libraries are shared objects.
24474 deplibs_check_method=$lt_deplibs_check_method
24476 # Command to use when deplibs_check_method == "file_magic".
24477 file_magic_cmd=$lt_file_magic_cmd
24479 # The archiver.
24480 AR=$lt_AR
24481 AR_FLAGS=$lt_AR_FLAGS
24483 # A symbol stripping program.
24484 STRIP=$lt_STRIP
24486 # Commands used to install an old-style archive.
24487 RANLIB=$lt_RANLIB
24488 old_postinstall_cmds=$lt_old_postinstall_cmds
24489 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24491 # Whether to use a lock for old archive extraction.
24492 lock_old_archive_extraction=$lock_old_archive_extraction
24494 # A C compiler.
24495 LTCC=$lt_CC
24497 # LTCC compiler flags.
24498 LTCFLAGS=$lt_CFLAGS
24500 # Take the output of nm and produce a listing of raw symbols and C names.
24501 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24503 # Transform the output of nm in a proper C declaration.
24504 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24506 # Transform the output of nm in a C name address pair.
24507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24509 # Transform the output of nm in a C name address pair when lib prefix is needed.
24510 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24512 # The name of the directory that contains temporary libtool files.
24513 objdir=$objdir
24515 # Used to examine libraries when file_magic_cmd begins with "file".
24516 MAGIC_CMD=$MAGIC_CMD
24518 # Must we lock files when doing compilation?
24519 need_locks=$lt_need_locks
24521 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24522 DSYMUTIL=$lt_DSYMUTIL
24524 # Tool to change global to local symbols on Mac OS X.
24525 NMEDIT=$lt_NMEDIT
24527 # Tool to manipulate fat objects and archives on Mac OS X.
24528 LIPO=$lt_LIPO
24530 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24531 OTOOL=$lt_OTOOL
24533 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24534 OTOOL64=$lt_OTOOL64
24536 # Old archive suffix (normally "a").
24537 libext=$libext
24539 # Shared library suffix (normally ".so").
24540 shrext_cmds=$lt_shrext_cmds
24542 # The commands to extract the exported symbol list from a shared archive.
24543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24545 # Variables whose values should be saved in libtool wrapper scripts and
24546 # restored at link time.
24547 variables_saved_for_relink=$lt_variables_saved_for_relink
24549 # Do we need the "lib" prefix for modules?
24550 need_lib_prefix=$need_lib_prefix
24552 # Do we need a version for libraries?
24553 need_version=$need_version
24555 # Library versioning type.
24556 version_type=$version_type
24558 # Shared library runtime path variable.
24559 runpath_var=$runpath_var
24561 # Shared library path variable.
24562 shlibpath_var=$shlibpath_var
24564 # Is shlibpath searched before the hard-coded library search path?
24565 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24567 # Format of library name prefix.
24568 libname_spec=$lt_libname_spec
24570 # List of archive names. First name is the real one, the rest are links.
24571 # The last name is the one that the linker finds with -lNAME
24572 library_names_spec=$lt_library_names_spec
24574 # The coded name of the library, if different from the real name.
24575 soname_spec=$lt_soname_spec
24577 # Permission mode override for installation of shared libraries.
24578 install_override_mode=$lt_install_override_mode
24580 # Command to use after installation of a shared archive.
24581 postinstall_cmds=$lt_postinstall_cmds
24583 # Command to use after uninstallation of a shared archive.
24584 postuninstall_cmds=$lt_postuninstall_cmds
24586 # Commands used to finish a libtool library installation in a directory.
24587 finish_cmds=$lt_finish_cmds
24589 # As "finish_cmds", except a single script fragment to be evaled but
24590 # not shown.
24591 finish_eval=$lt_finish_eval
24593 # Whether we should hardcode library paths into libraries.
24594 hardcode_into_libs=$hardcode_into_libs
24596 # Compile-time system search path for libraries.
24597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24599 # Run-time system search path for libraries.
24600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24602 # Whether dlopen is supported.
24603 dlopen_support=$enable_dlopen
24605 # Whether dlopen of programs is supported.
24606 dlopen_self=$enable_dlopen_self
24608 # Whether dlopen of statically linked programs is supported.
24609 dlopen_self_static=$enable_dlopen_self_static
24611 # Commands to strip libraries.
24612 old_striplib=$lt_old_striplib
24613 striplib=$lt_striplib
24616 # The linker used to build libraries.
24617 LD=$lt_LD
24619 # How to create reloadable object files.
24620 reload_flag=$lt_reload_flag
24621 reload_cmds=$lt_reload_cmds
24623 # Commands used to build an old-style archive.
24624 old_archive_cmds=$lt_old_archive_cmds
24626 # A language specific compiler.
24627 CC=$lt_compiler
24629 # Is the compiler the GNU compiler?
24630 with_gcc=$GCC
24632 # Compiler flag to turn off builtin functions.
24633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24635 # How to pass a linker flag through the compiler.
24636 wl=$lt_lt_prog_compiler_wl
24638 # Additional compiler flags for building library objects.
24639 pic_flag=$lt_lt_prog_compiler_pic
24641 # Compiler flag to prevent dynamic linking.
24642 link_static_flag=$lt_lt_prog_compiler_static
24644 # Does compiler simultaneously support -c and -o options?
24645 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24647 # Whether or not to add -lc for building shared libraries.
24648 build_libtool_need_lc=$archive_cmds_need_lc
24650 # Whether or not to disallow shared libs when runtime libs are static.
24651 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24653 # Compiler flag to allow reflexive dlopens.
24654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24656 # Compiler flag to generate shared objects directly from archives.
24657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24659 # Whether the compiler copes with passing no objects directly.
24660 compiler_needs_object=$lt_compiler_needs_object
24662 # Create an old-style archive from a shared archive.
24663 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24665 # Create a temporary old-style archive to link instead of a shared archive.
24666 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24668 # Commands used to build a shared archive.
24669 archive_cmds=$lt_archive_cmds
24670 archive_expsym_cmds=$lt_archive_expsym_cmds
24672 # Commands used to build a loadable module if different from building
24673 # a shared archive.
24674 module_cmds=$lt_module_cmds
24675 module_expsym_cmds=$lt_module_expsym_cmds
24677 # Whether we are building with GNU ld or not.
24678 with_gnu_ld=$lt_with_gnu_ld
24680 # Flag that allows shared libraries with undefined symbols to be built.
24681 allow_undefined_flag=$lt_allow_undefined_flag
24683 # Flag that enforces no undefined symbols.
24684 no_undefined_flag=$lt_no_undefined_flag
24686 # Flag to hardcode \$libdir into a binary during linking.
24687 # This must work even if \$libdir does not exist
24688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24690 # If ld is used when linking, flag to hardcode \$libdir into a binary
24691 # during linking. This must work even if \$libdir does not exist.
24692 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24694 # Whether we need a single "-rpath" flag with a separated argument.
24695 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24697 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24698 # DIR into the resulting binary.
24699 hardcode_direct=$hardcode_direct
24701 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24702 # DIR into the resulting binary and the resulting library dependency is
24703 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24704 # library is relocated.
24705 hardcode_direct_absolute=$hardcode_direct_absolute
24707 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24708 # into the resulting binary.
24709 hardcode_minus_L=$hardcode_minus_L
24711 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24712 # into the resulting binary.
24713 hardcode_shlibpath_var=$hardcode_shlibpath_var
24715 # Set to "yes" if building a shared library automatically hardcodes DIR
24716 # into the library and all subsequent libraries and executables linked
24717 # against it.
24718 hardcode_automatic=$hardcode_automatic
24720 # Set to yes if linker adds runtime paths of dependent libraries
24721 # to runtime path list.
24722 inherit_rpath=$inherit_rpath
24724 # Whether libtool must link a program against all its dependency libraries.
24725 link_all_deplibs=$link_all_deplibs
24727 # Fix the shell variable \$srcfile for the compiler.
24728 fix_srcfile_path=$lt_fix_srcfile_path
24730 # Set to "yes" if exported symbols are required.
24731 always_export_symbols=$always_export_symbols
24733 # The commands to list exported symbols.
24734 export_symbols_cmds=$lt_export_symbols_cmds
24736 # Symbols that should not be listed in the preloaded symbols.
24737 exclude_expsyms=$lt_exclude_expsyms
24739 # Symbols that must always be exported.
24740 include_expsyms=$lt_include_expsyms
24742 # Commands necessary for linking programs (against libraries) with templates.
24743 prelink_cmds=$lt_prelink_cmds
24745 # Specify filename containing input files.
24746 file_list_spec=$lt_file_list_spec
24748 # How to hardcode a shared library path into an executable.
24749 hardcode_action=$hardcode_action
24751 # The directories searched by this compiler when creating a shared library.
24752 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24754 # Dependencies to place before and after the objects being linked to
24755 # create a shared library.
24756 predep_objects=$lt_predep_objects
24757 postdep_objects=$lt_postdep_objects
24758 predeps=$lt_predeps
24759 postdeps=$lt_postdeps
24761 # The library search path used internally by the compiler when linking
24762 # a shared library.
24763 compiler_lib_search_path=$lt_compiler_lib_search_path
24765 # ### END LIBTOOL CONFIG
24767 _LT_EOF
24769 case $host_os in
24770 aix3*)
24771 cat <<\_LT_EOF >> "$cfgfile"
24772 # AIX sometimes has problems with the GCC collect2 program. For some
24773 # reason, if we set the COLLECT_NAMES environment variable, the problems
24774 # vanish in a puff of smoke.
24775 if test "X${COLLECT_NAMES+set}" != Xset; then
24776 COLLECT_NAMES=
24777 export COLLECT_NAMES
24779 _LT_EOF
24781 esac
24784 ltmain="$ac_aux_dir/ltmain.sh"
24787 # We use sed instead of cat because bash on DJGPP gets confused if
24788 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24789 # text mode, it properly converts lines to CR/LF. This bash problem
24790 # is reportedly fixed, but why not run on old versions too?
24791 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24792 || (rm -f "$cfgfile"; exit 1)
24794 case $xsi_shell in
24795 yes)
24796 cat << \_LT_EOF >> "$cfgfile"
24798 # func_dirname file append nondir_replacement
24799 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24800 # otherwise set result to NONDIR_REPLACEMENT.
24801 func_dirname ()
24803 case ${1} in
24804 */*) func_dirname_result="${1%/*}${2}" ;;
24805 * ) func_dirname_result="${3}" ;;
24806 esac
24809 # func_basename file
24810 func_basename ()
24812 func_basename_result="${1##*/}"
24815 # func_dirname_and_basename file append nondir_replacement
24816 # perform func_basename and func_dirname in a single function
24817 # call:
24818 # dirname: Compute the dirname of FILE. If nonempty,
24819 # add APPEND to the result, otherwise set result
24820 # to NONDIR_REPLACEMENT.
24821 # value returned in "$func_dirname_result"
24822 # basename: Compute filename of FILE.
24823 # value retuned in "$func_basename_result"
24824 # Implementation must be kept synchronized with func_dirname
24825 # and func_basename. For efficiency, we do not delegate to
24826 # those functions but instead duplicate the functionality here.
24827 func_dirname_and_basename ()
24829 case ${1} in
24830 */*) func_dirname_result="${1%/*}${2}" ;;
24831 * ) func_dirname_result="${3}" ;;
24832 esac
24833 func_basename_result="${1##*/}"
24836 # func_stripname prefix suffix name
24837 # strip PREFIX and SUFFIX off of NAME.
24838 # PREFIX and SUFFIX must not contain globbing or regex special
24839 # characters, hashes, percent signs, but SUFFIX may contain a leading
24840 # dot (in which case that matches only a dot).
24841 func_stripname ()
24843 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24844 # positional parameters, so assign one to ordinary parameter first.
24845 func_stripname_result=${3}
24846 func_stripname_result=${func_stripname_result#"${1}"}
24847 func_stripname_result=${func_stripname_result%"${2}"}
24850 # func_opt_split
24851 func_opt_split ()
24853 func_opt_split_opt=${1%%=*}
24854 func_opt_split_arg=${1#*=}
24857 # func_lo2o object
24858 func_lo2o ()
24860 case ${1} in
24861 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24862 *) func_lo2o_result=${1} ;;
24863 esac
24866 # func_xform libobj-or-source
24867 func_xform ()
24869 func_xform_result=${1%.*}.lo
24872 # func_arith arithmetic-term...
24873 func_arith ()
24875 func_arith_result=$(( $* ))
24878 # func_len string
24879 # STRING may not start with a hyphen.
24880 func_len ()
24882 func_len_result=${#1}
24885 _LT_EOF
24887 *) # Bourne compatible functions.
24888 cat << \_LT_EOF >> "$cfgfile"
24890 # func_dirname file append nondir_replacement
24891 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24892 # otherwise set result to NONDIR_REPLACEMENT.
24893 func_dirname ()
24895 # Extract subdirectory from the argument.
24896 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
24897 if test "X$func_dirname_result" = "X${1}"; then
24898 func_dirname_result="${3}"
24899 else
24900 func_dirname_result="$func_dirname_result${2}"
24904 # func_basename file
24905 func_basename ()
24907 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
24911 # func_stripname prefix suffix name
24912 # strip PREFIX and SUFFIX off of NAME.
24913 # PREFIX and SUFFIX must not contain globbing or regex special
24914 # characters, hashes, percent signs, but SUFFIX may contain a leading
24915 # dot (in which case that matches only a dot).
24916 # func_strip_suffix prefix name
24917 func_stripname ()
24919 case ${2} in
24920 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
24921 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
24922 esac
24925 # sed scripts:
24926 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24927 my_sed_long_arg='1s/^-[^=]*=//'
24929 # func_opt_split
24930 func_opt_split ()
24932 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
24933 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
24936 # func_lo2o object
24937 func_lo2o ()
24939 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
24942 # func_xform libobj-or-source
24943 func_xform ()
24945 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
24948 # func_arith arithmetic-term...
24949 func_arith ()
24951 func_arith_result=`expr "$@"`
24954 # func_len string
24955 # STRING may not start with a hyphen.
24956 func_len ()
24958 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24961 _LT_EOF
24962 esac
24964 case $lt_shell_append in
24965 yes)
24966 cat << \_LT_EOF >> "$cfgfile"
24968 # func_append var value
24969 # Append VALUE to the end of shell variable VAR.
24970 func_append ()
24972 eval "$1+=\$2"
24974 _LT_EOF
24977 cat << \_LT_EOF >> "$cfgfile"
24979 # func_append var value
24980 # Append VALUE to the end of shell variable VAR.
24981 func_append ()
24983 eval "$1=\$$1\$2"
24986 _LT_EOF
24988 esac
24991 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24992 || (rm -f "$cfgfile"; exit 1)
24994 mv -f "$cfgfile" "$ofile" ||
24995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24996 chmod +x "$ofile"
24999 cat <<_LT_EOF >> "$ofile"
25001 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25003 # The linker used to build libraries.
25004 LD=$lt_LD_CXX
25006 # How to create reloadable object files.
25007 reload_flag=$lt_reload_flag_CXX
25008 reload_cmds=$lt_reload_cmds_CXX
25010 # Commands used to build an old-style archive.
25011 old_archive_cmds=$lt_old_archive_cmds_CXX
25013 # A language specific compiler.
25014 CC=$lt_compiler_CXX
25016 # Is the compiler the GNU compiler?
25017 with_gcc=$GCC_CXX
25019 # Compiler flag to turn off builtin functions.
25020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25022 # How to pass a linker flag through the compiler.
25023 wl=$lt_lt_prog_compiler_wl_CXX
25025 # Additional compiler flags for building library objects.
25026 pic_flag=$lt_lt_prog_compiler_pic_CXX
25028 # Compiler flag to prevent dynamic linking.
25029 link_static_flag=$lt_lt_prog_compiler_static_CXX
25031 # Does compiler simultaneously support -c and -o options?
25032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25034 # Whether or not to add -lc for building shared libraries.
25035 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25037 # Whether or not to disallow shared libs when runtime libs are static.
25038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25040 # Compiler flag to allow reflexive dlopens.
25041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25043 # Compiler flag to generate shared objects directly from archives.
25044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25046 # Whether the compiler copes with passing no objects directly.
25047 compiler_needs_object=$lt_compiler_needs_object_CXX
25049 # Create an old-style archive from a shared archive.
25050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25052 # Create a temporary old-style archive to link instead of a shared archive.
25053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25055 # Commands used to build a shared archive.
25056 archive_cmds=$lt_archive_cmds_CXX
25057 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25059 # Commands used to build a loadable module if different from building
25060 # a shared archive.
25061 module_cmds=$lt_module_cmds_CXX
25062 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25064 # Whether we are building with GNU ld or not.
25065 with_gnu_ld=$lt_with_gnu_ld_CXX
25067 # Flag that allows shared libraries with undefined symbols to be built.
25068 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25070 # Flag that enforces no undefined symbols.
25071 no_undefined_flag=$lt_no_undefined_flag_CXX
25073 # Flag to hardcode \$libdir into a binary during linking.
25074 # This must work even if \$libdir does not exist
25075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25077 # If ld is used when linking, flag to hardcode \$libdir into a binary
25078 # during linking. This must work even if \$libdir does not exist.
25079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25081 # Whether we need a single "-rpath" flag with a separated argument.
25082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25085 # DIR into the resulting binary.
25086 hardcode_direct=$hardcode_direct_CXX
25088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25089 # DIR into the resulting binary and the resulting library dependency is
25090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25091 # library is relocated.
25092 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25095 # into the resulting binary.
25096 hardcode_minus_L=$hardcode_minus_L_CXX
25098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25099 # into the resulting binary.
25100 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25102 # Set to "yes" if building a shared library automatically hardcodes DIR
25103 # into the library and all subsequent libraries and executables linked
25104 # against it.
25105 hardcode_automatic=$hardcode_automatic_CXX
25107 # Set to yes if linker adds runtime paths of dependent libraries
25108 # to runtime path list.
25109 inherit_rpath=$inherit_rpath_CXX
25111 # Whether libtool must link a program against all its dependency libraries.
25112 link_all_deplibs=$link_all_deplibs_CXX
25114 # Fix the shell variable \$srcfile for the compiler.
25115 fix_srcfile_path=$lt_fix_srcfile_path_CXX
25117 # Set to "yes" if exported symbols are required.
25118 always_export_symbols=$always_export_symbols_CXX
25120 # The commands to list exported symbols.
25121 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25123 # Symbols that should not be listed in the preloaded symbols.
25124 exclude_expsyms=$lt_exclude_expsyms_CXX
25126 # Symbols that must always be exported.
25127 include_expsyms=$lt_include_expsyms_CXX
25129 # Commands necessary for linking programs (against libraries) with templates.
25130 prelink_cmds=$lt_prelink_cmds_CXX
25132 # Specify filename containing input files.
25133 file_list_spec=$lt_file_list_spec_CXX
25135 # How to hardcode a shared library path into an executable.
25136 hardcode_action=$hardcode_action_CXX
25138 # The directories searched by this compiler when creating a shared library.
25139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25141 # Dependencies to place before and after the objects being linked to
25142 # create a shared library.
25143 predep_objects=$lt_predep_objects_CXX
25144 postdep_objects=$lt_postdep_objects_CXX
25145 predeps=$lt_predeps_CXX
25146 postdeps=$lt_postdeps_CXX
25148 # The library search path used internally by the compiler when linking
25149 # a shared library.
25150 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25152 # ### END LIBTOOL TAG CONFIG: CXX
25153 _LT_EOF
25156 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
25157 s!`test -f '$<' || echo '$(srcdir)/'`!!
25158 _EOF
25159 sed -f vpsed$$ $ac_file > tmp$$
25160 mv tmp$$ $ac_file
25161 rm vpsed$$
25162 echo 'MULTISUBDIR =' >> $ac_file
25163 ml_norecursion=yes
25164 . ${multi_basedir}/config-ml.in
25165 { ml_norecursion=; unset ml_norecursion;}
25167 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
25168 s!`test -f '$<' || echo '$(srcdir)/'`!!
25169 _EOF
25170 sed -f vpsed$$ $ac_file > tmp$$
25171 mv tmp$$ $ac_file
25172 rm vpsed$$
25173 echo 'MULTISUBDIR =' >> $ac_file
25174 ml_norecursion=yes
25175 . ${multi_basedir}/config-ml.in
25176 { ml_norecursion=; unset ml_norecursion;}
25178 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
25179 s!`test -f '$<' || echo '$(srcdir)/'`!!
25180 _EOF
25181 sed -f vpsed$$ $ac_file > tmp$$
25182 mv tmp$$ $ac_file
25183 rm vpsed$$
25184 echo 'MULTISUBDIR =' >> $ac_file
25185 ml_norecursion=yes
25186 . ${multi_basedir}/config-ml.in
25187 { ml_norecursion=; unset ml_norecursion;}
25189 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
25190 s!`test -f '$<' || echo '$(srcdir)/'`!!
25191 _EOF
25192 sed -f vpsed$$ $ac_file > tmp$$
25193 mv tmp$$ $ac_file
25194 rm vpsed$$
25195 echo 'MULTISUBDIR =' >> $ac_file
25196 ml_norecursion=yes
25197 . ${multi_basedir}/config-ml.in
25198 { ml_norecursion=; unset ml_norecursion;}
25200 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
25201 s!`test -f '$<' || echo '$(srcdir)/'`!!
25202 _EOF
25203 sed -f vpsed$$ $ac_file > tmp$$
25204 mv tmp$$ $ac_file
25205 rm vpsed$$
25206 echo 'MULTISUBDIR =' >> $ac_file
25207 ml_norecursion=yes
25208 . ${multi_basedir}/config-ml.in
25209 { ml_norecursion=; unset ml_norecursion;}
25212 esac
25213 done # for ac_tag
25216 as_fn_exit 0
25217 _ACEOF
25218 ac_clean_files=$ac_clean_files_save
25220 test $ac_write_fail = 0 ||
25221 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25224 # configure is writing to config.log, and then calls config.status.
25225 # config.status does its own redirection, appending to config.log.
25226 # Unfortunately, on DOS this fails, as config.log is still kept open
25227 # by configure, so config.status won't be able to write to it; its
25228 # output is simply discarded. So we exec the FD to /dev/null,
25229 # effectively closing config.log, so it can be properly (re)opened and
25230 # appended to by config.status. When coming back to configure, we
25231 # need to make the FD available again.
25232 if test "$no_create" != yes; then
25233 ac_cs_success=:
25234 ac_config_status_args=
25235 test "$silent" = yes &&
25236 ac_config_status_args="$ac_config_status_args --quiet"
25237 exec 5>/dev/null
25238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25239 exec 5>>config.log
25240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25241 # would make configure fail if this is the last instruction.
25242 $ac_cs_success || as_fn_exit 1
25244 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25246 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}