1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for re2c 2.2. 4# 5# Report bugs to <re2c-general@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: re2c-general@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='re2c' 592PACKAGE_TARNAME='re2c' 593PACKAGE_VERSION='2.2' 594PACKAGE_STRING='re2c 2.2' 595PACKAGE_BUGREPORT='re2c-general@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="src/main.cc" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639CXXCPP 640LT_SYS_LIBRARY_PATH 641OTOOL64 642OTOOL 643LIPO 644NMEDIT 645DSYMUTIL 646MANIFEST_TOOL 647RANLIB 648ac_ct_AR 649AR 650LN_S 651NM 652ac_ct_DUMPBIN 653DUMPBIN 654LD 655FGREP 656SED 657host_os 658host_vendor 659host_cpu 660host 661build_os 662build_vendor 663build_cpu 664build 665LIBTOOL 666OBJDUMP 667DLLTOOL 668AS 669CXXFLAGSDEFAULT 670PYTHON 671BISON 672REGEN_BENCHMARKS_FALSE 673REGEN_BENCHMARKS_TRUE 674WITH_JAVA_FALSE 675WITH_JAVA_TRUE 676WITH_BENCHMARKS_FALSE 677WITH_BENCHMARKS_TRUE 678WITH_GOLANG_FALSE 679WITH_GOLANG_TRUE 680am__fastdepCXX_FALSE 681am__fastdepCXX_TRUE 682CXXDEPMODE 683ac_ct_CXX 684CXXFLAGS 685CXX 686LDFLAGS_RE2 687WITH_LIBS_FALSE 688WITH_LIBS_TRUE 689RE2C_FOR_BUILD 690REBUILD_LEXERS_FALSE 691REBUILD_LEXERS_TRUE 692RST2MAN 693REBUILD_DOCS_FALSE 694REBUILD_DOCS_TRUE 695DEBUG_FALSE 696DEBUG_TRUE 697EGREP 698GREP 699CPP 700am__fastdepCC_FALSE 701am__fastdepCC_TRUE 702CCDEPMODE 703am__nodep 704AMDEPBACKSLASH 705AMDEP_FALSE 706AMDEP_TRUE 707am__include 708DEPDIR 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716PACKAGE_RELEASE 717AM_BACKSLASH 718AM_DEFAULT_VERBOSITY 719AM_DEFAULT_V 720AM_V 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763runstatedir 764localstatedir 765sharedstatedir 766sysconfdir 767datadir 768datarootdir 769libexecdir 770sbindir 771bindir 772program_transform_name 773prefix 774exec_prefix 775PACKAGE_URL 776PACKAGE_BUGREPORT 777PACKAGE_STRING 778PACKAGE_VERSION 779PACKAGE_TARNAME 780PACKAGE_NAME 781PATH_SEPARATOR 782SHELL 783am__quote' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_silent_rules 788enable_dependency_tracking 789enable_debug 790enable_docs 791enable_lexers 792enable_libs 793enable_golang 794enable_benchmarks 795enable_benchmarks_regenerate 796enable_shared 797enable_static 798with_pic 799enable_fast_install 800with_aix_soname 801with_gnu_ld 802with_sysroot 803enable_libtool_lock 804' 805 ac_precious_vars='build_alias 806host_alias 807target_alias 808CC 809CFLAGS 810LDFLAGS 811LIBS 812CPPFLAGS 813CPP 814RE2C_FOR_BUILD 815CXX 816CXXFLAGS 817CCC 818LT_SYS_LIBRARY_PATH 819CXXCPP' 820 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825ac_unrecognized_opts= 826ac_unrecognized_sep= 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858runstatedir='${localstatedir}/run' 859includedir='${prefix}/include' 860oldincludedir='/usr/include' 861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 862infodir='${datarootdir}/info' 863htmldir='${docdir}' 864dvidir='${docdir}' 865pdfdir='${docdir}' 866psdir='${docdir}' 867libdir='${exec_prefix}/lib' 868localedir='${datarootdir}/locale' 869mandir='${datarootdir}/man' 870 871ac_prev= 872ac_dashdash= 873for ac_option 874do 875 # If the previous option needs an argument, assign it. 876 if test -n "$ac_prev"; then 877 eval $ac_prev=\$ac_option 878 ac_prev= 879 continue 880 fi 881 882 case $ac_option in 883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 884 *=) ac_optarg= ;; 885 *) ac_optarg=yes ;; 886 esac 887 888 # Accept the important Cygnus configure options, so we can diagnose typos. 889 890 case $ac_dashdash$ac_option in 891 --) 892 ac_dashdash=yes ;; 893 894 -bindir | --bindir | --bindi | --bind | --bin | --bi) 895 ac_prev=bindir ;; 896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 897 bindir=$ac_optarg ;; 898 899 -build | --build | --buil | --bui | --bu) 900 ac_prev=build_alias ;; 901 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 902 build_alias=$ac_optarg ;; 903 904 -cache-file | --cache-file | --cache-fil | --cache-fi \ 905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 906 ac_prev=cache_file ;; 907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 909 cache_file=$ac_optarg ;; 910 911 --config-cache | -C) 912 cache_file=config.cache ;; 913 914 -datadir | --datadir | --datadi | --datad) 915 ac_prev=datadir ;; 916 -datadir=* | --datadir=* | --datadi=* | --datad=*) 917 datadir=$ac_optarg ;; 918 919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 920 | --dataroo | --dataro | --datar) 921 ac_prev=datarootdir ;; 922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 924 datarootdir=$ac_optarg ;; 925 926 -disable-* | --disable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=no ;; 941 942 -docdir | --docdir | --docdi | --doc | --do) 943 ac_prev=docdir ;; 944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 945 docdir=$ac_optarg ;; 946 947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 948 ac_prev=dvidir ;; 949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 950 dvidir=$ac_optarg ;; 951 952 -enable-* | --enable-*) 953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 954 # Reject names that are not valid shell variable names. 955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 956 as_fn_error $? "invalid feature name: $ac_useropt" 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961"enable_$ac_useropt" 962"*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=\$ac_optarg ;; 967 968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 970 | --exec | --exe | --ex) 971 ac_prev=exec_prefix ;; 972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 974 | --exec=* | --exe=* | --ex=*) 975 exec_prefix=$ac_optarg ;; 976 977 -gas | --gas | --ga | --g) 978 # Obsolete; use --with-gas. 979 with_gas=yes ;; 980 981 -help | --help | --hel | --he | -h) 982 ac_init_help=long ;; 983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 984 ac_init_help=recursive ;; 985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 986 ac_init_help=short ;; 987 988 -host | --host | --hos | --ho) 989 ac_prev=host_alias ;; 990 -host=* | --host=* | --hos=* | --ho=*) 991 host_alias=$ac_optarg ;; 992 993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 994 ac_prev=htmldir ;; 995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 996 | --ht=*) 997 htmldir=$ac_optarg ;; 998 999 -includedir | --includedir | --includedi | --included | --include \ 1000 | --includ | --inclu | --incl | --inc) 1001 ac_prev=includedir ;; 1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1003 | --includ=* | --inclu=* | --incl=* | --inc=*) 1004 includedir=$ac_optarg ;; 1005 1006 -infodir | --infodir | --infodi | --infod | --info | --inf) 1007 ac_prev=infodir ;; 1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1009 infodir=$ac_optarg ;; 1010 1011 -libdir | --libdir | --libdi | --libd) 1012 ac_prev=libdir ;; 1013 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1014 libdir=$ac_optarg ;; 1015 1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1017 | --libexe | --libex | --libe) 1018 ac_prev=libexecdir ;; 1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1020 | --libexe=* | --libex=* | --libe=*) 1021 libexecdir=$ac_optarg ;; 1022 1023 -localedir | --localedir | --localedi | --localed | --locale) 1024 ac_prev=localedir ;; 1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1026 localedir=$ac_optarg ;; 1027 1028 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1029 | --localstate | --localstat | --localsta | --localst | --locals) 1030 ac_prev=localstatedir ;; 1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1033 localstatedir=$ac_optarg ;; 1034 1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1036 ac_prev=mandir ;; 1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1038 mandir=$ac_optarg ;; 1039 1040 -nfp | --nfp | --nf) 1041 # Obsolete; use --without-fp. 1042 with_fp=no ;; 1043 1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1045 | --no-cr | --no-c | -n) 1046 no_create=yes ;; 1047 1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1050 no_recursion=yes ;; 1051 1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1054 | --oldin | --oldi | --old | --ol | --o) 1055 ac_prev=oldincludedir ;; 1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1059 oldincludedir=$ac_optarg ;; 1060 1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1062 ac_prev=prefix ;; 1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1064 prefix=$ac_optarg ;; 1065 1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1067 | --program-pre | --program-pr | --program-p) 1068 ac_prev=program_prefix ;; 1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1071 program_prefix=$ac_optarg ;; 1072 1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1074 | --program-suf | --program-su | --program-s) 1075 ac_prev=program_suffix ;; 1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1078 program_suffix=$ac_optarg ;; 1079 1080 -program-transform-name | --program-transform-name \ 1081 | --program-transform-nam | --program-transform-na \ 1082 | --program-transform-n | --program-transform- \ 1083 | --program-transform | --program-transfor \ 1084 | --program-transfo | --program-transf \ 1085 | --program-trans | --program-tran \ 1086 | --progr-tra | --program-tr | --program-t) 1087 ac_prev=program_transform_name ;; 1088 -program-transform-name=* | --program-transform-name=* \ 1089 | --program-transform-nam=* | --program-transform-na=* \ 1090 | --program-transform-n=* | --program-transform-=* \ 1091 | --program-transform=* | --program-transfor=* \ 1092 | --program-transfo=* | --program-transf=* \ 1093 | --program-trans=* | --program-tran=* \ 1094 | --progr-tra=* | --program-tr=* | --program-t=*) 1095 program_transform_name=$ac_optarg ;; 1096 1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1098 ac_prev=pdfdir ;; 1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1100 pdfdir=$ac_optarg ;; 1101 1102 -psdir | --psdir | --psdi | --psd | --ps) 1103 ac_prev=psdir ;; 1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1105 psdir=$ac_optarg ;; 1106 1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1108 | -silent | --silent | --silen | --sile | --sil) 1109 silent=yes ;; 1110 1111 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1112 | --runstate | --runstat | --runsta | --runst | --runs \ 1113 | --run | --ru | --r) 1114 ac_prev=runstatedir ;; 1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1117 | --run=* | --ru=* | --r=*) 1118 runstatedir=$ac_optarg ;; 1119 1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1121 ac_prev=sbindir ;; 1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1123 | --sbi=* | --sb=*) 1124 sbindir=$ac_optarg ;; 1125 1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1128 | --sharedst | --shareds | --shared | --share | --shar \ 1129 | --sha | --sh) 1130 ac_prev=sharedstatedir ;; 1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1134 | --sha=* | --sh=*) 1135 sharedstatedir=$ac_optarg ;; 1136 1137 -site | --site | --sit) 1138 ac_prev=site ;; 1139 -site=* | --site=* | --sit=*) 1140 site=$ac_optarg ;; 1141 1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1143 ac_prev=srcdir ;; 1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1145 srcdir=$ac_optarg ;; 1146 1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1148 | --syscon | --sysco | --sysc | --sys | --sy) 1149 ac_prev=sysconfdir ;; 1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1152 sysconfdir=$ac_optarg ;; 1153 1154 -target | --target | --targe | --targ | --tar | --ta | --t) 1155 ac_prev=target_alias ;; 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1157 target_alias=$ac_optarg ;; 1158 1159 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1160 verbose=yes ;; 1161 1162 -version | --version | --versio | --versi | --vers | -V) 1163 ac_init_version=: ;; 1164 1165 -with-* | --with-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: $ac_useropt" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"with_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=\$ac_optarg ;; 1180 1181 -without-* | --without-*) 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1185 as_fn_error $? "invalid package name: $ac_useropt" 1186 ac_useropt_orig=$ac_useropt 1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1188 case $ac_user_opts in 1189 *" 1190"with_$ac_useropt" 1191"*) ;; 1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1193 ac_unrecognized_sep=', ';; 1194 esac 1195 eval with_$ac_useropt=no ;; 1196 1197 --x) 1198 # Obsolete; use --with-x. 1199 with_x=yes ;; 1200 1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1202 | --x-incl | --x-inc | --x-in | --x-i) 1203 ac_prev=x_includes ;; 1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1206 x_includes=$ac_optarg ;; 1207 1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1210 ac_prev=x_libraries ;; 1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1213 x_libraries=$ac_optarg ;; 1214 1215 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1216Try \`$0 --help' for more information" 1217 ;; 1218 1219 *=*) 1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1221 # Reject names that are not valid shell variable names. 1222 case $ac_envvar in #( 1223 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1225 esac 1226 eval $ac_envvar=\$ac_optarg 1227 export $ac_envvar ;; 1228 1229 *) 1230 # FIXME: should be removed in autoconf 3.0. 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1235 ;; 1236 1237 esac 1238done 1239 1240if test -n "$ac_prev"; then 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1242 as_fn_error $? "missing argument to $ac_option" 1243fi 1244 1245if test -n "$ac_unrecognized_opts"; then 1246 case $enable_option_checking in 1247 no) ;; 1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1250 esac 1251fi 1252 1253# Check all directory arguments for consistency. 1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1255 datadir sysconfdir sharedstatedir localstatedir includedir \ 1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1257 libdir localedir mandir runstatedir 1258do 1259 eval ac_val=\$$ac_var 1260 # Remove trailing slashes. 1261 case $ac_val in 1262 */ ) 1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1264 eval $ac_var=\$ac_val;; 1265 esac 1266 # Be sure to have absolute directory names. 1267 case $ac_val in 1268 [\\/$]* | ?:[\\/]* ) continue;; 1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1270 esac 1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1272done 1273 1274# There might be people who depend on the old broken behavior: `$host' 1275# used to hold the argument of --host etc. 1276# FIXME: To remove some day. 1277build=$build_alias 1278host=$host_alias 1279target=$target_alias 1280 1281# FIXME: To remove some day. 1282if test "x$host_alias" != x; then 1283 if test "x$build_alias" = x; then 1284 cross_compiling=maybe 1285 elif test "x$build_alias" != "x$host_alias"; then 1286 cross_compiling=yes 1287 fi 1288fi 1289 1290ac_tool_prefix= 1291test -n "$host_alias" && ac_tool_prefix=$host_alias- 1292 1293test "$silent" = yes && exec 6>/dev/null 1294 1295 1296ac_pwd=`pwd` && test -n "$ac_pwd" && 1297ac_ls_di=`ls -di .` && 1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1299 as_fn_error $? "working directory cannot be determined" 1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1301 as_fn_error $? "pwd does not report name of working directory" 1302 1303 1304# Find the source files, if location was not specified. 1305if test -z "$srcdir"; then 1306 ac_srcdir_defaulted=yes 1307 # Try the directory containing this script, then the parent directory. 1308 ac_confdir=`$as_dirname -- "$as_myself" || 1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1310 X"$as_myself" : 'X\(//\)[^/]' \| \ 1311 X"$as_myself" : 'X\(//\)$' \| \ 1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1313$as_echo X"$as_myself" | 1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)[^/].*/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\).*/{ 1327 s//\1/ 1328 q 1329 } 1330 s/.*/./; q'` 1331 srcdir=$ac_confdir 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 srcdir=.. 1334 fi 1335else 1336 ac_srcdir_defaulted=no 1337fi 1338if test ! -r "$srcdir/$ac_unique_file"; then 1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1341fi 1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1343ac_abs_confdir=`( 1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1345 pwd)` 1346# When building in place, set srcdir=. 1347if test "$ac_abs_confdir" = "$ac_pwd"; then 1348 srcdir=. 1349fi 1350# Remove unnecessary trailing slashes from srcdir. 1351# Double slashes in file names in object file debugging info 1352# mess up M-x gdb in Emacs. 1353case $srcdir in 1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1355esac 1356for ac_var in $ac_precious_vars; do 1357 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1358 eval ac_env_${ac_var}_value=\$${ac_var} 1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1361done 1362 1363# 1364# Report the --help message. 1365# 1366if test "$ac_init_help" = "long"; then 1367 # Omit some internal or obsolete options to make the list less imposing. 1368 # This message is too long to be a string in the A/UX 3.1 sh. 1369 cat <<_ACEOF 1370\`configure' configures re2c 2.2 to adapt to many kinds of systems. 1371 1372Usage: $0 [OPTION]... [VAR=VALUE]... 1373 1374To assign environment variables (e.g., CC, CFLAGS...), specify them as 1375VAR=VALUE. See below for descriptions of some of the useful variables. 1376 1377Defaults for the options are specified in brackets. 1378 1379Configuration: 1380 -h, --help display this help and exit 1381 --help=short display options specific to this package 1382 --help=recursive display the short help of all the included packages 1383 -V, --version display version information and exit 1384 -q, --quiet, --silent do not print \`checking ...' messages 1385 --cache-file=FILE cache test results in FILE [disabled] 1386 -C, --config-cache alias for \`--cache-file=config.cache' 1387 -n, --no-create do not create output files 1388 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1389 1390Installation directories: 1391 --prefix=PREFIX install architecture-independent files in PREFIX 1392 [$ac_default_prefix] 1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1394 [PREFIX] 1395 1396By default, \`make install' will install all the files in 1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1398an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1399for instance \`--prefix=\$HOME'. 1400 1401For better control, use the options below. 1402 1403Fine tuning of the installation directories: 1404 --bindir=DIR user executables [EPREFIX/bin] 1405 --sbindir=DIR system admin executables [EPREFIX/sbin] 1406 --libexecdir=DIR program executables [EPREFIX/libexec] 1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1411 --libdir=DIR object code libraries [EPREFIX/lib] 1412 --includedir=DIR C header files [PREFIX/include] 1413 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1416 --infodir=DIR info documentation [DATAROOTDIR/info] 1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1418 --mandir=DIR man documentation [DATAROOTDIR/man] 1419 --docdir=DIR documentation root [DATAROOTDIR/doc/re2c] 1420 --htmldir=DIR html documentation [DOCDIR] 1421 --dvidir=DIR dvi documentation [DOCDIR] 1422 --pdfdir=DIR pdf documentation [DOCDIR] 1423 --psdir=DIR ps documentation [DOCDIR] 1424_ACEOF 1425 1426 cat <<\_ACEOF 1427 1428Program names: 1429 --program-prefix=PREFIX prepend PREFIX to installed program names 1430 --program-suffix=SUFFIX append SUFFIX to installed program names 1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1432 1433System types: 1434 --build=BUILD configure for building on BUILD [guessed] 1435 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1436_ACEOF 1437fi 1438 1439if test -n "$ac_init_help"; then 1440 case $ac_init_help in 1441 short | recursive ) echo "Configuration of re2c 2.2:";; 1442 esac 1443 cat <<\_ACEOF 1444 1445Optional Features: 1446 --disable-option-checking ignore unrecognized --enable/--with options 1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1449 --enable-silent-rules less verbose build output (undo: "make V=1") 1450 --disable-silent-rules verbose build output (undo: "make V=0") 1451 --enable-dependency-tracking 1452 do not reject slow dependency extractors 1453 --disable-dependency-tracking 1454 speeds up one-time build 1455 --enable-debug enable checks and assertions 1456 --enable-docs regenerate manpage 1457 --enable-lexers regenerate lexers 1458 --enable-libs build libraries 1459 --enable-golang build re2go executable 1460 --enable-benchmarks build benchmarks 1461 --enable-benchmarks-regenerate 1462 regenerate C code for benchmarks 1463 --enable-shared[=PKGS] build shared libraries [default=yes] 1464 --enable-static[=PKGS] build static libraries [default=yes] 1465 --enable-fast-install[=PKGS] 1466 optimize for fast installation [default=yes] 1467 --disable-libtool-lock avoid locking (might break parallel builds) 1468 1469Optional Packages: 1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1472 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1473 both] 1474 --with-aix-soname=aix|svr4|both 1475 shared library versioning (aka "SONAME") variant to 1476 provide on AIX, [default=aix]. 1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1478 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1479 compiler's sysroot if not specified). 1480 1481Some influential environment variables: 1482 CC C compiler command 1483 CFLAGS C compiler flags 1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 nonstandard directory <lib dir> 1486 LIBS libraries to pass to the linker, e.g. -l<library> 1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1488 you have headers in a nonstandard directory <include dir> 1489 CPP C preprocessor 1490 RE2C_FOR_BUILD 1491 re2c executable used to regenerate lexers 1492 CXX C++ compiler command 1493 CXXFLAGS C++ compiler flags 1494 LT_SYS_LIBRARY_PATH 1495 User-defined run-time library search path. 1496 CXXCPP C++ preprocessor 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501Report bugs to <re2c-general@lists.sourceforge.net>. 1502_ACEOF 1503ac_status=$? 1504fi 1505 1506if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || 1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1511 continue 1512 ac_builddir=. 1513 1514case "$ac_dir" in 1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516*) 1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524esac 1525ac_abs_top_builddir=$ac_pwd 1526ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527# for backward compatibility: 1528ac_top_builddir=$ac_top_build_prefix 1529 1530case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543esac 1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559fi 1560 1561test -n "$ac_init_help" && exit $ac_status 1562if $ac_init_version; then 1563 cat <<\_ACEOF 1564re2c configure 2.2 1565generated by GNU Autoconf 2.69 1566 1567Copyright (C) 2012 Free Software Foundation, Inc. 1568This configure script is free software; the Free Software Foundation 1569gives unlimited permission to copy, distribute and modify it. 1570_ACEOF 1571 exit 1572fi 1573 1574## ------------------------ ## 1575## Autoconf initialization. ## 1576## ------------------------ ## 1577 1578# ac_fn_c_try_compile LINENO 1579# -------------------------- 1580# Try to compile conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_compile () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext 1585 if { { ac_try="$ac_compile" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_compile") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest.$ac_objext; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_compile 1615 1616# ac_fn_c_try_cpp LINENO 1617# ---------------------- 1618# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_cpp () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 if { { ac_try="$ac_cpp conftest.$ac_ext" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628$as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } > conftest.i && { 1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 }; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_cpp 1652 1653# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1654# ------------------------------------------------------- 1655# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1656# the include files in INCLUDES and setting the cache variable VAR 1657# accordingly. 1658ac_fn_c_check_header_mongrel () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if eval \${$3+:} false; then : 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663$as_echo_n "checking for $2... " >&6; } 1664if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666fi 1667eval ac_res=\$$3 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669$as_echo "$ac_res" >&6; } 1670else 1671 # Is the header compilable? 1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1673$as_echo_n "checking $2 usability... " >&6; } 1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO"; then : 1680 ac_header_compiler=yes 1681else 1682 ac_header_compiler=no 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1686$as_echo "$ac_header_compiler" >&6; } 1687 1688# Is the header present? 1689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1690$as_echo_n "checking $2 presence... " >&6; } 1691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692/* end confdefs.h. */ 1693#include <$2> 1694_ACEOF 1695if ac_fn_c_try_cpp "$LINENO"; then : 1696 ac_header_preproc=yes 1697else 1698 ac_header_preproc=no 1699fi 1700rm -f conftest.err conftest.i conftest.$ac_ext 1701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1702$as_echo "$ac_header_preproc" >&6; } 1703 1704# So? What about this header? 1705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1706 yes:no: ) 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1708$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1710$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1711 ;; 1712 no:yes:* ) 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1714$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1716$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1718$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1720$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;} 1723( $as_echo "## ------------------------------------------------- ## 1724## Report this to re2c-general@lists.sourceforge.net ## 1725## ------------------------------------------------- ##" 1726 ) | sed "s/^/$as_me: WARNING: /" >&2 1727 ;; 1728esac 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 eval "$3=\$ac_header_compiler" 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 1742} # ac_fn_c_check_header_mongrel 1743 1744# ac_fn_c_try_run LINENO 1745# ---------------------- 1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1747# that executables *can* be run. 1748ac_fn_c_try_run () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 if { { ac_try="$ac_link" 1752case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_link") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1762 { { case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_try") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; }; }; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: program exited with status $ac_status" >&5 1775 $as_echo "$as_me: failed program was:" >&5 1776sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=$ac_status 1779fi 1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 as_fn_set_status $ac_retval 1783 1784} # ac_fn_c_try_run 1785 1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1787# ------------------------------------------------------- 1788# Tests whether HEADER exists and can be compiled using the include files in 1789# INCLUDES, setting the cache variable VAR accordingly. 1790ac_fn_c_check_header_compile () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801#include <$2> 1802_ACEOF 1803if ac_fn_c_try_compile "$LINENO"; then : 1804 eval "$3=yes" 1805else 1806 eval "$3=no" 1807fi 1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809fi 1810eval ac_res=\$$3 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812$as_echo "$ac_res" >&6; } 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 1815} # ac_fn_c_check_header_compile 1816 1817# ac_fn_cxx_try_compile LINENO 1818# ---------------------------- 1819# Try to compile conftest.$ac_ext, and return whether this succeeded. 1820ac_fn_cxx_try_compile () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 rm -f conftest.$ac_objext 1824 if { { ac_try="$ac_compile" 1825case "(($ac_try" in 1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1827 *) ac_try_echo=$ac_try;; 1828esac 1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1830$as_echo "$ac_try_echo"; } >&5 1831 (eval "$ac_compile") 2>conftest.err 1832 ac_status=$? 1833 if test -s conftest.err; then 1834 grep -v '^ *+' conftest.err >conftest.er1 1835 cat conftest.er1 >&5 1836 mv -f conftest.er1 conftest.err 1837 fi 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } && { 1840 test -z "$ac_cxx_werror_flag" || 1841 test ! -s conftest.err 1842 } && test -s conftest.$ac_objext; then : 1843 ac_retval=0 1844else 1845 $as_echo "$as_me: failed program was:" >&5 1846sed 's/^/| /' conftest.$ac_ext >&5 1847 1848 ac_retval=1 1849fi 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 as_fn_set_status $ac_retval 1852 1853} # ac_fn_cxx_try_compile 1854 1855# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 1856# --------------------------------------------------------- 1857# Tests whether HEADER exists and can be compiled using the include files in 1858# INCLUDES, setting the cache variable VAR accordingly. 1859ac_fn_cxx_check_header_compile () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1863$as_echo_n "checking for $2... " >&6; } 1864if eval \${$3+:} false; then : 1865 $as_echo_n "(cached) " >&6 1866else 1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869$4 1870#include <$2> 1871_ACEOF 1872if ac_fn_cxx_try_compile "$LINENO"; then : 1873 eval "$3=yes" 1874else 1875 eval "$3=no" 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1878fi 1879eval ac_res=\$$3 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1881$as_echo "$ac_res" >&6; } 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 1884} # ac_fn_cxx_check_header_compile 1885 1886# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1887# -------------------------------------------- 1888# Tries to find the compile-time value of EXPR in a program that includes 1889# INCLUDES, setting VAR accordingly. Returns whether the value could be 1890# computed 1891ac_fn_c_compute_int () 1892{ 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 if test "$cross_compiling" = yes; then 1895 # Depending upon the size, compute the lo and hi bounds. 1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899int 1900main () 1901{ 1902static int test_array [1 - 2 * !(($2) >= 0)]; 1903test_array [0] = 0; 1904return test_array [0]; 1905 1906 ; 1907 return 0; 1908} 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 ac_lo=0 ac_mid=0 1912 while :; do 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916int 1917main () 1918{ 1919static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1920test_array [0] = 0; 1921return test_array [0]; 1922 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO"; then : 1928 ac_hi=$ac_mid; break 1929else 1930 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1931 if test $ac_lo -le $ac_mid; then 1932 ac_lo= ac_hi= 1933 break 1934 fi 1935 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1936fi 1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1938 done 1939else 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943int 1944main () 1945{ 1946static int test_array [1 - 2 * !(($2) < 0)]; 1947test_array [0] = 0; 1948return test_array [0]; 1949 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_compile "$LINENO"; then : 1955 ac_hi=-1 ac_mid=-1 1956 while :; do 1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959$4 1960int 1961main () 1962{ 1963static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1964test_array [0] = 0; 1965return test_array [0]; 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 ac_lo=$ac_mid; break 1973else 1974 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1975 if test $ac_mid -le $ac_hi; then 1976 ac_lo= ac_hi= 1977 break 1978 fi 1979 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1980fi 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1982 done 1983else 1984 ac_lo= ac_hi= 1985fi 1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1987fi 1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1989# Binary search between lo and hi bounds. 1990while test "x$ac_lo" != "x$ac_hi"; do 1991 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993/* end confdefs.h. */ 1994$4 1995int 1996main () 1997{ 1998static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1999test_array [0] = 0; 2000return test_array [0]; 2001 2002 ; 2003 return 0; 2004} 2005_ACEOF 2006if ac_fn_c_try_compile "$LINENO"; then : 2007 ac_hi=$ac_mid 2008else 2009 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2010fi 2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2012done 2013case $ac_lo in #(( 2014?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2015'') ac_retval=1 ;; 2016esac 2017 else 2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2019/* end confdefs.h. */ 2020$4 2021static long int longval () { return $2; } 2022static unsigned long int ulongval () { return $2; } 2023#include <stdio.h> 2024#include <stdlib.h> 2025int 2026main () 2027{ 2028 2029 FILE *f = fopen ("conftest.val", "w"); 2030 if (! f) 2031 return 1; 2032 if (($2) < 0) 2033 { 2034 long int i = longval (); 2035 if (i != ($2)) 2036 return 1; 2037 fprintf (f, "%ld", i); 2038 } 2039 else 2040 { 2041 unsigned long int i = ulongval (); 2042 if (i != ($2)) 2043 return 1; 2044 fprintf (f, "%lu", i); 2045 } 2046 /* Do not output a trailing newline, as this causes \r\n confusion 2047 on some platforms. */ 2048 return ferror (f) || fclose (f) != 0; 2049 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_run "$LINENO"; then : 2055 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2056else 2057 ac_retval=1 2058fi 2059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2060 conftest.$ac_objext conftest.beam conftest.$ac_ext 2061rm -f conftest.val 2062 2063 fi 2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2065 as_fn_set_status $ac_retval 2066 2067} # ac_fn_c_compute_int 2068 2069# ac_fn_c_try_link LINENO 2070# ----------------------- 2071# Try to link conftest.$ac_ext, and return whether this succeeded. 2072ac_fn_c_try_link () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 rm -f conftest.$ac_objext conftest$ac_exeext 2076 if { { ac_try="$ac_link" 2077case "(($ac_try" in 2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2079 *) ac_try_echo=$ac_try;; 2080esac 2081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2082$as_echo "$ac_try_echo"; } >&5 2083 (eval "$ac_link") 2>conftest.err 2084 ac_status=$? 2085 if test -s conftest.err; then 2086 grep -v '^ *+' conftest.err >conftest.er1 2087 cat conftest.er1 >&5 2088 mv -f conftest.er1 conftest.err 2089 fi 2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2091 test $ac_status = 0; } && { 2092 test -z "$ac_c_werror_flag" || 2093 test ! -s conftest.err 2094 } && test -s conftest$ac_exeext && { 2095 test "$cross_compiling" = yes || 2096 test -x conftest$ac_exeext 2097 }; then : 2098 ac_retval=0 2099else 2100 $as_echo "$as_me: failed program was:" >&5 2101sed 's/^/| /' conftest.$ac_ext >&5 2102 2103 ac_retval=1 2104fi 2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2107 # interfere with the next link command; also delete a directory that is 2108 # left behind by Apple's compiler. We do this before executing the actions. 2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2111 as_fn_set_status $ac_retval 2112 2113} # ac_fn_c_try_link 2114 2115# ac_fn_c_check_func LINENO FUNC VAR 2116# ---------------------------------- 2117# Tests whether FUNC exists, setting the cache variable VAR accordingly 2118ac_fn_c_check_func () 2119{ 2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2122$as_echo_n "checking for $2... " >&6; } 2123if eval \${$3+:} false; then : 2124 $as_echo_n "(cached) " >&6 2125else 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2129 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2130#define $2 innocuous_$2 2131 2132/* System header to define __stub macros and hopefully few prototypes, 2133 which can conflict with char $2 (); below. 2134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2135 <limits.h> exists even on freestanding compilers. */ 2136 2137#ifdef __STDC__ 2138# include <limits.h> 2139#else 2140# include <assert.h> 2141#endif 2142 2143#undef $2 2144 2145/* Override any GCC internal prototype to avoid an error. 2146 Use char because int might match the return type of a GCC 2147 builtin and then its argument prototype would still apply. */ 2148#ifdef __cplusplus 2149extern "C" 2150#endif 2151char $2 (); 2152/* The GNU C library defines this for functions which it implements 2153 to always fail with ENOSYS. Some functions are actually named 2154 something starting with __ and the normal name is an alias. */ 2155#if defined __stub_$2 || defined __stub___$2 2156choke me 2157#endif 2158 2159int 2160main () 2161{ 2162return $2 (); 2163 ; 2164 return 0; 2165} 2166_ACEOF 2167if ac_fn_c_try_link "$LINENO"; then : 2168 eval "$3=yes" 2169else 2170 eval "$3=no" 2171fi 2172rm -f core conftest.err conftest.$ac_objext \ 2173 conftest$ac_exeext conftest.$ac_ext 2174fi 2175eval ac_res=\$$3 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2177$as_echo "$ac_res" >&6; } 2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2179 2180} # ac_fn_c_check_func 2181 2182# ac_fn_cxx_try_cpp LINENO 2183# ------------------------ 2184# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2185ac_fn_cxx_try_cpp () 2186{ 2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2188 if { { ac_try="$ac_cpp conftest.$ac_ext" 2189case "(($ac_try" in 2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2191 *) ac_try_echo=$ac_try;; 2192esac 2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2194$as_echo "$ac_try_echo"; } >&5 2195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2196 ac_status=$? 2197 if test -s conftest.err; then 2198 grep -v '^ *+' conftest.err >conftest.er1 2199 cat conftest.er1 >&5 2200 mv -f conftest.er1 conftest.err 2201 fi 2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2203 test $ac_status = 0; } > conftest.i && { 2204 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2205 test ! -s conftest.err 2206 }; then : 2207 ac_retval=0 2208else 2209 $as_echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212 ac_retval=1 2213fi 2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2215 as_fn_set_status $ac_retval 2216 2217} # ac_fn_cxx_try_cpp 2218 2219# ac_fn_cxx_try_link LINENO 2220# ------------------------- 2221# Try to link conftest.$ac_ext, and return whether this succeeded. 2222ac_fn_cxx_try_link () 2223{ 2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2225 rm -f conftest.$ac_objext conftest$ac_exeext 2226 if { { ac_try="$ac_link" 2227case "(($ac_try" in 2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2229 *) ac_try_echo=$ac_try;; 2230esac 2231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2232$as_echo "$ac_try_echo"; } >&5 2233 (eval "$ac_link") 2>conftest.err 2234 ac_status=$? 2235 if test -s conftest.err; then 2236 grep -v '^ *+' conftest.err >conftest.er1 2237 cat conftest.er1 >&5 2238 mv -f conftest.er1 conftest.err 2239 fi 2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2241 test $ac_status = 0; } && { 2242 test -z "$ac_cxx_werror_flag" || 2243 test ! -s conftest.err 2244 } && test -s conftest$ac_exeext && { 2245 test "$cross_compiling" = yes || 2246 test -x conftest$ac_exeext 2247 }; then : 2248 ac_retval=0 2249else 2250 $as_echo "$as_me: failed program was:" >&5 2251sed 's/^/| /' conftest.$ac_ext >&5 2252 2253 ac_retval=1 2254fi 2255 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2256 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2257 # interfere with the next link command; also delete a directory that is 2258 # left behind by Apple's compiler. We do this before executing the actions. 2259 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2261 as_fn_set_status $ac_retval 2262 2263} # ac_fn_cxx_try_link 2264cat >config.log <<_ACEOF 2265This file contains any messages produced by compilers while 2266running configure, to aid debugging if configure makes a mistake. 2267 2268It was created by re2c $as_me 2.2, which was 2269generated by GNU Autoconf 2.69. Invocation command line was 2270 2271 $ $0 $@ 2272 2273_ACEOF 2274exec 5>>config.log 2275{ 2276cat <<_ASUNAME 2277## --------- ## 2278## Platform. ## 2279## --------- ## 2280 2281hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2282uname -m = `(uname -m) 2>/dev/null || echo unknown` 2283uname -r = `(uname -r) 2>/dev/null || echo unknown` 2284uname -s = `(uname -s) 2>/dev/null || echo unknown` 2285uname -v = `(uname -v) 2>/dev/null || echo unknown` 2286 2287/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2288/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2289 2290/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2291/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2292/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2293/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2294/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2295/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2296/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2297 2298_ASUNAME 2299 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 $as_echo "PATH: $as_dir" 2306 done 2307IFS=$as_save_IFS 2308 2309} >&5 2310 2311cat >&5 <<_ACEOF 2312 2313 2314## ----------- ## 2315## Core tests. ## 2316## ----------- ## 2317 2318_ACEOF 2319 2320 2321# Keep a trace of the command line. 2322# Strip out --no-create and --no-recursion so they do not pile up. 2323# Strip out --silent because we don't want to record it for future runs. 2324# Also quote any args containing shell meta-characters. 2325# Make two passes to allow for proper duplicate-argument suppression. 2326ac_configure_args= 2327ac_configure_args0= 2328ac_configure_args1= 2329ac_must_keep_next=false 2330for ac_pass in 1 2 2331do 2332 for ac_arg 2333 do 2334 case $ac_arg in 2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2337 | -silent | --silent | --silen | --sile | --sil) 2338 continue ;; 2339 *\'*) 2340 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 esac 2342 case $ac_pass in 2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2344 2) 2345 as_fn_append ac_configure_args1 " '$ac_arg'" 2346 if test $ac_must_keep_next = true; then 2347 ac_must_keep_next=false # Got value, back to normal. 2348 else 2349 case $ac_arg in 2350 *=* | --config-cache | -C | -disable-* | --disable-* \ 2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2353 | -with-* | --with-* | -without-* | --without-* | --x) 2354 case "$ac_configure_args0 " in 2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2356 esac 2357 ;; 2358 -* ) ac_must_keep_next=true ;; 2359 esac 2360 fi 2361 as_fn_append ac_configure_args " '$ac_arg'" 2362 ;; 2363 esac 2364 done 2365done 2366{ ac_configure_args0=; unset ac_configure_args0;} 2367{ ac_configure_args1=; unset ac_configure_args1;} 2368 2369# When interrupted or exit'd, cleanup temporary files, and complete 2370# config.log. We remove comments because anyway the quotes in there 2371# would cause problems or look ugly. 2372# WARNING: Use '\'' to represent an apostrophe within the trap. 2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2374trap 'exit_status=$? 2375 # Save into config.log some information that might help in debugging. 2376 { 2377 echo 2378 2379 $as_echo "## ---------------- ## 2380## Cache variables. ## 2381## ---------------- ##" 2382 echo 2383 # The following way of writing the cache mishandles newlines in values, 2384( 2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2386 eval ac_val=\$$ac_var 2387 case $ac_val in #( 2388 *${as_nl}*) 2389 case $ac_var in #( 2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2392 esac 2393 case $ac_var in #( 2394 _ | IFS | as_nl) ;; #( 2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2396 *) { eval $ac_var=; unset $ac_var;} ;; 2397 esac ;; 2398 esac 2399 done 2400 (set) 2>&1 | 2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2402 *${as_nl}ac_space=\ *) 2403 sed -n \ 2404 "s/'\''/'\''\\\\'\'''\''/g; 2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2406 ;; #( 2407 *) 2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2409 ;; 2410 esac | 2411 sort 2412) 2413 echo 2414 2415 $as_echo "## ----------------- ## 2416## Output variables. ## 2417## ----------------- ##" 2418 echo 2419 for ac_var in $ac_subst_vars 2420 do 2421 eval ac_val=\$$ac_var 2422 case $ac_val in 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2424 esac 2425 $as_echo "$ac_var='\''$ac_val'\''" 2426 done | sort 2427 echo 2428 2429 if test -n "$ac_subst_files"; then 2430 $as_echo "## ------------------- ## 2431## File substitutions. ## 2432## ------------------- ##" 2433 echo 2434 for ac_var in $ac_subst_files 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 fi 2444 2445 if test -s confdefs.h; then 2446 $as_echo "## ----------- ## 2447## confdefs.h. ## 2448## ----------- ##" 2449 echo 2450 cat confdefs.h 2451 echo 2452 fi 2453 test "$ac_signal" != 0 && 2454 $as_echo "$as_me: caught signal $ac_signal" 2455 $as_echo "$as_me: exit $exit_status" 2456 } >&5 2457 rm -f core *.core core.conftest.* && 2458 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2459 exit $exit_status 2460' 0 2461for ac_signal in 1 2 13 15; do 2462 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2463done 2464ac_signal=0 2465 2466# confdefs.h avoids OS command line length limits that DEFS can exceed. 2467rm -f -r conftest* confdefs.h 2468 2469$as_echo "/* confdefs.h */" > confdefs.h 2470 2471# Predefined preprocessor variables. 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_NAME "$PACKAGE_NAME" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2479_ACEOF 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_VERSION "$PACKAGE_VERSION" 2483_ACEOF 2484 2485cat >>confdefs.h <<_ACEOF 2486#define PACKAGE_STRING "$PACKAGE_STRING" 2487_ACEOF 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_URL "$PACKAGE_URL" 2495_ACEOF 2496 2497 2498# Let the site file select an alternate cache file if it wants to. 2499# Prefer an explicitly selected file to automatically selected ones. 2500ac_site_file1=NONE 2501ac_site_file2=NONE 2502if test -n "$CONFIG_SITE"; then 2503 # We do not want a PATH search for config.site. 2504 case $CONFIG_SITE in #(( 2505 -*) ac_site_file1=./$CONFIG_SITE;; 2506 */*) ac_site_file1=$CONFIG_SITE;; 2507 *) ac_site_file1=./$CONFIG_SITE;; 2508 esac 2509elif test "x$prefix" != xNONE; then 2510 ac_site_file1=$prefix/share/config.site 2511 ac_site_file2=$prefix/etc/config.site 2512else 2513 ac_site_file1=$ac_default_prefix/share/config.site 2514 ac_site_file2=$ac_default_prefix/etc/config.site 2515fi 2516for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2517do 2518 test "x$ac_site_file" = xNONE && continue 2519 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2521$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2522 sed 's/^/| /' "$ac_site_file" >&5 2523 . "$ac_site_file" \ 2524 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2526as_fn_error $? "failed to load site script $ac_site_file 2527See \`config.log' for more details" "$LINENO" 5; } 2528 fi 2529done 2530 2531if test -r "$cache_file"; then 2532 # Some versions of bash will fail to source /dev/null (special files 2533 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2534 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2536$as_echo "$as_me: loading cache $cache_file" >&6;} 2537 case $cache_file in 2538 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2539 *) . "./$cache_file";; 2540 esac 2541 fi 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2544$as_echo "$as_me: creating cache $cache_file" >&6;} 2545 >$cache_file 2546fi 2547 2548# Check that the precious variables saved in the cache have kept the same 2549# value. 2550ac_cache_corrupted=false 2551for ac_var in $ac_precious_vars; do 2552 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2553 eval ac_new_set=\$ac_env_${ac_var}_set 2554 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2555 eval ac_new_val=\$ac_env_${ac_var}_value 2556 case $ac_old_set,$ac_new_set in 2557 set,) 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2559$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2560 ac_cache_corrupted=: ;; 2561 ,set) 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2564 ac_cache_corrupted=: ;; 2565 ,);; 2566 *) 2567 if test "x$ac_old_val" != "x$ac_new_val"; then 2568 # differences in whitespace do not lead to failure. 2569 ac_old_val_w=`echo x $ac_old_val` 2570 ac_new_val_w=`echo x $ac_new_val` 2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2574 ac_cache_corrupted=: 2575 else 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2578 eval $ac_var=\$ac_old_val 2579 fi 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2581$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2583$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2584 fi;; 2585 esac 2586 # Pass precious variables to config.status. 2587 if test "$ac_new_set" = set; then 2588 case $ac_new_val in 2589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2590 *) ac_arg=$ac_var=$ac_new_val ;; 2591 esac 2592 case " $ac_configure_args " in 2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2594 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2595 esac 2596 fi 2597done 2598if $ac_cache_corrupted; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2603 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2604fi 2605## -------------------- ## 2606## Main body of script. ## 2607## -------------------- ## 2608 2609ac_ext=c 2610ac_cpp='$CPP $CPPFLAGS' 2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2613ac_compiler_gnu=$ac_cv_c_compiler_gnu 2614 2615 2616ac_aux_dir= 2617for ac_dir in build-aux "$srcdir"/build-aux; do 2618 if test -f "$ac_dir/install-sh"; then 2619 ac_aux_dir=$ac_dir 2620 ac_install_sh="$ac_aux_dir/install-sh -c" 2621 break 2622 elif test -f "$ac_dir/install.sh"; then 2623 ac_aux_dir=$ac_dir 2624 ac_install_sh="$ac_aux_dir/install.sh -c" 2625 break 2626 elif test -f "$ac_dir/shtool"; then 2627 ac_aux_dir=$ac_dir 2628 ac_install_sh="$ac_aux_dir/shtool install -c" 2629 break 2630 fi 2631done 2632if test -z "$ac_aux_dir"; then 2633 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2634fi 2635 2636# These three variables are undocumented and unsupported, 2637# and are intended to be withdrawn in a future Autoconf release. 2638# They can cause serious problems if a builder's source tree is in a directory 2639# whose full name contains unusual characters. 2640ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2641ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2642ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2643 2644 2645am__api_version='1.16' 2646 2647# Find a good install program. We prefer a C program (faster), 2648# so one script is as good as another. But avoid the broken or 2649# incompatible versions: 2650# SysV /etc/install, /usr/sbin/install 2651# SunOS /usr/etc/install 2652# IRIX /sbin/install 2653# AIX /bin/install 2654# AmigaOS /C/install, which installs bootblocks on floppy discs 2655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2656# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2658# OS/2's system install, which has a completely different semantic 2659# ./install, which can be erroneously created by make from ./install.sh. 2660# Reject install programs that cannot install multiple files. 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2662$as_echo_n "checking for a BSD-compatible install... " >&6; } 2663if test -z "$INSTALL"; then 2664if ${ac_cv_path_install+:} false; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 # Account for people who put trailing slashes in PATH elements. 2673case $as_dir/ in #(( 2674 ./ | .// | /[cC]/* | \ 2675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2676 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2677 /usr/ucb/* ) ;; 2678 *) 2679 # OSF1 and SCO ODT 3.0 have their own names for install. 2680 # Don't use installbsd from OSF since it installs stuff as root 2681 # by default. 2682 for ac_prog in ginstall scoinst install; do 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2685 if test $ac_prog = install && 2686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2687 # AIX install. It has an incompatible calling convention. 2688 : 2689 elif test $ac_prog = install && 2690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2691 # program-specific install script used by HP pwplus--don't use. 2692 : 2693 else 2694 rm -rf conftest.one conftest.two conftest.dir 2695 echo one > conftest.one 2696 echo two > conftest.two 2697 mkdir conftest.dir 2698 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2699 test -s conftest.one && test -s conftest.two && 2700 test -s conftest.dir/conftest.one && 2701 test -s conftest.dir/conftest.two 2702 then 2703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2704 break 3 2705 fi 2706 fi 2707 fi 2708 done 2709 done 2710 ;; 2711esac 2712 2713 done 2714IFS=$as_save_IFS 2715 2716rm -rf conftest.one conftest.two conftest.dir 2717 2718fi 2719 if test "${ac_cv_path_install+set}" = set; then 2720 INSTALL=$ac_cv_path_install 2721 else 2722 # As a last resort, use the slow shell script. Don't cache a 2723 # value for INSTALL within a source directory, because that will 2724 # break other packages using the cache if that directory is 2725 # removed, or if the value is a relative name. 2726 INSTALL=$ac_install_sh 2727 fi 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2730$as_echo "$INSTALL" >&6; } 2731 2732# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2733# It thinks the first close brace ends the variable substitution. 2734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2735 2736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2737 2738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2739 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2741$as_echo_n "checking whether build environment is sane... " >&6; } 2742# Reject unsafe characters in $srcdir or the absolute working directory 2743# name. Accept space and tab only in the latter. 2744am_lf=' 2745' 2746case `pwd` in 2747 *[\\\"\#\$\&\'\`$am_lf]*) 2748 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2749esac 2750case $srcdir in 2751 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2752 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2753esac 2754 2755# Do 'set' in a subshell so we don't clobber the current shell's 2756# arguments. Must try -L first in case configure is actually a 2757# symlink; some systems play weird games with the mod time of symlinks 2758# (eg FreeBSD returns the mod time of the symlink's containing 2759# directory). 2760if ( 2761 am_has_slept=no 2762 for am_try in 1 2; do 2763 echo "timestamp, slept: $am_has_slept" > conftest.file 2764 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2765 if test "$*" = "X"; then 2766 # -L didn't work. 2767 set X `ls -t "$srcdir/configure" conftest.file` 2768 fi 2769 if test "$*" != "X $srcdir/configure conftest.file" \ 2770 && test "$*" != "X conftest.file $srcdir/configure"; then 2771 2772 # If neither matched, then we have a broken ls. This can happen 2773 # if, for instance, CONFIG_SHELL is bash and it inherits a 2774 # broken ls alias from the environment. This has actually 2775 # happened. Such a system could not be considered "sane". 2776 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2777 alias in your environment" "$LINENO" 5 2778 fi 2779 if test "$2" = conftest.file || test $am_try -eq 2; then 2780 break 2781 fi 2782 # Just in case. 2783 sleep 1 2784 am_has_slept=yes 2785 done 2786 test "$2" = conftest.file 2787 ) 2788then 2789 # Ok. 2790 : 2791else 2792 as_fn_error $? "newly created file is older than distributed files! 2793Check your system clock" "$LINENO" 5 2794fi 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2796$as_echo "yes" >&6; } 2797# If we didn't sleep, we still need to ensure time stamps of config.status and 2798# generated files are strictly newer. 2799am_sleep_pid= 2800if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2801 ( sleep 1 ) & 2802 am_sleep_pid=$! 2803fi 2804 2805rm -f conftest.file 2806 2807test "$program_prefix" != NONE && 2808 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2809# Use a double $ so make ignores it. 2810test "$program_suffix" != NONE && 2811 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2812# Double any \ or $. 2813# By default was `s,x,x', remove it if useless. 2814ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2815program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2816 2817# Expand $ac_aux_dir to an absolute path. 2818am_aux_dir=`cd "$ac_aux_dir" && pwd` 2819 2820if test x"${MISSING+set}" != xset; then 2821 MISSING="\${SHELL} '$am_aux_dir/missing'" 2822fi 2823# Use eval to expand $SHELL 2824if eval "$MISSING --is-lightweight"; then 2825 am_missing_run="$MISSING " 2826else 2827 am_missing_run= 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2829$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2830fi 2831 2832if test x"${install_sh+set}" != xset; then 2833 case $am_aux_dir in 2834 *\ * | *\ *) 2835 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2836 *) 2837 install_sh="\${SHELL} $am_aux_dir/install-sh" 2838 esac 2839fi 2840 2841# Installed binaries are usually stripped using 'strip' when the user 2842# run "make install-strip". However 'strip' might not be the right 2843# tool to use in cross-compilation environments, therefore Automake 2844# will honor the 'STRIP' environment variable to overrule this program. 2845if test "$cross_compiling" != no; then 2846 if test -n "$ac_tool_prefix"; then 2847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2848set dummy ${ac_tool_prefix}strip; ac_word=$2 2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2850$as_echo_n "checking for $ac_word... " >&6; } 2851if ${ac_cv_prog_STRIP+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853else 2854 if test -n "$STRIP"; then 2855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2864 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869 done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874STRIP=$ac_cv_prog_STRIP 2875if test -n "$STRIP"; then 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2877$as_echo "$STRIP" >&6; } 2878else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880$as_echo "no" >&6; } 2881fi 2882 2883 2884fi 2885if test -z "$ac_cv_prog_STRIP"; then 2886 ac_ct_STRIP=$STRIP 2887 # Extract the first word of "strip", so it can be a program name with args. 2888set dummy strip; ac_word=$2 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2890$as_echo_n "checking for $ac_word... " >&6; } 2891if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2892 $as_echo_n "(cached) " >&6 2893else 2894 if test -n "$ac_ct_STRIP"; then 2895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2896else 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 test -z "$as_dir" && as_dir=. 2902 for ac_exec_ext in '' $ac_executable_extensions; do 2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2904 ac_cv_prog_ac_ct_STRIP="strip" 2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2906 break 2 2907 fi 2908done 2909 done 2910IFS=$as_save_IFS 2911 2912fi 2913fi 2914ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2915if test -n "$ac_ct_STRIP"; then 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2917$as_echo "$ac_ct_STRIP" >&6; } 2918else 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2920$as_echo "no" >&6; } 2921fi 2922 2923 if test "x$ac_ct_STRIP" = x; then 2924 STRIP=":" 2925 else 2926 case $cross_compiling:$ac_tool_warned in 2927yes:) 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2930ac_tool_warned=yes ;; 2931esac 2932 STRIP=$ac_ct_STRIP 2933 fi 2934else 2935 STRIP="$ac_cv_prog_STRIP" 2936fi 2937 2938fi 2939INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2940 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2942$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2943if test -z "$MKDIR_P"; then 2944 if ${ac_cv_path_mkdir+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2949do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 for ac_prog in mkdir gmkdir; do 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2955 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2956 'mkdir (GNU coreutils) '* | \ 2957 'mkdir (coreutils) '* | \ 2958 'mkdir (fileutils) '4.1*) 2959 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2960 break 3;; 2961 esac 2962 done 2963 done 2964 done 2965IFS=$as_save_IFS 2966 2967fi 2968 2969 test -d ./--version && rmdir ./--version 2970 if test "${ac_cv_path_mkdir+set}" = set; then 2971 MKDIR_P="$ac_cv_path_mkdir -p" 2972 else 2973 # As a last resort, use the slow shell script. Don't cache a 2974 # value for MKDIR_P within a source directory, because that will 2975 # break other packages using the cache if that directory is 2976 # removed, or if the value is a relative name. 2977 MKDIR_P="$ac_install_sh -d" 2978 fi 2979fi 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2981$as_echo "$MKDIR_P" >&6; } 2982 2983for ac_prog in gawk mawk nawk awk 2984do 2985 # Extract the first word of "$ac_prog", so it can be a program name with args. 2986set dummy $ac_prog; ac_word=$2 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988$as_echo_n "checking for $ac_word... " >&6; } 2989if ${ac_cv_prog_AWK+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 if test -n "$AWK"; then 2993 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2994else 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996for as_dir in $PATH 2997do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_AWK="$ac_prog" 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012AWK=$ac_cv_prog_AWK 3013if test -n "$AWK"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3015$as_echo "$AWK" >&6; } 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 3022 test -n "$AWK" && break 3023done 3024 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3026$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3027set x ${MAKE-make} 3028ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3029if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 cat >conftest.make <<\_ACEOF 3033SHELL = /bin/sh 3034all: 3035 @echo '@@@%%%=$(MAKE)=@@@%%%' 3036_ACEOF 3037# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3038case `${MAKE-make} -f conftest.make 2>/dev/null` in 3039 *@@@%%%=?*=@@@%%%*) 3040 eval ac_cv_prog_make_${ac_make}_set=yes;; 3041 *) 3042 eval ac_cv_prog_make_${ac_make}_set=no;; 3043esac 3044rm -f conftest.make 3045fi 3046if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3048$as_echo "yes" >&6; } 3049 SET_MAKE= 3050else 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052$as_echo "no" >&6; } 3053 SET_MAKE="MAKE=${MAKE-make}" 3054fi 3055 3056rm -rf .tst 2>/dev/null 3057mkdir .tst 2>/dev/null 3058if test -d .tst; then 3059 am__leading_dot=. 3060else 3061 am__leading_dot=_ 3062fi 3063rmdir .tst 2>/dev/null 3064 3065# Check whether --enable-silent-rules was given. 3066if test "${enable_silent_rules+set}" = set; then : 3067 enableval=$enable_silent_rules; 3068fi 3069 3070case $enable_silent_rules in # ((( 3071 yes) AM_DEFAULT_VERBOSITY=0;; 3072 no) AM_DEFAULT_VERBOSITY=1;; 3073 *) AM_DEFAULT_VERBOSITY=1;; 3074esac 3075am_make=${MAKE-make} 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3077$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3078if ${am_cv_make_support_nested_variables+:} false; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 if $as_echo 'TRUE=$(BAR$(V)) 3082BAR0=false 3083BAR1=true 3084V=1 3085am__doit: 3086 @$(TRUE) 3087.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3088 am_cv_make_support_nested_variables=yes 3089else 3090 am_cv_make_support_nested_variables=no 3091fi 3092fi 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3094$as_echo "$am_cv_make_support_nested_variables" >&6; } 3095if test $am_cv_make_support_nested_variables = yes; then 3096 AM_V='$(V)' 3097 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3098else 3099 AM_V=$AM_DEFAULT_VERBOSITY 3100 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3101fi 3102AM_BACKSLASH='\' 3103 3104if test "`cd $srcdir && pwd`" != "`pwd`"; then 3105 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3106 # is not polluted with repeated "-I." 3107 am__isrc=' -I$(srcdir)' 3108 # test to see if srcdir already configured 3109 if test -f $srcdir/config.status; then 3110 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3111 fi 3112fi 3113 3114# test whether we have cygpath 3115if test -z "$CYGPATH_W"; then 3116 if (cygpath --version) >/dev/null 2>/dev/null; then 3117 CYGPATH_W='cygpath -w' 3118 else 3119 CYGPATH_W=echo 3120 fi 3121fi 3122 3123 3124# Define the identity of the package. 3125 PACKAGE='re2c' 3126 VERSION='2.2' 3127 3128 3129cat >>confdefs.h <<_ACEOF 3130#define PACKAGE "$PACKAGE" 3131_ACEOF 3132 3133 3134cat >>confdefs.h <<_ACEOF 3135#define VERSION "$VERSION" 3136_ACEOF 3137 3138# Some tools Automake needs. 3139 3140ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3141 3142 3143AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3144 3145 3146AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3147 3148 3149AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3150 3151 3152MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3153 3154# For better backward compatibility. To be removed once Automake 1.9.x 3155# dies out for good. For more background, see: 3156# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3157# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3158mkdir_p='$(MKDIR_P)' 3159 3160# We need awk for the "check" target (and possibly the TAP driver). The 3161# system "awk" is bad on some platforms. 3162# Always define AMTAR for backward compatibility. Yes, it's still used 3163# in the wild :-( We should find a proper way to deprecate it ... 3164AMTAR='$${TAR-tar}' 3165 3166 3167# We'll loop over all known methods to create a tar archive until one works. 3168_am_tools='gnutar pax cpio none' 3169 3170am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3171 3172 3173 3174 3175 3176 3177# POSIX will say in a future version that running "rm -f" with no argument 3178# is OK; and we want to be able to make that assumption in our Makefile 3179# recipes. So use an aggressive probe to check that the usage we want is 3180# actually supported "in the wild" to an acceptable degree. 3181# See automake bug#10828. 3182# To make any issue more visible, cause the running configure to be aborted 3183# by default if the 'rm' program in use doesn't match our expectations; the 3184# user can still override this though. 3185if rm -f && rm -fr && rm -rf; then : OK; else 3186 cat >&2 <<'END' 3187Oops! 3188 3189Your 'rm' program seems unable to run without file operands specified 3190on the command line, even when the '-f' option is present. This is contrary 3191to the behaviour of most rm programs out there, and not conforming with 3192the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3193 3194Please tell bug-automake@gnu.org about your system, including the value 3195of your $PATH and any error possibly output before this message. This 3196can help us improve future automake versions. 3197 3198END 3199 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3200 echo 'Configuration will proceed anyway, since you have set the' >&2 3201 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3202 echo >&2 3203 else 3204 cat >&2 <<'END' 3205Aborting the configuration process, to ensure you take notice of the issue. 3206 3207You can download and install GNU coreutils to get an 'rm' implementation 3208that behaves properly: <https://www.gnu.org/software/coreutils/>. 3209 3210If you want to complete the configuration process using your problematic 3211'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3212to "yes", and re-run configure. 3213 3214END 3215 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3216 fi 3217fi 3218 3219# Check whether --enable-silent-rules was given. 3220if test "${enable_silent_rules+set}" = set; then : 3221 enableval=$enable_silent_rules; 3222fi 3223 3224case $enable_silent_rules in # ((( 3225 yes) AM_DEFAULT_VERBOSITY=0;; 3226 no) AM_DEFAULT_VERBOSITY=1;; 3227 *) AM_DEFAULT_VERBOSITY=0;; 3228esac 3229am_make=${MAKE-make} 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3231$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3232if ${am_cv_make_support_nested_variables+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if $as_echo 'TRUE=$(BAR$(V)) 3236BAR0=false 3237BAR1=true 3238V=1 3239am__doit: 3240 @$(TRUE) 3241.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3242 am_cv_make_support_nested_variables=yes 3243else 3244 am_cv_make_support_nested_variables=no 3245fi 3246fi 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3248$as_echo "$am_cv_make_support_nested_variables" >&6; } 3249if test $am_cv_make_support_nested_variables = yes; then 3250 AM_V='$(V)' 3251 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3252else 3253 AM_V=$AM_DEFAULT_VERBOSITY 3254 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3255fi 3256AM_BACKSLASH='\' 3257 3258 3259 3260 3261ac_config_headers="$ac_config_headers config.h" 3262 3263 3264 3265 3266 3267 3268PACKAGE_RELEASE=${PACKAGE_RELEASE:-1} 3269 3270 3271 3272# without this, --std=c++98 disables POSIX functions on Cygwin 3273DEPDIR="${am__leading_dot}deps" 3274 3275ac_config_commands="$ac_config_commands depfiles" 3276 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3278$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3279cat > confinc.mk << 'END' 3280am__doit: 3281 @echo this is the am__doit target >confinc.out 3282.PHONY: am__doit 3283END 3284am__include="#" 3285am__quote= 3286# BSD make does it like this. 3287echo '.include "confinc.mk" # ignored' > confmf.BSD 3288# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3289echo 'include confinc.mk # ignored' > confmf.GNU 3290_am_result=no 3291for s in GNU BSD; do 3292 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3293 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3294 ac_status=$? 3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3296 (exit $ac_status); } 3297 case $?:`cat confinc.out 2>/dev/null` in #( 3298 '0:this is the am__doit target') : 3299 case $s in #( 3300 BSD) : 3301 am__include='.include' am__quote='"' ;; #( 3302 *) : 3303 am__include='include' am__quote='' ;; 3304esac ;; #( 3305 *) : 3306 ;; 3307esac 3308 if test "$am__include" != "#"; then 3309 _am_result="yes ($s style)" 3310 break 3311 fi 3312done 3313rm -f confinc.* confmf.* 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3315$as_echo "${_am_result}" >&6; } 3316 3317# Check whether --enable-dependency-tracking was given. 3318if test "${enable_dependency_tracking+set}" = set; then : 3319 enableval=$enable_dependency_tracking; 3320fi 3321 3322if test "x$enable_dependency_tracking" != xno; then 3323 am_depcomp="$ac_aux_dir/depcomp" 3324 AMDEPBACKSLASH='\' 3325 am__nodep='_no' 3326fi 3327 if test "x$enable_dependency_tracking" != xno; then 3328 AMDEP_TRUE= 3329 AMDEP_FALSE='#' 3330else 3331 AMDEP_TRUE='#' 3332 AMDEP_FALSE= 3333fi 3334 3335 3336ac_ext=c 3337ac_cpp='$CPP $CPPFLAGS' 3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3340ac_compiler_gnu=$ac_cv_c_compiler_gnu 3341if test -n "$ac_tool_prefix"; then 3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3343set dummy ${ac_tool_prefix}gcc; ac_word=$2 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3345$as_echo_n "checking for $ac_word... " >&6; } 3346if ${ac_cv_prog_CC+:} false; then : 3347 $as_echo_n "(cached) " >&6 3348else 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi 3368fi 3369CC=$ac_cv_prog_CC 3370if test -n "$CC"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3372$as_echo "$CC" >&6; } 3373else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375$as_echo "no" >&6; } 3376fi 3377 3378 3379fi 3380if test -z "$ac_cv_prog_CC"; then 3381 ac_ct_CC=$CC 3382 # Extract the first word of "gcc", so it can be a program name with args. 3383set dummy gcc; ac_word=$2 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385$as_echo_n "checking for $ac_word... " >&6; } 3386if ${ac_cv_prog_ac_ct_CC+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388else 3389 if test -n "$ac_ct_CC"; then 3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3391else 3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 test -z "$as_dir" && as_dir=. 3397 for ac_exec_ext in '' $ac_executable_extensions; do 3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3399 ac_cv_prog_ac_ct_CC="gcc" 3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3401 break 2 3402 fi 3403done 3404 done 3405IFS=$as_save_IFS 3406 3407fi 3408fi 3409ac_ct_CC=$ac_cv_prog_ac_ct_CC 3410if test -n "$ac_ct_CC"; then 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3412$as_echo "$ac_ct_CC" >&6; } 3413else 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415$as_echo "no" >&6; } 3416fi 3417 3418 if test "x$ac_ct_CC" = x; then 3419 CC="" 3420 else 3421 case $cross_compiling:$ac_tool_warned in 3422yes:) 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3425ac_tool_warned=yes ;; 3426esac 3427 CC=$ac_ct_CC 3428 fi 3429else 3430 CC="$ac_cv_prog_CC" 3431fi 3432 3433if test -z "$CC"; then 3434 if test -n "$ac_tool_prefix"; then 3435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3436set dummy ${ac_tool_prefix}cc; ac_word=$2 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3438$as_echo_n "checking for $ac_word... " >&6; } 3439if ${ac_cv_prog_CC+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441else 3442 if test -n "$CC"; then 3443 ac_cv_prog_CC="$CC" # Let the user override the test. 3444else 3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3452 ac_cv_prog_CC="${ac_tool_prefix}cc" 3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460fi 3461fi 3462CC=$ac_cv_prog_CC 3463if test -n "$CC"; then 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3465$as_echo "$CC" >&6; } 3466else 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468$as_echo "no" >&6; } 3469fi 3470 3471 3472 fi 3473fi 3474if test -z "$CC"; then 3475 # Extract the first word of "cc", so it can be a program name with args. 3476set dummy cc; ac_word=$2 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478$as_echo_n "checking for $ac_word... " >&6; } 3479if ${ac_cv_prog_CC+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 if test -n "$CC"; then 3483 ac_cv_prog_CC="$CC" # Let the user override the test. 3484else 3485 ac_prog_rejected=no 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 test -z "$as_dir" && as_dir=. 3491 for ac_exec_ext in '' $ac_executable_extensions; do 3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3494 ac_prog_rejected=yes 3495 continue 3496 fi 3497 ac_cv_prog_CC="cc" 3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505if test $ac_prog_rejected = yes; then 3506 # We found a bogon in the path, so make sure we never use it. 3507 set dummy $ac_cv_prog_CC 3508 shift 3509 if test $# != 0; then 3510 # We chose a different compiler from the bogus one. 3511 # However, it has the same basename, so the bogon will be chosen 3512 # first if we set CC to just the basename; use the full file name. 3513 shift 3514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3515 fi 3516fi 3517fi 3518fi 3519CC=$ac_cv_prog_CC 3520if test -n "$CC"; then 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3522$as_echo "$CC" >&6; } 3523else 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525$as_echo "no" >&6; } 3526fi 3527 3528 3529fi 3530if test -z "$CC"; then 3531 if test -n "$ac_tool_prefix"; then 3532 for ac_prog in cl.exe 3533 do 3534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3535set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3537$as_echo_n "checking for $ac_word... " >&6; } 3538if ${ac_cv_prog_CC+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 if test -n "$CC"; then 3542 ac_cv_prog_CC="$CC" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 test -z "$as_dir" && as_dir=. 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555done 3556 done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561CC=$ac_cv_prog_CC 3562if test -n "$CC"; then 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3564$as_echo "$CC" >&6; } 3565else 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567$as_echo "no" >&6; } 3568fi 3569 3570 3571 test -n "$CC" && break 3572 done 3573fi 3574if test -z "$CC"; then 3575 ac_ct_CC=$CC 3576 for ac_prog in cl.exe 3577do 3578 # Extract the first word of "$ac_prog", so it can be a program name with args. 3579set dummy $ac_prog; ac_word=$2 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3581$as_echo_n "checking for $ac_word... " >&6; } 3582if ${ac_cv_prog_ac_ct_CC+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 if test -n "$ac_ct_CC"; then 3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3587else 3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589for as_dir in $PATH 3590do 3591 IFS=$as_save_IFS 3592 test -z "$as_dir" && as_dir=. 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3595 ac_cv_prog_ac_ct_CC="$ac_prog" 3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3597 break 2 3598 fi 3599done 3600 done 3601IFS=$as_save_IFS 3602 3603fi 3604fi 3605ac_ct_CC=$ac_cv_prog_ac_ct_CC 3606if test -n "$ac_ct_CC"; then 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3608$as_echo "$ac_ct_CC" >&6; } 3609else 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611$as_echo "no" >&6; } 3612fi 3613 3614 3615 test -n "$ac_ct_CC" && break 3616done 3617 3618 if test "x$ac_ct_CC" = x; then 3619 CC="" 3620 else 3621 case $cross_compiling:$ac_tool_warned in 3622yes:) 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3625ac_tool_warned=yes ;; 3626esac 3627 CC=$ac_ct_CC 3628 fi 3629fi 3630 3631fi 3632 3633 3634test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3636as_fn_error $? "no acceptable C compiler found in \$PATH 3637See \`config.log' for more details" "$LINENO" 5; } 3638 3639# Provide some information about the compiler. 3640$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3641set X $ac_compile 3642ac_compiler=$2 3643for ac_option in --version -v -V -qversion; do 3644 { { ac_try="$ac_compiler $ac_option >&5" 3645case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648esac 3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3650$as_echo "$ac_try_echo"; } >&5 3651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3652 ac_status=$? 3653 if test -s conftest.err; then 3654 sed '10a\ 3655... rest of stderr output deleted ... 3656 10q' conftest.err >conftest.er1 3657 cat conftest.er1 >&5 3658 fi 3659 rm -f conftest.er1 conftest.err 3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3661 test $ac_status = 0; } 3662done 3663 3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665/* end confdefs.h. */ 3666 3667int 3668main () 3669{ 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675ac_clean_files_save=$ac_clean_files 3676ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3677# Try to create an executable without -o first, disregard a.out. 3678# It will help us diagnose broken compilers, and finding out an intuition 3679# of exeext. 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3681$as_echo_n "checking whether the C compiler works... " >&6; } 3682ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3683 3684# The possible output files: 3685ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3686 3687ac_rmfiles= 3688for ac_file in $ac_files 3689do 3690 case $ac_file in 3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3692 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3693 esac 3694done 3695rm -f $ac_rmfiles 3696 3697if { { ac_try="$ac_link_default" 3698case "(($ac_try" in 3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700 *) ac_try_echo=$ac_try;; 3701esac 3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3703$as_echo "$ac_try_echo"; } >&5 3704 (eval "$ac_link_default") 2>&5 3705 ac_status=$? 3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3707 test $ac_status = 0; }; then : 3708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3709# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3710# in a Makefile. We should not override ac_cv_exeext if it was cached, 3711# so that the user can short-circuit this test for compilers unknown to 3712# Autoconf. 3713for ac_file in $ac_files '' 3714do 3715 test -f "$ac_file" || continue 3716 case $ac_file in 3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3718 ;; 3719 [ab].out ) 3720 # We found the default executable, but exeext='' is most 3721 # certainly right. 3722 break;; 3723 *.* ) 3724 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3725 then :; else 3726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3727 fi 3728 # We set ac_cv_exeext here because the later test for it is not 3729 # safe: cross compilers may not add the suffix if given an `-o' 3730 # argument, so we may need to know it at that point already. 3731 # Even if this section looks crufty: it has the advantage of 3732 # actually working. 3733 break;; 3734 * ) 3735 break;; 3736 esac 3737done 3738test "$ac_cv_exeext" = no && ac_cv_exeext= 3739 3740else 3741 ac_file='' 3742fi 3743if test -z "$ac_file"; then : 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745$as_echo "no" >&6; } 3746$as_echo "$as_me: failed program was:" >&5 3747sed 's/^/| /' conftest.$ac_ext >&5 3748 3749{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3751as_fn_error 77 "C compiler cannot create executables 3752See \`config.log' for more details" "$LINENO" 5; } 3753else 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3755$as_echo "yes" >&6; } 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3758$as_echo_n "checking for C compiler default output file name... " >&6; } 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3760$as_echo "$ac_file" >&6; } 3761ac_exeext=$ac_cv_exeext 3762 3763rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3764ac_clean_files=$ac_clean_files_save 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3766$as_echo_n "checking for suffix of executables... " >&6; } 3767if { { ac_try="$ac_link" 3768case "(($ac_try" in 3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3770 *) ac_try_echo=$ac_try;; 3771esac 3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3773$as_echo "$ac_try_echo"; } >&5 3774 (eval "$ac_link") 2>&5 3775 ac_status=$? 3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3777 test $ac_status = 0; }; then : 3778 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3779# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3780# work properly (i.e., refer to `conftest.exe'), while it won't with 3781# `rm'. 3782for ac_file in conftest.exe conftest conftest.*; do 3783 test -f "$ac_file" || continue 3784 case $ac_file in 3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3786 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3787 break;; 3788 * ) break;; 3789 esac 3790done 3791else 3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3794as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3795See \`config.log' for more details" "$LINENO" 5; } 3796fi 3797rm -f conftest conftest$ac_cv_exeext 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3799$as_echo "$ac_cv_exeext" >&6; } 3800 3801rm -f conftest.$ac_ext 3802EXEEXT=$ac_cv_exeext 3803ac_exeext=$EXEEXT 3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806#include <stdio.h> 3807int 3808main () 3809{ 3810FILE *f = fopen ("conftest.out", "w"); 3811 return ferror (f) || fclose (f) != 0; 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817ac_clean_files="$ac_clean_files conftest.out" 3818# Check that the compiler produces executables we can run. If not, either 3819# the compiler is broken, or we cross compile. 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3821$as_echo_n "checking whether we are cross compiling... " >&6; } 3822if test "$cross_compiling" != yes; then 3823 { { ac_try="$ac_link" 3824case "(($ac_try" in 3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *) ac_try_echo=$ac_try;; 3827esac 3828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3829$as_echo "$ac_try_echo"; } >&5 3830 (eval "$ac_link") 2>&5 3831 ac_status=$? 3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3833 test $ac_status = 0; } 3834 if { ac_try='./conftest$ac_cv_exeext' 3835 { { case "(($ac_try" in 3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3837 *) ac_try_echo=$ac_try;; 3838esac 3839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3840$as_echo "$ac_try_echo"; } >&5 3841 (eval "$ac_try") 2>&5 3842 ac_status=$? 3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3844 test $ac_status = 0; }; }; then 3845 cross_compiling=no 3846 else 3847 if test "$cross_compiling" = maybe; then 3848 cross_compiling=yes 3849 else 3850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3852as_fn_error $? "cannot run C compiled programs. 3853If you meant to cross compile, use \`--host'. 3854See \`config.log' for more details" "$LINENO" 5; } 3855 fi 3856 fi 3857fi 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3859$as_echo "$cross_compiling" >&6; } 3860 3861rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3862ac_clean_files=$ac_clean_files_save 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3864$as_echo_n "checking for suffix of object files... " >&6; } 3865if ${ac_cv_objext+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879rm -f conftest.o conftest.obj 3880if { { ac_try="$ac_compile" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886$as_echo "$ac_try_echo"; } >&5 3887 (eval "$ac_compile") 2>&5 3888 ac_status=$? 3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3890 test $ac_status = 0; }; then : 3891 for ac_file in conftest.o conftest.obj conftest.*; do 3892 test -f "$ac_file" || continue; 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3896 break;; 3897 esac 3898done 3899else 3900 $as_echo "$as_me: failed program was:" >&5 3901sed 's/^/| /' conftest.$ac_ext >&5 3902 3903{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3905as_fn_error $? "cannot compute suffix of object files: cannot compile 3906See \`config.log' for more details" "$LINENO" 5; } 3907fi 3908rm -f conftest.$ac_cv_objext conftest.$ac_ext 3909fi 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3911$as_echo "$ac_cv_objext" >&6; } 3912OBJEXT=$ac_cv_objext 3913ac_objext=$OBJEXT 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3915$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3916if ${ac_cv_c_compiler_gnu+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921 3922int 3923main () 3924{ 3925#ifndef __GNUC__ 3926 choke me 3927#endif 3928 3929 ; 3930 return 0; 3931} 3932_ACEOF 3933if ac_fn_c_try_compile "$LINENO"; then : 3934 ac_compiler_gnu=yes 3935else 3936 ac_compiler_gnu=no 3937fi 3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3939ac_cv_c_compiler_gnu=$ac_compiler_gnu 3940 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3943$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3944if test $ac_compiler_gnu = yes; then 3945 GCC=yes 3946else 3947 GCC= 3948fi 3949ac_test_CFLAGS=${CFLAGS+set} 3950ac_save_CFLAGS=$CFLAGS 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3952$as_echo_n "checking whether $CC accepts -g... " >&6; } 3953if ${ac_cv_prog_cc_g+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 ac_save_c_werror_flag=$ac_c_werror_flag 3957 ac_c_werror_flag=yes 3958 ac_cv_prog_cc_g=no 3959 CFLAGS="-g" 3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3961/* end confdefs.h. */ 3962 3963int 3964main () 3965{ 3966 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971if ac_fn_c_try_compile "$LINENO"; then : 3972 ac_cv_prog_cc_g=yes 3973else 3974 CFLAGS="" 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977 3978int 3979main () 3980{ 3981 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986if ac_fn_c_try_compile "$LINENO"; then : 3987 3988else 3989 ac_c_werror_flag=$ac_save_c_werror_flag 3990 CFLAGS="-g" 3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993 3994int 3995main () 3996{ 3997 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002if ac_fn_c_try_compile "$LINENO"; then : 4003 ac_cv_prog_cc_g=yes 4004fi 4005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010 ac_c_werror_flag=$ac_save_c_werror_flag 4011fi 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4013$as_echo "$ac_cv_prog_cc_g" >&6; } 4014if test "$ac_test_CFLAGS" = set; then 4015 CFLAGS=$ac_save_CFLAGS 4016elif test $ac_cv_prog_cc_g = yes; then 4017 if test "$GCC" = yes; then 4018 CFLAGS="-g -O2" 4019 else 4020 CFLAGS="-g" 4021 fi 4022else 4023 if test "$GCC" = yes; then 4024 CFLAGS="-O2" 4025 else 4026 CFLAGS= 4027 fi 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4030$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4031if ${ac_cv_prog_cc_c89+:} false; then : 4032 $as_echo_n "(cached) " >&6 4033else 4034 ac_cv_prog_cc_c89=no 4035ac_save_CC=$CC 4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038#include <stdarg.h> 4039#include <stdio.h> 4040struct stat; 4041/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4042struct buf { int x; }; 4043FILE * (*rcsopen) (struct buf *, struct stat *, int); 4044static char *e (p, i) 4045 char **p; 4046 int i; 4047{ 4048 return p[i]; 4049} 4050static char *f (char * (*g) (char **, int), char **p, ...) 4051{ 4052 char *s; 4053 va_list v; 4054 va_start (v,p); 4055 s = g (p, va_arg (v,int)); 4056 va_end (v); 4057 return s; 4058} 4059 4060/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4061 function prototypes and stuff, but not '\xHH' hex character constants. 4062 These don't provoke an error unfortunately, instead are silently treated 4063 as 'x'. The following induces an error, until -std is added to get 4064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4065 array size at least. It's necessary to write '\x00'==0 to get something 4066 that's true only with -std. */ 4067int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4068 4069/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4070 inside strings and character constants. */ 4071#define FOO(x) 'x' 4072int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4073 4074int test (int i, double x); 4075struct s1 {int (*f) (int a);}; 4076struct s2 {int (*f) (double a);}; 4077int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4078int argc; 4079char **argv; 4080int 4081main () 4082{ 4083return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4084 ; 4085 return 0; 4086} 4087_ACEOF 4088for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4090do 4091 CC="$ac_save_CC $ac_arg" 4092 if ac_fn_c_try_compile "$LINENO"; then : 4093 ac_cv_prog_cc_c89=$ac_arg 4094fi 4095rm -f core conftest.err conftest.$ac_objext 4096 test "x$ac_cv_prog_cc_c89" != "xno" && break 4097done 4098rm -f conftest.$ac_ext 4099CC=$ac_save_CC 4100 4101fi 4102# AC_CACHE_VAL 4103case "x$ac_cv_prog_cc_c89" in 4104 x) 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4106$as_echo "none needed" >&6; } ;; 4107 xno) 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4109$as_echo "unsupported" >&6; } ;; 4110 *) 4111 CC="$CC $ac_cv_prog_cc_c89" 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4113$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4114esac 4115if test "x$ac_cv_prog_cc_c89" != xno; then : 4116 4117fi 4118 4119ac_ext=c 4120ac_cpp='$CPP $CPPFLAGS' 4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4123ac_compiler_gnu=$ac_cv_c_compiler_gnu 4124 4125ac_ext=c 4126ac_cpp='$CPP $CPPFLAGS' 4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4129ac_compiler_gnu=$ac_cv_c_compiler_gnu 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4131$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4132if ${am_cv_prog_cc_c_o+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146 # Make sure it works both with $CC and with simple cc. 4147 # Following AC_PROG_CC_C_O, we do the test twice because some 4148 # compilers refuse to overwrite an existing .o file with -o, 4149 # though they will create one. 4150 am_cv_prog_cc_c_o=yes 4151 for am_i in 1 2; do 4152 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4153 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } \ 4157 && test -f conftest2.$ac_objext; then 4158 : OK 4159 else 4160 am_cv_prog_cc_c_o=no 4161 break 4162 fi 4163 done 4164 rm -f core conftest* 4165 unset am_i 4166fi 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4168$as_echo "$am_cv_prog_cc_c_o" >&6; } 4169if test "$am_cv_prog_cc_c_o" != yes; then 4170 # Losing compiler, so override with the script. 4171 # FIXME: It is wrong to rewrite CC. 4172 # But if we don't then we get into trouble of one sort or another. 4173 # A longer-term fix would be to have automake use am__CC in this case, 4174 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4175 CC="$am_aux_dir/compile $CC" 4176fi 4177ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182 4183 4184depcc="$CC" am_compiler_list= 4185 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4187$as_echo_n "checking dependency style of $depcc... " >&6; } 4188if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4192 # We make a subdir and do the tests there. Otherwise we can end up 4193 # making bogus files that we don't know about and never remove. For 4194 # instance it was reported that on HP-UX the gcc test will end up 4195 # making a dummy file named 'D' -- because '-MD' means "put the output 4196 # in D". 4197 rm -rf conftest.dir 4198 mkdir conftest.dir 4199 # Copy depcomp to subdir because otherwise we won't find it if we're 4200 # using a relative directory. 4201 cp "$am_depcomp" conftest.dir 4202 cd conftest.dir 4203 # We will build objects and dependencies in a subdirectory because 4204 # it helps to detect inapplicable dependency modes. For instance 4205 # both Tru64's cc and ICC support -MD to output dependencies as a 4206 # side effect of compilation, but ICC will put the dependencies in 4207 # the current directory while Tru64 will put them in the object 4208 # directory. 4209 mkdir sub 4210 4211 am_cv_CC_dependencies_compiler_type=none 4212 if test "$am_compiler_list" = ""; then 4213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4214 fi 4215 am__universal=false 4216 case " $depcc " in #( 4217 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4218 esac 4219 4220 for depmode in $am_compiler_list; do 4221 # Setup a source with many dependencies, because some compilers 4222 # like to wrap large dependency lists on column 80 (with \), and 4223 # we should not choose a depcomp mode which is confused by this. 4224 # 4225 # We need to recreate these files for each test, as the compiler may 4226 # overwrite some of them when testing with obscure command lines. 4227 # This happens at least with the AIX C compiler. 4228 : > sub/conftest.c 4229 for i in 1 2 3 4 5 6; do 4230 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4231 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4232 # Solaris 10 /bin/sh. 4233 echo '/* dummy */' > sub/conftst$i.h 4234 done 4235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4236 4237 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4238 # mode. It turns out that the SunPro C++ compiler does not properly 4239 # handle '-M -o', and we need to detect this. Also, some Intel 4240 # versions had trouble with output in subdirs. 4241 am__obj=sub/conftest.${OBJEXT-o} 4242 am__minus_obj="-o $am__obj" 4243 case $depmode in 4244 gcc) 4245 # This depmode causes a compiler race in universal mode. 4246 test "$am__universal" = false || continue 4247 ;; 4248 nosideeffect) 4249 # After this tag, mechanisms are not by side-effect, so they'll 4250 # only be used when explicitly requested. 4251 if test "x$enable_dependency_tracking" = xyes; then 4252 continue 4253 else 4254 break 4255 fi 4256 ;; 4257 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4258 # This compiler won't grok '-c -o', but also, the minuso test has 4259 # not run yet. These depmodes are late enough in the game, and 4260 # so weak that their functioning should not be impacted. 4261 am__obj=conftest.${OBJEXT-o} 4262 am__minus_obj= 4263 ;; 4264 none) break ;; 4265 esac 4266 if depmode=$depmode \ 4267 source=sub/conftest.c object=$am__obj \ 4268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4270 >/dev/null 2>conftest.err && 4271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4275 # icc doesn't choke on unknown options, it will just issue warnings 4276 # or remarks (even with -Werror). So we grep stderr for any message 4277 # that says an option was ignored or not supported. 4278 # When given -MP, icc 7.0 and 7.1 complain thusly: 4279 # icc: Command line warning: ignoring option '-M'; no argument required 4280 # The diagnosis changed in icc 8.0: 4281 # icc: Command line remark: option '-MP' not supported 4282 if (grep 'ignoring option' conftest.err || 4283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4284 am_cv_CC_dependencies_compiler_type=$depmode 4285 break 4286 fi 4287 fi 4288 done 4289 4290 cd .. 4291 rm -rf conftest.dir 4292else 4293 am_cv_CC_dependencies_compiler_type=none 4294fi 4295 4296fi 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4298$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4299CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4300 4301 if 4302 test "x$enable_dependency_tracking" != xno \ 4303 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4304 am__fastdepCC_TRUE= 4305 am__fastdepCC_FALSE='#' 4306else 4307 am__fastdepCC_TRUE='#' 4308 am__fastdepCC_FALSE= 4309fi 4310 4311 4312 4313ac_ext=c 4314ac_cpp='$CPP $CPPFLAGS' 4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4317ac_compiler_gnu=$ac_cv_c_compiler_gnu 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4319$as_echo_n "checking how to run the C preprocessor... " >&6; } 4320# On Suns, sometimes $CPP names a directory. 4321if test -n "$CPP" && test -d "$CPP"; then 4322 CPP= 4323fi 4324if test -z "$CPP"; then 4325 if ${ac_cv_prog_CPP+:} false; then : 4326 $as_echo_n "(cached) " >&6 4327else 4328 # Double quotes because CPP needs to be expanded 4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4330 do 4331 ac_preproc_ok=false 4332for ac_c_preproc_warn_flag in '' yes 4333do 4334 # Use a header file that comes with gcc, so configuring glibc 4335 # with a fresh cross-compiler works. 4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4337 # <limits.h> exists even on freestanding compilers. 4338 # On the NeXT, cc -E runs the code through the compiler's parser, 4339 # not just through cpp. "Syntax error" is here to catch this case. 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342#ifdef __STDC__ 4343# include <limits.h> 4344#else 4345# include <assert.h> 4346#endif 4347 Syntax error 4348_ACEOF 4349if ac_fn_c_try_cpp "$LINENO"; then : 4350 4351else 4352 # Broken: fails on valid input. 4353continue 4354fi 4355rm -f conftest.err conftest.i conftest.$ac_ext 4356 4357 # OK, works on sane cases. Now check whether nonexistent headers 4358 # can be detected and how. 4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360/* end confdefs.h. */ 4361#include <ac_nonexistent.h> 4362_ACEOF 4363if ac_fn_c_try_cpp "$LINENO"; then : 4364 # Broken: success on invalid input. 4365continue 4366else 4367 # Passes both tests. 4368ac_preproc_ok=: 4369break 4370fi 4371rm -f conftest.err conftest.i conftest.$ac_ext 4372 4373done 4374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4375rm -f conftest.i conftest.err conftest.$ac_ext 4376if $ac_preproc_ok; then : 4377 break 4378fi 4379 4380 done 4381 ac_cv_prog_CPP=$CPP 4382 4383fi 4384 CPP=$ac_cv_prog_CPP 4385else 4386 ac_cv_prog_CPP=$CPP 4387fi 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4389$as_echo "$CPP" >&6; } 4390ac_preproc_ok=false 4391for ac_c_preproc_warn_flag in '' yes 4392do 4393 # Use a header file that comes with gcc, so configuring glibc 4394 # with a fresh cross-compiler works. 4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4396 # <limits.h> exists even on freestanding compilers. 4397 # On the NeXT, cc -E runs the code through the compiler's parser, 4398 # not just through cpp. "Syntax error" is here to catch this case. 4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401#ifdef __STDC__ 4402# include <limits.h> 4403#else 4404# include <assert.h> 4405#endif 4406 Syntax error 4407_ACEOF 4408if ac_fn_c_try_cpp "$LINENO"; then : 4409 4410else 4411 # Broken: fails on valid input. 4412continue 4413fi 4414rm -f conftest.err conftest.i conftest.$ac_ext 4415 4416 # OK, works on sane cases. Now check whether nonexistent headers 4417 # can be detected and how. 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420#include <ac_nonexistent.h> 4421_ACEOF 4422if ac_fn_c_try_cpp "$LINENO"; then : 4423 # Broken: success on invalid input. 4424continue 4425else 4426 # Passes both tests. 4427ac_preproc_ok=: 4428break 4429fi 4430rm -f conftest.err conftest.i conftest.$ac_ext 4431 4432done 4433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4434rm -f conftest.i conftest.err conftest.$ac_ext 4435if $ac_preproc_ok; then : 4436 4437else 4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4440as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4441See \`config.log' for more details" "$LINENO" 5; } 4442fi 4443 4444ac_ext=c 4445ac_cpp='$CPP $CPPFLAGS' 4446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4448ac_compiler_gnu=$ac_cv_c_compiler_gnu 4449 4450 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4452$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4453if ${ac_cv_path_GREP+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test -z "$GREP"; then 4457 ac_path_GREP_found=false 4458 # Loop through the user's path and test for each of PROGNAME-LIST 4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4461do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_prog in grep ggrep; do 4465 for ac_exec_ext in '' $ac_executable_extensions; do 4466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4467 as_fn_executable_p "$ac_path_GREP" || continue 4468# Check for GNU ac_path_GREP and select it if it is found. 4469 # Check for GNU $ac_path_GREP 4470case `"$ac_path_GREP" --version 2>&1` in 4471*GNU*) 4472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4473*) 4474 ac_count=0 4475 $as_echo_n 0123456789 >"conftest.in" 4476 while : 4477 do 4478 cat "conftest.in" "conftest.in" >"conftest.tmp" 4479 mv "conftest.tmp" "conftest.in" 4480 cp "conftest.in" "conftest.nl" 4481 $as_echo 'GREP' >> "conftest.nl" 4482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4484 as_fn_arith $ac_count + 1 && ac_count=$as_val 4485 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4486 # Best one so far, save it but keep looking for a better one 4487 ac_cv_path_GREP="$ac_path_GREP" 4488 ac_path_GREP_max=$ac_count 4489 fi 4490 # 10*(2^10) chars as input seems more than enough 4491 test $ac_count -gt 10 && break 4492 done 4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4494esac 4495 4496 $ac_path_GREP_found && break 3 4497 done 4498 done 4499 done 4500IFS=$as_save_IFS 4501 if test -z "$ac_cv_path_GREP"; then 4502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4503 fi 4504else 4505 ac_cv_path_GREP=$GREP 4506fi 4507 4508fi 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4510$as_echo "$ac_cv_path_GREP" >&6; } 4511 GREP="$ac_cv_path_GREP" 4512 4513 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4515$as_echo_n "checking for egrep... " >&6; } 4516if ${ac_cv_path_EGREP+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4520 then ac_cv_path_EGREP="$GREP -E" 4521 else 4522 if test -z "$EGREP"; then 4523 ac_path_EGREP_found=false 4524 # Loop through the user's path and test for each of PROGNAME-LIST 4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4527do 4528 IFS=$as_save_IFS 4529 test -z "$as_dir" && as_dir=. 4530 for ac_prog in egrep; do 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4533 as_fn_executable_p "$ac_path_EGREP" || continue 4534# Check for GNU ac_path_EGREP and select it if it is found. 4535 # Check for GNU $ac_path_EGREP 4536case `"$ac_path_EGREP" --version 2>&1` in 4537*GNU*) 4538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4539*) 4540 ac_count=0 4541 $as_echo_n 0123456789 >"conftest.in" 4542 while : 4543 do 4544 cat "conftest.in" "conftest.in" >"conftest.tmp" 4545 mv "conftest.tmp" "conftest.in" 4546 cp "conftest.in" "conftest.nl" 4547 $as_echo 'EGREP' >> "conftest.nl" 4548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4550 as_fn_arith $ac_count + 1 && ac_count=$as_val 4551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4552 # Best one so far, save it but keep looking for a better one 4553 ac_cv_path_EGREP="$ac_path_EGREP" 4554 ac_path_EGREP_max=$ac_count 4555 fi 4556 # 10*(2^10) chars as input seems more than enough 4557 test $ac_count -gt 10 && break 4558 done 4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4560esac 4561 4562 $ac_path_EGREP_found && break 3 4563 done 4564 done 4565 done 4566IFS=$as_save_IFS 4567 if test -z "$ac_cv_path_EGREP"; then 4568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4569 fi 4570else 4571 ac_cv_path_EGREP=$EGREP 4572fi 4573 4574 fi 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4577$as_echo "$ac_cv_path_EGREP" >&6; } 4578 EGREP="$ac_cv_path_EGREP" 4579 4580 4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4582$as_echo_n "checking for ANSI C header files... " >&6; } 4583if ${ac_cv_header_stdc+:} false; then : 4584 $as_echo_n "(cached) " >&6 4585else 4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4587/* end confdefs.h. */ 4588#include <stdlib.h> 4589#include <stdarg.h> 4590#include <string.h> 4591#include <float.h> 4592 4593int 4594main () 4595{ 4596 4597 ; 4598 return 0; 4599} 4600_ACEOF 4601if ac_fn_c_try_compile "$LINENO"; then : 4602 ac_cv_header_stdc=yes 4603else 4604 ac_cv_header_stdc=no 4605fi 4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4607 4608if test $ac_cv_header_stdc = yes; then 4609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4611/* end confdefs.h. */ 4612#include <string.h> 4613 4614_ACEOF 4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4616 $EGREP "memchr" >/dev/null 2>&1; then : 4617 4618else 4619 ac_cv_header_stdc=no 4620fi 4621rm -f conftest* 4622 4623fi 4624 4625if test $ac_cv_header_stdc = yes; then 4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4628/* end confdefs.h. */ 4629#include <stdlib.h> 4630 4631_ACEOF 4632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4633 $EGREP "free" >/dev/null 2>&1; then : 4634 4635else 4636 ac_cv_header_stdc=no 4637fi 4638rm -f conftest* 4639 4640fi 4641 4642if test $ac_cv_header_stdc = yes; then 4643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4644 if test "$cross_compiling" = yes; then : 4645 : 4646else 4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4648/* end confdefs.h. */ 4649#include <ctype.h> 4650#include <stdlib.h> 4651#if ((' ' & 0x0FF) == 0x020) 4652# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4653# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4654#else 4655# define ISLOWER(c) \ 4656 (('a' <= (c) && (c) <= 'i') \ 4657 || ('j' <= (c) && (c) <= 'r') \ 4658 || ('s' <= (c) && (c) <= 'z')) 4659# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4660#endif 4661 4662#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4663int 4664main () 4665{ 4666 int i; 4667 for (i = 0; i < 256; i++) 4668 if (XOR (islower (i), ISLOWER (i)) 4669 || toupper (i) != TOUPPER (i)) 4670 return 2; 4671 return 0; 4672} 4673_ACEOF 4674if ac_fn_c_try_run "$LINENO"; then : 4675 4676else 4677 ac_cv_header_stdc=no 4678fi 4679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4680 conftest.$ac_objext conftest.beam conftest.$ac_ext 4681fi 4682 4683fi 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4686$as_echo "$ac_cv_header_stdc" >&6; } 4687if test $ac_cv_header_stdc = yes; then 4688 4689$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4690 4691fi 4692 4693# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4695 inttypes.h stdint.h unistd.h 4696do : 4697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4699" 4700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4701 cat >>confdefs.h <<_ACEOF 4702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4703_ACEOF 4704 4705fi 4706 4707done 4708 4709 4710 4711 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4712if test "x$ac_cv_header_minix_config_h" = xyes; then : 4713 MINIX=yes 4714else 4715 MINIX= 4716fi 4717 4718 4719 if test "$MINIX" = yes; then 4720 4721$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4722 4723 4724$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4725 4726 4727$as_echo "#define _MINIX 1" >>confdefs.h 4728 4729 fi 4730 4731 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4733$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4734if ${ac_cv_safe_to_define___extensions__+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739 4740# define __EXTENSIONS__ 1 4741 $ac_includes_default 4742int 4743main () 4744{ 4745 4746 ; 4747 return 0; 4748} 4749_ACEOF 4750if ac_fn_c_try_compile "$LINENO"; then : 4751 ac_cv_safe_to_define___extensions__=yes 4752else 4753 ac_cv_safe_to_define___extensions__=no 4754fi 4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4756fi 4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4758$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4759 test $ac_cv_safe_to_define___extensions__ = yes && 4760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4761 4762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4763 4764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4765 4766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4767 4768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4769 4770 4771 4772 4773# --enable-debug 4774# Check whether --enable-debug was given. 4775if test "${enable_debug+set}" = set; then : 4776 enableval=$enable_debug; 4777fi 4778 4779 if test "x$enable_debug" = "xyes"; then 4780 DEBUG_TRUE= 4781 DEBUG_FALSE='#' 4782else 4783 DEBUG_TRUE='#' 4784 DEBUG_FALSE= 4785fi 4786 4787 4788 4789# --enable-docs 4790# Check whether --enable-docs was given. 4791if test "${enable_docs+set}" = set; then : 4792 enableval=$enable_docs; 4793fi 4794 4795 if test "x$enable_docs" = "xyes"; then 4796 REBUILD_DOCS_TRUE= 4797 REBUILD_DOCS_FALSE='#' 4798else 4799 REBUILD_DOCS_TRUE='#' 4800 REBUILD_DOCS_FALSE= 4801fi 4802 4803if test -z "$REBUILD_DOCS_TRUE"; then : 4804 4805 for ac_prog in rst2man rst2man.py 4806do 4807 # Extract the first word of "$ac_prog", so it can be a program name with args. 4808set dummy $ac_prog; ac_word=$2 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4810$as_echo_n "checking for $ac_word... " >&6; } 4811if ${ac_cv_prog_RST2MAN+:} false; then : 4812 $as_echo_n "(cached) " >&6 4813else 4814 if test -n "$RST2MAN"; then 4815 ac_cv_prog_RST2MAN="$RST2MAN" # Let the user override the test. 4816else 4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_prog_RST2MAN="$ac_prog" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834RST2MAN=$ac_cv_prog_RST2MAN 4835if test -n "$RST2MAN"; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2MAN" >&5 4837$as_echo "$RST2MAN" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840$as_echo "no" >&6; } 4841fi 4842 4843 4844 test -n "$RST2MAN" && break 4845done 4846test -n "$RST2MAN" || RST2MAN="no" 4847 4848 if test "x$RST2MAN" = "xno"; then : 4849 4850 as_fn_error $? "need rst2man or rst2man.py for --enable-docs" "$LINENO" 5 4851 4852fi 4853 4854fi 4855 4856 4857# --enable-lexers 4858# Check whether --enable-lexers was given. 4859if test "${enable_lexers+set}" = set; then : 4860 enableval=$enable_lexers; 4861fi 4862 4863 if test "x$enable_lexers" = "xyes"; then 4864 REBUILD_LEXERS_TRUE= 4865 REBUILD_LEXERS_FALSE='#' 4866else 4867 REBUILD_LEXERS_TRUE='#' 4868 REBUILD_LEXERS_FALSE= 4869fi 4870 4871if test -z "$REBUILD_LEXERS_TRUE"; then : 4872 4873 4874 if test ! -x "$RE2C_FOR_BUILD"; then : 4875 4876 as_fn_error $? "RE2C_FOR_BUILD must be set to an executable file with --enable-lexers" "$LINENO" 5 4877 4878fi 4879 4880fi 4881 4882 4883# --enable-libs 4884# Check whether --enable-libs was given. 4885if test "${enable_libs+set}" = set; then : 4886 enableval=$enable_libs; 4887fi 4888 4889 if test "x$enable_libs" = "xyes"; then 4890 WITH_LIBS_TRUE= 4891 WITH_LIBS_FALSE='#' 4892else 4893 WITH_LIBS_TRUE='#' 4894 WITH_LIBS_FALSE= 4895fi 4896 4897ac_ext=cpp 4898ac_cpp='$CXXCPP $CPPFLAGS' 4899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4902if test -z "$CXX"; then 4903 if test -n "$CCC"; then 4904 CXX=$CCC 4905 else 4906 if test -n "$ac_tool_prefix"; then 4907 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4908 do 4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4912$as_echo_n "checking for $ac_word... " >&6; } 4913if ${ac_cv_prog_CXX+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 if test -n "$CXX"; then 4917 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4918else 4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_exec_ext in '' $ac_executable_extensions; do 4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4926 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4928 break 2 4929 fi 4930done 4931 done 4932IFS=$as_save_IFS 4933 4934fi 4935fi 4936CXX=$ac_cv_prog_CXX 4937if test -n "$CXX"; then 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4939$as_echo "$CXX" >&6; } 4940else 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4942$as_echo "no" >&6; } 4943fi 4944 4945 4946 test -n "$CXX" && break 4947 done 4948fi 4949if test -z "$CXX"; then 4950 ac_ct_CXX=$CXX 4951 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4952do 4953 # Extract the first word of "$ac_prog", so it can be a program name with args. 4954set dummy $ac_prog; ac_word=$2 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4956$as_echo_n "checking for $ac_word... " >&6; } 4957if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 if test -n "$ac_ct_CXX"; then 4961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4962else 4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4970 ac_cv_prog_ac_ct_CXX="$ac_prog" 4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974done 4975 done 4976IFS=$as_save_IFS 4977 4978fi 4979fi 4980ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4981if test -n "$ac_ct_CXX"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4983$as_echo "$ac_ct_CXX" >&6; } 4984else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986$as_echo "no" >&6; } 4987fi 4988 4989 4990 test -n "$ac_ct_CXX" && break 4991done 4992 4993 if test "x$ac_ct_CXX" = x; then 4994 CXX="g++" 4995 else 4996 case $cross_compiling:$ac_tool_warned in 4997yes:) 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5000ac_tool_warned=yes ;; 5001esac 5002 CXX=$ac_ct_CXX 5003 fi 5004fi 5005 5006 fi 5007fi 5008# Provide some information about the compiler. 5009$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5010set X $ac_compile 5011ac_compiler=$2 5012for ac_option in --version -v -V -qversion; do 5013 { { ac_try="$ac_compiler $ac_option >&5" 5014case "(($ac_try" in 5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5016 *) ac_try_echo=$ac_try;; 5017esac 5018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5019$as_echo "$ac_try_echo"; } >&5 5020 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5021 ac_status=$? 5022 if test -s conftest.err; then 5023 sed '10a\ 5024... rest of stderr output deleted ... 5025 10q' conftest.err >conftest.er1 5026 cat conftest.er1 >&5 5027 fi 5028 rm -f conftest.er1 conftest.err 5029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5030 test $ac_status = 0; } 5031done 5032 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5034$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5035if ${ac_cv_cxx_compiler_gnu+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5039/* end confdefs.h. */ 5040 5041int 5042main () 5043{ 5044#ifndef __GNUC__ 5045 choke me 5046#endif 5047 5048 ; 5049 return 0; 5050} 5051_ACEOF 5052if ac_fn_cxx_try_compile "$LINENO"; then : 5053 ac_compiler_gnu=yes 5054else 5055 ac_compiler_gnu=no 5056fi 5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5058ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5059 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5062$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5063if test $ac_compiler_gnu = yes; then 5064 GXX=yes 5065else 5066 GXX= 5067fi 5068ac_test_CXXFLAGS=${CXXFLAGS+set} 5069ac_save_CXXFLAGS=$CXXFLAGS 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5071$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5072if ${ac_cv_prog_cxx_g+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5076 ac_cxx_werror_flag=yes 5077 ac_cv_prog_cxx_g=no 5078 CXXFLAGS="-g" 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081 5082int 5083main () 5084{ 5085 5086 ; 5087 return 0; 5088} 5089_ACEOF 5090if ac_fn_cxx_try_compile "$LINENO"; then : 5091 ac_cv_prog_cxx_g=yes 5092else 5093 CXXFLAGS="" 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096 5097int 5098main () 5099{ 5100 5101 ; 5102 return 0; 5103} 5104_ACEOF 5105if ac_fn_cxx_try_compile "$LINENO"; then : 5106 5107else 5108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5109 CXXFLAGS="-g" 5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112 5113int 5114main () 5115{ 5116 5117 ; 5118 return 0; 5119} 5120_ACEOF 5121if ac_fn_cxx_try_compile "$LINENO"; then : 5122 ac_cv_prog_cxx_g=yes 5123fi 5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5125fi 5126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5127fi 5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5130fi 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5132$as_echo "$ac_cv_prog_cxx_g" >&6; } 5133if test "$ac_test_CXXFLAGS" = set; then 5134 CXXFLAGS=$ac_save_CXXFLAGS 5135elif test $ac_cv_prog_cxx_g = yes; then 5136 if test "$GXX" = yes; then 5137 CXXFLAGS="-g -O2" 5138 else 5139 CXXFLAGS="-g" 5140 fi 5141else 5142 if test "$GXX" = yes; then 5143 CXXFLAGS="-O2" 5144 else 5145 CXXFLAGS= 5146 fi 5147fi 5148ac_ext=cpp 5149ac_cpp='$CXXCPP $CPPFLAGS' 5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5153 5154depcc="$CXX" am_compiler_list= 5155 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5157$as_echo_n "checking dependency style of $depcc... " >&6; } 5158if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5162 # We make a subdir and do the tests there. Otherwise we can end up 5163 # making bogus files that we don't know about and never remove. For 5164 # instance it was reported that on HP-UX the gcc test will end up 5165 # making a dummy file named 'D' -- because '-MD' means "put the output 5166 # in D". 5167 rm -rf conftest.dir 5168 mkdir conftest.dir 5169 # Copy depcomp to subdir because otherwise we won't find it if we're 5170 # using a relative directory. 5171 cp "$am_depcomp" conftest.dir 5172 cd conftest.dir 5173 # We will build objects and dependencies in a subdirectory because 5174 # it helps to detect inapplicable dependency modes. For instance 5175 # both Tru64's cc and ICC support -MD to output dependencies as a 5176 # side effect of compilation, but ICC will put the dependencies in 5177 # the current directory while Tru64 will put them in the object 5178 # directory. 5179 mkdir sub 5180 5181 am_cv_CXX_dependencies_compiler_type=none 5182 if test "$am_compiler_list" = ""; then 5183 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5184 fi 5185 am__universal=false 5186 case " $depcc " in #( 5187 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5188 esac 5189 5190 for depmode in $am_compiler_list; do 5191 # Setup a source with many dependencies, because some compilers 5192 # like to wrap large dependency lists on column 80 (with \), and 5193 # we should not choose a depcomp mode which is confused by this. 5194 # 5195 # We need to recreate these files for each test, as the compiler may 5196 # overwrite some of them when testing with obscure command lines. 5197 # This happens at least with the AIX C compiler. 5198 : > sub/conftest.c 5199 for i in 1 2 3 4 5 6; do 5200 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5201 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5202 # Solaris 10 /bin/sh. 5203 echo '/* dummy */' > sub/conftst$i.h 5204 done 5205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5206 5207 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5208 # mode. It turns out that the SunPro C++ compiler does not properly 5209 # handle '-M -o', and we need to detect this. Also, some Intel 5210 # versions had trouble with output in subdirs. 5211 am__obj=sub/conftest.${OBJEXT-o} 5212 am__minus_obj="-o $am__obj" 5213 case $depmode in 5214 gcc) 5215 # This depmode causes a compiler race in universal mode. 5216 test "$am__universal" = false || continue 5217 ;; 5218 nosideeffect) 5219 # After this tag, mechanisms are not by side-effect, so they'll 5220 # only be used when explicitly requested. 5221 if test "x$enable_dependency_tracking" = xyes; then 5222 continue 5223 else 5224 break 5225 fi 5226 ;; 5227 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5228 # This compiler won't grok '-c -o', but also, the minuso test has 5229 # not run yet. These depmodes are late enough in the game, and 5230 # so weak that their functioning should not be impacted. 5231 am__obj=conftest.${OBJEXT-o} 5232 am__minus_obj= 5233 ;; 5234 none) break ;; 5235 esac 5236 if depmode=$depmode \ 5237 source=sub/conftest.c object=$am__obj \ 5238 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5239 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5240 >/dev/null 2>conftest.err && 5241 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5242 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5243 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5244 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5245 # icc doesn't choke on unknown options, it will just issue warnings 5246 # or remarks (even with -Werror). So we grep stderr for any message 5247 # that says an option was ignored or not supported. 5248 # When given -MP, icc 7.0 and 7.1 complain thusly: 5249 # icc: Command line warning: ignoring option '-M'; no argument required 5250 # The diagnosis changed in icc 8.0: 5251 # icc: Command line remark: option '-MP' not supported 5252 if (grep 'ignoring option' conftest.err || 5253 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5254 am_cv_CXX_dependencies_compiler_type=$depmode 5255 break 5256 fi 5257 fi 5258 done 5259 5260 cd .. 5261 rm -rf conftest.dir 5262else 5263 am_cv_CXX_dependencies_compiler_type=none 5264fi 5265 5266fi 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5268$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5269CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5270 5271 if 5272 test "x$enable_dependency_tracking" != xno \ 5273 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5274 am__fastdepCXX_TRUE= 5275 am__fastdepCXX_FALSE='#' 5276else 5277 am__fastdepCXX_TRUE='#' 5278 am__fastdepCXX_FALSE= 5279fi 5280 5281 5282 5283if test -z "$WITH_LIBS_TRUE"; then : 5284 5285 5286 ac_ext=cpp 5287ac_cpp='$CXXCPP $CPPFLAGS' 5288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5291 5292 for ac_header in re2/re2.h 5293do : 5294 ac_fn_cxx_check_header_compile "$LINENO" "re2/re2.h" "ac_cv_header_re2_re2_h" " 5295" 5296if test "x$ac_cv_header_re2_re2_h" = xyes; then : 5297 cat >>confdefs.h <<_ACEOF 5298#define HAVE_RE2_RE2_H 1 5299_ACEOF 5300 LDFLAGS_RE2="-lre2" 5301fi 5302 5303done 5304 5305 ac_ext=c 5306ac_cpp='$CPP $CPPFLAGS' 5307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5309ac_compiler_gnu=$ac_cv_c_compiler_gnu 5310 5311 5312fi 5313 5314 5315# --enable-golang 5316# Check whether --enable-golang was given. 5317if test "${enable_golang+set}" = set; then : 5318 enableval=$enable_golang; 5319fi 5320 5321 if test "x$enable_golang" != "xno"; then 5322 WITH_GOLANG_TRUE= 5323 WITH_GOLANG_FALSE='#' 5324else 5325 WITH_GOLANG_TRUE='#' 5326 WITH_GOLANG_FALSE= 5327fi 5328 5329 5330 5331# --enable-benchmarks 5332# Check whether --enable-benchmarks was given. 5333if test "${enable_benchmarks+set}" = set; then : 5334 enableval=$enable_benchmarks; 5335fi 5336 5337 if test "x$enable_benchmarks" = "xyes"; then 5338 WITH_BENCHMARKS_TRUE= 5339 WITH_BENCHMARKS_FALSE='#' 5340else 5341 WITH_BENCHMARKS_TRUE='#' 5342 WITH_BENCHMARKS_FALSE= 5343fi 5344 5345if test -z "$WITH_BENCHMARKS_TRUE"; then : 5346 5347 ac_ext=cpp 5348ac_cpp='$CXXCPP $CPPFLAGS' 5349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5352 5353 for ac_header in benchmark/benchmark.h 5354do : 5355 ac_fn_cxx_check_header_compile "$LINENO" "benchmark/benchmark.h" "ac_cv_header_benchmark_benchmark_h" " 5356" 5357if test "x$ac_cv_header_benchmark_benchmark_h" = xyes; then : 5358 cat >>confdefs.h <<_ACEOF 5359#define HAVE_BENCHMARK_BENCHMARK_H 1 5360_ACEOF 5361 5362else 5363 as_fn_error $? "benchmark library is required with --enable-benchmarks" "$LINENO" 5 5364fi 5365 5366done 5367 5368 ac_ext=c 5369ac_cpp='$CPP $CPPFLAGS' 5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5372ac_compiler_gnu=$ac_cv_c_compiler_gnu 5373 5374 5375fi 5376 if test -n "$JAVA_HOME"; then 5377 WITH_JAVA_TRUE= 5378 WITH_JAVA_FALSE='#' 5379else 5380 WITH_JAVA_TRUE='#' 5381 WITH_JAVA_FALSE= 5382fi 5383 5384 5385 5386# --enable-benchmarks-regenerate 5387# Check whether --enable-benchmarks_regenerate was given. 5388if test "${enable_benchmarks_regenerate+set}" = set; then : 5389 enableval=$enable_benchmarks_regenerate; 5390fi 5391 5392 if test "x$enable_benchmarks_regenerate" = "xyes"; then 5393 REGEN_BENCHMARKS_TRUE= 5394 REGEN_BENCHMARKS_FALSE='#' 5395else 5396 REGEN_BENCHMARKS_TRUE='#' 5397 REGEN_BENCHMARKS_FALSE= 5398fi 5399 5400 5401 5402# checks for programs 5403# Extract the first word of "bison", so it can be a program name with args. 5404set dummy bison; ac_word=$2 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5406$as_echo_n "checking for $ac_word... " >&6; } 5407if ${ac_cv_path_BISON+:} false; then : 5408 $as_echo_n "(cached) " >&6 5409else 5410 case $BISON in 5411 [\\/]* | ?:[\\/]*) 5412 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 5413 ;; 5414 *) 5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5416for as_dir in $PATH 5417do 5418 IFS=$as_save_IFS 5419 test -z "$as_dir" && as_dir=. 5420 for ac_exec_ext in '' $ac_executable_extensions; do 5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5422 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5424 break 2 5425 fi 5426done 5427 done 5428IFS=$as_save_IFS 5429 5430 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no" 5431 ;; 5432esac 5433fi 5434BISON=$ac_cv_path_BISON 5435if test -n "$BISON"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 5437$as_echo "$BISON" >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 5444for ac_prog in python3 python 5445do 5446 # Extract the first word of "$ac_prog", so it can be a program name with args. 5447set dummy $ac_prog; ac_word=$2 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5449$as_echo_n "checking for $ac_word... " >&6; } 5450if ${ac_cv_prog_PYTHON+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 if test -n "$PYTHON"; then 5454 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. 5455else 5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5457for as_dir in $PATH 5458do 5459 IFS=$as_save_IFS 5460 test -z "$as_dir" && as_dir=. 5461 for ac_exec_ext in '' $ac_executable_extensions; do 5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5463 ac_cv_prog_PYTHON="$ac_prog" 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5465 break 2 5466 fi 5467done 5468 done 5469IFS=$as_save_IFS 5470 5471fi 5472fi 5473PYTHON=$ac_cv_prog_PYTHON 5474if test -n "$PYTHON"; then 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 5476$as_echo "$PYTHON" >&6; } 5477else 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5479$as_echo "no" >&6; } 5480fi 5481 5482 5483 test -n "$PYTHON" && break 5484done 5485 5486ac_ext=c 5487ac_cpp='$CPP $CPPFLAGS' 5488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5490ac_compiler_gnu=$ac_cv_c_compiler_gnu 5491if test -n "$ac_tool_prefix"; then 5492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5493set dummy ${ac_tool_prefix}gcc; ac_word=$2 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5495$as_echo_n "checking for $ac_word... " >&6; } 5496if ${ac_cv_prog_CC+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 if test -n "$CC"; then 5500 ac_cv_prog_CC="$CC" # Let the user override the test. 5501else 5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in $PATH 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for ac_exec_ext in '' $ac_executable_extensions; do 5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5509 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5511 break 2 5512 fi 5513done 5514 done 5515IFS=$as_save_IFS 5516 5517fi 5518fi 5519CC=$ac_cv_prog_CC 5520if test -n "$CC"; then 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5522$as_echo "$CC" >&6; } 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527 5528 5529fi 5530if test -z "$ac_cv_prog_CC"; then 5531 ac_ct_CC=$CC 5532 # Extract the first word of "gcc", so it can be a program name with args. 5533set dummy gcc; ac_word=$2 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5535$as_echo_n "checking for $ac_word... " >&6; } 5536if ${ac_cv_prog_ac_ct_CC+:} false; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 if test -n "$ac_ct_CC"; then 5540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5541else 5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5543for as_dir in $PATH 5544do 5545 IFS=$as_save_IFS 5546 test -z "$as_dir" && as_dir=. 5547 for ac_exec_ext in '' $ac_executable_extensions; do 5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5549 ac_cv_prog_ac_ct_CC="gcc" 5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5551 break 2 5552 fi 5553done 5554 done 5555IFS=$as_save_IFS 5556 5557fi 5558fi 5559ac_ct_CC=$ac_cv_prog_ac_ct_CC 5560if test -n "$ac_ct_CC"; then 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5562$as_echo "$ac_ct_CC" >&6; } 5563else 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5565$as_echo "no" >&6; } 5566fi 5567 5568 if test "x$ac_ct_CC" = x; then 5569 CC="" 5570 else 5571 case $cross_compiling:$ac_tool_warned in 5572yes:) 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5575ac_tool_warned=yes ;; 5576esac 5577 CC=$ac_ct_CC 5578 fi 5579else 5580 CC="$ac_cv_prog_CC" 5581fi 5582 5583if test -z "$CC"; then 5584 if test -n "$ac_tool_prefix"; then 5585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5586set dummy ${ac_tool_prefix}cc; ac_word=$2 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588$as_echo_n "checking for $ac_word... " >&6; } 5589if ${ac_cv_prog_CC+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 if test -n "$CC"; then 5593 ac_cv_prog_CC="$CC" # Let the user override the test. 5594else 5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_exec_ext in '' $ac_executable_extensions; do 5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5602 ac_cv_prog_CC="${ac_tool_prefix}cc" 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5604 break 2 5605 fi 5606done 5607 done 5608IFS=$as_save_IFS 5609 5610fi 5611fi 5612CC=$ac_cv_prog_CC 5613if test -n "$CC"; then 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5615$as_echo "$CC" >&6; } 5616else 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5618$as_echo "no" >&6; } 5619fi 5620 5621 5622 fi 5623fi 5624if test -z "$CC"; then 5625 # Extract the first word of "cc", so it can be a program name with args. 5626set dummy cc; ac_word=$2 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5628$as_echo_n "checking for $ac_word... " >&6; } 5629if ${ac_cv_prog_CC+:} false; then : 5630 $as_echo_n "(cached) " >&6 5631else 5632 if test -n "$CC"; then 5633 ac_cv_prog_CC="$CC" # Let the user override the test. 5634else 5635 ac_prog_rejected=no 5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_exec_ext in '' $ac_executable_extensions; do 5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5644 ac_prog_rejected=yes 5645 continue 5646 fi 5647 ac_cv_prog_CC="cc" 5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5649 break 2 5650 fi 5651done 5652 done 5653IFS=$as_save_IFS 5654 5655if test $ac_prog_rejected = yes; then 5656 # We found a bogon in the path, so make sure we never use it. 5657 set dummy $ac_cv_prog_CC 5658 shift 5659 if test $# != 0; then 5660 # We chose a different compiler from the bogus one. 5661 # However, it has the same basename, so the bogon will be chosen 5662 # first if we set CC to just the basename; use the full file name. 5663 shift 5664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5665 fi 5666fi 5667fi 5668fi 5669CC=$ac_cv_prog_CC 5670if test -n "$CC"; then 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5672$as_echo "$CC" >&6; } 5673else 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5675$as_echo "no" >&6; } 5676fi 5677 5678 5679fi 5680if test -z "$CC"; then 5681 if test -n "$ac_tool_prefix"; then 5682 for ac_prog in cl.exe 5683 do 5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5685set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5687$as_echo_n "checking for $ac_word... " >&6; } 5688if ${ac_cv_prog_CC+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 if test -n "$CC"; then 5692 ac_cv_prog_CC="$CC" # Let the user override the test. 5693else 5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 test -z "$as_dir" && as_dir=. 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711CC=$ac_cv_prog_CC 5712if test -n "$CC"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5714$as_echo "$CC" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 5721 test -n "$CC" && break 5722 done 5723fi 5724if test -z "$CC"; then 5725 ac_ct_CC=$CC 5726 for ac_prog in cl.exe 5727do 5728 # Extract the first word of "$ac_prog", so it can be a program name with args. 5729set dummy $ac_prog; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_CC+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_CC"; then 5736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_CC="$ac_prog" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_CC=$ac_cv_prog_ac_ct_CC 5756if test -n "$ac_ct_CC"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5758$as_echo "$ac_ct_CC" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 5765 test -n "$ac_ct_CC" && break 5766done 5767 5768 if test "x$ac_ct_CC" = x; then 5769 CC="" 5770 else 5771 case $cross_compiling:$ac_tool_warned in 5772yes:) 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5775ac_tool_warned=yes ;; 5776esac 5777 CC=$ac_ct_CC 5778 fi 5779fi 5780 5781fi 5782 5783 5784test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5786as_fn_error $? "no acceptable C compiler found in \$PATH 5787See \`config.log' for more details" "$LINENO" 5; } 5788 5789# Provide some information about the compiler. 5790$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5791set X $ac_compile 5792ac_compiler=$2 5793for ac_option in --version -v -V -qversion; do 5794 { { ac_try="$ac_compiler $ac_option >&5" 5795case "(($ac_try" in 5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5797 *) ac_try_echo=$ac_try;; 5798esac 5799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5800$as_echo "$ac_try_echo"; } >&5 5801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5802 ac_status=$? 5803 if test -s conftest.err; then 5804 sed '10a\ 5805... rest of stderr output deleted ... 5806 10q' conftest.err >conftest.er1 5807 cat conftest.er1 >&5 5808 fi 5809 rm -f conftest.er1 conftest.err 5810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5811 test $ac_status = 0; } 5812done 5813 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5815$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5816if ${ac_cv_c_compiler_gnu+:} false; then : 5817 $as_echo_n "(cached) " >&6 5818else 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820/* end confdefs.h. */ 5821 5822int 5823main () 5824{ 5825#ifndef __GNUC__ 5826 choke me 5827#endif 5828 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833if ac_fn_c_try_compile "$LINENO"; then : 5834 ac_compiler_gnu=yes 5835else 5836 ac_compiler_gnu=no 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5839ac_cv_c_compiler_gnu=$ac_compiler_gnu 5840 5841fi 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5843$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5844if test $ac_compiler_gnu = yes; then 5845 GCC=yes 5846else 5847 GCC= 5848fi 5849ac_test_CFLAGS=${CFLAGS+set} 5850ac_save_CFLAGS=$CFLAGS 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5852$as_echo_n "checking whether $CC accepts -g... " >&6; } 5853if ${ac_cv_prog_cc_g+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 ac_save_c_werror_flag=$ac_c_werror_flag 5857 ac_c_werror_flag=yes 5858 ac_cv_prog_cc_g=no 5859 CFLAGS="-g" 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862 5863int 5864main () 5865{ 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO"; then : 5872 ac_cv_prog_cc_g=yes 5873else 5874 CFLAGS="" 5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5876/* end confdefs.h. */ 5877 5878int 5879main () 5880{ 5881 5882 ; 5883 return 0; 5884} 5885_ACEOF 5886if ac_fn_c_try_compile "$LINENO"; then : 5887 5888else 5889 ac_c_werror_flag=$ac_save_c_werror_flag 5890 CFLAGS="-g" 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893 5894int 5895main () 5896{ 5897 5898 ; 5899 return 0; 5900} 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO"; then : 5903 ac_cv_prog_cc_g=yes 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5906fi 5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5908fi 5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5910 ac_c_werror_flag=$ac_save_c_werror_flag 5911fi 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5913$as_echo "$ac_cv_prog_cc_g" >&6; } 5914if test "$ac_test_CFLAGS" = set; then 5915 CFLAGS=$ac_save_CFLAGS 5916elif test $ac_cv_prog_cc_g = yes; then 5917 if test "$GCC" = yes; then 5918 CFLAGS="-g -O2" 5919 else 5920 CFLAGS="-g" 5921 fi 5922else 5923 if test "$GCC" = yes; then 5924 CFLAGS="-O2" 5925 else 5926 CFLAGS= 5927 fi 5928fi 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5930$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5931if ${ac_cv_prog_cc_c89+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 ac_cv_prog_cc_c89=no 5935ac_save_CC=$CC 5936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938#include <stdarg.h> 5939#include <stdio.h> 5940struct stat; 5941/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5942struct buf { int x; }; 5943FILE * (*rcsopen) (struct buf *, struct stat *, int); 5944static char *e (p, i) 5945 char **p; 5946 int i; 5947{ 5948 return p[i]; 5949} 5950static char *f (char * (*g) (char **, int), char **p, ...) 5951{ 5952 char *s; 5953 va_list v; 5954 va_start (v,p); 5955 s = g (p, va_arg (v,int)); 5956 va_end (v); 5957 return s; 5958} 5959 5960/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5961 function prototypes and stuff, but not '\xHH' hex character constants. 5962 These don't provoke an error unfortunately, instead are silently treated 5963 as 'x'. The following induces an error, until -std is added to get 5964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5965 array size at least. It's necessary to write '\x00'==0 to get something 5966 that's true only with -std. */ 5967int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5968 5969/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5970 inside strings and character constants. */ 5971#define FOO(x) 'x' 5972int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5973 5974int test (int i, double x); 5975struct s1 {int (*f) (int a);}; 5976struct s2 {int (*f) (double a);}; 5977int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5978int argc; 5979char **argv; 5980int 5981main () 5982{ 5983return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5984 ; 5985 return 0; 5986} 5987_ACEOF 5988for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5989 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5990do 5991 CC="$ac_save_CC $ac_arg" 5992 if ac_fn_c_try_compile "$LINENO"; then : 5993 ac_cv_prog_cc_c89=$ac_arg 5994fi 5995rm -f core conftest.err conftest.$ac_objext 5996 test "x$ac_cv_prog_cc_c89" != "xno" && break 5997done 5998rm -f conftest.$ac_ext 5999CC=$ac_save_CC 6000 6001fi 6002# AC_CACHE_VAL 6003case "x$ac_cv_prog_cc_c89" in 6004 x) 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6006$as_echo "none needed" >&6; } ;; 6007 xno) 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6009$as_echo "unsupported" >&6; } ;; 6010 *) 6011 CC="$CC $ac_cv_prog_cc_c89" 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6013$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6014esac 6015if test "x$ac_cv_prog_cc_c89" != xno; then : 6016 6017fi 6018 6019ac_ext=c 6020ac_cpp='$CPP $CPPFLAGS' 6021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6023ac_compiler_gnu=$ac_cv_c_compiler_gnu 6024 6025ac_ext=c 6026ac_cpp='$CPP $CPPFLAGS' 6027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6029ac_compiler_gnu=$ac_cv_c_compiler_gnu 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6031$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6032if ${am_cv_prog_cc_c_o+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036/* end confdefs.h. */ 6037 6038int 6039main () 6040{ 6041 6042 ; 6043 return 0; 6044} 6045_ACEOF 6046 # Make sure it works both with $CC and with simple cc. 6047 # Following AC_PROG_CC_C_O, we do the test twice because some 6048 # compilers refuse to overwrite an existing .o file with -o, 6049 # though they will create one. 6050 am_cv_prog_cc_c_o=yes 6051 for am_i in 1 2; do 6052 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6053 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6054 ac_status=$? 6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6056 (exit $ac_status); } \ 6057 && test -f conftest2.$ac_objext; then 6058 : OK 6059 else 6060 am_cv_prog_cc_c_o=no 6061 break 6062 fi 6063 done 6064 rm -f core conftest* 6065 unset am_i 6066fi 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6068$as_echo "$am_cv_prog_cc_c_o" >&6; } 6069if test "$am_cv_prog_cc_c_o" != yes; then 6070 # Losing compiler, so override with the script. 6071 # FIXME: It is wrong to rewrite CC. 6072 # But if we don't then we get into trouble of one sort or another. 6073 # A longer-term fix would be to have automake use am__CC in this case, 6074 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6075 CC="$am_aux_dir/compile $CC" 6076fi 6077ac_ext=c 6078ac_cpp='$CPP $CPPFLAGS' 6079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6081ac_compiler_gnu=$ac_cv_c_compiler_gnu 6082 6083 6084depcc="$CC" am_compiler_list= 6085 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6087$as_echo_n "checking dependency style of $depcc... " >&6; } 6088if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6092 # We make a subdir and do the tests there. Otherwise we can end up 6093 # making bogus files that we don't know about and never remove. For 6094 # instance it was reported that on HP-UX the gcc test will end up 6095 # making a dummy file named 'D' -- because '-MD' means "put the output 6096 # in D". 6097 rm -rf conftest.dir 6098 mkdir conftest.dir 6099 # Copy depcomp to subdir because otherwise we won't find it if we're 6100 # using a relative directory. 6101 cp "$am_depcomp" conftest.dir 6102 cd conftest.dir 6103 # We will build objects and dependencies in a subdirectory because 6104 # it helps to detect inapplicable dependency modes. For instance 6105 # both Tru64's cc and ICC support -MD to output dependencies as a 6106 # side effect of compilation, but ICC will put the dependencies in 6107 # the current directory while Tru64 will put them in the object 6108 # directory. 6109 mkdir sub 6110 6111 am_cv_CC_dependencies_compiler_type=none 6112 if test "$am_compiler_list" = ""; then 6113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6114 fi 6115 am__universal=false 6116 case " $depcc " in #( 6117 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6118 esac 6119 6120 for depmode in $am_compiler_list; do 6121 # Setup a source with many dependencies, because some compilers 6122 # like to wrap large dependency lists on column 80 (with \), and 6123 # we should not choose a depcomp mode which is confused by this. 6124 # 6125 # We need to recreate these files for each test, as the compiler may 6126 # overwrite some of them when testing with obscure command lines. 6127 # This happens at least with the AIX C compiler. 6128 : > sub/conftest.c 6129 for i in 1 2 3 4 5 6; do 6130 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6131 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6132 # Solaris 10 /bin/sh. 6133 echo '/* dummy */' > sub/conftst$i.h 6134 done 6135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6136 6137 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6138 # mode. It turns out that the SunPro C++ compiler does not properly 6139 # handle '-M -o', and we need to detect this. Also, some Intel 6140 # versions had trouble with output in subdirs. 6141 am__obj=sub/conftest.${OBJEXT-o} 6142 am__minus_obj="-o $am__obj" 6143 case $depmode in 6144 gcc) 6145 # This depmode causes a compiler race in universal mode. 6146 test "$am__universal" = false || continue 6147 ;; 6148 nosideeffect) 6149 # After this tag, mechanisms are not by side-effect, so they'll 6150 # only be used when explicitly requested. 6151 if test "x$enable_dependency_tracking" = xyes; then 6152 continue 6153 else 6154 break 6155 fi 6156 ;; 6157 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6158 # This compiler won't grok '-c -o', but also, the minuso test has 6159 # not run yet. These depmodes are late enough in the game, and 6160 # so weak that their functioning should not be impacted. 6161 am__obj=conftest.${OBJEXT-o} 6162 am__minus_obj= 6163 ;; 6164 none) break ;; 6165 esac 6166 if depmode=$depmode \ 6167 source=sub/conftest.c object=$am__obj \ 6168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6170 >/dev/null 2>conftest.err && 6171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6175 # icc doesn't choke on unknown options, it will just issue warnings 6176 # or remarks (even with -Werror). So we grep stderr for any message 6177 # that says an option was ignored or not supported. 6178 # When given -MP, icc 7.0 and 7.1 complain thusly: 6179 # icc: Command line warning: ignoring option '-M'; no argument required 6180 # The diagnosis changed in icc 8.0: 6181 # icc: Command line remark: option '-MP' not supported 6182 if (grep 'ignoring option' conftest.err || 6183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6184 am_cv_CC_dependencies_compiler_type=$depmode 6185 break 6186 fi 6187 fi 6188 done 6189 6190 cd .. 6191 rm -rf conftest.dir 6192else 6193 am_cv_CC_dependencies_compiler_type=none 6194fi 6195 6196fi 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6198$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6199CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6200 6201 if 6202 test "x$enable_dependency_tracking" != xno \ 6203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6204 am__fastdepCC_TRUE= 6205 am__fastdepCC_FALSE='#' 6206else 6207 am__fastdepCC_TRUE='#' 6208 am__fastdepCC_FALSE= 6209fi 6210 6211 # used in skeleton tests 6212ac_ext=cpp 6213ac_cpp='$CXXCPP $CPPFLAGS' 6214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6217if test -z "$CXX"; then 6218 if test -n "$CCC"; then 6219 CXX=$CCC 6220 else 6221 if test -n "$ac_tool_prefix"; then 6222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6223 do 6224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6225set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227$as_echo_n "checking for $ac_word... " >&6; } 6228if ${ac_cv_prog_CXX+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230else 6231 if test -n "$CXX"; then 6232 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6233else 6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6235for as_dir in $PATH 6236do 6237 IFS=$as_save_IFS 6238 test -z "$as_dir" && as_dir=. 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6243 break 2 6244 fi 6245done 6246 done 6247IFS=$as_save_IFS 6248 6249fi 6250fi 6251CXX=$ac_cv_prog_CXX 6252if test -n "$CXX"; then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6254$as_echo "$CXX" >&6; } 6255else 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6257$as_echo "no" >&6; } 6258fi 6259 6260 6261 test -n "$CXX" && break 6262 done 6263fi 6264if test -z "$CXX"; then 6265 ac_ct_CXX=$CXX 6266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6267do 6268 # Extract the first word of "$ac_prog", so it can be a program name with args. 6269set dummy $ac_prog; ac_word=$2 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6271$as_echo_n "checking for $ac_word... " >&6; } 6272if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6273 $as_echo_n "(cached) " >&6 6274else 6275 if test -n "$ac_ct_CXX"; then 6276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6277else 6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6279for as_dir in $PATH 6280do 6281 IFS=$as_save_IFS 6282 test -z "$as_dir" && as_dir=. 6283 for ac_exec_ext in '' $ac_executable_extensions; do 6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6285 ac_cv_prog_ac_ct_CXX="$ac_prog" 6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6287 break 2 6288 fi 6289done 6290 done 6291IFS=$as_save_IFS 6292 6293fi 6294fi 6295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6296if test -n "$ac_ct_CXX"; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6298$as_echo "$ac_ct_CXX" >&6; } 6299else 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301$as_echo "no" >&6; } 6302fi 6303 6304 6305 test -n "$ac_ct_CXX" && break 6306done 6307 6308 if test "x$ac_ct_CXX" = x; then 6309 CXX="g++" 6310 else 6311 case $cross_compiling:$ac_tool_warned in 6312yes:) 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6315ac_tool_warned=yes ;; 6316esac 6317 CXX=$ac_ct_CXX 6318 fi 6319fi 6320 6321 fi 6322fi 6323# Provide some information about the compiler. 6324$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6325set X $ac_compile 6326ac_compiler=$2 6327for ac_option in --version -v -V -qversion; do 6328 { { ac_try="$ac_compiler $ac_option >&5" 6329case "(($ac_try" in 6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6331 *) ac_try_echo=$ac_try;; 6332esac 6333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6334$as_echo "$ac_try_echo"; } >&5 6335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6336 ac_status=$? 6337 if test -s conftest.err; then 6338 sed '10a\ 6339... rest of stderr output deleted ... 6340 10q' conftest.err >conftest.er1 6341 cat conftest.er1 >&5 6342 fi 6343 rm -f conftest.er1 conftest.err 6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6345 test $ac_status = 0; } 6346done 6347 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6349$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6350if ${ac_cv_cxx_compiler_gnu+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355 6356int 6357main () 6358{ 6359#ifndef __GNUC__ 6360 choke me 6361#endif 6362 6363 ; 6364 return 0; 6365} 6366_ACEOF 6367if ac_fn_cxx_try_compile "$LINENO"; then : 6368 ac_compiler_gnu=yes 6369else 6370 ac_compiler_gnu=no 6371fi 6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6373ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6374 6375fi 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6377$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6378if test $ac_compiler_gnu = yes; then 6379 GXX=yes 6380else 6381 GXX= 6382fi 6383ac_test_CXXFLAGS=${CXXFLAGS+set} 6384ac_save_CXXFLAGS=$CXXFLAGS 6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6386$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6387if ${ac_cv_prog_cxx_g+:} false; then : 6388 $as_echo_n "(cached) " >&6 6389else 6390 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6391 ac_cxx_werror_flag=yes 6392 ac_cv_prog_cxx_g=no 6393 CXXFLAGS="-g" 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395/* end confdefs.h. */ 6396 6397int 6398main () 6399{ 6400 6401 ; 6402 return 0; 6403} 6404_ACEOF 6405if ac_fn_cxx_try_compile "$LINENO"; then : 6406 ac_cv_prog_cxx_g=yes 6407else 6408 CXXFLAGS="" 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411 6412int 6413main () 6414{ 6415 6416 ; 6417 return 0; 6418} 6419_ACEOF 6420if ac_fn_cxx_try_compile "$LINENO"; then : 6421 6422else 6423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6424 CXXFLAGS="-g" 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427 6428int 6429main () 6430{ 6431 6432 ; 6433 return 0; 6434} 6435_ACEOF 6436if ac_fn_cxx_try_compile "$LINENO"; then : 6437 ac_cv_prog_cxx_g=yes 6438fi 6439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6440fi 6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6442fi 6443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6445fi 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6447$as_echo "$ac_cv_prog_cxx_g" >&6; } 6448if test "$ac_test_CXXFLAGS" = set; then 6449 CXXFLAGS=$ac_save_CXXFLAGS 6450elif test $ac_cv_prog_cxx_g = yes; then 6451 if test "$GXX" = yes; then 6452 CXXFLAGS="-g -O2" 6453 else 6454 CXXFLAGS="-g" 6455 fi 6456else 6457 if test "$GXX" = yes; then 6458 CXXFLAGS="-O2" 6459 else 6460 CXXFLAGS= 6461 fi 6462fi 6463ac_ext=c 6464ac_cpp='$CPP $CPPFLAGS' 6465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6467ac_compiler_gnu=$ac_cv_c_compiler_gnu 6468 6469depcc="$CXX" am_compiler_list= 6470 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6472$as_echo_n "checking dependency style of $depcc... " >&6; } 6473if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6477 # We make a subdir and do the tests there. Otherwise we can end up 6478 # making bogus files that we don't know about and never remove. For 6479 # instance it was reported that on HP-UX the gcc test will end up 6480 # making a dummy file named 'D' -- because '-MD' means "put the output 6481 # in D". 6482 rm -rf conftest.dir 6483 mkdir conftest.dir 6484 # Copy depcomp to subdir because otherwise we won't find it if we're 6485 # using a relative directory. 6486 cp "$am_depcomp" conftest.dir 6487 cd conftest.dir 6488 # We will build objects and dependencies in a subdirectory because 6489 # it helps to detect inapplicable dependency modes. For instance 6490 # both Tru64's cc and ICC support -MD to output dependencies as a 6491 # side effect of compilation, but ICC will put the dependencies in 6492 # the current directory while Tru64 will put them in the object 6493 # directory. 6494 mkdir sub 6495 6496 am_cv_CXX_dependencies_compiler_type=none 6497 if test "$am_compiler_list" = ""; then 6498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6499 fi 6500 am__universal=false 6501 case " $depcc " in #( 6502 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6503 esac 6504 6505 for depmode in $am_compiler_list; do 6506 # Setup a source with many dependencies, because some compilers 6507 # like to wrap large dependency lists on column 80 (with \), and 6508 # we should not choose a depcomp mode which is confused by this. 6509 # 6510 # We need to recreate these files for each test, as the compiler may 6511 # overwrite some of them when testing with obscure command lines. 6512 # This happens at least with the AIX C compiler. 6513 : > sub/conftest.c 6514 for i in 1 2 3 4 5 6; do 6515 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6516 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6517 # Solaris 10 /bin/sh. 6518 echo '/* dummy */' > sub/conftst$i.h 6519 done 6520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6521 6522 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6523 # mode. It turns out that the SunPro C++ compiler does not properly 6524 # handle '-M -o', and we need to detect this. Also, some Intel 6525 # versions had trouble with output in subdirs. 6526 am__obj=sub/conftest.${OBJEXT-o} 6527 am__minus_obj="-o $am__obj" 6528 case $depmode in 6529 gcc) 6530 # This depmode causes a compiler race in universal mode. 6531 test "$am__universal" = false || continue 6532 ;; 6533 nosideeffect) 6534 # After this tag, mechanisms are not by side-effect, so they'll 6535 # only be used when explicitly requested. 6536 if test "x$enable_dependency_tracking" = xyes; then 6537 continue 6538 else 6539 break 6540 fi 6541 ;; 6542 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6543 # This compiler won't grok '-c -o', but also, the minuso test has 6544 # not run yet. These depmodes are late enough in the game, and 6545 # so weak that their functioning should not be impacted. 6546 am__obj=conftest.${OBJEXT-o} 6547 am__minus_obj= 6548 ;; 6549 none) break ;; 6550 esac 6551 if depmode=$depmode \ 6552 source=sub/conftest.c object=$am__obj \ 6553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6555 >/dev/null 2>conftest.err && 6556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6560 # icc doesn't choke on unknown options, it will just issue warnings 6561 # or remarks (even with -Werror). So we grep stderr for any message 6562 # that says an option was ignored or not supported. 6563 # When given -MP, icc 7.0 and 7.1 complain thusly: 6564 # icc: Command line warning: ignoring option '-M'; no argument required 6565 # The diagnosis changed in icc 8.0: 6566 # icc: Command line remark: option '-MP' not supported 6567 if (grep 'ignoring option' conftest.err || 6568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6569 am_cv_CXX_dependencies_compiler_type=$depmode 6570 break 6571 fi 6572 fi 6573 done 6574 6575 cd .. 6576 rm -rf conftest.dir 6577else 6578 am_cv_CXX_dependencies_compiler_type=none 6579fi 6580 6581fi 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6583$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6584CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6585 6586 if 6587 test "x$enable_dependency_tracking" != xno \ 6588 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6589 am__fastdepCXX_TRUE= 6590 am__fastdepCXX_FALSE='#' 6591else 6592 am__fastdepCXX_TRUE='#' 6593 am__fastdepCXX_FALSE= 6594fi 6595 6596 6597 6598 6599 6600# checks for C++ compiler flags 6601 6602# TRY_CXXFLAG (flag [implied-flags]) 6603# Iff C++ compiler recognizes 'flag', append 'flag' and 'implied-flags' to CXXFLAGSDEFAULT 6604# (Second param 'implied-flags' is needed for warning suppressions '-Wno-<warning>': 6605# GCC warns about unrecognized suppressions options only in presence of other warnings, 6606# which makes it hard to test for them with autoconf.) 6607 6608 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -std=c++98" >&5 6610$as_echo_n "checking C++ compiler flag -std=c++98... " >&6; } 6611 CXXFLAGS_BACKUP="$CXXFLAGS" 6612 CXXFLAGS="$CXXFLAGS -std=c++98" 6613 ac_ext=cpp 6614ac_cpp='$CXXCPP $CPPFLAGS' 6615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6618 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620/* end confdefs.h. */ 6621 6622int 6623main () 6624{ 6625 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_cxx_try_compile "$LINENO"; then : 6631 6632 TRY_CXXFLAG_RESULT=yes 6633 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -std=c++98 " 6634 6635else 6636 TRY_CXXFLAG_RESULT=no 6637 6638fi 6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6640 ac_ext=c 6641ac_cpp='$CPP $CPPFLAGS' 6642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6644ac_compiler_gnu=$ac_cv_c_compiler_gnu 6645 6646 CXXFLAGS="$CXXFLAGS_BACKUP" 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6648$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6649 6650 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -W" >&5 6652$as_echo_n "checking C++ compiler flag -W... " >&6; } 6653 CXXFLAGS_BACKUP="$CXXFLAGS" 6654 CXXFLAGS="$CXXFLAGS -W" 6655 ac_ext=cpp 6656ac_cpp='$CXXCPP $CPPFLAGS' 6657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6660 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663 6664int 6665main () 6666{ 6667 6668 ; 6669 return 0; 6670} 6671_ACEOF 6672if ac_fn_cxx_try_compile "$LINENO"; then : 6673 6674 TRY_CXXFLAG_RESULT=yes 6675 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -W " 6676 6677else 6678 TRY_CXXFLAG_RESULT=no 6679 6680fi 6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6682 ac_ext=c 6683ac_cpp='$CPP $CPPFLAGS' 6684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6686ac_compiler_gnu=$ac_cv_c_compiler_gnu 6687 6688 CXXFLAGS="$CXXFLAGS_BACKUP" 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6690$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6691 6692 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wall" >&5 6694$as_echo_n "checking C++ compiler flag -Wall... " >&6; } 6695 CXXFLAGS_BACKUP="$CXXFLAGS" 6696 CXXFLAGS="$CXXFLAGS -Wall" 6697 ac_ext=cpp 6698ac_cpp='$CXXCPP $CPPFLAGS' 6699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6702 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705 6706int 6707main () 6708{ 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714if ac_fn_cxx_try_compile "$LINENO"; then : 6715 6716 TRY_CXXFLAG_RESULT=yes 6717 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wall " 6718 6719else 6720 TRY_CXXFLAG_RESULT=no 6721 6722fi 6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6724 ac_ext=c 6725ac_cpp='$CPP $CPPFLAGS' 6726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6728ac_compiler_gnu=$ac_cv_c_compiler_gnu 6729 6730 CXXFLAGS="$CXXFLAGS_BACKUP" 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6732$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6733 6734 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wextra" >&5 6736$as_echo_n "checking C++ compiler flag -Wextra... " >&6; } 6737 CXXFLAGS_BACKUP="$CXXFLAGS" 6738 CXXFLAGS="$CXXFLAGS -Wextra" 6739 ac_ext=cpp 6740ac_cpp='$CXXCPP $CPPFLAGS' 6741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6744 6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746/* end confdefs.h. */ 6747 6748int 6749main () 6750{ 6751 6752 ; 6753 return 0; 6754} 6755_ACEOF 6756if ac_fn_cxx_try_compile "$LINENO"; then : 6757 6758 TRY_CXXFLAG_RESULT=yes 6759 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wextra " 6760 6761else 6762 TRY_CXXFLAG_RESULT=no 6763 6764fi 6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6766 ac_ext=c 6767ac_cpp='$CPP $CPPFLAGS' 6768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6770ac_compiler_gnu=$ac_cv_c_compiler_gnu 6771 6772 CXXFLAGS="$CXXFLAGS_BACKUP" 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6774$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6775 6776 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Weffc++" >&5 6778$as_echo_n "checking C++ compiler flag -Weffc++... " >&6; } 6779 CXXFLAGS_BACKUP="$CXXFLAGS" 6780 CXXFLAGS="$CXXFLAGS -Weffc++" 6781 ac_ext=cpp 6782ac_cpp='$CXXCPP $CPPFLAGS' 6783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6786 6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6788/* end confdefs.h. */ 6789 6790int 6791main () 6792{ 6793 6794 ; 6795 return 0; 6796} 6797_ACEOF 6798if ac_fn_cxx_try_compile "$LINENO"; then : 6799 6800 TRY_CXXFLAG_RESULT=yes 6801 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Weffc++ " 6802 6803else 6804 TRY_CXXFLAG_RESULT=no 6805 6806fi 6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6808 ac_ext=c 6809ac_cpp='$CPP $CPPFLAGS' 6810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6812ac_compiler_gnu=$ac_cv_c_compiler_gnu 6813 6814 CXXFLAGS="$CXXFLAGS_BACKUP" 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6816$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6817 6818 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -pedantic" >&5 6820$as_echo_n "checking C++ compiler flag -pedantic... " >&6; } 6821 CXXFLAGS_BACKUP="$CXXFLAGS" 6822 CXXFLAGS="$CXXFLAGS -pedantic" 6823 ac_ext=cpp 6824ac_cpp='$CXXCPP $CPPFLAGS' 6825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6828 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830/* end confdefs.h. */ 6831 6832int 6833main () 6834{ 6835 6836 ; 6837 return 0; 6838} 6839_ACEOF 6840if ac_fn_cxx_try_compile "$LINENO"; then : 6841 6842 TRY_CXXFLAG_RESULT=yes 6843 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -pedantic " 6844 6845else 6846 TRY_CXXFLAG_RESULT=no 6847 6848fi 6849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6850 ac_ext=c 6851ac_cpp='$CPP $CPPFLAGS' 6852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6854ac_compiler_gnu=$ac_cv_c_compiler_gnu 6855 6856 CXXFLAGS="$CXXFLAGS_BACKUP" 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6858$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6859 6860 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wformat=2" >&5 6862$as_echo_n "checking C++ compiler flag -Wformat=2... " >&6; } 6863 CXXFLAGS_BACKUP="$CXXFLAGS" 6864 CXXFLAGS="$CXXFLAGS -Wformat=2" 6865 ac_ext=cpp 6866ac_cpp='$CXXCPP $CPPFLAGS' 6867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6870 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873 6874int 6875main () 6876{ 6877 6878 ; 6879 return 0; 6880} 6881_ACEOF 6882if ac_fn_cxx_try_compile "$LINENO"; then : 6883 6884 TRY_CXXFLAG_RESULT=yes 6885 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wformat=2 " 6886 6887else 6888 TRY_CXXFLAG_RESULT=no 6889 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6892 ac_ext=c 6893ac_cpp='$CPP $CPPFLAGS' 6894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6896ac_compiler_gnu=$ac_cv_c_compiler_gnu 6897 6898 CXXFLAGS="$CXXFLAGS_BACKUP" 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6900$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6901 6902 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wredundant-decls" >&5 6904$as_echo_n "checking C++ compiler flag -Wredundant-decls... " >&6; } 6905 CXXFLAGS_BACKUP="$CXXFLAGS" 6906 CXXFLAGS="$CXXFLAGS -Wredundant-decls" 6907 ac_ext=cpp 6908ac_cpp='$CXXCPP $CPPFLAGS' 6909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6912 6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915 6916int 6917main () 6918{ 6919 6920 ; 6921 return 0; 6922} 6923_ACEOF 6924if ac_fn_cxx_try_compile "$LINENO"; then : 6925 6926 TRY_CXXFLAG_RESULT=yes 6927 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wredundant-decls " 6928 6929else 6930 TRY_CXXFLAG_RESULT=no 6931 6932fi 6933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6934 ac_ext=c 6935ac_cpp='$CPP $CPPFLAGS' 6936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6938ac_compiler_gnu=$ac_cv_c_compiler_gnu 6939 6940 CXXFLAGS="$CXXFLAGS_BACKUP" 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6942$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6943 6944 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wsuggest-attribute=format" >&5 6946$as_echo_n "checking C++ compiler flag -Wsuggest-attribute=format... " >&6; } 6947 CXXFLAGS_BACKUP="$CXXFLAGS" 6948 CXXFLAGS="$CXXFLAGS -Wsuggest-attribute=format" 6949 ac_ext=cpp 6950ac_cpp='$CXXCPP $CPPFLAGS' 6951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6954 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_cxx_try_compile "$LINENO"; then : 6967 6968 TRY_CXXFLAG_RESULT=yes 6969 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wsuggest-attribute=format " 6970 6971else 6972 TRY_CXXFLAG_RESULT=no 6973 6974fi 6975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6976 ac_ext=c 6977ac_cpp='$CPP $CPPFLAGS' 6978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6980ac_compiler_gnu=$ac_cv_c_compiler_gnu 6981 6982 CXXFLAGS="$CXXFLAGS_BACKUP" 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 6984$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 6985 6986 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wconversion" >&5 6988$as_echo_n "checking C++ compiler flag -Wconversion... " >&6; } 6989 CXXFLAGS_BACKUP="$CXXFLAGS" 6990 CXXFLAGS="$CXXFLAGS -Wconversion" 6991 ac_ext=cpp 6992ac_cpp='$CXXCPP $CPPFLAGS' 6993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6996 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999 7000int 7001main () 7002{ 7003 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008if ac_fn_cxx_try_compile "$LINENO"; then : 7009 7010 TRY_CXXFLAG_RESULT=yes 7011 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wconversion " 7012 7013else 7014 TRY_CXXFLAG_RESULT=no 7015 7016fi 7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7018 ac_ext=c 7019ac_cpp='$CPP $CPPFLAGS' 7020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7022ac_compiler_gnu=$ac_cv_c_compiler_gnu 7023 7024 CXXFLAGS="$CXXFLAGS_BACKUP" 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 7026$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 7027 7028 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Wsign-conversion" >&5 7030$as_echo_n "checking C++ compiler flag -Wsign-conversion... " >&6; } 7031 CXXFLAGS_BACKUP="$CXXFLAGS" 7032 CXXFLAGS="$CXXFLAGS -Wsign-conversion" 7033 ac_ext=cpp 7034ac_cpp='$CXXCPP $CPPFLAGS' 7035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7038 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041 7042int 7043main () 7044{ 7045 7046 ; 7047 return 0; 7048} 7049_ACEOF 7050if ac_fn_cxx_try_compile "$LINENO"; then : 7051 7052 TRY_CXXFLAG_RESULT=yes 7053 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Wsign-conversion " 7054 7055else 7056 TRY_CXXFLAG_RESULT=no 7057 7058fi 7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7060 ac_ext=c 7061ac_cpp='$CPP $CPPFLAGS' 7062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7064ac_compiler_gnu=$ac_cv_c_compiler_gnu 7065 7066 CXXFLAGS="$CXXFLAGS_BACKUP" 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 7068$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 7069 7070 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Werror=return-type" >&5 7072$as_echo_n "checking C++ compiler flag -Werror=return-type... " >&6; } 7073 CXXFLAGS_BACKUP="$CXXFLAGS" 7074 CXXFLAGS="$CXXFLAGS -Werror=return-type" 7075 ac_ext=cpp 7076ac_cpp='$CXXCPP $CPPFLAGS' 7077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7080 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7082/* end confdefs.h. */ 7083 7084int 7085main () 7086{ 7087 7088 ; 7089 return 0; 7090} 7091_ACEOF 7092if ac_fn_cxx_try_compile "$LINENO"; then : 7093 7094 TRY_CXXFLAG_RESULT=yes 7095 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Werror=return-type " 7096 7097else 7098 TRY_CXXFLAG_RESULT=no 7099 7100fi 7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7102 ac_ext=c 7103ac_cpp='$CPP $CPPFLAGS' 7104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7106ac_compiler_gnu=$ac_cv_c_compiler_gnu 7107 7108 CXXFLAGS="$CXXFLAGS_BACKUP" 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 7110$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 7111 7112 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -O2" >&5 7114$as_echo_n "checking C++ compiler flag -O2... " >&6; } 7115 CXXFLAGS_BACKUP="$CXXFLAGS" 7116 CXXFLAGS="$CXXFLAGS -O2" 7117 ac_ext=cpp 7118ac_cpp='$CXXCPP $CPPFLAGS' 7119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7122 7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7124/* end confdefs.h. */ 7125 7126int 7127main () 7128{ 7129 7130 ; 7131 return 0; 7132} 7133_ACEOF 7134if ac_fn_cxx_try_compile "$LINENO"; then : 7135 7136 TRY_CXXFLAG_RESULT=yes 7137 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -O2 " 7138 7139else 7140 TRY_CXXFLAG_RESULT=no 7141 7142fi 7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7144 ac_ext=c 7145ac_cpp='$CPP $CPPFLAGS' 7146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7148ac_compiler_gnu=$ac_cv_c_compiler_gnu 7149 7150 CXXFLAGS="$CXXFLAGS_BACKUP" 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 7152$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 7153 7154 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flag -Weverything" >&5 7156$as_echo_n "checking C++ compiler flag -Weverything... " >&6; } 7157 CXXFLAGS_BACKUP="$CXXFLAGS" 7158 CXXFLAGS="$CXXFLAGS -Weverything" 7159 ac_ext=cpp 7160ac_cpp='$CXXCPP $CPPFLAGS' 7161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7164 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167 7168int 7169main () 7170{ 7171 7172 ; 7173 return 0; 7174} 7175_ACEOF 7176if ac_fn_cxx_try_compile "$LINENO"; then : 7177 7178 TRY_CXXFLAG_RESULT=yes 7179 CXXFLAGSDEFAULT="$CXXFLAGSDEFAULT -Weverything -Wno-unknown-warning-option -Wno-reserved-id-macro -Wno-padded -Wno-old-style-cast -Wno-nested-anon-types -Wno-global-constructors -Wno-shadow-field-in-constructor -Wno-undefined-func-template" 7180 7181else 7182 TRY_CXXFLAG_RESULT=no 7183 7184fi 7185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7186 ac_ext=c 7187ac_cpp='$CPP $CPPFLAGS' 7188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7190ac_compiler_gnu=$ac_cv_c_compiler_gnu 7191 7192 CXXFLAGS="$CXXFLAGS_BACKUP" 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRY_CXXFLAG_RESULT" >&5 7194$as_echo "$TRY_CXXFLAG_RESULT" >&6; } 7195 7196 7197# needed by src/c99_stdint.h 7198# avoid AC_INCLUDES_DEFAULT 7199for ac_header in stdint.h 7200do : 7201 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" " 7202" 7203if test "x$ac_cv_header_stdint_h" = xyes; then : 7204 cat >>confdefs.h <<_ACEOF 7205#define HAVE_STDINT_H 1 7206_ACEOF 7207 7208fi 7209 7210done 7211 7212# needed for POSIX file API 7213for ac_header in sys/types.h 7214do : 7215 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" " 7216" 7217if test "x$ac_cv_header_sys_types_h" = xyes; then : 7218 cat >>confdefs.h <<_ACEOF 7219#define HAVE_SYS_TYPES_H 1 7220_ACEOF 7221 7222fi 7223 7224done 7225 7226for ac_header in sys/stat.h 7227do : 7228 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" " 7229" 7230if test "x$ac_cv_header_sys_stat_h" = xyes; then : 7231 cat >>confdefs.h <<_ACEOF 7232#define HAVE_SYS_STAT_H 1 7233_ACEOF 7234 7235fi 7236 7237done 7238 7239for ac_header in fcntl.h 7240do : 7241 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" " 7242" 7243if test "x$ac_cv_header_fcntl_h" = xyes; then : 7244 cat >>confdefs.h <<_ACEOF 7245#define HAVE_FCNTL_H 1 7246_ACEOF 7247 7248fi 7249 7250done 7251 7252for ac_header in unistd.h 7253do : 7254 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" " 7255" 7256if test "x$ac_cv_header_unistd_h" = xyes; then : 7257 cat >>confdefs.h <<_ACEOF 7258#define HAVE_UNISTD_H 1 7259_ACEOF 7260 7261fi 7262 7263done 7264 7265for ac_header in io.h 7266do : 7267 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" " 7268" 7269if test "x$ac_cv_header_io_h" = xyes; then : 7270 cat >>confdefs.h <<_ACEOF 7271#define HAVE_IO_H 1 7272_ACEOF 7273 7274fi 7275 7276done 7277 # windows POSIX-like API 7278# list of possible types to use in typedefs 7279# The cast to long int works around a bug in the HP C Compiler 7280# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7281# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7282# This bug is HP SR number 8606223364. 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 7284$as_echo_n "checking size of char... " >&6; } 7285if ${ac_cv_sizeof_char+:} false; then : 7286 $as_echo_n "(cached) " >&6 7287else 7288 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" " 7289"; then : 7290 7291else 7292 if test "$ac_cv_type_char" = yes; then 7293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7295as_fn_error 77 "cannot compute sizeof (char) 7296See \`config.log' for more details" "$LINENO" 5; } 7297 else 7298 ac_cv_sizeof_char=0 7299 fi 7300fi 7301 7302fi 7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 7304$as_echo "$ac_cv_sizeof_char" >&6; } 7305 7306 7307 7308cat >>confdefs.h <<_ACEOF 7309#define SIZEOF_CHAR $ac_cv_sizeof_char 7310_ACEOF 7311 7312 7313# The cast to long int works around a bug in the HP C Compiler 7314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7316# This bug is HP SR number 8606223364. 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 7318$as_echo_n "checking size of short... " >&6; } 7319if ${ac_cv_sizeof_short+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" " 7323"; then : 7324 7325else 7326 if test "$ac_cv_type_short" = yes; then 7327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7329as_fn_error 77 "cannot compute sizeof (short) 7330See \`config.log' for more details" "$LINENO" 5; } 7331 else 7332 ac_cv_sizeof_short=0 7333 fi 7334fi 7335 7336fi 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 7338$as_echo "$ac_cv_sizeof_short" >&6; } 7339 7340 7341 7342cat >>confdefs.h <<_ACEOF 7343#define SIZEOF_SHORT $ac_cv_sizeof_short 7344_ACEOF 7345 7346 7347# The cast to long int works around a bug in the HP C Compiler 7348# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7349# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7350# This bug is HP SR number 8606223364. 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7352$as_echo_n "checking size of int... " >&6; } 7353if ${ac_cv_sizeof_int+:} false; then : 7354 $as_echo_n "(cached) " >&6 7355else 7356 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" " 7357"; then : 7358 7359else 7360 if test "$ac_cv_type_int" = yes; then 7361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7363as_fn_error 77 "cannot compute sizeof (int) 7364See \`config.log' for more details" "$LINENO" 5; } 7365 else 7366 ac_cv_sizeof_int=0 7367 fi 7368fi 7369 7370fi 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7372$as_echo "$ac_cv_sizeof_int" >&6; } 7373 7374 7375 7376cat >>confdefs.h <<_ACEOF 7377#define SIZEOF_INT $ac_cv_sizeof_int 7378_ACEOF 7379 7380 7381# The cast to long int works around a bug in the HP C Compiler 7382# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7383# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7384# This bug is HP SR number 8606223364. 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7386$as_echo_n "checking size of long... " >&6; } 7387if ${ac_cv_sizeof_long+:} false; then : 7388 $as_echo_n "(cached) " >&6 7389else 7390 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" " 7391"; then : 7392 7393else 7394 if test "$ac_cv_type_long" = yes; then 7395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7397as_fn_error 77 "cannot compute sizeof (long) 7398See \`config.log' for more details" "$LINENO" 5; } 7399 else 7400 ac_cv_sizeof_long=0 7401 fi 7402fi 7403 7404fi 7405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7406$as_echo "$ac_cv_sizeof_long" >&6; } 7407 7408 7409 7410cat >>confdefs.h <<_ACEOF 7411#define SIZEOF_LONG $ac_cv_sizeof_long 7412_ACEOF 7413 7414 7415# The cast to long int works around a bug in the HP C Compiler 7416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7418# This bug is HP SR number 8606223364. 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7420$as_echo_n "checking size of long long... " >&6; } 7421if ${ac_cv_sizeof_long_long+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" " 7425"; then : 7426 7427else 7428 if test "$ac_cv_type_long_long" = yes; then 7429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7431as_fn_error 77 "cannot compute sizeof (long long) 7432See \`config.log' for more details" "$LINENO" 5; } 7433 else 7434 ac_cv_sizeof_long_long=0 7435 fi 7436fi 7437 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 7440$as_echo "$ac_cv_sizeof_long_long" >&6; } 7441 7442 7443 7444cat >>confdefs.h <<_ACEOF 7445#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7446_ACEOF 7447 7448 7449# The cast to long int works around a bug in the HP C Compiler 7450# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7451# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7452# This bug is HP SR number 8606223364. 7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 7454$as_echo_n "checking size of __int64... " >&6; } 7455if ${ac_cv_sizeof___int64+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" " 7459"; then : 7460 7461else 7462 if test "$ac_cv_type___int64" = yes; then 7463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7465as_fn_error 77 "cannot compute sizeof (__int64) 7466See \`config.log' for more details" "$LINENO" 5; } 7467 else 7468 ac_cv_sizeof___int64=0 7469 fi 7470fi 7471 7472fi 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 7474$as_echo "$ac_cv_sizeof___int64" >&6; } 7475 7476 7477 7478cat >>confdefs.h <<_ACEOF 7479#define SIZEOF___INT64 $ac_cv_sizeof___int64 7480_ACEOF 7481 7482 7483# size of pointers 7484# The cast to long int works around a bug in the HP C Compiler 7485# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7486# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7487# This bug is HP SR number 8606223364. 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 7489$as_echo_n "checking size of void *... " >&6; } 7490if ${ac_cv_sizeof_void_p+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" " 7494"; then : 7495 7496else 7497 if test "$ac_cv_type_void_p" = yes; then 7498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7500as_fn_error 77 "cannot compute sizeof (void *) 7501See \`config.log' for more details" "$LINENO" 5; } 7502 else 7503 ac_cv_sizeof_void_p=0 7504 fi 7505fi 7506 7507fi 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 7509$as_echo "$ac_cv_sizeof_void_p" >&6; } 7510 7511 7512 7513cat >>confdefs.h <<_ACEOF 7514#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 7515_ACEOF 7516 7517 7518# 64-bit integer constant suffix 7519# The cast to long int works around a bug in the HP C Compiler 7520# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7521# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7522# This bug is HP SR number 8606223364. 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of 0l" >&5 7524$as_echo_n "checking size of 0l... " >&6; } 7525if ${ac_cv_sizeof_0l+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (0l))" "ac_cv_sizeof_0l" " 7529"; then : 7530 7531else 7532 if test "$ac_cv_type_0l" = yes; then 7533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7535as_fn_error 77 "cannot compute sizeof (0l) 7536See \`config.log' for more details" "$LINENO" 5; } 7537 else 7538 ac_cv_sizeof_0l=0 7539 fi 7540fi 7541 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_0l" >&5 7544$as_echo "$ac_cv_sizeof_0l" >&6; } 7545 7546 7547 7548cat >>confdefs.h <<_ACEOF 7549#define SIZEOF_0L $ac_cv_sizeof_0l 7550_ACEOF 7551 7552 7553# The cast to long int works around a bug in the HP C Compiler 7554# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7555# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7556# This bug is HP SR number 8606223364. 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of 0ll" >&5 7558$as_echo_n "checking size of 0ll... " >&6; } 7559if ${ac_cv_sizeof_0ll+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561else 7562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (0ll))" "ac_cv_sizeof_0ll" " 7563"; then : 7564 7565else 7566 if test "$ac_cv_type_0ll" = yes; then 7567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7569as_fn_error 77 "cannot compute sizeof (0ll) 7570See \`config.log' for more details" "$LINENO" 5; } 7571 else 7572 ac_cv_sizeof_0ll=0 7573 fi 7574fi 7575 7576fi 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_0ll" >&5 7578$as_echo "$ac_cv_sizeof_0ll" >&6; } 7579 7580 7581 7582cat >>confdefs.h <<_ACEOF 7583#define SIZEOF_0LL $ac_cv_sizeof_0ll 7584_ACEOF 7585 7586 7587# The cast to long int works around a bug in the HP C Compiler 7588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7590# This bug is HP SR number 8606223364. 7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of 0i8" >&5 7592$as_echo_n "checking size of 0i8... " >&6; } 7593if ${ac_cv_sizeof_0i8+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (0i8))" "ac_cv_sizeof_0i8" " 7597"; then : 7598 7599else 7600 if test "$ac_cv_type_0i8" = yes; then 7601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7603as_fn_error 77 "cannot compute sizeof (0i8) 7604See \`config.log' for more details" "$LINENO" 5; } 7605 else 7606 ac_cv_sizeof_0i8=0 7607 fi 7608fi 7609 7610fi 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_0i8" >&5 7612$as_echo "$ac_cv_sizeof_0i8" >&6; } 7613 7614 7615 7616cat >>confdefs.h <<_ACEOF 7617#define SIZEOF_0I8 $ac_cv_sizeof_0i8 7618_ACEOF 7619 7620 7621 7622 7623ac_config_files="$ac_config_files Makefile benchmarks/submatch_nfa/Makefile benchmarks/submatch_dfa_aot/Makefile benchmarks/submatch_dfa_jit/Makefile benchmarks/submatch_java/Makefile doc/manpage.rst doc/help.rst" 7624 7625ac_config_files="$ac_config_files run_tests.py" 7626 7627ac_config_files="$ac_config_files benchmarks/submatch_dfa_aot/run.py" 7628 7629ac_config_files="$ac_config_files benchmarks/submatch_java/run.py" 7630 7631 7632 7633ac_config_links="$ac_config_links benchmarks/submatch_java/chart.js:benchmarks/submatch_java/chart.js" 7634 7635 7636 7637case `pwd` in 7638 *\ * | *\ *) 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7640$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7641esac 7642 7643 7644 7645macro_version='2.4.6' 7646macro_revision='2.4.6' 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660ltmain=$ac_aux_dir/ltmain.sh 7661 7662# Make sure we can run config.sub. 7663$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7664 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 7665 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7667$as_echo_n "checking build system type... " >&6; } 7668if ${ac_cv_build+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670else 7671 ac_build_alias=$build_alias 7672test "x$ac_build_alias" = x && 7673 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7674test "x$ac_build_alias" = x && 7675 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7676ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 7678 7679fi 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7681$as_echo "$ac_cv_build" >&6; } 7682case $ac_cv_build in 7683*-*-*) ;; 7684*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7685esac 7686build=$ac_cv_build 7687ac_save_IFS=$IFS; IFS='-' 7688set x $ac_cv_build 7689shift 7690build_cpu=$1 7691build_vendor=$2 7692shift; shift 7693# Remember, the first character of IFS is used to create $*, 7694# except with old shells: 7695build_os=$* 7696IFS=$ac_save_IFS 7697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7698 7699 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7701$as_echo_n "checking host system type... " >&6; } 7702if ${ac_cv_host+:} false; then : 7703 $as_echo_n "(cached) " >&6 7704else 7705 if test "x$host_alias" = x; then 7706 ac_cv_host=$ac_cv_build 7707else 7708 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7709 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 7710fi 7711 7712fi 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7714$as_echo "$ac_cv_host" >&6; } 7715case $ac_cv_host in 7716*-*-*) ;; 7717*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7718esac 7719host=$ac_cv_host 7720ac_save_IFS=$IFS; IFS='-' 7721set x $ac_cv_host 7722shift 7723host_cpu=$1 7724host_vendor=$2 7725shift; shift 7726# Remember, the first character of IFS is used to create $*, 7727# except with old shells: 7728host_os=$* 7729IFS=$ac_save_IFS 7730case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7731 7732 7733# Backslashify metacharacters that are still active within 7734# double-quoted strings. 7735sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7736 7737# Same as above, but do not quote variable references. 7738double_quote_subst='s/\(["`\\]\)/\\\1/g' 7739 7740# Sed substitution to delay expansion of an escaped shell variable in a 7741# double_quote_subst'ed string. 7742delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7743 7744# Sed substitution to delay expansion of an escaped single quote. 7745delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7746 7747# Sed substitution to avoid accidental globbing in evaled expressions 7748no_glob_subst='s/\*/\\\*/g' 7749 7750ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7751ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7752ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7753 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7755$as_echo_n "checking how to print strings... " >&6; } 7756# Test print first, because it will be a builtin if present. 7757if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7758 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7759 ECHO='print -r --' 7760elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7761 ECHO='printf %s\n' 7762else 7763 # Use this function as a fallback that always works. 7764 func_fallback_echo () 7765 { 7766 eval 'cat <<_LTECHO_EOF 7767$1 7768_LTECHO_EOF' 7769 } 7770 ECHO='func_fallback_echo' 7771fi 7772 7773# func_echo_all arg... 7774# Invoke $ECHO with all args, space-separated. 7775func_echo_all () 7776{ 7777 $ECHO "" 7778} 7779 7780case $ECHO in 7781 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7782$as_echo "printf" >&6; } ;; 7783 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7784$as_echo "print -r" >&6; } ;; 7785 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7786$as_echo "cat" >&6; } ;; 7787esac 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7803$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7804if ${ac_cv_path_SED+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7808 for ac_i in 1 2 3 4 5 6 7; do 7809 ac_script="$ac_script$as_nl$ac_script" 7810 done 7811 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7812 { ac_script=; unset ac_script;} 7813 if test -z "$SED"; then 7814 ac_path_SED_found=false 7815 # Loop through the user's path and test for each of PROGNAME-LIST 7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7817for as_dir in $PATH 7818do 7819 IFS=$as_save_IFS 7820 test -z "$as_dir" && as_dir=. 7821 for ac_prog in sed gsed; do 7822 for ac_exec_ext in '' $ac_executable_extensions; do 7823 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7824 as_fn_executable_p "$ac_path_SED" || continue 7825# Check for GNU ac_path_SED and select it if it is found. 7826 # Check for GNU $ac_path_SED 7827case `"$ac_path_SED" --version 2>&1` in 7828*GNU*) 7829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7830*) 7831 ac_count=0 7832 $as_echo_n 0123456789 >"conftest.in" 7833 while : 7834 do 7835 cat "conftest.in" "conftest.in" >"conftest.tmp" 7836 mv "conftest.tmp" "conftest.in" 7837 cp "conftest.in" "conftest.nl" 7838 $as_echo '' >> "conftest.nl" 7839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7841 as_fn_arith $ac_count + 1 && ac_count=$as_val 7842 if test $ac_count -gt ${ac_path_SED_max-0}; then 7843 # Best one so far, save it but keep looking for a better one 7844 ac_cv_path_SED="$ac_path_SED" 7845 ac_path_SED_max=$ac_count 7846 fi 7847 # 10*(2^10) chars as input seems more than enough 7848 test $ac_count -gt 10 && break 7849 done 7850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7851esac 7852 7853 $ac_path_SED_found && break 3 7854 done 7855 done 7856 done 7857IFS=$as_save_IFS 7858 if test -z "$ac_cv_path_SED"; then 7859 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7860 fi 7861else 7862 ac_cv_path_SED=$SED 7863fi 7864 7865fi 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7867$as_echo "$ac_cv_path_SED" >&6; } 7868 SED="$ac_cv_path_SED" 7869 rm -f conftest.sed 7870 7871test -z "$SED" && SED=sed 7872Xsed="$SED -e 1s/^X//" 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7885$as_echo_n "checking for fgrep... " >&6; } 7886if ${ac_cv_path_FGREP+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7890 then ac_cv_path_FGREP="$GREP -F" 7891 else 7892 if test -z "$FGREP"; then 7893 ac_path_FGREP_found=false 7894 # Loop through the user's path and test for each of PROGNAME-LIST 7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7896for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7897do 7898 IFS=$as_save_IFS 7899 test -z "$as_dir" && as_dir=. 7900 for ac_prog in fgrep; do 7901 for ac_exec_ext in '' $ac_executable_extensions; do 7902 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7903 as_fn_executable_p "$ac_path_FGREP" || continue 7904# Check for GNU ac_path_FGREP and select it if it is found. 7905 # Check for GNU $ac_path_FGREP 7906case `"$ac_path_FGREP" --version 2>&1` in 7907*GNU*) 7908 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7909*) 7910 ac_count=0 7911 $as_echo_n 0123456789 >"conftest.in" 7912 while : 7913 do 7914 cat "conftest.in" "conftest.in" >"conftest.tmp" 7915 mv "conftest.tmp" "conftest.in" 7916 cp "conftest.in" "conftest.nl" 7917 $as_echo 'FGREP' >> "conftest.nl" 7918 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7920 as_fn_arith $ac_count + 1 && ac_count=$as_val 7921 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7922 # Best one so far, save it but keep looking for a better one 7923 ac_cv_path_FGREP="$ac_path_FGREP" 7924 ac_path_FGREP_max=$ac_count 7925 fi 7926 # 10*(2^10) chars as input seems more than enough 7927 test $ac_count -gt 10 && break 7928 done 7929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7930esac 7931 7932 $ac_path_FGREP_found && break 3 7933 done 7934 done 7935 done 7936IFS=$as_save_IFS 7937 if test -z "$ac_cv_path_FGREP"; then 7938 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7939 fi 7940else 7941 ac_cv_path_FGREP=$FGREP 7942fi 7943 7944 fi 7945fi 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7947$as_echo "$ac_cv_path_FGREP" >&6; } 7948 FGREP="$ac_cv_path_FGREP" 7949 7950 7951test -z "$GREP" && GREP=grep 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971# Check whether --with-gnu-ld was given. 7972if test "${with_gnu_ld+set}" = set; then : 7973 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7974else 7975 with_gnu_ld=no 7976fi 7977 7978ac_prog=ld 7979if test yes = "$GCC"; then 7980 # Check if gcc -print-prog-name=ld gives a path. 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7982$as_echo_n "checking for ld used by $CC... " >&6; } 7983 case $host in 7984 *-*-mingw*) 7985 # gcc leaves a trailing carriage return, which upsets mingw 7986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7987 *) 7988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7989 esac 7990 case $ac_prog in 7991 # Accept absolute paths. 7992 [\\/]* | ?:[\\/]*) 7993 re_direlt='/[^/][^/]*/\.\./' 7994 # Canonicalize the pathname of ld 7995 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7996 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7997 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7998 done 7999 test -z "$LD" && LD=$ac_prog 8000 ;; 8001 "") 8002 # If it fails, then pretend we aren't using GCC. 8003 ac_prog=ld 8004 ;; 8005 *) 8006 # If it is relative, then search for the first ld in PATH. 8007 with_gnu_ld=unknown 8008 ;; 8009 esac 8010elif test yes = "$with_gnu_ld"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8012$as_echo_n "checking for GNU ld... " >&6; } 8013else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8015$as_echo_n "checking for non-GNU ld... " >&6; } 8016fi 8017if ${lt_cv_path_LD+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 if test -z "$LD"; then 8021 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8022 for ac_dir in $PATH; do 8023 IFS=$lt_save_ifs 8024 test -z "$ac_dir" && ac_dir=. 8025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8026 lt_cv_path_LD=$ac_dir/$ac_prog 8027 # Check to see if the program is GNU ld. I'd rather use --version, 8028 # but apparently some variants of GNU ld only accept -v. 8029 # Break only if it was the GNU/non-GNU ld that we prefer. 8030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8031 *GNU* | *'with BFD'*) 8032 test no != "$with_gnu_ld" && break 8033 ;; 8034 *) 8035 test yes != "$with_gnu_ld" && break 8036 ;; 8037 esac 8038 fi 8039 done 8040 IFS=$lt_save_ifs 8041else 8042 lt_cv_path_LD=$LD # Let the user override the test with a path. 8043fi 8044fi 8045 8046LD=$lt_cv_path_LD 8047if test -n "$LD"; then 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8049$as_echo "$LD" >&6; } 8050else 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8052$as_echo "no" >&6; } 8053fi 8054test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8056$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8057if ${lt_cv_prog_gnu_ld+:} false; then : 8058 $as_echo_n "(cached) " >&6 8059else 8060 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8061case `$LD -v 2>&1 </dev/null` in 8062*GNU* | *'with BFD'*) 8063 lt_cv_prog_gnu_ld=yes 8064 ;; 8065*) 8066 lt_cv_prog_gnu_ld=no 8067 ;; 8068esac 8069fi 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8071$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8072with_gnu_ld=$lt_cv_prog_gnu_ld 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8083$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8084if ${lt_cv_path_NM+:} false; then : 8085 $as_echo_n "(cached) " >&6 8086else 8087 if test -n "$NM"; then 8088 # Let the user override the test. 8089 lt_cv_path_NM=$NM 8090else 8091 lt_nm_to_check=${ac_tool_prefix}nm 8092 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8093 lt_nm_to_check="$lt_nm_to_check nm" 8094 fi 8095 for lt_tmp_nm in $lt_nm_to_check; do 8096 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8097 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8098 IFS=$lt_save_ifs 8099 test -z "$ac_dir" && ac_dir=. 8100 tmp_nm=$ac_dir/$lt_tmp_nm 8101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8102 # Check to see if the nm accepts a BSD-compat flag. 8103 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8104 # nm: unknown option "B" ignored 8105 # Tru64's nm complains that /dev/null is an invalid object file 8106 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8107 case $build_os in 8108 mingw*) lt_bad_file=conftest.nm/nofile ;; 8109 *) lt_bad_file=/dev/null ;; 8110 esac 8111 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8112 *$lt_bad_file* | *'Invalid file or object type'*) 8113 lt_cv_path_NM="$tmp_nm -B" 8114 break 2 8115 ;; 8116 *) 8117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8118 */dev/null*) 8119 lt_cv_path_NM="$tmp_nm -p" 8120 break 2 8121 ;; 8122 *) 8123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8124 continue # so that we can try to find one that supports BSD flags 8125 ;; 8126 esac 8127 ;; 8128 esac 8129 fi 8130 done 8131 IFS=$lt_save_ifs 8132 done 8133 : ${lt_cv_path_NM=no} 8134fi 8135fi 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8137$as_echo "$lt_cv_path_NM" >&6; } 8138if test no != "$lt_cv_path_NM"; then 8139 NM=$lt_cv_path_NM 8140else 8141 # Didn't find any BSD compatible name lister, look for dumpbin. 8142 if test -n "$DUMPBIN"; then : 8143 # Let the user override the test. 8144 else 8145 if test -n "$ac_tool_prefix"; then 8146 for ac_prog in dumpbin "link -dump" 8147 do 8148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8149set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8151$as_echo_n "checking for $ac_word... " >&6; } 8152if ${ac_cv_prog_DUMPBIN+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154else 8155 if test -n "$DUMPBIN"; then 8156 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8157else 8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8159for as_dir in $PATH 8160do 8161 IFS=$as_save_IFS 8162 test -z "$as_dir" && as_dir=. 8163 for ac_exec_ext in '' $ac_executable_extensions; do 8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8165 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8167 break 2 8168 fi 8169done 8170 done 8171IFS=$as_save_IFS 8172 8173fi 8174fi 8175DUMPBIN=$ac_cv_prog_DUMPBIN 8176if test -n "$DUMPBIN"; then 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8178$as_echo "$DUMPBIN" >&6; } 8179else 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8181$as_echo "no" >&6; } 8182fi 8183 8184 8185 test -n "$DUMPBIN" && break 8186 done 8187fi 8188if test -z "$DUMPBIN"; then 8189 ac_ct_DUMPBIN=$DUMPBIN 8190 for ac_prog in dumpbin "link -dump" 8191do 8192 # Extract the first word of "$ac_prog", so it can be a program name with args. 8193set dummy $ac_prog; ac_word=$2 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8195$as_echo_n "checking for $ac_word... " >&6; } 8196if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8197 $as_echo_n "(cached) " >&6 8198else 8199 if test -n "$ac_ct_DUMPBIN"; then 8200 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8201else 8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8203for as_dir in $PATH 8204do 8205 IFS=$as_save_IFS 8206 test -z "$as_dir" && as_dir=. 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213done 8214 done 8215IFS=$as_save_IFS 8216 8217fi 8218fi 8219ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8220if test -n "$ac_ct_DUMPBIN"; then 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8222$as_echo "$ac_ct_DUMPBIN" >&6; } 8223else 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8225$as_echo "no" >&6; } 8226fi 8227 8228 8229 test -n "$ac_ct_DUMPBIN" && break 8230done 8231 8232 if test "x$ac_ct_DUMPBIN" = x; then 8233 DUMPBIN=":" 8234 else 8235 case $cross_compiling:$ac_tool_warned in 8236yes:) 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8239ac_tool_warned=yes ;; 8240esac 8241 DUMPBIN=$ac_ct_DUMPBIN 8242 fi 8243fi 8244 8245 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8246 *COFF*) 8247 DUMPBIN="$DUMPBIN -symbols -headers" 8248 ;; 8249 *) 8250 DUMPBIN=: 8251 ;; 8252 esac 8253 fi 8254 8255 if test : != "$DUMPBIN"; then 8256 NM=$DUMPBIN 8257 fi 8258fi 8259test -z "$NM" && NM=nm 8260 8261 8262 8263 8264 8265 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8267$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8268if ${lt_cv_nm_interface+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 lt_cv_nm_interface="BSD nm" 8272 echo "int some_variable = 0;" > conftest.$ac_ext 8273 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8274 (eval "$ac_compile" 2>conftest.err) 8275 cat conftest.err >&5 8276 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8277 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8278 cat conftest.err >&5 8279 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8280 cat conftest.out >&5 8281 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8282 lt_cv_nm_interface="MS dumpbin" 8283 fi 8284 rm -f conftest* 8285fi 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8287$as_echo "$lt_cv_nm_interface" >&6; } 8288 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8290$as_echo_n "checking whether ln -s works... " >&6; } 8291LN_S=$as_ln_s 8292if test "$LN_S" = "ln -s"; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8294$as_echo "yes" >&6; } 8295else 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8297$as_echo "no, using $LN_S" >&6; } 8298fi 8299 8300# find the maximum length of command line arguments 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8302$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8303if ${lt_cv_sys_max_cmd_len+:} false; then : 8304 $as_echo_n "(cached) " >&6 8305else 8306 i=0 8307 teststring=ABCD 8308 8309 case $build_os in 8310 msdosdjgpp*) 8311 # On DJGPP, this test can blow up pretty badly due to problems in libc 8312 # (any single argument exceeding 2000 bytes causes a buffer overrun 8313 # during glob expansion). Even if it were fixed, the result of this 8314 # check would be larger than it should be. 8315 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8316 ;; 8317 8318 gnu*) 8319 # Under GNU Hurd, this test is not required because there is 8320 # no limit to the length of command line arguments. 8321 # Libtool will interpret -1 as no limit whatsoever 8322 lt_cv_sys_max_cmd_len=-1; 8323 ;; 8324 8325 cygwin* | mingw* | cegcc*) 8326 # On Win9x/ME, this test blows up -- it succeeds, but takes 8327 # about 5 minutes as the teststring grows exponentially. 8328 # Worse, since 9x/ME are not pre-emptively multitasking, 8329 # you end up with a "frozen" computer, even though with patience 8330 # the test eventually succeeds (with a max line length of 256k). 8331 # Instead, let's just punt: use the minimum linelength reported by 8332 # all of the supported platforms: 8192 (on NT/2K/XP). 8333 lt_cv_sys_max_cmd_len=8192; 8334 ;; 8335 8336 mint*) 8337 # On MiNT this can take a long time and run out of memory. 8338 lt_cv_sys_max_cmd_len=8192; 8339 ;; 8340 8341 mint*) 8342 # On MiNT this can take a long time and run out of memory. 8343 lt_cv_sys_max_cmd_len=8192; 8344 ;; 8345 8346 amigaos*) 8347 # On AmigaOS with pdksh, this test takes hours, literally. 8348 # So we just punt and use a minimum line length of 8192. 8349 lt_cv_sys_max_cmd_len=8192; 8350 ;; 8351 8352 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8353 # This has been around since 386BSD, at least. Likely further. 8354 if test -x /sbin/sysctl; then 8355 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8356 elif test -x /usr/sbin/sysctl; then 8357 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8358 else 8359 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8360 fi 8361 # And add a safety zone 8362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8364 ;; 8365 8366 interix*) 8367 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8368 lt_cv_sys_max_cmd_len=196608 8369 ;; 8370 8371 os2*) 8372 # The test takes a long time on OS/2. 8373 lt_cv_sys_max_cmd_len=8192 8374 ;; 8375 8376 osf*) 8377 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8378 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8379 # nice to cause kernel panics so lets avoid the loop below. 8380 # First set a reasonable default. 8381 lt_cv_sys_max_cmd_len=16384 8382 # 8383 if test -x /sbin/sysconfig; then 8384 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8385 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8386 esac 8387 fi 8388 ;; 8389 sco3.2v5*) 8390 lt_cv_sys_max_cmd_len=102400 8391 ;; 8392 sysv5* | sco5v6* | sysv4.2uw2*) 8393 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8394 if test -n "$kargmax"; then 8395 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8396 else 8397 lt_cv_sys_max_cmd_len=32768 8398 fi 8399 ;; 8400 *) 8401 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8402 if test -n "$lt_cv_sys_max_cmd_len" && \ 8403 test undefined != "$lt_cv_sys_max_cmd_len"; then 8404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8406 else 8407 # Make teststring a little bigger before we do anything with it. 8408 # a 1K string should be a reasonable start. 8409 for i in 1 2 3 4 5 6 7 8; do 8410 teststring=$teststring$teststring 8411 done 8412 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8413 # If test is not a shell built-in, we'll probably end up computing a 8414 # maximum length that is only half of the actual maximum length, but 8415 # we can't tell. 8416 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8417 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8418 test 17 != "$i" # 1/2 MB should be enough 8419 do 8420 i=`expr $i + 1` 8421 teststring=$teststring$teststring 8422 done 8423 # Only check the string length outside the loop. 8424 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8425 teststring= 8426 # Add a significant safety factor because C++ compilers can tack on 8427 # massive amounts of additional arguments before passing them to the 8428 # linker. It appears as though 1/2 is a usable value. 8429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8430 fi 8431 ;; 8432 esac 8433 8434fi 8435 8436if test -n "$lt_cv_sys_max_cmd_len"; then 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8438$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8439else 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8441$as_echo "none" >&6; } 8442fi 8443max_cmd_len=$lt_cv_sys_max_cmd_len 8444 8445 8446 8447 8448 8449 8450: ${CP="cp -f"} 8451: ${MV="mv -f"} 8452: ${RM="rm -f"} 8453 8454if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8455 lt_unset=unset 8456else 8457 lt_unset=false 8458fi 8459 8460 8461 8462 8463 8464# test EBCDIC or ASCII 8465case `echo X|tr X '\101'` in 8466 A) # ASCII based system 8467 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8468 lt_SP2NL='tr \040 \012' 8469 lt_NL2SP='tr \015\012 \040\040' 8470 ;; 8471 *) # EBCDIC based system 8472 lt_SP2NL='tr \100 \n' 8473 lt_NL2SP='tr \r\n \100\100' 8474 ;; 8475esac 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8486$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8487if ${lt_cv_to_host_file_cmd+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489else 8490 case $host in 8491 *-*-mingw* ) 8492 case $build in 8493 *-*-mingw* ) # actually msys 8494 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8495 ;; 8496 *-*-cygwin* ) 8497 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8498 ;; 8499 * ) # otherwise, assume *nix 8500 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8501 ;; 8502 esac 8503 ;; 8504 *-*-cygwin* ) 8505 case $build in 8506 *-*-mingw* ) # actually msys 8507 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8508 ;; 8509 *-*-cygwin* ) 8510 lt_cv_to_host_file_cmd=func_convert_file_noop 8511 ;; 8512 * ) # otherwise, assume *nix 8513 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8514 ;; 8515 esac 8516 ;; 8517 * ) # unhandled hosts (and "normal" native builds) 8518 lt_cv_to_host_file_cmd=func_convert_file_noop 8519 ;; 8520esac 8521 8522fi 8523 8524to_host_file_cmd=$lt_cv_to_host_file_cmd 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8526$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8527 8528 8529 8530 8531 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8533$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8534if ${lt_cv_to_tool_file_cmd+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 #assume ordinary cross tools, or native build. 8538lt_cv_to_tool_file_cmd=func_convert_file_noop 8539case $host in 8540 *-*-mingw* ) 8541 case $build in 8542 *-*-mingw* ) # actually msys 8543 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8544 ;; 8545 esac 8546 ;; 8547esac 8548 8549fi 8550 8551to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8553$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8554 8555 8556 8557 8558 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8560$as_echo_n "checking for $LD option to reload object files... " >&6; } 8561if ${lt_cv_ld_reload_flag+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_ld_reload_flag='-r' 8565fi 8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8567$as_echo "$lt_cv_ld_reload_flag" >&6; } 8568reload_flag=$lt_cv_ld_reload_flag 8569case $reload_flag in 8570"" | " "*) ;; 8571*) reload_flag=" $reload_flag" ;; 8572esac 8573reload_cmds='$LD$reload_flag -o $output$reload_objs' 8574case $host_os in 8575 cygwin* | mingw* | pw32* | cegcc*) 8576 if test yes != "$GCC"; then 8577 reload_cmds=false 8578 fi 8579 ;; 8580 darwin*) 8581 if test yes = "$GCC"; then 8582 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8583 else 8584 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8585 fi 8586 ;; 8587esac 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597if test -n "$ac_tool_prefix"; then 8598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8599set dummy ${ac_tool_prefix}objdump; ac_word=$2 8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8601$as_echo_n "checking for $ac_word... " >&6; } 8602if ${ac_cv_prog_OBJDUMP+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604else 8605 if test -n "$OBJDUMP"; then 8606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8607else 8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8609for as_dir in $PATH 8610do 8611 IFS=$as_save_IFS 8612 test -z "$as_dir" && as_dir=. 8613 for ac_exec_ext in '' $ac_executable_extensions; do 8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8617 break 2 8618 fi 8619done 8620 done 8621IFS=$as_save_IFS 8622 8623fi 8624fi 8625OBJDUMP=$ac_cv_prog_OBJDUMP 8626if test -n "$OBJDUMP"; then 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8628$as_echo "$OBJDUMP" >&6; } 8629else 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8631$as_echo "no" >&6; } 8632fi 8633 8634 8635fi 8636if test -z "$ac_cv_prog_OBJDUMP"; then 8637 ac_ct_OBJDUMP=$OBJDUMP 8638 # Extract the first word of "objdump", so it can be a program name with args. 8639set dummy objdump; ac_word=$2 8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8641$as_echo_n "checking for $ac_word... " >&6; } 8642if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 if test -n "$ac_ct_OBJDUMP"; then 8646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8647else 8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8649for as_dir in $PATH 8650do 8651 IFS=$as_save_IFS 8652 test -z "$as_dir" && as_dir=. 8653 for ac_exec_ext in '' $ac_executable_extensions; do 8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8655 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8657 break 2 8658 fi 8659done 8660 done 8661IFS=$as_save_IFS 8662 8663fi 8664fi 8665ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8666if test -n "$ac_ct_OBJDUMP"; then 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8668$as_echo "$ac_ct_OBJDUMP" >&6; } 8669else 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8671$as_echo "no" >&6; } 8672fi 8673 8674 if test "x$ac_ct_OBJDUMP" = x; then 8675 OBJDUMP="false" 8676 else 8677 case $cross_compiling:$ac_tool_warned in 8678yes:) 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8681ac_tool_warned=yes ;; 8682esac 8683 OBJDUMP=$ac_ct_OBJDUMP 8684 fi 8685else 8686 OBJDUMP="$ac_cv_prog_OBJDUMP" 8687fi 8688 8689test -z "$OBJDUMP" && OBJDUMP=objdump 8690 8691 8692 8693 8694 8695 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8697$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8698if ${lt_cv_deplibs_check_method+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 lt_cv_file_magic_cmd='$MAGIC_CMD' 8702lt_cv_file_magic_test_file= 8703lt_cv_deplibs_check_method='unknown' 8704# Need to set the preceding variable on all platforms that support 8705# interlibrary dependencies. 8706# 'none' -- dependencies not supported. 8707# 'unknown' -- same as none, but documents that we really don't know. 8708# 'pass_all' -- all dependencies passed with no checks. 8709# 'test_compile' -- check by making test program. 8710# 'file_magic [[regex]]' -- check by looking for files in library path 8711# that responds to the $file_magic_cmd with a given extended regex. 8712# If you have 'file' or equivalent on your system and you're not sure 8713# whether 'pass_all' will *always* work, you probably want this one. 8714 8715case $host_os in 8716aix[4-9]*) 8717 lt_cv_deplibs_check_method=pass_all 8718 ;; 8719 8720beos*) 8721 lt_cv_deplibs_check_method=pass_all 8722 ;; 8723 8724bsdi[45]*) 8725 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8726 lt_cv_file_magic_cmd='/usr/bin/file -L' 8727 lt_cv_file_magic_test_file=/shlib/libc.so 8728 ;; 8729 8730cygwin*) 8731 # func_win32_libid is a shell function defined in ltmain.sh 8732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8733 lt_cv_file_magic_cmd='func_win32_libid' 8734 ;; 8735 8736mingw* | pw32*) 8737 # Base MSYS/MinGW do not provide the 'file' command needed by 8738 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8739 # unless we find 'file', for example because we are cross-compiling. 8740 if ( file / ) >/dev/null 2>&1; then 8741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8742 lt_cv_file_magic_cmd='func_win32_libid' 8743 else 8744 # Keep this pattern in sync with the one in func_win32_libid. 8745 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8746 lt_cv_file_magic_cmd='$OBJDUMP -f' 8747 fi 8748 ;; 8749 8750cegcc*) 8751 # use the weaker test based on 'objdump'. See mingw*. 8752 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8753 lt_cv_file_magic_cmd='$OBJDUMP -f' 8754 ;; 8755 8756darwin* | rhapsody*) 8757 lt_cv_deplibs_check_method=pass_all 8758 ;; 8759 8760freebsd* | dragonfly*) 8761 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8762 case $host_cpu in 8763 i*86 ) 8764 # Not sure whether the presence of OpenBSD here was a mistake. 8765 # Let's accept both of them until this is cleared up. 8766 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8767 lt_cv_file_magic_cmd=/usr/bin/file 8768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8769 ;; 8770 esac 8771 else 8772 lt_cv_deplibs_check_method=pass_all 8773 fi 8774 ;; 8775 8776haiku*) 8777 lt_cv_deplibs_check_method=pass_all 8778 ;; 8779 8780hpux10.20* | hpux11*) 8781 lt_cv_file_magic_cmd=/usr/bin/file 8782 case $host_cpu in 8783 ia64*) 8784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8785 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8786 ;; 8787 hppa*64*) 8788 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]' 8789 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8790 ;; 8791 *) 8792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8793 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8794 ;; 8795 esac 8796 ;; 8797 8798interix[3-9]*) 8799 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8801 ;; 8802 8803irix5* | irix6* | nonstopux*) 8804 case $LD in 8805 *-32|*"-32 ") libmagic=32-bit;; 8806 *-n32|*"-n32 ") libmagic=N32;; 8807 *-64|*"-64 ") libmagic=64-bit;; 8808 *) libmagic=never-match;; 8809 esac 8810 lt_cv_deplibs_check_method=pass_all 8811 ;; 8812 8813# This must be glibc/ELF. 8814linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8815 lt_cv_deplibs_check_method=pass_all 8816 ;; 8817 8818netbsd*) 8819 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8821 else 8822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8823 fi 8824 ;; 8825 8826newos6*) 8827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8828 lt_cv_file_magic_cmd=/usr/bin/file 8829 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8830 ;; 8831 8832*nto* | *qnx*) 8833 lt_cv_deplibs_check_method=pass_all 8834 ;; 8835 8836openbsd* | bitrig*) 8837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8839 else 8840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8841 fi 8842 ;; 8843 8844osf3* | osf4* | osf5*) 8845 lt_cv_deplibs_check_method=pass_all 8846 ;; 8847 8848rdos*) 8849 lt_cv_deplibs_check_method=pass_all 8850 ;; 8851 8852solaris*) 8853 lt_cv_deplibs_check_method=pass_all 8854 ;; 8855 8856sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8857 lt_cv_deplibs_check_method=pass_all 8858 ;; 8859 8860sysv4 | sysv4.3*) 8861 case $host_vendor in 8862 motorola) 8863 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]' 8864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8865 ;; 8866 ncr) 8867 lt_cv_deplibs_check_method=pass_all 8868 ;; 8869 sequent) 8870 lt_cv_file_magic_cmd='/bin/file' 8871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8872 ;; 8873 sni) 8874 lt_cv_file_magic_cmd='/bin/file' 8875 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8876 lt_cv_file_magic_test_file=/lib/libc.so 8877 ;; 8878 siemens) 8879 lt_cv_deplibs_check_method=pass_all 8880 ;; 8881 pc) 8882 lt_cv_deplibs_check_method=pass_all 8883 ;; 8884 esac 8885 ;; 8886 8887tpf*) 8888 lt_cv_deplibs_check_method=pass_all 8889 ;; 8890os2*) 8891 lt_cv_deplibs_check_method=pass_all 8892 ;; 8893esac 8894 8895fi 8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8897$as_echo "$lt_cv_deplibs_check_method" >&6; } 8898 8899file_magic_glob= 8900want_nocaseglob=no 8901if test "$build" = "$host"; then 8902 case $host_os in 8903 mingw* | pw32*) 8904 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8905 want_nocaseglob=yes 8906 else 8907 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8908 fi 8909 ;; 8910 esac 8911fi 8912 8913file_magic_cmd=$lt_cv_file_magic_cmd 8914deplibs_check_method=$lt_cv_deplibs_check_method 8915test -z "$deplibs_check_method" && deplibs_check_method=unknown 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938if test -n "$ac_tool_prefix"; then 8939 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8940set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8942$as_echo_n "checking for $ac_word... " >&6; } 8943if ${ac_cv_prog_DLLTOOL+:} false; then : 8944 $as_echo_n "(cached) " >&6 8945else 8946 if test -n "$DLLTOOL"; then 8947 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8948else 8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8950for as_dir in $PATH 8951do 8952 IFS=$as_save_IFS 8953 test -z "$as_dir" && as_dir=. 8954 for ac_exec_ext in '' $ac_executable_extensions; do 8955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8956 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8958 break 2 8959 fi 8960done 8961 done 8962IFS=$as_save_IFS 8963 8964fi 8965fi 8966DLLTOOL=$ac_cv_prog_DLLTOOL 8967if test -n "$DLLTOOL"; then 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8969$as_echo "$DLLTOOL" >&6; } 8970else 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8972$as_echo "no" >&6; } 8973fi 8974 8975 8976fi 8977if test -z "$ac_cv_prog_DLLTOOL"; then 8978 ac_ct_DLLTOOL=$DLLTOOL 8979 # Extract the first word of "dlltool", so it can be a program name with args. 8980set dummy dlltool; ac_word=$2 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8982$as_echo_n "checking for $ac_word... " >&6; } 8983if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 if test -n "$ac_ct_DLLTOOL"; then 8987 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8988else 8989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8990for as_dir in $PATH 8991do 8992 IFS=$as_save_IFS 8993 test -z "$as_dir" && as_dir=. 8994 for ac_exec_ext in '' $ac_executable_extensions; do 8995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8996 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8998 break 2 8999 fi 9000done 9001 done 9002IFS=$as_save_IFS 9003 9004fi 9005fi 9006ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9007if test -n "$ac_ct_DLLTOOL"; then 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9009$as_echo "$ac_ct_DLLTOOL" >&6; } 9010else 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9012$as_echo "no" >&6; } 9013fi 9014 9015 if test "x$ac_ct_DLLTOOL" = x; then 9016 DLLTOOL="false" 9017 else 9018 case $cross_compiling:$ac_tool_warned in 9019yes:) 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9022ac_tool_warned=yes ;; 9023esac 9024 DLLTOOL=$ac_ct_DLLTOOL 9025 fi 9026else 9027 DLLTOOL="$ac_cv_prog_DLLTOOL" 9028fi 9029 9030test -z "$DLLTOOL" && DLLTOOL=dlltool 9031 9032 9033 9034 9035 9036 9037 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9039$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9040if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 lt_cv_sharedlib_from_linklib_cmd='unknown' 9044 9045case $host_os in 9046cygwin* | mingw* | pw32* | cegcc*) 9047 # two different shell functions defined in ltmain.sh; 9048 # decide which one to use based on capabilities of $DLLTOOL 9049 case `$DLLTOOL --help 2>&1` in 9050 *--identify-strict*) 9051 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9052 ;; 9053 *) 9054 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9055 ;; 9056 esac 9057 ;; 9058*) 9059 # fallback: assume linklib IS sharedlib 9060 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9061 ;; 9062esac 9063 9064fi 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9066$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9067sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9068test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9069 9070 9071 9072 9073 9074 9075 9076if test -n "$ac_tool_prefix"; then 9077 for ac_prog in ar 9078 do 9079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9080set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9082$as_echo_n "checking for $ac_word... " >&6; } 9083if ${ac_cv_prog_AR+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085else 9086 if test -n "$AR"; then 9087 ac_cv_prog_AR="$AR" # Let the user override the test. 9088else 9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9090for as_dir in $PATH 9091do 9092 IFS=$as_save_IFS 9093 test -z "$as_dir" && as_dir=. 9094 for ac_exec_ext in '' $ac_executable_extensions; do 9095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9096 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9098 break 2 9099 fi 9100done 9101 done 9102IFS=$as_save_IFS 9103 9104fi 9105fi 9106AR=$ac_cv_prog_AR 9107if test -n "$AR"; then 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9109$as_echo "$AR" >&6; } 9110else 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9112$as_echo "no" >&6; } 9113fi 9114 9115 9116 test -n "$AR" && break 9117 done 9118fi 9119if test -z "$AR"; then 9120 ac_ct_AR=$AR 9121 for ac_prog in ar 9122do 9123 # Extract the first word of "$ac_prog", so it can be a program name with args. 9124set dummy $ac_prog; ac_word=$2 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9126$as_echo_n "checking for $ac_word... " >&6; } 9127if ${ac_cv_prog_ac_ct_AR+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 if test -n "$ac_ct_AR"; then 9131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9132else 9133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9134for as_dir in $PATH 9135do 9136 IFS=$as_save_IFS 9137 test -z "$as_dir" && as_dir=. 9138 for ac_exec_ext in '' $ac_executable_extensions; do 9139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9140 ac_cv_prog_ac_ct_AR="$ac_prog" 9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9142 break 2 9143 fi 9144done 9145 done 9146IFS=$as_save_IFS 9147 9148fi 9149fi 9150ac_ct_AR=$ac_cv_prog_ac_ct_AR 9151if test -n "$ac_ct_AR"; then 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9153$as_echo "$ac_ct_AR" >&6; } 9154else 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9156$as_echo "no" >&6; } 9157fi 9158 9159 9160 test -n "$ac_ct_AR" && break 9161done 9162 9163 if test "x$ac_ct_AR" = x; then 9164 AR="false" 9165 else 9166 case $cross_compiling:$ac_tool_warned in 9167yes:) 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9170ac_tool_warned=yes ;; 9171esac 9172 AR=$ac_ct_AR 9173 fi 9174fi 9175 9176: ${AR=ar} 9177: ${AR_FLAGS=cru} 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9190$as_echo_n "checking for archiver @FILE support... " >&6; } 9191if ${lt_cv_ar_at_file+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 lt_cv_ar_at_file=no 9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9196/* end confdefs.h. */ 9197 9198int 9199main () 9200{ 9201 9202 ; 9203 return 0; 9204} 9205_ACEOF 9206if ac_fn_c_try_compile "$LINENO"; then : 9207 echo conftest.$ac_objext > conftest.lst 9208 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9210 (eval $lt_ar_try) 2>&5 9211 ac_status=$? 9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9213 test $ac_status = 0; } 9214 if test 0 -eq "$ac_status"; then 9215 # Ensure the archiver fails upon bogus file names. 9216 rm -f conftest.$ac_objext libconftest.a 9217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9218 (eval $lt_ar_try) 2>&5 9219 ac_status=$? 9220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9221 test $ac_status = 0; } 9222 if test 0 -ne "$ac_status"; then 9223 lt_cv_ar_at_file=@ 9224 fi 9225 fi 9226 rm -f conftest.* libconftest.a 9227 9228fi 9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9230 9231fi 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9233$as_echo "$lt_cv_ar_at_file" >&6; } 9234 9235if test no = "$lt_cv_ar_at_file"; then 9236 archiver_list_spec= 9237else 9238 archiver_list_spec=$lt_cv_ar_at_file 9239fi 9240 9241 9242 9243 9244 9245 9246 9247if test -n "$ac_tool_prefix"; then 9248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9249set dummy ${ac_tool_prefix}strip; ac_word=$2 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9251$as_echo_n "checking for $ac_word... " >&6; } 9252if ${ac_cv_prog_STRIP+:} false; then : 9253 $as_echo_n "(cached) " >&6 9254else 9255 if test -n "$STRIP"; then 9256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9257else 9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9259for as_dir in $PATH 9260do 9261 IFS=$as_save_IFS 9262 test -z "$as_dir" && as_dir=. 9263 for ac_exec_ext in '' $ac_executable_extensions; do 9264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9265 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9267 break 2 9268 fi 9269done 9270 done 9271IFS=$as_save_IFS 9272 9273fi 9274fi 9275STRIP=$ac_cv_prog_STRIP 9276if test -n "$STRIP"; then 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9278$as_echo "$STRIP" >&6; } 9279else 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9281$as_echo "no" >&6; } 9282fi 9283 9284 9285fi 9286if test -z "$ac_cv_prog_STRIP"; then 9287 ac_ct_STRIP=$STRIP 9288 # Extract the first word of "strip", so it can be a program name with args. 9289set dummy strip; ac_word=$2 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9291$as_echo_n "checking for $ac_word... " >&6; } 9292if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9293 $as_echo_n "(cached) " >&6 9294else 9295 if test -n "$ac_ct_STRIP"; then 9296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9297else 9298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9299for as_dir in $PATH 9300do 9301 IFS=$as_save_IFS 9302 test -z "$as_dir" && as_dir=. 9303 for ac_exec_ext in '' $ac_executable_extensions; do 9304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9305 ac_cv_prog_ac_ct_STRIP="strip" 9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9307 break 2 9308 fi 9309done 9310 done 9311IFS=$as_save_IFS 9312 9313fi 9314fi 9315ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9316if test -n "$ac_ct_STRIP"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9318$as_echo "$ac_ct_STRIP" >&6; } 9319else 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9321$as_echo "no" >&6; } 9322fi 9323 9324 if test "x$ac_ct_STRIP" = x; then 9325 STRIP=":" 9326 else 9327 case $cross_compiling:$ac_tool_warned in 9328yes:) 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9331ac_tool_warned=yes ;; 9332esac 9333 STRIP=$ac_ct_STRIP 9334 fi 9335else 9336 STRIP="$ac_cv_prog_STRIP" 9337fi 9338 9339test -z "$STRIP" && STRIP=: 9340 9341 9342 9343 9344 9345 9346if test -n "$ac_tool_prefix"; then 9347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9348set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9350$as_echo_n "checking for $ac_word... " >&6; } 9351if ${ac_cv_prog_RANLIB+:} false; then : 9352 $as_echo_n "(cached) " >&6 9353else 9354 if test -n "$RANLIB"; then 9355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9356else 9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9358for as_dir in $PATH 9359do 9360 IFS=$as_save_IFS 9361 test -z "$as_dir" && as_dir=. 9362 for ac_exec_ext in '' $ac_executable_extensions; do 9363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9366 break 2 9367 fi 9368done 9369 done 9370IFS=$as_save_IFS 9371 9372fi 9373fi 9374RANLIB=$ac_cv_prog_RANLIB 9375if test -n "$RANLIB"; then 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9377$as_echo "$RANLIB" >&6; } 9378else 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9380$as_echo "no" >&6; } 9381fi 9382 9383 9384fi 9385if test -z "$ac_cv_prog_RANLIB"; then 9386 ac_ct_RANLIB=$RANLIB 9387 # Extract the first word of "ranlib", so it can be a program name with args. 9388set dummy ranlib; ac_word=$2 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9390$as_echo_n "checking for $ac_word... " >&6; } 9391if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 if test -n "$ac_ct_RANLIB"; then 9395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9396else 9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9398for as_dir in $PATH 9399do 9400 IFS=$as_save_IFS 9401 test -z "$as_dir" && as_dir=. 9402 for ac_exec_ext in '' $ac_executable_extensions; do 9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9404 ac_cv_prog_ac_ct_RANLIB="ranlib" 9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9406 break 2 9407 fi 9408done 9409 done 9410IFS=$as_save_IFS 9411 9412fi 9413fi 9414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9415if test -n "$ac_ct_RANLIB"; then 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9417$as_echo "$ac_ct_RANLIB" >&6; } 9418else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420$as_echo "no" >&6; } 9421fi 9422 9423 if test "x$ac_ct_RANLIB" = x; then 9424 RANLIB=":" 9425 else 9426 case $cross_compiling:$ac_tool_warned in 9427yes:) 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9430ac_tool_warned=yes ;; 9431esac 9432 RANLIB=$ac_ct_RANLIB 9433 fi 9434else 9435 RANLIB="$ac_cv_prog_RANLIB" 9436fi 9437 9438test -z "$RANLIB" && RANLIB=: 9439 9440 9441 9442 9443 9444 9445# Determine commands to create old-style static archives. 9446old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9447old_postinstall_cmds='chmod 644 $oldlib' 9448old_postuninstall_cmds= 9449 9450if test -n "$RANLIB"; then 9451 case $host_os in 9452 bitrig* | openbsd*) 9453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9454 ;; 9455 *) 9456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9457 ;; 9458 esac 9459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9460fi 9461 9462case $host_os in 9463 darwin*) 9464 lock_old_archive_extraction=yes ;; 9465 *) 9466 lock_old_archive_extraction=no ;; 9467esac 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507# If no C compiler was specified, use CC. 9508LTCC=${LTCC-"$CC"} 9509 9510# If no C compiler flags were specified, use CFLAGS. 9511LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9512 9513# Allow CC to be a program name with arguments. 9514compiler=$CC 9515 9516 9517# Check for command to grab the raw symbol name followed by C symbol from nm. 9518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9519$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9520if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9521 $as_echo_n "(cached) " >&6 9522else 9523 9524# These are sane defaults that work on at least a few old systems. 9525# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9526 9527# Character class describing NM global symbol codes. 9528symcode='[BCDEGRST]' 9529 9530# Regexp to match symbols that can be accessed directly from C. 9531sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9532 9533# Define system-specific variables. 9534case $host_os in 9535aix*) 9536 symcode='[BCDT]' 9537 ;; 9538cygwin* | mingw* | pw32* | cegcc*) 9539 symcode='[ABCDGISTW]' 9540 ;; 9541hpux*) 9542 if test ia64 = "$host_cpu"; then 9543 symcode='[ABCDEGRST]' 9544 fi 9545 ;; 9546irix* | nonstopux*) 9547 symcode='[BCDEGRST]' 9548 ;; 9549osf*) 9550 symcode='[BCDEGQRST]' 9551 ;; 9552solaris*) 9553 symcode='[BDRT]' 9554 ;; 9555sco3.2v5*) 9556 symcode='[DT]' 9557 ;; 9558sysv4.2uw2*) 9559 symcode='[DT]' 9560 ;; 9561sysv5* | sco5v6* | unixware* | OpenUNIX*) 9562 symcode='[ABDT]' 9563 ;; 9564sysv4) 9565 symcode='[DFNSTU]' 9566 ;; 9567esac 9568 9569# If we're using GNU nm, then use its standard symbol codes. 9570case `$NM -V 2>&1` in 9571*GNU* | *'with BFD'*) 9572 symcode='[ABCDGIRSTW]' ;; 9573esac 9574 9575if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9576 # Gets list of data symbols to import. 9577 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9578 # Adjust the below global symbol transforms to fixup imported variables. 9579 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9580 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9581 lt_c_name_lib_hook="\ 9582 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9583 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9584else 9585 # Disable hooks by default. 9586 lt_cv_sys_global_symbol_to_import= 9587 lt_cdecl_hook= 9588 lt_c_name_hook= 9589 lt_c_name_lib_hook= 9590fi 9591 9592# Transform an extracted symbol line into a proper C declaration. 9593# Some systems (esp. on ia64) link data and code symbols differently, 9594# so use this general approach. 9595lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9596$lt_cdecl_hook\ 9597" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9598" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9599 9600# Transform an extracted symbol line into symbol name and symbol address 9601lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9602$lt_c_name_hook\ 9603" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9604" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9605 9606# Transform an extracted symbol line into symbol name with lib prefix and 9607# symbol address. 9608lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9609$lt_c_name_lib_hook\ 9610" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9611" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9612" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9613 9614# Handle CRLF in mingw tool chain 9615opt_cr= 9616case $build_os in 9617mingw*) 9618 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9619 ;; 9620esac 9621 9622# Try without a prefix underscore, then with it. 9623for ac_symprfx in "" "_"; do 9624 9625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9626 symxfrm="\\1 $ac_symprfx\\2 \\2" 9627 9628 # Write the raw and C identifiers. 9629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9630 # Fake it for dumpbin and say T for any non-static function, 9631 # D for any global variable and I for any imported variable. 9632 # Also find C++ and __fastcall symbols from MSVC++, 9633 # which start with @ or ?. 9634 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9635" {last_section=section; section=\$ 3};"\ 9636" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9637" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9638" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9639" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9640" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9641" \$ 0!~/External *\|/{next};"\ 9642" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9643" {if(hide[section]) next};"\ 9644" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9645" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9646" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9647" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9648" ' prfx=^$ac_symprfx" 9649 else 9650 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9651 fi 9652 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9653 9654 # Check to see that the pipe works correctly. 9655 pipe_works=no 9656 9657 rm -f conftest* 9658 cat > conftest.$ac_ext <<_LT_EOF 9659#ifdef __cplusplus 9660extern "C" { 9661#endif 9662char nm_test_var; 9663void nm_test_func(void); 9664void nm_test_func(void){} 9665#ifdef __cplusplus 9666} 9667#endif 9668int main(){nm_test_var='a';nm_test_func();return(0);} 9669_LT_EOF 9670 9671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9672 (eval $ac_compile) 2>&5 9673 ac_status=$? 9674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9675 test $ac_status = 0; }; then 9676 # Now try to grab the symbols. 9677 nlist=conftest.nm 9678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9679 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9680 ac_status=$? 9681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9682 test $ac_status = 0; } && test -s "$nlist"; then 9683 # Try sorting and uniquifying the output. 9684 if sort "$nlist" | uniq > "$nlist"T; then 9685 mv -f "$nlist"T "$nlist" 9686 else 9687 rm -f "$nlist"T 9688 fi 9689 9690 # Make sure that we snagged all the symbols we need. 9691 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9692 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9693 cat <<_LT_EOF > conftest.$ac_ext 9694/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9695#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9696/* DATA imports from DLLs on WIN32 can't be const, because runtime 9697 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9698# define LT_DLSYM_CONST 9699#elif defined __osf__ 9700/* This system does not cope well with relocations in const data. */ 9701# define LT_DLSYM_CONST 9702#else 9703# define LT_DLSYM_CONST const 9704#endif 9705 9706#ifdef __cplusplus 9707extern "C" { 9708#endif 9709 9710_LT_EOF 9711 # Now generate the symbol file. 9712 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9713 9714 cat <<_LT_EOF >> conftest.$ac_ext 9715 9716/* The mapping between symbol names and symbols. */ 9717LT_DLSYM_CONST struct { 9718 const char *name; 9719 void *address; 9720} 9721lt__PROGRAM__LTX_preloaded_symbols[] = 9722{ 9723 { "@PROGRAM@", (void *) 0 }, 9724_LT_EOF 9725 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9726 cat <<\_LT_EOF >> conftest.$ac_ext 9727 {0, (void *) 0} 9728}; 9729 9730/* This works around a problem in FreeBSD linker */ 9731#ifdef FREEBSD_WORKAROUND 9732static const void *lt_preloaded_setup() { 9733 return lt__PROGRAM__LTX_preloaded_symbols; 9734} 9735#endif 9736 9737#ifdef __cplusplus 9738} 9739#endif 9740_LT_EOF 9741 # Now try linking the two files. 9742 mv conftest.$ac_objext conftstm.$ac_objext 9743 lt_globsym_save_LIBS=$LIBS 9744 lt_globsym_save_CFLAGS=$CFLAGS 9745 LIBS=conftstm.$ac_objext 9746 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9748 (eval $ac_link) 2>&5 9749 ac_status=$? 9750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9751 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9752 pipe_works=yes 9753 fi 9754 LIBS=$lt_globsym_save_LIBS 9755 CFLAGS=$lt_globsym_save_CFLAGS 9756 else 9757 echo "cannot find nm_test_func in $nlist" >&5 9758 fi 9759 else 9760 echo "cannot find nm_test_var in $nlist" >&5 9761 fi 9762 else 9763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9764 fi 9765 else 9766 echo "$progname: failed program was:" >&5 9767 cat conftest.$ac_ext >&5 9768 fi 9769 rm -rf conftest* conftst* 9770 9771 # Do not use the global_symbol_pipe unless it works. 9772 if test yes = "$pipe_works"; then 9773 break 9774 else 9775 lt_cv_sys_global_symbol_pipe= 9776 fi 9777done 9778 9779fi 9780 9781if test -z "$lt_cv_sys_global_symbol_pipe"; then 9782 lt_cv_sys_global_symbol_to_cdecl= 9783fi 9784if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9786$as_echo "failed" >&6; } 9787else 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9789$as_echo "ok" >&6; } 9790fi 9791 9792# Response file support. 9793if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9794 nm_file_list_spec='@' 9795elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9796 nm_file_list_spec='@' 9797fi 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9836$as_echo_n "checking for sysroot... " >&6; } 9837 9838# Check whether --with-sysroot was given. 9839if test "${with_sysroot+set}" = set; then : 9840 withval=$with_sysroot; 9841else 9842 with_sysroot=no 9843fi 9844 9845 9846lt_sysroot= 9847case $with_sysroot in #( 9848 yes) 9849 if test yes = "$GCC"; then 9850 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9851 fi 9852 ;; #( 9853 /*) 9854 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9855 ;; #( 9856 no|'') 9857 ;; #( 9858 *) 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9860$as_echo "$with_sysroot" >&6; } 9861 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9862 ;; 9863esac 9864 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9866$as_echo "${lt_sysroot:-no}" >&6; } 9867 9868 9869 9870 9871 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9873$as_echo_n "checking for a working dd... " >&6; } 9874if ${ac_cv_path_lt_DD+:} false; then : 9875 $as_echo_n "(cached) " >&6 9876else 9877 printf 0123456789abcdef0123456789abcdef >conftest.i 9878cat conftest.i conftest.i >conftest2.i 9879: ${lt_DD:=$DD} 9880if test -z "$lt_DD"; then 9881 ac_path_lt_DD_found=false 9882 # Loop through the user's path and test for each of PROGNAME-LIST 9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9884for as_dir in $PATH 9885do 9886 IFS=$as_save_IFS 9887 test -z "$as_dir" && as_dir=. 9888 for ac_prog in dd; do 9889 for ac_exec_ext in '' $ac_executable_extensions; do 9890 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9891 as_fn_executable_p "$ac_path_lt_DD" || continue 9892if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9893 cmp -s conftest.i conftest.out \ 9894 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9895fi 9896 $ac_path_lt_DD_found && break 3 9897 done 9898 done 9899 done 9900IFS=$as_save_IFS 9901 if test -z "$ac_cv_path_lt_DD"; then 9902 : 9903 fi 9904else 9905 ac_cv_path_lt_DD=$lt_DD 9906fi 9907 9908rm -f conftest.i conftest2.i conftest.out 9909fi 9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9911$as_echo "$ac_cv_path_lt_DD" >&6; } 9912 9913 9914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9915$as_echo_n "checking how to truncate binary pipes... " >&6; } 9916if ${lt_cv_truncate_bin+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 printf 0123456789abcdef0123456789abcdef >conftest.i 9920cat conftest.i conftest.i >conftest2.i 9921lt_cv_truncate_bin= 9922if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9923 cmp -s conftest.i conftest.out \ 9924 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9925fi 9926rm -f conftest.i conftest2.i conftest.out 9927test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9928fi 9929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9930$as_echo "$lt_cv_truncate_bin" >&6; } 9931 9932 9933 9934 9935 9936 9937 9938# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9939func_cc_basename () 9940{ 9941 for cc_temp in $*""; do 9942 case $cc_temp in 9943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9945 \-*) ;; 9946 *) break;; 9947 esac 9948 done 9949 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9950} 9951 9952# Check whether --enable-libtool-lock was given. 9953if test "${enable_libtool_lock+set}" = set; then : 9954 enableval=$enable_libtool_lock; 9955fi 9956 9957test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9958 9959# Some flags need to be propagated to the compiler or linker for good 9960# libtool support. 9961case $host in 9962ia64-*-hpux*) 9963 # Find out what ABI is being produced by ac_compile, and set mode 9964 # options accordingly. 9965 echo 'int i;' > conftest.$ac_ext 9966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9967 (eval $ac_compile) 2>&5 9968 ac_status=$? 9969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9970 test $ac_status = 0; }; then 9971 case `/usr/bin/file conftest.$ac_objext` in 9972 *ELF-32*) 9973 HPUX_IA64_MODE=32 9974 ;; 9975 *ELF-64*) 9976 HPUX_IA64_MODE=64 9977 ;; 9978 esac 9979 fi 9980 rm -rf conftest* 9981 ;; 9982*-*-irix6*) 9983 # Find out what ABI is being produced by ac_compile, and set linker 9984 # options accordingly. 9985 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9987 (eval $ac_compile) 2>&5 9988 ac_status=$? 9989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9990 test $ac_status = 0; }; then 9991 if test yes = "$lt_cv_prog_gnu_ld"; then 9992 case `/usr/bin/file conftest.$ac_objext` in 9993 *32-bit*) 9994 LD="${LD-ld} -melf32bsmip" 9995 ;; 9996 *N32*) 9997 LD="${LD-ld} -melf32bmipn32" 9998 ;; 9999 *64-bit*) 10000 LD="${LD-ld} -melf64bmip" 10001 ;; 10002 esac 10003 else 10004 case `/usr/bin/file conftest.$ac_objext` in 10005 *32-bit*) 10006 LD="${LD-ld} -32" 10007 ;; 10008 *N32*) 10009 LD="${LD-ld} -n32" 10010 ;; 10011 *64-bit*) 10012 LD="${LD-ld} -64" 10013 ;; 10014 esac 10015 fi 10016 fi 10017 rm -rf conftest* 10018 ;; 10019 10020mips64*-*linux*) 10021 # Find out what ABI is being produced by ac_compile, and set linker 10022 # options accordingly. 10023 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10025 (eval $ac_compile) 2>&5 10026 ac_status=$? 10027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10028 test $ac_status = 0; }; then 10029 emul=elf 10030 case `/usr/bin/file conftest.$ac_objext` in 10031 *32-bit*) 10032 emul="${emul}32" 10033 ;; 10034 *64-bit*) 10035 emul="${emul}64" 10036 ;; 10037 esac 10038 case `/usr/bin/file conftest.$ac_objext` in 10039 *MSB*) 10040 emul="${emul}btsmip" 10041 ;; 10042 *LSB*) 10043 emul="${emul}ltsmip" 10044 ;; 10045 esac 10046 case `/usr/bin/file conftest.$ac_objext` in 10047 *N32*) 10048 emul="${emul}n32" 10049 ;; 10050 esac 10051 LD="${LD-ld} -m $emul" 10052 fi 10053 rm -rf conftest* 10054 ;; 10055 10056x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10057s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10058 # Find out what ABI is being produced by ac_compile, and set linker 10059 # options accordingly. Note that the listed cases only cover the 10060 # situations where additional linker options are needed (such as when 10061 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10062 # vice versa); the common cases where no linker options are needed do 10063 # not appear in the list. 10064 echo 'int i;' > conftest.$ac_ext 10065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10066 (eval $ac_compile) 2>&5 10067 ac_status=$? 10068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10069 test $ac_status = 0; }; then 10070 case `/usr/bin/file conftest.o` in 10071 *32-bit*) 10072 case $host in 10073 x86_64-*kfreebsd*-gnu) 10074 LD="${LD-ld} -m elf_i386_fbsd" 10075 ;; 10076 x86_64-*linux*) 10077 case `/usr/bin/file conftest.o` in 10078 *x86-64*) 10079 LD="${LD-ld} -m elf32_x86_64" 10080 ;; 10081 *) 10082 LD="${LD-ld} -m elf_i386" 10083 ;; 10084 esac 10085 ;; 10086 powerpc64le-*linux*) 10087 LD="${LD-ld} -m elf32lppclinux" 10088 ;; 10089 powerpc64-*linux*) 10090 LD="${LD-ld} -m elf32ppclinux" 10091 ;; 10092 s390x-*linux*) 10093 LD="${LD-ld} -m elf_s390" 10094 ;; 10095 sparc64-*linux*) 10096 LD="${LD-ld} -m elf32_sparc" 10097 ;; 10098 esac 10099 ;; 10100 *64-bit*) 10101 case $host in 10102 x86_64-*kfreebsd*-gnu) 10103 LD="${LD-ld} -m elf_x86_64_fbsd" 10104 ;; 10105 x86_64-*linux*) 10106 LD="${LD-ld} -m elf_x86_64" 10107 ;; 10108 powerpcle-*linux*|powerpc64le-*linux*) 10109 LD="${LD-ld} -m elf64lppc" 10110 ;; 10111 powerpc-*linux*|powerpc64-*linux*) 10112 LD="${LD-ld} -m elf64ppc" 10113 ;; 10114 s390*-*linux*|s390*-*tpf*) 10115 LD="${LD-ld} -m elf64_s390" 10116 ;; 10117 sparc*-*linux*) 10118 LD="${LD-ld} -m elf64_sparc" 10119 ;; 10120 esac 10121 ;; 10122 esac 10123 fi 10124 rm -rf conftest* 10125 ;; 10126 10127*-*-sco3.2v5*) 10128 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10129 SAVE_CFLAGS=$CFLAGS 10130 CFLAGS="$CFLAGS -belf" 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10132$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10133if ${lt_cv_cc_needs_belf+:} false; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 ac_ext=c 10137ac_cpp='$CPP $CPPFLAGS' 10138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10140ac_compiler_gnu=$ac_cv_c_compiler_gnu 10141 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144 10145int 10146main () 10147{ 10148 10149 ; 10150 return 0; 10151} 10152_ACEOF 10153if ac_fn_c_try_link "$LINENO"; then : 10154 lt_cv_cc_needs_belf=yes 10155else 10156 lt_cv_cc_needs_belf=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext \ 10159 conftest$ac_exeext conftest.$ac_ext 10160 ac_ext=c 10161ac_cpp='$CPP $CPPFLAGS' 10162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10164ac_compiler_gnu=$ac_cv_c_compiler_gnu 10165 10166fi 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10168$as_echo "$lt_cv_cc_needs_belf" >&6; } 10169 if test yes != "$lt_cv_cc_needs_belf"; then 10170 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10171 CFLAGS=$SAVE_CFLAGS 10172 fi 10173 ;; 10174*-*solaris*) 10175 # Find out what ABI is being produced by ac_compile, and set linker 10176 # options accordingly. 10177 echo 'int i;' > conftest.$ac_ext 10178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10179 (eval $ac_compile) 2>&5 10180 ac_status=$? 10181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10182 test $ac_status = 0; }; then 10183 case `/usr/bin/file conftest.o` in 10184 *64-bit*) 10185 case $lt_cv_prog_gnu_ld in 10186 yes*) 10187 case $host in 10188 i?86-*-solaris*|x86_64-*-solaris*) 10189 LD="${LD-ld} -m elf_x86_64" 10190 ;; 10191 sparc*-*-solaris*) 10192 LD="${LD-ld} -m elf64_sparc" 10193 ;; 10194 esac 10195 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10196 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10197 LD=${LD-ld}_sol2 10198 fi 10199 ;; 10200 *) 10201 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10202 LD="${LD-ld} -64" 10203 fi 10204 ;; 10205 esac 10206 ;; 10207 esac 10208 fi 10209 rm -rf conftest* 10210 ;; 10211esac 10212 10213need_locks=$enable_libtool_lock 10214 10215if test -n "$ac_tool_prefix"; then 10216 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10217set dummy ${ac_tool_prefix}mt; ac_word=$2 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10219$as_echo_n "checking for $ac_word... " >&6; } 10220if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 if test -n "$MANIFEST_TOOL"; then 10224 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10225else 10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10227for as_dir in $PATH 10228do 10229 IFS=$as_save_IFS 10230 test -z "$as_dir" && as_dir=. 10231 for ac_exec_ext in '' $ac_executable_extensions; do 10232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10233 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10235 break 2 10236 fi 10237done 10238 done 10239IFS=$as_save_IFS 10240 10241fi 10242fi 10243MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10244if test -n "$MANIFEST_TOOL"; then 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10246$as_echo "$MANIFEST_TOOL" >&6; } 10247else 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10249$as_echo "no" >&6; } 10250fi 10251 10252 10253fi 10254if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10255 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10256 # Extract the first word of "mt", so it can be a program name with args. 10257set dummy mt; ac_word=$2 10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10259$as_echo_n "checking for $ac_word... " >&6; } 10260if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10261 $as_echo_n "(cached) " >&6 10262else 10263 if test -n "$ac_ct_MANIFEST_TOOL"; then 10264 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10265else 10266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10267for as_dir in $PATH 10268do 10269 IFS=$as_save_IFS 10270 test -z "$as_dir" && as_dir=. 10271 for ac_exec_ext in '' $ac_executable_extensions; do 10272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10273 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10275 break 2 10276 fi 10277done 10278 done 10279IFS=$as_save_IFS 10280 10281fi 10282fi 10283ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10284if test -n "$ac_ct_MANIFEST_TOOL"; then 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10286$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10287else 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10289$as_echo "no" >&6; } 10290fi 10291 10292 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10293 MANIFEST_TOOL=":" 10294 else 10295 case $cross_compiling:$ac_tool_warned in 10296yes:) 10297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10299ac_tool_warned=yes ;; 10300esac 10301 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10302 fi 10303else 10304 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10305fi 10306 10307test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10309$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10310if ${lt_cv_path_mainfest_tool+:} false; then : 10311 $as_echo_n "(cached) " >&6 10312else 10313 lt_cv_path_mainfest_tool=no 10314 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10315 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10316 cat conftest.err >&5 10317 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10318 lt_cv_path_mainfest_tool=yes 10319 fi 10320 rm -f conftest* 10321fi 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10323$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10324if test yes != "$lt_cv_path_mainfest_tool"; then 10325 MANIFEST_TOOL=: 10326fi 10327 10328 10329 10330 10331 10332 10333 case $host_os in 10334 rhapsody* | darwin*) 10335 if test -n "$ac_tool_prefix"; then 10336 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10337set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10339$as_echo_n "checking for $ac_word... " >&6; } 10340if ${ac_cv_prog_DSYMUTIL+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 if test -n "$DSYMUTIL"; then 10344 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10345else 10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10347for as_dir in $PATH 10348do 10349 IFS=$as_save_IFS 10350 test -z "$as_dir" && as_dir=. 10351 for ac_exec_ext in '' $ac_executable_extensions; do 10352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10353 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10355 break 2 10356 fi 10357done 10358 done 10359IFS=$as_save_IFS 10360 10361fi 10362fi 10363DSYMUTIL=$ac_cv_prog_DSYMUTIL 10364if test -n "$DSYMUTIL"; then 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10366$as_echo "$DSYMUTIL" >&6; } 10367else 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10369$as_echo "no" >&6; } 10370fi 10371 10372 10373fi 10374if test -z "$ac_cv_prog_DSYMUTIL"; then 10375 ac_ct_DSYMUTIL=$DSYMUTIL 10376 # Extract the first word of "dsymutil", so it can be a program name with args. 10377set dummy dsymutil; ac_word=$2 10378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10379$as_echo_n "checking for $ac_word... " >&6; } 10380if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10381 $as_echo_n "(cached) " >&6 10382else 10383 if test -n "$ac_ct_DSYMUTIL"; then 10384 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10385else 10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10387for as_dir in $PATH 10388do 10389 IFS=$as_save_IFS 10390 test -z "$as_dir" && as_dir=. 10391 for ac_exec_ext in '' $ac_executable_extensions; do 10392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10393 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10395 break 2 10396 fi 10397done 10398 done 10399IFS=$as_save_IFS 10400 10401fi 10402fi 10403ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10404if test -n "$ac_ct_DSYMUTIL"; then 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10406$as_echo "$ac_ct_DSYMUTIL" >&6; } 10407else 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10409$as_echo "no" >&6; } 10410fi 10411 10412 if test "x$ac_ct_DSYMUTIL" = x; then 10413 DSYMUTIL=":" 10414 else 10415 case $cross_compiling:$ac_tool_warned in 10416yes:) 10417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10419ac_tool_warned=yes ;; 10420esac 10421 DSYMUTIL=$ac_ct_DSYMUTIL 10422 fi 10423else 10424 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10425fi 10426 10427 if test -n "$ac_tool_prefix"; then 10428 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10429set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10431$as_echo_n "checking for $ac_word... " >&6; } 10432if ${ac_cv_prog_NMEDIT+:} false; then : 10433 $as_echo_n "(cached) " >&6 10434else 10435 if test -n "$NMEDIT"; then 10436 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10437else 10438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10439for as_dir in $PATH 10440do 10441 IFS=$as_save_IFS 10442 test -z "$as_dir" && as_dir=. 10443 for ac_exec_ext in '' $ac_executable_extensions; do 10444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10445 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10447 break 2 10448 fi 10449done 10450 done 10451IFS=$as_save_IFS 10452 10453fi 10454fi 10455NMEDIT=$ac_cv_prog_NMEDIT 10456if test -n "$NMEDIT"; then 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10458$as_echo "$NMEDIT" >&6; } 10459else 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10461$as_echo "no" >&6; } 10462fi 10463 10464 10465fi 10466if test -z "$ac_cv_prog_NMEDIT"; then 10467 ac_ct_NMEDIT=$NMEDIT 10468 # Extract the first word of "nmedit", so it can be a program name with args. 10469set dummy nmedit; ac_word=$2 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10471$as_echo_n "checking for $ac_word... " >&6; } 10472if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 if test -n "$ac_ct_NMEDIT"; then 10476 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10477else 10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10479for as_dir in $PATH 10480do 10481 IFS=$as_save_IFS 10482 test -z "$as_dir" && as_dir=. 10483 for ac_exec_ext in '' $ac_executable_extensions; do 10484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10485 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10487 break 2 10488 fi 10489done 10490 done 10491IFS=$as_save_IFS 10492 10493fi 10494fi 10495ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10496if test -n "$ac_ct_NMEDIT"; then 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10498$as_echo "$ac_ct_NMEDIT" >&6; } 10499else 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10501$as_echo "no" >&6; } 10502fi 10503 10504 if test "x$ac_ct_NMEDIT" = x; then 10505 NMEDIT=":" 10506 else 10507 case $cross_compiling:$ac_tool_warned in 10508yes:) 10509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10511ac_tool_warned=yes ;; 10512esac 10513 NMEDIT=$ac_ct_NMEDIT 10514 fi 10515else 10516 NMEDIT="$ac_cv_prog_NMEDIT" 10517fi 10518 10519 if test -n "$ac_tool_prefix"; then 10520 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10521set dummy ${ac_tool_prefix}lipo; ac_word=$2 10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10523$as_echo_n "checking for $ac_word... " >&6; } 10524if ${ac_cv_prog_LIPO+:} false; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 if test -n "$LIPO"; then 10528 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10529else 10530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10531for as_dir in $PATH 10532do 10533 IFS=$as_save_IFS 10534 test -z "$as_dir" && as_dir=. 10535 for ac_exec_ext in '' $ac_executable_extensions; do 10536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10537 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10539 break 2 10540 fi 10541done 10542 done 10543IFS=$as_save_IFS 10544 10545fi 10546fi 10547LIPO=$ac_cv_prog_LIPO 10548if test -n "$LIPO"; then 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10550$as_echo "$LIPO" >&6; } 10551else 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10553$as_echo "no" >&6; } 10554fi 10555 10556 10557fi 10558if test -z "$ac_cv_prog_LIPO"; then 10559 ac_ct_LIPO=$LIPO 10560 # Extract the first word of "lipo", so it can be a program name with args. 10561set dummy lipo; ac_word=$2 10562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10563$as_echo_n "checking for $ac_word... " >&6; } 10564if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10565 $as_echo_n "(cached) " >&6 10566else 10567 if test -n "$ac_ct_LIPO"; then 10568 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10569else 10570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10571for as_dir in $PATH 10572do 10573 IFS=$as_save_IFS 10574 test -z "$as_dir" && as_dir=. 10575 for ac_exec_ext in '' $ac_executable_extensions; do 10576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10577 ac_cv_prog_ac_ct_LIPO="lipo" 10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10579 break 2 10580 fi 10581done 10582 done 10583IFS=$as_save_IFS 10584 10585fi 10586fi 10587ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10588if test -n "$ac_ct_LIPO"; then 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10590$as_echo "$ac_ct_LIPO" >&6; } 10591else 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10593$as_echo "no" >&6; } 10594fi 10595 10596 if test "x$ac_ct_LIPO" = x; then 10597 LIPO=":" 10598 else 10599 case $cross_compiling:$ac_tool_warned in 10600yes:) 10601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10603ac_tool_warned=yes ;; 10604esac 10605 LIPO=$ac_ct_LIPO 10606 fi 10607else 10608 LIPO="$ac_cv_prog_LIPO" 10609fi 10610 10611 if test -n "$ac_tool_prefix"; then 10612 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10613set dummy ${ac_tool_prefix}otool; ac_word=$2 10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10615$as_echo_n "checking for $ac_word... " >&6; } 10616if ${ac_cv_prog_OTOOL+:} false; then : 10617 $as_echo_n "(cached) " >&6 10618else 10619 if test -n "$OTOOL"; then 10620 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10621else 10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10623for as_dir in $PATH 10624do 10625 IFS=$as_save_IFS 10626 test -z "$as_dir" && as_dir=. 10627 for ac_exec_ext in '' $ac_executable_extensions; do 10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10629 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10631 break 2 10632 fi 10633done 10634 done 10635IFS=$as_save_IFS 10636 10637fi 10638fi 10639OTOOL=$ac_cv_prog_OTOOL 10640if test -n "$OTOOL"; then 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10642$as_echo "$OTOOL" >&6; } 10643else 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10645$as_echo "no" >&6; } 10646fi 10647 10648 10649fi 10650if test -z "$ac_cv_prog_OTOOL"; then 10651 ac_ct_OTOOL=$OTOOL 10652 # Extract the first word of "otool", so it can be a program name with args. 10653set dummy otool; ac_word=$2 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10655$as_echo_n "checking for $ac_word... " >&6; } 10656if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10657 $as_echo_n "(cached) " >&6 10658else 10659 if test -n "$ac_ct_OTOOL"; then 10660 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10661else 10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10663for as_dir in $PATH 10664do 10665 IFS=$as_save_IFS 10666 test -z "$as_dir" && as_dir=. 10667 for ac_exec_ext in '' $ac_executable_extensions; do 10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10669 ac_cv_prog_ac_ct_OTOOL="otool" 10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10671 break 2 10672 fi 10673done 10674 done 10675IFS=$as_save_IFS 10676 10677fi 10678fi 10679ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10680if test -n "$ac_ct_OTOOL"; then 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10682$as_echo "$ac_ct_OTOOL" >&6; } 10683else 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10685$as_echo "no" >&6; } 10686fi 10687 10688 if test "x$ac_ct_OTOOL" = x; then 10689 OTOOL=":" 10690 else 10691 case $cross_compiling:$ac_tool_warned in 10692yes:) 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10695ac_tool_warned=yes ;; 10696esac 10697 OTOOL=$ac_ct_OTOOL 10698 fi 10699else 10700 OTOOL="$ac_cv_prog_OTOOL" 10701fi 10702 10703 if test -n "$ac_tool_prefix"; then 10704 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10705set dummy ${ac_tool_prefix}otool64; ac_word=$2 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10707$as_echo_n "checking for $ac_word... " >&6; } 10708if ${ac_cv_prog_OTOOL64+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710else 10711 if test -n "$OTOOL64"; then 10712 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10713else 10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10715for as_dir in $PATH 10716do 10717 IFS=$as_save_IFS 10718 test -z "$as_dir" && as_dir=. 10719 for ac_exec_ext in '' $ac_executable_extensions; do 10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10721 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10723 break 2 10724 fi 10725done 10726 done 10727IFS=$as_save_IFS 10728 10729fi 10730fi 10731OTOOL64=$ac_cv_prog_OTOOL64 10732if test -n "$OTOOL64"; then 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10734$as_echo "$OTOOL64" >&6; } 10735else 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10737$as_echo "no" >&6; } 10738fi 10739 10740 10741fi 10742if test -z "$ac_cv_prog_OTOOL64"; then 10743 ac_ct_OTOOL64=$OTOOL64 10744 # Extract the first word of "otool64", so it can be a program name with args. 10745set dummy otool64; ac_word=$2 10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10747$as_echo_n "checking for $ac_word... " >&6; } 10748if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10749 $as_echo_n "(cached) " >&6 10750else 10751 if test -n "$ac_ct_OTOOL64"; then 10752 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10753else 10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10755for as_dir in $PATH 10756do 10757 IFS=$as_save_IFS 10758 test -z "$as_dir" && as_dir=. 10759 for ac_exec_ext in '' $ac_executable_extensions; do 10760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10761 ac_cv_prog_ac_ct_OTOOL64="otool64" 10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10763 break 2 10764 fi 10765done 10766 done 10767IFS=$as_save_IFS 10768 10769fi 10770fi 10771ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10772if test -n "$ac_ct_OTOOL64"; then 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10774$as_echo "$ac_ct_OTOOL64" >&6; } 10775else 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10777$as_echo "no" >&6; } 10778fi 10779 10780 if test "x$ac_ct_OTOOL64" = x; then 10781 OTOOL64=":" 10782 else 10783 case $cross_compiling:$ac_tool_warned in 10784yes:) 10785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10787ac_tool_warned=yes ;; 10788esac 10789 OTOOL64=$ac_ct_OTOOL64 10790 fi 10791else 10792 OTOOL64="$ac_cv_prog_OTOOL64" 10793fi 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10822$as_echo_n "checking for -single_module linker flag... " >&6; } 10823if ${lt_cv_apple_cc_single_mod+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 lt_cv_apple_cc_single_mod=no 10827 if test -z "$LT_MULTI_MODULE"; then 10828 # By default we will add the -single_module flag. You can override 10829 # by either setting the environment variable LT_MULTI_MODULE 10830 # non-empty at configure time, or by adding -multi_module to the 10831 # link flags. 10832 rm -rf libconftest.dylib* 10833 echo "int foo(void){return 1;}" > conftest.c 10834 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10835-dynamiclib -Wl,-single_module conftest.c" >&5 10836 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10837 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10838 _lt_result=$? 10839 # If there is a non-empty error log, and "single_module" 10840 # appears in it, assume the flag caused a linker warning 10841 if test -s conftest.err && $GREP single_module conftest.err; then 10842 cat conftest.err >&5 10843 # Otherwise, if the output was created with a 0 exit code from 10844 # the compiler, it worked. 10845 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10846 lt_cv_apple_cc_single_mod=yes 10847 else 10848 cat conftest.err >&5 10849 fi 10850 rm -rf libconftest.dylib* 10851 rm -f conftest.* 10852 fi 10853fi 10854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10855$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10856 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10858$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10859if ${lt_cv_ld_exported_symbols_list+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861else 10862 lt_cv_ld_exported_symbols_list=no 10863 save_LDFLAGS=$LDFLAGS 10864 echo "_main" > conftest.sym 10865 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10867/* end confdefs.h. */ 10868 10869int 10870main () 10871{ 10872 10873 ; 10874 return 0; 10875} 10876_ACEOF 10877if ac_fn_c_try_link "$LINENO"; then : 10878 lt_cv_ld_exported_symbols_list=yes 10879else 10880 lt_cv_ld_exported_symbols_list=no 10881fi 10882rm -f core conftest.err conftest.$ac_objext \ 10883 conftest$ac_exeext conftest.$ac_ext 10884 LDFLAGS=$save_LDFLAGS 10885 10886fi 10887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10888$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10889 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10891$as_echo_n "checking for -force_load linker flag... " >&6; } 10892if ${lt_cv_ld_force_load+:} false; then : 10893 $as_echo_n "(cached) " >&6 10894else 10895 lt_cv_ld_force_load=no 10896 cat > conftest.c << _LT_EOF 10897int forced_loaded() { return 2;} 10898_LT_EOF 10899 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10900 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10901 echo "$AR cru libconftest.a conftest.o" >&5 10902 $AR cru libconftest.a conftest.o 2>&5 10903 echo "$RANLIB libconftest.a" >&5 10904 $RANLIB libconftest.a 2>&5 10905 cat > conftest.c << _LT_EOF 10906int main() { return 0;} 10907_LT_EOF 10908 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10909 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10910 _lt_result=$? 10911 if test -s conftest.err && $GREP force_load conftest.err; then 10912 cat conftest.err >&5 10913 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10914 lt_cv_ld_force_load=yes 10915 else 10916 cat conftest.err >&5 10917 fi 10918 rm -f conftest.err libconftest.a conftest conftest.c 10919 rm -rf conftest.dSYM 10920 10921fi 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10923$as_echo "$lt_cv_ld_force_load" >&6; } 10924 case $host_os in 10925 rhapsody* | darwin1.[012]) 10926 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10927 darwin1.*) 10928 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10929 darwin*) # darwin 5.x on 10930 # if running on 10.5 or later, the deployment target defaults 10931 # to the OS version, if on x86, and 10.4, the deployment 10932 # target defaults to 10.4. Don't you love it? 10933 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10934 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10935 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10936 10.[012][,.]*) 10937 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10938 10.*) 10939 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10940 esac 10941 ;; 10942 esac 10943 if test yes = "$lt_cv_apple_cc_single_mod"; then 10944 _lt_dar_single_mod='$single_module' 10945 fi 10946 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10947 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10948 else 10949 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10950 fi 10951 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10952 _lt_dsymutil='~$DSYMUTIL $lib || :' 10953 else 10954 _lt_dsymutil= 10955 fi 10956 ;; 10957 esac 10958 10959# func_munge_path_list VARIABLE PATH 10960# ----------------------------------- 10961# VARIABLE is name of variable containing _space_ separated list of 10962# directories to be munged by the contents of PATH, which is string 10963# having a format: 10964# "DIR[:DIR]:" 10965# string "DIR[ DIR]" will be prepended to VARIABLE 10966# ":DIR[:DIR]" 10967# string "DIR[ DIR]" will be appended to VARIABLE 10968# "DIRP[:DIRP]::[DIRA:]DIRA" 10969# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10970# "DIRA[ DIRA]" will be appended to VARIABLE 10971# "DIR[:DIR]" 10972# VARIABLE will be replaced by "DIR[ DIR]" 10973func_munge_path_list () 10974{ 10975 case x$2 in 10976 x) 10977 ;; 10978 *:) 10979 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10980 ;; 10981 x:*) 10982 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10983 ;; 10984 *::*) 10985 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10986 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10987 ;; 10988 *) 10989 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10990 ;; 10991 esac 10992} 10993 10994for ac_header in dlfcn.h 10995do : 10996 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10997" 10998if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10999 cat >>confdefs.h <<_ACEOF 11000#define HAVE_DLFCN_H 1 11001_ACEOF 11002 11003fi 11004 11005done 11006 11007 11008 11009func_stripname_cnf () 11010{ 11011 case $2 in 11012 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 11013 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 11014 esac 11015} # func_stripname_cnf 11016 11017 11018 11019 11020 11021# Set options 11022enable_dlopen=yes 11023enable_win32_dll=yes 11024 11025case $host in 11026*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11027 if test -n "$ac_tool_prefix"; then 11028 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 11029set dummy ${ac_tool_prefix}as; ac_word=$2 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11031$as_echo_n "checking for $ac_word... " >&6; } 11032if ${ac_cv_prog_AS+:} false; then : 11033 $as_echo_n "(cached) " >&6 11034else 11035 if test -n "$AS"; then 11036 ac_cv_prog_AS="$AS" # Let the user override the test. 11037else 11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11039for as_dir in $PATH 11040do 11041 IFS=$as_save_IFS 11042 test -z "$as_dir" && as_dir=. 11043 for ac_exec_ext in '' $ac_executable_extensions; do 11044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11045 ac_cv_prog_AS="${ac_tool_prefix}as" 11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11047 break 2 11048 fi 11049done 11050 done 11051IFS=$as_save_IFS 11052 11053fi 11054fi 11055AS=$ac_cv_prog_AS 11056if test -n "$AS"; then 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 11058$as_echo "$AS" >&6; } 11059else 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11061$as_echo "no" >&6; } 11062fi 11063 11064 11065fi 11066if test -z "$ac_cv_prog_AS"; then 11067 ac_ct_AS=$AS 11068 # Extract the first word of "as", so it can be a program name with args. 11069set dummy as; ac_word=$2 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11071$as_echo_n "checking for $ac_word... " >&6; } 11072if ${ac_cv_prog_ac_ct_AS+:} false; then : 11073 $as_echo_n "(cached) " >&6 11074else 11075 if test -n "$ac_ct_AS"; then 11076 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 11077else 11078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11079for as_dir in $PATH 11080do 11081 IFS=$as_save_IFS 11082 test -z "$as_dir" && as_dir=. 11083 for ac_exec_ext in '' $ac_executable_extensions; do 11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11085 ac_cv_prog_ac_ct_AS="as" 11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11087 break 2 11088 fi 11089done 11090 done 11091IFS=$as_save_IFS 11092 11093fi 11094fi 11095ac_ct_AS=$ac_cv_prog_ac_ct_AS 11096if test -n "$ac_ct_AS"; then 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 11098$as_echo "$ac_ct_AS" >&6; } 11099else 11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11101$as_echo "no" >&6; } 11102fi 11103 11104 if test "x$ac_ct_AS" = x; then 11105 AS="false" 11106 else 11107 case $cross_compiling:$ac_tool_warned in 11108yes:) 11109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11111ac_tool_warned=yes ;; 11112esac 11113 AS=$ac_ct_AS 11114 fi 11115else 11116 AS="$ac_cv_prog_AS" 11117fi 11118 11119 if test -n "$ac_tool_prefix"; then 11120 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11121set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11123$as_echo_n "checking for $ac_word... " >&6; } 11124if ${ac_cv_prog_DLLTOOL+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 if test -n "$DLLTOOL"; then 11128 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11129else 11130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11131for as_dir in $PATH 11132do 11133 IFS=$as_save_IFS 11134 test -z "$as_dir" && as_dir=. 11135 for ac_exec_ext in '' $ac_executable_extensions; do 11136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11137 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11139 break 2 11140 fi 11141done 11142 done 11143IFS=$as_save_IFS 11144 11145fi 11146fi 11147DLLTOOL=$ac_cv_prog_DLLTOOL 11148if test -n "$DLLTOOL"; then 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11150$as_echo "$DLLTOOL" >&6; } 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154fi 11155 11156 11157fi 11158if test -z "$ac_cv_prog_DLLTOOL"; then 11159 ac_ct_DLLTOOL=$DLLTOOL 11160 # Extract the first word of "dlltool", so it can be a program name with args. 11161set dummy dlltool; ac_word=$2 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11163$as_echo_n "checking for $ac_word... " >&6; } 11164if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11165 $as_echo_n "(cached) " >&6 11166else 11167 if test -n "$ac_ct_DLLTOOL"; then 11168 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11169else 11170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11171for as_dir in $PATH 11172do 11173 IFS=$as_save_IFS 11174 test -z "$as_dir" && as_dir=. 11175 for ac_exec_ext in '' $ac_executable_extensions; do 11176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11177 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11179 break 2 11180 fi 11181done 11182 done 11183IFS=$as_save_IFS 11184 11185fi 11186fi 11187ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11188if test -n "$ac_ct_DLLTOOL"; then 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11190$as_echo "$ac_ct_DLLTOOL" >&6; } 11191else 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11193$as_echo "no" >&6; } 11194fi 11195 11196 if test "x$ac_ct_DLLTOOL" = x; then 11197 DLLTOOL="false" 11198 else 11199 case $cross_compiling:$ac_tool_warned in 11200yes:) 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11203ac_tool_warned=yes ;; 11204esac 11205 DLLTOOL=$ac_ct_DLLTOOL 11206 fi 11207else 11208 DLLTOOL="$ac_cv_prog_DLLTOOL" 11209fi 11210 11211 if test -n "$ac_tool_prefix"; then 11212 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11213set dummy ${ac_tool_prefix}objdump; ac_word=$2 11214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11215$as_echo_n "checking for $ac_word... " >&6; } 11216if ${ac_cv_prog_OBJDUMP+:} false; then : 11217 $as_echo_n "(cached) " >&6 11218else 11219 if test -n "$OBJDUMP"; then 11220 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11221else 11222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11223for as_dir in $PATH 11224do 11225 IFS=$as_save_IFS 11226 test -z "$as_dir" && as_dir=. 11227 for ac_exec_ext in '' $ac_executable_extensions; do 11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11229 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11231 break 2 11232 fi 11233done 11234 done 11235IFS=$as_save_IFS 11236 11237fi 11238fi 11239OBJDUMP=$ac_cv_prog_OBJDUMP 11240if test -n "$OBJDUMP"; then 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11242$as_echo "$OBJDUMP" >&6; } 11243else 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11245$as_echo "no" >&6; } 11246fi 11247 11248 11249fi 11250if test -z "$ac_cv_prog_OBJDUMP"; then 11251 ac_ct_OBJDUMP=$OBJDUMP 11252 # Extract the first word of "objdump", so it can be a program name with args. 11253set dummy objdump; ac_word=$2 11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11255$as_echo_n "checking for $ac_word... " >&6; } 11256if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11257 $as_echo_n "(cached) " >&6 11258else 11259 if test -n "$ac_ct_OBJDUMP"; then 11260 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11261else 11262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11263for as_dir in $PATH 11264do 11265 IFS=$as_save_IFS 11266 test -z "$as_dir" && as_dir=. 11267 for ac_exec_ext in '' $ac_executable_extensions; do 11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11269 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11271 break 2 11272 fi 11273done 11274 done 11275IFS=$as_save_IFS 11276 11277fi 11278fi 11279ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11280if test -n "$ac_ct_OBJDUMP"; then 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11282$as_echo "$ac_ct_OBJDUMP" >&6; } 11283else 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11285$as_echo "no" >&6; } 11286fi 11287 11288 if test "x$ac_ct_OBJDUMP" = x; then 11289 OBJDUMP="false" 11290 else 11291 case $cross_compiling:$ac_tool_warned in 11292yes:) 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11295ac_tool_warned=yes ;; 11296esac 11297 OBJDUMP=$ac_ct_OBJDUMP 11298 fi 11299else 11300 OBJDUMP="$ac_cv_prog_OBJDUMP" 11301fi 11302 11303 ;; 11304esac 11305 11306test -z "$AS" && AS=as 11307 11308 11309 11310 11311 11312test -z "$DLLTOOL" && DLLTOOL=dlltool 11313 11314 11315 11316 11317 11318test -z "$OBJDUMP" && OBJDUMP=objdump 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 # Check whether --enable-shared was given. 11329if test "${enable_shared+set}" = set; then : 11330 enableval=$enable_shared; p=${PACKAGE-default} 11331 case $enableval in 11332 yes) enable_shared=yes ;; 11333 no) enable_shared=no ;; 11334 *) 11335 enable_shared=no 11336 # Look at the argument we got. We use all the common list separators. 11337 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11338 for pkg in $enableval; do 11339 IFS=$lt_save_ifs 11340 if test "X$pkg" = "X$p"; then 11341 enable_shared=yes 11342 fi 11343 done 11344 IFS=$lt_save_ifs 11345 ;; 11346 esac 11347else 11348 enable_shared=yes 11349fi 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 # Check whether --enable-static was given. 11360if test "${enable_static+set}" = set; then : 11361 enableval=$enable_static; p=${PACKAGE-default} 11362 case $enableval in 11363 yes) enable_static=yes ;; 11364 no) enable_static=no ;; 11365 *) 11366 enable_static=no 11367 # Look at the argument we got. We use all the common list separators. 11368 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11369 for pkg in $enableval; do 11370 IFS=$lt_save_ifs 11371 if test "X$pkg" = "X$p"; then 11372 enable_static=yes 11373 fi 11374 done 11375 IFS=$lt_save_ifs 11376 ;; 11377 esac 11378else 11379 enable_static=yes 11380fi 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391# Check whether --with-pic was given. 11392if test "${with_pic+set}" = set; then : 11393 withval=$with_pic; lt_p=${PACKAGE-default} 11394 case $withval in 11395 yes|no) pic_mode=$withval ;; 11396 *) 11397 pic_mode=default 11398 # Look at the argument we got. We use all the common list separators. 11399 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11400 for lt_pkg in $withval; do 11401 IFS=$lt_save_ifs 11402 if test "X$lt_pkg" = "X$lt_p"; then 11403 pic_mode=yes 11404 fi 11405 done 11406 IFS=$lt_save_ifs 11407 ;; 11408 esac 11409else 11410 pic_mode=default 11411fi 11412 11413 11414 11415 11416 11417 11418 11419 11420 # Check whether --enable-fast-install was given. 11421if test "${enable_fast_install+set}" = set; then : 11422 enableval=$enable_fast_install; p=${PACKAGE-default} 11423 case $enableval in 11424 yes) enable_fast_install=yes ;; 11425 no) enable_fast_install=no ;; 11426 *) 11427 enable_fast_install=no 11428 # Look at the argument we got. We use all the common list separators. 11429 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11430 for pkg in $enableval; do 11431 IFS=$lt_save_ifs 11432 if test "X$pkg" = "X$p"; then 11433 enable_fast_install=yes 11434 fi 11435 done 11436 IFS=$lt_save_ifs 11437 ;; 11438 esac 11439else 11440 enable_fast_install=yes 11441fi 11442 11443 11444 11445 11446 11447 11448 11449 11450 shared_archive_member_spec= 11451case $host,$enable_shared in 11452power*-*-aix[5-9]*,yes) 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11454$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11455 11456# Check whether --with-aix-soname was given. 11457if test "${with_aix_soname+set}" = set; then : 11458 withval=$with_aix_soname; case $withval in 11459 aix|svr4|both) 11460 ;; 11461 *) 11462 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11463 ;; 11464 esac 11465 lt_cv_with_aix_soname=$with_aix_soname 11466else 11467 if ${lt_cv_with_aix_soname+:} false; then : 11468 $as_echo_n "(cached) " >&6 11469else 11470 lt_cv_with_aix_soname=aix 11471fi 11472 11473 with_aix_soname=$lt_cv_with_aix_soname 11474fi 11475 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11477$as_echo "$with_aix_soname" >&6; } 11478 if test aix != "$with_aix_soname"; then 11479 # For the AIX way of multilib, we name the shared archive member 11480 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11481 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11482 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11483 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11484 if test 64 = "${OBJECT_MODE-32}"; then 11485 shared_archive_member_spec=shr_64 11486 else 11487 shared_archive_member_spec=shr 11488 fi 11489 fi 11490 ;; 11491*) 11492 with_aix_soname=aix 11493 ;; 11494esac 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505# This can be used to rebuild libtool when needed 11506LIBTOOL_DEPS=$ltmain 11507 11508# Always use our own libtool. 11509LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540test -z "$LN_S" && LN_S="ln -s" 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555if test -n "${ZSH_VERSION+set}"; then 11556 setopt NO_GLOB_SUBST 11557fi 11558 11559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11560$as_echo_n "checking for objdir... " >&6; } 11561if ${lt_cv_objdir+:} false; then : 11562 $as_echo_n "(cached) " >&6 11563else 11564 rm -f .libs 2>/dev/null 11565mkdir .libs 2>/dev/null 11566if test -d .libs; then 11567 lt_cv_objdir=.libs 11568else 11569 # MS-DOS does not allow filenames that begin with a dot. 11570 lt_cv_objdir=_libs 11571fi 11572rmdir .libs 2>/dev/null 11573fi 11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11575$as_echo "$lt_cv_objdir" >&6; } 11576objdir=$lt_cv_objdir 11577 11578 11579 11580 11581 11582cat >>confdefs.h <<_ACEOF 11583#define LT_OBJDIR "$lt_cv_objdir/" 11584_ACEOF 11585 11586 11587 11588 11589case $host_os in 11590aix3*) 11591 # AIX sometimes has problems with the GCC collect2 program. For some 11592 # reason, if we set the COLLECT_NAMES environment variable, the problems 11593 # vanish in a puff of smoke. 11594 if test set != "${COLLECT_NAMES+set}"; then 11595 COLLECT_NAMES= 11596 export COLLECT_NAMES 11597 fi 11598 ;; 11599esac 11600 11601# Global variables: 11602ofile=libtool 11603can_build_shared=yes 11604 11605# All known linkers require a '.a' archive for static linking (except MSVC, 11606# which needs '.lib'). 11607libext=a 11608 11609with_gnu_ld=$lt_cv_prog_gnu_ld 11610 11611old_CC=$CC 11612old_CFLAGS=$CFLAGS 11613 11614# Set sane defaults for various variables 11615test -z "$CC" && CC=cc 11616test -z "$LTCC" && LTCC=$CC 11617test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11618test -z "$LD" && LD=ld 11619test -z "$ac_objext" && ac_objext=o 11620 11621func_cc_basename $compiler 11622cc_basename=$func_cc_basename_result 11623 11624 11625# Only perform the check for file, if the check method requires it 11626test -z "$MAGIC_CMD" && MAGIC_CMD=file 11627case $deplibs_check_method in 11628file_magic*) 11629 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11631$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11632if ${lt_cv_path_MAGIC_CMD+:} false; then : 11633 $as_echo_n "(cached) " >&6 11634else 11635 case $MAGIC_CMD in 11636[\\/*] | ?:[\\/]*) 11637 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11638 ;; 11639*) 11640 lt_save_MAGIC_CMD=$MAGIC_CMD 11641 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11643 for ac_dir in $ac_dummy; do 11644 IFS=$lt_save_ifs 11645 test -z "$ac_dir" && ac_dir=. 11646 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11647 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11648 if test -n "$file_magic_test_file"; then 11649 case $deplibs_check_method in 11650 "file_magic "*) 11651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11652 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11654 $EGREP "$file_magic_regex" > /dev/null; then 11655 : 11656 else 11657 cat <<_LT_EOF 1>&2 11658 11659*** Warning: the command libtool uses to detect shared libraries, 11660*** $file_magic_cmd, produces output that libtool cannot recognize. 11661*** The result is that libtool may fail to recognize shared libraries 11662*** as such. This will affect the creation of libtool libraries that 11663*** depend on shared libraries, but programs linked with such libtool 11664*** libraries will work regardless of this problem. Nevertheless, you 11665*** may want to report the problem to your system manager and/or to 11666*** bug-libtool@gnu.org 11667 11668_LT_EOF 11669 fi ;; 11670 esac 11671 fi 11672 break 11673 fi 11674 done 11675 IFS=$lt_save_ifs 11676 MAGIC_CMD=$lt_save_MAGIC_CMD 11677 ;; 11678esac 11679fi 11680 11681MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11682if test -n "$MAGIC_CMD"; then 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11684$as_echo "$MAGIC_CMD" >&6; } 11685else 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11687$as_echo "no" >&6; } 11688fi 11689 11690 11691 11692 11693 11694if test -z "$lt_cv_path_MAGIC_CMD"; then 11695 if test -n "$ac_tool_prefix"; then 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11697$as_echo_n "checking for file... " >&6; } 11698if ${lt_cv_path_MAGIC_CMD+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 case $MAGIC_CMD in 11702[\\/*] | ?:[\\/]*) 11703 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11704 ;; 11705*) 11706 lt_save_MAGIC_CMD=$MAGIC_CMD 11707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11709 for ac_dir in $ac_dummy; do 11710 IFS=$lt_save_ifs 11711 test -z "$ac_dir" && ac_dir=. 11712 if test -f "$ac_dir/file"; then 11713 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11714 if test -n "$file_magic_test_file"; then 11715 case $deplibs_check_method in 11716 "file_magic "*) 11717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11718 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11720 $EGREP "$file_magic_regex" > /dev/null; then 11721 : 11722 else 11723 cat <<_LT_EOF 1>&2 11724 11725*** Warning: the command libtool uses to detect shared libraries, 11726*** $file_magic_cmd, produces output that libtool cannot recognize. 11727*** The result is that libtool may fail to recognize shared libraries 11728*** as such. This will affect the creation of libtool libraries that 11729*** depend on shared libraries, but programs linked with such libtool 11730*** libraries will work regardless of this problem. Nevertheless, you 11731*** may want to report the problem to your system manager and/or to 11732*** bug-libtool@gnu.org 11733 11734_LT_EOF 11735 fi ;; 11736 esac 11737 fi 11738 break 11739 fi 11740 done 11741 IFS=$lt_save_ifs 11742 MAGIC_CMD=$lt_save_MAGIC_CMD 11743 ;; 11744esac 11745fi 11746 11747MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11748if test -n "$MAGIC_CMD"; then 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11750$as_echo "$MAGIC_CMD" >&6; } 11751else 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11753$as_echo "no" >&6; } 11754fi 11755 11756 11757 else 11758 MAGIC_CMD=: 11759 fi 11760fi 11761 11762 fi 11763 ;; 11764esac 11765 11766# Use C for the default configuration in the libtool script 11767 11768lt_save_CC=$CC 11769ac_ext=c 11770ac_cpp='$CPP $CPPFLAGS' 11771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11773ac_compiler_gnu=$ac_cv_c_compiler_gnu 11774 11775 11776# Source file extension for C test sources. 11777ac_ext=c 11778 11779# Object file extension for compiled C test sources. 11780objext=o 11781objext=$objext 11782 11783# Code to be used in simple compile tests 11784lt_simple_compile_test_code="int some_variable = 0;" 11785 11786# Code to be used in simple link tests 11787lt_simple_link_test_code='int main(){return(0);}' 11788 11789 11790 11791 11792 11793 11794 11795# If no C compiler was specified, use CC. 11796LTCC=${LTCC-"$CC"} 11797 11798# If no C compiler flags were specified, use CFLAGS. 11799LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11800 11801# Allow CC to be a program name with arguments. 11802compiler=$CC 11803 11804# Save the default compiler, since it gets overwritten when the other 11805# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11806compiler_DEFAULT=$CC 11807 11808# save warnings/boilerplate of simple test code 11809ac_outfile=conftest.$ac_objext 11810echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11811eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11812_lt_compiler_boilerplate=`cat conftest.err` 11813$RM conftest* 11814 11815ac_outfile=conftest.$ac_objext 11816echo "$lt_simple_link_test_code" >conftest.$ac_ext 11817eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11818_lt_linker_boilerplate=`cat conftest.err` 11819$RM -r conftest* 11820 11821 11822## CAVEAT EMPTOR: 11823## There is no encapsulation within the following macros, do not change 11824## the running order or otherwise move them around unless you know exactly 11825## what you are doing... 11826if test -n "$compiler"; then 11827 11828lt_prog_compiler_no_builtin_flag= 11829 11830if test yes = "$GCC"; then 11831 case $cc_basename in 11832 nvcc*) 11833 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11834 *) 11835 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11836 esac 11837 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11839$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11840if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11841 $as_echo_n "(cached) " >&6 11842else 11843 lt_cv_prog_compiler_rtti_exceptions=no 11844 ac_outfile=conftest.$ac_objext 11845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11846 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11847 # Insert the option either (1) after the last *FLAGS variable, or 11848 # (2) before a word containing "conftest.", or (3) at the end. 11849 # Note that $ac_compile itself does not contain backslashes and begins 11850 # with a dollar sign (not a hyphen), so the echo should work correctly. 11851 # The option is referenced via a variable to avoid confusing sed. 11852 lt_compile=`echo "$ac_compile" | $SED \ 11853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11855 -e 's:$: $lt_compiler_flag:'` 11856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11857 (eval "$lt_compile" 2>conftest.err) 11858 ac_status=$? 11859 cat conftest.err >&5 11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11861 if (exit $ac_status) && test -s "$ac_outfile"; then 11862 # The compiler can only warn and ignore the option if not recognized 11863 # So say no if there are warnings other than the usual output. 11864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11867 lt_cv_prog_compiler_rtti_exceptions=yes 11868 fi 11869 fi 11870 $RM conftest* 11871 11872fi 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11874$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11875 11876if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11877 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11878else 11879 : 11880fi 11881 11882fi 11883 11884 11885 11886 11887 11888 11889 lt_prog_compiler_wl= 11890lt_prog_compiler_pic= 11891lt_prog_compiler_static= 11892 11893 11894 if test yes = "$GCC"; then 11895 lt_prog_compiler_wl='-Wl,' 11896 lt_prog_compiler_static='-static' 11897 11898 case $host_os in 11899 aix*) 11900 # All AIX code is PIC. 11901 if test ia64 = "$host_cpu"; then 11902 # AIX 5 now supports IA64 processor 11903 lt_prog_compiler_static='-Bstatic' 11904 fi 11905 lt_prog_compiler_pic='-fPIC' 11906 ;; 11907 11908 amigaos*) 11909 case $host_cpu in 11910 powerpc) 11911 # see comment about AmigaOS4 .so support 11912 lt_prog_compiler_pic='-fPIC' 11913 ;; 11914 m68k) 11915 # FIXME: we need at least 68020 code to build shared libraries, but 11916 # adding the '-m68020' flag to GCC prevents building anything better, 11917 # like '-m68040'. 11918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11919 ;; 11920 esac 11921 ;; 11922 11923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11924 # PIC is the default for these OSes. 11925 ;; 11926 11927 mingw* | cygwin* | pw32* | os2* | cegcc*) 11928 # This hack is so that the source file can tell whether it is being 11929 # built for inclusion in a dll (and should export symbols for example). 11930 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11931 # (--disable-auto-import) libraries 11932 lt_prog_compiler_pic='-DDLL_EXPORT' 11933 case $host_os in 11934 os2*) 11935 lt_prog_compiler_static='$wl-static' 11936 ;; 11937 esac 11938 ;; 11939 11940 darwin* | rhapsody*) 11941 # PIC is the default on this platform 11942 # Common symbols not allowed in MH_DYLIB files 11943 lt_prog_compiler_pic='-fno-common' 11944 ;; 11945 11946 haiku*) 11947 # PIC is the default for Haiku. 11948 # The "-static" flag exists, but is broken. 11949 lt_prog_compiler_static= 11950 ;; 11951 11952 hpux*) 11953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11955 # sets the default TLS model and affects inlining. 11956 case $host_cpu in 11957 hppa*64*) 11958 # +Z the default 11959 ;; 11960 *) 11961 lt_prog_compiler_pic='-fPIC' 11962 ;; 11963 esac 11964 ;; 11965 11966 interix[3-9]*) 11967 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11968 # Instead, we relocate shared libraries at runtime. 11969 ;; 11970 11971 msdosdjgpp*) 11972 # Just because we use GCC doesn't mean we suddenly get shared libraries 11973 # on systems that don't support them. 11974 lt_prog_compiler_can_build_shared=no 11975 enable_shared=no 11976 ;; 11977 11978 *nto* | *qnx*) 11979 # QNX uses GNU C++, but need to define -shared option too, otherwise 11980 # it will coredump. 11981 lt_prog_compiler_pic='-fPIC -shared' 11982 ;; 11983 11984 sysv4*MP*) 11985 if test -d /usr/nec; then 11986 lt_prog_compiler_pic=-Kconform_pic 11987 fi 11988 ;; 11989 11990 *) 11991 lt_prog_compiler_pic='-fPIC' 11992 ;; 11993 esac 11994 11995 case $cc_basename in 11996 nvcc*) # Cuda Compiler Driver 2.2 11997 lt_prog_compiler_wl='-Xlinker ' 11998 if test -n "$lt_prog_compiler_pic"; then 11999 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12000 fi 12001 ;; 12002 esac 12003 else 12004 # PORTME Check for flag to pass linker flags through the system compiler. 12005 case $host_os in 12006 aix*) 12007 lt_prog_compiler_wl='-Wl,' 12008 if test ia64 = "$host_cpu"; then 12009 # AIX 5 now supports IA64 processor 12010 lt_prog_compiler_static='-Bstatic' 12011 else 12012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12013 fi 12014 ;; 12015 12016 darwin* | rhapsody*) 12017 # PIC is the default on this platform 12018 # Common symbols not allowed in MH_DYLIB files 12019 lt_prog_compiler_pic='-fno-common' 12020 case $cc_basename in 12021 nagfor*) 12022 # NAG Fortran compiler 12023 lt_prog_compiler_wl='-Wl,-Wl,,' 12024 lt_prog_compiler_pic='-PIC' 12025 lt_prog_compiler_static='-Bstatic' 12026 ;; 12027 esac 12028 ;; 12029 12030 mingw* | cygwin* | pw32* | os2* | cegcc*) 12031 # This hack is so that the source file can tell whether it is being 12032 # built for inclusion in a dll (and should export symbols for example). 12033 lt_prog_compiler_pic='-DDLL_EXPORT' 12034 case $host_os in 12035 os2*) 12036 lt_prog_compiler_static='$wl-static' 12037 ;; 12038 esac 12039 ;; 12040 12041 hpux9* | hpux10* | hpux11*) 12042 lt_prog_compiler_wl='-Wl,' 12043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12044 # not for PA HP-UX. 12045 case $host_cpu in 12046 hppa*64*|ia64*) 12047 # +Z the default 12048 ;; 12049 *) 12050 lt_prog_compiler_pic='+Z' 12051 ;; 12052 esac 12053 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12054 lt_prog_compiler_static='$wl-a ${wl}archive' 12055 ;; 12056 12057 irix5* | irix6* | nonstopux*) 12058 lt_prog_compiler_wl='-Wl,' 12059 # PIC (with -KPIC) is the default. 12060 lt_prog_compiler_static='-non_shared' 12061 ;; 12062 12063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12064 case $cc_basename in 12065 # old Intel for x86_64, which still supported -KPIC. 12066 ecc*) 12067 lt_prog_compiler_wl='-Wl,' 12068 lt_prog_compiler_pic='-KPIC' 12069 lt_prog_compiler_static='-static' 12070 ;; 12071 # icc used to be incompatible with GCC. 12072 # ICC 10 doesn't accept -KPIC any more. 12073 icc* | ifort*) 12074 lt_prog_compiler_wl='-Wl,' 12075 lt_prog_compiler_pic='-fPIC' 12076 lt_prog_compiler_static='-static' 12077 ;; 12078 # Lahey Fortran 8.1. 12079 lf95*) 12080 lt_prog_compiler_wl='-Wl,' 12081 lt_prog_compiler_pic='--shared' 12082 lt_prog_compiler_static='--static' 12083 ;; 12084 nagfor*) 12085 # NAG Fortran compiler 12086 lt_prog_compiler_wl='-Wl,-Wl,,' 12087 lt_prog_compiler_pic='-PIC' 12088 lt_prog_compiler_static='-Bstatic' 12089 ;; 12090 tcc*) 12091 # Fabrice Bellard et al's Tiny C Compiler 12092 lt_prog_compiler_wl='-Wl,' 12093 lt_prog_compiler_pic='-fPIC' 12094 lt_prog_compiler_static='-static' 12095 ;; 12096 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12097 # Portland Group compilers (*not* the Pentium gcc compiler, 12098 # which looks to be a dead project) 12099 lt_prog_compiler_wl='-Wl,' 12100 lt_prog_compiler_pic='-fpic' 12101 lt_prog_compiler_static='-Bstatic' 12102 ;; 12103 ccc*) 12104 lt_prog_compiler_wl='-Wl,' 12105 # All Alpha code is PIC. 12106 lt_prog_compiler_static='-non_shared' 12107 ;; 12108 xl* | bgxl* | bgf* | mpixl*) 12109 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12110 lt_prog_compiler_wl='-Wl,' 12111 lt_prog_compiler_pic='-qpic' 12112 lt_prog_compiler_static='-qstaticlink' 12113 ;; 12114 *) 12115 case `$CC -V 2>&1 | sed 5q` in 12116 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12117 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12118 lt_prog_compiler_pic='-KPIC' 12119 lt_prog_compiler_static='-Bstatic' 12120 lt_prog_compiler_wl='' 12121 ;; 12122 *Sun\ F* | *Sun*Fortran*) 12123 lt_prog_compiler_pic='-KPIC' 12124 lt_prog_compiler_static='-Bstatic' 12125 lt_prog_compiler_wl='-Qoption ld ' 12126 ;; 12127 *Sun\ C*) 12128 # Sun C 5.9 12129 lt_prog_compiler_pic='-KPIC' 12130 lt_prog_compiler_static='-Bstatic' 12131 lt_prog_compiler_wl='-Wl,' 12132 ;; 12133 *Intel*\ [CF]*Compiler*) 12134 lt_prog_compiler_wl='-Wl,' 12135 lt_prog_compiler_pic='-fPIC' 12136 lt_prog_compiler_static='-static' 12137 ;; 12138 *Portland\ Group*) 12139 lt_prog_compiler_wl='-Wl,' 12140 lt_prog_compiler_pic='-fpic' 12141 lt_prog_compiler_static='-Bstatic' 12142 ;; 12143 esac 12144 ;; 12145 esac 12146 ;; 12147 12148 newsos6) 12149 lt_prog_compiler_pic='-KPIC' 12150 lt_prog_compiler_static='-Bstatic' 12151 ;; 12152 12153 *nto* | *qnx*) 12154 # QNX uses GNU C++, but need to define -shared option too, otherwise 12155 # it will coredump. 12156 lt_prog_compiler_pic='-fPIC -shared' 12157 ;; 12158 12159 osf3* | osf4* | osf5*) 12160 lt_prog_compiler_wl='-Wl,' 12161 # All OSF/1 code is PIC. 12162 lt_prog_compiler_static='-non_shared' 12163 ;; 12164 12165 rdos*) 12166 lt_prog_compiler_static='-non_shared' 12167 ;; 12168 12169 solaris*) 12170 lt_prog_compiler_pic='-KPIC' 12171 lt_prog_compiler_static='-Bstatic' 12172 case $cc_basename in 12173 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12174 lt_prog_compiler_wl='-Qoption ld ';; 12175 *) 12176 lt_prog_compiler_wl='-Wl,';; 12177 esac 12178 ;; 12179 12180 sunos4*) 12181 lt_prog_compiler_wl='-Qoption ld ' 12182 lt_prog_compiler_pic='-PIC' 12183 lt_prog_compiler_static='-Bstatic' 12184 ;; 12185 12186 sysv4 | sysv4.2uw2* | sysv4.3*) 12187 lt_prog_compiler_wl='-Wl,' 12188 lt_prog_compiler_pic='-KPIC' 12189 lt_prog_compiler_static='-Bstatic' 12190 ;; 12191 12192 sysv4*MP*) 12193 if test -d /usr/nec; then 12194 lt_prog_compiler_pic='-Kconform_pic' 12195 lt_prog_compiler_static='-Bstatic' 12196 fi 12197 ;; 12198 12199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12200 lt_prog_compiler_wl='-Wl,' 12201 lt_prog_compiler_pic='-KPIC' 12202 lt_prog_compiler_static='-Bstatic' 12203 ;; 12204 12205 unicos*) 12206 lt_prog_compiler_wl='-Wl,' 12207 lt_prog_compiler_can_build_shared=no 12208 ;; 12209 12210 uts4*) 12211 lt_prog_compiler_pic='-pic' 12212 lt_prog_compiler_static='-Bstatic' 12213 ;; 12214 12215 *) 12216 lt_prog_compiler_can_build_shared=no 12217 ;; 12218 esac 12219 fi 12220 12221case $host_os in 12222 # For platforms that do not support PIC, -DPIC is meaningless: 12223 *djgpp*) 12224 lt_prog_compiler_pic= 12225 ;; 12226 *) 12227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12228 ;; 12229esac 12230 12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12232$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12233if ${lt_cv_prog_compiler_pic+:} false; then : 12234 $as_echo_n "(cached) " >&6 12235else 12236 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12237fi 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12239$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12240lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12241 12242# 12243# Check to make sure the PIC flag actually works. 12244# 12245if test -n "$lt_prog_compiler_pic"; then 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12247$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12248if ${lt_cv_prog_compiler_pic_works+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 lt_cv_prog_compiler_pic_works=no 12252 ac_outfile=conftest.$ac_objext 12253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12255 # Insert the option either (1) after the last *FLAGS variable, or 12256 # (2) before a word containing "conftest.", or (3) at the end. 12257 # Note that $ac_compile itself does not contain backslashes and begins 12258 # with a dollar sign (not a hyphen), so the echo should work correctly. 12259 # The option is referenced via a variable to avoid confusing sed. 12260 lt_compile=`echo "$ac_compile" | $SED \ 12261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12263 -e 's:$: $lt_compiler_flag:'` 12264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12265 (eval "$lt_compile" 2>conftest.err) 12266 ac_status=$? 12267 cat conftest.err >&5 12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12269 if (exit $ac_status) && test -s "$ac_outfile"; then 12270 # The compiler can only warn and ignore the option if not recognized 12271 # So say no if there are warnings other than the usual output. 12272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12275 lt_cv_prog_compiler_pic_works=yes 12276 fi 12277 fi 12278 $RM conftest* 12279 12280fi 12281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12282$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12283 12284if test yes = "$lt_cv_prog_compiler_pic_works"; then 12285 case $lt_prog_compiler_pic in 12286 "" | " "*) ;; 12287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12288 esac 12289else 12290 lt_prog_compiler_pic= 12291 lt_prog_compiler_can_build_shared=no 12292fi 12293 12294fi 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306# 12307# Check to make sure the static flag actually works. 12308# 12309wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12311$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12312if ${lt_cv_prog_compiler_static_works+:} false; then : 12313 $as_echo_n "(cached) " >&6 12314else 12315 lt_cv_prog_compiler_static_works=no 12316 save_LDFLAGS=$LDFLAGS 12317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12318 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12320 # The linker can only warn and ignore the option if not recognized 12321 # So say no if there are warnings 12322 if test -s conftest.err; then 12323 # Append any errors to the config.log. 12324 cat conftest.err 1>&5 12325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12327 if diff conftest.exp conftest.er2 >/dev/null; then 12328 lt_cv_prog_compiler_static_works=yes 12329 fi 12330 else 12331 lt_cv_prog_compiler_static_works=yes 12332 fi 12333 fi 12334 $RM -r conftest* 12335 LDFLAGS=$save_LDFLAGS 12336 12337fi 12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12339$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12340 12341if test yes = "$lt_cv_prog_compiler_static_works"; then 12342 : 12343else 12344 lt_prog_compiler_static= 12345fi 12346 12347 12348 12349 12350 12351 12352 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12354$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12355if ${lt_cv_prog_compiler_c_o+:} false; then : 12356 $as_echo_n "(cached) " >&6 12357else 12358 lt_cv_prog_compiler_c_o=no 12359 $RM -r conftest 2>/dev/null 12360 mkdir conftest 12361 cd conftest 12362 mkdir out 12363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12364 12365 lt_compiler_flag="-o out/conftest2.$ac_objext" 12366 # Insert the option either (1) after the last *FLAGS variable, or 12367 # (2) before a word containing "conftest.", or (3) at the end. 12368 # Note that $ac_compile itself does not contain backslashes and begins 12369 # with a dollar sign (not a hyphen), so the echo should work correctly. 12370 lt_compile=`echo "$ac_compile" | $SED \ 12371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12373 -e 's:$: $lt_compiler_flag:'` 12374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12375 (eval "$lt_compile" 2>out/conftest.err) 12376 ac_status=$? 12377 cat out/conftest.err >&5 12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12379 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12380 then 12381 # The compiler can only warn and ignore the option if not recognized 12382 # So say no if there are warnings 12383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12386 lt_cv_prog_compiler_c_o=yes 12387 fi 12388 fi 12389 chmod u+w . 2>&5 12390 $RM conftest* 12391 # SGI C++ compiler will create directory out/ii_files/ for 12392 # template instantiation 12393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12394 $RM out/* && rmdir out 12395 cd .. 12396 $RM -r conftest 12397 $RM conftest* 12398 12399fi 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12401$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12402 12403 12404 12405 12406 12407 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12409$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12410if ${lt_cv_prog_compiler_c_o+:} false; then : 12411 $as_echo_n "(cached) " >&6 12412else 12413 lt_cv_prog_compiler_c_o=no 12414 $RM -r conftest 2>/dev/null 12415 mkdir conftest 12416 cd conftest 12417 mkdir out 12418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12419 12420 lt_compiler_flag="-o out/conftest2.$ac_objext" 12421 # Insert the option either (1) after the last *FLAGS variable, or 12422 # (2) before a word containing "conftest.", or (3) at the end. 12423 # Note that $ac_compile itself does not contain backslashes and begins 12424 # with a dollar sign (not a hyphen), so the echo should work correctly. 12425 lt_compile=`echo "$ac_compile" | $SED \ 12426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12428 -e 's:$: $lt_compiler_flag:'` 12429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12430 (eval "$lt_compile" 2>out/conftest.err) 12431 ac_status=$? 12432 cat out/conftest.err >&5 12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12434 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12435 then 12436 # The compiler can only warn and ignore the option if not recognized 12437 # So say no if there are warnings 12438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12441 lt_cv_prog_compiler_c_o=yes 12442 fi 12443 fi 12444 chmod u+w . 2>&5 12445 $RM conftest* 12446 # SGI C++ compiler will create directory out/ii_files/ for 12447 # template instantiation 12448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12449 $RM out/* && rmdir out 12450 cd .. 12451 $RM -r conftest 12452 $RM conftest* 12453 12454fi 12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12456$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12457 12458 12459 12460 12461hard_links=nottested 12462if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12463 # do not overwrite the value of need_locks provided by the user 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12465$as_echo_n "checking if we can lock with hard links... " >&6; } 12466 hard_links=yes 12467 $RM conftest* 12468 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12469 touch conftest.a 12470 ln conftest.a conftest.b 2>&5 || hard_links=no 12471 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12473$as_echo "$hard_links" >&6; } 12474 if test no = "$hard_links"; then 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12476$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12477 need_locks=warn 12478 fi 12479else 12480 need_locks=no 12481fi 12482 12483 12484 12485 12486 12487 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12489$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12490 12491 runpath_var= 12492 allow_undefined_flag= 12493 always_export_symbols=no 12494 archive_cmds= 12495 archive_expsym_cmds= 12496 compiler_needs_object=no 12497 enable_shared_with_static_runtimes=no 12498 export_dynamic_flag_spec= 12499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12500 hardcode_automatic=no 12501 hardcode_direct=no 12502 hardcode_direct_absolute=no 12503 hardcode_libdir_flag_spec= 12504 hardcode_libdir_separator= 12505 hardcode_minus_L=no 12506 hardcode_shlibpath_var=unsupported 12507 inherit_rpath=no 12508 link_all_deplibs=unknown 12509 module_cmds= 12510 module_expsym_cmds= 12511 old_archive_from_new_cmds= 12512 old_archive_from_expsyms_cmds= 12513 thread_safe_flag_spec= 12514 whole_archive_flag_spec= 12515 # include_expsyms should be a list of space-separated symbols to be *always* 12516 # included in the symbol list 12517 include_expsyms= 12518 # exclude_expsyms can be an extended regexp of symbols to exclude 12519 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12520 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12521 # as well as any symbol that contains 'd'. 12522 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12523 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12524 # platforms (ab)use it in PIC code, but their linkers get confused if 12525 # the symbol is explicitly referenced. Since portable code cannot 12526 # rely on this symbol name, it's probably fine to never include it in 12527 # preloaded symbol tables. 12528 # Exclude shared library initialization/finalization symbols. 12529 extract_expsyms_cmds= 12530 12531 case $host_os in 12532 cygwin* | mingw* | pw32* | cegcc*) 12533 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12534 # When not using gcc, we currently assume that we are using 12535 # Microsoft Visual C++. 12536 if test yes != "$GCC"; then 12537 with_gnu_ld=no 12538 fi 12539 ;; 12540 interix*) 12541 # we just hope/assume this is gcc and not c89 (= MSVC++) 12542 with_gnu_ld=yes 12543 ;; 12544 openbsd* | bitrig*) 12545 with_gnu_ld=no 12546 ;; 12547 esac 12548 12549 ld_shlibs=yes 12550 12551 # On some targets, GNU ld is compatible enough with the native linker 12552 # that we're better off using the native interface for both. 12553 lt_use_gnu_ld_interface=no 12554 if test yes = "$with_gnu_ld"; then 12555 case $host_os in 12556 aix*) 12557 # The AIX port of GNU ld has always aspired to compatibility 12558 # with the native linker. However, as the warning in the GNU ld 12559 # block says, versions before 2.19.5* couldn't really create working 12560 # shared libraries, regardless of the interface used. 12561 case `$LD -v 2>&1` in 12562 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12563 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12564 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12565 *) 12566 lt_use_gnu_ld_interface=yes 12567 ;; 12568 esac 12569 ;; 12570 *) 12571 lt_use_gnu_ld_interface=yes 12572 ;; 12573 esac 12574 fi 12575 12576 if test yes = "$lt_use_gnu_ld_interface"; then 12577 # If archive_cmds runs LD, not CC, wlarc should be empty 12578 wlarc='$wl' 12579 12580 # Set some defaults for GNU ld with shared library support. These 12581 # are reset later if shared libraries are not supported. Putting them 12582 # here allows them to be overridden if necessary. 12583 runpath_var=LD_RUN_PATH 12584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12585 export_dynamic_flag_spec='$wl--export-dynamic' 12586 # ancient GNU ld didn't support --whole-archive et. al. 12587 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12588 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12589 else 12590 whole_archive_flag_spec= 12591 fi 12592 supports_anon_versioning=no 12593 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12594 *GNU\ gold*) supports_anon_versioning=yes ;; 12595 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12596 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12597 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12598 *\ 2.11.*) ;; # other 2.11 versions 12599 *) supports_anon_versioning=yes ;; 12600 esac 12601 12602 # See if GNU ld supports shared libraries. 12603 case $host_os in 12604 aix[3-9]*) 12605 # On AIX/PPC, the GNU linker is very broken 12606 if test ia64 != "$host_cpu"; then 12607 ld_shlibs=no 12608 cat <<_LT_EOF 1>&2 12609 12610*** Warning: the GNU linker, at least up to release 2.19, is reported 12611*** to be unable to reliably create shared libraries on AIX. 12612*** Therefore, libtool is disabling shared libraries support. If you 12613*** really care for shared libraries, you may want to install binutils 12614*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12615*** You will then need to restart the configuration process. 12616 12617_LT_EOF 12618 fi 12619 ;; 12620 12621 amigaos*) 12622 case $host_cpu in 12623 powerpc) 12624 # see comment about AmigaOS4 .so support 12625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12626 archive_expsym_cmds='' 12627 ;; 12628 m68k) 12629 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)' 12630 hardcode_libdir_flag_spec='-L$libdir' 12631 hardcode_minus_L=yes 12632 ;; 12633 esac 12634 ;; 12635 12636 beos*) 12637 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12638 allow_undefined_flag=unsupported 12639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12640 # support --undefined. This deserves some investigation. FIXME 12641 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12642 else 12643 ld_shlibs=no 12644 fi 12645 ;; 12646 12647 cygwin* | mingw* | pw32* | cegcc*) 12648 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12649 # as there is no search path for DLLs. 12650 hardcode_libdir_flag_spec='-L$libdir' 12651 export_dynamic_flag_spec='$wl--export-all-symbols' 12652 allow_undefined_flag=unsupported 12653 always_export_symbols=no 12654 enable_shared_with_static_runtimes=yes 12655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 12656 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12657 12658 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12660 # If the export-symbols file already is a .def file, use it as 12661 # is; otherwise, prepend EXPORTS... 12662 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12663 cp $export_symbols $output_objdir/$soname.def; 12664 else 12665 echo EXPORTS > $output_objdir/$soname.def; 12666 cat $export_symbols >> $output_objdir/$soname.def; 12667 fi~ 12668 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12669 else 12670 ld_shlibs=no 12671 fi 12672 ;; 12673 12674 haiku*) 12675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12676 link_all_deplibs=yes 12677 ;; 12678 12679 os2*) 12680 hardcode_libdir_flag_spec='-L$libdir' 12681 hardcode_minus_L=yes 12682 allow_undefined_flag=unsupported 12683 shrext_cmds=.dll 12684 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12685 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12686 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12687 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12688 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12690 emximp -o $lib $output_objdir/$libname.def' 12691 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12692 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12693 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12694 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12695 prefix_cmds="$SED"~ 12696 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12697 prefix_cmds="$prefix_cmds -e 1d"; 12698 fi~ 12699 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12700 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12701 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12702 emximp -o $lib $output_objdir/$libname.def' 12703 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12704 enable_shared_with_static_runtimes=yes 12705 ;; 12706 12707 interix[3-9]*) 12708 hardcode_direct=no 12709 hardcode_shlibpath_var=no 12710 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12711 export_dynamic_flag_spec='$wl-E' 12712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12713 # Instead, shared libraries are loaded at an image base (0x10000000 by 12714 # default) and relocated if they conflict, which is a slow very memory 12715 # consuming and fragmenting process. To avoid this, we pick a random, 12716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12717 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12719 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' 12720 ;; 12721 12722 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12723 tmp_diet=no 12724 if test linux-dietlibc = "$host_os"; then 12725 case $cc_basename in 12726 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12727 esac 12728 fi 12729 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12730 && test no = "$tmp_diet" 12731 then 12732 tmp_addflag=' $pic_flag' 12733 tmp_sharedflag='-shared' 12734 case $cc_basename,$host_cpu in 12735 pgcc*) # Portland Group C compiler 12736 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' 12737 tmp_addflag=' $pic_flag' 12738 ;; 12739 pgf77* | pgf90* | pgf95* | pgfortran*) 12740 # Portland Group f77 and f90 compilers 12741 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' 12742 tmp_addflag=' $pic_flag -Mnomain' ;; 12743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12744 tmp_addflag=' -i_dynamic' ;; 12745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12746 tmp_addflag=' -i_dynamic -nofor_main' ;; 12747 ifc* | ifort*) # Intel Fortran compiler 12748 tmp_addflag=' -nofor_main' ;; 12749 lf95*) # Lahey Fortran 8.1 12750 whole_archive_flag_spec= 12751 tmp_sharedflag='--shared' ;; 12752 nagfor*) # NAGFOR 5.3 12753 tmp_sharedflag='-Wl,-shared' ;; 12754 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12755 tmp_sharedflag='-qmkshrobj' 12756 tmp_addflag= ;; 12757 nvcc*) # Cuda Compiler Driver 2.2 12758 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' 12759 compiler_needs_object=yes 12760 ;; 12761 esac 12762 case `$CC -V 2>&1 | sed 5q` in 12763 *Sun\ C*) # Sun C 5.9 12764 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' 12765 compiler_needs_object=yes 12766 tmp_sharedflag='-G' ;; 12767 *Sun\ F*) # Sun Fortran 8.3 12768 tmp_sharedflag='-G' ;; 12769 esac 12770 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12771 12772 if test yes = "$supports_anon_versioning"; then 12773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12774 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12775 echo "local: *; };" >> $output_objdir/$libname.ver~ 12776 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12777 fi 12778 12779 case $cc_basename in 12780 tcc*) 12781 export_dynamic_flag_spec='-rdynamic' 12782 ;; 12783 xlf* | bgf* | bgxlf* | mpixlf*) 12784 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12785 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12786 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12787 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12788 if test yes = "$supports_anon_versioning"; then 12789 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12791 echo "local: *; };" >> $output_objdir/$libname.ver~ 12792 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12793 fi 12794 ;; 12795 esac 12796 else 12797 ld_shlibs=no 12798 fi 12799 ;; 12800 12801 netbsd*) 12802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12803 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12804 wlarc= 12805 else 12806 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12807 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12808 fi 12809 ;; 12810 12811 solaris*) 12812 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12813 ld_shlibs=no 12814 cat <<_LT_EOF 1>&2 12815 12816*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12817*** create shared libraries on Solaris systems. Therefore, libtool 12818*** is disabling shared libraries support. We urge you to upgrade GNU 12819*** binutils to release 2.9.1 or newer. Another option is to modify 12820*** your PATH or compiler configuration so that the native linker is 12821*** used, and then restart. 12822 12823_LT_EOF 12824 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12827 else 12828 ld_shlibs=no 12829 fi 12830 ;; 12831 12832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12833 case `$LD -v 2>&1` in 12834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12835 ld_shlibs=no 12836 cat <<_LT_EOF 1>&2 12837 12838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12839*** reliably create shared libraries on SCO systems. Therefore, libtool 12840*** is disabling shared libraries support. We urge you to upgrade GNU 12841*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12842*** your PATH or compiler configuration so that the native linker is 12843*** used, and then restart. 12844 12845_LT_EOF 12846 ;; 12847 *) 12848 # For security reasons, it is highly recommended that you always 12849 # use absolute paths for naming shared libraries, and exclude the 12850 # DT_RUNPATH tag from executables and libraries. But doing so 12851 # requires that you compile everything twice, which is a pain. 12852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12856 else 12857 ld_shlibs=no 12858 fi 12859 ;; 12860 esac 12861 ;; 12862 12863 sunos4*) 12864 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12865 wlarc= 12866 hardcode_direct=yes 12867 hardcode_shlibpath_var=no 12868 ;; 12869 12870 *) 12871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12874 else 12875 ld_shlibs=no 12876 fi 12877 ;; 12878 esac 12879 12880 if test no = "$ld_shlibs"; then 12881 runpath_var= 12882 hardcode_libdir_flag_spec= 12883 export_dynamic_flag_spec= 12884 whole_archive_flag_spec= 12885 fi 12886 else 12887 # PORTME fill in a description of your system's linker (not GNU ld) 12888 case $host_os in 12889 aix3*) 12890 allow_undefined_flag=unsupported 12891 always_export_symbols=yes 12892 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' 12893 # Note: this linker hardcodes the directories in LIBPATH if there 12894 # are no directories specified by -L. 12895 hardcode_minus_L=yes 12896 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12897 # Neither direct hardcoding nor static linking is supported with a 12898 # broken collect2. 12899 hardcode_direct=unsupported 12900 fi 12901 ;; 12902 12903 aix[4-9]*) 12904 if test ia64 = "$host_cpu"; then 12905 # On IA64, the linker does run time linking by default, so we don't 12906 # have to do anything special. 12907 aix_use_runtimelinking=no 12908 exp_sym_flag='-Bexport' 12909 no_entry_flag= 12910 else 12911 # If we're using GNU nm, then we don't want the "-C" option. 12912 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12913 # Without the "-l" option, or with the "-B" option, AIX nm treats 12914 # weak defined symbols like other global defined symbols, whereas 12915 # GNU nm marks them as "W". 12916 # While the 'weak' keyword is ignored in the Export File, we need 12917 # it in the Import File for the 'aix-soname' feature, so we have 12918 # to replace the "-B" option with "-P" for AIX nm. 12919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12920 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 12921 else 12922 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 12923 fi 12924 aix_use_runtimelinking=no 12925 12926 # Test if we are trying to use run time linking or normal 12927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12928 # have runtime linking enabled, and use it for executables. 12929 # For shared libraries, we enable/disable runtime linking 12930 # depending on the kind of the shared library created - 12931 # when "with_aix_soname,aix_use_runtimelinking" is: 12932 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12933 # "aix,yes" lib.so shared, rtl:yes, for executables 12934 # lib.a static archive 12935 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12936 # lib.a(lib.so.V) shared, rtl:no, for executables 12937 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12938 # lib.a(lib.so.V) shared, rtl:no 12939 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12940 # lib.a static archive 12941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12942 for ld_flag in $LDFLAGS; do 12943 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12944 aix_use_runtimelinking=yes 12945 break 12946 fi 12947 done 12948 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12949 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12950 # so we don't have lib.a shared libs to link our executables. 12951 # We have to force runtime linking in this case. 12952 aix_use_runtimelinking=yes 12953 LDFLAGS="$LDFLAGS -Wl,-brtl" 12954 fi 12955 ;; 12956 esac 12957 12958 exp_sym_flag='-bexport' 12959 no_entry_flag='-bnoentry' 12960 fi 12961 12962 # When large executables or shared objects are built, AIX ld can 12963 # have problems creating the table of contents. If linking a library 12964 # or program results in "error TOC overflow" add -mminimal-toc to 12965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12967 12968 archive_cmds='' 12969 hardcode_direct=yes 12970 hardcode_direct_absolute=yes 12971 hardcode_libdir_separator=':' 12972 link_all_deplibs=yes 12973 file_list_spec='$wl-f,' 12974 case $with_aix_soname,$aix_use_runtimelinking in 12975 aix,*) ;; # traditional, no import file 12976 svr4,* | *,yes) # use import file 12977 # The Import File defines what to hardcode. 12978 hardcode_direct=no 12979 hardcode_direct_absolute=no 12980 ;; 12981 esac 12982 12983 if test yes = "$GCC"; then 12984 case $host_os in aix4.[012]|aix4.[012].*) 12985 # We only want to do this on AIX 4.2 and lower, the check 12986 # below for broken collect2 doesn't work under 4.3+ 12987 collect2name=`$CC -print-prog-name=collect2` 12988 if test -f "$collect2name" && 12989 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12990 then 12991 # We have reworked collect2 12992 : 12993 else 12994 # We have old collect2 12995 hardcode_direct=unsupported 12996 # It fails to find uninstalled libraries when the uninstalled 12997 # path is not listed in the libpath. Setting hardcode_minus_L 12998 # to unsupported forces relinking 12999 hardcode_minus_L=yes 13000 hardcode_libdir_flag_spec='-L$libdir' 13001 hardcode_libdir_separator= 13002 fi 13003 ;; 13004 esac 13005 shared_flag='-shared' 13006 if test yes = "$aix_use_runtimelinking"; then 13007 shared_flag="$shared_flag "'$wl-G' 13008 fi 13009 # Need to ensure runtime linking is disabled for the traditional 13010 # shared library, or the linker may eventually find shared libraries 13011 # /with/ Import File - we do not want to mix them. 13012 shared_flag_aix='-shared' 13013 shared_flag_svr4='-shared $wl-G' 13014 else 13015 # not using gcc 13016 if test ia64 = "$host_cpu"; then 13017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13018 # chokes on -Wl,-G. The following line is correct: 13019 shared_flag='-G' 13020 else 13021 if test yes = "$aix_use_runtimelinking"; then 13022 shared_flag='$wl-G' 13023 else 13024 shared_flag='$wl-bM:SRE' 13025 fi 13026 shared_flag_aix='$wl-bM:SRE' 13027 shared_flag_svr4='$wl-G' 13028 fi 13029 fi 13030 13031 export_dynamic_flag_spec='$wl-bexpall' 13032 # It seems that -bexpall does not export symbols beginning with 13033 # underscore (_), so it is better to generate a list of symbols to export. 13034 always_export_symbols=yes 13035 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13036 # Warning - without using the other runtime loading flags (-brtl), 13037 # -berok will link without error, but may produce a broken library. 13038 allow_undefined_flag='-berok' 13039 # Determine the default libpath from the value encoded in an 13040 # empty executable. 13041 if test set = "${lt_cv_aix_libpath+set}"; then 13042 aix_libpath=$lt_cv_aix_libpath 13043else 13044 if ${lt_cv_aix_libpath_+:} false; then : 13045 $as_echo_n "(cached) " >&6 13046else 13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13048/* end confdefs.h. */ 13049 13050int 13051main () 13052{ 13053 13054 ; 13055 return 0; 13056} 13057_ACEOF 13058if ac_fn_c_try_link "$LINENO"; then : 13059 13060 lt_aix_libpath_sed=' 13061 /Import File Strings/,/^$/ { 13062 /^0/ { 13063 s/^0 *\([^ ]*\) *$/\1/ 13064 p 13065 } 13066 }' 13067 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13068 # Check for a 64-bit object if we didn't find anything. 13069 if test -z "$lt_cv_aix_libpath_"; then 13070 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13071 fi 13072fi 13073rm -f core conftest.err conftest.$ac_objext \ 13074 conftest$ac_exeext conftest.$ac_ext 13075 if test -z "$lt_cv_aix_libpath_"; then 13076 lt_cv_aix_libpath_=/usr/lib:/lib 13077 fi 13078 13079fi 13080 13081 aix_libpath=$lt_cv_aix_libpath_ 13082fi 13083 13084 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13085 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13086 else 13087 if test ia64 = "$host_cpu"; then 13088 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13089 allow_undefined_flag="-z nodefs" 13090 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" 13091 else 13092 # Determine the default libpath from the value encoded in an 13093 # empty executable. 13094 if test set = "${lt_cv_aix_libpath+set}"; then 13095 aix_libpath=$lt_cv_aix_libpath 13096else 13097 if ${lt_cv_aix_libpath_+:} false; then : 13098 $as_echo_n "(cached) " >&6 13099else 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102 13103int 13104main () 13105{ 13106 13107 ; 13108 return 0; 13109} 13110_ACEOF 13111if ac_fn_c_try_link "$LINENO"; then : 13112 13113 lt_aix_libpath_sed=' 13114 /Import File Strings/,/^$/ { 13115 /^0/ { 13116 s/^0 *\([^ ]*\) *$/\1/ 13117 p 13118 } 13119 }' 13120 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13121 # Check for a 64-bit object if we didn't find anything. 13122 if test -z "$lt_cv_aix_libpath_"; then 13123 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13124 fi 13125fi 13126rm -f core conftest.err conftest.$ac_objext \ 13127 conftest$ac_exeext conftest.$ac_ext 13128 if test -z "$lt_cv_aix_libpath_"; then 13129 lt_cv_aix_libpath_=/usr/lib:/lib 13130 fi 13131 13132fi 13133 13134 aix_libpath=$lt_cv_aix_libpath_ 13135fi 13136 13137 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13138 # Warning - without using the other run time loading flags, 13139 # -berok will link without error, but may produce a broken library. 13140 no_undefined_flag=' $wl-bernotok' 13141 allow_undefined_flag=' $wl-berok' 13142 if test yes = "$with_gnu_ld"; then 13143 # We only use this code for GNU lds that support --whole-archive. 13144 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13145 else 13146 # Exported symbols can be pulled into shared objects from archives 13147 whole_archive_flag_spec='$convenience' 13148 fi 13149 archive_cmds_need_lc=yes 13150 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13151 # -brtl affects multiple linker settings, -berok does not and is overridden later 13152 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13153 if test svr4 != "$with_aix_soname"; then 13154 # This is similar to how AIX traditionally builds its shared libraries. 13155 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13156 fi 13157 if test aix != "$with_aix_soname"; then 13158 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13159 else 13160 # used by -dlpreopen to get the symbols 13161 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13162 fi 13163 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13164 fi 13165 fi 13166 ;; 13167 13168 amigaos*) 13169 case $host_cpu in 13170 powerpc) 13171 # see comment about AmigaOS4 .so support 13172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13173 archive_expsym_cmds='' 13174 ;; 13175 m68k) 13176 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)' 13177 hardcode_libdir_flag_spec='-L$libdir' 13178 hardcode_minus_L=yes 13179 ;; 13180 esac 13181 ;; 13182 13183 bsdi[45]*) 13184 export_dynamic_flag_spec=-rdynamic 13185 ;; 13186 13187 cygwin* | mingw* | pw32* | cegcc*) 13188 # When not using gcc, we currently assume that we are using 13189 # Microsoft Visual C++. 13190 # hardcode_libdir_flag_spec is actually meaningless, as there is 13191 # no search path for DLLs. 13192 case $cc_basename in 13193 cl*) 13194 # Native MSVC 13195 hardcode_libdir_flag_spec=' ' 13196 allow_undefined_flag=unsupported 13197 always_export_symbols=yes 13198 file_list_spec='@' 13199 # Tell ltmain to make .lib files, not .a files. 13200 libext=lib 13201 # Tell ltmain to make .dll files, not .so files. 13202 shrext_cmds=.dll 13203 # FIXME: Setting linknames here is a bad hack. 13204 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13205 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13206 cp "$export_symbols" "$output_objdir/$soname.def"; 13207 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13208 else 13209 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13210 fi~ 13211 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13212 linknames=' 13213 # The linker will not automatically build a static lib if we build a DLL. 13214 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13215 enable_shared_with_static_runtimes=yes 13216 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13217 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13218 # Don't use ranlib 13219 old_postinstall_cmds='chmod 644 $oldlib' 13220 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13221 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13222 case $lt_outputfile in 13223 *.exe|*.EXE) ;; 13224 *) 13225 lt_outputfile=$lt_outputfile.exe 13226 lt_tool_outputfile=$lt_tool_outputfile.exe 13227 ;; 13228 esac~ 13229 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13230 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13231 $RM "$lt_outputfile.manifest"; 13232 fi' 13233 ;; 13234 *) 13235 # Assume MSVC wrapper 13236 hardcode_libdir_flag_spec=' ' 13237 allow_undefined_flag=unsupported 13238 # Tell ltmain to make .lib files, not .a files. 13239 libext=lib 13240 # Tell ltmain to make .dll files, not .so files. 13241 shrext_cmds=.dll 13242 # FIXME: Setting linknames here is a bad hack. 13243 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13244 # The linker will automatically build a .lib file if we build a DLL. 13245 old_archive_from_new_cmds='true' 13246 # FIXME: Should let the user specify the lib program. 13247 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13248 enable_shared_with_static_runtimes=yes 13249 ;; 13250 esac 13251 ;; 13252 13253 darwin* | rhapsody*) 13254 13255 13256 archive_cmds_need_lc=no 13257 hardcode_direct=no 13258 hardcode_automatic=yes 13259 hardcode_shlibpath_var=unsupported 13260 if test yes = "$lt_cv_ld_force_load"; then 13261 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\"`' 13262 13263 else 13264 whole_archive_flag_spec='' 13265 fi 13266 link_all_deplibs=yes 13267 allow_undefined_flag=$_lt_dar_allow_undefined 13268 case $cc_basename in 13269 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13270 *) _lt_dar_can_shared=$GCC ;; 13271 esac 13272 if test yes = "$_lt_dar_can_shared"; then 13273 output_verbose_link_cmd=func_echo_all 13274 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13275 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13276 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13277 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" 13278 13279 else 13280 ld_shlibs=no 13281 fi 13282 13283 ;; 13284 13285 dgux*) 13286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13287 hardcode_libdir_flag_spec='-L$libdir' 13288 hardcode_shlibpath_var=no 13289 ;; 13290 13291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13292 # support. Future versions do this automatically, but an explicit c++rt0.o 13293 # does not break anything, and helps significantly (at the cost of a little 13294 # extra space). 13295 freebsd2.2*) 13296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13297 hardcode_libdir_flag_spec='-R$libdir' 13298 hardcode_direct=yes 13299 hardcode_shlibpath_var=no 13300 ;; 13301 13302 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13303 freebsd2.*) 13304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13305 hardcode_direct=yes 13306 hardcode_minus_L=yes 13307 hardcode_shlibpath_var=no 13308 ;; 13309 13310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13311 freebsd* | dragonfly*) 13312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13313 hardcode_libdir_flag_spec='-R$libdir' 13314 hardcode_direct=yes 13315 hardcode_shlibpath_var=no 13316 ;; 13317 13318 hpux9*) 13319 if test yes = "$GCC"; then 13320 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13321 else 13322 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13323 fi 13324 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13325 hardcode_libdir_separator=: 13326 hardcode_direct=yes 13327 13328 # hardcode_minus_L: Not really in the search PATH, 13329 # but as the default location of the library. 13330 hardcode_minus_L=yes 13331 export_dynamic_flag_spec='$wl-E' 13332 ;; 13333 13334 hpux10*) 13335 if test yes,no = "$GCC,$with_gnu_ld"; then 13336 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13337 else 13338 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13339 fi 13340 if test no = "$with_gnu_ld"; then 13341 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13342 hardcode_libdir_separator=: 13343 hardcode_direct=yes 13344 hardcode_direct_absolute=yes 13345 export_dynamic_flag_spec='$wl-E' 13346 # hardcode_minus_L: Not really in the search PATH, 13347 # but as the default location of the library. 13348 hardcode_minus_L=yes 13349 fi 13350 ;; 13351 13352 hpux11*) 13353 if test yes,no = "$GCC,$with_gnu_ld"; then 13354 case $host_cpu in 13355 hppa*64*) 13356 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13357 ;; 13358 ia64*) 13359 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13360 ;; 13361 *) 13362 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13363 ;; 13364 esac 13365 else 13366 case $host_cpu in 13367 hppa*64*) 13368 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13369 ;; 13370 ia64*) 13371 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13372 ;; 13373 *) 13374 13375 # Older versions of the 11.00 compiler do not understand -b yet 13376 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13378$as_echo_n "checking if $CC understands -b... " >&6; } 13379if ${lt_cv_prog_compiler__b+:} false; then : 13380 $as_echo_n "(cached) " >&6 13381else 13382 lt_cv_prog_compiler__b=no 13383 save_LDFLAGS=$LDFLAGS 13384 LDFLAGS="$LDFLAGS -b" 13385 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13387 # The linker can only warn and ignore the option if not recognized 13388 # So say no if there are warnings 13389 if test -s conftest.err; then 13390 # Append any errors to the config.log. 13391 cat conftest.err 1>&5 13392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13394 if diff conftest.exp conftest.er2 >/dev/null; then 13395 lt_cv_prog_compiler__b=yes 13396 fi 13397 else 13398 lt_cv_prog_compiler__b=yes 13399 fi 13400 fi 13401 $RM -r conftest* 13402 LDFLAGS=$save_LDFLAGS 13403 13404fi 13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13406$as_echo "$lt_cv_prog_compiler__b" >&6; } 13407 13408if test yes = "$lt_cv_prog_compiler__b"; then 13409 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13410else 13411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13412fi 13413 13414 ;; 13415 esac 13416 fi 13417 if test no = "$with_gnu_ld"; then 13418 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13419 hardcode_libdir_separator=: 13420 13421 case $host_cpu in 13422 hppa*64*|ia64*) 13423 hardcode_direct=no 13424 hardcode_shlibpath_var=no 13425 ;; 13426 *) 13427 hardcode_direct=yes 13428 hardcode_direct_absolute=yes 13429 export_dynamic_flag_spec='$wl-E' 13430 13431 # hardcode_minus_L: Not really in the search PATH, 13432 # but as the default location of the library. 13433 hardcode_minus_L=yes 13434 ;; 13435 esac 13436 fi 13437 ;; 13438 13439 irix5* | irix6* | nonstopux*) 13440 if test yes = "$GCC"; then 13441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13442 # Try to use the -exported_symbol ld option, if it does not 13443 # work, assume that -exports_file does not work either and 13444 # implicitly export all symbols. 13445 # This should be the same for all languages, so no per-tag cache variable. 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13447$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13448if ${lt_cv_irix_exported_symbol+:} false; then : 13449 $as_echo_n "(cached) " >&6 13450else 13451 save_LDFLAGS=$LDFLAGS 13452 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455int foo (void) { return 0; } 13456_ACEOF 13457if ac_fn_c_try_link "$LINENO"; then : 13458 lt_cv_irix_exported_symbol=yes 13459else 13460 lt_cv_irix_exported_symbol=no 13461fi 13462rm -f core conftest.err conftest.$ac_objext \ 13463 conftest$ac_exeext conftest.$ac_ext 13464 LDFLAGS=$save_LDFLAGS 13465fi 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13467$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13468 if test yes = "$lt_cv_irix_exported_symbol"; then 13469 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 13470 fi 13471 else 13472 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' 13473 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' 13474 fi 13475 archive_cmds_need_lc='no' 13476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13477 hardcode_libdir_separator=: 13478 inherit_rpath=yes 13479 link_all_deplibs=yes 13480 ;; 13481 13482 linux*) 13483 case $cc_basename in 13484 tcc*) 13485 # Fabrice Bellard et al's Tiny C Compiler 13486 ld_shlibs=yes 13487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13488 ;; 13489 esac 13490 ;; 13491 13492 netbsd*) 13493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13495 else 13496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13497 fi 13498 hardcode_libdir_flag_spec='-R$libdir' 13499 hardcode_direct=yes 13500 hardcode_shlibpath_var=no 13501 ;; 13502 13503 newsos6) 13504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13505 hardcode_direct=yes 13506 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13507 hardcode_libdir_separator=: 13508 hardcode_shlibpath_var=no 13509 ;; 13510 13511 *nto* | *qnx*) 13512 ;; 13513 13514 openbsd* | bitrig*) 13515 if test -f /usr/libexec/ld.so; then 13516 hardcode_direct=yes 13517 hardcode_shlibpath_var=no 13518 hardcode_direct_absolute=yes 13519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13522 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13523 export_dynamic_flag_spec='$wl-E' 13524 else 13525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13526 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13527 fi 13528 else 13529 ld_shlibs=no 13530 fi 13531 ;; 13532 13533 os2*) 13534 hardcode_libdir_flag_spec='-L$libdir' 13535 hardcode_minus_L=yes 13536 allow_undefined_flag=unsupported 13537 shrext_cmds=.dll 13538 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13541 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13542 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13543 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13544 emximp -o $lib $output_objdir/$libname.def' 13545 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13546 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13547 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13548 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13549 prefix_cmds="$SED"~ 13550 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13551 prefix_cmds="$prefix_cmds -e 1d"; 13552 fi~ 13553 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13554 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13555 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13556 emximp -o $lib $output_objdir/$libname.def' 13557 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13558 enable_shared_with_static_runtimes=yes 13559 ;; 13560 13561 osf3*) 13562 if test yes = "$GCC"; then 13563 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13564 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' 13565 else 13566 allow_undefined_flag=' -expect_unresolved \*' 13567 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' 13568 fi 13569 archive_cmds_need_lc='no' 13570 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13571 hardcode_libdir_separator=: 13572 ;; 13573 13574 osf4* | osf5*) # as osf3* with the addition of -msym flag 13575 if test yes = "$GCC"; then 13576 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13577 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13579 else 13580 allow_undefined_flag=' -expect_unresolved \*' 13581 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' 13582 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~ 13583 $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' 13584 13585 # Both c and cxx compiler support -rpath directly 13586 hardcode_libdir_flag_spec='-rpath $libdir' 13587 fi 13588 archive_cmds_need_lc='no' 13589 hardcode_libdir_separator=: 13590 ;; 13591 13592 solaris*) 13593 no_undefined_flag=' -z defs' 13594 if test yes = "$GCC"; then 13595 wlarc='$wl' 13596 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13598 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13599 else 13600 case `$CC -V 2>&1` in 13601 *"Compilers 5.0"*) 13602 wlarc='' 13603 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13605 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13606 ;; 13607 *) 13608 wlarc='$wl' 13609 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13611 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13612 ;; 13613 esac 13614 fi 13615 hardcode_libdir_flag_spec='-R$libdir' 13616 hardcode_shlibpath_var=no 13617 case $host_os in 13618 solaris2.[0-5] | solaris2.[0-5].*) ;; 13619 *) 13620 # The compiler driver will combine and reorder linker options, 13621 # but understands '-z linker_flag'. GCC discards it without '$wl', 13622 # but is careful enough not to reorder. 13623 # Supported since Solaris 2.6 (maybe 2.5.1?) 13624 if test yes = "$GCC"; then 13625 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13626 else 13627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13628 fi 13629 ;; 13630 esac 13631 link_all_deplibs=yes 13632 ;; 13633 13634 sunos4*) 13635 if test sequent = "$host_vendor"; then 13636 # Use $CC to link under sequent, because it throws in some extra .o 13637 # files that make .init and .fini sections work. 13638 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13639 else 13640 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13641 fi 13642 hardcode_libdir_flag_spec='-L$libdir' 13643 hardcode_direct=yes 13644 hardcode_minus_L=yes 13645 hardcode_shlibpath_var=no 13646 ;; 13647 13648 sysv4) 13649 case $host_vendor in 13650 sni) 13651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13652 hardcode_direct=yes # is this really true??? 13653 ;; 13654 siemens) 13655 ## LD is ld it makes a PLAMLIB 13656 ## CC just makes a GrossModule. 13657 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13658 reload_cmds='$CC -r -o $output$reload_objs' 13659 hardcode_direct=no 13660 ;; 13661 motorola) 13662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13663 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13664 ;; 13665 esac 13666 runpath_var='LD_RUN_PATH' 13667 hardcode_shlibpath_var=no 13668 ;; 13669 13670 sysv4.3*) 13671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13672 hardcode_shlibpath_var=no 13673 export_dynamic_flag_spec='-Bexport' 13674 ;; 13675 13676 sysv4*MP*) 13677 if test -d /usr/nec; then 13678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13679 hardcode_shlibpath_var=no 13680 runpath_var=LD_RUN_PATH 13681 hardcode_runpath_var=yes 13682 ld_shlibs=yes 13683 fi 13684 ;; 13685 13686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13687 no_undefined_flag='$wl-z,text' 13688 archive_cmds_need_lc=no 13689 hardcode_shlibpath_var=no 13690 runpath_var='LD_RUN_PATH' 13691 13692 if test yes = "$GCC"; then 13693 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13694 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13695 else 13696 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13697 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13698 fi 13699 ;; 13700 13701 sysv5* | sco3.2v5* | sco5v6*) 13702 # Note: We CANNOT use -z defs as we might desire, because we do not 13703 # link with -lc, and that would cause any symbols used from libc to 13704 # always be unresolved, which means just about no library would 13705 # ever link correctly. If we're not using GNU ld we use -z text 13706 # though, which does catch some bad symbols but isn't as heavy-handed 13707 # as -z defs. 13708 no_undefined_flag='$wl-z,text' 13709 allow_undefined_flag='$wl-z,nodefs' 13710 archive_cmds_need_lc=no 13711 hardcode_shlibpath_var=no 13712 hardcode_libdir_flag_spec='$wl-R,$libdir' 13713 hardcode_libdir_separator=':' 13714 link_all_deplibs=yes 13715 export_dynamic_flag_spec='$wl-Bexport' 13716 runpath_var='LD_RUN_PATH' 13717 13718 if test yes = "$GCC"; then 13719 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13720 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13721 else 13722 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13723 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13724 fi 13725 ;; 13726 13727 uts4*) 13728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13729 hardcode_libdir_flag_spec='-L$libdir' 13730 hardcode_shlibpath_var=no 13731 ;; 13732 13733 *) 13734 ld_shlibs=no 13735 ;; 13736 esac 13737 13738 if test sni = "$host_vendor"; then 13739 case $host in 13740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13741 export_dynamic_flag_spec='$wl-Blargedynsym' 13742 ;; 13743 esac 13744 fi 13745 fi 13746 13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13748$as_echo "$ld_shlibs" >&6; } 13749test no = "$ld_shlibs" && can_build_shared=no 13750 13751with_gnu_ld=$with_gnu_ld 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767# 13768# Do we need to explicitly link libc? 13769# 13770case "x$archive_cmds_need_lc" in 13771x|xyes) 13772 # Assume -lc should be added 13773 archive_cmds_need_lc=yes 13774 13775 if test yes,yes = "$GCC,$enable_shared"; then 13776 case $archive_cmds in 13777 *'~'*) 13778 # FIXME: we may have to deal with multi-command sequences. 13779 ;; 13780 '$CC '*) 13781 # Test whether the compiler implicitly links with -lc since on some 13782 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13783 # to ld, don't add -lc before -lgcc. 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13785$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13786if ${lt_cv_archive_cmds_need_lc+:} false; then : 13787 $as_echo_n "(cached) " >&6 13788else 13789 $RM conftest* 13790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13791 13792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13793 (eval $ac_compile) 2>&5 13794 ac_status=$? 13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13796 test $ac_status = 0; } 2>conftest.err; then 13797 soname=conftest 13798 lib=conftest 13799 libobjs=conftest.$ac_objext 13800 deplibs= 13801 wl=$lt_prog_compiler_wl 13802 pic_flag=$lt_prog_compiler_pic 13803 compiler_flags=-v 13804 linker_flags=-v 13805 verstring= 13806 output_objdir=. 13807 libname=conftest 13808 lt_save_allow_undefined_flag=$allow_undefined_flag 13809 allow_undefined_flag= 13810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13811 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13812 ac_status=$? 13813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13814 test $ac_status = 0; } 13815 then 13816 lt_cv_archive_cmds_need_lc=no 13817 else 13818 lt_cv_archive_cmds_need_lc=yes 13819 fi 13820 allow_undefined_flag=$lt_save_allow_undefined_flag 13821 else 13822 cat conftest.err 1>&5 13823 fi 13824 $RM conftest* 13825 13826fi 13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13828$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13829 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13830 ;; 13831 esac 13832 fi 13833 ;; 13834esac 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13988$as_echo_n "checking dynamic linker characteristics... " >&6; } 13989 13990if test yes = "$GCC"; then 13991 case $host_os in 13992 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13993 *) lt_awk_arg='/^libraries:/' ;; 13994 esac 13995 case $host_os in 13996 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13997 *) lt_sed_strip_eq='s|=/|/|g' ;; 13998 esac 13999 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14000 case $lt_search_path_spec in 14001 *\;*) 14002 # if the path contains ";" then we assume it to be the separator 14003 # otherwise default to the standard path separator (i.e. ":") - it is 14004 # assumed that no part of a normal pathname contains ";" but that should 14005 # okay in the real world where ";" in dirpaths is itself problematic. 14006 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14007 ;; 14008 *) 14009 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14010 ;; 14011 esac 14012 # Ok, now we have the path, separated by spaces, we can step through it 14013 # and add multilib dir if necessary... 14014 lt_tmp_lt_search_path_spec= 14015 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14016 # ...but if some path component already ends with the multilib dir we assume 14017 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14018 case "$lt_multi_os_dir; $lt_search_path_spec " in 14019 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14020 lt_multi_os_dir= 14021 ;; 14022 esac 14023 for lt_sys_path in $lt_search_path_spec; do 14024 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14026 elif test -n "$lt_multi_os_dir"; then 14027 test -d "$lt_sys_path" && \ 14028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14029 fi 14030 done 14031 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14032BEGIN {RS = " "; FS = "/|\n";} { 14033 lt_foo = ""; 14034 lt_count = 0; 14035 for (lt_i = NF; lt_i > 0; lt_i--) { 14036 if ($lt_i != "" && $lt_i != ".") { 14037 if ($lt_i == "..") { 14038 lt_count++; 14039 } else { 14040 if (lt_count == 0) { 14041 lt_foo = "/" $lt_i lt_foo; 14042 } else { 14043 lt_count--; 14044 } 14045 } 14046 } 14047 } 14048 if (lt_foo != "") { lt_freq[lt_foo]++; } 14049 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14050}'` 14051 # AWK program above erroneously prepends '/' to C:/dos/paths 14052 # for these hosts. 14053 case $host_os in 14054 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14055 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14056 esac 14057 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14058else 14059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14060fi 14061library_names_spec= 14062libname_spec='lib$name' 14063soname_spec= 14064shrext_cmds=.so 14065postinstall_cmds= 14066postuninstall_cmds= 14067finish_cmds= 14068finish_eval= 14069shlibpath_var= 14070shlibpath_overrides_runpath=unknown 14071version_type=none 14072dynamic_linker="$host_os ld.so" 14073sys_lib_dlsearch_path_spec="/lib /usr/lib" 14074need_lib_prefix=unknown 14075hardcode_into_libs=no 14076 14077# when you set need_version to no, make sure it does not cause -set_version 14078# flags to be left without arguments 14079need_version=unknown 14080 14081 14082 14083case $host_os in 14084aix3*) 14085 version_type=linux # correct to gnu/linux during the next big refactor 14086 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14087 shlibpath_var=LIBPATH 14088 14089 # AIX 3 has no versioning support, so we append a major version to the name. 14090 soname_spec='$libname$release$shared_ext$major' 14091 ;; 14092 14093aix[4-9]*) 14094 version_type=linux # correct to gnu/linux during the next big refactor 14095 need_lib_prefix=no 14096 need_version=no 14097 hardcode_into_libs=yes 14098 if test ia64 = "$host_cpu"; then 14099 # AIX 5 supports IA64 14100 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14101 shlibpath_var=LD_LIBRARY_PATH 14102 else 14103 # With GCC up to 2.95.x, collect2 would create an import file 14104 # for dependence libraries. The import file would start with 14105 # the line '#! .'. This would cause the generated library to 14106 # depend on '.', always an invalid library. This was fixed in 14107 # development snapshots of GCC prior to 3.0. 14108 case $host_os in 14109 aix4 | aix4.[01] | aix4.[01].*) 14110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14111 echo ' yes ' 14112 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14113 : 14114 else 14115 can_build_shared=no 14116 fi 14117 ;; 14118 esac 14119 # Using Import Files as archive members, it is possible to support 14120 # filename-based versioning of shared library archives on AIX. While 14121 # this would work for both with and without runtime linking, it will 14122 # prevent static linking of such archives. So we do filename-based 14123 # shared library versioning with .so extension only, which is used 14124 # when both runtime linking and shared linking is enabled. 14125 # Unfortunately, runtime linking may impact performance, so we do 14126 # not want this to be the default eventually. Also, we use the 14127 # versioned .so libs for executables only if there is the -brtl 14128 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14129 # To allow for filename-based versioning support, we need to create 14130 # libNAME.so.V as an archive file, containing: 14131 # *) an Import File, referring to the versioned filename of the 14132 # archive as well as the shared archive member, telling the 14133 # bitwidth (32 or 64) of that shared object, and providing the 14134 # list of exported symbols of that shared object, eventually 14135 # decorated with the 'weak' keyword 14136 # *) the shared object with the F_LOADONLY flag set, to really avoid 14137 # it being seen by the linker. 14138 # At run time we better use the real file rather than another symlink, 14139 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14140 14141 case $with_aix_soname,$aix_use_runtimelinking in 14142 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14143 # soname into executable. Probably we can add versioning support to 14144 # collect2, so additional links can be useful in future. 14145 aix,yes) # traditional libtool 14146 dynamic_linker='AIX unversionable lib.so' 14147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14148 # instead of lib<name>.a to let people know that these are not 14149 # typical AIX shared libraries. 14150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14151 ;; 14152 aix,no) # traditional AIX only 14153 dynamic_linker='AIX lib.a(lib.so.V)' 14154 # We preserve .a as extension for shared libraries through AIX4.2 14155 # and later when we are not doing run time linking. 14156 library_names_spec='$libname$release.a $libname.a' 14157 soname_spec='$libname$release$shared_ext$major' 14158 ;; 14159 svr4,*) # full svr4 only 14160 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14161 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14162 # We do not specify a path in Import Files, so LIBPATH fires. 14163 shlibpath_overrides_runpath=yes 14164 ;; 14165 *,yes) # both, prefer svr4 14166 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14167 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14168 # unpreferred sharedlib libNAME.a needs extra handling 14169 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14170 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14171 # We do not specify a path in Import Files, so LIBPATH fires. 14172 shlibpath_overrides_runpath=yes 14173 ;; 14174 *,no) # both, prefer aix 14175 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14176 library_names_spec='$libname$release.a $libname.a' 14177 soname_spec='$libname$release$shared_ext$major' 14178 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14179 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 14180 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 14181 ;; 14182 esac 14183 shlibpath_var=LIBPATH 14184 fi 14185 ;; 14186 14187amigaos*) 14188 case $host_cpu in 14189 powerpc) 14190 # Since July 2007 AmigaOS4 officially supports .so libraries. 14191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14193 ;; 14194 m68k) 14195 library_names_spec='$libname.ixlibrary $libname.a' 14196 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14197 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14198 ;; 14199 esac 14200 ;; 14201 14202beos*) 14203 library_names_spec='$libname$shared_ext' 14204 dynamic_linker="$host_os ld.so" 14205 shlibpath_var=LIBRARY_PATH 14206 ;; 14207 14208bsdi[45]*) 14209 version_type=linux # correct to gnu/linux during the next big refactor 14210 need_version=no 14211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14212 soname_spec='$libname$release$shared_ext$major' 14213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14214 shlibpath_var=LD_LIBRARY_PATH 14215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14217 # the default ld.so.conf also contains /usr/contrib/lib and 14218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14219 # libtool to hard-code these into programs 14220 ;; 14221 14222cygwin* | mingw* | pw32* | cegcc*) 14223 version_type=windows 14224 shrext_cmds=.dll 14225 need_version=no 14226 need_lib_prefix=no 14227 14228 case $GCC,$cc_basename in 14229 yes,*) 14230 # gcc 14231 library_names_spec='$libname.dll.a' 14232 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14233 postinstall_cmds='base_file=`basename \$file`~ 14234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14235 dldir=$destdir/`dirname \$dlpath`~ 14236 test -d \$dldir || mkdir -p \$dldir~ 14237 $install_prog $dir/$dlname \$dldir/$dlname~ 14238 chmod a+x \$dldir/$dlname~ 14239 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14240 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14241 fi' 14242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14243 dlpath=$dir/\$dldll~ 14244 $RM \$dlpath' 14245 shlibpath_overrides_runpath=yes 14246 14247 case $host_os in 14248 cygwin*) 14249 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14250 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14251 14252 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14253 ;; 14254 mingw* | cegcc*) 14255 # MinGW DLLs use traditional 'lib' prefix 14256 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14257 ;; 14258 pw32*) 14259 # pw32 DLLs use 'pw' prefix rather than 'lib' 14260 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14261 ;; 14262 esac 14263 dynamic_linker='Win32 ld.exe' 14264 ;; 14265 14266 *,cl*) 14267 # Native MSVC 14268 libname_spec='$name' 14269 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14270 library_names_spec='$libname.dll.lib' 14271 14272 case $build_os in 14273 mingw*) 14274 sys_lib_search_path_spec= 14275 lt_save_ifs=$IFS 14276 IFS=';' 14277 for lt_path in $LIB 14278 do 14279 IFS=$lt_save_ifs 14280 # Let DOS variable expansion print the short 8.3 style file name. 14281 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14282 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14283 done 14284 IFS=$lt_save_ifs 14285 # Convert to MSYS style. 14286 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14287 ;; 14288 cygwin*) 14289 # Convert to unix form, then to dos form, then back to unix form 14290 # but this time dos style (no spaces!) so that the unix form looks 14291 # like /cygdrive/c/PROGRA~1:/cygdr... 14292 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14293 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14294 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14295 ;; 14296 *) 14297 sys_lib_search_path_spec=$LIB 14298 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14299 # It is most probably a Windows format PATH. 14300 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14301 else 14302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14303 fi 14304 # FIXME: find the short name or the path components, as spaces are 14305 # common. (e.g. "Program Files" -> "PROGRA~1") 14306 ;; 14307 esac 14308 14309 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14310 postinstall_cmds='base_file=`basename \$file`~ 14311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14312 dldir=$destdir/`dirname \$dlpath`~ 14313 test -d \$dldir || mkdir -p \$dldir~ 14314 $install_prog $dir/$dlname \$dldir/$dlname' 14315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14316 dlpath=$dir/\$dldll~ 14317 $RM \$dlpath' 14318 shlibpath_overrides_runpath=yes 14319 dynamic_linker='Win32 link.exe' 14320 ;; 14321 14322 *) 14323 # Assume MSVC wrapper 14324 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14325 dynamic_linker='Win32 ld.exe' 14326 ;; 14327 esac 14328 # FIXME: first we should search . and the directory the executable is in 14329 shlibpath_var=PATH 14330 ;; 14331 14332darwin* | rhapsody*) 14333 dynamic_linker="$host_os dyld" 14334 version_type=darwin 14335 need_lib_prefix=no 14336 need_version=no 14337 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 14338 soname_spec='$libname$release$major$shared_ext' 14339 shlibpath_overrides_runpath=yes 14340 shlibpath_var=DYLD_LIBRARY_PATH 14341 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 14342 14343 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14345 ;; 14346 14347dgux*) 14348 version_type=linux # correct to gnu/linux during the next big refactor 14349 need_lib_prefix=no 14350 need_version=no 14351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14352 soname_spec='$libname$release$shared_ext$major' 14353 shlibpath_var=LD_LIBRARY_PATH 14354 ;; 14355 14356freebsd* | dragonfly*) 14357 # DragonFly does not have aout. When/if they implement a new 14358 # versioning mechanism, adjust this. 14359 if test -x /usr/bin/objformat; then 14360 objformat=`/usr/bin/objformat` 14361 else 14362 case $host_os in 14363 freebsd[23].*) objformat=aout ;; 14364 *) objformat=elf ;; 14365 esac 14366 fi 14367 # Handle Gentoo/FreeBSD as it was Linux 14368 case $host_vendor in 14369 gentoo) 14370 version_type=linux ;; 14371 *) 14372 version_type=freebsd-$objformat ;; 14373 esac 14374 14375 case $version_type in 14376 freebsd-elf*) 14377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14378 soname_spec='$libname$release$shared_ext$major' 14379 need_version=no 14380 need_lib_prefix=no 14381 ;; 14382 freebsd-*) 14383 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14384 need_version=yes 14385 ;; 14386 linux) 14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14388 soname_spec='${libname}${release}${shared_ext}$major' 14389 need_lib_prefix=no 14390 need_version=no 14391 ;; 14392 esac 14393 shlibpath_var=LD_LIBRARY_PATH 14394 case $host_os in 14395 freebsd2.*) 14396 shlibpath_overrides_runpath=yes 14397 ;; 14398 freebsd3.[01]* | freebsdelf3.[01]*) 14399 shlibpath_overrides_runpath=yes 14400 hardcode_into_libs=yes 14401 ;; 14402 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14403 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14404 shlibpath_overrides_runpath=no 14405 hardcode_into_libs=yes 14406 ;; 14407 *) # from 4.6 on, and DragonFly 14408 shlibpath_overrides_runpath=yes 14409 hardcode_into_libs=yes 14410 ;; 14411 esac 14412 ;; 14413 14414haiku*) 14415 version_type=linux # correct to gnu/linux during the next big refactor 14416 need_lib_prefix=no 14417 need_version=no 14418 dynamic_linker="$host_os runtime_loader" 14419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14420 soname_spec='$libname$release$shared_ext$major' 14421 shlibpath_var=LIBRARY_PATH 14422 shlibpath_overrides_runpath=no 14423 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14424 hardcode_into_libs=yes 14425 ;; 14426 14427hpux9* | hpux10* | hpux11*) 14428 # Give a soname corresponding to the major version so that dld.sl refuses to 14429 # link against other versions. 14430 version_type=sunos 14431 need_lib_prefix=no 14432 need_version=no 14433 case $host_cpu in 14434 ia64*) 14435 shrext_cmds='.so' 14436 hardcode_into_libs=yes 14437 dynamic_linker="$host_os dld.so" 14438 shlibpath_var=LD_LIBRARY_PATH 14439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14441 soname_spec='$libname$release$shared_ext$major' 14442 if test 32 = "$HPUX_IA64_MODE"; then 14443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14444 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14445 else 14446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14447 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14448 fi 14449 ;; 14450 hppa*64*) 14451 shrext_cmds='.sl' 14452 hardcode_into_libs=yes 14453 dynamic_linker="$host_os dld.sl" 14454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14457 soname_spec='$libname$release$shared_ext$major' 14458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14460 ;; 14461 *) 14462 shrext_cmds='.sl' 14463 dynamic_linker="$host_os dld.sl" 14464 shlibpath_var=SHLIB_PATH 14465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14467 soname_spec='$libname$release$shared_ext$major' 14468 ;; 14469 esac 14470 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14471 postinstall_cmds='chmod 555 $lib' 14472 # or fails outright, so override atomically: 14473 install_override_mode=555 14474 ;; 14475 14476interix[3-9]*) 14477 version_type=linux # correct to gnu/linux during the next big refactor 14478 need_lib_prefix=no 14479 need_version=no 14480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14481 soname_spec='$libname$release$shared_ext$major' 14482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14483 shlibpath_var=LD_LIBRARY_PATH 14484 shlibpath_overrides_runpath=no 14485 hardcode_into_libs=yes 14486 ;; 14487 14488irix5* | irix6* | nonstopux*) 14489 case $host_os in 14490 nonstopux*) version_type=nonstopux ;; 14491 *) 14492 if test yes = "$lt_cv_prog_gnu_ld"; then 14493 version_type=linux # correct to gnu/linux during the next big refactor 14494 else 14495 version_type=irix 14496 fi ;; 14497 esac 14498 need_lib_prefix=no 14499 need_version=no 14500 soname_spec='$libname$release$shared_ext$major' 14501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14502 case $host_os in 14503 irix5* | nonstopux*) 14504 libsuff= shlibsuff= 14505 ;; 14506 *) 14507 case $LD in # libtool.m4 will add one of these switches to LD 14508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14509 libsuff= shlibsuff= libmagic=32-bit;; 14510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14511 libsuff=32 shlibsuff=N32 libmagic=N32;; 14512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14513 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14514 *) libsuff= shlibsuff= libmagic=never-match;; 14515 esac 14516 ;; 14517 esac 14518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14519 shlibpath_overrides_runpath=no 14520 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14521 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14522 hardcode_into_libs=yes 14523 ;; 14524 14525# No shared lib support for Linux oldld, aout, or coff. 14526linux*oldld* | linux*aout* | linux*coff*) 14527 dynamic_linker=no 14528 ;; 14529 14530linux*android*) 14531 version_type=none # Android doesn't support versioned libraries. 14532 need_lib_prefix=no 14533 need_version=no 14534 library_names_spec='$libname$release$shared_ext' 14535 soname_spec='$libname$release$shared_ext' 14536 finish_cmds= 14537 shlibpath_var=LD_LIBRARY_PATH 14538 shlibpath_overrides_runpath=yes 14539 14540 # This implies no fast_install, which is unacceptable. 14541 # Some rework will be needed to allow for fast_install 14542 # before this can be enabled. 14543 hardcode_into_libs=yes 14544 14545 dynamic_linker='Android linker' 14546 # Don't embed -rpath directories since the linker doesn't support them. 14547 hardcode_libdir_flag_spec='-L$libdir' 14548 ;; 14549 14550# This must be glibc/ELF. 14551linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14552 version_type=linux # correct to gnu/linux during the next big refactor 14553 need_lib_prefix=no 14554 need_version=no 14555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14556 soname_spec='$libname$release$shared_ext$major' 14557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14558 shlibpath_var=LD_LIBRARY_PATH 14559 shlibpath_overrides_runpath=no 14560 14561 # Some binutils ld are patched to set DT_RUNPATH 14562 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14563 $as_echo_n "(cached) " >&6 14564else 14565 lt_cv_shlibpath_overrides_runpath=no 14566 save_LDFLAGS=$LDFLAGS 14567 save_libdir=$libdir 14568 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14569 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14571/* end confdefs.h. */ 14572 14573int 14574main () 14575{ 14576 14577 ; 14578 return 0; 14579} 14580_ACEOF 14581if ac_fn_c_try_link "$LINENO"; then : 14582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14583 lt_cv_shlibpath_overrides_runpath=yes 14584fi 14585fi 14586rm -f core conftest.err conftest.$ac_objext \ 14587 conftest$ac_exeext conftest.$ac_ext 14588 LDFLAGS=$save_LDFLAGS 14589 libdir=$save_libdir 14590 14591fi 14592 14593 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14594 14595 # This implies no fast_install, which is unacceptable. 14596 # Some rework will be needed to allow for fast_install 14597 # before this can be enabled. 14598 hardcode_into_libs=yes 14599 14600 # Ideally, we could use ldconfig to report *all* directores which are 14601 # searched for libraries, however this is still not possible. Aside from not 14602 # being certain /sbin/ldconfig is available, command 14603 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14604 # even though it is searched at run-time. Try to do the best guess by 14605 # appending ld.so.conf contents (and includes) to the search path. 14606 if test -f /etc/ld.so.conf; then 14607 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' ' '` 14608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14609 fi 14610 14611 # We used to test for /lib/ld.so.1 and disable shared libraries on 14612 # powerpc, because MkLinux only supported shared libraries with the 14613 # GNU dynamic linker. Since this was broken with cross compilers, 14614 # most powerpc-linux boxes support dynamic linking these days and 14615 # people can always --disable-shared, the test was removed, and we 14616 # assume the GNU/Linux dynamic linker is in use. 14617 dynamic_linker='GNU/Linux ld.so' 14618 ;; 14619 14620netbsd*) 14621 version_type=sunos 14622 need_lib_prefix=no 14623 need_version=no 14624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14627 dynamic_linker='NetBSD (a.out) ld.so' 14628 else 14629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14630 soname_spec='$libname$release$shared_ext$major' 14631 dynamic_linker='NetBSD ld.elf_so' 14632 fi 14633 shlibpath_var=LD_LIBRARY_PATH 14634 shlibpath_overrides_runpath=yes 14635 hardcode_into_libs=yes 14636 ;; 14637 14638newsos6) 14639 version_type=linux # correct to gnu/linux during the next big refactor 14640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14641 shlibpath_var=LD_LIBRARY_PATH 14642 shlibpath_overrides_runpath=yes 14643 ;; 14644 14645*nto* | *qnx*) 14646 version_type=qnx 14647 need_lib_prefix=no 14648 need_version=no 14649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14650 soname_spec='$libname$release$shared_ext$major' 14651 shlibpath_var=LD_LIBRARY_PATH 14652 shlibpath_overrides_runpath=no 14653 hardcode_into_libs=yes 14654 dynamic_linker='ldqnx.so' 14655 ;; 14656 14657openbsd* | bitrig*) 14658 version_type=sunos 14659 sys_lib_dlsearch_path_spec=/usr/lib 14660 need_lib_prefix=no 14661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14662 need_version=no 14663 else 14664 need_version=yes 14665 fi 14666 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14668 shlibpath_var=LD_LIBRARY_PATH 14669 shlibpath_overrides_runpath=yes 14670 ;; 14671 14672os2*) 14673 libname_spec='$name' 14674 version_type=windows 14675 shrext_cmds=.dll 14676 need_version=no 14677 need_lib_prefix=no 14678 # OS/2 can only load a DLL with a base name of 8 characters or less. 14679 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14680 v=$($ECHO $release$versuffix | tr -d .-); 14681 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14682 $ECHO $n$v`$shared_ext' 14683 library_names_spec='${libname}_dll.$libext' 14684 dynamic_linker='OS/2 ld.exe' 14685 shlibpath_var=BEGINLIBPATH 14686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14688 postinstall_cmds='base_file=`basename \$file`~ 14689 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14690 dldir=$destdir/`dirname \$dlpath`~ 14691 test -d \$dldir || mkdir -p \$dldir~ 14692 $install_prog $dir/$dlname \$dldir/$dlname~ 14693 chmod a+x \$dldir/$dlname~ 14694 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14695 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14696 fi' 14697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14698 dlpath=$dir/\$dldll~ 14699 $RM \$dlpath' 14700 ;; 14701 14702osf3* | osf4* | osf5*) 14703 version_type=osf 14704 need_lib_prefix=no 14705 need_version=no 14706 soname_spec='$libname$release$shared_ext$major' 14707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14708 shlibpath_var=LD_LIBRARY_PATH 14709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14711 ;; 14712 14713rdos*) 14714 dynamic_linker=no 14715 ;; 14716 14717solaris*) 14718 version_type=linux # correct to gnu/linux during the next big refactor 14719 need_lib_prefix=no 14720 need_version=no 14721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14722 soname_spec='$libname$release$shared_ext$major' 14723 shlibpath_var=LD_LIBRARY_PATH 14724 shlibpath_overrides_runpath=yes 14725 hardcode_into_libs=yes 14726 # ldd complains unless libraries are executable 14727 postinstall_cmds='chmod +x $lib' 14728 ;; 14729 14730sunos4*) 14731 version_type=sunos 14732 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14733 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14734 shlibpath_var=LD_LIBRARY_PATH 14735 shlibpath_overrides_runpath=yes 14736 if test yes = "$with_gnu_ld"; then 14737 need_lib_prefix=no 14738 fi 14739 need_version=yes 14740 ;; 14741 14742sysv4 | sysv4.3*) 14743 version_type=linux # correct to gnu/linux during the next big refactor 14744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14745 soname_spec='$libname$release$shared_ext$major' 14746 shlibpath_var=LD_LIBRARY_PATH 14747 case $host_vendor in 14748 sni) 14749 shlibpath_overrides_runpath=no 14750 need_lib_prefix=no 14751 runpath_var=LD_RUN_PATH 14752 ;; 14753 siemens) 14754 need_lib_prefix=no 14755 ;; 14756 motorola) 14757 need_lib_prefix=no 14758 need_version=no 14759 shlibpath_overrides_runpath=no 14760 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14761 ;; 14762 esac 14763 ;; 14764 14765sysv4*MP*) 14766 if test -d /usr/nec; then 14767 version_type=linux # correct to gnu/linux during the next big refactor 14768 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14769 soname_spec='$libname$shared_ext.$major' 14770 shlibpath_var=LD_LIBRARY_PATH 14771 fi 14772 ;; 14773 14774sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14775 version_type=sco 14776 need_lib_prefix=no 14777 need_version=no 14778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14779 soname_spec='$libname$release$shared_ext$major' 14780 shlibpath_var=LD_LIBRARY_PATH 14781 shlibpath_overrides_runpath=yes 14782 hardcode_into_libs=yes 14783 if test yes = "$with_gnu_ld"; then 14784 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14785 else 14786 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14787 case $host_os in 14788 sco3.2v5*) 14789 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14790 ;; 14791 esac 14792 fi 14793 sys_lib_dlsearch_path_spec='/usr/lib' 14794 ;; 14795 14796tpf*) 14797 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14798 version_type=linux # correct to gnu/linux during the next big refactor 14799 need_lib_prefix=no 14800 need_version=no 14801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14802 shlibpath_var=LD_LIBRARY_PATH 14803 shlibpath_overrides_runpath=no 14804 hardcode_into_libs=yes 14805 ;; 14806 14807uts4*) 14808 version_type=linux # correct to gnu/linux during the next big refactor 14809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14810 soname_spec='$libname$release$shared_ext$major' 14811 shlibpath_var=LD_LIBRARY_PATH 14812 ;; 14813 14814*) 14815 dynamic_linker=no 14816 ;; 14817esac 14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14819$as_echo "$dynamic_linker" >&6; } 14820test no = "$dynamic_linker" && can_build_shared=no 14821 14822variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14823if test yes = "$GCC"; then 14824 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14825fi 14826 14827if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14828 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14829fi 14830 14831if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14832 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14833fi 14834 14835# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14836configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14837 14838# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14839func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14840 14841# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14842configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14941$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14942hardcode_action= 14943if test -n "$hardcode_libdir_flag_spec" || 14944 test -n "$runpath_var" || 14945 test yes = "$hardcode_automatic"; then 14946 14947 # We can hardcode non-existent directories. 14948 if test no != "$hardcode_direct" && 14949 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14950 # have to relink, otherwise we might link with an installed library 14951 # when we should be linking with a yet-to-be-installed one 14952 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14953 test no != "$hardcode_minus_L"; then 14954 # Linking always hardcodes the temporary library directory. 14955 hardcode_action=relink 14956 else 14957 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14958 hardcode_action=immediate 14959 fi 14960else 14961 # We cannot hardcode anything, or else we can only hardcode existing 14962 # directories. 14963 hardcode_action=unsupported 14964fi 14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14966$as_echo "$hardcode_action" >&6; } 14967 14968if test relink = "$hardcode_action" || 14969 test yes = "$inherit_rpath"; then 14970 # Fast installation is not supported 14971 enable_fast_install=no 14972elif test yes = "$shlibpath_overrides_runpath" || 14973 test no = "$enable_shared"; then 14974 # Fast installation is not necessary 14975 enable_fast_install=needless 14976fi 14977 14978 14979 14980 14981 14982 14983 if test yes != "$enable_dlopen"; then 14984 enable_dlopen=unknown 14985 enable_dlopen_self=unknown 14986 enable_dlopen_self_static=unknown 14987else 14988 lt_cv_dlopen=no 14989 lt_cv_dlopen_libs= 14990 14991 case $host_os in 14992 beos*) 14993 lt_cv_dlopen=load_add_on 14994 lt_cv_dlopen_libs= 14995 lt_cv_dlopen_self=yes 14996 ;; 14997 14998 mingw* | pw32* | cegcc*) 14999 lt_cv_dlopen=LoadLibrary 15000 lt_cv_dlopen_libs= 15001 ;; 15002 15003 cygwin*) 15004 lt_cv_dlopen=dlopen 15005 lt_cv_dlopen_libs= 15006 ;; 15007 15008 darwin*) 15009 # if libdl is installed we need to link against it 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15011$as_echo_n "checking for dlopen in -ldl... " >&6; } 15012if ${ac_cv_lib_dl_dlopen+:} false; then : 15013 $as_echo_n "(cached) " >&6 15014else 15015 ac_check_lib_save_LIBS=$LIBS 15016LIBS="-ldl $LIBS" 15017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15018/* end confdefs.h. */ 15019 15020/* Override any GCC internal prototype to avoid an error. 15021 Use char because int might match the return type of a GCC 15022 builtin and then its argument prototype would still apply. */ 15023#ifdef __cplusplus 15024extern "C" 15025#endif 15026char dlopen (); 15027int 15028main () 15029{ 15030return dlopen (); 15031 ; 15032 return 0; 15033} 15034_ACEOF 15035if ac_fn_c_try_link "$LINENO"; then : 15036 ac_cv_lib_dl_dlopen=yes 15037else 15038 ac_cv_lib_dl_dlopen=no 15039fi 15040rm -f core conftest.err conftest.$ac_objext \ 15041 conftest$ac_exeext conftest.$ac_ext 15042LIBS=$ac_check_lib_save_LIBS 15043fi 15044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15045$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15046if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15047 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15048else 15049 15050 lt_cv_dlopen=dyld 15051 lt_cv_dlopen_libs= 15052 lt_cv_dlopen_self=yes 15053 15054fi 15055 15056 ;; 15057 15058 tpf*) 15059 # Don't try to run any link tests for TPF. We know it's impossible 15060 # because TPF is a cross-compiler, and we know how we open DSOs. 15061 lt_cv_dlopen=dlopen 15062 lt_cv_dlopen_libs= 15063 lt_cv_dlopen_self=no 15064 ;; 15065 15066 *) 15067 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15068if test "x$ac_cv_func_shl_load" = xyes; then : 15069 lt_cv_dlopen=shl_load 15070else 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15072$as_echo_n "checking for shl_load in -ldld... " >&6; } 15073if ${ac_cv_lib_dld_shl_load+:} false; then : 15074 $as_echo_n "(cached) " >&6 15075else 15076 ac_check_lib_save_LIBS=$LIBS 15077LIBS="-ldld $LIBS" 15078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15079/* end confdefs.h. */ 15080 15081/* Override any GCC internal prototype to avoid an error. 15082 Use char because int might match the return type of a GCC 15083 builtin and then its argument prototype would still apply. */ 15084#ifdef __cplusplus 15085extern "C" 15086#endif 15087char shl_load (); 15088int 15089main () 15090{ 15091return shl_load (); 15092 ; 15093 return 0; 15094} 15095_ACEOF 15096if ac_fn_c_try_link "$LINENO"; then : 15097 ac_cv_lib_dld_shl_load=yes 15098else 15099 ac_cv_lib_dld_shl_load=no 15100fi 15101rm -f core conftest.err conftest.$ac_objext \ 15102 conftest$ac_exeext conftest.$ac_ext 15103LIBS=$ac_check_lib_save_LIBS 15104fi 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15106$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15107if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15108 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15109else 15110 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15111if test "x$ac_cv_func_dlopen" = xyes; then : 15112 lt_cv_dlopen=dlopen 15113else 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15115$as_echo_n "checking for dlopen in -ldl... " >&6; } 15116if ${ac_cv_lib_dl_dlopen+:} false; then : 15117 $as_echo_n "(cached) " >&6 15118else 15119 ac_check_lib_save_LIBS=$LIBS 15120LIBS="-ldl $LIBS" 15121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15122/* end confdefs.h. */ 15123 15124/* Override any GCC internal prototype to avoid an error. 15125 Use char because int might match the return type of a GCC 15126 builtin and then its argument prototype would still apply. */ 15127#ifdef __cplusplus 15128extern "C" 15129#endif 15130char dlopen (); 15131int 15132main () 15133{ 15134return dlopen (); 15135 ; 15136 return 0; 15137} 15138_ACEOF 15139if ac_fn_c_try_link "$LINENO"; then : 15140 ac_cv_lib_dl_dlopen=yes 15141else 15142 ac_cv_lib_dl_dlopen=no 15143fi 15144rm -f core conftest.err conftest.$ac_objext \ 15145 conftest$ac_exeext conftest.$ac_ext 15146LIBS=$ac_check_lib_save_LIBS 15147fi 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15149$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15150if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15151 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15152else 15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15154$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15155if ${ac_cv_lib_svld_dlopen+:} false; then : 15156 $as_echo_n "(cached) " >&6 15157else 15158 ac_check_lib_save_LIBS=$LIBS 15159LIBS="-lsvld $LIBS" 15160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15161/* end confdefs.h. */ 15162 15163/* Override any GCC internal prototype to avoid an error. 15164 Use char because int might match the return type of a GCC 15165 builtin and then its argument prototype would still apply. */ 15166#ifdef __cplusplus 15167extern "C" 15168#endif 15169char dlopen (); 15170int 15171main () 15172{ 15173return dlopen (); 15174 ; 15175 return 0; 15176} 15177_ACEOF 15178if ac_fn_c_try_link "$LINENO"; then : 15179 ac_cv_lib_svld_dlopen=yes 15180else 15181 ac_cv_lib_svld_dlopen=no 15182fi 15183rm -f core conftest.err conftest.$ac_objext \ 15184 conftest$ac_exeext conftest.$ac_ext 15185LIBS=$ac_check_lib_save_LIBS 15186fi 15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15188$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15189if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15190 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15191else 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15193$as_echo_n "checking for dld_link in -ldld... " >&6; } 15194if ${ac_cv_lib_dld_dld_link+:} false; then : 15195 $as_echo_n "(cached) " >&6 15196else 15197 ac_check_lib_save_LIBS=$LIBS 15198LIBS="-ldld $LIBS" 15199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15200/* end confdefs.h. */ 15201 15202/* Override any GCC internal prototype to avoid an error. 15203 Use char because int might match the return type of a GCC 15204 builtin and then its argument prototype would still apply. */ 15205#ifdef __cplusplus 15206extern "C" 15207#endif 15208char dld_link (); 15209int 15210main () 15211{ 15212return dld_link (); 15213 ; 15214 return 0; 15215} 15216_ACEOF 15217if ac_fn_c_try_link "$LINENO"; then : 15218 ac_cv_lib_dld_dld_link=yes 15219else 15220 ac_cv_lib_dld_dld_link=no 15221fi 15222rm -f core conftest.err conftest.$ac_objext \ 15223 conftest$ac_exeext conftest.$ac_ext 15224LIBS=$ac_check_lib_save_LIBS 15225fi 15226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15227$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15228if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15229 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15230fi 15231 15232 15233fi 15234 15235 15236fi 15237 15238 15239fi 15240 15241 15242fi 15243 15244 15245fi 15246 15247 ;; 15248 esac 15249 15250 if test no = "$lt_cv_dlopen"; then 15251 enable_dlopen=no 15252 else 15253 enable_dlopen=yes 15254 fi 15255 15256 case $lt_cv_dlopen in 15257 dlopen) 15258 save_CPPFLAGS=$CPPFLAGS 15259 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15260 15261 save_LDFLAGS=$LDFLAGS 15262 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15263 15264 save_LIBS=$LIBS 15265 LIBS="$lt_cv_dlopen_libs $LIBS" 15266 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15268$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15269if ${lt_cv_dlopen_self+:} false; then : 15270 $as_echo_n "(cached) " >&6 15271else 15272 if test yes = "$cross_compiling"; then : 15273 lt_cv_dlopen_self=cross 15274else 15275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15276 lt_status=$lt_dlunknown 15277 cat > conftest.$ac_ext <<_LT_EOF 15278#line $LINENO "configure" 15279#include "confdefs.h" 15280 15281#if HAVE_DLFCN_H 15282#include <dlfcn.h> 15283#endif 15284 15285#include <stdio.h> 15286 15287#ifdef RTLD_GLOBAL 15288# define LT_DLGLOBAL RTLD_GLOBAL 15289#else 15290# ifdef DL_GLOBAL 15291# define LT_DLGLOBAL DL_GLOBAL 15292# else 15293# define LT_DLGLOBAL 0 15294# endif 15295#endif 15296 15297/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15298 find out it does not work in some platform. */ 15299#ifndef LT_DLLAZY_OR_NOW 15300# ifdef RTLD_LAZY 15301# define LT_DLLAZY_OR_NOW RTLD_LAZY 15302# else 15303# ifdef DL_LAZY 15304# define LT_DLLAZY_OR_NOW DL_LAZY 15305# else 15306# ifdef RTLD_NOW 15307# define LT_DLLAZY_OR_NOW RTLD_NOW 15308# else 15309# ifdef DL_NOW 15310# define LT_DLLAZY_OR_NOW DL_NOW 15311# else 15312# define LT_DLLAZY_OR_NOW 0 15313# endif 15314# endif 15315# endif 15316# endif 15317#endif 15318 15319/* When -fvisibility=hidden is used, assume the code has been annotated 15320 correspondingly for the symbols needed. */ 15321#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15322int fnord () __attribute__((visibility("default"))); 15323#endif 15324 15325int fnord () { return 42; } 15326int main () 15327{ 15328 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15329 int status = $lt_dlunknown; 15330 15331 if (self) 15332 { 15333 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15334 else 15335 { 15336 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15337 else puts (dlerror ()); 15338 } 15339 /* dlclose (self); */ 15340 } 15341 else 15342 puts (dlerror ()); 15343 15344 return status; 15345} 15346_LT_EOF 15347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15348 (eval $ac_link) 2>&5 15349 ac_status=$? 15350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15351 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15352 (./conftest; exit; ) >&5 2>/dev/null 15353 lt_status=$? 15354 case x$lt_status in 15355 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15356 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15357 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15358 esac 15359 else : 15360 # compilation failed 15361 lt_cv_dlopen_self=no 15362 fi 15363fi 15364rm -fr conftest* 15365 15366 15367fi 15368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15369$as_echo "$lt_cv_dlopen_self" >&6; } 15370 15371 if test yes = "$lt_cv_dlopen_self"; then 15372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15374$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15375if ${lt_cv_dlopen_self_static+:} false; then : 15376 $as_echo_n "(cached) " >&6 15377else 15378 if test yes = "$cross_compiling"; then : 15379 lt_cv_dlopen_self_static=cross 15380else 15381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15382 lt_status=$lt_dlunknown 15383 cat > conftest.$ac_ext <<_LT_EOF 15384#line $LINENO "configure" 15385#include "confdefs.h" 15386 15387#if HAVE_DLFCN_H 15388#include <dlfcn.h> 15389#endif 15390 15391#include <stdio.h> 15392 15393#ifdef RTLD_GLOBAL 15394# define LT_DLGLOBAL RTLD_GLOBAL 15395#else 15396# ifdef DL_GLOBAL 15397# define LT_DLGLOBAL DL_GLOBAL 15398# else 15399# define LT_DLGLOBAL 0 15400# endif 15401#endif 15402 15403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15404 find out it does not work in some platform. */ 15405#ifndef LT_DLLAZY_OR_NOW 15406# ifdef RTLD_LAZY 15407# define LT_DLLAZY_OR_NOW RTLD_LAZY 15408# else 15409# ifdef DL_LAZY 15410# define LT_DLLAZY_OR_NOW DL_LAZY 15411# else 15412# ifdef RTLD_NOW 15413# define LT_DLLAZY_OR_NOW RTLD_NOW 15414# else 15415# ifdef DL_NOW 15416# define LT_DLLAZY_OR_NOW DL_NOW 15417# else 15418# define LT_DLLAZY_OR_NOW 0 15419# endif 15420# endif 15421# endif 15422# endif 15423#endif 15424 15425/* When -fvisibility=hidden is used, assume the code has been annotated 15426 correspondingly for the symbols needed. */ 15427#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15428int fnord () __attribute__((visibility("default"))); 15429#endif 15430 15431int fnord () { return 42; } 15432int main () 15433{ 15434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15435 int status = $lt_dlunknown; 15436 15437 if (self) 15438 { 15439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15440 else 15441 { 15442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15443 else puts (dlerror ()); 15444 } 15445 /* dlclose (self); */ 15446 } 15447 else 15448 puts (dlerror ()); 15449 15450 return status; 15451} 15452_LT_EOF 15453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15454 (eval $ac_link) 2>&5 15455 ac_status=$? 15456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15457 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15458 (./conftest; exit; ) >&5 2>/dev/null 15459 lt_status=$? 15460 case x$lt_status in 15461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15463 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15464 esac 15465 else : 15466 # compilation failed 15467 lt_cv_dlopen_self_static=no 15468 fi 15469fi 15470rm -fr conftest* 15471 15472 15473fi 15474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15475$as_echo "$lt_cv_dlopen_self_static" >&6; } 15476 fi 15477 15478 CPPFLAGS=$save_CPPFLAGS 15479 LDFLAGS=$save_LDFLAGS 15480 LIBS=$save_LIBS 15481 ;; 15482 esac 15483 15484 case $lt_cv_dlopen_self in 15485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15486 *) enable_dlopen_self=unknown ;; 15487 esac 15488 15489 case $lt_cv_dlopen_self_static in 15490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15491 *) enable_dlopen_self_static=unknown ;; 15492 esac 15493fi 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511striplib= 15512old_striplib= 15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15514$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15515if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15517 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15519$as_echo "yes" >&6; } 15520else 15521# FIXME - insert some real tests, host_os isn't really good enough 15522 case $host_os in 15523 darwin*) 15524 if test -n "$STRIP"; then 15525 striplib="$STRIP -x" 15526 old_striplib="$STRIP -S" 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15528$as_echo "yes" >&6; } 15529 else 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15531$as_echo "no" >&6; } 15532 fi 15533 ;; 15534 *) 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15536$as_echo "no" >&6; } 15537 ;; 15538 esac 15539fi 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 # Report what library types will actually be built 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15554$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15556$as_echo "$can_build_shared" >&6; } 15557 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15559$as_echo_n "checking whether to build shared libraries... " >&6; } 15560 test no = "$can_build_shared" && enable_shared=no 15561 15562 # On AIX, shared libraries and static libraries use the same namespace, and 15563 # are all built from PIC. 15564 case $host_os in 15565 aix3*) 15566 test yes = "$enable_shared" && enable_static=no 15567 if test -n "$RANLIB"; then 15568 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15569 postinstall_cmds='$RANLIB $lib' 15570 fi 15571 ;; 15572 15573 aix[4-9]*) 15574 if test ia64 != "$host_cpu"; then 15575 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15576 yes,aix,yes) ;; # shared object as lib.so file only 15577 yes,svr4,*) ;; # shared object as lib.so archive member only 15578 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15579 esac 15580 fi 15581 ;; 15582 esac 15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15584$as_echo "$enable_shared" >&6; } 15585 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15587$as_echo_n "checking whether to build static libraries... " >&6; } 15588 # Make sure either enable_shared or enable_static is yes. 15589 test yes = "$enable_shared" || enable_static=yes 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15591$as_echo "$enable_static" >&6; } 15592 15593 15594 15595 15596fi 15597ac_ext=c 15598ac_cpp='$CPP $CPPFLAGS' 15599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15601ac_compiler_gnu=$ac_cv_c_compiler_gnu 15602 15603CC=$lt_save_CC 15604 15605 if test -n "$CXX" && ( test no != "$CXX" && 15606 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15607 (test g++ != "$CXX"))); then 15608 ac_ext=cpp 15609ac_cpp='$CXXCPP $CPPFLAGS' 15610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15614$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15615if test -z "$CXXCPP"; then 15616 if ${ac_cv_prog_CXXCPP+:} false; then : 15617 $as_echo_n "(cached) " >&6 15618else 15619 # Double quotes because CXXCPP needs to be expanded 15620 for CXXCPP in "$CXX -E" "/lib/cpp" 15621 do 15622 ac_preproc_ok=false 15623for ac_cxx_preproc_warn_flag in '' yes 15624do 15625 # Use a header file that comes with gcc, so configuring glibc 15626 # with a fresh cross-compiler works. 15627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15628 # <limits.h> exists even on freestanding compilers. 15629 # On the NeXT, cc -E runs the code through the compiler's parser, 15630 # not just through cpp. "Syntax error" is here to catch this case. 15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15632/* end confdefs.h. */ 15633#ifdef __STDC__ 15634# include <limits.h> 15635#else 15636# include <assert.h> 15637#endif 15638 Syntax error 15639_ACEOF 15640if ac_fn_cxx_try_cpp "$LINENO"; then : 15641 15642else 15643 # Broken: fails on valid input. 15644continue 15645fi 15646rm -f conftest.err conftest.i conftest.$ac_ext 15647 15648 # OK, works on sane cases. Now check whether nonexistent headers 15649 # can be detected and how. 15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15651/* end confdefs.h. */ 15652#include <ac_nonexistent.h> 15653_ACEOF 15654if ac_fn_cxx_try_cpp "$LINENO"; then : 15655 # Broken: success on invalid input. 15656continue 15657else 15658 # Passes both tests. 15659ac_preproc_ok=: 15660break 15661fi 15662rm -f conftest.err conftest.i conftest.$ac_ext 15663 15664done 15665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15666rm -f conftest.i conftest.err conftest.$ac_ext 15667if $ac_preproc_ok; then : 15668 break 15669fi 15670 15671 done 15672 ac_cv_prog_CXXCPP=$CXXCPP 15673 15674fi 15675 CXXCPP=$ac_cv_prog_CXXCPP 15676else 15677 ac_cv_prog_CXXCPP=$CXXCPP 15678fi 15679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15680$as_echo "$CXXCPP" >&6; } 15681ac_preproc_ok=false 15682for ac_cxx_preproc_warn_flag in '' yes 15683do 15684 # Use a header file that comes with gcc, so configuring glibc 15685 # with a fresh cross-compiler works. 15686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15687 # <limits.h> exists even on freestanding compilers. 15688 # On the NeXT, cc -E runs the code through the compiler's parser, 15689 # not just through cpp. "Syntax error" is here to catch this case. 15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15691/* end confdefs.h. */ 15692#ifdef __STDC__ 15693# include <limits.h> 15694#else 15695# include <assert.h> 15696#endif 15697 Syntax error 15698_ACEOF 15699if ac_fn_cxx_try_cpp "$LINENO"; then : 15700 15701else 15702 # Broken: fails on valid input. 15703continue 15704fi 15705rm -f conftest.err conftest.i conftest.$ac_ext 15706 15707 # OK, works on sane cases. Now check whether nonexistent headers 15708 # can be detected and how. 15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15710/* end confdefs.h. */ 15711#include <ac_nonexistent.h> 15712_ACEOF 15713if ac_fn_cxx_try_cpp "$LINENO"; then : 15714 # Broken: success on invalid input. 15715continue 15716else 15717 # Passes both tests. 15718ac_preproc_ok=: 15719break 15720fi 15721rm -f conftest.err conftest.i conftest.$ac_ext 15722 15723done 15724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15725rm -f conftest.i conftest.err conftest.$ac_ext 15726if $ac_preproc_ok; then : 15727 15728else 15729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15731as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15732See \`config.log' for more details" "$LINENO" 5; } 15733fi 15734 15735ac_ext=c 15736ac_cpp='$CPP $CPPFLAGS' 15737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15739ac_compiler_gnu=$ac_cv_c_compiler_gnu 15740 15741else 15742 _lt_caught_CXX_error=yes 15743fi 15744 15745ac_ext=cpp 15746ac_cpp='$CXXCPP $CPPFLAGS' 15747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15750 15751archive_cmds_need_lc_CXX=no 15752allow_undefined_flag_CXX= 15753always_export_symbols_CXX=no 15754archive_expsym_cmds_CXX= 15755compiler_needs_object_CXX=no 15756export_dynamic_flag_spec_CXX= 15757hardcode_direct_CXX=no 15758hardcode_direct_absolute_CXX=no 15759hardcode_libdir_flag_spec_CXX= 15760hardcode_libdir_separator_CXX= 15761hardcode_minus_L_CXX=no 15762hardcode_shlibpath_var_CXX=unsupported 15763hardcode_automatic_CXX=no 15764inherit_rpath_CXX=no 15765module_cmds_CXX= 15766module_expsym_cmds_CXX= 15767link_all_deplibs_CXX=unknown 15768old_archive_cmds_CXX=$old_archive_cmds 15769reload_flag_CXX=$reload_flag 15770reload_cmds_CXX=$reload_cmds 15771no_undefined_flag_CXX= 15772whole_archive_flag_spec_CXX= 15773enable_shared_with_static_runtimes_CXX=no 15774 15775# Source file extension for C++ test sources. 15776ac_ext=cpp 15777 15778# Object file extension for compiled C++ test sources. 15779objext=o 15780objext_CXX=$objext 15781 15782# No sense in running all these tests if we already determined that 15783# the CXX compiler isn't working. Some variables (like enable_shared) 15784# are currently assumed to apply to all compilers on this platform, 15785# and will be corrupted by setting them based on a non-working compiler. 15786if test yes != "$_lt_caught_CXX_error"; then 15787 # Code to be used in simple compile tests 15788 lt_simple_compile_test_code="int some_variable = 0;" 15789 15790 # Code to be used in simple link tests 15791 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15792 15793 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15794 15795 15796 15797 15798 15799 15800# If no C compiler was specified, use CC. 15801LTCC=${LTCC-"$CC"} 15802 15803# If no C compiler flags were specified, use CFLAGS. 15804LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15805 15806# Allow CC to be a program name with arguments. 15807compiler=$CC 15808 15809 15810 # save warnings/boilerplate of simple test code 15811 ac_outfile=conftest.$ac_objext 15812echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15813eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15814_lt_compiler_boilerplate=`cat conftest.err` 15815$RM conftest* 15816 15817 ac_outfile=conftest.$ac_objext 15818echo "$lt_simple_link_test_code" >conftest.$ac_ext 15819eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15820_lt_linker_boilerplate=`cat conftest.err` 15821$RM -r conftest* 15822 15823 15824 # Allow CC to be a program name with arguments. 15825 lt_save_CC=$CC 15826 lt_save_CFLAGS=$CFLAGS 15827 lt_save_LD=$LD 15828 lt_save_GCC=$GCC 15829 GCC=$GXX 15830 lt_save_with_gnu_ld=$with_gnu_ld 15831 lt_save_path_LD=$lt_cv_path_LD 15832 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15833 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15834 else 15835 $as_unset lt_cv_prog_gnu_ld 15836 fi 15837 if test -n "${lt_cv_path_LDCXX+set}"; then 15838 lt_cv_path_LD=$lt_cv_path_LDCXX 15839 else 15840 $as_unset lt_cv_path_LD 15841 fi 15842 test -z "${LDCXX+set}" || LD=$LDCXX 15843 CC=${CXX-"c++"} 15844 CFLAGS=$CXXFLAGS 15845 compiler=$CC 15846 compiler_CXX=$CC 15847 func_cc_basename $compiler 15848cc_basename=$func_cc_basename_result 15849 15850 15851 if test -n "$compiler"; then 15852 # We don't want -fno-exception when compiling C++ code, so set the 15853 # no_builtin_flag separately 15854 if test yes = "$GXX"; then 15855 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15856 else 15857 lt_prog_compiler_no_builtin_flag_CXX= 15858 fi 15859 15860 if test yes = "$GXX"; then 15861 # Set up default GNU C++ configuration 15862 15863 15864 15865# Check whether --with-gnu-ld was given. 15866if test "${with_gnu_ld+set}" = set; then : 15867 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15868else 15869 with_gnu_ld=no 15870fi 15871 15872ac_prog=ld 15873if test yes = "$GCC"; then 15874 # Check if gcc -print-prog-name=ld gives a path. 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15876$as_echo_n "checking for ld used by $CC... " >&6; } 15877 case $host in 15878 *-*-mingw*) 15879 # gcc leaves a trailing carriage return, which upsets mingw 15880 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15881 *) 15882 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15883 esac 15884 case $ac_prog in 15885 # Accept absolute paths. 15886 [\\/]* | ?:[\\/]*) 15887 re_direlt='/[^/][^/]*/\.\./' 15888 # Canonicalize the pathname of ld 15889 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15890 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15891 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15892 done 15893 test -z "$LD" && LD=$ac_prog 15894 ;; 15895 "") 15896 # If it fails, then pretend we aren't using GCC. 15897 ac_prog=ld 15898 ;; 15899 *) 15900 # If it is relative, then search for the first ld in PATH. 15901 with_gnu_ld=unknown 15902 ;; 15903 esac 15904elif test yes = "$with_gnu_ld"; then 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15906$as_echo_n "checking for GNU ld... " >&6; } 15907else 15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15909$as_echo_n "checking for non-GNU ld... " >&6; } 15910fi 15911if ${lt_cv_path_LD+:} false; then : 15912 $as_echo_n "(cached) " >&6 15913else 15914 if test -z "$LD"; then 15915 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15916 for ac_dir in $PATH; do 15917 IFS=$lt_save_ifs 15918 test -z "$ac_dir" && ac_dir=. 15919 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15920 lt_cv_path_LD=$ac_dir/$ac_prog 15921 # Check to see if the program is GNU ld. I'd rather use --version, 15922 # but apparently some variants of GNU ld only accept -v. 15923 # Break only if it was the GNU/non-GNU ld that we prefer. 15924 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15925 *GNU* | *'with BFD'*) 15926 test no != "$with_gnu_ld" && break 15927 ;; 15928 *) 15929 test yes != "$with_gnu_ld" && break 15930 ;; 15931 esac 15932 fi 15933 done 15934 IFS=$lt_save_ifs 15935else 15936 lt_cv_path_LD=$LD # Let the user override the test with a path. 15937fi 15938fi 15939 15940LD=$lt_cv_path_LD 15941if test -n "$LD"; then 15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15943$as_echo "$LD" >&6; } 15944else 15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15946$as_echo "no" >&6; } 15947fi 15948test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15950$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15951if ${lt_cv_prog_gnu_ld+:} false; then : 15952 $as_echo_n "(cached) " >&6 15953else 15954 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15955case `$LD -v 2>&1 </dev/null` in 15956*GNU* | *'with BFD'*) 15957 lt_cv_prog_gnu_ld=yes 15958 ;; 15959*) 15960 lt_cv_prog_gnu_ld=no 15961 ;; 15962esac 15963fi 15964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15965$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15966with_gnu_ld=$lt_cv_prog_gnu_ld 15967 15968 15969 15970 15971 15972 15973 15974 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15975 # archiving commands below assume that GNU ld is being used. 15976 if test yes = "$with_gnu_ld"; then 15977 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15978 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' 15979 15980 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15981 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15982 15983 # If archive_cmds runs LD, not CC, wlarc should be empty 15984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15985 # investigate it a little bit more. (MM) 15986 wlarc='$wl' 15987 15988 # ancient GNU ld didn't support --whole-archive et. al. 15989 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15990 $GREP 'no-whole-archive' > /dev/null; then 15991 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15992 else 15993 whole_archive_flag_spec_CXX= 15994 fi 15995 else 15996 with_gnu_ld=no 15997 wlarc= 15998 15999 # A generic and very simple default shared library creation 16000 # command for GNU C++ for the case where it uses the native 16001 # linker, instead of GNU ld. If possible, this setting should 16002 # overridden to take advantage of the native linker features on 16003 # the platform it is being used on. 16004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16005 fi 16006 16007 # Commands to make compiler produce verbose output that lists 16008 # what "hidden" libraries, object files and flags are used when 16009 # linking a shared library. 16010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16011 16012 else 16013 GXX=no 16014 with_gnu_ld=no 16015 wlarc= 16016 fi 16017 16018 # PORTME: fill in a description of your system's C++ link characteristics 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16021 ld_shlibs_CXX=yes 16022 case $host_os in 16023 aix3*) 16024 # FIXME: insert proper C++ library support 16025 ld_shlibs_CXX=no 16026 ;; 16027 aix[4-9]*) 16028 if test ia64 = "$host_cpu"; then 16029 # On IA64, the linker does run time linking by default, so we don't 16030 # have to do anything special. 16031 aix_use_runtimelinking=no 16032 exp_sym_flag='-Bexport' 16033 no_entry_flag= 16034 else 16035 aix_use_runtimelinking=no 16036 16037 # Test if we are trying to use run time linking or normal 16038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16039 # have runtime linking enabled, and use it for executables. 16040 # For shared libraries, we enable/disable runtime linking 16041 # depending on the kind of the shared library created - 16042 # when "with_aix_soname,aix_use_runtimelinking" is: 16043 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16044 # "aix,yes" lib.so shared, rtl:yes, for executables 16045 # lib.a static archive 16046 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16047 # lib.a(lib.so.V) shared, rtl:no, for executables 16048 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16049 # lib.a(lib.so.V) shared, rtl:no 16050 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16051 # lib.a static archive 16052 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16053 for ld_flag in $LDFLAGS; do 16054 case $ld_flag in 16055 *-brtl*) 16056 aix_use_runtimelinking=yes 16057 break 16058 ;; 16059 esac 16060 done 16061 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16062 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16063 # so we don't have lib.a shared libs to link our executables. 16064 # We have to force runtime linking in this case. 16065 aix_use_runtimelinking=yes 16066 LDFLAGS="$LDFLAGS -Wl,-brtl" 16067 fi 16068 ;; 16069 esac 16070 16071 exp_sym_flag='-bexport' 16072 no_entry_flag='-bnoentry' 16073 fi 16074 16075 # When large executables or shared objects are built, AIX ld can 16076 # have problems creating the table of contents. If linking a library 16077 # or program results in "error TOC overflow" add -mminimal-toc to 16078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16080 16081 archive_cmds_CXX='' 16082 hardcode_direct_CXX=yes 16083 hardcode_direct_absolute_CXX=yes 16084 hardcode_libdir_separator_CXX=':' 16085 link_all_deplibs_CXX=yes 16086 file_list_spec_CXX='$wl-f,' 16087 case $with_aix_soname,$aix_use_runtimelinking in 16088 aix,*) ;; # no import file 16089 svr4,* | *,yes) # use import file 16090 # The Import File defines what to hardcode. 16091 hardcode_direct_CXX=no 16092 hardcode_direct_absolute_CXX=no 16093 ;; 16094 esac 16095 16096 if test yes = "$GXX"; then 16097 case $host_os in aix4.[012]|aix4.[012].*) 16098 # We only want to do this on AIX 4.2 and lower, the check 16099 # below for broken collect2 doesn't work under 4.3+ 16100 collect2name=`$CC -print-prog-name=collect2` 16101 if test -f "$collect2name" && 16102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16103 then 16104 # We have reworked collect2 16105 : 16106 else 16107 # We have old collect2 16108 hardcode_direct_CXX=unsupported 16109 # It fails to find uninstalled libraries when the uninstalled 16110 # path is not listed in the libpath. Setting hardcode_minus_L 16111 # to unsupported forces relinking 16112 hardcode_minus_L_CXX=yes 16113 hardcode_libdir_flag_spec_CXX='-L$libdir' 16114 hardcode_libdir_separator_CXX= 16115 fi 16116 esac 16117 shared_flag='-shared' 16118 if test yes = "$aix_use_runtimelinking"; then 16119 shared_flag=$shared_flag' $wl-G' 16120 fi 16121 # Need to ensure runtime linking is disabled for the traditional 16122 # shared library, or the linker may eventually find shared libraries 16123 # /with/ Import File - we do not want to mix them. 16124 shared_flag_aix='-shared' 16125 shared_flag_svr4='-shared $wl-G' 16126 else 16127 # not using gcc 16128 if test ia64 = "$host_cpu"; then 16129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16130 # chokes on -Wl,-G. The following line is correct: 16131 shared_flag='-G' 16132 else 16133 if test yes = "$aix_use_runtimelinking"; then 16134 shared_flag='$wl-G' 16135 else 16136 shared_flag='$wl-bM:SRE' 16137 fi 16138 shared_flag_aix='$wl-bM:SRE' 16139 shared_flag_svr4='$wl-G' 16140 fi 16141 fi 16142 16143 export_dynamic_flag_spec_CXX='$wl-bexpall' 16144 # It seems that -bexpall does not export symbols beginning with 16145 # underscore (_), so it is better to generate a list of symbols to 16146 # export. 16147 always_export_symbols_CXX=yes 16148 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16149 # Warning - without using the other runtime loading flags (-brtl), 16150 # -berok will link without error, but may produce a broken library. 16151 # The "-G" linker flag allows undefined symbols. 16152 no_undefined_flag_CXX='-bernotok' 16153 # Determine the default libpath from the value encoded in an empty 16154 # executable. 16155 if test set = "${lt_cv_aix_libpath+set}"; then 16156 aix_libpath=$lt_cv_aix_libpath 16157else 16158 if ${lt_cv_aix_libpath__CXX+:} false; then : 16159 $as_echo_n "(cached) " >&6 16160else 16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16162/* end confdefs.h. */ 16163 16164int 16165main () 16166{ 16167 16168 ; 16169 return 0; 16170} 16171_ACEOF 16172if ac_fn_cxx_try_link "$LINENO"; then : 16173 16174 lt_aix_libpath_sed=' 16175 /Import File Strings/,/^$/ { 16176 /^0/ { 16177 s/^0 *\([^ ]*\) *$/\1/ 16178 p 16179 } 16180 }' 16181 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16182 # Check for a 64-bit object if we didn't find anything. 16183 if test -z "$lt_cv_aix_libpath__CXX"; then 16184 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16185 fi 16186fi 16187rm -f core conftest.err conftest.$ac_objext \ 16188 conftest$ac_exeext conftest.$ac_ext 16189 if test -z "$lt_cv_aix_libpath__CXX"; then 16190 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16191 fi 16192 16193fi 16194 16195 aix_libpath=$lt_cv_aix_libpath__CXX 16196fi 16197 16198 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16199 16200 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 16201 else 16202 if test ia64 = "$host_cpu"; then 16203 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 16204 allow_undefined_flag_CXX="-z nodefs" 16205 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" 16206 else 16207 # Determine the default libpath from the value encoded in an 16208 # empty executable. 16209 if test set = "${lt_cv_aix_libpath+set}"; then 16210 aix_libpath=$lt_cv_aix_libpath 16211else 16212 if ${lt_cv_aix_libpath__CXX+:} false; then : 16213 $as_echo_n "(cached) " >&6 16214else 16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16216/* end confdefs.h. */ 16217 16218int 16219main () 16220{ 16221 16222 ; 16223 return 0; 16224} 16225_ACEOF 16226if ac_fn_cxx_try_link "$LINENO"; then : 16227 16228 lt_aix_libpath_sed=' 16229 /Import File Strings/,/^$/ { 16230 /^0/ { 16231 s/^0 *\([^ ]*\) *$/\1/ 16232 p 16233 } 16234 }' 16235 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16236 # Check for a 64-bit object if we didn't find anything. 16237 if test -z "$lt_cv_aix_libpath__CXX"; then 16238 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16239 fi 16240fi 16241rm -f core conftest.err conftest.$ac_objext \ 16242 conftest$ac_exeext conftest.$ac_ext 16243 if test -z "$lt_cv_aix_libpath__CXX"; then 16244 lt_cv_aix_libpath__CXX=/usr/lib:/lib 16245 fi 16246 16247fi 16248 16249 aix_libpath=$lt_cv_aix_libpath__CXX 16250fi 16251 16252 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 16253 # Warning - without using the other run time loading flags, 16254 # -berok will link without error, but may produce a broken library. 16255 no_undefined_flag_CXX=' $wl-bernotok' 16256 allow_undefined_flag_CXX=' $wl-berok' 16257 if test yes = "$with_gnu_ld"; then 16258 # We only use this code for GNU lds that support --whole-archive. 16259 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16260 else 16261 # Exported symbols can be pulled into shared objects from archives 16262 whole_archive_flag_spec_CXX='$convenience' 16263 fi 16264 archive_cmds_need_lc_CXX=yes 16265 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16266 # -brtl affects multiple linker settings, -berok does not and is overridden later 16267 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16268 if test svr4 != "$with_aix_soname"; then 16269 # This is similar to how AIX traditionally builds its shared 16270 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 16271 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16272 fi 16273 if test aix != "$with_aix_soname"; then 16274 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16275 else 16276 # used by -dlpreopen to get the symbols 16277 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16278 fi 16279 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 16280 fi 16281 fi 16282 ;; 16283 16284 beos*) 16285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16286 allow_undefined_flag_CXX=unsupported 16287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16288 # support --undefined. This deserves some investigation. FIXME 16289 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16290 else 16291 ld_shlibs_CXX=no 16292 fi 16293 ;; 16294 16295 chorus*) 16296 case $cc_basename in 16297 *) 16298 # FIXME: insert proper C++ library support 16299 ld_shlibs_CXX=no 16300 ;; 16301 esac 16302 ;; 16303 16304 cygwin* | mingw* | pw32* | cegcc*) 16305 case $GXX,$cc_basename in 16306 ,cl* | no,cl*) 16307 # Native MSVC 16308 # hardcode_libdir_flag_spec is actually meaningless, as there is 16309 # no search path for DLLs. 16310 hardcode_libdir_flag_spec_CXX=' ' 16311 allow_undefined_flag_CXX=unsupported 16312 always_export_symbols_CXX=yes 16313 file_list_spec_CXX='@' 16314 # Tell ltmain to make .lib files, not .a files. 16315 libext=lib 16316 # Tell ltmain to make .dll files, not .so files. 16317 shrext_cmds=.dll 16318 # FIXME: Setting linknames here is a bad hack. 16319 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16320 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16321 cp "$export_symbols" "$output_objdir/$soname.def"; 16322 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16323 else 16324 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16325 fi~ 16326 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16327 linknames=' 16328 # The linker will not automatically build a static lib if we build a DLL. 16329 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16330 enable_shared_with_static_runtimes_CXX=yes 16331 # Don't use ranlib 16332 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16333 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16334 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16335 case $lt_outputfile in 16336 *.exe|*.EXE) ;; 16337 *) 16338 lt_outputfile=$lt_outputfile.exe 16339 lt_tool_outputfile=$lt_tool_outputfile.exe 16340 ;; 16341 esac~ 16342 func_to_tool_file "$lt_outputfile"~ 16343 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16344 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16345 $RM "$lt_outputfile.manifest"; 16346 fi' 16347 ;; 16348 *) 16349 # g++ 16350 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16351 # as there is no search path for DLLs. 16352 hardcode_libdir_flag_spec_CXX='-L$libdir' 16353 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16354 allow_undefined_flag_CXX=unsupported 16355 always_export_symbols_CXX=no 16356 enable_shared_with_static_runtimes_CXX=yes 16357 16358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16359 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' 16360 # If the export-symbols file already is a .def file, use it as 16361 # is; otherwise, prepend EXPORTS... 16362 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16363 cp $export_symbols $output_objdir/$soname.def; 16364 else 16365 echo EXPORTS > $output_objdir/$soname.def; 16366 cat $export_symbols >> $output_objdir/$soname.def; 16367 fi~ 16368 $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' 16369 else 16370 ld_shlibs_CXX=no 16371 fi 16372 ;; 16373 esac 16374 ;; 16375 darwin* | rhapsody*) 16376 16377 16378 archive_cmds_need_lc_CXX=no 16379 hardcode_direct_CXX=no 16380 hardcode_automatic_CXX=yes 16381 hardcode_shlibpath_var_CXX=unsupported 16382 if test yes = "$lt_cv_ld_force_load"; then 16383 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\"`' 16384 16385 else 16386 whole_archive_flag_spec_CXX='' 16387 fi 16388 link_all_deplibs_CXX=yes 16389 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16390 case $cc_basename in 16391 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16392 *) _lt_dar_can_shared=$GCC ;; 16393 esac 16394 if test yes = "$_lt_dar_can_shared"; then 16395 output_verbose_link_cmd=func_echo_all 16396 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16397 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16398 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 16399 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" 16400 if test yes != "$lt_cv_apple_cc_single_mod"; then 16401 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 16402 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" 16403 fi 16404 16405 else 16406 ld_shlibs_CXX=no 16407 fi 16408 16409 ;; 16410 16411 os2*) 16412 hardcode_libdir_flag_spec_CXX='-L$libdir' 16413 hardcode_minus_L_CXX=yes 16414 allow_undefined_flag_CXX=unsupported 16415 shrext_cmds=.dll 16416 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16417 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16418 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16419 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16420 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16421 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16422 emximp -o $lib $output_objdir/$libname.def' 16423 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16424 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16425 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16426 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16427 prefix_cmds="$SED"~ 16428 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16429 prefix_cmds="$prefix_cmds -e 1d"; 16430 fi~ 16431 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16432 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16433 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16434 emximp -o $lib $output_objdir/$libname.def' 16435 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16436 enable_shared_with_static_runtimes_CXX=yes 16437 ;; 16438 16439 dgux*) 16440 case $cc_basename in 16441 ec++*) 16442 # FIXME: insert proper C++ library support 16443 ld_shlibs_CXX=no 16444 ;; 16445 ghcx*) 16446 # Green Hills C++ Compiler 16447 # FIXME: insert proper C++ library support 16448 ld_shlibs_CXX=no 16449 ;; 16450 *) 16451 # FIXME: insert proper C++ library support 16452 ld_shlibs_CXX=no 16453 ;; 16454 esac 16455 ;; 16456 16457 freebsd2.*) 16458 # C++ shared libraries reported to be fairly broken before 16459 # switch to ELF 16460 ld_shlibs_CXX=no 16461 ;; 16462 16463 freebsd-elf*) 16464 archive_cmds_need_lc_CXX=no 16465 ;; 16466 16467 freebsd* | dragonfly*) 16468 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16469 # conventions 16470 ld_shlibs_CXX=yes 16471 ;; 16472 16473 haiku*) 16474 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16475 link_all_deplibs_CXX=yes 16476 ;; 16477 16478 hpux9*) 16479 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16480 hardcode_libdir_separator_CXX=: 16481 export_dynamic_flag_spec_CXX='$wl-E' 16482 hardcode_direct_CXX=yes 16483 hardcode_minus_L_CXX=yes # Not in the search PATH, 16484 # but as the default 16485 # location of the library. 16486 16487 case $cc_basename in 16488 CC*) 16489 # FIXME: insert proper C++ library support 16490 ld_shlibs_CXX=no 16491 ;; 16492 aCC*) 16493 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16494 # Commands to make compiler produce verbose output that lists 16495 # what "hidden" libraries, object files and flags are used when 16496 # linking a shared library. 16497 # 16498 # There doesn't appear to be a way to prevent this compiler from 16499 # explicitly linking system object files so we need to strip them 16500 # from the output so that they don't get included in the library 16501 # dependencies. 16502 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"' 16503 ;; 16504 *) 16505 if test yes = "$GXX"; then 16506 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16507 else 16508 # FIXME: insert proper C++ library support 16509 ld_shlibs_CXX=no 16510 fi 16511 ;; 16512 esac 16513 ;; 16514 16515 hpux10*|hpux11*) 16516 if test no = "$with_gnu_ld"; then 16517 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16518 hardcode_libdir_separator_CXX=: 16519 16520 case $host_cpu in 16521 hppa*64*|ia64*) 16522 ;; 16523 *) 16524 export_dynamic_flag_spec_CXX='$wl-E' 16525 ;; 16526 esac 16527 fi 16528 case $host_cpu in 16529 hppa*64*|ia64*) 16530 hardcode_direct_CXX=no 16531 hardcode_shlibpath_var_CXX=no 16532 ;; 16533 *) 16534 hardcode_direct_CXX=yes 16535 hardcode_direct_absolute_CXX=yes 16536 hardcode_minus_L_CXX=yes # Not in the search PATH, 16537 # but as the default 16538 # location of the library. 16539 ;; 16540 esac 16541 16542 case $cc_basename in 16543 CC*) 16544 # FIXME: insert proper C++ library support 16545 ld_shlibs_CXX=no 16546 ;; 16547 aCC*) 16548 case $host_cpu in 16549 hppa*64*) 16550 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16551 ;; 16552 ia64*) 16553 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16554 ;; 16555 *) 16556 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16557 ;; 16558 esac 16559 # Commands to make compiler produce verbose output that lists 16560 # what "hidden" libraries, object files and flags are used when 16561 # linking a shared library. 16562 # 16563 # There doesn't appear to be a way to prevent this compiler from 16564 # explicitly linking system object files so we need to strip them 16565 # from the output so that they don't get included in the library 16566 # dependencies. 16567 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"' 16568 ;; 16569 *) 16570 if test yes = "$GXX"; then 16571 if test no = "$with_gnu_ld"; then 16572 case $host_cpu in 16573 hppa*64*) 16574 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16575 ;; 16576 ia64*) 16577 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16578 ;; 16579 *) 16580 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16581 ;; 16582 esac 16583 fi 16584 else 16585 # FIXME: insert proper C++ library support 16586 ld_shlibs_CXX=no 16587 fi 16588 ;; 16589 esac 16590 ;; 16591 16592 interix[3-9]*) 16593 hardcode_direct_CXX=no 16594 hardcode_shlibpath_var_CXX=no 16595 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16596 export_dynamic_flag_spec_CXX='$wl-E' 16597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16598 # Instead, shared libraries are loaded at an image base (0x10000000 by 16599 # default) and relocated if they conflict, which is a slow very memory 16600 # consuming and fragmenting process. To avoid this, we pick a random, 16601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16602 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16603 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' 16604 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' 16605 ;; 16606 irix5* | irix6*) 16607 case $cc_basename in 16608 CC*) 16609 # SGI C++ 16610 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' 16611 16612 # Archives containing C++ object files must be created using 16613 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16614 # necessary to make sure instantiated templates are included 16615 # in the archive. 16616 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16617 ;; 16618 *) 16619 if test yes = "$GXX"; then 16620 if test no = "$with_gnu_ld"; then 16621 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16622 else 16623 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 16624 fi 16625 fi 16626 link_all_deplibs_CXX=yes 16627 ;; 16628 esac 16629 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16630 hardcode_libdir_separator_CXX=: 16631 inherit_rpath_CXX=yes 16632 ;; 16633 16634 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16635 case $cc_basename in 16636 KCC*) 16637 # Kuck and Associates, Inc. (KAI) C++ Compiler 16638 16639 # KCC will only create a shared library if the output file 16640 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16641 # to its proper name (with version) after linking. 16642 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' 16643 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' 16644 # Commands to make compiler produce verbose output that lists 16645 # what "hidden" libraries, object files and flags are used when 16646 # linking a shared library. 16647 # 16648 # There doesn't appear to be a way to prevent this compiler from 16649 # explicitly linking system object files so we need to strip them 16650 # from the output so that they don't get included in the library 16651 # dependencies. 16652 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"' 16653 16654 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16655 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16656 16657 # Archives containing C++ object files must be created using 16658 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16659 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16660 ;; 16661 icpc* | ecpc* ) 16662 # Intel C++ 16663 with_gnu_ld=yes 16664 # version 8.0 and above of icpc choke on multiply defined symbols 16665 # if we add $predep_objects and $postdep_objects, however 7.1 and 16666 # earlier do not add the objects themselves. 16667 case `$CC -V 2>&1` in 16668 *"Version 7."*) 16669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16670 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' 16671 ;; 16672 *) # Version 8.0 or newer 16673 tmp_idyn= 16674 case $host_cpu in 16675 ia64*) tmp_idyn=' -i_dynamic';; 16676 esac 16677 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16678 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' 16679 ;; 16680 esac 16681 archive_cmds_need_lc_CXX=no 16682 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16683 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16684 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16685 ;; 16686 pgCC* | pgcpp*) 16687 # Portland Group C++ compiler 16688 case `$CC -V` in 16689 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16690 prelink_cmds_CXX='tpldir=Template.dir~ 16691 rm -rf $tpldir~ 16692 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16693 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16694 old_archive_cmds_CXX='tpldir=Template.dir~ 16695 rm -rf $tpldir~ 16696 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16697 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16698 $RANLIB $oldlib' 16699 archive_cmds_CXX='tpldir=Template.dir~ 16700 rm -rf $tpldir~ 16701 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16702 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16703 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16704 rm -rf $tpldir~ 16705 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16706 $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' 16707 ;; 16708 *) # Version 6 and above use weak symbols 16709 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16710 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' 16711 ;; 16712 esac 16713 16714 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16715 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16716 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' 16717 ;; 16718 cxx*) 16719 # Compaq C++ 16720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16721 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' 16722 16723 runpath_var=LD_RUN_PATH 16724 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16725 hardcode_libdir_separator_CXX=: 16726 16727 # Commands to make compiler produce verbose output that lists 16728 # what "hidden" libraries, object files and flags are used when 16729 # linking a shared library. 16730 # 16731 # There doesn't appear to be a way to prevent this compiler from 16732 # explicitly linking system object files so we need to strip them 16733 # from the output so that they don't get included in the library 16734 # dependencies. 16735 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' 16736 ;; 16737 xl* | mpixl* | bgxl*) 16738 # IBM XL 8.0 on PPC, with GNU ld 16739 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16740 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16741 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16742 if test yes = "$supports_anon_versioning"; then 16743 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16745 echo "local: *; };" >> $output_objdir/$libname.ver~ 16746 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16747 fi 16748 ;; 16749 *) 16750 case `$CC -V 2>&1 | sed 5q` in 16751 *Sun\ C*) 16752 # Sun C++ 5.9 16753 no_undefined_flag_CXX=' -zdefs' 16754 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16755 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' 16756 hardcode_libdir_flag_spec_CXX='-R$libdir' 16757 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' 16758 compiler_needs_object_CXX=yes 16759 16760 # Not sure whether something based on 16761 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16762 # would be better. 16763 output_verbose_link_cmd='func_echo_all' 16764 16765 # Archives containing C++ object files must be created using 16766 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16767 # necessary to make sure instantiated templates are included 16768 # in the archive. 16769 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16770 ;; 16771 esac 16772 ;; 16773 esac 16774 ;; 16775 16776 lynxos*) 16777 # FIXME: insert proper C++ library support 16778 ld_shlibs_CXX=no 16779 ;; 16780 16781 m88k*) 16782 # FIXME: insert proper C++ library support 16783 ld_shlibs_CXX=no 16784 ;; 16785 16786 mvs*) 16787 case $cc_basename in 16788 cxx*) 16789 # FIXME: insert proper C++ library support 16790 ld_shlibs_CXX=no 16791 ;; 16792 *) 16793 # FIXME: insert proper C++ library support 16794 ld_shlibs_CXX=no 16795 ;; 16796 esac 16797 ;; 16798 16799 netbsd*) 16800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16801 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16802 wlarc= 16803 hardcode_libdir_flag_spec_CXX='-R$libdir' 16804 hardcode_direct_CXX=yes 16805 hardcode_shlibpath_var_CXX=no 16806 fi 16807 # Workaround some broken pre-1.5 toolchains 16808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16809 ;; 16810 16811 *nto* | *qnx*) 16812 ld_shlibs_CXX=yes 16813 ;; 16814 16815 openbsd* | bitrig*) 16816 if test -f /usr/libexec/ld.so; then 16817 hardcode_direct_CXX=yes 16818 hardcode_shlibpath_var_CXX=no 16819 hardcode_direct_absolute_CXX=yes 16820 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16821 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16823 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16824 export_dynamic_flag_spec_CXX='$wl-E' 16825 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16826 fi 16827 output_verbose_link_cmd=func_echo_all 16828 else 16829 ld_shlibs_CXX=no 16830 fi 16831 ;; 16832 16833 osf3* | osf4* | osf5*) 16834 case $cc_basename in 16835 KCC*) 16836 # Kuck and Associates, Inc. (KAI) C++ Compiler 16837 16838 # KCC will only create a shared library if the output file 16839 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16840 # to its proper name (with version) after linking. 16841 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' 16842 16843 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16844 hardcode_libdir_separator_CXX=: 16845 16846 # Archives containing C++ object files must be created using 16847 # the KAI C++ compiler. 16848 case $host in 16849 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16850 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16851 esac 16852 ;; 16853 RCC*) 16854 # Rational C++ 2.4.1 16855 # FIXME: insert proper C++ library support 16856 ld_shlibs_CXX=no 16857 ;; 16858 cxx*) 16859 case $host in 16860 osf3*) 16861 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16862 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' 16863 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16864 ;; 16865 *) 16866 allow_undefined_flag_CXX=' -expect_unresolved \*' 16867 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' 16868 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16869 echo "-hidden">> $lib.exp~ 16870 $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~ 16871 $RM $lib.exp' 16872 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16873 ;; 16874 esac 16875 16876 hardcode_libdir_separator_CXX=: 16877 16878 # Commands to make compiler produce verbose output that lists 16879 # what "hidden" libraries, object files and flags are used when 16880 # linking a shared library. 16881 # 16882 # There doesn't appear to be a way to prevent this compiler from 16883 # explicitly linking system object files so we need to strip them 16884 # from the output so that they don't get included in the library 16885 # dependencies. 16886 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"' 16887 ;; 16888 *) 16889 if test yes,no = "$GXX,$with_gnu_ld"; then 16890 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16891 case $host in 16892 osf3*) 16893 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' 16894 ;; 16895 *) 16896 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16897 ;; 16898 esac 16899 16900 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16901 hardcode_libdir_separator_CXX=: 16902 16903 # Commands to make compiler produce verbose output that lists 16904 # what "hidden" libraries, object files and flags are used when 16905 # linking a shared library. 16906 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16907 16908 else 16909 # FIXME: insert proper C++ library support 16910 ld_shlibs_CXX=no 16911 fi 16912 ;; 16913 esac 16914 ;; 16915 16916 psos*) 16917 # FIXME: insert proper C++ library support 16918 ld_shlibs_CXX=no 16919 ;; 16920 16921 sunos4*) 16922 case $cc_basename in 16923 CC*) 16924 # Sun C++ 4.x 16925 # FIXME: insert proper C++ library support 16926 ld_shlibs_CXX=no 16927 ;; 16928 lcc*) 16929 # Lucid 16930 # FIXME: insert proper C++ library support 16931 ld_shlibs_CXX=no 16932 ;; 16933 *) 16934 # FIXME: insert proper C++ library support 16935 ld_shlibs_CXX=no 16936 ;; 16937 esac 16938 ;; 16939 16940 solaris*) 16941 case $cc_basename in 16942 CC* | sunCC*) 16943 # Sun C++ 4.2, 5.x and Centerline C++ 16944 archive_cmds_need_lc_CXX=yes 16945 no_undefined_flag_CXX=' -zdefs' 16946 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16947 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16948 $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' 16949 16950 hardcode_libdir_flag_spec_CXX='-R$libdir' 16951 hardcode_shlibpath_var_CXX=no 16952 case $host_os in 16953 solaris2.[0-5] | solaris2.[0-5].*) ;; 16954 *) 16955 # The compiler driver will combine and reorder linker options, 16956 # but understands '-z linker_flag'. 16957 # Supported since Solaris 2.6 (maybe 2.5.1?) 16958 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16959 ;; 16960 esac 16961 link_all_deplibs_CXX=yes 16962 16963 output_verbose_link_cmd='func_echo_all' 16964 16965 # Archives containing C++ object files must be created using 16966 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16967 # necessary to make sure instantiated templates are included 16968 # in the archive. 16969 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16970 ;; 16971 gcx*) 16972 # Green Hills C++ Compiler 16973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16974 16975 # The C++ compiler must be used to create the archive. 16976 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16977 ;; 16978 *) 16979 # GNU C++ compiler with Solaris linker 16980 if test yes,no = "$GXX,$with_gnu_ld"; then 16981 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16982 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16983 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16984 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16985 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16986 16987 # Commands to make compiler produce verbose output that lists 16988 # what "hidden" libraries, object files and flags are used when 16989 # linking a shared library. 16990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16991 else 16992 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16993 # platform. 16994 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16995 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16996 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16997 16998 # Commands to make compiler produce verbose output that lists 16999 # what "hidden" libraries, object files and flags are used when 17000 # linking a shared library. 17001 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17002 fi 17003 17004 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 17005 case $host_os in 17006 solaris2.[0-5] | solaris2.[0-5].*) ;; 17007 *) 17008 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17009 ;; 17010 esac 17011 fi 17012 ;; 17013 esac 17014 ;; 17015 17016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17017 no_undefined_flag_CXX='$wl-z,text' 17018 archive_cmds_need_lc_CXX=no 17019 hardcode_shlibpath_var_CXX=no 17020 runpath_var='LD_RUN_PATH' 17021 17022 case $cc_basename in 17023 CC*) 17024 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17025 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17026 ;; 17027 *) 17028 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17029 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17030 ;; 17031 esac 17032 ;; 17033 17034 sysv5* | sco3.2v5* | sco5v6*) 17035 # Note: We CANNOT use -z defs as we might desire, because we do not 17036 # link with -lc, and that would cause any symbols used from libc to 17037 # always be unresolved, which means just about no library would 17038 # ever link correctly. If we're not using GNU ld we use -z text 17039 # though, which does catch some bad symbols but isn't as heavy-handed 17040 # as -z defs. 17041 no_undefined_flag_CXX='$wl-z,text' 17042 allow_undefined_flag_CXX='$wl-z,nodefs' 17043 archive_cmds_need_lc_CXX=no 17044 hardcode_shlibpath_var_CXX=no 17045 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 17046 hardcode_libdir_separator_CXX=':' 17047 link_all_deplibs_CXX=yes 17048 export_dynamic_flag_spec_CXX='$wl-Bexport' 17049 runpath_var='LD_RUN_PATH' 17050 17051 case $cc_basename in 17052 CC*) 17053 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17054 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17055 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 17056 '"$old_archive_cmds_CXX" 17057 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 17058 '"$reload_cmds_CXX" 17059 ;; 17060 *) 17061 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17062 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17063 ;; 17064 esac 17065 ;; 17066 17067 tandem*) 17068 case $cc_basename in 17069 NCC*) 17070 # NonStop-UX NCC 3.20 17071 # FIXME: insert proper C++ library support 17072 ld_shlibs_CXX=no 17073 ;; 17074 *) 17075 # FIXME: insert proper C++ library support 17076 ld_shlibs_CXX=no 17077 ;; 17078 esac 17079 ;; 17080 17081 vxworks*) 17082 # FIXME: insert proper C++ library support 17083 ld_shlibs_CXX=no 17084 ;; 17085 17086 *) 17087 # FIXME: insert proper C++ library support 17088 ld_shlibs_CXX=no 17089 ;; 17090 esac 17091 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17093$as_echo "$ld_shlibs_CXX" >&6; } 17094 test no = "$ld_shlibs_CXX" && can_build_shared=no 17095 17096 GCC_CXX=$GXX 17097 LD_CXX=$LD 17098 17099 ## CAVEAT EMPTOR: 17100 ## There is no encapsulation within the following macros, do not change 17101 ## the running order or otherwise move them around unless you know exactly 17102 ## what you are doing... 17103 # Dependencies to place before and after the object being linked: 17104predep_objects_CXX= 17105postdep_objects_CXX= 17106predeps_CXX= 17107postdeps_CXX= 17108compiler_lib_search_path_CXX= 17109 17110cat > conftest.$ac_ext <<_LT_EOF 17111class Foo 17112{ 17113public: 17114 Foo (void) { a = 0; } 17115private: 17116 int a; 17117}; 17118_LT_EOF 17119 17120 17121_lt_libdeps_save_CFLAGS=$CFLAGS 17122case "$CC $CFLAGS " in #( 17123*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 17124*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 17125*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 17126esac 17127 17128if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17129 (eval $ac_compile) 2>&5 17130 ac_status=$? 17131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17132 test $ac_status = 0; }; then 17133 # Parse the compiler output and extract the necessary 17134 # objects, libraries and library flags. 17135 17136 # Sentinel used to keep track of whether or not we are before 17137 # the conftest object file. 17138 pre_test_object_deps_done=no 17139 17140 for p in `eval "$output_verbose_link_cmd"`; do 17141 case $prev$p in 17142 17143 -L* | -R* | -l*) 17144 # Some compilers place space between "-{L,R}" and the path. 17145 # Remove the space. 17146 if test x-L = "$p" || 17147 test x-R = "$p"; then 17148 prev=$p 17149 continue 17150 fi 17151 17152 # Expand the sysroot to ease extracting the directories later. 17153 if test -z "$prev"; then 17154 case $p in 17155 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 17156 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 17157 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 17158 esac 17159 fi 17160 case $p in 17161 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 17162 esac 17163 if test no = "$pre_test_object_deps_done"; then 17164 case $prev in 17165 -L | -R) 17166 # Internal compiler library paths should come after those 17167 # provided the user. The postdeps already come after the 17168 # user supplied libs so there is no need to process them. 17169 if test -z "$compiler_lib_search_path_CXX"; then 17170 compiler_lib_search_path_CXX=$prev$p 17171 else 17172 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 17173 fi 17174 ;; 17175 # The "-l" case would never come before the object being 17176 # linked, so don't bother handling this case. 17177 esac 17178 else 17179 if test -z "$postdeps_CXX"; then 17180 postdeps_CXX=$prev$p 17181 else 17182 postdeps_CXX="${postdeps_CXX} $prev$p" 17183 fi 17184 fi 17185 prev= 17186 ;; 17187 17188 *.lto.$objext) ;; # Ignore GCC LTO objects 17189 *.$objext) 17190 # This assumes that the test object file only shows up 17191 # once in the compiler output. 17192 if test "$p" = "conftest.$objext"; then 17193 pre_test_object_deps_done=yes 17194 continue 17195 fi 17196 17197 if test no = "$pre_test_object_deps_done"; then 17198 if test -z "$predep_objects_CXX"; then 17199 predep_objects_CXX=$p 17200 else 17201 predep_objects_CXX="$predep_objects_CXX $p" 17202 fi 17203 else 17204 if test -z "$postdep_objects_CXX"; then 17205 postdep_objects_CXX=$p 17206 else 17207 postdep_objects_CXX="$postdep_objects_CXX $p" 17208 fi 17209 fi 17210 ;; 17211 17212 *) ;; # Ignore the rest. 17213 17214 esac 17215 done 17216 17217 # Clean up. 17218 rm -f a.out a.exe 17219else 17220 echo "libtool.m4: error: problem compiling CXX test program" 17221fi 17222 17223$RM -f confest.$objext 17224CFLAGS=$_lt_libdeps_save_CFLAGS 17225 17226# PORTME: override above test on systems where it is broken 17227case $host_os in 17228interix[3-9]*) 17229 # Interix 3.5 installs completely hosed .la files for C++, so rather than 17230 # hack all around it, let's just trust "g++" to DTRT. 17231 predep_objects_CXX= 17232 postdep_objects_CXX= 17233 postdeps_CXX= 17234 ;; 17235esac 17236 17237 17238case " $postdeps_CXX " in 17239*" -lc "*) archive_cmds_need_lc_CXX=no ;; 17240esac 17241 compiler_lib_search_dirs_CXX= 17242if test -n "${compiler_lib_search_path_CXX}"; then 17243 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 17244fi 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 lt_prog_compiler_wl_CXX= 17277lt_prog_compiler_pic_CXX= 17278lt_prog_compiler_static_CXX= 17279 17280 17281 # C++ specific cases for pic, static, wl, etc. 17282 if test yes = "$GXX"; then 17283 lt_prog_compiler_wl_CXX='-Wl,' 17284 lt_prog_compiler_static_CXX='-static' 17285 17286 case $host_os in 17287 aix*) 17288 # All AIX code is PIC. 17289 if test ia64 = "$host_cpu"; then 17290 # AIX 5 now supports IA64 processor 17291 lt_prog_compiler_static_CXX='-Bstatic' 17292 fi 17293 lt_prog_compiler_pic_CXX='-fPIC' 17294 ;; 17295 17296 amigaos*) 17297 case $host_cpu in 17298 powerpc) 17299 # see comment about AmigaOS4 .so support 17300 lt_prog_compiler_pic_CXX='-fPIC' 17301 ;; 17302 m68k) 17303 # FIXME: we need at least 68020 code to build shared libraries, but 17304 # adding the '-m68020' flag to GCC prevents building anything better, 17305 # like '-m68040'. 17306 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17307 ;; 17308 esac 17309 ;; 17310 17311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17312 # PIC is the default for these OSes. 17313 ;; 17314 mingw* | cygwin* | os2* | pw32* | cegcc*) 17315 # This hack is so that the source file can tell whether it is being 17316 # built for inclusion in a dll (and should export symbols for example). 17317 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17318 # (--disable-auto-import) libraries 17319 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17320 case $host_os in 17321 os2*) 17322 lt_prog_compiler_static_CXX='$wl-static' 17323 ;; 17324 esac 17325 ;; 17326 darwin* | rhapsody*) 17327 # PIC is the default on this platform 17328 # Common symbols not allowed in MH_DYLIB files 17329 lt_prog_compiler_pic_CXX='-fno-common' 17330 ;; 17331 *djgpp*) 17332 # DJGPP does not support shared libraries at all 17333 lt_prog_compiler_pic_CXX= 17334 ;; 17335 haiku*) 17336 # PIC is the default for Haiku. 17337 # The "-static" flag exists, but is broken. 17338 lt_prog_compiler_static_CXX= 17339 ;; 17340 interix[3-9]*) 17341 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17342 # Instead, we relocate shared libraries at runtime. 17343 ;; 17344 sysv4*MP*) 17345 if test -d /usr/nec; then 17346 lt_prog_compiler_pic_CXX=-Kconform_pic 17347 fi 17348 ;; 17349 hpux*) 17350 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17351 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17352 # sets the default TLS model and affects inlining. 17353 case $host_cpu in 17354 hppa*64*) 17355 ;; 17356 *) 17357 lt_prog_compiler_pic_CXX='-fPIC' 17358 ;; 17359 esac 17360 ;; 17361 *qnx* | *nto*) 17362 # QNX uses GNU C++, but need to define -shared option too, otherwise 17363 # it will coredump. 17364 lt_prog_compiler_pic_CXX='-fPIC -shared' 17365 ;; 17366 *) 17367 lt_prog_compiler_pic_CXX='-fPIC' 17368 ;; 17369 esac 17370 else 17371 case $host_os in 17372 aix[4-9]*) 17373 # All AIX code is PIC. 17374 if test ia64 = "$host_cpu"; then 17375 # AIX 5 now supports IA64 processor 17376 lt_prog_compiler_static_CXX='-Bstatic' 17377 else 17378 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17379 fi 17380 ;; 17381 chorus*) 17382 case $cc_basename in 17383 cxch68*) 17384 # Green Hills C++ Compiler 17385 # _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" 17386 ;; 17387 esac 17388 ;; 17389 mingw* | cygwin* | os2* | pw32* | cegcc*) 17390 # This hack is so that the source file can tell whether it is being 17391 # built for inclusion in a dll (and should export symbols for example). 17392 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17393 ;; 17394 dgux*) 17395 case $cc_basename in 17396 ec++*) 17397 lt_prog_compiler_pic_CXX='-KPIC' 17398 ;; 17399 ghcx*) 17400 # Green Hills C++ Compiler 17401 lt_prog_compiler_pic_CXX='-pic' 17402 ;; 17403 *) 17404 ;; 17405 esac 17406 ;; 17407 freebsd* | dragonfly*) 17408 # FreeBSD uses GNU C++ 17409 ;; 17410 hpux9* | hpux10* | hpux11*) 17411 case $cc_basename in 17412 CC*) 17413 lt_prog_compiler_wl_CXX='-Wl,' 17414 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17415 if test ia64 != "$host_cpu"; then 17416 lt_prog_compiler_pic_CXX='+Z' 17417 fi 17418 ;; 17419 aCC*) 17420 lt_prog_compiler_wl_CXX='-Wl,' 17421 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17422 case $host_cpu in 17423 hppa*64*|ia64*) 17424 # +Z the default 17425 ;; 17426 *) 17427 lt_prog_compiler_pic_CXX='+Z' 17428 ;; 17429 esac 17430 ;; 17431 *) 17432 ;; 17433 esac 17434 ;; 17435 interix*) 17436 # This is c89, which is MS Visual C++ (no shared libs) 17437 # Anyone wants to do a port? 17438 ;; 17439 irix5* | irix6* | nonstopux*) 17440 case $cc_basename in 17441 CC*) 17442 lt_prog_compiler_wl_CXX='-Wl,' 17443 lt_prog_compiler_static_CXX='-non_shared' 17444 # CC pic flag -KPIC is the default. 17445 ;; 17446 *) 17447 ;; 17448 esac 17449 ;; 17450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17451 case $cc_basename in 17452 KCC*) 17453 # KAI C++ Compiler 17454 lt_prog_compiler_wl_CXX='--backend -Wl,' 17455 lt_prog_compiler_pic_CXX='-fPIC' 17456 ;; 17457 ecpc* ) 17458 # old Intel C++ for x86_64, which still supported -KPIC. 17459 lt_prog_compiler_wl_CXX='-Wl,' 17460 lt_prog_compiler_pic_CXX='-KPIC' 17461 lt_prog_compiler_static_CXX='-static' 17462 ;; 17463 icpc* ) 17464 # Intel C++, used to be incompatible with GCC. 17465 # ICC 10 doesn't accept -KPIC any more. 17466 lt_prog_compiler_wl_CXX='-Wl,' 17467 lt_prog_compiler_pic_CXX='-fPIC' 17468 lt_prog_compiler_static_CXX='-static' 17469 ;; 17470 pgCC* | pgcpp*) 17471 # Portland Group C++ compiler 17472 lt_prog_compiler_wl_CXX='-Wl,' 17473 lt_prog_compiler_pic_CXX='-fpic' 17474 lt_prog_compiler_static_CXX='-Bstatic' 17475 ;; 17476 cxx*) 17477 # Compaq C++ 17478 # Make sure the PIC flag is empty. It appears that all Alpha 17479 # Linux and Compaq Tru64 Unix objects are PIC. 17480 lt_prog_compiler_pic_CXX= 17481 lt_prog_compiler_static_CXX='-non_shared' 17482 ;; 17483 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17484 # IBM XL 8.0, 9.0 on PPC and BlueGene 17485 lt_prog_compiler_wl_CXX='-Wl,' 17486 lt_prog_compiler_pic_CXX='-qpic' 17487 lt_prog_compiler_static_CXX='-qstaticlink' 17488 ;; 17489 *) 17490 case `$CC -V 2>&1 | sed 5q` in 17491 *Sun\ C*) 17492 # Sun C++ 5.9 17493 lt_prog_compiler_pic_CXX='-KPIC' 17494 lt_prog_compiler_static_CXX='-Bstatic' 17495 lt_prog_compiler_wl_CXX='-Qoption ld ' 17496 ;; 17497 esac 17498 ;; 17499 esac 17500 ;; 17501 lynxos*) 17502 ;; 17503 m88k*) 17504 ;; 17505 mvs*) 17506 case $cc_basename in 17507 cxx*) 17508 lt_prog_compiler_pic_CXX='-W c,exportall' 17509 ;; 17510 *) 17511 ;; 17512 esac 17513 ;; 17514 netbsd*) 17515 ;; 17516 *qnx* | *nto*) 17517 # QNX uses GNU C++, but need to define -shared option too, otherwise 17518 # it will coredump. 17519 lt_prog_compiler_pic_CXX='-fPIC -shared' 17520 ;; 17521 osf3* | osf4* | osf5*) 17522 case $cc_basename in 17523 KCC*) 17524 lt_prog_compiler_wl_CXX='--backend -Wl,' 17525 ;; 17526 RCC*) 17527 # Rational C++ 2.4.1 17528 lt_prog_compiler_pic_CXX='-pic' 17529 ;; 17530 cxx*) 17531 # Digital/Compaq C++ 17532 lt_prog_compiler_wl_CXX='-Wl,' 17533 # Make sure the PIC flag is empty. It appears that all Alpha 17534 # Linux and Compaq Tru64 Unix objects are PIC. 17535 lt_prog_compiler_pic_CXX= 17536 lt_prog_compiler_static_CXX='-non_shared' 17537 ;; 17538 *) 17539 ;; 17540 esac 17541 ;; 17542 psos*) 17543 ;; 17544 solaris*) 17545 case $cc_basename in 17546 CC* | sunCC*) 17547 # Sun C++ 4.2, 5.x and Centerline C++ 17548 lt_prog_compiler_pic_CXX='-KPIC' 17549 lt_prog_compiler_static_CXX='-Bstatic' 17550 lt_prog_compiler_wl_CXX='-Qoption ld ' 17551 ;; 17552 gcx*) 17553 # Green Hills C++ Compiler 17554 lt_prog_compiler_pic_CXX='-PIC' 17555 ;; 17556 *) 17557 ;; 17558 esac 17559 ;; 17560 sunos4*) 17561 case $cc_basename in 17562 CC*) 17563 # Sun C++ 4.x 17564 lt_prog_compiler_pic_CXX='-pic' 17565 lt_prog_compiler_static_CXX='-Bstatic' 17566 ;; 17567 lcc*) 17568 # Lucid 17569 lt_prog_compiler_pic_CXX='-pic' 17570 ;; 17571 *) 17572 ;; 17573 esac 17574 ;; 17575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17576 case $cc_basename in 17577 CC*) 17578 lt_prog_compiler_wl_CXX='-Wl,' 17579 lt_prog_compiler_pic_CXX='-KPIC' 17580 lt_prog_compiler_static_CXX='-Bstatic' 17581 ;; 17582 esac 17583 ;; 17584 tandem*) 17585 case $cc_basename in 17586 NCC*) 17587 # NonStop-UX NCC 3.20 17588 lt_prog_compiler_pic_CXX='-KPIC' 17589 ;; 17590 *) 17591 ;; 17592 esac 17593 ;; 17594 vxworks*) 17595 ;; 17596 *) 17597 lt_prog_compiler_can_build_shared_CXX=no 17598 ;; 17599 esac 17600 fi 17601 17602case $host_os in 17603 # For platforms that do not support PIC, -DPIC is meaningless: 17604 *djgpp*) 17605 lt_prog_compiler_pic_CXX= 17606 ;; 17607 *) 17608 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17609 ;; 17610esac 17611 17612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17613$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17614if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17615 $as_echo_n "(cached) " >&6 17616else 17617 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17618fi 17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17620$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17621lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17622 17623# 17624# Check to make sure the PIC flag actually works. 17625# 17626if test -n "$lt_prog_compiler_pic_CXX"; then 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17628$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17629if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17630 $as_echo_n "(cached) " >&6 17631else 17632 lt_cv_prog_compiler_pic_works_CXX=no 17633 ac_outfile=conftest.$ac_objext 17634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17635 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17636 # Insert the option either (1) after the last *FLAGS variable, or 17637 # (2) before a word containing "conftest.", or (3) at the end. 17638 # Note that $ac_compile itself does not contain backslashes and begins 17639 # with a dollar sign (not a hyphen), so the echo should work correctly. 17640 # The option is referenced via a variable to avoid confusing sed. 17641 lt_compile=`echo "$ac_compile" | $SED \ 17642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17644 -e 's:$: $lt_compiler_flag:'` 17645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17646 (eval "$lt_compile" 2>conftest.err) 17647 ac_status=$? 17648 cat conftest.err >&5 17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17650 if (exit $ac_status) && test -s "$ac_outfile"; then 17651 # The compiler can only warn and ignore the option if not recognized 17652 # So say no if there are warnings other than the usual output. 17653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17656 lt_cv_prog_compiler_pic_works_CXX=yes 17657 fi 17658 fi 17659 $RM conftest* 17660 17661fi 17662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17663$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17664 17665if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17666 case $lt_prog_compiler_pic_CXX in 17667 "" | " "*) ;; 17668 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17669 esac 17670else 17671 lt_prog_compiler_pic_CXX= 17672 lt_prog_compiler_can_build_shared_CXX=no 17673fi 17674 17675fi 17676 17677 17678 17679 17680 17681# 17682# Check to make sure the static flag actually works. 17683# 17684wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17686$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17687if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17688 $as_echo_n "(cached) " >&6 17689else 17690 lt_cv_prog_compiler_static_works_CXX=no 17691 save_LDFLAGS=$LDFLAGS 17692 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17693 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17694 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17695 # The linker can only warn and ignore the option if not recognized 17696 # So say no if there are warnings 17697 if test -s conftest.err; then 17698 # Append any errors to the config.log. 17699 cat conftest.err 1>&5 17700 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17702 if diff conftest.exp conftest.er2 >/dev/null; then 17703 lt_cv_prog_compiler_static_works_CXX=yes 17704 fi 17705 else 17706 lt_cv_prog_compiler_static_works_CXX=yes 17707 fi 17708 fi 17709 $RM -r conftest* 17710 LDFLAGS=$save_LDFLAGS 17711 17712fi 17713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17714$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17715 17716if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17717 : 17718else 17719 lt_prog_compiler_static_CXX= 17720fi 17721 17722 17723 17724 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17726$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17727if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17728 $as_echo_n "(cached) " >&6 17729else 17730 lt_cv_prog_compiler_c_o_CXX=no 17731 $RM -r conftest 2>/dev/null 17732 mkdir conftest 17733 cd conftest 17734 mkdir out 17735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17736 17737 lt_compiler_flag="-o out/conftest2.$ac_objext" 17738 # Insert the option either (1) after the last *FLAGS variable, or 17739 # (2) before a word containing "conftest.", or (3) at the end. 17740 # Note that $ac_compile itself does not contain backslashes and begins 17741 # with a dollar sign (not a hyphen), so the echo should work correctly. 17742 lt_compile=`echo "$ac_compile" | $SED \ 17743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17745 -e 's:$: $lt_compiler_flag:'` 17746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17747 (eval "$lt_compile" 2>out/conftest.err) 17748 ac_status=$? 17749 cat out/conftest.err >&5 17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17751 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17752 then 17753 # The compiler can only warn and ignore the option if not recognized 17754 # So say no if there are warnings 17755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17758 lt_cv_prog_compiler_c_o_CXX=yes 17759 fi 17760 fi 17761 chmod u+w . 2>&5 17762 $RM conftest* 17763 # SGI C++ compiler will create directory out/ii_files/ for 17764 # template instantiation 17765 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17766 $RM out/* && rmdir out 17767 cd .. 17768 $RM -r conftest 17769 $RM conftest* 17770 17771fi 17772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17773$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17774 17775 17776 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17778$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17779if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17780 $as_echo_n "(cached) " >&6 17781else 17782 lt_cv_prog_compiler_c_o_CXX=no 17783 $RM -r conftest 2>/dev/null 17784 mkdir conftest 17785 cd conftest 17786 mkdir out 17787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17788 17789 lt_compiler_flag="-o out/conftest2.$ac_objext" 17790 # Insert the option either (1) after the last *FLAGS variable, or 17791 # (2) before a word containing "conftest.", or (3) at the end. 17792 # Note that $ac_compile itself does not contain backslashes and begins 17793 # with a dollar sign (not a hyphen), so the echo should work correctly. 17794 lt_compile=`echo "$ac_compile" | $SED \ 17795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17797 -e 's:$: $lt_compiler_flag:'` 17798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17799 (eval "$lt_compile" 2>out/conftest.err) 17800 ac_status=$? 17801 cat out/conftest.err >&5 17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17803 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17804 then 17805 # The compiler can only warn and ignore the option if not recognized 17806 # So say no if there are warnings 17807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17810 lt_cv_prog_compiler_c_o_CXX=yes 17811 fi 17812 fi 17813 chmod u+w . 2>&5 17814 $RM conftest* 17815 # SGI C++ compiler will create directory out/ii_files/ for 17816 # template instantiation 17817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17818 $RM out/* && rmdir out 17819 cd .. 17820 $RM -r conftest 17821 $RM conftest* 17822 17823fi 17824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17825$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17826 17827 17828 17829 17830hard_links=nottested 17831if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17832 # do not overwrite the value of need_locks provided by the user 17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17834$as_echo_n "checking if we can lock with hard links... " >&6; } 17835 hard_links=yes 17836 $RM conftest* 17837 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17838 touch conftest.a 17839 ln conftest.a conftest.b 2>&5 || hard_links=no 17840 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17842$as_echo "$hard_links" >&6; } 17843 if test no = "$hard_links"; then 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17845$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17846 need_locks=warn 17847 fi 17848else 17849 need_locks=no 17850fi 17851 17852 17853 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17855$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17856 17857 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17858 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17859 case $host_os in 17860 aix[4-9]*) 17861 # If we're using GNU nm, then we don't want the "-C" option. 17862 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17863 # Without the "-l" option, or with the "-B" option, AIX nm treats 17864 # weak defined symbols like other global defined symbols, whereas 17865 # GNU nm marks them as "W". 17866 # While the 'weak' keyword is ignored in the Export File, we need 17867 # it in the Import File for the 'aix-soname' feature, so we have 17868 # to replace the "-B" option with "-P" for AIX nm. 17869 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17870 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 17871 else 17872 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 17873 fi 17874 ;; 17875 pw32*) 17876 export_symbols_cmds_CXX=$ltdll_cmds 17877 ;; 17878 cygwin* | mingw* | cegcc*) 17879 case $cc_basename in 17880 cl*) 17881 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17882 ;; 17883 *) 17884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 17885 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17886 ;; 17887 esac 17888 ;; 17889 *) 17890 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17891 ;; 17892 esac 17893 17894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17895$as_echo "$ld_shlibs_CXX" >&6; } 17896test no = "$ld_shlibs_CXX" && can_build_shared=no 17897 17898with_gnu_ld_CXX=$with_gnu_ld 17899 17900 17901 17902 17903 17904 17905# 17906# Do we need to explicitly link libc? 17907# 17908case "x$archive_cmds_need_lc_CXX" in 17909x|xyes) 17910 # Assume -lc should be added 17911 archive_cmds_need_lc_CXX=yes 17912 17913 if test yes,yes = "$GCC,$enable_shared"; then 17914 case $archive_cmds_CXX in 17915 *'~'*) 17916 # FIXME: we may have to deal with multi-command sequences. 17917 ;; 17918 '$CC '*) 17919 # Test whether the compiler implicitly links with -lc since on some 17920 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17921 # to ld, don't add -lc before -lgcc. 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17923$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17924if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17925 $as_echo_n "(cached) " >&6 17926else 17927 $RM conftest* 17928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17929 17930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17931 (eval $ac_compile) 2>&5 17932 ac_status=$? 17933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17934 test $ac_status = 0; } 2>conftest.err; then 17935 soname=conftest 17936 lib=conftest 17937 libobjs=conftest.$ac_objext 17938 deplibs= 17939 wl=$lt_prog_compiler_wl_CXX 17940 pic_flag=$lt_prog_compiler_pic_CXX 17941 compiler_flags=-v 17942 linker_flags=-v 17943 verstring= 17944 output_objdir=. 17945 libname=conftest 17946 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17947 allow_undefined_flag_CXX= 17948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17949 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17950 ac_status=$? 17951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17952 test $ac_status = 0; } 17953 then 17954 lt_cv_archive_cmds_need_lc_CXX=no 17955 else 17956 lt_cv_archive_cmds_need_lc_CXX=yes 17957 fi 17958 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17959 else 17960 cat conftest.err 1>&5 17961 fi 17962 $RM conftest* 17963 17964fi 17965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17966$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17967 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17968 ;; 17969 esac 17970 fi 17971 ;; 17972esac 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18036$as_echo_n "checking dynamic linker characteristics... " >&6; } 18037 18038library_names_spec= 18039libname_spec='lib$name' 18040soname_spec= 18041shrext_cmds=.so 18042postinstall_cmds= 18043postuninstall_cmds= 18044finish_cmds= 18045finish_eval= 18046shlibpath_var= 18047shlibpath_overrides_runpath=unknown 18048version_type=none 18049dynamic_linker="$host_os ld.so" 18050sys_lib_dlsearch_path_spec="/lib /usr/lib" 18051need_lib_prefix=unknown 18052hardcode_into_libs=no 18053 18054# when you set need_version to no, make sure it does not cause -set_version 18055# flags to be left without arguments 18056need_version=unknown 18057 18058 18059 18060case $host_os in 18061aix3*) 18062 version_type=linux # correct to gnu/linux during the next big refactor 18063 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18064 shlibpath_var=LIBPATH 18065 18066 # AIX 3 has no versioning support, so we append a major version to the name. 18067 soname_spec='$libname$release$shared_ext$major' 18068 ;; 18069 18070aix[4-9]*) 18071 version_type=linux # correct to gnu/linux during the next big refactor 18072 need_lib_prefix=no 18073 need_version=no 18074 hardcode_into_libs=yes 18075 if test ia64 = "$host_cpu"; then 18076 # AIX 5 supports IA64 18077 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18078 shlibpath_var=LD_LIBRARY_PATH 18079 else 18080 # With GCC up to 2.95.x, collect2 would create an import file 18081 # for dependence libraries. The import file would start with 18082 # the line '#! .'. This would cause the generated library to 18083 # depend on '.', always an invalid library. This was fixed in 18084 # development snapshots of GCC prior to 3.0. 18085 case $host_os in 18086 aix4 | aix4.[01] | aix4.[01].*) 18087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18088 echo ' yes ' 18089 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18090 : 18091 else 18092 can_build_shared=no 18093 fi 18094 ;; 18095 esac 18096 # Using Import Files as archive members, it is possible to support 18097 # filename-based versioning of shared library archives on AIX. While 18098 # this would work for both with and without runtime linking, it will 18099 # prevent static linking of such archives. So we do filename-based 18100 # shared library versioning with .so extension only, which is used 18101 # when both runtime linking and shared linking is enabled. 18102 # Unfortunately, runtime linking may impact performance, so we do 18103 # not want this to be the default eventually. Also, we use the 18104 # versioned .so libs for executables only if there is the -brtl 18105 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18106 # To allow for filename-based versioning support, we need to create 18107 # libNAME.so.V as an archive file, containing: 18108 # *) an Import File, referring to the versioned filename of the 18109 # archive as well as the shared archive member, telling the 18110 # bitwidth (32 or 64) of that shared object, and providing the 18111 # list of exported symbols of that shared object, eventually 18112 # decorated with the 'weak' keyword 18113 # *) the shared object with the F_LOADONLY flag set, to really avoid 18114 # it being seen by the linker. 18115 # At run time we better use the real file rather than another symlink, 18116 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18117 18118 case $with_aix_soname,$aix_use_runtimelinking in 18119 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18120 # soname into executable. Probably we can add versioning support to 18121 # collect2, so additional links can be useful in future. 18122 aix,yes) # traditional libtool 18123 dynamic_linker='AIX unversionable lib.so' 18124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18125 # instead of lib<name>.a to let people know that these are not 18126 # typical AIX shared libraries. 18127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18128 ;; 18129 aix,no) # traditional AIX only 18130 dynamic_linker='AIX lib.a(lib.so.V)' 18131 # We preserve .a as extension for shared libraries through AIX4.2 18132 # and later when we are not doing run time linking. 18133 library_names_spec='$libname$release.a $libname.a' 18134 soname_spec='$libname$release$shared_ext$major' 18135 ;; 18136 svr4,*) # full svr4 only 18137 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18138 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18139 # We do not specify a path in Import Files, so LIBPATH fires. 18140 shlibpath_overrides_runpath=yes 18141 ;; 18142 *,yes) # both, prefer svr4 18143 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18144 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18145 # unpreferred sharedlib libNAME.a needs extra handling 18146 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18147 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18148 # We do not specify a path in Import Files, so LIBPATH fires. 18149 shlibpath_overrides_runpath=yes 18150 ;; 18151 *,no) # both, prefer aix 18152 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18153 library_names_spec='$libname$release.a $libname.a' 18154 soname_spec='$libname$release$shared_ext$major' 18155 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18156 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18157 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18158 ;; 18159 esac 18160 shlibpath_var=LIBPATH 18161 fi 18162 ;; 18163 18164amigaos*) 18165 case $host_cpu in 18166 powerpc) 18167 # Since July 2007 AmigaOS4 officially supports .so libraries. 18168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18170 ;; 18171 m68k) 18172 library_names_spec='$libname.ixlibrary $libname.a' 18173 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18174 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18175 ;; 18176 esac 18177 ;; 18178 18179beos*) 18180 library_names_spec='$libname$shared_ext' 18181 dynamic_linker="$host_os ld.so" 18182 shlibpath_var=LIBRARY_PATH 18183 ;; 18184 18185bsdi[45]*) 18186 version_type=linux # correct to gnu/linux during the next big refactor 18187 need_version=no 18188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18189 soname_spec='$libname$release$shared_ext$major' 18190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18191 shlibpath_var=LD_LIBRARY_PATH 18192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18194 # the default ld.so.conf also contains /usr/contrib/lib and 18195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18196 # libtool to hard-code these into programs 18197 ;; 18198 18199cygwin* | mingw* | pw32* | cegcc*) 18200 version_type=windows 18201 shrext_cmds=.dll 18202 need_version=no 18203 need_lib_prefix=no 18204 18205 case $GCC,$cc_basename in 18206 yes,*) 18207 # gcc 18208 library_names_spec='$libname.dll.a' 18209 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18210 postinstall_cmds='base_file=`basename \$file`~ 18211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18212 dldir=$destdir/`dirname \$dlpath`~ 18213 test -d \$dldir || mkdir -p \$dldir~ 18214 $install_prog $dir/$dlname \$dldir/$dlname~ 18215 chmod a+x \$dldir/$dlname~ 18216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18217 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18218 fi' 18219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18220 dlpath=$dir/\$dldll~ 18221 $RM \$dlpath' 18222 shlibpath_overrides_runpath=yes 18223 18224 case $host_os in 18225 cygwin*) 18226 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18227 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18228 18229 ;; 18230 mingw* | cegcc*) 18231 # MinGW DLLs use traditional 'lib' prefix 18232 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18233 ;; 18234 pw32*) 18235 # pw32 DLLs use 'pw' prefix rather than 'lib' 18236 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18237 ;; 18238 esac 18239 dynamic_linker='Win32 ld.exe' 18240 ;; 18241 18242 *,cl*) 18243 # Native MSVC 18244 libname_spec='$name' 18245 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18246 library_names_spec='$libname.dll.lib' 18247 18248 case $build_os in 18249 mingw*) 18250 sys_lib_search_path_spec= 18251 lt_save_ifs=$IFS 18252 IFS=';' 18253 for lt_path in $LIB 18254 do 18255 IFS=$lt_save_ifs 18256 # Let DOS variable expansion print the short 8.3 style file name. 18257 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18258 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18259 done 18260 IFS=$lt_save_ifs 18261 # Convert to MSYS style. 18262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18263 ;; 18264 cygwin*) 18265 # Convert to unix form, then to dos form, then back to unix form 18266 # but this time dos style (no spaces!) so that the unix form looks 18267 # like /cygdrive/c/PROGRA~1:/cygdr... 18268 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18269 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18270 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18271 ;; 18272 *) 18273 sys_lib_search_path_spec=$LIB 18274 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18275 # It is most probably a Windows format PATH. 18276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18277 else 18278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18279 fi 18280 # FIXME: find the short name or the path components, as spaces are 18281 # common. (e.g. "Program Files" -> "PROGRA~1") 18282 ;; 18283 esac 18284 18285 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18286 postinstall_cmds='base_file=`basename \$file`~ 18287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18288 dldir=$destdir/`dirname \$dlpath`~ 18289 test -d \$dldir || mkdir -p \$dldir~ 18290 $install_prog $dir/$dlname \$dldir/$dlname' 18291 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18292 dlpath=$dir/\$dldll~ 18293 $RM \$dlpath' 18294 shlibpath_overrides_runpath=yes 18295 dynamic_linker='Win32 link.exe' 18296 ;; 18297 18298 *) 18299 # Assume MSVC wrapper 18300 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18301 dynamic_linker='Win32 ld.exe' 18302 ;; 18303 esac 18304 # FIXME: first we should search . and the directory the executable is in 18305 shlibpath_var=PATH 18306 ;; 18307 18308darwin* | rhapsody*) 18309 dynamic_linker="$host_os dyld" 18310 version_type=darwin 18311 need_lib_prefix=no 18312 need_version=no 18313 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 18314 soname_spec='$libname$release$major$shared_ext' 18315 shlibpath_overrides_runpath=yes 18316 shlibpath_var=DYLD_LIBRARY_PATH 18317 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 18318 18319 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18320 ;; 18321 18322dgux*) 18323 version_type=linux # correct to gnu/linux during the next big refactor 18324 need_lib_prefix=no 18325 need_version=no 18326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18327 soname_spec='$libname$release$shared_ext$major' 18328 shlibpath_var=LD_LIBRARY_PATH 18329 ;; 18330 18331freebsd* | dragonfly*) 18332 # DragonFly does not have aout. When/if they implement a new 18333 # versioning mechanism, adjust this. 18334 if test -x /usr/bin/objformat; then 18335 objformat=`/usr/bin/objformat` 18336 else 18337 case $host_os in 18338 freebsd[23].*) objformat=aout ;; 18339 *) objformat=elf ;; 18340 esac 18341 fi 18342 # Handle Gentoo/FreeBSD as it was Linux 18343 case $host_vendor in 18344 gentoo) 18345 version_type=linux ;; 18346 *) 18347 version_type=freebsd-$objformat ;; 18348 esac 18349 18350 case $version_type in 18351 freebsd-elf*) 18352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18353 soname_spec='$libname$release$shared_ext$major' 18354 need_version=no 18355 need_lib_prefix=no 18356 ;; 18357 freebsd-*) 18358 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18359 need_version=yes 18360 ;; 18361 linux) 18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18363 soname_spec='${libname}${release}${shared_ext}$major' 18364 need_lib_prefix=no 18365 need_version=no 18366 ;; 18367 esac 18368 shlibpath_var=LD_LIBRARY_PATH 18369 case $host_os in 18370 freebsd2.*) 18371 shlibpath_overrides_runpath=yes 18372 ;; 18373 freebsd3.[01]* | freebsdelf3.[01]*) 18374 shlibpath_overrides_runpath=yes 18375 hardcode_into_libs=yes 18376 ;; 18377 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18378 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18379 shlibpath_overrides_runpath=no 18380 hardcode_into_libs=yes 18381 ;; 18382 *) # from 4.6 on, and DragonFly 18383 shlibpath_overrides_runpath=yes 18384 hardcode_into_libs=yes 18385 ;; 18386 esac 18387 ;; 18388 18389haiku*) 18390 version_type=linux # correct to gnu/linux during the next big refactor 18391 need_lib_prefix=no 18392 need_version=no 18393 dynamic_linker="$host_os runtime_loader" 18394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18395 soname_spec='$libname$release$shared_ext$major' 18396 shlibpath_var=LIBRARY_PATH 18397 shlibpath_overrides_runpath=no 18398 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18399 hardcode_into_libs=yes 18400 ;; 18401 18402hpux9* | hpux10* | hpux11*) 18403 # Give a soname corresponding to the major version so that dld.sl refuses to 18404 # link against other versions. 18405 version_type=sunos 18406 need_lib_prefix=no 18407 need_version=no 18408 case $host_cpu in 18409 ia64*) 18410 shrext_cmds='.so' 18411 hardcode_into_libs=yes 18412 dynamic_linker="$host_os dld.so" 18413 shlibpath_var=LD_LIBRARY_PATH 18414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18416 soname_spec='$libname$release$shared_ext$major' 18417 if test 32 = "$HPUX_IA64_MODE"; then 18418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18419 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18420 else 18421 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18422 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18423 fi 18424 ;; 18425 hppa*64*) 18426 shrext_cmds='.sl' 18427 hardcode_into_libs=yes 18428 dynamic_linker="$host_os dld.sl" 18429 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18432 soname_spec='$libname$release$shared_ext$major' 18433 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18435 ;; 18436 *) 18437 shrext_cmds='.sl' 18438 dynamic_linker="$host_os dld.sl" 18439 shlibpath_var=SHLIB_PATH 18440 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18442 soname_spec='$libname$release$shared_ext$major' 18443 ;; 18444 esac 18445 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18446 postinstall_cmds='chmod 555 $lib' 18447 # or fails outright, so override atomically: 18448 install_override_mode=555 18449 ;; 18450 18451interix[3-9]*) 18452 version_type=linux # correct to gnu/linux during the next big refactor 18453 need_lib_prefix=no 18454 need_version=no 18455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18456 soname_spec='$libname$release$shared_ext$major' 18457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18458 shlibpath_var=LD_LIBRARY_PATH 18459 shlibpath_overrides_runpath=no 18460 hardcode_into_libs=yes 18461 ;; 18462 18463irix5* | irix6* | nonstopux*) 18464 case $host_os in 18465 nonstopux*) version_type=nonstopux ;; 18466 *) 18467 if test yes = "$lt_cv_prog_gnu_ld"; then 18468 version_type=linux # correct to gnu/linux during the next big refactor 18469 else 18470 version_type=irix 18471 fi ;; 18472 esac 18473 need_lib_prefix=no 18474 need_version=no 18475 soname_spec='$libname$release$shared_ext$major' 18476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18477 case $host_os in 18478 irix5* | nonstopux*) 18479 libsuff= shlibsuff= 18480 ;; 18481 *) 18482 case $LD in # libtool.m4 will add one of these switches to LD 18483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18484 libsuff= shlibsuff= libmagic=32-bit;; 18485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18486 libsuff=32 shlibsuff=N32 libmagic=N32;; 18487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18488 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18489 *) libsuff= shlibsuff= libmagic=never-match;; 18490 esac 18491 ;; 18492 esac 18493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18494 shlibpath_overrides_runpath=no 18495 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18496 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18497 hardcode_into_libs=yes 18498 ;; 18499 18500# No shared lib support for Linux oldld, aout, or coff. 18501linux*oldld* | linux*aout* | linux*coff*) 18502 dynamic_linker=no 18503 ;; 18504 18505linux*android*) 18506 version_type=none # Android doesn't support versioned libraries. 18507 need_lib_prefix=no 18508 need_version=no 18509 library_names_spec='$libname$release$shared_ext' 18510 soname_spec='$libname$release$shared_ext' 18511 finish_cmds= 18512 shlibpath_var=LD_LIBRARY_PATH 18513 shlibpath_overrides_runpath=yes 18514 18515 # This implies no fast_install, which is unacceptable. 18516 # Some rework will be needed to allow for fast_install 18517 # before this can be enabled. 18518 hardcode_into_libs=yes 18519 18520 dynamic_linker='Android linker' 18521 # Don't embed -rpath directories since the linker doesn't support them. 18522 hardcode_libdir_flag_spec_CXX='-L$libdir' 18523 ;; 18524 18525# This must be glibc/ELF. 18526linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18527 version_type=linux # correct to gnu/linux during the next big refactor 18528 need_lib_prefix=no 18529 need_version=no 18530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18531 soname_spec='$libname$release$shared_ext$major' 18532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18533 shlibpath_var=LD_LIBRARY_PATH 18534 shlibpath_overrides_runpath=no 18535 18536 # Some binutils ld are patched to set DT_RUNPATH 18537 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18538 $as_echo_n "(cached) " >&6 18539else 18540 lt_cv_shlibpath_overrides_runpath=no 18541 save_LDFLAGS=$LDFLAGS 18542 save_libdir=$libdir 18543 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18544 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18546/* end confdefs.h. */ 18547 18548int 18549main () 18550{ 18551 18552 ; 18553 return 0; 18554} 18555_ACEOF 18556if ac_fn_cxx_try_link "$LINENO"; then : 18557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18558 lt_cv_shlibpath_overrides_runpath=yes 18559fi 18560fi 18561rm -f core conftest.err conftest.$ac_objext \ 18562 conftest$ac_exeext conftest.$ac_ext 18563 LDFLAGS=$save_LDFLAGS 18564 libdir=$save_libdir 18565 18566fi 18567 18568 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18569 18570 # This implies no fast_install, which is unacceptable. 18571 # Some rework will be needed to allow for fast_install 18572 # before this can be enabled. 18573 hardcode_into_libs=yes 18574 18575 # Ideally, we could use ldconfig to report *all* directores which are 18576 # searched for libraries, however this is still not possible. Aside from not 18577 # being certain /sbin/ldconfig is available, command 18578 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18579 # even though it is searched at run-time. Try to do the best guess by 18580 # appending ld.so.conf contents (and includes) to the search path. 18581 if test -f /etc/ld.so.conf; then 18582 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' ' '` 18583 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18584 fi 18585 18586 # We used to test for /lib/ld.so.1 and disable shared libraries on 18587 # powerpc, because MkLinux only supported shared libraries with the 18588 # GNU dynamic linker. Since this was broken with cross compilers, 18589 # most powerpc-linux boxes support dynamic linking these days and 18590 # people can always --disable-shared, the test was removed, and we 18591 # assume the GNU/Linux dynamic linker is in use. 18592 dynamic_linker='GNU/Linux ld.so' 18593 ;; 18594 18595netbsd*) 18596 version_type=sunos 18597 need_lib_prefix=no 18598 need_version=no 18599 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18600 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18602 dynamic_linker='NetBSD (a.out) ld.so' 18603 else 18604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18605 soname_spec='$libname$release$shared_ext$major' 18606 dynamic_linker='NetBSD ld.elf_so' 18607 fi 18608 shlibpath_var=LD_LIBRARY_PATH 18609 shlibpath_overrides_runpath=yes 18610 hardcode_into_libs=yes 18611 ;; 18612 18613newsos6) 18614 version_type=linux # correct to gnu/linux during the next big refactor 18615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18616 shlibpath_var=LD_LIBRARY_PATH 18617 shlibpath_overrides_runpath=yes 18618 ;; 18619 18620*nto* | *qnx*) 18621 version_type=qnx 18622 need_lib_prefix=no 18623 need_version=no 18624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18625 soname_spec='$libname$release$shared_ext$major' 18626 shlibpath_var=LD_LIBRARY_PATH 18627 shlibpath_overrides_runpath=no 18628 hardcode_into_libs=yes 18629 dynamic_linker='ldqnx.so' 18630 ;; 18631 18632openbsd* | bitrig*) 18633 version_type=sunos 18634 sys_lib_dlsearch_path_spec=/usr/lib 18635 need_lib_prefix=no 18636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18637 need_version=no 18638 else 18639 need_version=yes 18640 fi 18641 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18643 shlibpath_var=LD_LIBRARY_PATH 18644 shlibpath_overrides_runpath=yes 18645 ;; 18646 18647os2*) 18648 libname_spec='$name' 18649 version_type=windows 18650 shrext_cmds=.dll 18651 need_version=no 18652 need_lib_prefix=no 18653 # OS/2 can only load a DLL with a base name of 8 characters or less. 18654 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18655 v=$($ECHO $release$versuffix | tr -d .-); 18656 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18657 $ECHO $n$v`$shared_ext' 18658 library_names_spec='${libname}_dll.$libext' 18659 dynamic_linker='OS/2 ld.exe' 18660 shlibpath_var=BEGINLIBPATH 18661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18663 postinstall_cmds='base_file=`basename \$file`~ 18664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18665 dldir=$destdir/`dirname \$dlpath`~ 18666 test -d \$dldir || mkdir -p \$dldir~ 18667 $install_prog $dir/$dlname \$dldir/$dlname~ 18668 chmod a+x \$dldir/$dlname~ 18669 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18670 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18671 fi' 18672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18673 dlpath=$dir/\$dldll~ 18674 $RM \$dlpath' 18675 ;; 18676 18677osf3* | osf4* | osf5*) 18678 version_type=osf 18679 need_lib_prefix=no 18680 need_version=no 18681 soname_spec='$libname$release$shared_ext$major' 18682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18683 shlibpath_var=LD_LIBRARY_PATH 18684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18686 ;; 18687 18688rdos*) 18689 dynamic_linker=no 18690 ;; 18691 18692solaris*) 18693 version_type=linux # correct to gnu/linux during the next big refactor 18694 need_lib_prefix=no 18695 need_version=no 18696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18697 soname_spec='$libname$release$shared_ext$major' 18698 shlibpath_var=LD_LIBRARY_PATH 18699 shlibpath_overrides_runpath=yes 18700 hardcode_into_libs=yes 18701 # ldd complains unless libraries are executable 18702 postinstall_cmds='chmod +x $lib' 18703 ;; 18704 18705sunos4*) 18706 version_type=sunos 18707 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18709 shlibpath_var=LD_LIBRARY_PATH 18710 shlibpath_overrides_runpath=yes 18711 if test yes = "$with_gnu_ld"; then 18712 need_lib_prefix=no 18713 fi 18714 need_version=yes 18715 ;; 18716 18717sysv4 | sysv4.3*) 18718 version_type=linux # correct to gnu/linux during the next big refactor 18719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18720 soname_spec='$libname$release$shared_ext$major' 18721 shlibpath_var=LD_LIBRARY_PATH 18722 case $host_vendor in 18723 sni) 18724 shlibpath_overrides_runpath=no 18725 need_lib_prefix=no 18726 runpath_var=LD_RUN_PATH 18727 ;; 18728 siemens) 18729 need_lib_prefix=no 18730 ;; 18731 motorola) 18732 need_lib_prefix=no 18733 need_version=no 18734 shlibpath_overrides_runpath=no 18735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18736 ;; 18737 esac 18738 ;; 18739 18740sysv4*MP*) 18741 if test -d /usr/nec; then 18742 version_type=linux # correct to gnu/linux during the next big refactor 18743 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18744 soname_spec='$libname$shared_ext.$major' 18745 shlibpath_var=LD_LIBRARY_PATH 18746 fi 18747 ;; 18748 18749sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18750 version_type=sco 18751 need_lib_prefix=no 18752 need_version=no 18753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18754 soname_spec='$libname$release$shared_ext$major' 18755 shlibpath_var=LD_LIBRARY_PATH 18756 shlibpath_overrides_runpath=yes 18757 hardcode_into_libs=yes 18758 if test yes = "$with_gnu_ld"; then 18759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18760 else 18761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18762 case $host_os in 18763 sco3.2v5*) 18764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18765 ;; 18766 esac 18767 fi 18768 sys_lib_dlsearch_path_spec='/usr/lib' 18769 ;; 18770 18771tpf*) 18772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18773 version_type=linux # correct to gnu/linux during the next big refactor 18774 need_lib_prefix=no 18775 need_version=no 18776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18777 shlibpath_var=LD_LIBRARY_PATH 18778 shlibpath_overrides_runpath=no 18779 hardcode_into_libs=yes 18780 ;; 18781 18782uts4*) 18783 version_type=linux # correct to gnu/linux during the next big refactor 18784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18785 soname_spec='$libname$release$shared_ext$major' 18786 shlibpath_var=LD_LIBRARY_PATH 18787 ;; 18788 18789*) 18790 dynamic_linker=no 18791 ;; 18792esac 18793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18794$as_echo "$dynamic_linker" >&6; } 18795test no = "$dynamic_linker" && can_build_shared=no 18796 18797variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18798if test yes = "$GCC"; then 18799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18800fi 18801 18802if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18803 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18804fi 18805 18806if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18807 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18808fi 18809 18810# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18811configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18812 18813# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18814func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18815 18816# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18817configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18859$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18860hardcode_action_CXX= 18861if test -n "$hardcode_libdir_flag_spec_CXX" || 18862 test -n "$runpath_var_CXX" || 18863 test yes = "$hardcode_automatic_CXX"; then 18864 18865 # We can hardcode non-existent directories. 18866 if test no != "$hardcode_direct_CXX" && 18867 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18868 # have to relink, otherwise we might link with an installed library 18869 # when we should be linking with a yet-to-be-installed one 18870 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18871 test no != "$hardcode_minus_L_CXX"; then 18872 # Linking always hardcodes the temporary library directory. 18873 hardcode_action_CXX=relink 18874 else 18875 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18876 hardcode_action_CXX=immediate 18877 fi 18878else 18879 # We cannot hardcode anything, or else we can only hardcode existing 18880 # directories. 18881 hardcode_action_CXX=unsupported 18882fi 18883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18884$as_echo "$hardcode_action_CXX" >&6; } 18885 18886if test relink = "$hardcode_action_CXX" || 18887 test yes = "$inherit_rpath_CXX"; then 18888 # Fast installation is not supported 18889 enable_fast_install=no 18890elif test yes = "$shlibpath_overrides_runpath" || 18891 test no = "$enable_shared"; then 18892 # Fast installation is not necessary 18893 enable_fast_install=needless 18894fi 18895 18896 18897 18898 18899 18900 18901 18902 fi # test -n "$compiler" 18903 18904 CC=$lt_save_CC 18905 CFLAGS=$lt_save_CFLAGS 18906 LDCXX=$LD 18907 LD=$lt_save_LD 18908 GCC=$lt_save_GCC 18909 with_gnu_ld=$lt_save_with_gnu_ld 18910 lt_cv_path_LDCXX=$lt_cv_path_LD 18911 lt_cv_path_LD=$lt_save_path_LD 18912 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18913 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18914fi # test yes != "$_lt_caught_CXX_error" 18915 18916ac_ext=c 18917ac_cpp='$CPP $CPPFLAGS' 18918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18920ac_compiler_gnu=$ac_cv_c_compiler_gnu 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 ac_config_commands="$ac_config_commands libtool" 18937 18938 18939 18940 18941# Only expand once: 18942 18943 18944 18945 18946 18947cat >confcache <<\_ACEOF 18948# This file is a shell script that caches the results of configure 18949# tests run on this system so they can be shared between configure 18950# scripts and configure runs, see configure's option --config-cache. 18951# It is not useful on other systems. If it contains results you don't 18952# want to keep, you may remove or edit it. 18953# 18954# config.status only pays attention to the cache file if you give it 18955# the --recheck option to rerun configure. 18956# 18957# `ac_cv_env_foo' variables (set or unset) will be overridden when 18958# loading this file, other *unset* `ac_cv_foo' will be assigned the 18959# following values. 18960 18961_ACEOF 18962 18963# The following way of writing the cache mishandles newlines in values, 18964# but we know of no workaround that is simple, portable, and efficient. 18965# So, we kill variables containing newlines. 18966# Ultrix sh set writes to stderr and can't be redirected directly, 18967# and sets the high bit in the cache file unless we assign to the vars. 18968( 18969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18970 eval ac_val=\$$ac_var 18971 case $ac_val in #( 18972 *${as_nl}*) 18973 case $ac_var in #( 18974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18976 esac 18977 case $ac_var in #( 18978 _ | IFS | as_nl) ;; #( 18979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18980 *) { eval $ac_var=; unset $ac_var;} ;; 18981 esac ;; 18982 esac 18983 done 18984 18985 (set) 2>&1 | 18986 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18987 *${as_nl}ac_space=\ *) 18988 # `set' does not quote correctly, so add quotes: double-quote 18989 # substitution turns \\\\ into \\, and sed turns \\ into \. 18990 sed -n \ 18991 "s/'/'\\\\''/g; 18992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18993 ;; #( 18994 *) 18995 # `set' quotes correctly as required by POSIX, so do not add quotes. 18996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18997 ;; 18998 esac | 18999 sort 19000) | 19001 sed ' 19002 /^ac_cv_env_/b end 19003 t clear 19004 :clear 19005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19006 t end 19007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19008 :end' >>confcache 19009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19010 if test -w "$cache_file"; then 19011 if test "x$cache_file" != "x/dev/null"; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19013$as_echo "$as_me: updating cache $cache_file" >&6;} 19014 if test ! -f "$cache_file" || test -h "$cache_file"; then 19015 cat confcache >"$cache_file" 19016 else 19017 case $cache_file in #( 19018 */* | ?:*) 19019 mv -f confcache "$cache_file"$$ && 19020 mv -f "$cache_file"$$ "$cache_file" ;; #( 19021 *) 19022 mv -f confcache "$cache_file" ;; 19023 esac 19024 fi 19025 fi 19026 else 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19029 fi 19030fi 19031rm -f confcache 19032 19033test "x$prefix" = xNONE && prefix=$ac_default_prefix 19034# Let make expand exec_prefix. 19035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19036 19037DEFS=-DHAVE_CONFIG_H 19038 19039ac_libobjs= 19040ac_ltlibobjs= 19041U= 19042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19043 # 1. Remove the extension, and $U if already installed. 19044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19047 # will be set to the directory where LIBOBJS objects are built. 19048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19050done 19051LIBOBJS=$ac_libobjs 19052 19053LTLIBOBJS=$ac_ltlibobjs 19054 19055 19056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19057$as_echo_n "checking that generated files are newer than configure... " >&6; } 19058 if test -n "$am_sleep_pid"; then 19059 # Hide warnings about reused PIDs. 19060 wait $am_sleep_pid 2>/dev/null 19061 fi 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19063$as_echo "done" >&6; } 19064 if test -n "$EXEEXT"; then 19065 am__EXEEXT_TRUE= 19066 am__EXEEXT_FALSE='#' 19067else 19068 am__EXEEXT_TRUE='#' 19069 am__EXEEXT_FALSE= 19070fi 19071 19072if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19073 as_fn_error $? "conditional \"AMDEP\" was never defined. 19074Usually this means the macro was only invoked conditionally." "$LINENO" 5 19075fi 19076if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19077 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19078Usually this means the macro was only invoked conditionally." "$LINENO" 5 19079fi 19080if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 19081 as_fn_error $? "conditional \"DEBUG\" was never defined. 19082Usually this means the macro was only invoked conditionally." "$LINENO" 5 19083fi 19084if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then 19085 as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined. 19086Usually this means the macro was only invoked conditionally." "$LINENO" 5 19087fi 19088if test -z "${REBUILD_LEXERS_TRUE}" && test -z "${REBUILD_LEXERS_FALSE}"; then 19089 as_fn_error $? "conditional \"REBUILD_LEXERS\" was never defined. 19090Usually this means the macro was only invoked conditionally." "$LINENO" 5 19091fi 19092if test -z "${WITH_LIBS_TRUE}" && test -z "${WITH_LIBS_FALSE}"; then 19093 as_fn_error $? "conditional \"WITH_LIBS\" was never defined. 19094Usually this means the macro was only invoked conditionally." "$LINENO" 5 19095fi 19096if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19097 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19098Usually this means the macro was only invoked conditionally." "$LINENO" 5 19099fi 19100if test -z "${WITH_GOLANG_TRUE}" && test -z "${WITH_GOLANG_FALSE}"; then 19101 as_fn_error $? "conditional \"WITH_GOLANG\" was never defined. 19102Usually this means the macro was only invoked conditionally." "$LINENO" 5 19103fi 19104if test -z "${WITH_BENCHMARKS_TRUE}" && test -z "${WITH_BENCHMARKS_FALSE}"; then 19105 as_fn_error $? "conditional \"WITH_BENCHMARKS\" was never defined. 19106Usually this means the macro was only invoked conditionally." "$LINENO" 5 19107fi 19108if test -z "${WITH_JAVA_TRUE}" && test -z "${WITH_JAVA_FALSE}"; then 19109 as_fn_error $? "conditional \"WITH_JAVA\" was never defined. 19110Usually this means the macro was only invoked conditionally." "$LINENO" 5 19111fi 19112if test -z "${REGEN_BENCHMARKS_TRUE}" && test -z "${REGEN_BENCHMARKS_FALSE}"; then 19113 as_fn_error $? "conditional \"REGEN_BENCHMARKS\" was never defined. 19114Usually this means the macro was only invoked conditionally." "$LINENO" 5 19115fi 19116if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19117 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19118Usually this means the macro was only invoked conditionally." "$LINENO" 5 19119fi 19120if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19121 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 19122Usually this means the macro was only invoked conditionally." "$LINENO" 5 19123fi 19124 19125: "${CONFIG_STATUS=./config.status}" 19126ac_write_fail=0 19127ac_clean_files_save=$ac_clean_files 19128ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19129{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19130$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19131as_write_fail=0 19132cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19133#! $SHELL 19134# Generated by $as_me. 19135# Run this file to recreate the current configuration. 19136# Compiler output produced by configure, useful for debugging 19137# configure, is in config.log if it exists. 19138 19139debug=false 19140ac_cs_recheck=false 19141ac_cs_silent=false 19142 19143SHELL=\${CONFIG_SHELL-$SHELL} 19144export SHELL 19145_ASEOF 19146cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19147## -------------------- ## 19148## M4sh Initialization. ## 19149## -------------------- ## 19150 19151# Be more Bourne compatible 19152DUALCASE=1; export DUALCASE # for MKS sh 19153if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19154 emulate sh 19155 NULLCMD=: 19156 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19157 # is contrary to our usage. Disable this feature. 19158 alias -g '${1+"$@"}'='"$@"' 19159 setopt NO_GLOB_SUBST 19160else 19161 case `(set -o) 2>/dev/null` in #( 19162 *posix*) : 19163 set -o posix ;; #( 19164 *) : 19165 ;; 19166esac 19167fi 19168 19169 19170as_nl=' 19171' 19172export as_nl 19173# Printing a long string crashes Solaris 7 /usr/bin/printf. 19174as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19175as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19176as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19177# Prefer a ksh shell builtin over an external printf program on Solaris, 19178# but without wasting forks for bash or zsh. 19179if test -z "$BASH_VERSION$ZSH_VERSION" \ 19180 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19181 as_echo='print -r --' 19182 as_echo_n='print -rn --' 19183elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19184 as_echo='printf %s\n' 19185 as_echo_n='printf %s' 19186else 19187 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19188 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19189 as_echo_n='/usr/ucb/echo -n' 19190 else 19191 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19192 as_echo_n_body='eval 19193 arg=$1; 19194 case $arg in #( 19195 *"$as_nl"*) 19196 expr "X$arg" : "X\\(.*\\)$as_nl"; 19197 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19198 esac; 19199 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19200 ' 19201 export as_echo_n_body 19202 as_echo_n='sh -c $as_echo_n_body as_echo' 19203 fi 19204 export as_echo_body 19205 as_echo='sh -c $as_echo_body as_echo' 19206fi 19207 19208# The user is always right. 19209if test "${PATH_SEPARATOR+set}" != set; then 19210 PATH_SEPARATOR=: 19211 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19212 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19213 PATH_SEPARATOR=';' 19214 } 19215fi 19216 19217 19218# IFS 19219# We need space, tab and new line, in precisely that order. Quoting is 19220# there to prevent editors from complaining about space-tab. 19221# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19222# splitting by setting IFS to empty value.) 19223IFS=" "" $as_nl" 19224 19225# Find who we are. Look in the path if we contain no directory separator. 19226as_myself= 19227case $0 in #(( 19228 *[\\/]* ) as_myself=$0 ;; 19229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19230for as_dir in $PATH 19231do 19232 IFS=$as_save_IFS 19233 test -z "$as_dir" && as_dir=. 19234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19235 done 19236IFS=$as_save_IFS 19237 19238 ;; 19239esac 19240# We did not find ourselves, most probably we were run as `sh COMMAND' 19241# in which case we are not to be found in the path. 19242if test "x$as_myself" = x; then 19243 as_myself=$0 19244fi 19245if test ! -f "$as_myself"; then 19246 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19247 exit 1 19248fi 19249 19250# Unset variables that we do not need and which cause bugs (e.g. in 19251# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19252# suppresses any "Segmentation fault" message there. '((' could 19253# trigger a bug in pdksh 5.2.14. 19254for as_var in BASH_ENV ENV MAIL MAILPATH 19255do eval test x\${$as_var+set} = xset \ 19256 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19257done 19258PS1='$ ' 19259PS2='> ' 19260PS4='+ ' 19261 19262# NLS nuisances. 19263LC_ALL=C 19264export LC_ALL 19265LANGUAGE=C 19266export LANGUAGE 19267 19268# CDPATH. 19269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19270 19271 19272# as_fn_error STATUS ERROR [LINENO LOG_FD] 19273# ---------------------------------------- 19274# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19275# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19276# script with STATUS, using 1 if that was 0. 19277as_fn_error () 19278{ 19279 as_status=$1; test $as_status -eq 0 && as_status=1 19280 if test "$4"; then 19281 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19282 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19283 fi 19284 $as_echo "$as_me: error: $2" >&2 19285 as_fn_exit $as_status 19286} # as_fn_error 19287 19288 19289# as_fn_set_status STATUS 19290# ----------------------- 19291# Set $? to STATUS, without forking. 19292as_fn_set_status () 19293{ 19294 return $1 19295} # as_fn_set_status 19296 19297# as_fn_exit STATUS 19298# ----------------- 19299# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19300as_fn_exit () 19301{ 19302 set +e 19303 as_fn_set_status $1 19304 exit $1 19305} # as_fn_exit 19306 19307# as_fn_unset VAR 19308# --------------- 19309# Portably unset VAR. 19310as_fn_unset () 19311{ 19312 { eval $1=; unset $1;} 19313} 19314as_unset=as_fn_unset 19315# as_fn_append VAR VALUE 19316# ---------------------- 19317# Append the text in VALUE to the end of the definition contained in VAR. Take 19318# advantage of any shell optimizations that allow amortized linear growth over 19319# repeated appends, instead of the typical quadratic growth present in naive 19320# implementations. 19321if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19322 eval 'as_fn_append () 19323 { 19324 eval $1+=\$2 19325 }' 19326else 19327 as_fn_append () 19328 { 19329 eval $1=\$$1\$2 19330 } 19331fi # as_fn_append 19332 19333# as_fn_arith ARG... 19334# ------------------ 19335# Perform arithmetic evaluation on the ARGs, and store the result in the 19336# global $as_val. Take advantage of shells that can avoid forks. The arguments 19337# must be portable across $(()) and expr. 19338if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19339 eval 'as_fn_arith () 19340 { 19341 as_val=$(( $* )) 19342 }' 19343else 19344 as_fn_arith () 19345 { 19346 as_val=`expr "$@" || test $? -eq 1` 19347 } 19348fi # as_fn_arith 19349 19350 19351if expr a : '\(a\)' >/dev/null 2>&1 && 19352 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19353 as_expr=expr 19354else 19355 as_expr=false 19356fi 19357 19358if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19359 as_basename=basename 19360else 19361 as_basename=false 19362fi 19363 19364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19365 as_dirname=dirname 19366else 19367 as_dirname=false 19368fi 19369 19370as_me=`$as_basename -- "$0" || 19371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19372 X"$0" : 'X\(//\)$' \| \ 19373 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19374$as_echo X/"$0" | 19375 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19376 s//\1/ 19377 q 19378 } 19379 /^X\/\(\/\/\)$/{ 19380 s//\1/ 19381 q 19382 } 19383 /^X\/\(\/\).*/{ 19384 s//\1/ 19385 q 19386 } 19387 s/.*/./; q'` 19388 19389# Avoid depending upon Character Ranges. 19390as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19392as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19393as_cr_digits='0123456789' 19394as_cr_alnum=$as_cr_Letters$as_cr_digits 19395 19396ECHO_C= ECHO_N= ECHO_T= 19397case `echo -n x` in #((((( 19398-n*) 19399 case `echo 'xy\c'` in 19400 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19401 xy) ECHO_C='\c';; 19402 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19403 ECHO_T=' ';; 19404 esac;; 19405*) 19406 ECHO_N='-n';; 19407esac 19408 19409rm -f conf$$ conf$$.exe conf$$.file 19410if test -d conf$$.dir; then 19411 rm -f conf$$.dir/conf$$.file 19412else 19413 rm -f conf$$.dir 19414 mkdir conf$$.dir 2>/dev/null 19415fi 19416if (echo >conf$$.file) 2>/dev/null; then 19417 if ln -s conf$$.file conf$$ 2>/dev/null; then 19418 as_ln_s='ln -s' 19419 # ... but there are two gotchas: 19420 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19421 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19422 # In both cases, we have to default to `cp -pR'. 19423 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19424 as_ln_s='cp -pR' 19425 elif ln conf$$.file conf$$ 2>/dev/null; then 19426 as_ln_s=ln 19427 else 19428 as_ln_s='cp -pR' 19429 fi 19430else 19431 as_ln_s='cp -pR' 19432fi 19433rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19434rmdir conf$$.dir 2>/dev/null 19435 19436 19437# as_fn_mkdir_p 19438# ------------- 19439# Create "$as_dir" as a directory, including parents if necessary. 19440as_fn_mkdir_p () 19441{ 19442 19443 case $as_dir in #( 19444 -*) as_dir=./$as_dir;; 19445 esac 19446 test -d "$as_dir" || eval $as_mkdir_p || { 19447 as_dirs= 19448 while :; do 19449 case $as_dir in #( 19450 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19451 *) as_qdir=$as_dir;; 19452 esac 19453 as_dirs="'$as_qdir' $as_dirs" 19454 as_dir=`$as_dirname -- "$as_dir" || 19455$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19456 X"$as_dir" : 'X\(//\)[^/]' \| \ 19457 X"$as_dir" : 'X\(//\)$' \| \ 19458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19459$as_echo X"$as_dir" | 19460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19461 s//\1/ 19462 q 19463 } 19464 /^X\(\/\/\)[^/].*/{ 19465 s//\1/ 19466 q 19467 } 19468 /^X\(\/\/\)$/{ 19469 s//\1/ 19470 q 19471 } 19472 /^X\(\/\).*/{ 19473 s//\1/ 19474 q 19475 } 19476 s/.*/./; q'` 19477 test -d "$as_dir" && break 19478 done 19479 test -z "$as_dirs" || eval "mkdir $as_dirs" 19480 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19481 19482 19483} # as_fn_mkdir_p 19484if mkdir -p . 2>/dev/null; then 19485 as_mkdir_p='mkdir -p "$as_dir"' 19486else 19487 test -d ./-p && rmdir ./-p 19488 as_mkdir_p=false 19489fi 19490 19491 19492# as_fn_executable_p FILE 19493# ----------------------- 19494# Test if FILE is an executable regular file. 19495as_fn_executable_p () 19496{ 19497 test -f "$1" && test -x "$1" 19498} # as_fn_executable_p 19499as_test_x='test -x' 19500as_executable_p=as_fn_executable_p 19501 19502# Sed expression to map a string onto a valid CPP name. 19503as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19504 19505# Sed expression to map a string onto a valid variable name. 19506as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19507 19508 19509exec 6>&1 19510## ----------------------------------- ## 19511## Main body of $CONFIG_STATUS script. ## 19512## ----------------------------------- ## 19513_ASEOF 19514test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19515 19516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19517# Save the log message, to keep $0 and so on meaningful, and to 19518# report actual input values of CONFIG_FILES etc. instead of their 19519# values after options handling. 19520ac_log=" 19521This file was extended by re2c $as_me 2.2, which was 19522generated by GNU Autoconf 2.69. Invocation command line was 19523 19524 CONFIG_FILES = $CONFIG_FILES 19525 CONFIG_HEADERS = $CONFIG_HEADERS 19526 CONFIG_LINKS = $CONFIG_LINKS 19527 CONFIG_COMMANDS = $CONFIG_COMMANDS 19528 $ $0 $@ 19529 19530on `(hostname || uname -n) 2>/dev/null | sed 1q` 19531" 19532 19533_ACEOF 19534 19535case $ac_config_files in *" 19536"*) set x $ac_config_files; shift; ac_config_files=$*;; 19537esac 19538 19539case $ac_config_headers in *" 19540"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19541esac 19542 19543 19544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19545# Files that config.status was made for. 19546config_files="$ac_config_files" 19547config_headers="$ac_config_headers" 19548config_links="$ac_config_links" 19549config_commands="$ac_config_commands" 19550 19551_ACEOF 19552 19553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19554ac_cs_usage="\ 19555\`$as_me' instantiates files and other configuration actions 19556from templates according to the current configuration. Unless the files 19557and actions are specified as TAGs, all are instantiated by default. 19558 19559Usage: $0 [OPTION]... [TAG]... 19560 19561 -h, --help print this help, then exit 19562 -V, --version print version number and configuration settings, then exit 19563 --config print configuration, then exit 19564 -q, --quiet, --silent 19565 do not print progress messages 19566 -d, --debug don't remove temporary files 19567 --recheck update $as_me by reconfiguring in the same conditions 19568 --file=FILE[:TEMPLATE] 19569 instantiate the configuration file FILE 19570 --header=FILE[:TEMPLATE] 19571 instantiate the configuration header FILE 19572 19573Configuration files: 19574$config_files 19575 19576Configuration headers: 19577$config_headers 19578 19579Configuration links: 19580$config_links 19581 19582Configuration commands: 19583$config_commands 19584 19585Report bugs to <re2c-general@lists.sourceforge.net>." 19586 19587_ACEOF 19588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19589ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19590ac_cs_version="\\ 19591re2c config.status 2.2 19592configured by $0, generated by GNU Autoconf 2.69, 19593 with options \\"\$ac_cs_config\\" 19594 19595Copyright (C) 2012 Free Software Foundation, Inc. 19596This config.status script is free software; the Free Software Foundation 19597gives unlimited permission to copy, distribute and modify it." 19598 19599ac_pwd='$ac_pwd' 19600srcdir='$srcdir' 19601INSTALL='$INSTALL' 19602MKDIR_P='$MKDIR_P' 19603AWK='$AWK' 19604test -n "\$AWK" || AWK=awk 19605_ACEOF 19606 19607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19608# The default lists apply if the user does not specify any file. 19609ac_need_defaults=: 19610while test $# != 0 19611do 19612 case $1 in 19613 --*=?*) 19614 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19616 ac_shift=: 19617 ;; 19618 --*=) 19619 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19620 ac_optarg= 19621 ac_shift=: 19622 ;; 19623 *) 19624 ac_option=$1 19625 ac_optarg=$2 19626 ac_shift=shift 19627 ;; 19628 esac 19629 19630 case $ac_option in 19631 # Handling of the options. 19632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19633 ac_cs_recheck=: ;; 19634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19635 $as_echo "$ac_cs_version"; exit ;; 19636 --config | --confi | --conf | --con | --co | --c ) 19637 $as_echo "$ac_cs_config"; exit ;; 19638 --debug | --debu | --deb | --de | --d | -d ) 19639 debug=: ;; 19640 --file | --fil | --fi | --f ) 19641 $ac_shift 19642 case $ac_optarg in 19643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19644 '') as_fn_error $? "missing file argument" ;; 19645 esac 19646 as_fn_append CONFIG_FILES " '$ac_optarg'" 19647 ac_need_defaults=false;; 19648 --header | --heade | --head | --hea ) 19649 $ac_shift 19650 case $ac_optarg in 19651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19652 esac 19653 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19654 ac_need_defaults=false;; 19655 --he | --h) 19656 # Conflict between --help and --header 19657 as_fn_error $? "ambiguous option: \`$1' 19658Try \`$0 --help' for more information.";; 19659 --help | --hel | -h ) 19660 $as_echo "$ac_cs_usage"; exit ;; 19661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19662 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19663 ac_cs_silent=: ;; 19664 19665 # This is an error. 19666 -*) as_fn_error $? "unrecognized option: \`$1' 19667Try \`$0 --help' for more information." ;; 19668 19669 *) as_fn_append ac_config_targets " $1" 19670 ac_need_defaults=false ;; 19671 19672 esac 19673 shift 19674done 19675 19676ac_configure_extra_args= 19677 19678if $ac_cs_silent; then 19679 exec 6>/dev/null 19680 ac_configure_extra_args="$ac_configure_extra_args --silent" 19681fi 19682 19683_ACEOF 19684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19685if \$ac_cs_recheck; then 19686 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19687 shift 19688 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19689 CONFIG_SHELL='$SHELL' 19690 export CONFIG_SHELL 19691 exec "\$@" 19692fi 19693 19694_ACEOF 19695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19696exec 5>>config.log 19697{ 19698 echo 19699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19700## Running $as_me. ## 19701_ASBOX 19702 $as_echo "$ac_log" 19703} >&5 19704 19705_ACEOF 19706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19707# 19708# INIT-COMMANDS 19709# 19710AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19711 19712 19713# The HP-UX ksh and POSIX shell print the target directory to stdout 19714# if CDPATH is set. 19715(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19716 19717sed_quote_subst='$sed_quote_subst' 19718double_quote_subst='$double_quote_subst' 19719delay_variable_subst='$delay_variable_subst' 19720macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19721macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19722AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19723DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19724OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19725enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19726enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19727pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19728enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19729shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19730SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19731ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19732PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19733host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19734host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19735host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19736build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19737build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19738build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19739SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19740Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19741GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19742EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19743FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19744LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19745NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19746LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19747max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19748ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19749exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19750lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19751lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19752lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19753lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19754lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19755reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19756reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19757deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19758file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19759file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19760want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19761sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19762AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19763AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19764archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19765STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19766RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19767old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19768old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19769old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19770lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19771CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19772CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19773compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19774GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19775lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19776lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19777lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19778lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19779lt_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"`' 19780lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19781nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19782lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19783lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19784objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19785MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19786lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19787lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19788lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19789lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19790lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19791need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19792MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19793DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19794NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19795LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19796OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19797OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19798libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19799shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19800extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19801archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19802enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19803export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19804whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19805compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19806old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19807old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19808archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19809archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19810module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19811module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19812with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19813allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19814no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19815hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19816hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19817hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19818hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19819hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19820hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19821hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19822inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19823link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19824always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19825export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19826exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19827include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19828prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19829postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19830file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19831variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19832need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19833need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19834version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19835runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19836shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19837shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19838libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19839library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19840soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19841install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19842postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19843postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19844finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19845finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19846hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19847sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19848configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19849configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19850hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19851enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19852enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19853enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19854old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19855striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19856compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19857predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19858postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19859predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19860postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19861compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19862LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19863reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19864reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19865old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19866compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19867GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19868lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19869lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19870lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19871lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19872lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19873archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19874enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19875export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19876whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19877compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19878old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19879old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19880archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19881archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19882module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19883module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19884with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19885allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19886no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19887hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19888hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19889hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19890hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19891hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19892hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19893hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19894inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19895link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19896always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19897export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19898exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19899include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19900prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19901postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19902file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19903hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19904compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19905predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19906postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19907predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19908postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19909compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19910 19911LTCC='$LTCC' 19912LTCFLAGS='$LTCFLAGS' 19913compiler='$compiler_DEFAULT' 19914 19915# A function that is used when there is no print builtin or printf. 19916func_fallback_echo () 19917{ 19918 eval 'cat <<_LTECHO_EOF 19919\$1 19920_LTECHO_EOF' 19921} 19922 19923# Quote evaled strings. 19924for var in AS \ 19925DLLTOOL \ 19926OBJDUMP \ 19927SHELL \ 19928ECHO \ 19929PATH_SEPARATOR \ 19930SED \ 19931GREP \ 19932EGREP \ 19933FGREP \ 19934LD \ 19935NM \ 19936LN_S \ 19937lt_SP2NL \ 19938lt_NL2SP \ 19939reload_flag \ 19940deplibs_check_method \ 19941file_magic_cmd \ 19942file_magic_glob \ 19943want_nocaseglob \ 19944sharedlib_from_linklib_cmd \ 19945AR \ 19946AR_FLAGS \ 19947archiver_list_spec \ 19948STRIP \ 19949RANLIB \ 19950CC \ 19951CFLAGS \ 19952compiler \ 19953lt_cv_sys_global_symbol_pipe \ 19954lt_cv_sys_global_symbol_to_cdecl \ 19955lt_cv_sys_global_symbol_to_import \ 19956lt_cv_sys_global_symbol_to_c_name_address \ 19957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19958lt_cv_nm_interface \ 19959nm_file_list_spec \ 19960lt_cv_truncate_bin \ 19961lt_prog_compiler_no_builtin_flag \ 19962lt_prog_compiler_pic \ 19963lt_prog_compiler_wl \ 19964lt_prog_compiler_static \ 19965lt_cv_prog_compiler_c_o \ 19966need_locks \ 19967MANIFEST_TOOL \ 19968DSYMUTIL \ 19969NMEDIT \ 19970LIPO \ 19971OTOOL \ 19972OTOOL64 \ 19973shrext_cmds \ 19974export_dynamic_flag_spec \ 19975whole_archive_flag_spec \ 19976compiler_needs_object \ 19977with_gnu_ld \ 19978allow_undefined_flag \ 19979no_undefined_flag \ 19980hardcode_libdir_flag_spec \ 19981hardcode_libdir_separator \ 19982exclude_expsyms \ 19983include_expsyms \ 19984file_list_spec \ 19985variables_saved_for_relink \ 19986libname_spec \ 19987library_names_spec \ 19988soname_spec \ 19989install_override_mode \ 19990finish_eval \ 19991old_striplib \ 19992striplib \ 19993compiler_lib_search_dirs \ 19994predep_objects \ 19995postdep_objects \ 19996predeps \ 19997postdeps \ 19998compiler_lib_search_path \ 19999LD_CXX \ 20000reload_flag_CXX \ 20001compiler_CXX \ 20002lt_prog_compiler_no_builtin_flag_CXX \ 20003lt_prog_compiler_pic_CXX \ 20004lt_prog_compiler_wl_CXX \ 20005lt_prog_compiler_static_CXX \ 20006lt_cv_prog_compiler_c_o_CXX \ 20007export_dynamic_flag_spec_CXX \ 20008whole_archive_flag_spec_CXX \ 20009compiler_needs_object_CXX \ 20010with_gnu_ld_CXX \ 20011allow_undefined_flag_CXX \ 20012no_undefined_flag_CXX \ 20013hardcode_libdir_flag_spec_CXX \ 20014hardcode_libdir_separator_CXX \ 20015exclude_expsyms_CXX \ 20016include_expsyms_CXX \ 20017file_list_spec_CXX \ 20018compiler_lib_search_dirs_CXX \ 20019predep_objects_CXX \ 20020postdep_objects_CXX \ 20021predeps_CXX \ 20022postdeps_CXX \ 20023compiler_lib_search_path_CXX; do 20024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20025 *[\\\\\\\`\\"\\\$]*) 20026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20027 ;; 20028 *) 20029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20030 ;; 20031 esac 20032done 20033 20034# Double-quote double-evaled strings. 20035for var in reload_cmds \ 20036old_postinstall_cmds \ 20037old_postuninstall_cmds \ 20038old_archive_cmds \ 20039extract_expsyms_cmds \ 20040old_archive_from_new_cmds \ 20041old_archive_from_expsyms_cmds \ 20042archive_cmds \ 20043archive_expsym_cmds \ 20044module_cmds \ 20045module_expsym_cmds \ 20046export_symbols_cmds \ 20047prelink_cmds \ 20048postlink_cmds \ 20049postinstall_cmds \ 20050postuninstall_cmds \ 20051finish_cmds \ 20052sys_lib_search_path_spec \ 20053configure_time_dlsearch_path \ 20054configure_time_lt_sys_library_path \ 20055reload_cmds_CXX \ 20056old_archive_cmds_CXX \ 20057old_archive_from_new_cmds_CXX \ 20058old_archive_from_expsyms_cmds_CXX \ 20059archive_cmds_CXX \ 20060archive_expsym_cmds_CXX \ 20061module_cmds_CXX \ 20062module_expsym_cmds_CXX \ 20063export_symbols_cmds_CXX \ 20064prelink_cmds_CXX \ 20065postlink_cmds_CXX; do 20066 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20067 *[\\\\\\\`\\"\\\$]*) 20068 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20069 ;; 20070 *) 20071 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20072 ;; 20073 esac 20074done 20075 20076ac_aux_dir='$ac_aux_dir' 20077 20078# See if we are running on zsh, and set the options that allow our 20079# commands through without removal of \ escapes INIT. 20080if test -n "\${ZSH_VERSION+set}"; then 20081 setopt NO_GLOB_SUBST 20082fi 20083 20084 20085 PACKAGE='$PACKAGE' 20086 VERSION='$VERSION' 20087 RM='$RM' 20088 ofile='$ofile' 20089 20090 20091 20092 20093 20094 20095_ACEOF 20096 20097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20098 20099# Handling of arguments. 20100for ac_config_target in $ac_config_targets 20101do 20102 case $ac_config_target in 20103 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20104 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20106 "benchmarks/submatch_nfa/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/submatch_nfa/Makefile" ;; 20107 "benchmarks/submatch_dfa_aot/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/submatch_dfa_aot/Makefile" ;; 20108 "benchmarks/submatch_dfa_jit/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/submatch_dfa_jit/Makefile" ;; 20109 "benchmarks/submatch_java/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/submatch_java/Makefile" ;; 20110 "doc/manpage.rst") CONFIG_FILES="$CONFIG_FILES doc/manpage.rst" ;; 20111 "doc/help.rst") CONFIG_FILES="$CONFIG_FILES doc/help.rst" ;; 20112 "run_tests.py") CONFIG_FILES="$CONFIG_FILES run_tests.py" ;; 20113 "benchmarks/submatch_dfa_aot/run.py") CONFIG_FILES="$CONFIG_FILES benchmarks/submatch_dfa_aot/run.py" ;; 20114 "benchmarks/submatch_java/run.py") CONFIG_FILES="$CONFIG_FILES benchmarks/submatch_java/run.py" ;; 20115 "benchmarks/submatch_java/chart.js") CONFIG_LINKS="$CONFIG_LINKS benchmarks/submatch_java/chart.js:benchmarks/submatch_java/chart.js" ;; 20116 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20117 20118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20119 esac 20120done 20121 20122 20123# If the user did not use the arguments to specify the items to instantiate, 20124# then the envvar interface is used. Set only those that are not. 20125# We use the long form for the default assignment because of an extremely 20126# bizarre bug on SunOS 4.1.3. 20127if $ac_need_defaults; then 20128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 20131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20132fi 20133 20134# Have a temporary directory for convenience. Make it in the build tree 20135# simply because there is no reason against having it here, and in addition, 20136# creating and moving files from /tmp can sometimes cause problems. 20137# Hook for its removal unless debugging. 20138# Note that there is a small window in which the directory will not be cleaned: 20139# after its creation but before its name has been assigned to `$tmp'. 20140$debug || 20141{ 20142 tmp= ac_tmp= 20143 trap 'exit_status=$? 20144 : "${ac_tmp:=$tmp}" 20145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20146' 0 20147 trap 'as_fn_exit 1' 1 2 13 15 20148} 20149# Create a (secure) tmp directory for tmp files. 20150 20151{ 20152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20153 test -d "$tmp" 20154} || 20155{ 20156 tmp=./conf$$-$RANDOM 20157 (umask 077 && mkdir "$tmp") 20158} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20159ac_tmp=$tmp 20160 20161# Set up the scripts for CONFIG_FILES section. 20162# No need to generate them if there are no CONFIG_FILES. 20163# This happens for instance with `./config.status config.h'. 20164if test -n "$CONFIG_FILES"; then 20165 20166 20167ac_cr=`echo X | tr X '\015'` 20168# On cygwin, bash can eat \r inside `` if the user requested igncr. 20169# But we know of no other shell where ac_cr would be empty at this 20170# point, so we can use a bashism as a fallback. 20171if test "x$ac_cr" = x; then 20172 eval ac_cr=\$\'\\r\' 20173fi 20174ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20175if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20176 ac_cs_awk_cr='\\r' 20177else 20178 ac_cs_awk_cr=$ac_cr 20179fi 20180 20181echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20182_ACEOF 20183 20184 20185{ 20186 echo "cat >conf$$subs.awk <<_ACEOF" && 20187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20188 echo "_ACEOF" 20189} >conf$$subs.sh || 20190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20191ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20192ac_delim='%!_!# ' 20193for ac_last_try in false false false false false :; do 20194 . ./conf$$subs.sh || 20195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20196 20197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20198 if test $ac_delim_n = $ac_delim_num; then 20199 break 20200 elif $ac_last_try; then 20201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20202 else 20203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20204 fi 20205done 20206rm -f conf$$subs.sh 20207 20208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20209cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20210_ACEOF 20211sed -n ' 20212h 20213s/^/S["/; s/!.*/"]=/ 20214p 20215g 20216s/^[^!]*!// 20217:repl 20218t repl 20219s/'"$ac_delim"'$// 20220t delim 20221:nl 20222h 20223s/\(.\{148\}\)..*/\1/ 20224t more1 20225s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20226p 20227n 20228b repl 20229:more1 20230s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20231p 20232g 20233s/.\{148\}// 20234t nl 20235:delim 20236h 20237s/\(.\{148\}\)..*/\1/ 20238t more2 20239s/["\\]/\\&/g; s/^/"/; s/$/"/ 20240p 20241b 20242:more2 20243s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20244p 20245g 20246s/.\{148\}// 20247t delim 20248' <conf$$subs.awk | sed ' 20249/^[^""]/{ 20250 N 20251 s/\n// 20252} 20253' >>$CONFIG_STATUS || ac_write_fail=1 20254rm -f conf$$subs.awk 20255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20256_ACAWK 20257cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20258 for (key in S) S_is_set[key] = 1 20259 FS = "" 20260 20261} 20262{ 20263 line = $ 0 20264 nfields = split(line, field, "@") 20265 substed = 0 20266 len = length(field[1]) 20267 for (i = 2; i < nfields; i++) { 20268 key = field[i] 20269 keylen = length(key) 20270 if (S_is_set[key]) { 20271 value = S[key] 20272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20273 len += length(value) + length(field[++i]) 20274 substed = 1 20275 } else 20276 len += 1 + keylen 20277 } 20278 20279 print line 20280} 20281 20282_ACAWK 20283_ACEOF 20284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20285if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20287else 20288 cat 20289fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20291_ACEOF 20292 20293# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20294# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20295# trailing colons and then remove the whole line if VPATH becomes empty 20296# (actually we leave an empty line to preserve line numbers). 20297if test "x$srcdir" = x.; then 20298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20299h 20300s/// 20301s/^/:/ 20302s/[ ]*$/:/ 20303s/:\$(srcdir):/:/g 20304s/:\${srcdir}:/:/g 20305s/:@srcdir@:/:/g 20306s/^:*// 20307s/:*$// 20308x 20309s/\(=[ ]*\).*/\1/ 20310G 20311s/\n// 20312s/^[^=]*=[ ]*$// 20313}' 20314fi 20315 20316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20317fi # test -n "$CONFIG_FILES" 20318 20319# Set up the scripts for CONFIG_HEADERS section. 20320# No need to generate them if there are no CONFIG_HEADERS. 20321# This happens for instance with `./config.status Makefile'. 20322if test -n "$CONFIG_HEADERS"; then 20323cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20324BEGIN { 20325_ACEOF 20326 20327# Transform confdefs.h into an awk script `defines.awk', embedded as 20328# here-document in config.status, that substitutes the proper values into 20329# config.h.in to produce config.h. 20330 20331# Create a delimiter string that does not exist in confdefs.h, to ease 20332# handling of long lines. 20333ac_delim='%!_!# ' 20334for ac_last_try in false false :; do 20335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20336 if test -z "$ac_tt"; then 20337 break 20338 elif $ac_last_try; then 20339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20340 else 20341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20342 fi 20343done 20344 20345# For the awk script, D is an array of macro values keyed by name, 20346# likewise P contains macro parameters if any. Preserve backslash 20347# newline sequences. 20348 20349ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20350sed -n ' 20351s/.\{148\}/&'"$ac_delim"'/g 20352t rset 20353:rset 20354s/^[ ]*#[ ]*define[ ][ ]*/ / 20355t def 20356d 20357:def 20358s/\\$// 20359t bsnl 20360s/["\\]/\\&/g 20361s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20362D["\1"]=" \3"/p 20363s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20364d 20365:bsnl 20366s/["\\]/\\&/g 20367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20368D["\1"]=" \3\\\\\\n"\\/p 20369t cont 20370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20371t cont 20372d 20373:cont 20374n 20375s/.\{148\}/&'"$ac_delim"'/g 20376t clear 20377:clear 20378s/\\$// 20379t bsnlc 20380s/["\\]/\\&/g; s/^/"/; s/$/"/p 20381d 20382:bsnlc 20383s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20384b cont 20385' <confdefs.h | sed ' 20386s/'"$ac_delim"'/"\\\ 20387"/g' >>$CONFIG_STATUS || ac_write_fail=1 20388 20389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20390 for (key in D) D_is_set[key] = 1 20391 FS = "" 20392} 20393/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20394 line = \$ 0 20395 split(line, arg, " ") 20396 if (arg[1] == "#") { 20397 defundef = arg[2] 20398 mac1 = arg[3] 20399 } else { 20400 defundef = substr(arg[1], 2) 20401 mac1 = arg[2] 20402 } 20403 split(mac1, mac2, "(") #) 20404 macro = mac2[1] 20405 prefix = substr(line, 1, index(line, defundef) - 1) 20406 if (D_is_set[macro]) { 20407 # Preserve the white space surrounding the "#". 20408 print prefix "define", macro P[macro] D[macro] 20409 next 20410 } else { 20411 # Replace #undef with comments. This is necessary, for example, 20412 # in the case of _POSIX_SOURCE, which is predefined and required 20413 # on some systems where configure will not decide to define it. 20414 if (defundef == "undef") { 20415 print "/*", prefix defundef, macro, "*/" 20416 next 20417 } 20418 } 20419} 20420{ print } 20421_ACAWK 20422_ACEOF 20423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20425fi # test -n "$CONFIG_HEADERS" 20426 20427 20428eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 20429shift 20430for ac_tag 20431do 20432 case $ac_tag in 20433 :[FHLC]) ac_mode=$ac_tag; continue;; 20434 esac 20435 case $ac_mode$ac_tag in 20436 :[FHL]*:*);; 20437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20438 :[FH]-) ac_tag=-:-;; 20439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20440 esac 20441 ac_save_IFS=$IFS 20442 IFS=: 20443 set x $ac_tag 20444 IFS=$ac_save_IFS 20445 shift 20446 ac_file=$1 20447 shift 20448 20449 case $ac_mode in 20450 :L) ac_source=$1;; 20451 :[FH]) 20452 ac_file_inputs= 20453 for ac_f 20454 do 20455 case $ac_f in 20456 -) ac_f="$ac_tmp/stdin";; 20457 *) # Look for the file first in the build tree, then in the source tree 20458 # (if the path is not absolute). The absolute path cannot be DOS-style, 20459 # because $ac_f cannot contain `:'. 20460 test -f "$ac_f" || 20461 case $ac_f in 20462 [\\/$]*) false;; 20463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20464 esac || 20465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20466 esac 20467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20468 as_fn_append ac_file_inputs " '$ac_f'" 20469 done 20470 20471 # Let's still pretend it is `configure' which instantiates (i.e., don't 20472 # use $as_me), people would be surprised to read: 20473 # /* config.h. Generated by config.status. */ 20474 configure_input='Generated from '` 20475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20476 `' by configure.' 20477 if test x"$ac_file" != x-; then 20478 configure_input="$ac_file. $configure_input" 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20480$as_echo "$as_me: creating $ac_file" >&6;} 20481 fi 20482 # Neutralize special characters interpreted by sed in replacement strings. 20483 case $configure_input in #( 20484 *\&* | *\|* | *\\* ) 20485 ac_sed_conf_input=`$as_echo "$configure_input" | 20486 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20487 *) ac_sed_conf_input=$configure_input;; 20488 esac 20489 20490 case $ac_tag in 20491 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20493 esac 20494 ;; 20495 esac 20496 20497 ac_dir=`$as_dirname -- "$ac_file" || 20498$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20499 X"$ac_file" : 'X\(//\)[^/]' \| \ 20500 X"$ac_file" : 'X\(//\)$' \| \ 20501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20502$as_echo X"$ac_file" | 20503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20504 s//\1/ 20505 q 20506 } 20507 /^X\(\/\/\)[^/].*/{ 20508 s//\1/ 20509 q 20510 } 20511 /^X\(\/\/\)$/{ 20512 s//\1/ 20513 q 20514 } 20515 /^X\(\/\).*/{ 20516 s//\1/ 20517 q 20518 } 20519 s/.*/./; q'` 20520 as_dir="$ac_dir"; as_fn_mkdir_p 20521 ac_builddir=. 20522 20523case "$ac_dir" in 20524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20525*) 20526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20527 # A ".." for each directory in $ac_dir_suffix. 20528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20529 case $ac_top_builddir_sub in 20530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20532 esac ;; 20533esac 20534ac_abs_top_builddir=$ac_pwd 20535ac_abs_builddir=$ac_pwd$ac_dir_suffix 20536# for backward compatibility: 20537ac_top_builddir=$ac_top_build_prefix 20538 20539case $srcdir in 20540 .) # We are building in place. 20541 ac_srcdir=. 20542 ac_top_srcdir=$ac_top_builddir_sub 20543 ac_abs_top_srcdir=$ac_pwd ;; 20544 [\\/]* | ?:[\\/]* ) # Absolute name. 20545 ac_srcdir=$srcdir$ac_dir_suffix; 20546 ac_top_srcdir=$srcdir 20547 ac_abs_top_srcdir=$srcdir ;; 20548 *) # Relative name. 20549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20550 ac_top_srcdir=$ac_top_build_prefix$srcdir 20551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20552esac 20553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20554 20555 20556 case $ac_mode in 20557 :F) 20558 # 20559 # CONFIG_FILE 20560 # 20561 20562 case $INSTALL in 20563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20565 esac 20566 ac_MKDIR_P=$MKDIR_P 20567 case $MKDIR_P in 20568 [\\/$]* | ?:[\\/]* ) ;; 20569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20570 esac 20571_ACEOF 20572 20573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20574# If the template does not know about datarootdir, expand it. 20575# FIXME: This hack should be removed a few years after 2.60. 20576ac_datarootdir_hack=; ac_datarootdir_seen= 20577ac_sed_dataroot=' 20578/datarootdir/ { 20579 p 20580 q 20581} 20582/@datadir@/p 20583/@docdir@/p 20584/@infodir@/p 20585/@localedir@/p 20586/@mandir@/p' 20587case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20588*datarootdir*) ac_datarootdir_seen=yes;; 20589*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20591$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20592_ACEOF 20593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20594 ac_datarootdir_hack=' 20595 s&@datadir@&$datadir&g 20596 s&@docdir@&$docdir&g 20597 s&@infodir@&$infodir&g 20598 s&@localedir@&$localedir&g 20599 s&@mandir@&$mandir&g 20600 s&\\\${datarootdir}&$datarootdir&g' ;; 20601esac 20602_ACEOF 20603 20604# Neutralize VPATH when `$srcdir' = `.'. 20605# Shell code in configure.ac might set extrasub. 20606# FIXME: do we really want to maintain this feature? 20607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20608ac_sed_extra="$ac_vpsub 20609$extrasub 20610_ACEOF 20611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20612:t 20613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20614s|@configure_input@|$ac_sed_conf_input|;t t 20615s&@top_builddir@&$ac_top_builddir_sub&;t t 20616s&@top_build_prefix@&$ac_top_build_prefix&;t t 20617s&@srcdir@&$ac_srcdir&;t t 20618s&@abs_srcdir@&$ac_abs_srcdir&;t t 20619s&@top_srcdir@&$ac_top_srcdir&;t t 20620s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20621s&@builddir@&$ac_builddir&;t t 20622s&@abs_builddir@&$ac_abs_builddir&;t t 20623s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20624s&@INSTALL@&$ac_INSTALL&;t t 20625s&@MKDIR_P@&$ac_MKDIR_P&;t t 20626$ac_datarootdir_hack 20627" 20628eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20630 20631test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20634 "$ac_tmp/out"`; test -z "$ac_out"; } && 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20636which seems to be undefined. Please make sure it is defined" >&5 20637$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20638which seems to be undefined. Please make sure it is defined" >&2;} 20639 20640 rm -f "$ac_tmp/stdin" 20641 case $ac_file in 20642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20644 esac \ 20645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20646 ;; 20647 :H) 20648 # 20649 # CONFIG_HEADER 20650 # 20651 if test x"$ac_file" != x-; then 20652 { 20653 $as_echo "/* $configure_input */" \ 20654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20655 } >"$ac_tmp/config.h" \ 20656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20659$as_echo "$as_me: $ac_file is unchanged" >&6;} 20660 else 20661 rm -f "$ac_file" 20662 mv "$ac_tmp/config.h" "$ac_file" \ 20663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20664 fi 20665 else 20666 $as_echo "/* $configure_input */" \ 20667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20668 || as_fn_error $? "could not create -" "$LINENO" 5 20669 fi 20670# Compute "$ac_file"'s index in $config_headers. 20671_am_arg="$ac_file" 20672_am_stamp_count=1 20673for _am_header in $config_headers :; do 20674 case $_am_header in 20675 $_am_arg | $_am_arg:* ) 20676 break ;; 20677 * ) 20678 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20679 esac 20680done 20681echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20682$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20683 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20684 X"$_am_arg" : 'X\(//\)$' \| \ 20685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20686$as_echo X"$_am_arg" | 20687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20688 s//\1/ 20689 q 20690 } 20691 /^X\(\/\/\)[^/].*/{ 20692 s//\1/ 20693 q 20694 } 20695 /^X\(\/\/\)$/{ 20696 s//\1/ 20697 q 20698 } 20699 /^X\(\/\).*/{ 20700 s//\1/ 20701 q 20702 } 20703 s/.*/./; q'`/stamp-h$_am_stamp_count 20704 ;; 20705 :L) 20706 # 20707 # CONFIG_LINK 20708 # 20709 20710 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 20711 : 20712 else 20713 # Prefer the file from the source tree if names are identical. 20714 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 20715 ac_source=$srcdir/$ac_source 20716 fi 20717 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 20719$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 20720 20721 if test ! -r "$ac_source"; then 20722 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 20723 fi 20724 rm -f "$ac_file" 20725 20726 # Try a relative symlink, then a hard link, then a copy. 20727 case $ac_source in 20728 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 20729 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 20730 esac 20731 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 20732 ln "$ac_source" "$ac_file" 2>/dev/null || 20733 cp -p "$ac_source" "$ac_file" || 20734 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 20735 fi 20736 ;; 20737 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20738$as_echo "$as_me: executing $ac_file commands" >&6;} 20739 ;; 20740 esac 20741 20742 20743 case $ac_file$ac_mode in 20744 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20745 # Older Autoconf quotes --file arguments for eval, but not when files 20746 # are listed without --file. Let's play safe and only enable the eval 20747 # if we detect the quoting. 20748 # TODO: see whether this extra hack can be removed once we start 20749 # requiring Autoconf 2.70 or later. 20750 case $CONFIG_FILES in #( 20751 *\'*) : 20752 eval set x "$CONFIG_FILES" ;; #( 20753 *) : 20754 set x $CONFIG_FILES ;; #( 20755 *) : 20756 ;; 20757esac 20758 shift 20759 # Used to flag and report bootstrapping failures. 20760 am_rc=0 20761 for am_mf 20762 do 20763 # Strip MF so we end up with the name of the file. 20764 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20765 # Check whether this is an Automake generated Makefile which includes 20766 # dependency-tracking related rules and includes. 20767 # Grep'ing the whole file directly is not great: AIX grep has a line 20768 # limit of 2048, but all sed's we know have understand at least 4000. 20769 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20770 || continue 20771 am_dirpart=`$as_dirname -- "$am_mf" || 20772$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20773 X"$am_mf" : 'X\(//\)[^/]' \| \ 20774 X"$am_mf" : 'X\(//\)$' \| \ 20775 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20776$as_echo X"$am_mf" | 20777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20778 s//\1/ 20779 q 20780 } 20781 /^X\(\/\/\)[^/].*/{ 20782 s//\1/ 20783 q 20784 } 20785 /^X\(\/\/\)$/{ 20786 s//\1/ 20787 q 20788 } 20789 /^X\(\/\).*/{ 20790 s//\1/ 20791 q 20792 } 20793 s/.*/./; q'` 20794 am_filepart=`$as_basename -- "$am_mf" || 20795$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20796 X"$am_mf" : 'X\(//\)$' \| \ 20797 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20798$as_echo X/"$am_mf" | 20799 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20800 s//\1/ 20801 q 20802 } 20803 /^X\/\(\/\/\)$/{ 20804 s//\1/ 20805 q 20806 } 20807 /^X\/\(\/\).*/{ 20808 s//\1/ 20809 q 20810 } 20811 s/.*/./; q'` 20812 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20813 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20814 | $MAKE -f - am--depfiles" >&5 20815 (cd "$am_dirpart" \ 20816 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20817 | $MAKE -f - am--depfiles) >&5 2>&5 20818 ac_status=$? 20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20820 (exit $ac_status); } || am_rc=$? 20821 done 20822 if test $am_rc -ne 0; then 20823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20825as_fn_error $? "Something went wrong bootstrapping makefile fragments 20826 for automatic dependency tracking. If GNU make was not used, consider 20827 re-running the configure script with MAKE=\"gmake\" (or whatever is 20828 necessary). You can also try re-running configure with the 20829 '--disable-dependency-tracking' option to at least be able to build 20830 the package (albeit without support for automatic dependency tracking). 20831See \`config.log' for more details" "$LINENO" 5; } 20832 fi 20833 { am_dirpart=; unset am_dirpart;} 20834 { am_filepart=; unset am_filepart;} 20835 { am_mf=; unset am_mf;} 20836 { am_rc=; unset am_rc;} 20837 rm -f conftest-deps.mk 20838} 20839 ;; 20840 "run_tests.py":F) chmod +x run_tests.py ;; 20841 "benchmarks/submatch_dfa_aot/run.py":F) chmod +x benchmarks/submatch_dfa_aot/run.py ;; 20842 "benchmarks/submatch_java/run.py":F) chmod +x benchmarks/submatch_java/run.py ;; 20843 "libtool":C) 20844 20845 # See if we are running on zsh, and set the options that allow our 20846 # commands through without removal of \ escapes. 20847 if test -n "${ZSH_VERSION+set}"; then 20848 setopt NO_GLOB_SUBST 20849 fi 20850 20851 cfgfile=${ofile}T 20852 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20853 $RM "$cfgfile" 20854 20855 cat <<_LT_EOF >> "$cfgfile" 20856#! $SHELL 20857# Generated automatically by $as_me ($PACKAGE) $VERSION 20858# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20859# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20860 20861# Provide generalized library-building support services. 20862# Written by Gordon Matzigkeit, 1996 20863 20864# Copyright (C) 2014 Free Software Foundation, Inc. 20865# This is free software; see the source for copying conditions. There is NO 20866# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20867 20868# GNU Libtool is free software; you can redistribute it and/or modify 20869# it under the terms of the GNU General Public License as published by 20870# the Free Software Foundation; either version 2 of of the License, or 20871# (at your option) any later version. 20872# 20873# As a special exception to the GNU General Public License, if you 20874# distribute this file as part of a program or library that is built 20875# using GNU Libtool, you may include this file under the same 20876# distribution terms that you use for the rest of that program. 20877# 20878# GNU Libtool is distributed in the hope that it will be useful, but 20879# WITHOUT ANY WARRANTY; without even the implied warranty of 20880# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20881# GNU General Public License for more details. 20882# 20883# You should have received a copy of the GNU General Public License 20884# along with this program. If not, see <http://www.gnu.org/licenses/>. 20885 20886 20887# The names of the tagged configurations supported by this script. 20888available_tags='CXX ' 20889 20890# Configured defaults for sys_lib_dlsearch_path munging. 20891: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20892 20893# ### BEGIN LIBTOOL CONFIG 20894 20895# Which release of libtool.m4 was used? 20896macro_version=$macro_version 20897macro_revision=$macro_revision 20898 20899# Assembler program. 20900AS=$lt_AS 20901 20902# DLL creation program. 20903DLLTOOL=$lt_DLLTOOL 20904 20905# Object dumper program. 20906OBJDUMP=$lt_OBJDUMP 20907 20908# Whether or not to build shared libraries. 20909build_libtool_libs=$enable_shared 20910 20911# Whether or not to build static libraries. 20912build_old_libs=$enable_static 20913 20914# What type of objects to build. 20915pic_mode=$pic_mode 20916 20917# Whether or not to optimize for fast installation. 20918fast_install=$enable_fast_install 20919 20920# Shared archive member basename,for filename based shared library versioning on AIX. 20921shared_archive_member_spec=$shared_archive_member_spec 20922 20923# Shell to use when invoking shell scripts. 20924SHELL=$lt_SHELL 20925 20926# An echo program that protects backslashes. 20927ECHO=$lt_ECHO 20928 20929# The PATH separator for the build system. 20930PATH_SEPARATOR=$lt_PATH_SEPARATOR 20931 20932# The host system. 20933host_alias=$host_alias 20934host=$host 20935host_os=$host_os 20936 20937# The build system. 20938build_alias=$build_alias 20939build=$build 20940build_os=$build_os 20941 20942# A sed program that does not truncate output. 20943SED=$lt_SED 20944 20945# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20946Xsed="\$SED -e 1s/^X//" 20947 20948# A grep program that handles long lines. 20949GREP=$lt_GREP 20950 20951# An ERE matcher. 20952EGREP=$lt_EGREP 20953 20954# A literal string matcher. 20955FGREP=$lt_FGREP 20956 20957# A BSD- or MS-compatible name lister. 20958NM=$lt_NM 20959 20960# Whether we need soft or hard links. 20961LN_S=$lt_LN_S 20962 20963# What is the maximum length of a command? 20964max_cmd_len=$max_cmd_len 20965 20966# Object file suffix (normally "o"). 20967objext=$ac_objext 20968 20969# Executable file suffix (normally ""). 20970exeext=$exeext 20971 20972# whether the shell understands "unset". 20973lt_unset=$lt_unset 20974 20975# turn spaces into newlines. 20976SP2NL=$lt_lt_SP2NL 20977 20978# turn newlines into spaces. 20979NL2SP=$lt_lt_NL2SP 20980 20981# convert \$build file names to \$host format. 20982to_host_file_cmd=$lt_cv_to_host_file_cmd 20983 20984# convert \$build files to toolchain format. 20985to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20986 20987# Method to check whether dependent libraries are shared objects. 20988deplibs_check_method=$lt_deplibs_check_method 20989 20990# Command to use when deplibs_check_method = "file_magic". 20991file_magic_cmd=$lt_file_magic_cmd 20992 20993# How to find potential files when deplibs_check_method = "file_magic". 20994file_magic_glob=$lt_file_magic_glob 20995 20996# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20997want_nocaseglob=$lt_want_nocaseglob 20998 20999# Command to associate shared and link libraries. 21000sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21001 21002# The archiver. 21003AR=$lt_AR 21004 21005# Flags to create an archive. 21006AR_FLAGS=$lt_AR_FLAGS 21007 21008# How to feed a file listing to the archiver. 21009archiver_list_spec=$lt_archiver_list_spec 21010 21011# A symbol stripping program. 21012STRIP=$lt_STRIP 21013 21014# Commands used to install an old-style archive. 21015RANLIB=$lt_RANLIB 21016old_postinstall_cmds=$lt_old_postinstall_cmds 21017old_postuninstall_cmds=$lt_old_postuninstall_cmds 21018 21019# Whether to use a lock for old archive extraction. 21020lock_old_archive_extraction=$lock_old_archive_extraction 21021 21022# A C compiler. 21023LTCC=$lt_CC 21024 21025# LTCC compiler flags. 21026LTCFLAGS=$lt_CFLAGS 21027 21028# Take the output of nm and produce a listing of raw symbols and C names. 21029global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21030 21031# Transform the output of nm in a proper C declaration. 21032global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21033 21034# Transform the output of nm into a list of symbols to manually relocate. 21035global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21036 21037# Transform the output of nm in a C name address pair. 21038global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21039 21040# Transform the output of nm in a C name address pair when lib prefix is needed. 21041global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21042 21043# The name lister interface. 21044nm_interface=$lt_lt_cv_nm_interface 21045 21046# Specify filename containing input files for \$NM. 21047nm_file_list_spec=$lt_nm_file_list_spec 21048 21049# The root where to search for dependent libraries,and where our libraries should be installed. 21050lt_sysroot=$lt_sysroot 21051 21052# Command to truncate a binary pipe. 21053lt_truncate_bin=$lt_lt_cv_truncate_bin 21054 21055# The name of the directory that contains temporary libtool files. 21056objdir=$objdir 21057 21058# Used to examine libraries when file_magic_cmd begins with "file". 21059MAGIC_CMD=$MAGIC_CMD 21060 21061# Must we lock files when doing compilation? 21062need_locks=$lt_need_locks 21063 21064# Manifest tool. 21065MANIFEST_TOOL=$lt_MANIFEST_TOOL 21066 21067# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21068DSYMUTIL=$lt_DSYMUTIL 21069 21070# Tool to change global to local symbols on Mac OS X. 21071NMEDIT=$lt_NMEDIT 21072 21073# Tool to manipulate fat objects and archives on Mac OS X. 21074LIPO=$lt_LIPO 21075 21076# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21077OTOOL=$lt_OTOOL 21078 21079# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21080OTOOL64=$lt_OTOOL64 21081 21082# Old archive suffix (normally "a"). 21083libext=$libext 21084 21085# Shared library suffix (normally ".so"). 21086shrext_cmds=$lt_shrext_cmds 21087 21088# The commands to extract the exported symbol list from a shared archive. 21089extract_expsyms_cmds=$lt_extract_expsyms_cmds 21090 21091# Variables whose values should be saved in libtool wrapper scripts and 21092# restored at link time. 21093variables_saved_for_relink=$lt_variables_saved_for_relink 21094 21095# Do we need the "lib" prefix for modules? 21096need_lib_prefix=$need_lib_prefix 21097 21098# Do we need a version for libraries? 21099need_version=$need_version 21100 21101# Library versioning type. 21102version_type=$version_type 21103 21104# Shared library runtime path variable. 21105runpath_var=$runpath_var 21106 21107# Shared library path variable. 21108shlibpath_var=$shlibpath_var 21109 21110# Is shlibpath searched before the hard-coded library search path? 21111shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21112 21113# Format of library name prefix. 21114libname_spec=$lt_libname_spec 21115 21116# List of archive names. First name is the real one, the rest are links. 21117# The last name is the one that the linker finds with -lNAME 21118library_names_spec=$lt_library_names_spec 21119 21120# The coded name of the library, if different from the real name. 21121soname_spec=$lt_soname_spec 21122 21123# Permission mode override for installation of shared libraries. 21124install_override_mode=$lt_install_override_mode 21125 21126# Command to use after installation of a shared archive. 21127postinstall_cmds=$lt_postinstall_cmds 21128 21129# Command to use after uninstallation of a shared archive. 21130postuninstall_cmds=$lt_postuninstall_cmds 21131 21132# Commands used to finish a libtool library installation in a directory. 21133finish_cmds=$lt_finish_cmds 21134 21135# As "finish_cmds", except a single script fragment to be evaled but 21136# not shown. 21137finish_eval=$lt_finish_eval 21138 21139# Whether we should hardcode library paths into libraries. 21140hardcode_into_libs=$hardcode_into_libs 21141 21142# Compile-time system search path for libraries. 21143sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21144 21145# Detected run-time system search path for libraries. 21146sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21147 21148# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21149configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21150 21151# Whether dlopen is supported. 21152dlopen_support=$enable_dlopen 21153 21154# Whether dlopen of programs is supported. 21155dlopen_self=$enable_dlopen_self 21156 21157# Whether dlopen of statically linked programs is supported. 21158dlopen_self_static=$enable_dlopen_self_static 21159 21160# Commands to strip libraries. 21161old_striplib=$lt_old_striplib 21162striplib=$lt_striplib 21163 21164 21165# The linker used to build libraries. 21166LD=$lt_LD 21167 21168# How to create reloadable object files. 21169reload_flag=$lt_reload_flag 21170reload_cmds=$lt_reload_cmds 21171 21172# Commands used to build an old-style archive. 21173old_archive_cmds=$lt_old_archive_cmds 21174 21175# A language specific compiler. 21176CC=$lt_compiler 21177 21178# Is the compiler the GNU compiler? 21179with_gcc=$GCC 21180 21181# Compiler flag to turn off builtin functions. 21182no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21183 21184# Additional compiler flags for building library objects. 21185pic_flag=$lt_lt_prog_compiler_pic 21186 21187# How to pass a linker flag through the compiler. 21188wl=$lt_lt_prog_compiler_wl 21189 21190# Compiler flag to prevent dynamic linking. 21191link_static_flag=$lt_lt_prog_compiler_static 21192 21193# Does compiler simultaneously support -c and -o options? 21194compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21195 21196# Whether or not to add -lc for building shared libraries. 21197build_libtool_need_lc=$archive_cmds_need_lc 21198 21199# Whether or not to disallow shared libs when runtime libs are static. 21200allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21201 21202# Compiler flag to allow reflexive dlopens. 21203export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21204 21205# Compiler flag to generate shared objects directly from archives. 21206whole_archive_flag_spec=$lt_whole_archive_flag_spec 21207 21208# Whether the compiler copes with passing no objects directly. 21209compiler_needs_object=$lt_compiler_needs_object 21210 21211# Create an old-style archive from a shared archive. 21212old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21213 21214# Create a temporary old-style archive to link instead of a shared archive. 21215old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21216 21217# Commands used to build a shared archive. 21218archive_cmds=$lt_archive_cmds 21219archive_expsym_cmds=$lt_archive_expsym_cmds 21220 21221# Commands used to build a loadable module if different from building 21222# a shared archive. 21223module_cmds=$lt_module_cmds 21224module_expsym_cmds=$lt_module_expsym_cmds 21225 21226# Whether we are building with GNU ld or not. 21227with_gnu_ld=$lt_with_gnu_ld 21228 21229# Flag that allows shared libraries with undefined symbols to be built. 21230allow_undefined_flag=$lt_allow_undefined_flag 21231 21232# Flag that enforces no undefined symbols. 21233no_undefined_flag=$lt_no_undefined_flag 21234 21235# Flag to hardcode \$libdir into a binary during linking. 21236# This must work even if \$libdir does not exist 21237hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21238 21239# Whether we need a single "-rpath" flag with a separated argument. 21240hardcode_libdir_separator=$lt_hardcode_libdir_separator 21241 21242# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21243# DIR into the resulting binary. 21244hardcode_direct=$hardcode_direct 21245 21246# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21247# DIR into the resulting binary and the resulting library dependency is 21248# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21249# library is relocated. 21250hardcode_direct_absolute=$hardcode_direct_absolute 21251 21252# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21253# into the resulting binary. 21254hardcode_minus_L=$hardcode_minus_L 21255 21256# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21257# into the resulting binary. 21258hardcode_shlibpath_var=$hardcode_shlibpath_var 21259 21260# Set to "yes" if building a shared library automatically hardcodes DIR 21261# into the library and all subsequent libraries and executables linked 21262# against it. 21263hardcode_automatic=$hardcode_automatic 21264 21265# Set to yes if linker adds runtime paths of dependent libraries 21266# to runtime path list. 21267inherit_rpath=$inherit_rpath 21268 21269# Whether libtool must link a program against all its dependency libraries. 21270link_all_deplibs=$link_all_deplibs 21271 21272# Set to "yes" if exported symbols are required. 21273always_export_symbols=$always_export_symbols 21274 21275# The commands to list exported symbols. 21276export_symbols_cmds=$lt_export_symbols_cmds 21277 21278# Symbols that should not be listed in the preloaded symbols. 21279exclude_expsyms=$lt_exclude_expsyms 21280 21281# Symbols that must always be exported. 21282include_expsyms=$lt_include_expsyms 21283 21284# Commands necessary for linking programs (against libraries) with templates. 21285prelink_cmds=$lt_prelink_cmds 21286 21287# Commands necessary for finishing linking programs. 21288postlink_cmds=$lt_postlink_cmds 21289 21290# Specify filename containing input files. 21291file_list_spec=$lt_file_list_spec 21292 21293# How to hardcode a shared library path into an executable. 21294hardcode_action=$hardcode_action 21295 21296# The directories searched by this compiler when creating a shared library. 21297compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 21298 21299# Dependencies to place before and after the objects being linked to 21300# create a shared library. 21301predep_objects=$lt_predep_objects 21302postdep_objects=$lt_postdep_objects 21303predeps=$lt_predeps 21304postdeps=$lt_postdeps 21305 21306# The library search path used internally by the compiler when linking 21307# a shared library. 21308compiler_lib_search_path=$lt_compiler_lib_search_path 21309 21310# ### END LIBTOOL CONFIG 21311 21312_LT_EOF 21313 21314 cat <<'_LT_EOF' >> "$cfgfile" 21315 21316# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21317 21318# func_munge_path_list VARIABLE PATH 21319# ----------------------------------- 21320# VARIABLE is name of variable containing _space_ separated list of 21321# directories to be munged by the contents of PATH, which is string 21322# having a format: 21323# "DIR[:DIR]:" 21324# string "DIR[ DIR]" will be prepended to VARIABLE 21325# ":DIR[:DIR]" 21326# string "DIR[ DIR]" will be appended to VARIABLE 21327# "DIRP[:DIRP]::[DIRA:]DIRA" 21328# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21329# "DIRA[ DIRA]" will be appended to VARIABLE 21330# "DIR[:DIR]" 21331# VARIABLE will be replaced by "DIR[ DIR]" 21332func_munge_path_list () 21333{ 21334 case x$2 in 21335 x) 21336 ;; 21337 *:) 21338 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21339 ;; 21340 x:*) 21341 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21342 ;; 21343 *::*) 21344 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21345 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21346 ;; 21347 *) 21348 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21349 ;; 21350 esac 21351} 21352 21353 21354# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21355func_cc_basename () 21356{ 21357 for cc_temp in $*""; do 21358 case $cc_temp in 21359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21361 \-*) ;; 21362 *) break;; 21363 esac 21364 done 21365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21366} 21367 21368 21369# ### END FUNCTIONS SHARED WITH CONFIGURE 21370 21371_LT_EOF 21372 21373 case $host_os in 21374 aix3*) 21375 cat <<\_LT_EOF >> "$cfgfile" 21376# AIX sometimes has problems with the GCC collect2 program. For some 21377# reason, if we set the COLLECT_NAMES environment variable, the problems 21378# vanish in a puff of smoke. 21379if test set != "${COLLECT_NAMES+set}"; then 21380 COLLECT_NAMES= 21381 export COLLECT_NAMES 21382fi 21383_LT_EOF 21384 ;; 21385 esac 21386 21387 21388ltmain=$ac_aux_dir/ltmain.sh 21389 21390 21391 # We use sed instead of cat because bash on DJGPP gets confused if 21392 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21393 # text mode, it properly converts lines to CR/LF. This bash problem 21394 # is reportedly fixed, but why not run on old versions too? 21395 sed '$q' "$ltmain" >> "$cfgfile" \ 21396 || (rm -f "$cfgfile"; exit 1) 21397 21398 mv -f "$cfgfile" "$ofile" || 21399 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21400 chmod +x "$ofile" 21401 21402 21403 cat <<_LT_EOF >> "$ofile" 21404 21405# ### BEGIN LIBTOOL TAG CONFIG: CXX 21406 21407# The linker used to build libraries. 21408LD=$lt_LD_CXX 21409 21410# How to create reloadable object files. 21411reload_flag=$lt_reload_flag_CXX 21412reload_cmds=$lt_reload_cmds_CXX 21413 21414# Commands used to build an old-style archive. 21415old_archive_cmds=$lt_old_archive_cmds_CXX 21416 21417# A language specific compiler. 21418CC=$lt_compiler_CXX 21419 21420# Is the compiler the GNU compiler? 21421with_gcc=$GCC_CXX 21422 21423# Compiler flag to turn off builtin functions. 21424no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 21425 21426# Additional compiler flags for building library objects. 21427pic_flag=$lt_lt_prog_compiler_pic_CXX 21428 21429# How to pass a linker flag through the compiler. 21430wl=$lt_lt_prog_compiler_wl_CXX 21431 21432# Compiler flag to prevent dynamic linking. 21433link_static_flag=$lt_lt_prog_compiler_static_CXX 21434 21435# Does compiler simultaneously support -c and -o options? 21436compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 21437 21438# Whether or not to add -lc for building shared libraries. 21439build_libtool_need_lc=$archive_cmds_need_lc_CXX 21440 21441# Whether or not to disallow shared libs when runtime libs are static. 21442allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21443 21444# Compiler flag to allow reflexive dlopens. 21445export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21446 21447# Compiler flag to generate shared objects directly from archives. 21448whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21449 21450# Whether the compiler copes with passing no objects directly. 21451compiler_needs_object=$lt_compiler_needs_object_CXX 21452 21453# Create an old-style archive from a shared archive. 21454old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21455 21456# Create a temporary old-style archive to link instead of a shared archive. 21457old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21458 21459# Commands used to build a shared archive. 21460archive_cmds=$lt_archive_cmds_CXX 21461archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21462 21463# Commands used to build a loadable module if different from building 21464# a shared archive. 21465module_cmds=$lt_module_cmds_CXX 21466module_expsym_cmds=$lt_module_expsym_cmds_CXX 21467 21468# Whether we are building with GNU ld or not. 21469with_gnu_ld=$lt_with_gnu_ld_CXX 21470 21471# Flag that allows shared libraries with undefined symbols to be built. 21472allow_undefined_flag=$lt_allow_undefined_flag_CXX 21473 21474# Flag that enforces no undefined symbols. 21475no_undefined_flag=$lt_no_undefined_flag_CXX 21476 21477# Flag to hardcode \$libdir into a binary during linking. 21478# This must work even if \$libdir does not exist 21479hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21480 21481# Whether we need a single "-rpath" flag with a separated argument. 21482hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21483 21484# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21485# DIR into the resulting binary. 21486hardcode_direct=$hardcode_direct_CXX 21487 21488# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21489# DIR into the resulting binary and the resulting library dependency is 21490# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21491# library is relocated. 21492hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21493 21494# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21495# into the resulting binary. 21496hardcode_minus_L=$hardcode_minus_L_CXX 21497 21498# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21499# into the resulting binary. 21500hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21501 21502# Set to "yes" if building a shared library automatically hardcodes DIR 21503# into the library and all subsequent libraries and executables linked 21504# against it. 21505hardcode_automatic=$hardcode_automatic_CXX 21506 21507# Set to yes if linker adds runtime paths of dependent libraries 21508# to runtime path list. 21509inherit_rpath=$inherit_rpath_CXX 21510 21511# Whether libtool must link a program against all its dependency libraries. 21512link_all_deplibs=$link_all_deplibs_CXX 21513 21514# Set to "yes" if exported symbols are required. 21515always_export_symbols=$always_export_symbols_CXX 21516 21517# The commands to list exported symbols. 21518export_symbols_cmds=$lt_export_symbols_cmds_CXX 21519 21520# Symbols that should not be listed in the preloaded symbols. 21521exclude_expsyms=$lt_exclude_expsyms_CXX 21522 21523# Symbols that must always be exported. 21524include_expsyms=$lt_include_expsyms_CXX 21525 21526# Commands necessary for linking programs (against libraries) with templates. 21527prelink_cmds=$lt_prelink_cmds_CXX 21528 21529# Commands necessary for finishing linking programs. 21530postlink_cmds=$lt_postlink_cmds_CXX 21531 21532# Specify filename containing input files. 21533file_list_spec=$lt_file_list_spec_CXX 21534 21535# How to hardcode a shared library path into an executable. 21536hardcode_action=$hardcode_action_CXX 21537 21538# The directories searched by this compiler when creating a shared library. 21539compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21540 21541# Dependencies to place before and after the objects being linked to 21542# create a shared library. 21543predep_objects=$lt_predep_objects_CXX 21544postdep_objects=$lt_postdep_objects_CXX 21545predeps=$lt_predeps_CXX 21546postdeps=$lt_postdeps_CXX 21547 21548# The library search path used internally by the compiler when linking 21549# a shared library. 21550compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21551 21552# ### END LIBTOOL TAG CONFIG: CXX 21553_LT_EOF 21554 21555 ;; 21556 21557 esac 21558done # for ac_tag 21559 21560 21561as_fn_exit 0 21562_ACEOF 21563ac_clean_files=$ac_clean_files_save 21564 21565test $ac_write_fail = 0 || 21566 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21567 21568 21569# configure is writing to config.log, and then calls config.status. 21570# config.status does its own redirection, appending to config.log. 21571# Unfortunately, on DOS this fails, as config.log is still kept open 21572# by configure, so config.status won't be able to write to it; its 21573# output is simply discarded. So we exec the FD to /dev/null, 21574# effectively closing config.log, so it can be properly (re)opened and 21575# appended to by config.status. When coming back to configure, we 21576# need to make the FD available again. 21577if test "$no_create" != yes; then 21578 ac_cs_success=: 21579 ac_config_status_args= 21580 test "$silent" = yes && 21581 ac_config_status_args="$ac_config_status_args --quiet" 21582 exec 5>/dev/null 21583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21584 exec 5>>config.log 21585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21586 # would make configure fail if this is the last instruction. 21587 $ac_cs_success || as_fn_exit 1 21588fi 21589if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21591$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21592fi 21593 21594