1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for semigroups 3.2.3. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='semigroups' 589PACKAGE_TARNAME='semigroups' 590PACKAGE_VERSION='3.2.3' 591PACKAGE_STRING='semigroups 3.2.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/pkg.cc" 596ac_default_prefix='${abs_top_builddir}/../bin/' 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633enable_option_checking=no 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638KERNEL_DEBUG_FALSE 639KERNEL_DEBUG_TRUE 640WITH_INCLUDED_LIBSEMIGROUPS_FALSE 641WITH_INCLUDED_LIBSEMIGROUPS_TRUE 642subdirs 643LIBSEMIGROUPS_LIBS 644LIBSEMIGROUPS_CFLAGS 645PKG_CONFIG_LIBDIR 646PKG_CONFIG_PATH 647PKG_CONFIG 648SYS_IS_CYGWIN_FALSE 649SYS_IS_CYGWIN_TRUE 650PTHREAD_CFLAGS 651PTHREAD_LIBS 652PTHREAD_CC 653ax_pthread_config 654GAP_LIBS 655GAP_LDFLAGS 656GAP_CFLAGS 657GAP_CPPFLAGS 658GAPROOT 659GAPARCH 660CXXCPP 661CPP 662LT_SYS_LIBRARY_PATH 663OTOOL64 664OTOOL 665LIPO 666NMEDIT 667DSYMUTIL 668MANIFEST_TOOL 669RANLIB 670LN_S 671NM 672ac_ct_DUMPBIN 673DUMPBIN 674LD 675FGREP 676EGREP 677GREP 678SED 679LIBTOOL 680OBJDUMP 681DLLTOOL 682AS 683HAVE_CXX11 684am__fastdepCXX_FALSE 685am__fastdepCXX_TRUE 686CXXDEPMODE 687ac_ct_CXX 688CXXFLAGS 689CXX 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706ac_ct_AR 707AR 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712am__untar 713am__tar 714AMTAR 715am__leading_dot 716SET_MAKE 717AWK 718mkdir_p 719MKDIR_P 720INSTALL_STRIP_PROGRAM 721STRIP 722install_sh 723MAKEINFO 724AUTOHEADER 725AUTOMAKE 726AUTOCONF 727ACLOCAL 728VERSION 729PACKAGE 730CYGPATH_W 731am__isrc 732INSTALL_DATA 733INSTALL_SCRIPT 734INSTALL_PROGRAM 735host_os 736host_vendor 737host_cpu 738host 739build_os 740build_vendor 741build_cpu 742build 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL 781am__quote' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_silent_rules 786enable_dependency_tracking 787enable_static 788enable_shared 789with_pic 790enable_fast_install 791with_aix_soname 792with_gnu_ld 793with_sysroot 794enable_libtool_lock 795with_gaproot 796with_external_libsemigroups 797enable_debug 798' 799 ac_precious_vars='build_alias 800host_alias 801target_alias 802CC 803CFLAGS 804LDFLAGS 805LIBS 806CPPFLAGS 807CXX 808CXXFLAGS 809CCC 810LT_SYS_LIBRARY_PATH 811CPP 812CXXCPP 813PKG_CONFIG 814PKG_CONFIG_PATH 815PKG_CONFIG_LIBDIR 816LIBSEMIGROUPS_CFLAGS 817LIBSEMIGROUPS_LIBS' 818ac_subdirs_all='libsemigroups' 819 820# Initialize some variables set by options. 821ac_init_help= 822ac_init_version=false 823ac_unrecognized_opts= 824ac_unrecognized_sep= 825# The variables have the same names as the options, with 826# dashes changed to underlines. 827cache_file=/dev/null 828exec_prefix=NONE 829no_create= 830no_recursion= 831prefix=NONE 832program_prefix=NONE 833program_suffix=NONE 834program_transform_name=s,x,x, 835silent= 836site= 837srcdir= 838verbose= 839x_includes=NONE 840x_libraries=NONE 841 842# Installation directory options. 843# These are left unexpanded so users can "make install exec_prefix=/foo" 844# and all the variables that are supposed to be based on exec_prefix 845# by default will actually change. 846# Use braces instead of parens because sh, perl, etc. also accept them. 847# (The list follows the same order as the GNU Coding Standards.) 848bindir='${exec_prefix}/bin' 849sbindir='${exec_prefix}/sbin' 850libexecdir='${exec_prefix}/libexec' 851datarootdir='${prefix}/share' 852datadir='${datarootdir}' 853sysconfdir='${prefix}/etc' 854sharedstatedir='${prefix}/com' 855localstatedir='${prefix}/var' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *=) ac_optarg= ;; 882 *) ac_optarg=yes ;; 883 esac 884 885 # Accept the important Cygnus configure options, so we can diagnose typos. 886 887 case $ac_dashdash$ac_option in 888 --) 889 ac_dashdash=yes ;; 890 891 -bindir | --bindir | --bindi | --bind | --bin | --bi) 892 ac_prev=bindir ;; 893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894 bindir=$ac_optarg ;; 895 896 -build | --build | --buil | --bui | --bu) 897 ac_prev=build_alias ;; 898 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899 build_alias=$ac_optarg ;; 900 901 -cache-file | --cache-file | --cache-fil | --cache-fi \ 902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903 ac_prev=cache_file ;; 904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906 cache_file=$ac_optarg ;; 907 908 --config-cache | -C) 909 cache_file=config.cache ;; 910 911 -datadir | --datadir | --datadi | --datad) 912 ac_prev=datadir ;; 913 -datadir=* | --datadir=* | --datadi=* | --datad=*) 914 datadir=$ac_optarg ;; 915 916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917 | --dataroo | --dataro | --datar) 918 ac_prev=datarootdir ;; 919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921 datarootdir=$ac_optarg ;; 922 923 -disable-* | --disable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures semigroups 3.2.3 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/semigroups] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420System types: 1421 --build=BUILD configure for building on BUILD [guessed] 1422 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1423_ACEOF 1424fi 1425 1426if test -n "$ac_init_help"; then 1427 case $ac_init_help in 1428 short | recursive ) echo "Configuration of semigroups 3.2.3:";; 1429 esac 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --enable-silent-rules less verbose build output (undo: "make V=1") 1437 --disable-silent-rules verbose build output (undo: "make V=0") 1438 --enable-dependency-tracking 1439 do not reject slow dependency extractors 1440 --disable-dependency-tracking 1441 speeds up one-time build 1442 --enable-static[=PKGS] build static libraries [default=no] 1443 --enable-shared[=PKGS] build shared libraries [default=yes] 1444 --enable-fast-install[=PKGS] 1445 optimize for fast installation [default=yes] 1446 --disable-libtool-lock avoid locking (might break parallel builds) 1447 --enable-debug enable debug mode 1448 1449Optional Packages: 1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-aix-soname=aix|svr4|both 1455 shared library versioning (aka "SONAME") variant to 1456 provide on AIX, [default=aix]. 1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1458 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1459 compiler's sysroot if not specified). 1460 --with-gaproot=<path> specify root of GAP installation 1461 --with-external-libsemigroups 1462 use the external libsemigroups 1463 1464Some influential environment variables: 1465 CC C compiler command 1466 CFLAGS C compiler flags 1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1468 nonstandard directory <lib dir> 1469 LIBS libraries to pass to the linker, e.g. -l<library> 1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1471 you have headers in a nonstandard directory <include dir> 1472 CXX C++ compiler command 1473 CXXFLAGS C++ compiler flags 1474 LT_SYS_LIBRARY_PATH 1475 User-defined run-time library search path. 1476 CPP C preprocessor 1477 CXXCPP C++ preprocessor 1478 PKG_CONFIG path to pkg-config utility 1479 PKG_CONFIG_PATH 1480 directories to add to pkg-config's search path 1481 PKG_CONFIG_LIBDIR 1482 path overriding pkg-config's built-in search path 1483 LIBSEMIGROUPS_CFLAGS 1484 C compiler flags for LIBSEMIGROUPS, overriding pkg-config 1485 LIBSEMIGROUPS_LIBS 1486 linker flags for LIBSEMIGROUPS, overriding pkg-config 1487 1488Use these variables to override the choices made by `configure' or to help 1489it to find libraries and programs with nonstandard names/locations. 1490 1491Report bugs to the package provider. 1492_ACEOF 1493ac_status=$? 1494fi 1495 1496if test "$ac_init_help" = "recursive"; then 1497 # If there are subdirs, report their specific --help. 1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1499 test -d "$ac_dir" || 1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1501 continue 1502 ac_builddir=. 1503 1504case "$ac_dir" in 1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1506*) 1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1508 # A ".." for each directory in $ac_dir_suffix. 1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1510 case $ac_top_builddir_sub in 1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1513 esac ;; 1514esac 1515ac_abs_top_builddir=$ac_pwd 1516ac_abs_builddir=$ac_pwd$ac_dir_suffix 1517# for backward compatibility: 1518ac_top_builddir=$ac_top_build_prefix 1519 1520case $srcdir in 1521 .) # We are building in place. 1522 ac_srcdir=. 1523 ac_top_srcdir=$ac_top_builddir_sub 1524 ac_abs_top_srcdir=$ac_pwd ;; 1525 [\\/]* | ?:[\\/]* ) # Absolute name. 1526 ac_srcdir=$srcdir$ac_dir_suffix; 1527 ac_top_srcdir=$srcdir 1528 ac_abs_top_srcdir=$srcdir ;; 1529 *) # Relative name. 1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1531 ac_top_srcdir=$ac_top_build_prefix$srcdir 1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1533esac 1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1535 1536 cd "$ac_dir" || { ac_status=$?; continue; } 1537 # Check for guested configure. 1538 if test -f "$ac_srcdir/configure.gnu"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1541 elif test -f "$ac_srcdir/configure"; then 1542 echo && 1543 $SHELL "$ac_srcdir/configure" --help=recursive 1544 else 1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1546 fi || ac_status=$? 1547 cd "$ac_pwd" || { ac_status=$?; break; } 1548 done 1549fi 1550 1551test -n "$ac_init_help" && exit $ac_status 1552if $ac_init_version; then 1553 cat <<\_ACEOF 1554semigroups configure 3.2.3 1555generated by GNU Autoconf 2.69 1556 1557Copyright (C) 2012 Free Software Foundation, Inc. 1558This configure script is free software; the Free Software Foundation 1559gives unlimited permission to copy, distribute and modify it. 1560_ACEOF 1561 exit 1562fi 1563 1564## ------------------------ ## 1565## Autoconf initialization. ## 1566## ------------------------ ## 1567 1568# ac_fn_c_try_compile LINENO 1569# -------------------------- 1570# Try to compile conftest.$ac_ext, and return whether this succeeded. 1571ac_fn_c_try_compile () 1572{ 1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1574 rm -f conftest.$ac_objext 1575 if { { ac_try="$ac_compile" 1576case "(($ac_try" in 1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1578 *) ac_try_echo=$ac_try;; 1579esac 1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1581$as_echo "$ac_try_echo"; } >&5 1582 (eval "$ac_compile") 2>conftest.err 1583 ac_status=$? 1584 if test -s conftest.err; then 1585 grep -v '^ *+' conftest.err >conftest.er1 1586 cat conftest.er1 >&5 1587 mv -f conftest.er1 conftest.err 1588 fi 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } && { 1591 test -z "$ac_c_werror_flag" || 1592 test ! -s conftest.err 1593 } && test -s conftest.$ac_objext; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_compile 1605 1606# ac_fn_cxx_try_compile LINENO 1607# ---------------------------- 1608# Try to compile conftest.$ac_ext, and return whether this succeeded. 1609ac_fn_cxx_try_compile () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 rm -f conftest.$ac_objext 1613 if { { ac_try="$ac_compile" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_compile") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { 1629 test -z "$ac_cxx_werror_flag" || 1630 test ! -s conftest.err 1631 } && test -s conftest.$ac_objext; then : 1632 ac_retval=0 1633else 1634 $as_echo "$as_me: failed program was:" >&5 1635sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638fi 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_cxx_try_compile 1643 1644# ac_fn_c_try_link LINENO 1645# ----------------------- 1646# Try to link conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_link () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 rm -f conftest.$ac_objext conftest$ac_exeext 1651 if { { ac_try="$ac_link" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_link") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } && { 1667 test -z "$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 } && test -s conftest$ac_exeext && { 1670 test "$cross_compiling" = yes || 1671 test -x conftest$ac_exeext 1672 }; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1682 # interfere with the next link command; also delete a directory that is 1683 # left behind by Apple's compiler. We do this before executing the actions. 1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_link 1689 1690# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1691# ------------------------------------------------------- 1692# Tests whether HEADER exists and can be compiled using the include files in 1693# INCLUDES, setting the cache variable VAR accordingly. 1694ac_fn_c_check_header_compile () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1698$as_echo_n "checking for $2... " >&6; } 1699if eval \${$3+:} false; then : 1700 $as_echo_n "(cached) " >&6 1701else 1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1703/* end confdefs.h. */ 1704$4 1705#include <$2> 1706_ACEOF 1707if ac_fn_c_try_compile "$LINENO"; then : 1708 eval "$3=yes" 1709else 1710 eval "$3=no" 1711fi 1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1713fi 1714eval ac_res=\$$3 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1716$as_echo "$ac_res" >&6; } 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 1719} # ac_fn_c_check_header_compile 1720 1721# ac_fn_c_try_cpp LINENO 1722# ---------------------- 1723# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1724ac_fn_c_try_cpp () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if { { ac_try="$ac_cpp conftest.$ac_ext" 1728case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1735 ac_status=$? 1736 if test -s conftest.err; then 1737 grep -v '^ *+' conftest.err >conftest.er1 1738 cat conftest.er1 >&5 1739 mv -f conftest.er1 conftest.err 1740 fi 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; } > conftest.i && { 1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1744 test ! -s conftest.err 1745 }; then : 1746 ac_retval=0 1747else 1748 $as_echo "$as_me: failed program was:" >&5 1749sed 's/^/| /' conftest.$ac_ext >&5 1750 1751 ac_retval=1 1752fi 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 as_fn_set_status $ac_retval 1755 1756} # ac_fn_c_try_cpp 1757 1758# ac_fn_c_try_run LINENO 1759# ---------------------- 1760# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1761# that executables *can* be run. 1762ac_fn_c_try_run () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 if { { ac_try="$ac_link" 1766case "(($ac_try" in 1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1768 *) ac_try_echo=$ac_try;; 1769esac 1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1771$as_echo "$ac_try_echo"; } >&5 1772 (eval "$ac_link") 2>&5 1773 ac_status=$? 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1776 { { case "(($ac_try" in 1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1778 *) ac_try_echo=$ac_try;; 1779esac 1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1781$as_echo "$ac_try_echo"; } >&5 1782 (eval "$ac_try") 2>&5 1783 ac_status=$? 1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1785 test $ac_status = 0; }; }; then : 1786 ac_retval=0 1787else 1788 $as_echo "$as_me: program exited with status $ac_status" >&5 1789 $as_echo "$as_me: failed program was:" >&5 1790sed 's/^/| /' conftest.$ac_ext >&5 1791 1792 ac_retval=$ac_status 1793fi 1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 as_fn_set_status $ac_retval 1797 1798} # ac_fn_c_try_run 1799 1800# ac_fn_c_check_func LINENO FUNC VAR 1801# ---------------------------------- 1802# Tests whether FUNC exists, setting the cache variable VAR accordingly 1803ac_fn_c_check_func () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1814 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1815#define $2 innocuous_$2 1816 1817/* System header to define __stub macros and hopefully few prototypes, 1818 which can conflict with char $2 (); below. 1819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1820 <limits.h> exists even on freestanding compilers. */ 1821 1822#ifdef __STDC__ 1823# include <limits.h> 1824#else 1825# include <assert.h> 1826#endif 1827 1828#undef $2 1829 1830/* Override any GCC internal prototype to avoid an error. 1831 Use char because int might match the return type of a GCC 1832 builtin and then its argument prototype would still apply. */ 1833#ifdef __cplusplus 1834extern "C" 1835#endif 1836char $2 (); 1837/* The GNU C library defines this for functions which it implements 1838 to always fail with ENOSYS. Some functions are actually named 1839 something starting with __ and the normal name is an alias. */ 1840#if defined __stub_$2 || defined __stub___$2 1841choke me 1842#endif 1843 1844int 1845main () 1846{ 1847return $2 (); 1848 ; 1849 return 0; 1850} 1851_ACEOF 1852if ac_fn_c_try_link "$LINENO"; then : 1853 eval "$3=yes" 1854else 1855 eval "$3=no" 1856fi 1857rm -f core conftest.err conftest.$ac_objext \ 1858 conftest$ac_exeext conftest.$ac_ext 1859fi 1860eval ac_res=\$$3 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1862$as_echo "$ac_res" >&6; } 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 1865} # ac_fn_c_check_func 1866 1867# ac_fn_cxx_try_cpp LINENO 1868# ------------------------ 1869# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1870ac_fn_cxx_try_cpp () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 if { { ac_try="$ac_cpp conftest.$ac_ext" 1874case "(($ac_try" in 1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1876 *) ac_try_echo=$ac_try;; 1877esac 1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1879$as_echo "$ac_try_echo"; } >&5 1880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1881 ac_status=$? 1882 if test -s conftest.err; then 1883 grep -v '^ *+' conftest.err >conftest.er1 1884 cat conftest.er1 >&5 1885 mv -f conftest.er1 conftest.err 1886 fi 1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1888 test $ac_status = 0; } > conftest.i && { 1889 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1890 test ! -s conftest.err 1891 }; then : 1892 ac_retval=0 1893else 1894 $as_echo "$as_me: failed program was:" >&5 1895sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_retval=1 1898fi 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 as_fn_set_status $ac_retval 1901 1902} # ac_fn_cxx_try_cpp 1903 1904# ac_fn_cxx_try_link LINENO 1905# ------------------------- 1906# Try to link conftest.$ac_ext, and return whether this succeeded. 1907ac_fn_cxx_try_link () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 rm -f conftest.$ac_objext conftest$ac_exeext 1911 if { { ac_try="$ac_link" 1912case "(($ac_try" in 1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1914 *) ac_try_echo=$ac_try;; 1915esac 1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1917$as_echo "$ac_try_echo"; } >&5 1918 (eval "$ac_link") 2>conftest.err 1919 ac_status=$? 1920 if test -s conftest.err; then 1921 grep -v '^ *+' conftest.err >conftest.er1 1922 cat conftest.er1 >&5 1923 mv -f conftest.er1 conftest.err 1924 fi 1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1926 test $ac_status = 0; } && { 1927 test -z "$ac_cxx_werror_flag" || 1928 test ! -s conftest.err 1929 } && test -s conftest$ac_exeext && { 1930 test "$cross_compiling" = yes || 1931 test -x conftest$ac_exeext 1932 }; then : 1933 ac_retval=0 1934else 1935 $as_echo "$as_me: failed program was:" >&5 1936sed 's/^/| /' conftest.$ac_ext >&5 1937 1938 ac_retval=1 1939fi 1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1942 # interfere with the next link command; also delete a directory that is 1943 # left behind by Apple's compiler. We do this before executing the actions. 1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948} # ac_fn_cxx_try_link 1949cat >config.log <<_ACEOF 1950This file contains any messages produced by compilers while 1951running configure, to aid debugging if configure makes a mistake. 1952 1953It was created by semigroups $as_me 3.2.3, which was 1954generated by GNU Autoconf 2.69. Invocation command line was 1955 1956 $ $0 $@ 1957 1958_ACEOF 1959exec 5>>config.log 1960{ 1961cat <<_ASUNAME 1962## --------- ## 1963## Platform. ## 1964## --------- ## 1965 1966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1967uname -m = `(uname -m) 2>/dev/null || echo unknown` 1968uname -r = `(uname -r) 2>/dev/null || echo unknown` 1969uname -s = `(uname -s) 2>/dev/null || echo unknown` 1970uname -v = `(uname -v) 2>/dev/null || echo unknown` 1971 1972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1974 1975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1982 1983_ASUNAME 1984 1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986for as_dir in $PATH 1987do 1988 IFS=$as_save_IFS 1989 test -z "$as_dir" && as_dir=. 1990 $as_echo "PATH: $as_dir" 1991 done 1992IFS=$as_save_IFS 1993 1994} >&5 1995 1996cat >&5 <<_ACEOF 1997 1998 1999## ----------- ## 2000## Core tests. ## 2001## ----------- ## 2002 2003_ACEOF 2004 2005 2006# Keep a trace of the command line. 2007# Strip out --no-create and --no-recursion so they do not pile up. 2008# Strip out --silent because we don't want to record it for future runs. 2009# Also quote any args containing shell meta-characters. 2010# Make two passes to allow for proper duplicate-argument suppression. 2011ac_configure_args= 2012ac_configure_args0= 2013ac_configure_args1= 2014ac_must_keep_next=false 2015for ac_pass in 1 2 2016do 2017 for ac_arg 2018 do 2019 case $ac_arg in 2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2022 | -silent | --silent | --silen | --sile | --sil) 2023 continue ;; 2024 *\'*) 2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2026 esac 2027 case $ac_pass in 2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2029 2) 2030 as_fn_append ac_configure_args1 " '$ac_arg'" 2031 if test $ac_must_keep_next = true; then 2032 ac_must_keep_next=false # Got value, back to normal. 2033 else 2034 case $ac_arg in 2035 *=* | --config-cache | -C | -disable-* | --disable-* \ 2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2038 | -with-* | --with-* | -without-* | --without-* | --x) 2039 case "$ac_configure_args0 " in 2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2041 esac 2042 ;; 2043 -* ) ac_must_keep_next=true ;; 2044 esac 2045 fi 2046 as_fn_append ac_configure_args " '$ac_arg'" 2047 ;; 2048 esac 2049 done 2050done 2051{ ac_configure_args0=; unset ac_configure_args0;} 2052{ ac_configure_args1=; unset ac_configure_args1;} 2053 2054# When interrupted or exit'd, cleanup temporary files, and complete 2055# config.log. We remove comments because anyway the quotes in there 2056# would cause problems or look ugly. 2057# WARNING: Use '\'' to represent an apostrophe within the trap. 2058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2059trap 'exit_status=$? 2060 # Save into config.log some information that might help in debugging. 2061 { 2062 echo 2063 2064 $as_echo "## ---------------- ## 2065## Cache variables. ## 2066## ---------------- ##" 2067 echo 2068 # The following way of writing the cache mishandles newlines in values, 2069( 2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2071 eval ac_val=\$$ac_var 2072 case $ac_val in #( 2073 *${as_nl}*) 2074 case $ac_var in #( 2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2077 esac 2078 case $ac_var in #( 2079 _ | IFS | as_nl) ;; #( 2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2081 *) { eval $ac_var=; unset $ac_var;} ;; 2082 esac ;; 2083 esac 2084 done 2085 (set) 2>&1 | 2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2087 *${as_nl}ac_space=\ *) 2088 sed -n \ 2089 "s/'\''/'\''\\\\'\'''\''/g; 2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2091 ;; #( 2092 *) 2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2094 ;; 2095 esac | 2096 sort 2097) 2098 echo 2099 2100 $as_echo "## ----------------- ## 2101## Output variables. ## 2102## ----------------- ##" 2103 echo 2104 for ac_var in $ac_subst_vars 2105 do 2106 eval ac_val=\$$ac_var 2107 case $ac_val in 2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2109 esac 2110 $as_echo "$ac_var='\''$ac_val'\''" 2111 done | sort 2112 echo 2113 2114 if test -n "$ac_subst_files"; then 2115 $as_echo "## ------------------- ## 2116## File substitutions. ## 2117## ------------------- ##" 2118 echo 2119 for ac_var in $ac_subst_files 2120 do 2121 eval ac_val=\$$ac_var 2122 case $ac_val in 2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2124 esac 2125 $as_echo "$ac_var='\''$ac_val'\''" 2126 done | sort 2127 echo 2128 fi 2129 2130 if test -s confdefs.h; then 2131 $as_echo "## ----------- ## 2132## confdefs.h. ## 2133## ----------- ##" 2134 echo 2135 cat confdefs.h 2136 echo 2137 fi 2138 test "$ac_signal" != 0 && 2139 $as_echo "$as_me: caught signal $ac_signal" 2140 $as_echo "$as_me: exit $exit_status" 2141 } >&5 2142 rm -f core *.core core.conftest.* && 2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2144 exit $exit_status 2145' 0 2146for ac_signal in 1 2 13 15; do 2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2148done 2149ac_signal=0 2150 2151# confdefs.h avoids OS command line length limits that DEFS can exceed. 2152rm -f -r conftest* confdefs.h 2153 2154$as_echo "/* confdefs.h */" > confdefs.h 2155 2156# Predefined preprocessor variables. 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_NAME "$PACKAGE_NAME" 2160_ACEOF 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2164_ACEOF 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_VERSION "$PACKAGE_VERSION" 2168_ACEOF 2169 2170cat >>confdefs.h <<_ACEOF 2171#define PACKAGE_STRING "$PACKAGE_STRING" 2172_ACEOF 2173 2174cat >>confdefs.h <<_ACEOF 2175#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2176_ACEOF 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_URL "$PACKAGE_URL" 2180_ACEOF 2181 2182 2183# Let the site file select an alternate cache file if it wants to. 2184# Prefer an explicitly selected file to automatically selected ones. 2185ac_site_file1=NONE 2186ac_site_file2=NONE 2187if test -n "$CONFIG_SITE"; then 2188 # We do not want a PATH search for config.site. 2189 case $CONFIG_SITE in #(( 2190 -*) ac_site_file1=./$CONFIG_SITE;; 2191 */*) ac_site_file1=$CONFIG_SITE;; 2192 *) ac_site_file1=./$CONFIG_SITE;; 2193 esac 2194elif test "x$prefix" != xNONE; then 2195 ac_site_file1=$prefix/share/config.site 2196 ac_site_file2=$prefix/etc/config.site 2197else 2198 ac_site_file1=$ac_default_prefix/share/config.site 2199 ac_site_file2=$ac_default_prefix/etc/config.site 2200fi 2201for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2202do 2203 test "x$ac_site_file" = xNONE && continue 2204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2206$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2207 sed 's/^/| /' "$ac_site_file" >&5 2208 . "$ac_site_file" \ 2209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2211as_fn_error $? "failed to load site script $ac_site_file 2212See \`config.log' for more details" "$LINENO" 5; } 2213 fi 2214done 2215 2216if test -r "$cache_file"; then 2217 # Some versions of bash will fail to source /dev/null (special files 2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2221$as_echo "$as_me: loading cache $cache_file" >&6;} 2222 case $cache_file in 2223 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2224 *) . "./$cache_file";; 2225 esac 2226 fi 2227else 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2229$as_echo "$as_me: creating cache $cache_file" >&6;} 2230 >$cache_file 2231fi 2232 2233# Check that the precious variables saved in the cache have kept the same 2234# value. 2235ac_cache_corrupted=false 2236for ac_var in $ac_precious_vars; do 2237 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2238 eval ac_new_set=\$ac_env_${ac_var}_set 2239 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2240 eval ac_new_val=\$ac_env_${ac_var}_value 2241 case $ac_old_set,$ac_new_set in 2242 set,) 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2244$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2245 ac_cache_corrupted=: ;; 2246 ,set) 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2248$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2249 ac_cache_corrupted=: ;; 2250 ,);; 2251 *) 2252 if test "x$ac_old_val" != "x$ac_new_val"; then 2253 # differences in whitespace do not lead to failure. 2254 ac_old_val_w=`echo x $ac_old_val` 2255 ac_new_val_w=`echo x $ac_new_val` 2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2258$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2259 ac_cache_corrupted=: 2260 else 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2262$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2263 eval $ac_var=\$ac_old_val 2264 fi 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2266$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2268$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2269 fi;; 2270 esac 2271 # Pass precious variables to config.status. 2272 if test "$ac_new_set" = set; then 2273 case $ac_new_val in 2274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2275 *) ac_arg=$ac_var=$ac_new_val ;; 2276 esac 2277 case " $ac_configure_args " in 2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2279 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2280 esac 2281 fi 2282done 2283if $ac_cache_corrupted; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2287$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2289fi 2290## -------------------- ## 2291## Main body of script. ## 2292## -------------------- ## 2293 2294ac_ext=c 2295ac_cpp='$CPP $CPPFLAGS' 2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2298ac_compiler_gnu=$ac_cv_c_compiler_gnu 2299 2300 2301 2302ac_config_headers="$ac_config_headers src/_pkgconfig.h:cnf/pkgconfig.h.in" 2303 2304 2305ac_aux_dir= 2306for ac_dir in cnf "$srcdir"/cnf; do 2307 if test -f "$ac_dir/install-sh"; then 2308 ac_aux_dir=$ac_dir 2309 ac_install_sh="$ac_aux_dir/install-sh -c" 2310 break 2311 elif test -f "$ac_dir/install.sh"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/install.sh -c" 2314 break 2315 elif test -f "$ac_dir/shtool"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/shtool install -c" 2318 break 2319 fi 2320done 2321if test -z "$ac_aux_dir"; then 2322 as_fn_error $? "cannot find install-sh, install.sh, or shtool in cnf \"$srcdir\"/cnf" "$LINENO" 5 2323fi 2324 2325# These three variables are undocumented and unsupported, 2326# and are intended to be withdrawn in a future Autoconf release. 2327# They can cause serious problems if a builder's source tree is in a directory 2328# whose full name contains unusual characters. 2329ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2330ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2331ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2332 2333 2334 2335# Make sure we can run config.sub. 2336$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2337 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2338 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2340$as_echo_n "checking build system type... " >&6; } 2341if ${ac_cv_build+:} false; then : 2342 $as_echo_n "(cached) " >&6 2343else 2344 ac_build_alias=$build_alias 2345test "x$ac_build_alias" = x && 2346 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2347test "x$ac_build_alias" = x && 2348 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2349ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2351 2352fi 2353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2354$as_echo "$ac_cv_build" >&6; } 2355case $ac_cv_build in 2356*-*-*) ;; 2357*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2358esac 2359build=$ac_cv_build 2360ac_save_IFS=$IFS; IFS='-' 2361set x $ac_cv_build 2362shift 2363build_cpu=$1 2364build_vendor=$2 2365shift; shift 2366# Remember, the first character of IFS is used to create $*, 2367# except with old shells: 2368build_os=$* 2369IFS=$ac_save_IFS 2370case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2371 2372 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2374$as_echo_n "checking host system type... " >&6; } 2375if ${ac_cv_host+:} false; then : 2376 $as_echo_n "(cached) " >&6 2377else 2378 if test "x$host_alias" = x; then 2379 ac_cv_host=$ac_cv_build 2380else 2381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2383fi 2384 2385fi 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2387$as_echo "$ac_cv_host" >&6; } 2388case $ac_cv_host in 2389*-*-*) ;; 2390*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2391esac 2392host=$ac_cv_host 2393ac_save_IFS=$IFS; IFS='-' 2394set x $ac_cv_host 2395shift 2396host_cpu=$1 2397host_vendor=$2 2398shift; shift 2399# Remember, the first character of IFS is used to create $*, 2400# except with old shells: 2401host_os=$* 2402IFS=$ac_save_IFS 2403case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2404 2405 2406 2407am__api_version='1.16' 2408 2409# Find a good install program. We prefer a C program (faster), 2410# so one script is as good as another. But avoid the broken or 2411# incompatible versions: 2412# SysV /etc/install, /usr/sbin/install 2413# SunOS /usr/etc/install 2414# IRIX /sbin/install 2415# AIX /bin/install 2416# AmigaOS /C/install, which installs bootblocks on floppy discs 2417# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2418# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2419# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2420# OS/2's system install, which has a completely different semantic 2421# ./install, which can be erroneously created by make from ./install.sh. 2422# Reject install programs that cannot install multiple files. 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2424$as_echo_n "checking for a BSD-compatible install... " >&6; } 2425if test -z "$INSTALL"; then 2426if ${ac_cv_path_install+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2430for as_dir in $PATH 2431do 2432 IFS=$as_save_IFS 2433 test -z "$as_dir" && as_dir=. 2434 # Account for people who put trailing slashes in PATH elements. 2435case $as_dir/ in #(( 2436 ./ | .// | /[cC]/* | \ 2437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2438 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2439 /usr/ucb/* ) ;; 2440 *) 2441 # OSF1 and SCO ODT 3.0 have their own names for install. 2442 # Don't use installbsd from OSF since it installs stuff as root 2443 # by default. 2444 for ac_prog in ginstall scoinst install; do 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2447 if test $ac_prog = install && 2448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2449 # AIX install. It has an incompatible calling convention. 2450 : 2451 elif test $ac_prog = install && 2452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2453 # program-specific install script used by HP pwplus--don't use. 2454 : 2455 else 2456 rm -rf conftest.one conftest.two conftest.dir 2457 echo one > conftest.one 2458 echo two > conftest.two 2459 mkdir conftest.dir 2460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2461 test -s conftest.one && test -s conftest.two && 2462 test -s conftest.dir/conftest.one && 2463 test -s conftest.dir/conftest.two 2464 then 2465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2466 break 3 2467 fi 2468 fi 2469 fi 2470 done 2471 done 2472 ;; 2473esac 2474 2475 done 2476IFS=$as_save_IFS 2477 2478rm -rf conftest.one conftest.two conftest.dir 2479 2480fi 2481 if test "${ac_cv_path_install+set}" = set; then 2482 INSTALL=$ac_cv_path_install 2483 else 2484 # As a last resort, use the slow shell script. Don't cache a 2485 # value for INSTALL within a source directory, because that will 2486 # break other packages using the cache if that directory is 2487 # removed, or if the value is a relative name. 2488 INSTALL=$ac_install_sh 2489 fi 2490fi 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2492$as_echo "$INSTALL" >&6; } 2493 2494# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2495# It thinks the first close brace ends the variable substitution. 2496test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2497 2498test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2499 2500test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2501 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2503$as_echo_n "checking whether build environment is sane... " >&6; } 2504# Reject unsafe characters in $srcdir or the absolute working directory 2505# name. Accept space and tab only in the latter. 2506am_lf=' 2507' 2508case `pwd` in 2509 *[\\\"\#\$\&\'\`$am_lf]*) 2510 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2511esac 2512case $srcdir in 2513 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2514 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2515esac 2516 2517# Do 'set' in a subshell so we don't clobber the current shell's 2518# arguments. Must try -L first in case configure is actually a 2519# symlink; some systems play weird games with the mod time of symlinks 2520# (eg FreeBSD returns the mod time of the symlink's containing 2521# directory). 2522if ( 2523 am_has_slept=no 2524 for am_try in 1 2; do 2525 echo "timestamp, slept: $am_has_slept" > conftest.file 2526 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2527 if test "$*" = "X"; then 2528 # -L didn't work. 2529 set X `ls -t "$srcdir/configure" conftest.file` 2530 fi 2531 if test "$*" != "X $srcdir/configure conftest.file" \ 2532 && test "$*" != "X conftest.file $srcdir/configure"; then 2533 2534 # If neither matched, then we have a broken ls. This can happen 2535 # if, for instance, CONFIG_SHELL is bash and it inherits a 2536 # broken ls alias from the environment. This has actually 2537 # happened. Such a system could not be considered "sane". 2538 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2539 alias in your environment" "$LINENO" 5 2540 fi 2541 if test "$2" = conftest.file || test $am_try -eq 2; then 2542 break 2543 fi 2544 # Just in case. 2545 sleep 1 2546 am_has_slept=yes 2547 done 2548 test "$2" = conftest.file 2549 ) 2550then 2551 # Ok. 2552 : 2553else 2554 as_fn_error $? "newly created file is older than distributed files! 2555Check your system clock" "$LINENO" 5 2556fi 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2558$as_echo "yes" >&6; } 2559# If we didn't sleep, we still need to ensure time stamps of config.status and 2560# generated files are strictly newer. 2561am_sleep_pid= 2562if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2563 ( sleep 1 ) & 2564 am_sleep_pid=$! 2565fi 2566 2567rm -f conftest.file 2568 2569test "$program_prefix" != NONE && 2570 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2571# Use a double $ so make ignores it. 2572test "$program_suffix" != NONE && 2573 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2574# Double any \ or $. 2575# By default was `s,x,x', remove it if useless. 2576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2578 2579# Expand $ac_aux_dir to an absolute path. 2580am_aux_dir=`cd "$ac_aux_dir" && pwd` 2581 2582if test x"${MISSING+set}" != xset; then 2583 case $am_aux_dir in 2584 *\ * | *\ *) 2585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2586 *) 2587 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2588 esac 2589fi 2590# Use eval to expand $SHELL 2591if eval "$MISSING --is-lightweight"; then 2592 am_missing_run="$MISSING " 2593else 2594 am_missing_run= 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2596$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2597fi 2598 2599if test x"${install_sh+set}" != xset; then 2600 case $am_aux_dir in 2601 *\ * | *\ *) 2602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2603 *) 2604 install_sh="\${SHELL} $am_aux_dir/install-sh" 2605 esac 2606fi 2607 2608# Installed binaries are usually stripped using 'strip' when the user 2609# run "make install-strip". However 'strip' might not be the right 2610# tool to use in cross-compilation environments, therefore Automake 2611# will honor the 'STRIP' environment variable to overrule this program. 2612if test "$cross_compiling" != no; then 2613 if test -n "$ac_tool_prefix"; then 2614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2615set dummy ${ac_tool_prefix}strip; ac_word=$2 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617$as_echo_n "checking for $ac_word... " >&6; } 2618if ${ac_cv_prog_STRIP+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test -n "$STRIP"; then 2622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2631 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641STRIP=$ac_cv_prog_STRIP 2642if test -n "$STRIP"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2644$as_echo "$STRIP" >&6; } 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648fi 2649 2650 2651fi 2652if test -z "$ac_cv_prog_STRIP"; then 2653 ac_ct_STRIP=$STRIP 2654 # Extract the first word of "strip", so it can be a program name with args. 2655set dummy strip; ac_word=$2 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2657$as_echo_n "checking for $ac_word... " >&6; } 2658if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 if test -n "$ac_ct_STRIP"; then 2662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2663else 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2671 ac_cv_prog_ac_ct_STRIP="strip" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676 done 2677IFS=$as_save_IFS 2678 2679fi 2680fi 2681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2682if test -n "$ac_ct_STRIP"; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2684$as_echo "$ac_ct_STRIP" >&6; } 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688fi 2689 2690 if test "x$ac_ct_STRIP" = x; then 2691 STRIP=":" 2692 else 2693 case $cross_compiling:$ac_tool_warned in 2694yes:) 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2697ac_tool_warned=yes ;; 2698esac 2699 STRIP=$ac_ct_STRIP 2700 fi 2701else 2702 STRIP="$ac_cv_prog_STRIP" 2703fi 2704 2705fi 2706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2707 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2710if test -z "$MKDIR_P"; then 2711 if ${ac_cv_path_mkdir+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_prog in mkdir gmkdir; do 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2723 'mkdir (GNU coreutils) '* | \ 2724 'mkdir (coreutils) '* | \ 2725 'mkdir (fileutils) '4.1*) 2726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2727 break 3;; 2728 esac 2729 done 2730 done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735 2736 test -d ./--version && rmdir ./--version 2737 if test "${ac_cv_path_mkdir+set}" = set; then 2738 MKDIR_P="$ac_cv_path_mkdir -p" 2739 else 2740 # As a last resort, use the slow shell script. Don't cache a 2741 # value for MKDIR_P within a source directory, because that will 2742 # break other packages using the cache if that directory is 2743 # removed, or if the value is a relative name. 2744 MKDIR_P="$ac_install_sh -d" 2745 fi 2746fi 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2748$as_echo "$MKDIR_P" >&6; } 2749 2750for ac_prog in gawk mawk nawk awk 2751do 2752 # Extract the first word of "$ac_prog", so it can be a program name with args. 2753set dummy $ac_prog; ac_word=$2 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2755$as_echo_n "checking for $ac_word... " >&6; } 2756if ${ac_cv_prog_AWK+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 if test -n "$AWK"; then 2760 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2761else 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 test -z "$as_dir" && as_dir=. 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2769 ac_cv_prog_AWK="$ac_prog" 2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774 done 2775IFS=$as_save_IFS 2776 2777fi 2778fi 2779AWK=$ac_cv_prog_AWK 2780if test -n "$AWK"; then 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2782$as_echo "$AWK" >&6; } 2783else 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2785$as_echo "no" >&6; } 2786fi 2787 2788 2789 test -n "$AWK" && break 2790done 2791 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2793$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2794set x ${MAKE-make} 2795ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2796if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 cat >conftest.make <<\_ACEOF 2800SHELL = /bin/sh 2801all: 2802 @echo '@@@%%%=$(MAKE)=@@@%%%' 2803_ACEOF 2804# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2805case `${MAKE-make} -f conftest.make 2>/dev/null` in 2806 *@@@%%%=?*=@@@%%%*) 2807 eval ac_cv_prog_make_${ac_make}_set=yes;; 2808 *) 2809 eval ac_cv_prog_make_${ac_make}_set=no;; 2810esac 2811rm -f conftest.make 2812fi 2813if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2815$as_echo "yes" >&6; } 2816 SET_MAKE= 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820 SET_MAKE="MAKE=${MAKE-make}" 2821fi 2822 2823rm -rf .tst 2>/dev/null 2824mkdir .tst 2>/dev/null 2825if test -d .tst; then 2826 am__leading_dot=. 2827else 2828 am__leading_dot=_ 2829fi 2830rmdir .tst 2>/dev/null 2831 2832# Check whether --enable-silent-rules was given. 2833if test "${enable_silent_rules+set}" = set; then : 2834 enableval=$enable_silent_rules; 2835fi 2836 2837case $enable_silent_rules in # ((( 2838 yes) AM_DEFAULT_VERBOSITY=0;; 2839 no) AM_DEFAULT_VERBOSITY=1;; 2840 *) AM_DEFAULT_VERBOSITY=1;; 2841esac 2842am_make=${MAKE-make} 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2844$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2845if ${am_cv_make_support_nested_variables+:} false; then : 2846 $as_echo_n "(cached) " >&6 2847else 2848 if $as_echo 'TRUE=$(BAR$(V)) 2849BAR0=false 2850BAR1=true 2851V=1 2852am__doit: 2853 @$(TRUE) 2854.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2855 am_cv_make_support_nested_variables=yes 2856else 2857 am_cv_make_support_nested_variables=no 2858fi 2859fi 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2861$as_echo "$am_cv_make_support_nested_variables" >&6; } 2862if test $am_cv_make_support_nested_variables = yes; then 2863 AM_V='$(V)' 2864 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2865else 2866 AM_V=$AM_DEFAULT_VERBOSITY 2867 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2868fi 2869AM_BACKSLASH='\' 2870 2871if test "`cd $srcdir && pwd`" != "`pwd`"; then 2872 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2873 # is not polluted with repeated "-I." 2874 am__isrc=' -I$(srcdir)' 2875 # test to see if srcdir already configured 2876 if test -f $srcdir/config.status; then 2877 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2878 fi 2879fi 2880 2881# test whether we have cygpath 2882if test -z "$CYGPATH_W"; then 2883 if (cygpath --version) >/dev/null 2>/dev/null; then 2884 CYGPATH_W='cygpath -w' 2885 else 2886 CYGPATH_W=echo 2887 fi 2888fi 2889 2890 2891# Define the identity of the package. 2892 PACKAGE='semigroups' 2893 VERSION='3.2.3' 2894 2895 2896cat >>confdefs.h <<_ACEOF 2897#define PACKAGE "$PACKAGE" 2898_ACEOF 2899 2900 2901cat >>confdefs.h <<_ACEOF 2902#define VERSION "$VERSION" 2903_ACEOF 2904 2905# Some tools Automake needs. 2906 2907ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2908 2909 2910AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2911 2912 2913AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2914 2915 2916AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2917 2918 2919MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2920 2921# For better backward compatibility. To be removed once Automake 1.9.x 2922# dies out for good. For more background, see: 2923# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2924# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2925mkdir_p='$(MKDIR_P)' 2926 2927# We need awk for the "check" target (and possibly the TAP driver). The 2928# system "awk" is bad on some platforms. 2929# Always define AMTAR for backward compatibility. Yes, it's still used 2930# in the wild :-( We should find a proper way to deprecate it ... 2931AMTAR='$${TAR-tar}' 2932 2933 2934# We'll loop over all known methods to create a tar archive until one works. 2935_am_tools='gnutar pax cpio none' 2936 2937am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2938 2939 2940 2941 2942 2943 2944# POSIX will say in a future version that running "rm -f" with no argument 2945# is OK; and we want to be able to make that assumption in our Makefile 2946# recipes. So use an aggressive probe to check that the usage we want is 2947# actually supported "in the wild" to an acceptable degree. 2948# See automake bug#10828. 2949# To make any issue more visible, cause the running configure to be aborted 2950# by default if the 'rm' program in use doesn't match our expectations; the 2951# user can still override this though. 2952if rm -f && rm -fr && rm -rf; then : OK; else 2953 cat >&2 <<'END' 2954Oops! 2955 2956Your 'rm' program seems unable to run without file operands specified 2957on the command line, even when the '-f' option is present. This is contrary 2958to the behaviour of most rm programs out there, and not conforming with 2959the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2960 2961Please tell bug-automake@gnu.org about your system, including the value 2962of your $PATH and any error possibly output before this message. This 2963can help us improve future automake versions. 2964 2965END 2966 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2967 echo 'Configuration will proceed anyway, since you have set the' >&2 2968 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2969 echo >&2 2970 else 2971 cat >&2 <<'END' 2972Aborting the configuration process, to ensure you take notice of the issue. 2973 2974You can download and install GNU coreutils to get an 'rm' implementation 2975that behaves properly: <https://www.gnu.org/software/coreutils/>. 2976 2977If you want to complete the configuration process using your problematic 2978'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2979to "yes", and re-run configure. 2980 2981END 2982 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2983 fi 2984fi 2985 2986# Check whether --enable-silent-rules was given. 2987if test "${enable_silent_rules+set}" = set; then : 2988 enableval=$enable_silent_rules; 2989fi 2990 2991case $enable_silent_rules in # ((( 2992 yes) AM_DEFAULT_VERBOSITY=0;; 2993 no) AM_DEFAULT_VERBOSITY=1;; 2994 *) AM_DEFAULT_VERBOSITY=0;; 2995esac 2996am_make=${MAKE-make} 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2998$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2999if ${am_cv_make_support_nested_variables+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 if $as_echo 'TRUE=$(BAR$(V)) 3003BAR0=false 3004BAR1=true 3005V=1 3006am__doit: 3007 @$(TRUE) 3008.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3009 am_cv_make_support_nested_variables=yes 3010else 3011 am_cv_make_support_nested_variables=no 3012fi 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3015$as_echo "$am_cv_make_support_nested_variables" >&6; } 3016if test $am_cv_make_support_nested_variables = yes; then 3017 AM_V='$(V)' 3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3019else 3020 AM_V=$AM_DEFAULT_VERBOSITY 3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3022fi 3023AM_BACKSLASH='\' 3024 3025DEPDIR="${am__leading_dot}deps" 3026 3027ac_config_commands="$ac_config_commands depfiles" 3028 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3030$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3031cat > confinc.mk << 'END' 3032am__doit: 3033 @echo this is the am__doit target >confinc.out 3034.PHONY: am__doit 3035END 3036am__include="#" 3037am__quote= 3038# BSD make does it like this. 3039echo '.include "confinc.mk" # ignored' > confmf.BSD 3040# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3041echo 'include confinc.mk # ignored' > confmf.GNU 3042_am_result=no 3043for s in GNU BSD; do 3044 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3045 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3046 ac_status=$? 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } 3049 case $?:`cat confinc.out 2>/dev/null` in #( 3050 '0:this is the am__doit target') : 3051 case $s in #( 3052 BSD) : 3053 am__include='.include' am__quote='"' ;; #( 3054 *) : 3055 am__include='include' am__quote='' ;; 3056esac ;; #( 3057 *) : 3058 ;; 3059esac 3060 if test "$am__include" != "#"; then 3061 _am_result="yes ($s style)" 3062 break 3063 fi 3064done 3065rm -f confinc.* confmf.* 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3067$as_echo "${_am_result}" >&6; } 3068 3069# Check whether --enable-dependency-tracking was given. 3070if test "${enable_dependency_tracking+set}" = set; then : 3071 enableval=$enable_dependency_tracking; 3072fi 3073 3074if test "x$enable_dependency_tracking" != xno; then 3075 am_depcomp="$ac_aux_dir/depcomp" 3076 AMDEPBACKSLASH='\' 3077 am__nodep='_no' 3078fi 3079 if test "x$enable_dependency_tracking" != xno; then 3080 AMDEP_TRUE= 3081 AMDEP_FALSE='#' 3082else 3083 AMDEP_TRUE='#' 3084 AMDEP_FALSE= 3085fi 3086 3087 3088ac_ext=c 3089ac_cpp='$CPP $CPPFLAGS' 3090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3092ac_compiler_gnu=$ac_cv_c_compiler_gnu 3093if test -n "$ac_tool_prefix"; then 3094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3095set dummy ${ac_tool_prefix}gcc; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$CC"; then 3102 ac_cv_prog_CC="$CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121CC=$ac_cv_prog_CC 3122if test -n "$CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3124$as_echo "$CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131fi 3132if test -z "$ac_cv_prog_CC"; then 3133 ac_ct_CC=$CC 3134 # Extract the first word of "gcc", so it can be a program name with args. 3135set dummy gcc; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_ac_ct_CC+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_ac_ct_CC="gcc" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161ac_ct_CC=$ac_cv_prog_ac_ct_CC 3162if test -n "$ac_ct_CC"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3164$as_echo "$ac_ct_CC" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 if test "x$ac_ct_CC" = x; then 3171 CC="" 3172 else 3173 case $cross_compiling:$ac_tool_warned in 3174yes:) 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3177ac_tool_warned=yes ;; 3178esac 3179 CC=$ac_ct_CC 3180 fi 3181else 3182 CC="$ac_cv_prog_CC" 3183fi 3184 3185if test -z "$CC"; then 3186 if test -n "$ac_tool_prefix"; then 3187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3188set dummy ${ac_tool_prefix}cc; ac_word=$2 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3190$as_echo_n "checking for $ac_word... " >&6; } 3191if ${ac_cv_prog_CC+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 if test -n "$CC"; then 3195 ac_cv_prog_CC="$CC" # Let the user override the test. 3196else 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for ac_exec_ext in '' $ac_executable_extensions; do 3203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3204 ac_cv_prog_CC="${ac_tool_prefix}cc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212fi 3213fi 3214CC=$ac_cv_prog_CC 3215if test -n "$CC"; then 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3217$as_echo "$CC" >&6; } 3218else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3220$as_echo "no" >&6; } 3221fi 3222 3223 3224 fi 3225fi 3226if test -z "$CC"; then 3227 # Extract the first word of "cc", so it can be a program name with args. 3228set dummy cc; ac_word=$2 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3230$as_echo_n "checking for $ac_word... " >&6; } 3231if ${ac_cv_prog_CC+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 if test -n "$CC"; then 3235 ac_cv_prog_CC="$CC" # Let the user override the test. 3236else 3237 ac_prog_rejected=no 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3246 ac_prog_rejected=yes 3247 continue 3248 fi 3249 ac_cv_prog_CC="cc" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254 done 3255IFS=$as_save_IFS 3256 3257if test $ac_prog_rejected = yes; then 3258 # We found a bogon in the path, so make sure we never use it. 3259 set dummy $ac_cv_prog_CC 3260 shift 3261 if test $# != 0; then 3262 # We chose a different compiler from the bogus one. 3263 # However, it has the same basename, so the bogon will be chosen 3264 # first if we set CC to just the basename; use the full file name. 3265 shift 3266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3267 fi 3268fi 3269fi 3270fi 3271CC=$ac_cv_prog_CC 3272if test -n "$CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3274$as_echo "$CC" >&6; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278fi 3279 3280 3281fi 3282if test -z "$CC"; then 3283 if test -n "$ac_tool_prefix"; then 3284 for ac_prog in cl.exe 3285 do 3286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3287set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289$as_echo_n "checking for $ac_word... " >&6; } 3290if ${ac_cv_prog_CC+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 if test -n "$CC"; then 3294 ac_cv_prog_CC="$CC" # Let the user override the test. 3295else 3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297for as_dir in $PATH 3298do 3299 IFS=$as_save_IFS 3300 test -z "$as_dir" && as_dir=. 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307done 3308 done 3309IFS=$as_save_IFS 3310 3311fi 3312fi 3313CC=$ac_cv_prog_CC 3314if test -n "$CC"; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3316$as_echo "$CC" >&6; } 3317else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319$as_echo "no" >&6; } 3320fi 3321 3322 3323 test -n "$CC" && break 3324 done 3325fi 3326if test -z "$CC"; then 3327 ac_ct_CC=$CC 3328 for ac_prog in cl.exe 3329do 3330 # Extract the first word of "$ac_prog", so it can be a program name with args. 3331set dummy $ac_prog; ac_word=$2 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3333$as_echo_n "checking for $ac_word... " >&6; } 3334if ${ac_cv_prog_ac_ct_CC+:} false; then : 3335 $as_echo_n "(cached) " >&6 3336else 3337 if test -n "$ac_ct_CC"; then 3338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3339else 3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3341for as_dir in $PATH 3342do 3343 IFS=$as_save_IFS 3344 test -z "$as_dir" && as_dir=. 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_ac_ct_CC="$ac_prog" 3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351done 3352 done 3353IFS=$as_save_IFS 3354 3355fi 3356fi 3357ac_ct_CC=$ac_cv_prog_ac_ct_CC 3358if test -n "$ac_ct_CC"; then 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3360$as_echo "$ac_ct_CC" >&6; } 3361else 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363$as_echo "no" >&6; } 3364fi 3365 3366 3367 test -n "$ac_ct_CC" && break 3368done 3369 3370 if test "x$ac_ct_CC" = x; then 3371 CC="" 3372 else 3373 case $cross_compiling:$ac_tool_warned in 3374yes:) 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3377ac_tool_warned=yes ;; 3378esac 3379 CC=$ac_ct_CC 3380 fi 3381fi 3382 3383fi 3384 3385 3386test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3388as_fn_error $? "no acceptable C compiler found in \$PATH 3389See \`config.log' for more details" "$LINENO" 5; } 3390 3391# Provide some information about the compiler. 3392$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3393set X $ac_compile 3394ac_compiler=$2 3395for ac_option in --version -v -V -qversion; do 3396 { { ac_try="$ac_compiler $ac_option >&5" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402$as_echo "$ac_try_echo"; } >&5 3403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3404 ac_status=$? 3405 if test -s conftest.err; then 3406 sed '10a\ 3407... rest of stderr output deleted ... 3408 10q' conftest.err >conftest.er1 3409 cat conftest.er1 >&5 3410 fi 3411 rm -f conftest.er1 conftest.err 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; } 3414done 3415 3416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427ac_clean_files_save=$ac_clean_files 3428ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3429# Try to create an executable without -o first, disregard a.out. 3430# It will help us diagnose broken compilers, and finding out an intuition 3431# of exeext. 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3433$as_echo_n "checking whether the C compiler works... " >&6; } 3434ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3435 3436# The possible output files: 3437ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3438 3439ac_rmfiles= 3440for ac_file in $ac_files 3441do 3442 case $ac_file in 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3444 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3445 esac 3446done 3447rm -f $ac_rmfiles 3448 3449if { { ac_try="$ac_link_default" 3450case "(($ac_try" in 3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3452 *) ac_try_echo=$ac_try;; 3453esac 3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3455$as_echo "$ac_try_echo"; } >&5 3456 (eval "$ac_link_default") 2>&5 3457 ac_status=$? 3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3459 test $ac_status = 0; }; then : 3460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3461# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3462# in a Makefile. We should not override ac_cv_exeext if it was cached, 3463# so that the user can short-circuit this test for compilers unknown to 3464# Autoconf. 3465for ac_file in $ac_files '' 3466do 3467 test -f "$ac_file" || continue 3468 case $ac_file in 3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3470 ;; 3471 [ab].out ) 3472 # We found the default executable, but exeext='' is most 3473 # certainly right. 3474 break;; 3475 *.* ) 3476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3477 then :; else 3478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3479 fi 3480 # We set ac_cv_exeext here because the later test for it is not 3481 # safe: cross compilers may not add the suffix if given an `-o' 3482 # argument, so we may need to know it at that point already. 3483 # Even if this section looks crufty: it has the advantage of 3484 # actually working. 3485 break;; 3486 * ) 3487 break;; 3488 esac 3489done 3490test "$ac_cv_exeext" = no && ac_cv_exeext= 3491 3492else 3493 ac_file='' 3494fi 3495if test -z "$ac_file"; then : 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497$as_echo "no" >&6; } 3498$as_echo "$as_me: failed program was:" >&5 3499sed 's/^/| /' conftest.$ac_ext >&5 3500 3501{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3503as_fn_error 77 "C compiler cannot create executables 3504See \`config.log' for more details" "$LINENO" 5; } 3505else 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3507$as_echo "yes" >&6; } 3508fi 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3510$as_echo_n "checking for C compiler default output file name... " >&6; } 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3512$as_echo "$ac_file" >&6; } 3513ac_exeext=$ac_cv_exeext 3514 3515rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3516ac_clean_files=$ac_clean_files_save 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3518$as_echo_n "checking for suffix of executables... " >&6; } 3519if { { ac_try="$ac_link" 3520case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523esac 3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3525$as_echo "$ac_try_echo"; } >&5 3526 (eval "$ac_link") 2>&5 3527 ac_status=$? 3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529 test $ac_status = 0; }; then : 3530 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3531# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3532# work properly (i.e., refer to `conftest.exe'), while it won't with 3533# `rm'. 3534for ac_file in conftest.exe conftest conftest.*; do 3535 test -f "$ac_file" || continue 3536 case $ac_file in 3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3539 break;; 3540 * ) break;; 3541 esac 3542done 3543else 3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3547See \`config.log' for more details" "$LINENO" 5; } 3548fi 3549rm -f conftest conftest$ac_cv_exeext 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3551$as_echo "$ac_cv_exeext" >&6; } 3552 3553rm -f conftest.$ac_ext 3554EXEEXT=$ac_cv_exeext 3555ac_exeext=$EXEEXT 3556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557/* end confdefs.h. */ 3558#include <stdio.h> 3559int 3560main () 3561{ 3562FILE *f = fopen ("conftest.out", "w"); 3563 return ferror (f) || fclose (f) != 0; 3564 3565 ; 3566 return 0; 3567} 3568_ACEOF 3569ac_clean_files="$ac_clean_files conftest.out" 3570# Check that the compiler produces executables we can run. If not, either 3571# the compiler is broken, or we cross compile. 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3573$as_echo_n "checking whether we are cross compiling... " >&6; } 3574if test "$cross_compiling" != yes; then 3575 { { ac_try="$ac_link" 3576case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579esac 3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3581$as_echo "$ac_try_echo"; } >&5 3582 (eval "$ac_link") 2>&5 3583 ac_status=$? 3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3585 test $ac_status = 0; } 3586 if { ac_try='./conftest$ac_cv_exeext' 3587 { { case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592$as_echo "$ac_try_echo"; } >&5 3593 (eval "$ac_try") 2>&5 3594 ac_status=$? 3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 test $ac_status = 0; }; }; then 3597 cross_compiling=no 3598 else 3599 if test "$cross_compiling" = maybe; then 3600 cross_compiling=yes 3601 else 3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3604as_fn_error $? "cannot run C compiled programs. 3605If you meant to cross compile, use \`--host'. 3606See \`config.log' for more details" "$LINENO" 5; } 3607 fi 3608 fi 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3611$as_echo "$cross_compiling" >&6; } 3612 3613rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3614ac_clean_files=$ac_clean_files_save 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3616$as_echo_n "checking for suffix of object files... " >&6; } 3617if ${ac_cv_objext+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622 3623int 3624main () 3625{ 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631rm -f conftest.o conftest.obj 3632if { { ac_try="$ac_compile" 3633case "(($ac_try" in 3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3635 *) ac_try_echo=$ac_try;; 3636esac 3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3638$as_echo "$ac_try_echo"; } >&5 3639 (eval "$ac_compile") 2>&5 3640 ac_status=$? 3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3642 test $ac_status = 0; }; then : 3643 for ac_file in conftest.o conftest.obj conftest.*; do 3644 test -f "$ac_file" || continue; 3645 case $ac_file in 3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3648 break;; 3649 esac 3650done 3651else 3652 $as_echo "$as_me: failed program was:" >&5 3653sed 's/^/| /' conftest.$ac_ext >&5 3654 3655{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3657as_fn_error $? "cannot compute suffix of object files: cannot compile 3658See \`config.log' for more details" "$LINENO" 5; } 3659fi 3660rm -f conftest.$ac_cv_objext conftest.$ac_ext 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3663$as_echo "$ac_cv_objext" >&6; } 3664OBJEXT=$ac_cv_objext 3665ac_objext=$OBJEXT 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3667$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3668if ${ac_cv_c_compiler_gnu+:} false; then : 3669 $as_echo_n "(cached) " >&6 3670else 3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3672/* end confdefs.h. */ 3673 3674int 3675main () 3676{ 3677#ifndef __GNUC__ 3678 choke me 3679#endif 3680 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685if ac_fn_c_try_compile "$LINENO"; then : 3686 ac_compiler_gnu=yes 3687else 3688 ac_compiler_gnu=no 3689fi 3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3691ac_cv_c_compiler_gnu=$ac_compiler_gnu 3692 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3695$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3696if test $ac_compiler_gnu = yes; then 3697 GCC=yes 3698else 3699 GCC= 3700fi 3701ac_test_CFLAGS=${CFLAGS+set} 3702ac_save_CFLAGS=$CFLAGS 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3704$as_echo_n "checking whether $CC accepts -g... " >&6; } 3705if ${ac_cv_prog_cc_g+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 ac_save_c_werror_flag=$ac_c_werror_flag 3709 ac_c_werror_flag=yes 3710 ac_cv_prog_cc_g=no 3711 CFLAGS="-g" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO"; then : 3724 ac_cv_prog_cc_g=yes 3725else 3726 CFLAGS="" 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738if ac_fn_c_try_compile "$LINENO"; then : 3739 3740else 3741 ac_c_werror_flag=$ac_save_c_werror_flag 3742 CFLAGS="-g" 3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745 3746int 3747main () 3748{ 3749 3750 ; 3751 return 0; 3752} 3753_ACEOF 3754if ac_fn_c_try_compile "$LINENO"; then : 3755 ac_cv_prog_cc_g=yes 3756fi 3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3758fi 3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760fi 3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3762 ac_c_werror_flag=$ac_save_c_werror_flag 3763fi 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3765$as_echo "$ac_cv_prog_cc_g" >&6; } 3766if test "$ac_test_CFLAGS" = set; then 3767 CFLAGS=$ac_save_CFLAGS 3768elif test $ac_cv_prog_cc_g = yes; then 3769 if test "$GCC" = yes; then 3770 CFLAGS="-g -O2" 3771 else 3772 CFLAGS="-g" 3773 fi 3774else 3775 if test "$GCC" = yes; then 3776 CFLAGS="-O2" 3777 else 3778 CFLAGS= 3779 fi 3780fi 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3782$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3783if ${ac_cv_prog_cc_c89+:} false; then : 3784 $as_echo_n "(cached) " >&6 3785else 3786 ac_cv_prog_cc_c89=no 3787ac_save_CC=$CC 3788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790#include <stdarg.h> 3791#include <stdio.h> 3792struct stat; 3793/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3794struct buf { int x; }; 3795FILE * (*rcsopen) (struct buf *, struct stat *, int); 3796static char *e (p, i) 3797 char **p; 3798 int i; 3799{ 3800 return p[i]; 3801} 3802static char *f (char * (*g) (char **, int), char **p, ...) 3803{ 3804 char *s; 3805 va_list v; 3806 va_start (v,p); 3807 s = g (p, va_arg (v,int)); 3808 va_end (v); 3809 return s; 3810} 3811 3812/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3813 function prototypes and stuff, but not '\xHH' hex character constants. 3814 These don't provoke an error unfortunately, instead are silently treated 3815 as 'x'. The following induces an error, until -std is added to get 3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3817 array size at least. It's necessary to write '\x00'==0 to get something 3818 that's true only with -std. */ 3819int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3820 3821/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3822 inside strings and character constants. */ 3823#define FOO(x) 'x' 3824int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3825 3826int test (int i, double x); 3827struct s1 {int (*f) (int a);}; 3828struct s2 {int (*f) (double a);}; 3829int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3830int argc; 3831char **argv; 3832int 3833main () 3834{ 3835return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3842do 3843 CC="$ac_save_CC $ac_arg" 3844 if ac_fn_c_try_compile "$LINENO"; then : 3845 ac_cv_prog_cc_c89=$ac_arg 3846fi 3847rm -f core conftest.err conftest.$ac_objext 3848 test "x$ac_cv_prog_cc_c89" != "xno" && break 3849done 3850rm -f conftest.$ac_ext 3851CC=$ac_save_CC 3852 3853fi 3854# AC_CACHE_VAL 3855case "x$ac_cv_prog_cc_c89" in 3856 x) 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3858$as_echo "none needed" >&6; } ;; 3859 xno) 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3861$as_echo "unsupported" >&6; } ;; 3862 *) 3863 CC="$CC $ac_cv_prog_cc_c89" 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3865$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3866esac 3867if test "x$ac_cv_prog_cc_c89" != xno; then : 3868 3869fi 3870 3871ac_ext=c 3872ac_cpp='$CPP $CPPFLAGS' 3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3875ac_compiler_gnu=$ac_cv_c_compiler_gnu 3876 3877ac_ext=c 3878ac_cpp='$CPP $CPPFLAGS' 3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3881ac_compiler_gnu=$ac_cv_c_compiler_gnu 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3883$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3884if ${am_cv_prog_cc_c_o+:} false; then : 3885 $as_echo_n "(cached) " >&6 3886else 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889 3890int 3891main () 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898 # Make sure it works both with $CC and with simple cc. 3899 # Following AC_PROG_CC_C_O, we do the test twice because some 3900 # compilers refuse to overwrite an existing .o file with -o, 3901 # though they will create one. 3902 am_cv_prog_cc_c_o=yes 3903 for am_i in 1 2; do 3904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3906 ac_status=$? 3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3908 (exit $ac_status); } \ 3909 && test -f conftest2.$ac_objext; then 3910 : OK 3911 else 3912 am_cv_prog_cc_c_o=no 3913 break 3914 fi 3915 done 3916 rm -f core conftest* 3917 unset am_i 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3920$as_echo "$am_cv_prog_cc_c_o" >&6; } 3921if test "$am_cv_prog_cc_c_o" != yes; then 3922 # Losing compiler, so override with the script. 3923 # FIXME: It is wrong to rewrite CC. 3924 # But if we don't then we get into trouble of one sort or another. 3925 # A longer-term fix would be to have automake use am__CC in this case, 3926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3927 CC="$am_aux_dir/compile $CC" 3928fi 3929ac_ext=c 3930ac_cpp='$CPP $CPPFLAGS' 3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3933ac_compiler_gnu=$ac_cv_c_compiler_gnu 3934 3935 3936depcc="$CC" am_compiler_list= 3937 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3939$as_echo_n "checking dependency style of $depcc... " >&6; } 3940if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3944 # We make a subdir and do the tests there. Otherwise we can end up 3945 # making bogus files that we don't know about and never remove. For 3946 # instance it was reported that on HP-UX the gcc test will end up 3947 # making a dummy file named 'D' -- because '-MD' means "put the output 3948 # in D". 3949 rm -rf conftest.dir 3950 mkdir conftest.dir 3951 # Copy depcomp to subdir because otherwise we won't find it if we're 3952 # using a relative directory. 3953 cp "$am_depcomp" conftest.dir 3954 cd conftest.dir 3955 # We will build objects and dependencies in a subdirectory because 3956 # it helps to detect inapplicable dependency modes. For instance 3957 # both Tru64's cc and ICC support -MD to output dependencies as a 3958 # side effect of compilation, but ICC will put the dependencies in 3959 # the current directory while Tru64 will put them in the object 3960 # directory. 3961 mkdir sub 3962 3963 am_cv_CC_dependencies_compiler_type=none 3964 if test "$am_compiler_list" = ""; then 3965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3966 fi 3967 am__universal=false 3968 case " $depcc " in #( 3969 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3970 esac 3971 3972 for depmode in $am_compiler_list; do 3973 # Setup a source with many dependencies, because some compilers 3974 # like to wrap large dependency lists on column 80 (with \), and 3975 # we should not choose a depcomp mode which is confused by this. 3976 # 3977 # We need to recreate these files for each test, as the compiler may 3978 # overwrite some of them when testing with obscure command lines. 3979 # This happens at least with the AIX C compiler. 3980 : > sub/conftest.c 3981 for i in 1 2 3 4 5 6; do 3982 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3984 # Solaris 10 /bin/sh. 3985 echo '/* dummy */' > sub/conftst$i.h 3986 done 3987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3988 3989 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3990 # mode. It turns out that the SunPro C++ compiler does not properly 3991 # handle '-M -o', and we need to detect this. Also, some Intel 3992 # versions had trouble with output in subdirs. 3993 am__obj=sub/conftest.${OBJEXT-o} 3994 am__minus_obj="-o $am__obj" 3995 case $depmode in 3996 gcc) 3997 # This depmode causes a compiler race in universal mode. 3998 test "$am__universal" = false || continue 3999 ;; 4000 nosideeffect) 4001 # After this tag, mechanisms are not by side-effect, so they'll 4002 # only be used when explicitly requested. 4003 if test "x$enable_dependency_tracking" = xyes; then 4004 continue 4005 else 4006 break 4007 fi 4008 ;; 4009 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4010 # This compiler won't grok '-c -o', but also, the minuso test has 4011 # not run yet. These depmodes are late enough in the game, and 4012 # so weak that their functioning should not be impacted. 4013 am__obj=conftest.${OBJEXT-o} 4014 am__minus_obj= 4015 ;; 4016 none) break ;; 4017 esac 4018 if depmode=$depmode \ 4019 source=sub/conftest.c object=$am__obj \ 4020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4022 >/dev/null 2>conftest.err && 4023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4027 # icc doesn't choke on unknown options, it will just issue warnings 4028 # or remarks (even with -Werror). So we grep stderr for any message 4029 # that says an option was ignored or not supported. 4030 # When given -MP, icc 7.0 and 7.1 complain thusly: 4031 # icc: Command line warning: ignoring option '-M'; no argument required 4032 # The diagnosis changed in icc 8.0: 4033 # icc: Command line remark: option '-MP' not supported 4034 if (grep 'ignoring option' conftest.err || 4035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4036 am_cv_CC_dependencies_compiler_type=$depmode 4037 break 4038 fi 4039 fi 4040 done 4041 4042 cd .. 4043 rm -rf conftest.dir 4044else 4045 am_cv_CC_dependencies_compiler_type=none 4046fi 4047 4048fi 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4050$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4051CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4052 4053 if 4054 test "x$enable_dependency_tracking" != xno \ 4055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4056 am__fastdepCC_TRUE= 4057 am__fastdepCC_FALSE='#' 4058else 4059 am__fastdepCC_TRUE='#' 4060 am__fastdepCC_FALSE= 4061fi 4062 4063 4064 4065if test -n "$ac_tool_prefix"; then 4066 for ac_prog in ar lib "link -lib" 4067 do 4068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4069set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4071$as_echo_n "checking for $ac_word... " >&6; } 4072if ${ac_cv_prog_AR+:} false; then : 4073 $as_echo_n "(cached) " >&6 4074else 4075 if test -n "$AR"; then 4076 ac_cv_prog_AR="$AR" # Let the user override the test. 4077else 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH 4080do 4081 IFS=$as_save_IFS 4082 test -z "$as_dir" && as_dir=. 4083 for ac_exec_ext in '' $ac_executable_extensions; do 4084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4085 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4087 break 2 4088 fi 4089done 4090 done 4091IFS=$as_save_IFS 4092 4093fi 4094fi 4095AR=$ac_cv_prog_AR 4096if test -n "$AR"; then 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4098$as_echo "$AR" >&6; } 4099else 4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4101$as_echo "no" >&6; } 4102fi 4103 4104 4105 test -n "$AR" && break 4106 done 4107fi 4108if test -z "$AR"; then 4109 ac_ct_AR=$AR 4110 for ac_prog in ar lib "link -lib" 4111do 4112 # Extract the first word of "$ac_prog", so it can be a program name with args. 4113set dummy $ac_prog; ac_word=$2 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4115$as_echo_n "checking for $ac_word... " >&6; } 4116if ${ac_cv_prog_ac_ct_AR+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 if test -n "$ac_ct_AR"; then 4120 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4121else 4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4123for as_dir in $PATH 4124do 4125 IFS=$as_save_IFS 4126 test -z "$as_dir" && as_dir=. 4127 for ac_exec_ext in '' $ac_executable_extensions; do 4128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4129 ac_cv_prog_ac_ct_AR="$ac_prog" 4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4131 break 2 4132 fi 4133done 4134 done 4135IFS=$as_save_IFS 4136 4137fi 4138fi 4139ac_ct_AR=$ac_cv_prog_ac_ct_AR 4140if test -n "$ac_ct_AR"; then 4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4142$as_echo "$ac_ct_AR" >&6; } 4143else 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4145$as_echo "no" >&6; } 4146fi 4147 4148 4149 test -n "$ac_ct_AR" && break 4150done 4151 4152 if test "x$ac_ct_AR" = x; then 4153 AR="false" 4154 else 4155 case $cross_compiling:$ac_tool_warned in 4156yes:) 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4159ac_tool_warned=yes ;; 4160esac 4161 AR=$ac_ct_AR 4162 fi 4163fi 4164 4165: ${AR=ar} 4166 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4168$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4169if ${am_cv_ar_interface+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 ac_ext=c 4173ac_cpp='$CPP $CPPFLAGS' 4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4176ac_compiler_gnu=$ac_cv_c_compiler_gnu 4177 4178 am_cv_ar_interface=ar 4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4180/* end confdefs.h. */ 4181int some_variable = 0; 4182_ACEOF 4183if ac_fn_c_try_compile "$LINENO"; then : 4184 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4186 (eval $am_ar_try) 2>&5 4187 ac_status=$? 4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4189 test $ac_status = 0; } 4190 if test "$ac_status" -eq 0; then 4191 am_cv_ar_interface=ar 4192 else 4193 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4195 (eval $am_ar_try) 2>&5 4196 ac_status=$? 4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4198 test $ac_status = 0; } 4199 if test "$ac_status" -eq 0; then 4200 am_cv_ar_interface=lib 4201 else 4202 am_cv_ar_interface=unknown 4203 fi 4204 fi 4205 rm -f conftest.lib libconftest.a 4206 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4209 ac_ext=c 4210ac_cpp='$CPP $CPPFLAGS' 4211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4213ac_compiler_gnu=$ac_cv_c_compiler_gnu 4214 4215fi 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4217$as_echo "$am_cv_ar_interface" >&6; } 4218 4219case $am_cv_ar_interface in 4220ar) 4221 ;; 4222lib) 4223 # Microsoft lib, so override with the ar-lib wrapper script. 4224 # FIXME: It is wrong to rewrite AR. 4225 # But if we don't then we get into trouble of one sort or another. 4226 # A longer-term fix would be to have automake use am__AR in this case, 4227 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4228 # similar. 4229 AR="$am_aux_dir/ar-lib $AR" 4230 ;; 4231unknown) 4232 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4233 ;; 4234esac 4235 4236 4237 4238ac_config_commands="$ac_config_commands src/semigroups-config.h" 4239 4240 4241 4242 4243ac_ext=cpp 4244ac_cpp='$CXXCPP $CPPFLAGS' 4245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4248if test -z "$CXX"; then 4249 if test -n "$CCC"; then 4250 CXX=$CCC 4251 else 4252 if test -n "$ac_tool_prefix"; then 4253 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4254 do 4255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4256set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4258$as_echo_n "checking for $ac_word... " >&6; } 4259if ${ac_cv_prog_CXX+:} false; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 if test -n "$CXX"; then 4263 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4264else 4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4266for as_dir in $PATH 4267do 4268 IFS=$as_save_IFS 4269 test -z "$as_dir" && as_dir=. 4270 for ac_exec_ext in '' $ac_executable_extensions; do 4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4272 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4274 break 2 4275 fi 4276done 4277 done 4278IFS=$as_save_IFS 4279 4280fi 4281fi 4282CXX=$ac_cv_prog_CXX 4283if test -n "$CXX"; then 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4285$as_echo "$CXX" >&6; } 4286else 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4288$as_echo "no" >&6; } 4289fi 4290 4291 4292 test -n "$CXX" && break 4293 done 4294fi 4295if test -z "$CXX"; then 4296 ac_ct_CXX=$CXX 4297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4298do 4299 # Extract the first word of "$ac_prog", so it can be a program name with args. 4300set dummy $ac_prog; ac_word=$2 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4302$as_echo_n "checking for $ac_word... " >&6; } 4303if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 if test -n "$ac_ct_CXX"; then 4307 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4308else 4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4310for as_dir in $PATH 4311do 4312 IFS=$as_save_IFS 4313 test -z "$as_dir" && as_dir=. 4314 for ac_exec_ext in '' $ac_executable_extensions; do 4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4316 ac_cv_prog_ac_ct_CXX="$ac_prog" 4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4318 break 2 4319 fi 4320done 4321 done 4322IFS=$as_save_IFS 4323 4324fi 4325fi 4326ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4327if test -n "$ac_ct_CXX"; then 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4329$as_echo "$ac_ct_CXX" >&6; } 4330else 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332$as_echo "no" >&6; } 4333fi 4334 4335 4336 test -n "$ac_ct_CXX" && break 4337done 4338 4339 if test "x$ac_ct_CXX" = x; then 4340 CXX="g++" 4341 else 4342 case $cross_compiling:$ac_tool_warned in 4343yes:) 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4346ac_tool_warned=yes ;; 4347esac 4348 CXX=$ac_ct_CXX 4349 fi 4350fi 4351 4352 fi 4353fi 4354# Provide some information about the compiler. 4355$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4356set X $ac_compile 4357ac_compiler=$2 4358for ac_option in --version -v -V -qversion; do 4359 { { ac_try="$ac_compiler $ac_option >&5" 4360case "(($ac_try" in 4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4362 *) ac_try_echo=$ac_try;; 4363esac 4364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4365$as_echo "$ac_try_echo"; } >&5 4366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4367 ac_status=$? 4368 if test -s conftest.err; then 4369 sed '10a\ 4370... rest of stderr output deleted ... 4371 10q' conftest.err >conftest.er1 4372 cat conftest.er1 >&5 4373 fi 4374 rm -f conftest.er1 conftest.err 4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4376 test $ac_status = 0; } 4377done 4378 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4380$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4381if ${ac_cv_cxx_compiler_gnu+:} false; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386 4387int 4388main () 4389{ 4390#ifndef __GNUC__ 4391 choke me 4392#endif 4393 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398if ac_fn_cxx_try_compile "$LINENO"; then : 4399 ac_compiler_gnu=yes 4400else 4401 ac_compiler_gnu=no 4402fi 4403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4404ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4405 4406fi 4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4408$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4409if test $ac_compiler_gnu = yes; then 4410 GXX=yes 4411else 4412 GXX= 4413fi 4414ac_test_CXXFLAGS=${CXXFLAGS+set} 4415ac_save_CXXFLAGS=$CXXFLAGS 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4417$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4418if ${ac_cv_prog_cxx_g+:} false; then : 4419 $as_echo_n "(cached) " >&6 4420else 4421 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4422 ac_cxx_werror_flag=yes 4423 ac_cv_prog_cxx_g=no 4424 CXXFLAGS="-g" 4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426/* end confdefs.h. */ 4427 4428int 4429main () 4430{ 4431 4432 ; 4433 return 0; 4434} 4435_ACEOF 4436if ac_fn_cxx_try_compile "$LINENO"; then : 4437 ac_cv_prog_cxx_g=yes 4438else 4439 CXXFLAGS="" 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442 4443int 4444main () 4445{ 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451if ac_fn_cxx_try_compile "$LINENO"; then : 4452 4453else 4454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4455 CXXFLAGS="-g" 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457/* end confdefs.h. */ 4458 4459int 4460main () 4461{ 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467if ac_fn_cxx_try_compile "$LINENO"; then : 4468 ac_cv_prog_cxx_g=yes 4469fi 4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4471fi 4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4473fi 4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4475 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4476fi 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4478$as_echo "$ac_cv_prog_cxx_g" >&6; } 4479if test "$ac_test_CXXFLAGS" = set; then 4480 CXXFLAGS=$ac_save_CXXFLAGS 4481elif test $ac_cv_prog_cxx_g = yes; then 4482 if test "$GXX" = yes; then 4483 CXXFLAGS="-g -O2" 4484 else 4485 CXXFLAGS="-g" 4486 fi 4487else 4488 if test "$GXX" = yes; then 4489 CXXFLAGS="-O2" 4490 else 4491 CXXFLAGS= 4492 fi 4493fi 4494ac_ext=c 4495ac_cpp='$CPP $CPPFLAGS' 4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4498ac_compiler_gnu=$ac_cv_c_compiler_gnu 4499 4500depcc="$CXX" am_compiler_list= 4501 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4503$as_echo_n "checking dependency style of $depcc... " >&6; } 4504if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4505 $as_echo_n "(cached) " >&6 4506else 4507 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4508 # We make a subdir and do the tests there. Otherwise we can end up 4509 # making bogus files that we don't know about and never remove. For 4510 # instance it was reported that on HP-UX the gcc test will end up 4511 # making a dummy file named 'D' -- because '-MD' means "put the output 4512 # in D". 4513 rm -rf conftest.dir 4514 mkdir conftest.dir 4515 # Copy depcomp to subdir because otherwise we won't find it if we're 4516 # using a relative directory. 4517 cp "$am_depcomp" conftest.dir 4518 cd conftest.dir 4519 # We will build objects and dependencies in a subdirectory because 4520 # it helps to detect inapplicable dependency modes. For instance 4521 # both Tru64's cc and ICC support -MD to output dependencies as a 4522 # side effect of compilation, but ICC will put the dependencies in 4523 # the current directory while Tru64 will put them in the object 4524 # directory. 4525 mkdir sub 4526 4527 am_cv_CXX_dependencies_compiler_type=none 4528 if test "$am_compiler_list" = ""; then 4529 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4530 fi 4531 am__universal=false 4532 case " $depcc " in #( 4533 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4534 esac 4535 4536 for depmode in $am_compiler_list; do 4537 # Setup a source with many dependencies, because some compilers 4538 # like to wrap large dependency lists on column 80 (with \), and 4539 # we should not choose a depcomp mode which is confused by this. 4540 # 4541 # We need to recreate these files for each test, as the compiler may 4542 # overwrite some of them when testing with obscure command lines. 4543 # This happens at least with the AIX C compiler. 4544 : > sub/conftest.c 4545 for i in 1 2 3 4 5 6; do 4546 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4547 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4548 # Solaris 10 /bin/sh. 4549 echo '/* dummy */' > sub/conftst$i.h 4550 done 4551 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4552 4553 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4554 # mode. It turns out that the SunPro C++ compiler does not properly 4555 # handle '-M -o', and we need to detect this. Also, some Intel 4556 # versions had trouble with output in subdirs. 4557 am__obj=sub/conftest.${OBJEXT-o} 4558 am__minus_obj="-o $am__obj" 4559 case $depmode in 4560 gcc) 4561 # This depmode causes a compiler race in universal mode. 4562 test "$am__universal" = false || continue 4563 ;; 4564 nosideeffect) 4565 # After this tag, mechanisms are not by side-effect, so they'll 4566 # only be used when explicitly requested. 4567 if test "x$enable_dependency_tracking" = xyes; then 4568 continue 4569 else 4570 break 4571 fi 4572 ;; 4573 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4574 # This compiler won't grok '-c -o', but also, the minuso test has 4575 # not run yet. These depmodes are late enough in the game, and 4576 # so weak that their functioning should not be impacted. 4577 am__obj=conftest.${OBJEXT-o} 4578 am__minus_obj= 4579 ;; 4580 none) break ;; 4581 esac 4582 if depmode=$depmode \ 4583 source=sub/conftest.c object=$am__obj \ 4584 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4585 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4586 >/dev/null 2>conftest.err && 4587 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4589 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4591 # icc doesn't choke on unknown options, it will just issue warnings 4592 # or remarks (even with -Werror). So we grep stderr for any message 4593 # that says an option was ignored or not supported. 4594 # When given -MP, icc 7.0 and 7.1 complain thusly: 4595 # icc: Command line warning: ignoring option '-M'; no argument required 4596 # The diagnosis changed in icc 8.0: 4597 # icc: Command line remark: option '-MP' not supported 4598 if (grep 'ignoring option' conftest.err || 4599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4600 am_cv_CXX_dependencies_compiler_type=$depmode 4601 break 4602 fi 4603 fi 4604 done 4605 4606 cd .. 4607 rm -rf conftest.dir 4608else 4609 am_cv_CXX_dependencies_compiler_type=none 4610fi 4611 4612fi 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4614$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4616 4617 if 4618 test "x$enable_dependency_tracking" != xno \ 4619 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4620 am__fastdepCXX_TRUE= 4621 am__fastdepCXX_FALSE='#' 4622else 4623 am__fastdepCXX_TRUE='#' 4624 am__fastdepCXX_FALSE= 4625fi 4626 4627 4628ac_ext=cpp 4629ac_cpp='$CXXCPP $CPPFLAGS' 4630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4633 4634 4635 4636 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 4637 ac_ext=cpp 4638ac_cpp='$CXXCPP $CPPFLAGS' 4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4642 ac_success=no 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 4644$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 4645if ${ax_cv_cxx_compile_cxx11+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650 4651 4652// If the compiler admits that it is not ready for C++11, why torture it? 4653// Hopefully, this will speed up the test. 4654 4655#ifndef __cplusplus 4656 4657#error "This is not a C++ compiler" 4658 4659#elif __cplusplus < 201103L 4660 4661#error "This is not a C++11 compiler" 4662 4663#else 4664 4665namespace cxx11 4666{ 4667 4668 namespace test_static_assert 4669 { 4670 4671 template <typename T> 4672 struct check 4673 { 4674 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4675 }; 4676 4677 } 4678 4679 namespace test_final_override 4680 { 4681 4682 struct Base 4683 { 4684 virtual void f() {} 4685 }; 4686 4687 struct Derived : public Base 4688 { 4689 virtual void f() override {} 4690 }; 4691 4692 } 4693 4694 namespace test_double_right_angle_brackets 4695 { 4696 4697 template < typename T > 4698 struct check {}; 4699 4700 typedef check<void> single_type; 4701 typedef check<check<void>> double_type; 4702 typedef check<check<check<void>>> triple_type; 4703 typedef check<check<check<check<void>>>> quadruple_type; 4704 4705 } 4706 4707 namespace test_decltype 4708 { 4709 4710 int 4711 f() 4712 { 4713 int a = 1; 4714 decltype(a) b = 2; 4715 return a + b; 4716 } 4717 4718 } 4719 4720 namespace test_type_deduction 4721 { 4722 4723 template < typename T1, typename T2 > 4724 struct is_same 4725 { 4726 static const bool value = false; 4727 }; 4728 4729 template < typename T > 4730 struct is_same<T, T> 4731 { 4732 static const bool value = true; 4733 }; 4734 4735 template < typename T1, typename T2 > 4736 auto 4737 add(T1 a1, T2 a2) -> decltype(a1 + a2) 4738 { 4739 return a1 + a2; 4740 } 4741 4742 int 4743 test(const int c, volatile int v) 4744 { 4745 static_assert(is_same<int, decltype(0)>::value == true, ""); 4746 static_assert(is_same<int, decltype(c)>::value == false, ""); 4747 static_assert(is_same<int, decltype(v)>::value == false, ""); 4748 auto ac = c; 4749 auto av = v; 4750 auto sumi = ac + av + 'x'; 4751 auto sumf = ac + av + 1.0; 4752 static_assert(is_same<int, decltype(ac)>::value == true, ""); 4753 static_assert(is_same<int, decltype(av)>::value == true, ""); 4754 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 4755 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 4756 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 4757 return (sumf > 0.0) ? sumi : add(c, v); 4758 } 4759 4760 } 4761 4762 namespace test_noexcept 4763 { 4764 4765 int f() { return 0; } 4766 int g() noexcept { return 0; } 4767 4768 static_assert(noexcept(f()) == false, ""); 4769 static_assert(noexcept(g()) == true, ""); 4770 4771 } 4772 4773 namespace test_constexpr 4774 { 4775 4776 template < typename CharT > 4777 unsigned long constexpr 4778 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 4779 { 4780 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 4781 } 4782 4783 template < typename CharT > 4784 unsigned long constexpr 4785 strlen_c(const CharT *const s) noexcept 4786 { 4787 return strlen_c_r(s, 0UL); 4788 } 4789 4790 static_assert(strlen_c("") == 0UL, ""); 4791 static_assert(strlen_c("1") == 1UL, ""); 4792 static_assert(strlen_c("example") == 7UL, ""); 4793 static_assert(strlen_c("another\0example") == 7UL, ""); 4794 4795 } 4796 4797 namespace test_rvalue_references 4798 { 4799 4800 template < int N > 4801 struct answer 4802 { 4803 static constexpr int value = N; 4804 }; 4805 4806 answer<1> f(int&) { return answer<1>(); } 4807 answer<2> f(const int&) { return answer<2>(); } 4808 answer<3> f(int&&) { return answer<3>(); } 4809 4810 void 4811 test() 4812 { 4813 int i = 0; 4814 const int c = 0; 4815 static_assert(decltype(f(i))::value == 1, ""); 4816 static_assert(decltype(f(c))::value == 2, ""); 4817 static_assert(decltype(f(0))::value == 3, ""); 4818 } 4819 4820 } 4821 4822 namespace test_uniform_initialization 4823 { 4824 4825 struct test 4826 { 4827 static const int zero {}; 4828 static const int one {1}; 4829 }; 4830 4831 static_assert(test::zero == 0, ""); 4832 static_assert(test::one == 1, ""); 4833 4834 } 4835 4836 namespace test_lambdas 4837 { 4838 4839 void 4840 test1() 4841 { 4842 auto lambda1 = [](){}; 4843 auto lambda2 = lambda1; 4844 lambda1(); 4845 lambda2(); 4846 } 4847 4848 int 4849 test2() 4850 { 4851 auto a = [](int i, int j){ return i + j; }(1, 2); 4852 auto b = []() -> int { return '0'; }(); 4853 auto c = [=](){ return a + b; }(); 4854 auto d = [&](){ return c; }(); 4855 auto e = [a, &b](int x) mutable { 4856 const auto identity = [](int y){ return y; }; 4857 for (auto i = 0; i < a; ++i) 4858 a += b--; 4859 return x + identity(a + b); 4860 }(0); 4861 return a + b + c + d + e; 4862 } 4863 4864 int 4865 test3() 4866 { 4867 const auto nullary = [](){ return 0; }; 4868 const auto unary = [](int x){ return x; }; 4869 using nullary_t = decltype(nullary); 4870 using unary_t = decltype(unary); 4871 const auto higher1st = [](nullary_t f){ return f(); }; 4872 const auto higher2nd = [unary](nullary_t f1){ 4873 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 4874 }; 4875 return higher1st(nullary) + higher2nd(nullary)(unary); 4876 } 4877 4878 } 4879 4880 namespace test_variadic_templates 4881 { 4882 4883 template <int...> 4884 struct sum; 4885 4886 template <int N0, int... N1toN> 4887 struct sum<N0, N1toN...> 4888 { 4889 static constexpr auto value = N0 + sum<N1toN...>::value; 4890 }; 4891 4892 template <> 4893 struct sum<> 4894 { 4895 static constexpr auto value = 0; 4896 }; 4897 4898 static_assert(sum<>::value == 0, ""); 4899 static_assert(sum<1>::value == 1, ""); 4900 static_assert(sum<23>::value == 23, ""); 4901 static_assert(sum<1, 2>::value == 3, ""); 4902 static_assert(sum<5, 5, 11>::value == 21, ""); 4903 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 4904 4905 } 4906 4907 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 4908 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 4909 // because of this. 4910 namespace test_template_alias_sfinae 4911 { 4912 4913 struct foo {}; 4914 4915 template<typename T> 4916 using member = typename T::member_type; 4917 4918 template<typename T> 4919 void func(...) {} 4920 4921 template<typename T> 4922 void func(member<T>*) {} 4923 4924 void test(); 4925 4926 void test() { func<foo>(0); } 4927 4928 } 4929 4930} // namespace cxx11 4931 4932#endif // __cplusplus >= 201103L 4933 4934 4935 4936_ACEOF 4937if ac_fn_cxx_try_compile "$LINENO"; then : 4938 ax_cv_cxx_compile_cxx11=yes 4939else 4940 ax_cv_cxx_compile_cxx11=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 4945$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 4946 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 4947 ac_success=yes 4948 fi 4949 4950 if test x$ac_success = xno; then 4951 for alternative in ${ax_cxx_compile_alternatives}; do 4952 switch="-std=gnu++${alternative}" 4953 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 4955$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 4956if eval \${$cachevar+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 ac_save_CXX="$CXX" 4960 CXX="$CXX $switch" 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963 4964 4965// If the compiler admits that it is not ready for C++11, why torture it? 4966// Hopefully, this will speed up the test. 4967 4968#ifndef __cplusplus 4969 4970#error "This is not a C++ compiler" 4971 4972#elif __cplusplus < 201103L 4973 4974#error "This is not a C++11 compiler" 4975 4976#else 4977 4978namespace cxx11 4979{ 4980 4981 namespace test_static_assert 4982 { 4983 4984 template <typename T> 4985 struct check 4986 { 4987 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4988 }; 4989 4990 } 4991 4992 namespace test_final_override 4993 { 4994 4995 struct Base 4996 { 4997 virtual void f() {} 4998 }; 4999 5000 struct Derived : public Base 5001 { 5002 virtual void f() override {} 5003 }; 5004 5005 } 5006 5007 namespace test_double_right_angle_brackets 5008 { 5009 5010 template < typename T > 5011 struct check {}; 5012 5013 typedef check<void> single_type; 5014 typedef check<check<void>> double_type; 5015 typedef check<check<check<void>>> triple_type; 5016 typedef check<check<check<check<void>>>> quadruple_type; 5017 5018 } 5019 5020 namespace test_decltype 5021 { 5022 5023 int 5024 f() 5025 { 5026 int a = 1; 5027 decltype(a) b = 2; 5028 return a + b; 5029 } 5030 5031 } 5032 5033 namespace test_type_deduction 5034 { 5035 5036 template < typename T1, typename T2 > 5037 struct is_same 5038 { 5039 static const bool value = false; 5040 }; 5041 5042 template < typename T > 5043 struct is_same<T, T> 5044 { 5045 static const bool value = true; 5046 }; 5047 5048 template < typename T1, typename T2 > 5049 auto 5050 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5051 { 5052 return a1 + a2; 5053 } 5054 5055 int 5056 test(const int c, volatile int v) 5057 { 5058 static_assert(is_same<int, decltype(0)>::value == true, ""); 5059 static_assert(is_same<int, decltype(c)>::value == false, ""); 5060 static_assert(is_same<int, decltype(v)>::value == false, ""); 5061 auto ac = c; 5062 auto av = v; 5063 auto sumi = ac + av + 'x'; 5064 auto sumf = ac + av + 1.0; 5065 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5066 static_assert(is_same<int, decltype(av)>::value == true, ""); 5067 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5068 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5069 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5070 return (sumf > 0.0) ? sumi : add(c, v); 5071 } 5072 5073 } 5074 5075 namespace test_noexcept 5076 { 5077 5078 int f() { return 0; } 5079 int g() noexcept { return 0; } 5080 5081 static_assert(noexcept(f()) == false, ""); 5082 static_assert(noexcept(g()) == true, ""); 5083 5084 } 5085 5086 namespace test_constexpr 5087 { 5088 5089 template < typename CharT > 5090 unsigned long constexpr 5091 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5092 { 5093 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5094 } 5095 5096 template < typename CharT > 5097 unsigned long constexpr 5098 strlen_c(const CharT *const s) noexcept 5099 { 5100 return strlen_c_r(s, 0UL); 5101 } 5102 5103 static_assert(strlen_c("") == 0UL, ""); 5104 static_assert(strlen_c("1") == 1UL, ""); 5105 static_assert(strlen_c("example") == 7UL, ""); 5106 static_assert(strlen_c("another\0example") == 7UL, ""); 5107 5108 } 5109 5110 namespace test_rvalue_references 5111 { 5112 5113 template < int N > 5114 struct answer 5115 { 5116 static constexpr int value = N; 5117 }; 5118 5119 answer<1> f(int&) { return answer<1>(); } 5120 answer<2> f(const int&) { return answer<2>(); } 5121 answer<3> f(int&&) { return answer<3>(); } 5122 5123 void 5124 test() 5125 { 5126 int i = 0; 5127 const int c = 0; 5128 static_assert(decltype(f(i))::value == 1, ""); 5129 static_assert(decltype(f(c))::value == 2, ""); 5130 static_assert(decltype(f(0))::value == 3, ""); 5131 } 5132 5133 } 5134 5135 namespace test_uniform_initialization 5136 { 5137 5138 struct test 5139 { 5140 static const int zero {}; 5141 static const int one {1}; 5142 }; 5143 5144 static_assert(test::zero == 0, ""); 5145 static_assert(test::one == 1, ""); 5146 5147 } 5148 5149 namespace test_lambdas 5150 { 5151 5152 void 5153 test1() 5154 { 5155 auto lambda1 = [](){}; 5156 auto lambda2 = lambda1; 5157 lambda1(); 5158 lambda2(); 5159 } 5160 5161 int 5162 test2() 5163 { 5164 auto a = [](int i, int j){ return i + j; }(1, 2); 5165 auto b = []() -> int { return '0'; }(); 5166 auto c = [=](){ return a + b; }(); 5167 auto d = [&](){ return c; }(); 5168 auto e = [a, &b](int x) mutable { 5169 const auto identity = [](int y){ return y; }; 5170 for (auto i = 0; i < a; ++i) 5171 a += b--; 5172 return x + identity(a + b); 5173 }(0); 5174 return a + b + c + d + e; 5175 } 5176 5177 int 5178 test3() 5179 { 5180 const auto nullary = [](){ return 0; }; 5181 const auto unary = [](int x){ return x; }; 5182 using nullary_t = decltype(nullary); 5183 using unary_t = decltype(unary); 5184 const auto higher1st = [](nullary_t f){ return f(); }; 5185 const auto higher2nd = [unary](nullary_t f1){ 5186 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5187 }; 5188 return higher1st(nullary) + higher2nd(nullary)(unary); 5189 } 5190 5191 } 5192 5193 namespace test_variadic_templates 5194 { 5195 5196 template <int...> 5197 struct sum; 5198 5199 template <int N0, int... N1toN> 5200 struct sum<N0, N1toN...> 5201 { 5202 static constexpr auto value = N0 + sum<N1toN...>::value; 5203 }; 5204 5205 template <> 5206 struct sum<> 5207 { 5208 static constexpr auto value = 0; 5209 }; 5210 5211 static_assert(sum<>::value == 0, ""); 5212 static_assert(sum<1>::value == 1, ""); 5213 static_assert(sum<23>::value == 23, ""); 5214 static_assert(sum<1, 2>::value == 3, ""); 5215 static_assert(sum<5, 5, 11>::value == 21, ""); 5216 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5217 5218 } 5219 5220 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5221 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5222 // because of this. 5223 namespace test_template_alias_sfinae 5224 { 5225 5226 struct foo {}; 5227 5228 template<typename T> 5229 using member = typename T::member_type; 5230 5231 template<typename T> 5232 void func(...) {} 5233 5234 template<typename T> 5235 void func(member<T>*) {} 5236 5237 void test(); 5238 5239 void test() { func<foo>(0); } 5240 5241 } 5242 5243} // namespace cxx11 5244 5245#endif // __cplusplus >= 201103L 5246 5247 5248 5249_ACEOF 5250if ac_fn_cxx_try_compile "$LINENO"; then : 5251 eval $cachevar=yes 5252else 5253 eval $cachevar=no 5254fi 5255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5256 CXX="$ac_save_CXX" 5257fi 5258eval ac_res=\$$cachevar 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5260$as_echo "$ac_res" >&6; } 5261 if eval test x\$$cachevar = xyes; then 5262 CXX="$CXX $switch" 5263 if test -n "$CXXCPP" ; then 5264 CXXCPP="$CXXCPP $switch" 5265 fi 5266 ac_success=yes 5267 break 5268 fi 5269 done 5270 fi 5271 5272 if test x$ac_success = xno; then 5273 for alternative in ${ax_cxx_compile_alternatives}; do 5274 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 5275 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5277$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5278if eval \${$cachevar+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 ac_save_CXX="$CXX" 5282 CXX="$CXX $switch" 5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5284/* end confdefs.h. */ 5285 5286 5287// If the compiler admits that it is not ready for C++11, why torture it? 5288// Hopefully, this will speed up the test. 5289 5290#ifndef __cplusplus 5291 5292#error "This is not a C++ compiler" 5293 5294#elif __cplusplus < 201103L 5295 5296#error "This is not a C++11 compiler" 5297 5298#else 5299 5300namespace cxx11 5301{ 5302 5303 namespace test_static_assert 5304 { 5305 5306 template <typename T> 5307 struct check 5308 { 5309 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5310 }; 5311 5312 } 5313 5314 namespace test_final_override 5315 { 5316 5317 struct Base 5318 { 5319 virtual void f() {} 5320 }; 5321 5322 struct Derived : public Base 5323 { 5324 virtual void f() override {} 5325 }; 5326 5327 } 5328 5329 namespace test_double_right_angle_brackets 5330 { 5331 5332 template < typename T > 5333 struct check {}; 5334 5335 typedef check<void> single_type; 5336 typedef check<check<void>> double_type; 5337 typedef check<check<check<void>>> triple_type; 5338 typedef check<check<check<check<void>>>> quadruple_type; 5339 5340 } 5341 5342 namespace test_decltype 5343 { 5344 5345 int 5346 f() 5347 { 5348 int a = 1; 5349 decltype(a) b = 2; 5350 return a + b; 5351 } 5352 5353 } 5354 5355 namespace test_type_deduction 5356 { 5357 5358 template < typename T1, typename T2 > 5359 struct is_same 5360 { 5361 static const bool value = false; 5362 }; 5363 5364 template < typename T > 5365 struct is_same<T, T> 5366 { 5367 static const bool value = true; 5368 }; 5369 5370 template < typename T1, typename T2 > 5371 auto 5372 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5373 { 5374 return a1 + a2; 5375 } 5376 5377 int 5378 test(const int c, volatile int v) 5379 { 5380 static_assert(is_same<int, decltype(0)>::value == true, ""); 5381 static_assert(is_same<int, decltype(c)>::value == false, ""); 5382 static_assert(is_same<int, decltype(v)>::value == false, ""); 5383 auto ac = c; 5384 auto av = v; 5385 auto sumi = ac + av + 'x'; 5386 auto sumf = ac + av + 1.0; 5387 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5388 static_assert(is_same<int, decltype(av)>::value == true, ""); 5389 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5390 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5391 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5392 return (sumf > 0.0) ? sumi : add(c, v); 5393 } 5394 5395 } 5396 5397 namespace test_noexcept 5398 { 5399 5400 int f() { return 0; } 5401 int g() noexcept { return 0; } 5402 5403 static_assert(noexcept(f()) == false, ""); 5404 static_assert(noexcept(g()) == true, ""); 5405 5406 } 5407 5408 namespace test_constexpr 5409 { 5410 5411 template < typename CharT > 5412 unsigned long constexpr 5413 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5414 { 5415 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5416 } 5417 5418 template < typename CharT > 5419 unsigned long constexpr 5420 strlen_c(const CharT *const s) noexcept 5421 { 5422 return strlen_c_r(s, 0UL); 5423 } 5424 5425 static_assert(strlen_c("") == 0UL, ""); 5426 static_assert(strlen_c("1") == 1UL, ""); 5427 static_assert(strlen_c("example") == 7UL, ""); 5428 static_assert(strlen_c("another\0example") == 7UL, ""); 5429 5430 } 5431 5432 namespace test_rvalue_references 5433 { 5434 5435 template < int N > 5436 struct answer 5437 { 5438 static constexpr int value = N; 5439 }; 5440 5441 answer<1> f(int&) { return answer<1>(); } 5442 answer<2> f(const int&) { return answer<2>(); } 5443 answer<3> f(int&&) { return answer<3>(); } 5444 5445 void 5446 test() 5447 { 5448 int i = 0; 5449 const int c = 0; 5450 static_assert(decltype(f(i))::value == 1, ""); 5451 static_assert(decltype(f(c))::value == 2, ""); 5452 static_assert(decltype(f(0))::value == 3, ""); 5453 } 5454 5455 } 5456 5457 namespace test_uniform_initialization 5458 { 5459 5460 struct test 5461 { 5462 static const int zero {}; 5463 static const int one {1}; 5464 }; 5465 5466 static_assert(test::zero == 0, ""); 5467 static_assert(test::one == 1, ""); 5468 5469 } 5470 5471 namespace test_lambdas 5472 { 5473 5474 void 5475 test1() 5476 { 5477 auto lambda1 = [](){}; 5478 auto lambda2 = lambda1; 5479 lambda1(); 5480 lambda2(); 5481 } 5482 5483 int 5484 test2() 5485 { 5486 auto a = [](int i, int j){ return i + j; }(1, 2); 5487 auto b = []() -> int { return '0'; }(); 5488 auto c = [=](){ return a + b; }(); 5489 auto d = [&](){ return c; }(); 5490 auto e = [a, &b](int x) mutable { 5491 const auto identity = [](int y){ return y; }; 5492 for (auto i = 0; i < a; ++i) 5493 a += b--; 5494 return x + identity(a + b); 5495 }(0); 5496 return a + b + c + d + e; 5497 } 5498 5499 int 5500 test3() 5501 { 5502 const auto nullary = [](){ return 0; }; 5503 const auto unary = [](int x){ return x; }; 5504 using nullary_t = decltype(nullary); 5505 using unary_t = decltype(unary); 5506 const auto higher1st = [](nullary_t f){ return f(); }; 5507 const auto higher2nd = [unary](nullary_t f1){ 5508 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5509 }; 5510 return higher1st(nullary) + higher2nd(nullary)(unary); 5511 } 5512 5513 } 5514 5515 namespace test_variadic_templates 5516 { 5517 5518 template <int...> 5519 struct sum; 5520 5521 template <int N0, int... N1toN> 5522 struct sum<N0, N1toN...> 5523 { 5524 static constexpr auto value = N0 + sum<N1toN...>::value; 5525 }; 5526 5527 template <> 5528 struct sum<> 5529 { 5530 static constexpr auto value = 0; 5531 }; 5532 5533 static_assert(sum<>::value == 0, ""); 5534 static_assert(sum<1>::value == 1, ""); 5535 static_assert(sum<23>::value == 23, ""); 5536 static_assert(sum<1, 2>::value == 3, ""); 5537 static_assert(sum<5, 5, 11>::value == 21, ""); 5538 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5539 5540 } 5541 5542 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5543 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5544 // because of this. 5545 namespace test_template_alias_sfinae 5546 { 5547 5548 struct foo {}; 5549 5550 template<typename T> 5551 using member = typename T::member_type; 5552 5553 template<typename T> 5554 void func(...) {} 5555 5556 template<typename T> 5557 void func(member<T>*) {} 5558 5559 void test(); 5560 5561 void test() { func<foo>(0); } 5562 5563 } 5564 5565} // namespace cxx11 5566 5567#endif // __cplusplus >= 201103L 5568 5569 5570 5571_ACEOF 5572if ac_fn_cxx_try_compile "$LINENO"; then : 5573 eval $cachevar=yes 5574else 5575 eval $cachevar=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578 CXX="$ac_save_CXX" 5579fi 5580eval ac_res=\$$cachevar 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5582$as_echo "$ac_res" >&6; } 5583 if eval test x\$$cachevar = xyes; then 5584 CXX="$CXX $switch" 5585 if test -n "$CXXCPP" ; then 5586 CXXCPP="$CXXCPP $switch" 5587 fi 5588 ac_success=yes 5589 break 5590 fi 5591 done 5592 if test x$ac_success = xyes; then 5593 break 5594 fi 5595 done 5596 fi 5597 ac_ext=cpp 5598ac_cpp='$CXXCPP $CPPFLAGS' 5599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5602 5603 if test x$ax_cxx_compile_cxx11_required = xtrue; then 5604 if test x$ac_success = xno; then 5605 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 5606 fi 5607 fi 5608 if test x$ac_success = xno; then 5609 HAVE_CXX11=0 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 5611$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 5612 else 5613 HAVE_CXX11=1 5614 5615$as_echo "#define HAVE_CXX11 1" >>confdefs.h 5616 5617 fi 5618 5619 5620 5621 5622 5623case `pwd` in 5624 *\ * | *\ *) 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5626$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5627esac 5628 5629 5630 5631macro_version='2.4.6' 5632macro_revision='2.4.6' 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646ltmain=$ac_aux_dir/ltmain.sh 5647 5648# Backslashify metacharacters that are still active within 5649# double-quoted strings. 5650sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5651 5652# Same as above, but do not quote variable references. 5653double_quote_subst='s/\(["`\\]\)/\\\1/g' 5654 5655# Sed substitution to delay expansion of an escaped shell variable in a 5656# double_quote_subst'ed string. 5657delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5658 5659# Sed substitution to delay expansion of an escaped single quote. 5660delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5661 5662# Sed substitution to avoid accidental globbing in evaled expressions 5663no_glob_subst='s/\*/\\\*/g' 5664 5665ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5666ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5667ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5670$as_echo_n "checking how to print strings... " >&6; } 5671# Test print first, because it will be a builtin if present. 5672if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5673 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5674 ECHO='print -r --' 5675elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5676 ECHO='printf %s\n' 5677else 5678 # Use this function as a fallback that always works. 5679 func_fallback_echo () 5680 { 5681 eval 'cat <<_LTECHO_EOF 5682$1 5683_LTECHO_EOF' 5684 } 5685 ECHO='func_fallback_echo' 5686fi 5687 5688# func_echo_all arg... 5689# Invoke $ECHO with all args, space-separated. 5690func_echo_all () 5691{ 5692 $ECHO "" 5693} 5694 5695case $ECHO in 5696 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5697$as_echo "printf" >&6; } ;; 5698 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5699$as_echo "print -r" >&6; } ;; 5700 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5701$as_echo "cat" >&6; } ;; 5702esac 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5718$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5719if ${ac_cv_path_SED+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5723 for ac_i in 1 2 3 4 5 6 7; do 5724 ac_script="$ac_script$as_nl$ac_script" 5725 done 5726 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5727 { ac_script=; unset ac_script;} 5728 if test -z "$SED"; then 5729 ac_path_SED_found=false 5730 # Loop through the user's path and test for each of PROGNAME-LIST 5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5732for as_dir in $PATH 5733do 5734 IFS=$as_save_IFS 5735 test -z "$as_dir" && as_dir=. 5736 for ac_prog in sed gsed; do 5737 for ac_exec_ext in '' $ac_executable_extensions; do 5738 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5739 as_fn_executable_p "$ac_path_SED" || continue 5740# Check for GNU ac_path_SED and select it if it is found. 5741 # Check for GNU $ac_path_SED 5742case `"$ac_path_SED" --version 2>&1` in 5743*GNU*) 5744 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5745*) 5746 ac_count=0 5747 $as_echo_n 0123456789 >"conftest.in" 5748 while : 5749 do 5750 cat "conftest.in" "conftest.in" >"conftest.tmp" 5751 mv "conftest.tmp" "conftest.in" 5752 cp "conftest.in" "conftest.nl" 5753 $as_echo '' >> "conftest.nl" 5754 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5756 as_fn_arith $ac_count + 1 && ac_count=$as_val 5757 if test $ac_count -gt ${ac_path_SED_max-0}; then 5758 # Best one so far, save it but keep looking for a better one 5759 ac_cv_path_SED="$ac_path_SED" 5760 ac_path_SED_max=$ac_count 5761 fi 5762 # 10*(2^10) chars as input seems more than enough 5763 test $ac_count -gt 10 && break 5764 done 5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5766esac 5767 5768 $ac_path_SED_found && break 3 5769 done 5770 done 5771 done 5772IFS=$as_save_IFS 5773 if test -z "$ac_cv_path_SED"; then 5774 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5775 fi 5776else 5777 ac_cv_path_SED=$SED 5778fi 5779 5780fi 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5782$as_echo "$ac_cv_path_SED" >&6; } 5783 SED="$ac_cv_path_SED" 5784 rm -f conftest.sed 5785 5786test -z "$SED" && SED=sed 5787Xsed="$SED -e 1s/^X//" 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5800$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5801if ${ac_cv_path_GREP+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 if test -z "$GREP"; then 5805 ac_path_GREP_found=false 5806 # Loop through the user's path and test for each of PROGNAME-LIST 5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5809do 5810 IFS=$as_save_IFS 5811 test -z "$as_dir" && as_dir=. 5812 for ac_prog in grep ggrep; do 5813 for ac_exec_ext in '' $ac_executable_extensions; do 5814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5815 as_fn_executable_p "$ac_path_GREP" || continue 5816# Check for GNU ac_path_GREP and select it if it is found. 5817 # Check for GNU $ac_path_GREP 5818case `"$ac_path_GREP" --version 2>&1` in 5819*GNU*) 5820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5821*) 5822 ac_count=0 5823 $as_echo_n 0123456789 >"conftest.in" 5824 while : 5825 do 5826 cat "conftest.in" "conftest.in" >"conftest.tmp" 5827 mv "conftest.tmp" "conftest.in" 5828 cp "conftest.in" "conftest.nl" 5829 $as_echo 'GREP' >> "conftest.nl" 5830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5832 as_fn_arith $ac_count + 1 && ac_count=$as_val 5833 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5834 # Best one so far, save it but keep looking for a better one 5835 ac_cv_path_GREP="$ac_path_GREP" 5836 ac_path_GREP_max=$ac_count 5837 fi 5838 # 10*(2^10) chars as input seems more than enough 5839 test $ac_count -gt 10 && break 5840 done 5841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5842esac 5843 5844 $ac_path_GREP_found && break 3 5845 done 5846 done 5847 done 5848IFS=$as_save_IFS 5849 if test -z "$ac_cv_path_GREP"; then 5850 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5851 fi 5852else 5853 ac_cv_path_GREP=$GREP 5854fi 5855 5856fi 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5858$as_echo "$ac_cv_path_GREP" >&6; } 5859 GREP="$ac_cv_path_GREP" 5860 5861 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5863$as_echo_n "checking for egrep... " >&6; } 5864if ${ac_cv_path_EGREP+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5868 then ac_cv_path_EGREP="$GREP -E" 5869 else 5870 if test -z "$EGREP"; then 5871 ac_path_EGREP_found=false 5872 # Loop through the user's path and test for each of PROGNAME-LIST 5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5875do 5876 IFS=$as_save_IFS 5877 test -z "$as_dir" && as_dir=. 5878 for ac_prog in egrep; do 5879 for ac_exec_ext in '' $ac_executable_extensions; do 5880 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5881 as_fn_executable_p "$ac_path_EGREP" || continue 5882# Check for GNU ac_path_EGREP and select it if it is found. 5883 # Check for GNU $ac_path_EGREP 5884case `"$ac_path_EGREP" --version 2>&1` in 5885*GNU*) 5886 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5887*) 5888 ac_count=0 5889 $as_echo_n 0123456789 >"conftest.in" 5890 while : 5891 do 5892 cat "conftest.in" "conftest.in" >"conftest.tmp" 5893 mv "conftest.tmp" "conftest.in" 5894 cp "conftest.in" "conftest.nl" 5895 $as_echo 'EGREP' >> "conftest.nl" 5896 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5898 as_fn_arith $ac_count + 1 && ac_count=$as_val 5899 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5900 # Best one so far, save it but keep looking for a better one 5901 ac_cv_path_EGREP="$ac_path_EGREP" 5902 ac_path_EGREP_max=$ac_count 5903 fi 5904 # 10*(2^10) chars as input seems more than enough 5905 test $ac_count -gt 10 && break 5906 done 5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5908esac 5909 5910 $ac_path_EGREP_found && break 3 5911 done 5912 done 5913 done 5914IFS=$as_save_IFS 5915 if test -z "$ac_cv_path_EGREP"; then 5916 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5917 fi 5918else 5919 ac_cv_path_EGREP=$EGREP 5920fi 5921 5922 fi 5923fi 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5925$as_echo "$ac_cv_path_EGREP" >&6; } 5926 EGREP="$ac_cv_path_EGREP" 5927 5928 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5930$as_echo_n "checking for fgrep... " >&6; } 5931if ${ac_cv_path_FGREP+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5935 then ac_cv_path_FGREP="$GREP -F" 5936 else 5937 if test -z "$FGREP"; then 5938 ac_path_FGREP_found=false 5939 # Loop through the user's path and test for each of PROGNAME-LIST 5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5942do 5943 IFS=$as_save_IFS 5944 test -z "$as_dir" && as_dir=. 5945 for ac_prog in fgrep; do 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5948 as_fn_executable_p "$ac_path_FGREP" || continue 5949# Check for GNU ac_path_FGREP and select it if it is found. 5950 # Check for GNU $ac_path_FGREP 5951case `"$ac_path_FGREP" --version 2>&1` in 5952*GNU*) 5953 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5954*) 5955 ac_count=0 5956 $as_echo_n 0123456789 >"conftest.in" 5957 while : 5958 do 5959 cat "conftest.in" "conftest.in" >"conftest.tmp" 5960 mv "conftest.tmp" "conftest.in" 5961 cp "conftest.in" "conftest.nl" 5962 $as_echo 'FGREP' >> "conftest.nl" 5963 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5965 as_fn_arith $ac_count + 1 && ac_count=$as_val 5966 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5967 # Best one so far, save it but keep looking for a better one 5968 ac_cv_path_FGREP="$ac_path_FGREP" 5969 ac_path_FGREP_max=$ac_count 5970 fi 5971 # 10*(2^10) chars as input seems more than enough 5972 test $ac_count -gt 10 && break 5973 done 5974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5975esac 5976 5977 $ac_path_FGREP_found && break 3 5978 done 5979 done 5980 done 5981IFS=$as_save_IFS 5982 if test -z "$ac_cv_path_FGREP"; then 5983 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5984 fi 5985else 5986 ac_cv_path_FGREP=$FGREP 5987fi 5988 5989 fi 5990fi 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5992$as_echo "$ac_cv_path_FGREP" >&6; } 5993 FGREP="$ac_cv_path_FGREP" 5994 5995 5996test -z "$GREP" && GREP=grep 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016# Check whether --with-gnu-ld was given. 6017if test "${with_gnu_ld+set}" = set; then : 6018 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6019else 6020 with_gnu_ld=no 6021fi 6022 6023ac_prog=ld 6024if test yes = "$GCC"; then 6025 # Check if gcc -print-prog-name=ld gives a path. 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6027$as_echo_n "checking for ld used by $CC... " >&6; } 6028 case $host in 6029 *-*-mingw*) 6030 # gcc leaves a trailing carriage return, which upsets mingw 6031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6032 *) 6033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6034 esac 6035 case $ac_prog in 6036 # Accept absolute paths. 6037 [\\/]* | ?:[\\/]*) 6038 re_direlt='/[^/][^/]*/\.\./' 6039 # Canonicalize the pathname of ld 6040 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6041 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6042 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6043 done 6044 test -z "$LD" && LD=$ac_prog 6045 ;; 6046 "") 6047 # If it fails, then pretend we aren't using GCC. 6048 ac_prog=ld 6049 ;; 6050 *) 6051 # If it is relative, then search for the first ld in PATH. 6052 with_gnu_ld=unknown 6053 ;; 6054 esac 6055elif test yes = "$with_gnu_ld"; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6057$as_echo_n "checking for GNU ld... " >&6; } 6058else 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6060$as_echo_n "checking for non-GNU ld... " >&6; } 6061fi 6062if ${lt_cv_path_LD+:} false; then : 6063 $as_echo_n "(cached) " >&6 6064else 6065 if test -z "$LD"; then 6066 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6067 for ac_dir in $PATH; do 6068 IFS=$lt_save_ifs 6069 test -z "$ac_dir" && ac_dir=. 6070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6071 lt_cv_path_LD=$ac_dir/$ac_prog 6072 # Check to see if the program is GNU ld. I'd rather use --version, 6073 # but apparently some variants of GNU ld only accept -v. 6074 # Break only if it was the GNU/non-GNU ld that we prefer. 6075 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6076 *GNU* | *'with BFD'*) 6077 test no != "$with_gnu_ld" && break 6078 ;; 6079 *) 6080 test yes != "$with_gnu_ld" && break 6081 ;; 6082 esac 6083 fi 6084 done 6085 IFS=$lt_save_ifs 6086else 6087 lt_cv_path_LD=$LD # Let the user override the test with a path. 6088fi 6089fi 6090 6091LD=$lt_cv_path_LD 6092if test -n "$LD"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6094$as_echo "$LD" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097$as_echo "no" >&6; } 6098fi 6099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6101$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6102if ${lt_cv_prog_gnu_ld+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6106case `$LD -v 2>&1 </dev/null` in 6107*GNU* | *'with BFD'*) 6108 lt_cv_prog_gnu_ld=yes 6109 ;; 6110*) 6111 lt_cv_prog_gnu_ld=no 6112 ;; 6113esac 6114fi 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6116$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6117with_gnu_ld=$lt_cv_prog_gnu_ld 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6128$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6129if ${lt_cv_path_NM+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -n "$NM"; then 6133 # Let the user override the test. 6134 lt_cv_path_NM=$NM 6135else 6136 lt_nm_to_check=${ac_tool_prefix}nm 6137 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6138 lt_nm_to_check="$lt_nm_to_check nm" 6139 fi 6140 for lt_tmp_nm in $lt_nm_to_check; do 6141 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6142 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6143 IFS=$lt_save_ifs 6144 test -z "$ac_dir" && ac_dir=. 6145 tmp_nm=$ac_dir/$lt_tmp_nm 6146 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6147 # Check to see if the nm accepts a BSD-compat flag. 6148 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6149 # nm: unknown option "B" ignored 6150 # Tru64's nm complains that /dev/null is an invalid object file 6151 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6152 case $build_os in 6153 mingw*) lt_bad_file=conftest.nm/nofile ;; 6154 *) lt_bad_file=/dev/null ;; 6155 esac 6156 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6157 *$lt_bad_file* | *'Invalid file or object type'*) 6158 lt_cv_path_NM="$tmp_nm -B" 6159 break 2 6160 ;; 6161 *) 6162 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6163 */dev/null*) 6164 lt_cv_path_NM="$tmp_nm -p" 6165 break 2 6166 ;; 6167 *) 6168 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6169 continue # so that we can try to find one that supports BSD flags 6170 ;; 6171 esac 6172 ;; 6173 esac 6174 fi 6175 done 6176 IFS=$lt_save_ifs 6177 done 6178 : ${lt_cv_path_NM=no} 6179fi 6180fi 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6182$as_echo "$lt_cv_path_NM" >&6; } 6183if test no != "$lt_cv_path_NM"; then 6184 NM=$lt_cv_path_NM 6185else 6186 # Didn't find any BSD compatible name lister, look for dumpbin. 6187 if test -n "$DUMPBIN"; then : 6188 # Let the user override the test. 6189 else 6190 if test -n "$ac_tool_prefix"; then 6191 for ac_prog in dumpbin "link -dump" 6192 do 6193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6194set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6196$as_echo_n "checking for $ac_word... " >&6; } 6197if ${ac_cv_prog_DUMPBIN+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 if test -n "$DUMPBIN"; then 6201 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6202else 6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204for as_dir in $PATH 6205do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220DUMPBIN=$ac_cv_prog_DUMPBIN 6221if test -n "$DUMPBIN"; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6223$as_echo "$DUMPBIN" >&6; } 6224else 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226$as_echo "no" >&6; } 6227fi 6228 6229 6230 test -n "$DUMPBIN" && break 6231 done 6232fi 6233if test -z "$DUMPBIN"; then 6234 ac_ct_DUMPBIN=$DUMPBIN 6235 for ac_prog in dumpbin "link -dump" 6236do 6237 # Extract the first word of "$ac_prog", so it can be a program name with args. 6238set dummy $ac_prog; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 if test -n "$ac_ct_DUMPBIN"; then 6245 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6265if test -n "$ac_ct_DUMPBIN"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6267$as_echo "$ac_ct_DUMPBIN" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272 6273 6274 test -n "$ac_ct_DUMPBIN" && break 6275done 6276 6277 if test "x$ac_ct_DUMPBIN" = x; then 6278 DUMPBIN=":" 6279 else 6280 case $cross_compiling:$ac_tool_warned in 6281yes:) 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6284ac_tool_warned=yes ;; 6285esac 6286 DUMPBIN=$ac_ct_DUMPBIN 6287 fi 6288fi 6289 6290 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6291 *COFF*) 6292 DUMPBIN="$DUMPBIN -symbols -headers" 6293 ;; 6294 *) 6295 DUMPBIN=: 6296 ;; 6297 esac 6298 fi 6299 6300 if test : != "$DUMPBIN"; then 6301 NM=$DUMPBIN 6302 fi 6303fi 6304test -z "$NM" && NM=nm 6305 6306 6307 6308 6309 6310 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6312$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6313if ${lt_cv_nm_interface+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 lt_cv_nm_interface="BSD nm" 6317 echo "int some_variable = 0;" > conftest.$ac_ext 6318 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6319 (eval "$ac_compile" 2>conftest.err) 6320 cat conftest.err >&5 6321 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6322 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6323 cat conftest.err >&5 6324 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6325 cat conftest.out >&5 6326 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6327 lt_cv_nm_interface="MS dumpbin" 6328 fi 6329 rm -f conftest* 6330fi 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6332$as_echo "$lt_cv_nm_interface" >&6; } 6333 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6335$as_echo_n "checking whether ln -s works... " >&6; } 6336LN_S=$as_ln_s 6337if test "$LN_S" = "ln -s"; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6339$as_echo "yes" >&6; } 6340else 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6342$as_echo "no, using $LN_S" >&6; } 6343fi 6344 6345# find the maximum length of command line arguments 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6347$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6348if ${lt_cv_sys_max_cmd_len+:} false; then : 6349 $as_echo_n "(cached) " >&6 6350else 6351 i=0 6352 teststring=ABCD 6353 6354 case $build_os in 6355 msdosdjgpp*) 6356 # On DJGPP, this test can blow up pretty badly due to problems in libc 6357 # (any single argument exceeding 2000 bytes causes a buffer overrun 6358 # during glob expansion). Even if it were fixed, the result of this 6359 # check would be larger than it should be. 6360 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6361 ;; 6362 6363 gnu*) 6364 # Under GNU Hurd, this test is not required because there is 6365 # no limit to the length of command line arguments. 6366 # Libtool will interpret -1 as no limit whatsoever 6367 lt_cv_sys_max_cmd_len=-1; 6368 ;; 6369 6370 cygwin* | mingw* | cegcc*) 6371 # On Win9x/ME, this test blows up -- it succeeds, but takes 6372 # about 5 minutes as the teststring grows exponentially. 6373 # Worse, since 9x/ME are not pre-emptively multitasking, 6374 # you end up with a "frozen" computer, even though with patience 6375 # the test eventually succeeds (with a max line length of 256k). 6376 # Instead, let's just punt: use the minimum linelength reported by 6377 # all of the supported platforms: 8192 (on NT/2K/XP). 6378 lt_cv_sys_max_cmd_len=8192; 6379 ;; 6380 6381 mint*) 6382 # On MiNT this can take a long time and run out of memory. 6383 lt_cv_sys_max_cmd_len=8192; 6384 ;; 6385 6386 amigaos*) 6387 # On AmigaOS with pdksh, this test takes hours, literally. 6388 # So we just punt and use a minimum line length of 8192. 6389 lt_cv_sys_max_cmd_len=8192; 6390 ;; 6391 6392 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6393 # This has been around since 386BSD, at least. Likely further. 6394 if test -x /sbin/sysctl; then 6395 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6396 elif test -x /usr/sbin/sysctl; then 6397 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6398 else 6399 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6400 fi 6401 # And add a safety zone 6402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6404 ;; 6405 6406 interix*) 6407 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6408 lt_cv_sys_max_cmd_len=196608 6409 ;; 6410 6411 os2*) 6412 # The test takes a long time on OS/2. 6413 lt_cv_sys_max_cmd_len=8192 6414 ;; 6415 6416 osf*) 6417 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6418 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6419 # nice to cause kernel panics so lets avoid the loop below. 6420 # First set a reasonable default. 6421 lt_cv_sys_max_cmd_len=16384 6422 # 6423 if test -x /sbin/sysconfig; then 6424 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6425 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6426 esac 6427 fi 6428 ;; 6429 sco3.2v5*) 6430 lt_cv_sys_max_cmd_len=102400 6431 ;; 6432 sysv5* | sco5v6* | sysv4.2uw2*) 6433 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6434 if test -n "$kargmax"; then 6435 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6436 else 6437 lt_cv_sys_max_cmd_len=32768 6438 fi 6439 ;; 6440 *) 6441 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6442 if test -n "$lt_cv_sys_max_cmd_len" && \ 6443 test undefined != "$lt_cv_sys_max_cmd_len"; then 6444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6446 else 6447 # Make teststring a little bigger before we do anything with it. 6448 # a 1K string should be a reasonable start. 6449 for i in 1 2 3 4 5 6 7 8; do 6450 teststring=$teststring$teststring 6451 done 6452 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6453 # If test is not a shell built-in, we'll probably end up computing a 6454 # maximum length that is only half of the actual maximum length, but 6455 # we can't tell. 6456 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6457 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6458 test 17 != "$i" # 1/2 MB should be enough 6459 do 6460 i=`expr $i + 1` 6461 teststring=$teststring$teststring 6462 done 6463 # Only check the string length outside the loop. 6464 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6465 teststring= 6466 # Add a significant safety factor because C++ compilers can tack on 6467 # massive amounts of additional arguments before passing them to the 6468 # linker. It appears as though 1/2 is a usable value. 6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6470 fi 6471 ;; 6472 esac 6473 6474fi 6475 6476if test -n "$lt_cv_sys_max_cmd_len"; then 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6478$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6479else 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6481$as_echo "none" >&6; } 6482fi 6483max_cmd_len=$lt_cv_sys_max_cmd_len 6484 6485 6486 6487 6488 6489 6490: ${CP="cp -f"} 6491: ${MV="mv -f"} 6492: ${RM="rm -f"} 6493 6494if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6495 lt_unset=unset 6496else 6497 lt_unset=false 6498fi 6499 6500 6501 6502 6503 6504# test EBCDIC or ASCII 6505case `echo X|tr X '\101'` in 6506 A) # ASCII based system 6507 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6508 lt_SP2NL='tr \040 \012' 6509 lt_NL2SP='tr \015\012 \040\040' 6510 ;; 6511 *) # EBCDIC based system 6512 lt_SP2NL='tr \100 \n' 6513 lt_NL2SP='tr \r\n \100\100' 6514 ;; 6515esac 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6526$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6527if ${lt_cv_to_host_file_cmd+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 case $host in 6531 *-*-mingw* ) 6532 case $build in 6533 *-*-mingw* ) # actually msys 6534 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6535 ;; 6536 *-*-cygwin* ) 6537 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6538 ;; 6539 * ) # otherwise, assume *nix 6540 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6541 ;; 6542 esac 6543 ;; 6544 *-*-cygwin* ) 6545 case $build in 6546 *-*-mingw* ) # actually msys 6547 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6548 ;; 6549 *-*-cygwin* ) 6550 lt_cv_to_host_file_cmd=func_convert_file_noop 6551 ;; 6552 * ) # otherwise, assume *nix 6553 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6554 ;; 6555 esac 6556 ;; 6557 * ) # unhandled hosts (and "normal" native builds) 6558 lt_cv_to_host_file_cmd=func_convert_file_noop 6559 ;; 6560esac 6561 6562fi 6563 6564to_host_file_cmd=$lt_cv_to_host_file_cmd 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6566$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6567 6568 6569 6570 6571 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6573$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6574if ${lt_cv_to_tool_file_cmd+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 #assume ordinary cross tools, or native build. 6578lt_cv_to_tool_file_cmd=func_convert_file_noop 6579case $host in 6580 *-*-mingw* ) 6581 case $build in 6582 *-*-mingw* ) # actually msys 6583 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6584 ;; 6585 esac 6586 ;; 6587esac 6588 6589fi 6590 6591to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6593$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6594 6595 6596 6597 6598 6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6600$as_echo_n "checking for $LD option to reload object files... " >&6; } 6601if ${lt_cv_ld_reload_flag+:} false; then : 6602 $as_echo_n "(cached) " >&6 6603else 6604 lt_cv_ld_reload_flag='-r' 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6607$as_echo "$lt_cv_ld_reload_flag" >&6; } 6608reload_flag=$lt_cv_ld_reload_flag 6609case $reload_flag in 6610"" | " "*) ;; 6611*) reload_flag=" $reload_flag" ;; 6612esac 6613reload_cmds='$LD$reload_flag -o $output$reload_objs' 6614case $host_os in 6615 cygwin* | mingw* | pw32* | cegcc*) 6616 if test yes != "$GCC"; then 6617 reload_cmds=false 6618 fi 6619 ;; 6620 darwin*) 6621 if test yes = "$GCC"; then 6622 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6623 else 6624 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6625 fi 6626 ;; 6627esac 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637if test -n "$ac_tool_prefix"; then 6638 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6639set dummy ${ac_tool_prefix}objdump; ac_word=$2 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641$as_echo_n "checking for $ac_word... " >&6; } 6642if ${ac_cv_prog_OBJDUMP+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 if test -n "$OBJDUMP"; then 6646 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6647else 6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649for as_dir in $PATH 6650do 6651 IFS=$as_save_IFS 6652 test -z "$as_dir" && as_dir=. 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6655 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660 done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665OBJDUMP=$ac_cv_prog_OBJDUMP 6666if test -n "$OBJDUMP"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6668$as_echo "$OBJDUMP" >&6; } 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671$as_echo "no" >&6; } 6672fi 6673 6674 6675fi 6676if test -z "$ac_cv_prog_OBJDUMP"; then 6677 ac_ct_OBJDUMP=$OBJDUMP 6678 # Extract the first word of "objdump", so it can be a program name with args. 6679set dummy objdump; ac_word=$2 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681$as_echo_n "checking for $ac_word... " >&6; } 6682if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 if test -n "$ac_ct_OBJDUMP"; then 6686 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6695 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700 done 6701IFS=$as_save_IFS 6702 6703fi 6704fi 6705ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6706if test -n "$ac_ct_OBJDUMP"; then 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6708$as_echo "$ac_ct_OBJDUMP" >&6; } 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6711$as_echo "no" >&6; } 6712fi 6713 6714 if test "x$ac_ct_OBJDUMP" = x; then 6715 OBJDUMP="false" 6716 else 6717 case $cross_compiling:$ac_tool_warned in 6718yes:) 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6721ac_tool_warned=yes ;; 6722esac 6723 OBJDUMP=$ac_ct_OBJDUMP 6724 fi 6725else 6726 OBJDUMP="$ac_cv_prog_OBJDUMP" 6727fi 6728 6729test -z "$OBJDUMP" && OBJDUMP=objdump 6730 6731 6732 6733 6734 6735 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6737$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6738if ${lt_cv_deplibs_check_method+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 lt_cv_file_magic_cmd='$MAGIC_CMD' 6742lt_cv_file_magic_test_file= 6743lt_cv_deplibs_check_method='unknown' 6744# Need to set the preceding variable on all platforms that support 6745# interlibrary dependencies. 6746# 'none' -- dependencies not supported. 6747# 'unknown' -- same as none, but documents that we really don't know. 6748# 'pass_all' -- all dependencies passed with no checks. 6749# 'test_compile' -- check by making test program. 6750# 'file_magic [[regex]]' -- check by looking for files in library path 6751# that responds to the $file_magic_cmd with a given extended regex. 6752# If you have 'file' or equivalent on your system and you're not sure 6753# whether 'pass_all' will *always* work, you probably want this one. 6754 6755case $host_os in 6756aix[4-9]*) 6757 lt_cv_deplibs_check_method=pass_all 6758 ;; 6759 6760beos*) 6761 lt_cv_deplibs_check_method=pass_all 6762 ;; 6763 6764bsdi[45]*) 6765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6766 lt_cv_file_magic_cmd='/usr/bin/file -L' 6767 lt_cv_file_magic_test_file=/shlib/libc.so 6768 ;; 6769 6770cygwin*) 6771 # func_win32_libid is a shell function defined in ltmain.sh 6772 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6773 lt_cv_file_magic_cmd='func_win32_libid' 6774 ;; 6775 6776mingw* | pw32*) 6777 # Base MSYS/MinGW do not provide the 'file' command needed by 6778 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6779 # unless we find 'file', for example because we are cross-compiling. 6780 if ( file / ) >/dev/null 2>&1; then 6781 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6782 lt_cv_file_magic_cmd='func_win32_libid' 6783 else 6784 # Keep this pattern in sync with the one in func_win32_libid. 6785 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6786 lt_cv_file_magic_cmd='$OBJDUMP -f' 6787 fi 6788 ;; 6789 6790cegcc*) 6791 # use the weaker test based on 'objdump'. See mingw*. 6792 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6793 lt_cv_file_magic_cmd='$OBJDUMP -f' 6794 ;; 6795 6796darwin* | rhapsody*) 6797 lt_cv_deplibs_check_method=pass_all 6798 ;; 6799 6800freebsd* | dragonfly*) 6801 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6802 case $host_cpu in 6803 i*86 ) 6804 # Not sure whether the presence of OpenBSD here was a mistake. 6805 # Let's accept both of them until this is cleared up. 6806 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6807 lt_cv_file_magic_cmd=/usr/bin/file 6808 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6809 ;; 6810 esac 6811 else 6812 lt_cv_deplibs_check_method=pass_all 6813 fi 6814 ;; 6815 6816haiku*) 6817 lt_cv_deplibs_check_method=pass_all 6818 ;; 6819 6820hpux10.20* | hpux11*) 6821 lt_cv_file_magic_cmd=/usr/bin/file 6822 case $host_cpu in 6823 ia64*) 6824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6825 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6826 ;; 6827 hppa*64*) 6828 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]' 6829 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6830 ;; 6831 *) 6832 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6833 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6834 ;; 6835 esac 6836 ;; 6837 6838interix[3-9]*) 6839 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6841 ;; 6842 6843irix5* | irix6* | nonstopux*) 6844 case $LD in 6845 *-32|*"-32 ") libmagic=32-bit;; 6846 *-n32|*"-n32 ") libmagic=N32;; 6847 *-64|*"-64 ") libmagic=64-bit;; 6848 *) libmagic=never-match;; 6849 esac 6850 lt_cv_deplibs_check_method=pass_all 6851 ;; 6852 6853# This must be glibc/ELF. 6854linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6855 lt_cv_deplibs_check_method=pass_all 6856 ;; 6857 6858netbsd*) 6859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6861 else 6862 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6863 fi 6864 ;; 6865 6866newos6*) 6867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6868 lt_cv_file_magic_cmd=/usr/bin/file 6869 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6870 ;; 6871 6872*nto* | *qnx*) 6873 lt_cv_deplibs_check_method=pass_all 6874 ;; 6875 6876openbsd* | bitrig*) 6877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6879 else 6880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6881 fi 6882 ;; 6883 6884osf3* | osf4* | osf5*) 6885 lt_cv_deplibs_check_method=pass_all 6886 ;; 6887 6888rdos*) 6889 lt_cv_deplibs_check_method=pass_all 6890 ;; 6891 6892solaris*) 6893 lt_cv_deplibs_check_method=pass_all 6894 ;; 6895 6896sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6897 lt_cv_deplibs_check_method=pass_all 6898 ;; 6899 6900sysv4 | sysv4.3*) 6901 case $host_vendor in 6902 motorola) 6903 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]' 6904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6905 ;; 6906 ncr) 6907 lt_cv_deplibs_check_method=pass_all 6908 ;; 6909 sequent) 6910 lt_cv_file_magic_cmd='/bin/file' 6911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6912 ;; 6913 sni) 6914 lt_cv_file_magic_cmd='/bin/file' 6915 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6916 lt_cv_file_magic_test_file=/lib/libc.so 6917 ;; 6918 siemens) 6919 lt_cv_deplibs_check_method=pass_all 6920 ;; 6921 pc) 6922 lt_cv_deplibs_check_method=pass_all 6923 ;; 6924 esac 6925 ;; 6926 6927tpf*) 6928 lt_cv_deplibs_check_method=pass_all 6929 ;; 6930os2*) 6931 lt_cv_deplibs_check_method=pass_all 6932 ;; 6933esac 6934 6935fi 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6937$as_echo "$lt_cv_deplibs_check_method" >&6; } 6938 6939file_magic_glob= 6940want_nocaseglob=no 6941if test "$build" = "$host"; then 6942 case $host_os in 6943 mingw* | pw32*) 6944 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6945 want_nocaseglob=yes 6946 else 6947 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6948 fi 6949 ;; 6950 esac 6951fi 6952 6953file_magic_cmd=$lt_cv_file_magic_cmd 6954deplibs_check_method=$lt_cv_deplibs_check_method 6955test -z "$deplibs_check_method" && deplibs_check_method=unknown 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978if test -n "$ac_tool_prefix"; then 6979 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6980set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6982$as_echo_n "checking for $ac_word... " >&6; } 6983if ${ac_cv_prog_DLLTOOL+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 if test -n "$DLLTOOL"; then 6987 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6988else 6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6990for as_dir in $PATH 6991do 6992 IFS=$as_save_IFS 6993 test -z "$as_dir" && as_dir=. 6994 for ac_exec_ext in '' $ac_executable_extensions; do 6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6996 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6998 break 2 6999 fi 7000done 7001 done 7002IFS=$as_save_IFS 7003 7004fi 7005fi 7006DLLTOOL=$ac_cv_prog_DLLTOOL 7007if test -n "$DLLTOOL"; then 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7009$as_echo "$DLLTOOL" >&6; } 7010else 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7012$as_echo "no" >&6; } 7013fi 7014 7015 7016fi 7017if test -z "$ac_cv_prog_DLLTOOL"; then 7018 ac_ct_DLLTOOL=$DLLTOOL 7019 # Extract the first word of "dlltool", so it can be a program name with args. 7020set dummy dlltool; ac_word=$2 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022$as_echo_n "checking for $ac_word... " >&6; } 7023if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025else 7026 if test -n "$ac_ct_DLLTOOL"; then 7027 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7028else 7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7030for as_dir in $PATH 7031do 7032 IFS=$as_save_IFS 7033 test -z "$as_dir" && as_dir=. 7034 for ac_exec_ext in '' $ac_executable_extensions; do 7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7036 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7038 break 2 7039 fi 7040done 7041 done 7042IFS=$as_save_IFS 7043 7044fi 7045fi 7046ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7047if test -n "$ac_ct_DLLTOOL"; then 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7049$as_echo "$ac_ct_DLLTOOL" >&6; } 7050else 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7052$as_echo "no" >&6; } 7053fi 7054 7055 if test "x$ac_ct_DLLTOOL" = x; then 7056 DLLTOOL="false" 7057 else 7058 case $cross_compiling:$ac_tool_warned in 7059yes:) 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7062ac_tool_warned=yes ;; 7063esac 7064 DLLTOOL=$ac_ct_DLLTOOL 7065 fi 7066else 7067 DLLTOOL="$ac_cv_prog_DLLTOOL" 7068fi 7069 7070test -z "$DLLTOOL" && DLLTOOL=dlltool 7071 7072 7073 7074 7075 7076 7077 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7079$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7080if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 lt_cv_sharedlib_from_linklib_cmd='unknown' 7084 7085case $host_os in 7086cygwin* | mingw* | pw32* | cegcc*) 7087 # two different shell functions defined in ltmain.sh; 7088 # decide which one to use based on capabilities of $DLLTOOL 7089 case `$DLLTOOL --help 2>&1` in 7090 *--identify-strict*) 7091 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7092 ;; 7093 *) 7094 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7095 ;; 7096 esac 7097 ;; 7098*) 7099 # fallback: assume linklib IS sharedlib 7100 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7101 ;; 7102esac 7103 7104fi 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7106$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7107sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7108test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7109 7110 7111 7112 7113 7114 7115 7116if test -n "$ac_tool_prefix"; then 7117 for ac_prog in ar 7118 do 7119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7120set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7122$as_echo_n "checking for $ac_word... " >&6; } 7123if ${ac_cv_prog_AR+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 if test -n "$AR"; then 7127 ac_cv_prog_AR="$AR" # Let the user override the test. 7128else 7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 test -z "$as_dir" && as_dir=. 7134 for ac_exec_ext in '' $ac_executable_extensions; do 7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7136 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7138 break 2 7139 fi 7140done 7141 done 7142IFS=$as_save_IFS 7143 7144fi 7145fi 7146AR=$ac_cv_prog_AR 7147if test -n "$AR"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7149$as_echo "$AR" >&6; } 7150else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152$as_echo "no" >&6; } 7153fi 7154 7155 7156 test -n "$AR" && break 7157 done 7158fi 7159if test -z "$AR"; then 7160 ac_ct_AR=$AR 7161 for ac_prog in ar 7162do 7163 # Extract the first word of "$ac_prog", so it can be a program name with args. 7164set dummy $ac_prog; ac_word=$2 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7166$as_echo_n "checking for $ac_word... " >&6; } 7167if ${ac_cv_prog_ac_ct_AR+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 if test -n "$ac_ct_AR"; then 7171 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7172else 7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174for as_dir in $PATH 7175do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7180 ac_cv_prog_ac_ct_AR="$ac_prog" 7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184done 7185 done 7186IFS=$as_save_IFS 7187 7188fi 7189fi 7190ac_ct_AR=$ac_cv_prog_ac_ct_AR 7191if test -n "$ac_ct_AR"; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7193$as_echo "$ac_ct_AR" >&6; } 7194else 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7196$as_echo "no" >&6; } 7197fi 7198 7199 7200 test -n "$ac_ct_AR" && break 7201done 7202 7203 if test "x$ac_ct_AR" = x; then 7204 AR="false" 7205 else 7206 case $cross_compiling:$ac_tool_warned in 7207yes:) 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7210ac_tool_warned=yes ;; 7211esac 7212 AR=$ac_ct_AR 7213 fi 7214fi 7215 7216: ${AR=ar} 7217: ${AR_FLAGS=cru} 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7230$as_echo_n "checking for archiver @FILE support... " >&6; } 7231if ${lt_cv_ar_at_file+:} false; then : 7232 $as_echo_n "(cached) " >&6 7233else 7234 lt_cv_ar_at_file=no 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237 7238int 7239main () 7240{ 7241 7242 ; 7243 return 0; 7244} 7245_ACEOF 7246if ac_fn_cxx_try_compile "$LINENO"; then : 7247 echo conftest.$ac_objext > conftest.lst 7248 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7250 (eval $lt_ar_try) 2>&5 7251 ac_status=$? 7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7253 test $ac_status = 0; } 7254 if test 0 -eq "$ac_status"; then 7255 # Ensure the archiver fails upon bogus file names. 7256 rm -f conftest.$ac_objext libconftest.a 7257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7258 (eval $lt_ar_try) 2>&5 7259 ac_status=$? 7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7261 test $ac_status = 0; } 7262 if test 0 -ne "$ac_status"; then 7263 lt_cv_ar_at_file=@ 7264 fi 7265 fi 7266 rm -f conftest.* libconftest.a 7267 7268fi 7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7270 7271fi 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7273$as_echo "$lt_cv_ar_at_file" >&6; } 7274 7275if test no = "$lt_cv_ar_at_file"; then 7276 archiver_list_spec= 7277else 7278 archiver_list_spec=$lt_cv_ar_at_file 7279fi 7280 7281 7282 7283 7284 7285 7286 7287if test -n "$ac_tool_prefix"; then 7288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7289set dummy ${ac_tool_prefix}strip; ac_word=$2 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7291$as_echo_n "checking for $ac_word... " >&6; } 7292if ${ac_cv_prog_STRIP+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 if test -n "$STRIP"; then 7296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7297else 7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7299for as_dir in $PATH 7300do 7301 IFS=$as_save_IFS 7302 test -z "$as_dir" && as_dir=. 7303 for ac_exec_ext in '' $ac_executable_extensions; do 7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7305 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7307 break 2 7308 fi 7309done 7310 done 7311IFS=$as_save_IFS 7312 7313fi 7314fi 7315STRIP=$ac_cv_prog_STRIP 7316if test -n "$STRIP"; then 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7318$as_echo "$STRIP" >&6; } 7319else 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7321$as_echo "no" >&6; } 7322fi 7323 7324 7325fi 7326if test -z "$ac_cv_prog_STRIP"; then 7327 ac_ct_STRIP=$STRIP 7328 # Extract the first word of "strip", so it can be a program name with args. 7329set dummy strip; ac_word=$2 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7331$as_echo_n "checking for $ac_word... " >&6; } 7332if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 if test -n "$ac_ct_STRIP"; then 7336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7337else 7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7339for as_dir in $PATH 7340do 7341 IFS=$as_save_IFS 7342 test -z "$as_dir" && as_dir=. 7343 for ac_exec_ext in '' $ac_executable_extensions; do 7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7345 ac_cv_prog_ac_ct_STRIP="strip" 7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7347 break 2 7348 fi 7349done 7350 done 7351IFS=$as_save_IFS 7352 7353fi 7354fi 7355ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7356if test -n "$ac_ct_STRIP"; then 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7358$as_echo "$ac_ct_STRIP" >&6; } 7359else 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7361$as_echo "no" >&6; } 7362fi 7363 7364 if test "x$ac_ct_STRIP" = x; then 7365 STRIP=":" 7366 else 7367 case $cross_compiling:$ac_tool_warned in 7368yes:) 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7371ac_tool_warned=yes ;; 7372esac 7373 STRIP=$ac_ct_STRIP 7374 fi 7375else 7376 STRIP="$ac_cv_prog_STRIP" 7377fi 7378 7379test -z "$STRIP" && STRIP=: 7380 7381 7382 7383 7384 7385 7386if test -n "$ac_tool_prefix"; then 7387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7388set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7390$as_echo_n "checking for $ac_word... " >&6; } 7391if ${ac_cv_prog_RANLIB+:} false; then : 7392 $as_echo_n "(cached) " >&6 7393else 7394 if test -n "$RANLIB"; then 7395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7396else 7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7398for as_dir in $PATH 7399do 7400 IFS=$as_save_IFS 7401 test -z "$as_dir" && as_dir=. 7402 for ac_exec_ext in '' $ac_executable_extensions; do 7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7406 break 2 7407 fi 7408done 7409 done 7410IFS=$as_save_IFS 7411 7412fi 7413fi 7414RANLIB=$ac_cv_prog_RANLIB 7415if test -n "$RANLIB"; then 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7417$as_echo "$RANLIB" >&6; } 7418else 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7420$as_echo "no" >&6; } 7421fi 7422 7423 7424fi 7425if test -z "$ac_cv_prog_RANLIB"; then 7426 ac_ct_RANLIB=$RANLIB 7427 # Extract the first word of "ranlib", so it can be a program name with args. 7428set dummy ranlib; ac_word=$2 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7430$as_echo_n "checking for $ac_word... " >&6; } 7431if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 if test -n "$ac_ct_RANLIB"; then 7435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7436else 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438for as_dir in $PATH 7439do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7444 ac_cv_prog_ac_ct_RANLIB="ranlib" 7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448done 7449 done 7450IFS=$as_save_IFS 7451 7452fi 7453fi 7454ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7455if test -n "$ac_ct_RANLIB"; then 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7457$as_echo "$ac_ct_RANLIB" >&6; } 7458else 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7460$as_echo "no" >&6; } 7461fi 7462 7463 if test "x$ac_ct_RANLIB" = x; then 7464 RANLIB=":" 7465 else 7466 case $cross_compiling:$ac_tool_warned in 7467yes:) 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7470ac_tool_warned=yes ;; 7471esac 7472 RANLIB=$ac_ct_RANLIB 7473 fi 7474else 7475 RANLIB="$ac_cv_prog_RANLIB" 7476fi 7477 7478test -z "$RANLIB" && RANLIB=: 7479 7480 7481 7482 7483 7484 7485# Determine commands to create old-style static archives. 7486old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7487old_postinstall_cmds='chmod 644 $oldlib' 7488old_postuninstall_cmds= 7489 7490if test -n "$RANLIB"; then 7491 case $host_os in 7492 bitrig* | openbsd*) 7493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7494 ;; 7495 *) 7496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7497 ;; 7498 esac 7499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7500fi 7501 7502case $host_os in 7503 darwin*) 7504 lock_old_archive_extraction=yes ;; 7505 *) 7506 lock_old_archive_extraction=no ;; 7507esac 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547# If no C compiler was specified, use CC. 7548LTCC=${LTCC-"$CC"} 7549 7550# If no C compiler flags were specified, use CFLAGS. 7551LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7552 7553# Allow CC to be a program name with arguments. 7554compiler=$CC 7555 7556 7557# Check for command to grab the raw symbol name followed by C symbol from nm. 7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7559$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7560if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7561 $as_echo_n "(cached) " >&6 7562else 7563 7564# These are sane defaults that work on at least a few old systems. 7565# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7566 7567# Character class describing NM global symbol codes. 7568symcode='[BCDEGRST]' 7569 7570# Regexp to match symbols that can be accessed directly from C. 7571sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7572 7573# Define system-specific variables. 7574case $host_os in 7575aix*) 7576 symcode='[BCDT]' 7577 ;; 7578cygwin* | mingw* | pw32* | cegcc*) 7579 symcode='[ABCDGISTW]' 7580 ;; 7581hpux*) 7582 if test ia64 = "$host_cpu"; then 7583 symcode='[ABCDEGRST]' 7584 fi 7585 ;; 7586irix* | nonstopux*) 7587 symcode='[BCDEGRST]' 7588 ;; 7589osf*) 7590 symcode='[BCDEGQRST]' 7591 ;; 7592solaris*) 7593 symcode='[BDRT]' 7594 ;; 7595sco3.2v5*) 7596 symcode='[DT]' 7597 ;; 7598sysv4.2uw2*) 7599 symcode='[DT]' 7600 ;; 7601sysv5* | sco5v6* | unixware* | OpenUNIX*) 7602 symcode='[ABDT]' 7603 ;; 7604sysv4) 7605 symcode='[DFNSTU]' 7606 ;; 7607esac 7608 7609# If we're using GNU nm, then use its standard symbol codes. 7610case `$NM -V 2>&1` in 7611*GNU* | *'with BFD'*) 7612 symcode='[ABCDGIRSTW]' ;; 7613esac 7614 7615if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7616 # Gets list of data symbols to import. 7617 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7618 # Adjust the below global symbol transforms to fixup imported variables. 7619 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7620 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7621 lt_c_name_lib_hook="\ 7622 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7623 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7624else 7625 # Disable hooks by default. 7626 lt_cv_sys_global_symbol_to_import= 7627 lt_cdecl_hook= 7628 lt_c_name_hook= 7629 lt_c_name_lib_hook= 7630fi 7631 7632# Transform an extracted symbol line into a proper C declaration. 7633# Some systems (esp. on ia64) link data and code symbols differently, 7634# so use this general approach. 7635lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7636$lt_cdecl_hook\ 7637" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7638" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7639 7640# Transform an extracted symbol line into symbol name and symbol address 7641lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7642$lt_c_name_hook\ 7643" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7644" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7645 7646# Transform an extracted symbol line into symbol name with lib prefix and 7647# symbol address. 7648lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7649$lt_c_name_lib_hook\ 7650" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7651" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7652" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7653 7654# Handle CRLF in mingw tool chain 7655opt_cr= 7656case $build_os in 7657mingw*) 7658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7659 ;; 7660esac 7661 7662# Try without a prefix underscore, then with it. 7663for ac_symprfx in "" "_"; do 7664 7665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7666 symxfrm="\\1 $ac_symprfx\\2 \\2" 7667 7668 # Write the raw and C identifiers. 7669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7670 # Fake it for dumpbin and say T for any non-static function, 7671 # D for any global variable and I for any imported variable. 7672 # Also find C++ and __fastcall symbols from MSVC++, 7673 # which start with @ or ?. 7674 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7675" {last_section=section; section=\$ 3};"\ 7676" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7677" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7678" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7679" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7680" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7681" \$ 0!~/External *\|/{next};"\ 7682" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7683" {if(hide[section]) next};"\ 7684" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7685" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7686" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7687" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7688" ' prfx=^$ac_symprfx" 7689 else 7690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7691 fi 7692 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7693 7694 # Check to see that the pipe works correctly. 7695 pipe_works=no 7696 7697 rm -f conftest* 7698 cat > conftest.$ac_ext <<_LT_EOF 7699#ifdef __cplusplus 7700extern "C" { 7701#endif 7702char nm_test_var; 7703void nm_test_func(void); 7704void nm_test_func(void){} 7705#ifdef __cplusplus 7706} 7707#endif 7708int main(){nm_test_var='a';nm_test_func();return(0);} 7709_LT_EOF 7710 7711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7712 (eval $ac_compile) 2>&5 7713 ac_status=$? 7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7715 test $ac_status = 0; }; then 7716 # Now try to grab the symbols. 7717 nlist=conftest.nm 7718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7719 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7720 ac_status=$? 7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7722 test $ac_status = 0; } && test -s "$nlist"; then 7723 # Try sorting and uniquifying the output. 7724 if sort "$nlist" | uniq > "$nlist"T; then 7725 mv -f "$nlist"T "$nlist" 7726 else 7727 rm -f "$nlist"T 7728 fi 7729 7730 # Make sure that we snagged all the symbols we need. 7731 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7732 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7733 cat <<_LT_EOF > conftest.$ac_ext 7734/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7735#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7736/* DATA imports from DLLs on WIN32 can't be const, because runtime 7737 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7738# define LT_DLSYM_CONST 7739#elif defined __osf__ 7740/* This system does not cope well with relocations in const data. */ 7741# define LT_DLSYM_CONST 7742#else 7743# define LT_DLSYM_CONST const 7744#endif 7745 7746#ifdef __cplusplus 7747extern "C" { 7748#endif 7749 7750_LT_EOF 7751 # Now generate the symbol file. 7752 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7753 7754 cat <<_LT_EOF >> conftest.$ac_ext 7755 7756/* The mapping between symbol names and symbols. */ 7757LT_DLSYM_CONST struct { 7758 const char *name; 7759 void *address; 7760} 7761lt__PROGRAM__LTX_preloaded_symbols[] = 7762{ 7763 { "@PROGRAM@", (void *) 0 }, 7764_LT_EOF 7765 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7766 cat <<\_LT_EOF >> conftest.$ac_ext 7767 {0, (void *) 0} 7768}; 7769 7770/* This works around a problem in FreeBSD linker */ 7771#ifdef FREEBSD_WORKAROUND 7772static const void *lt_preloaded_setup() { 7773 return lt__PROGRAM__LTX_preloaded_symbols; 7774} 7775#endif 7776 7777#ifdef __cplusplus 7778} 7779#endif 7780_LT_EOF 7781 # Now try linking the two files. 7782 mv conftest.$ac_objext conftstm.$ac_objext 7783 lt_globsym_save_LIBS=$LIBS 7784 lt_globsym_save_CFLAGS=$CFLAGS 7785 LIBS=conftstm.$ac_objext 7786 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7788 (eval $ac_link) 2>&5 7789 ac_status=$? 7790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7791 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7792 pipe_works=yes 7793 fi 7794 LIBS=$lt_globsym_save_LIBS 7795 CFLAGS=$lt_globsym_save_CFLAGS 7796 else 7797 echo "cannot find nm_test_func in $nlist" >&5 7798 fi 7799 else 7800 echo "cannot find nm_test_var in $nlist" >&5 7801 fi 7802 else 7803 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7804 fi 7805 else 7806 echo "$progname: failed program was:" >&5 7807 cat conftest.$ac_ext >&5 7808 fi 7809 rm -rf conftest* conftst* 7810 7811 # Do not use the global_symbol_pipe unless it works. 7812 if test yes = "$pipe_works"; then 7813 break 7814 else 7815 lt_cv_sys_global_symbol_pipe= 7816 fi 7817done 7818 7819fi 7820 7821if test -z "$lt_cv_sys_global_symbol_pipe"; then 7822 lt_cv_sys_global_symbol_to_cdecl= 7823fi 7824if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7826$as_echo "failed" >&6; } 7827else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7829$as_echo "ok" >&6; } 7830fi 7831 7832# Response file support. 7833if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7834 nm_file_list_spec='@' 7835elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7836 nm_file_list_spec='@' 7837fi 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7876$as_echo_n "checking for sysroot... " >&6; } 7877 7878# Check whether --with-sysroot was given. 7879if test "${with_sysroot+set}" = set; then : 7880 withval=$with_sysroot; 7881else 7882 with_sysroot=no 7883fi 7884 7885 7886lt_sysroot= 7887case $with_sysroot in #( 7888 yes) 7889 if test yes = "$GCC"; then 7890 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7891 fi 7892 ;; #( 7893 /*) 7894 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7895 ;; #( 7896 no|'') 7897 ;; #( 7898 *) 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7900$as_echo "$with_sysroot" >&6; } 7901 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7902 ;; 7903esac 7904 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7906$as_echo "${lt_sysroot:-no}" >&6; } 7907 7908 7909 7910 7911 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7913$as_echo_n "checking for a working dd... " >&6; } 7914if ${ac_cv_path_lt_DD+:} false; then : 7915 $as_echo_n "(cached) " >&6 7916else 7917 printf 0123456789abcdef0123456789abcdef >conftest.i 7918cat conftest.i conftest.i >conftest2.i 7919: ${lt_DD:=$DD} 7920if test -z "$lt_DD"; then 7921 ac_path_lt_DD_found=false 7922 # Loop through the user's path and test for each of PROGNAME-LIST 7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7924for as_dir in $PATH 7925do 7926 IFS=$as_save_IFS 7927 test -z "$as_dir" && as_dir=. 7928 for ac_prog in dd; do 7929 for ac_exec_ext in '' $ac_executable_extensions; do 7930 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7931 as_fn_executable_p "$ac_path_lt_DD" || continue 7932if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7933 cmp -s conftest.i conftest.out \ 7934 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7935fi 7936 $ac_path_lt_DD_found && break 3 7937 done 7938 done 7939 done 7940IFS=$as_save_IFS 7941 if test -z "$ac_cv_path_lt_DD"; then 7942 : 7943 fi 7944else 7945 ac_cv_path_lt_DD=$lt_DD 7946fi 7947 7948rm -f conftest.i conftest2.i conftest.out 7949fi 7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7951$as_echo "$ac_cv_path_lt_DD" >&6; } 7952 7953 7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7955$as_echo_n "checking how to truncate binary pipes... " >&6; } 7956if ${lt_cv_truncate_bin+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 printf 0123456789abcdef0123456789abcdef >conftest.i 7960cat conftest.i conftest.i >conftest2.i 7961lt_cv_truncate_bin= 7962if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7963 cmp -s conftest.i conftest.out \ 7964 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7965fi 7966rm -f conftest.i conftest2.i conftest.out 7967test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7968fi 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7970$as_echo "$lt_cv_truncate_bin" >&6; } 7971 7972 7973 7974 7975 7976 7977 7978# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7979func_cc_basename () 7980{ 7981 for cc_temp in $*""; do 7982 case $cc_temp in 7983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7985 \-*) ;; 7986 *) break;; 7987 esac 7988 done 7989 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7990} 7991 7992# Check whether --enable-libtool-lock was given. 7993if test "${enable_libtool_lock+set}" = set; then : 7994 enableval=$enable_libtool_lock; 7995fi 7996 7997test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7998 7999# Some flags need to be propagated to the compiler or linker for good 8000# libtool support. 8001case $host in 8002ia64-*-hpux*) 8003 # Find out what ABI is being produced by ac_compile, and set mode 8004 # options accordingly. 8005 echo 'int i;' > conftest.$ac_ext 8006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8007 (eval $ac_compile) 2>&5 8008 ac_status=$? 8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8010 test $ac_status = 0; }; then 8011 case `/usr/bin/file conftest.$ac_objext` in 8012 *ELF-32*) 8013 HPUX_IA64_MODE=32 8014 ;; 8015 *ELF-64*) 8016 HPUX_IA64_MODE=64 8017 ;; 8018 esac 8019 fi 8020 rm -rf conftest* 8021 ;; 8022*-*-irix6*) 8023 # Find out what ABI is being produced by ac_compile, and set linker 8024 # options accordingly. 8025 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8027 (eval $ac_compile) 2>&5 8028 ac_status=$? 8029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8030 test $ac_status = 0; }; then 8031 if test yes = "$lt_cv_prog_gnu_ld"; then 8032 case `/usr/bin/file conftest.$ac_objext` in 8033 *32-bit*) 8034 LD="${LD-ld} -melf32bsmip" 8035 ;; 8036 *N32*) 8037 LD="${LD-ld} -melf32bmipn32" 8038 ;; 8039 *64-bit*) 8040 LD="${LD-ld} -melf64bmip" 8041 ;; 8042 esac 8043 else 8044 case `/usr/bin/file conftest.$ac_objext` in 8045 *32-bit*) 8046 LD="${LD-ld} -32" 8047 ;; 8048 *N32*) 8049 LD="${LD-ld} -n32" 8050 ;; 8051 *64-bit*) 8052 LD="${LD-ld} -64" 8053 ;; 8054 esac 8055 fi 8056 fi 8057 rm -rf conftest* 8058 ;; 8059 8060mips64*-*linux*) 8061 # Find out what ABI is being produced by ac_compile, and set linker 8062 # options accordingly. 8063 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8065 (eval $ac_compile) 2>&5 8066 ac_status=$? 8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8068 test $ac_status = 0; }; then 8069 emul=elf 8070 case `/usr/bin/file conftest.$ac_objext` in 8071 *32-bit*) 8072 emul="${emul}32" 8073 ;; 8074 *64-bit*) 8075 emul="${emul}64" 8076 ;; 8077 esac 8078 case `/usr/bin/file conftest.$ac_objext` in 8079 *MSB*) 8080 emul="${emul}btsmip" 8081 ;; 8082 *LSB*) 8083 emul="${emul}ltsmip" 8084 ;; 8085 esac 8086 case `/usr/bin/file conftest.$ac_objext` in 8087 *N32*) 8088 emul="${emul}n32" 8089 ;; 8090 esac 8091 LD="${LD-ld} -m $emul" 8092 fi 8093 rm -rf conftest* 8094 ;; 8095 8096x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8097s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8098 # Find out what ABI is being produced by ac_compile, and set linker 8099 # options accordingly. Note that the listed cases only cover the 8100 # situations where additional linker options are needed (such as when 8101 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8102 # vice versa); the common cases where no linker options are needed do 8103 # not appear in the list. 8104 echo 'int i;' > conftest.$ac_ext 8105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8106 (eval $ac_compile) 2>&5 8107 ac_status=$? 8108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8109 test $ac_status = 0; }; then 8110 case `/usr/bin/file conftest.o` in 8111 *32-bit*) 8112 case $host in 8113 x86_64-*kfreebsd*-gnu) 8114 LD="${LD-ld} -m elf_i386_fbsd" 8115 ;; 8116 x86_64-*linux*) 8117 case `/usr/bin/file conftest.o` in 8118 *x86-64*) 8119 LD="${LD-ld} -m elf32_x86_64" 8120 ;; 8121 *) 8122 LD="${LD-ld} -m elf_i386" 8123 ;; 8124 esac 8125 ;; 8126 powerpc64le-*linux*) 8127 LD="${LD-ld} -m elf32lppclinux" 8128 ;; 8129 powerpc64-*linux*) 8130 LD="${LD-ld} -m elf32ppclinux" 8131 ;; 8132 s390x-*linux*) 8133 LD="${LD-ld} -m elf_s390" 8134 ;; 8135 sparc64-*linux*) 8136 LD="${LD-ld} -m elf32_sparc" 8137 ;; 8138 esac 8139 ;; 8140 *64-bit*) 8141 case $host in 8142 x86_64-*kfreebsd*-gnu) 8143 LD="${LD-ld} -m elf_x86_64_fbsd" 8144 ;; 8145 x86_64-*linux*) 8146 LD="${LD-ld} -m elf_x86_64" 8147 ;; 8148 powerpcle-*linux*) 8149 LD="${LD-ld} -m elf64lppc" 8150 ;; 8151 powerpc-*linux*) 8152 LD="${LD-ld} -m elf64ppc" 8153 ;; 8154 s390*-*linux*|s390*-*tpf*) 8155 LD="${LD-ld} -m elf64_s390" 8156 ;; 8157 sparc*-*linux*) 8158 LD="${LD-ld} -m elf64_sparc" 8159 ;; 8160 esac 8161 ;; 8162 esac 8163 fi 8164 rm -rf conftest* 8165 ;; 8166 8167*-*-sco3.2v5*) 8168 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8169 SAVE_CFLAGS=$CFLAGS 8170 CFLAGS="$CFLAGS -belf" 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8172$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8173if ${lt_cv_cc_needs_belf+:} false; then : 8174 $as_echo_n "(cached) " >&6 8175else 8176 ac_ext=c 8177ac_cpp='$CPP $CPPFLAGS' 8178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8180ac_compiler_gnu=$ac_cv_c_compiler_gnu 8181 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184 8185int 8186main () 8187{ 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_link "$LINENO"; then : 8194 lt_cv_cc_needs_belf=yes 8195else 8196 lt_cv_cc_needs_belf=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext \ 8199 conftest$ac_exeext conftest.$ac_ext 8200 ac_ext=c 8201ac_cpp='$CPP $CPPFLAGS' 8202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8204ac_compiler_gnu=$ac_cv_c_compiler_gnu 8205 8206fi 8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8208$as_echo "$lt_cv_cc_needs_belf" >&6; } 8209 if test yes != "$lt_cv_cc_needs_belf"; then 8210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8211 CFLAGS=$SAVE_CFLAGS 8212 fi 8213 ;; 8214*-*solaris*) 8215 # Find out what ABI is being produced by ac_compile, and set linker 8216 # options accordingly. 8217 echo 'int i;' > conftest.$ac_ext 8218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8219 (eval $ac_compile) 2>&5 8220 ac_status=$? 8221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8222 test $ac_status = 0; }; then 8223 case `/usr/bin/file conftest.o` in 8224 *64-bit*) 8225 case $lt_cv_prog_gnu_ld in 8226 yes*) 8227 case $host in 8228 i?86-*-solaris*|x86_64-*-solaris*) 8229 LD="${LD-ld} -m elf_x86_64" 8230 ;; 8231 sparc*-*-solaris*) 8232 LD="${LD-ld} -m elf64_sparc" 8233 ;; 8234 esac 8235 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8236 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8237 LD=${LD-ld}_sol2 8238 fi 8239 ;; 8240 *) 8241 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8242 LD="${LD-ld} -64" 8243 fi 8244 ;; 8245 esac 8246 ;; 8247 esac 8248 fi 8249 rm -rf conftest* 8250 ;; 8251esac 8252 8253need_locks=$enable_libtool_lock 8254 8255if test -n "$ac_tool_prefix"; then 8256 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8257set dummy ${ac_tool_prefix}mt; ac_word=$2 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8259$as_echo_n "checking for $ac_word... " >&6; } 8260if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262else 8263 if test -n "$MANIFEST_TOOL"; then 8264 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8265else 8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8267for as_dir in $PATH 8268do 8269 IFS=$as_save_IFS 8270 test -z "$as_dir" && as_dir=. 8271 for ac_exec_ext in '' $ac_executable_extensions; do 8272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8273 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8275 break 2 8276 fi 8277done 8278 done 8279IFS=$as_save_IFS 8280 8281fi 8282fi 8283MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8284if test -n "$MANIFEST_TOOL"; then 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8286$as_echo "$MANIFEST_TOOL" >&6; } 8287else 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8289$as_echo "no" >&6; } 8290fi 8291 8292 8293fi 8294if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8295 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8296 # Extract the first word of "mt", so it can be a program name with args. 8297set dummy mt; ac_word=$2 8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8299$as_echo_n "checking for $ac_word... " >&6; } 8300if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8301 $as_echo_n "(cached) " >&6 8302else 8303 if test -n "$ac_ct_MANIFEST_TOOL"; then 8304 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8305else 8306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8307for as_dir in $PATH 8308do 8309 IFS=$as_save_IFS 8310 test -z "$as_dir" && as_dir=. 8311 for ac_exec_ext in '' $ac_executable_extensions; do 8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8313 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8315 break 2 8316 fi 8317done 8318 done 8319IFS=$as_save_IFS 8320 8321fi 8322fi 8323ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8324if test -n "$ac_ct_MANIFEST_TOOL"; then 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8326$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8327else 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8329$as_echo "no" >&6; } 8330fi 8331 8332 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8333 MANIFEST_TOOL=":" 8334 else 8335 case $cross_compiling:$ac_tool_warned in 8336yes:) 8337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8339ac_tool_warned=yes ;; 8340esac 8341 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8342 fi 8343else 8344 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8345fi 8346 8347test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8349$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8350if ${lt_cv_path_mainfest_tool+:} false; then : 8351 $as_echo_n "(cached) " >&6 8352else 8353 lt_cv_path_mainfest_tool=no 8354 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8355 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8356 cat conftest.err >&5 8357 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8358 lt_cv_path_mainfest_tool=yes 8359 fi 8360 rm -f conftest* 8361fi 8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8363$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8364if test yes != "$lt_cv_path_mainfest_tool"; then 8365 MANIFEST_TOOL=: 8366fi 8367 8368 8369 8370 8371 8372 8373 case $host_os in 8374 rhapsody* | darwin*) 8375 if test -n "$ac_tool_prefix"; then 8376 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8377set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8379$as_echo_n "checking for $ac_word... " >&6; } 8380if ${ac_cv_prog_DSYMUTIL+:} false; then : 8381 $as_echo_n "(cached) " >&6 8382else 8383 if test -n "$DSYMUTIL"; then 8384 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8385else 8386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8387for as_dir in $PATH 8388do 8389 IFS=$as_save_IFS 8390 test -z "$as_dir" && as_dir=. 8391 for ac_exec_ext in '' $ac_executable_extensions; do 8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8393 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8395 break 2 8396 fi 8397done 8398 done 8399IFS=$as_save_IFS 8400 8401fi 8402fi 8403DSYMUTIL=$ac_cv_prog_DSYMUTIL 8404if test -n "$DSYMUTIL"; then 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8406$as_echo "$DSYMUTIL" >&6; } 8407else 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8409$as_echo "no" >&6; } 8410fi 8411 8412 8413fi 8414if test -z "$ac_cv_prog_DSYMUTIL"; then 8415 ac_ct_DSYMUTIL=$DSYMUTIL 8416 # Extract the first word of "dsymutil", so it can be a program name with args. 8417set dummy dsymutil; ac_word=$2 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8419$as_echo_n "checking for $ac_word... " >&6; } 8420if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 if test -n "$ac_ct_DSYMUTIL"; then 8424 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8425else 8426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8427for as_dir in $PATH 8428do 8429 IFS=$as_save_IFS 8430 test -z "$as_dir" && as_dir=. 8431 for ac_exec_ext in '' $ac_executable_extensions; do 8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8433 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8435 break 2 8436 fi 8437done 8438 done 8439IFS=$as_save_IFS 8440 8441fi 8442fi 8443ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8444if test -n "$ac_ct_DSYMUTIL"; then 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8446$as_echo "$ac_ct_DSYMUTIL" >&6; } 8447else 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8449$as_echo "no" >&6; } 8450fi 8451 8452 if test "x$ac_ct_DSYMUTIL" = x; then 8453 DSYMUTIL=":" 8454 else 8455 case $cross_compiling:$ac_tool_warned in 8456yes:) 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8459ac_tool_warned=yes ;; 8460esac 8461 DSYMUTIL=$ac_ct_DSYMUTIL 8462 fi 8463else 8464 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8465fi 8466 8467 if test -n "$ac_tool_prefix"; then 8468 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8469set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8471$as_echo_n "checking for $ac_word... " >&6; } 8472if ${ac_cv_prog_NMEDIT+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 if test -n "$NMEDIT"; then 8476 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8477else 8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8479for as_dir in $PATH 8480do 8481 IFS=$as_save_IFS 8482 test -z "$as_dir" && as_dir=. 8483 for ac_exec_ext in '' $ac_executable_extensions; do 8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8485 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8487 break 2 8488 fi 8489done 8490 done 8491IFS=$as_save_IFS 8492 8493fi 8494fi 8495NMEDIT=$ac_cv_prog_NMEDIT 8496if test -n "$NMEDIT"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8498$as_echo "$NMEDIT" >&6; } 8499else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501$as_echo "no" >&6; } 8502fi 8503 8504 8505fi 8506if test -z "$ac_cv_prog_NMEDIT"; then 8507 ac_ct_NMEDIT=$NMEDIT 8508 # Extract the first word of "nmedit", so it can be a program name with args. 8509set dummy nmedit; ac_word=$2 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8511$as_echo_n "checking for $ac_word... " >&6; } 8512if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 if test -n "$ac_ct_NMEDIT"; then 8516 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8517else 8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8519for as_dir in $PATH 8520do 8521 IFS=$as_save_IFS 8522 test -z "$as_dir" && as_dir=. 8523 for ac_exec_ext in '' $ac_executable_extensions; do 8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8525 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8527 break 2 8528 fi 8529done 8530 done 8531IFS=$as_save_IFS 8532 8533fi 8534fi 8535ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8536if test -n "$ac_ct_NMEDIT"; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8538$as_echo "$ac_ct_NMEDIT" >&6; } 8539else 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8541$as_echo "no" >&6; } 8542fi 8543 8544 if test "x$ac_ct_NMEDIT" = x; then 8545 NMEDIT=":" 8546 else 8547 case $cross_compiling:$ac_tool_warned in 8548yes:) 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8551ac_tool_warned=yes ;; 8552esac 8553 NMEDIT=$ac_ct_NMEDIT 8554 fi 8555else 8556 NMEDIT="$ac_cv_prog_NMEDIT" 8557fi 8558 8559 if test -n "$ac_tool_prefix"; then 8560 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8561set dummy ${ac_tool_prefix}lipo; ac_word=$2 8562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8563$as_echo_n "checking for $ac_word... " >&6; } 8564if ${ac_cv_prog_LIPO+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 if test -n "$LIPO"; then 8568 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8569else 8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8571for as_dir in $PATH 8572do 8573 IFS=$as_save_IFS 8574 test -z "$as_dir" && as_dir=. 8575 for ac_exec_ext in '' $ac_executable_extensions; do 8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8577 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8579 break 2 8580 fi 8581done 8582 done 8583IFS=$as_save_IFS 8584 8585fi 8586fi 8587LIPO=$ac_cv_prog_LIPO 8588if test -n "$LIPO"; then 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8590$as_echo "$LIPO" >&6; } 8591else 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8593$as_echo "no" >&6; } 8594fi 8595 8596 8597fi 8598if test -z "$ac_cv_prog_LIPO"; then 8599 ac_ct_LIPO=$LIPO 8600 # Extract the first word of "lipo", so it can be a program name with args. 8601set dummy lipo; ac_word=$2 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8603$as_echo_n "checking for $ac_word... " >&6; } 8604if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8605 $as_echo_n "(cached) " >&6 8606else 8607 if test -n "$ac_ct_LIPO"; then 8608 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8609else 8610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8611for as_dir in $PATH 8612do 8613 IFS=$as_save_IFS 8614 test -z "$as_dir" && as_dir=. 8615 for ac_exec_ext in '' $ac_executable_extensions; do 8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8617 ac_cv_prog_ac_ct_LIPO="lipo" 8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8619 break 2 8620 fi 8621done 8622 done 8623IFS=$as_save_IFS 8624 8625fi 8626fi 8627ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8628if test -n "$ac_ct_LIPO"; then 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8630$as_echo "$ac_ct_LIPO" >&6; } 8631else 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8633$as_echo "no" >&6; } 8634fi 8635 8636 if test "x$ac_ct_LIPO" = x; then 8637 LIPO=":" 8638 else 8639 case $cross_compiling:$ac_tool_warned in 8640yes:) 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8643ac_tool_warned=yes ;; 8644esac 8645 LIPO=$ac_ct_LIPO 8646 fi 8647else 8648 LIPO="$ac_cv_prog_LIPO" 8649fi 8650 8651 if test -n "$ac_tool_prefix"; then 8652 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8653set dummy ${ac_tool_prefix}otool; ac_word=$2 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8655$as_echo_n "checking for $ac_word... " >&6; } 8656if ${ac_cv_prog_OTOOL+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 if test -n "$OTOOL"; then 8660 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8661else 8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8663for as_dir in $PATH 8664do 8665 IFS=$as_save_IFS 8666 test -z "$as_dir" && as_dir=. 8667 for ac_exec_ext in '' $ac_executable_extensions; do 8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8669 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8671 break 2 8672 fi 8673done 8674 done 8675IFS=$as_save_IFS 8676 8677fi 8678fi 8679OTOOL=$ac_cv_prog_OTOOL 8680if test -n "$OTOOL"; then 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8682$as_echo "$OTOOL" >&6; } 8683else 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8685$as_echo "no" >&6; } 8686fi 8687 8688 8689fi 8690if test -z "$ac_cv_prog_OTOOL"; then 8691 ac_ct_OTOOL=$OTOOL 8692 # Extract the first word of "otool", so it can be a program name with args. 8693set dummy otool; ac_word=$2 8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8695$as_echo_n "checking for $ac_word... " >&6; } 8696if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 if test -n "$ac_ct_OTOOL"; then 8700 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8701else 8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8703for as_dir in $PATH 8704do 8705 IFS=$as_save_IFS 8706 test -z "$as_dir" && as_dir=. 8707 for ac_exec_ext in '' $ac_executable_extensions; do 8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8709 ac_cv_prog_ac_ct_OTOOL="otool" 8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8711 break 2 8712 fi 8713done 8714 done 8715IFS=$as_save_IFS 8716 8717fi 8718fi 8719ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8720if test -n "$ac_ct_OTOOL"; then 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8722$as_echo "$ac_ct_OTOOL" >&6; } 8723else 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8725$as_echo "no" >&6; } 8726fi 8727 8728 if test "x$ac_ct_OTOOL" = x; then 8729 OTOOL=":" 8730 else 8731 case $cross_compiling:$ac_tool_warned in 8732yes:) 8733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8735ac_tool_warned=yes ;; 8736esac 8737 OTOOL=$ac_ct_OTOOL 8738 fi 8739else 8740 OTOOL="$ac_cv_prog_OTOOL" 8741fi 8742 8743 if test -n "$ac_tool_prefix"; then 8744 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8745set dummy ${ac_tool_prefix}otool64; ac_word=$2 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8747$as_echo_n "checking for $ac_word... " >&6; } 8748if ${ac_cv_prog_OTOOL64+:} false; then : 8749 $as_echo_n "(cached) " >&6 8750else 8751 if test -n "$OTOOL64"; then 8752 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8753else 8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8755for as_dir in $PATH 8756do 8757 IFS=$as_save_IFS 8758 test -z "$as_dir" && as_dir=. 8759 for ac_exec_ext in '' $ac_executable_extensions; do 8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8761 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8763 break 2 8764 fi 8765done 8766 done 8767IFS=$as_save_IFS 8768 8769fi 8770fi 8771OTOOL64=$ac_cv_prog_OTOOL64 8772if test -n "$OTOOL64"; then 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8774$as_echo "$OTOOL64" >&6; } 8775else 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8777$as_echo "no" >&6; } 8778fi 8779 8780 8781fi 8782if test -z "$ac_cv_prog_OTOOL64"; then 8783 ac_ct_OTOOL64=$OTOOL64 8784 # Extract the first word of "otool64", so it can be a program name with args. 8785set dummy otool64; ac_word=$2 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8787$as_echo_n "checking for $ac_word... " >&6; } 8788if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 if test -n "$ac_ct_OTOOL64"; then 8792 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8793else 8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8795for as_dir in $PATH 8796do 8797 IFS=$as_save_IFS 8798 test -z "$as_dir" && as_dir=. 8799 for ac_exec_ext in '' $ac_executable_extensions; do 8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8801 ac_cv_prog_ac_ct_OTOOL64="otool64" 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8803 break 2 8804 fi 8805done 8806 done 8807IFS=$as_save_IFS 8808 8809fi 8810fi 8811ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8812if test -n "$ac_ct_OTOOL64"; then 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8814$as_echo "$ac_ct_OTOOL64" >&6; } 8815else 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8817$as_echo "no" >&6; } 8818fi 8819 8820 if test "x$ac_ct_OTOOL64" = x; then 8821 OTOOL64=":" 8822 else 8823 case $cross_compiling:$ac_tool_warned in 8824yes:) 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8827ac_tool_warned=yes ;; 8828esac 8829 OTOOL64=$ac_ct_OTOOL64 8830 fi 8831else 8832 OTOOL64="$ac_cv_prog_OTOOL64" 8833fi 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8862$as_echo_n "checking for -single_module linker flag... " >&6; } 8863if ${lt_cv_apple_cc_single_mod+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 lt_cv_apple_cc_single_mod=no 8867 if test -z "$LT_MULTI_MODULE"; then 8868 # By default we will add the -single_module flag. You can override 8869 # by either setting the environment variable LT_MULTI_MODULE 8870 # non-empty at configure time, or by adding -multi_module to the 8871 # link flags. 8872 rm -rf libconftest.dylib* 8873 echo "int foo(void){return 1;}" > conftest.c 8874 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8875-dynamiclib -Wl,-single_module conftest.c" >&5 8876 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8877 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8878 _lt_result=$? 8879 # If there is a non-empty error log, and "single_module" 8880 # appears in it, assume the flag caused a linker warning 8881 if test -s conftest.err && $GREP single_module conftest.err; then 8882 cat conftest.err >&5 8883 # Otherwise, if the output was created with a 0 exit code from 8884 # the compiler, it worked. 8885 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8886 lt_cv_apple_cc_single_mod=yes 8887 else 8888 cat conftest.err >&5 8889 fi 8890 rm -rf libconftest.dylib* 8891 rm -f conftest.* 8892 fi 8893fi 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8895$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8896 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8898$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8899if ${lt_cv_ld_exported_symbols_list+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 lt_cv_ld_exported_symbols_list=no 8903 save_LDFLAGS=$LDFLAGS 8904 echo "_main" > conftest.sym 8905 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908 8909int 8910main () 8911{ 8912 8913 ; 8914 return 0; 8915} 8916_ACEOF 8917if ac_fn_c_try_link "$LINENO"; then : 8918 lt_cv_ld_exported_symbols_list=yes 8919else 8920 lt_cv_ld_exported_symbols_list=no 8921fi 8922rm -f core conftest.err conftest.$ac_objext \ 8923 conftest$ac_exeext conftest.$ac_ext 8924 LDFLAGS=$save_LDFLAGS 8925 8926fi 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8928$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8929 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8931$as_echo_n "checking for -force_load linker flag... " >&6; } 8932if ${lt_cv_ld_force_load+:} false; then : 8933 $as_echo_n "(cached) " >&6 8934else 8935 lt_cv_ld_force_load=no 8936 cat > conftest.c << _LT_EOF 8937int forced_loaded() { return 2;} 8938_LT_EOF 8939 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8940 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8941 echo "$AR cru libconftest.a conftest.o" >&5 8942 $AR cru libconftest.a conftest.o 2>&5 8943 echo "$RANLIB libconftest.a" >&5 8944 $RANLIB libconftest.a 2>&5 8945 cat > conftest.c << _LT_EOF 8946int main() { return 0;} 8947_LT_EOF 8948 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8949 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8950 _lt_result=$? 8951 if test -s conftest.err && $GREP force_load conftest.err; then 8952 cat conftest.err >&5 8953 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8954 lt_cv_ld_force_load=yes 8955 else 8956 cat conftest.err >&5 8957 fi 8958 rm -f conftest.err libconftest.a conftest conftest.c 8959 rm -rf conftest.dSYM 8960 8961fi 8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8963$as_echo "$lt_cv_ld_force_load" >&6; } 8964 case $host_os in 8965 rhapsody* | darwin1.[012]) 8966 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8967 darwin1.*) 8968 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8969 darwin*) # darwin 5.x on 8970 # if running on 10.5 or later, the deployment target defaults 8971 # to the OS version, if on x86, and 10.4, the deployment 8972 # target defaults to 10.4. Don't you love it? 8973 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8974 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8975 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8976 10.[012][,.]*) 8977 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8978 10.*) 8979 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8980 esac 8981 ;; 8982 esac 8983 if test yes = "$lt_cv_apple_cc_single_mod"; then 8984 _lt_dar_single_mod='$single_module' 8985 fi 8986 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8987 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8988 else 8989 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8990 fi 8991 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8992 _lt_dsymutil='~$DSYMUTIL $lib || :' 8993 else 8994 _lt_dsymutil= 8995 fi 8996 ;; 8997 esac 8998 8999# func_munge_path_list VARIABLE PATH 9000# ----------------------------------- 9001# VARIABLE is name of variable containing _space_ separated list of 9002# directories to be munged by the contents of PATH, which is string 9003# having a format: 9004# "DIR[:DIR]:" 9005# string "DIR[ DIR]" will be prepended to VARIABLE 9006# ":DIR[:DIR]" 9007# string "DIR[ DIR]" will be appended to VARIABLE 9008# "DIRP[:DIRP]::[DIRA:]DIRA" 9009# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9010# "DIRA[ DIRA]" will be appended to VARIABLE 9011# "DIR[:DIR]" 9012# VARIABLE will be replaced by "DIR[ DIR]" 9013func_munge_path_list () 9014{ 9015 case x$2 in 9016 x) 9017 ;; 9018 *:) 9019 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9020 ;; 9021 x:*) 9022 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9023 ;; 9024 *::*) 9025 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9026 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9027 ;; 9028 *) 9029 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9030 ;; 9031 esac 9032} 9033 9034ac_ext=c 9035ac_cpp='$CPP $CPPFLAGS' 9036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9038ac_compiler_gnu=$ac_cv_c_compiler_gnu 9039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9040$as_echo_n "checking how to run the C preprocessor... " >&6; } 9041# On Suns, sometimes $CPP names a directory. 9042if test -n "$CPP" && test -d "$CPP"; then 9043 CPP= 9044fi 9045if test -z "$CPP"; then 9046 if ${ac_cv_prog_CPP+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 # Double quotes because CPP needs to be expanded 9050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9051 do 9052 ac_preproc_ok=false 9053for ac_c_preproc_warn_flag in '' yes 9054do 9055 # Use a header file that comes with gcc, so configuring glibc 9056 # with a fresh cross-compiler works. 9057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9058 # <limits.h> exists even on freestanding compilers. 9059 # On the NeXT, cc -E runs the code through the compiler's parser, 9060 # not just through cpp. "Syntax error" is here to catch this case. 9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063#ifdef __STDC__ 9064# include <limits.h> 9065#else 9066# include <assert.h> 9067#endif 9068 Syntax error 9069_ACEOF 9070if ac_fn_c_try_cpp "$LINENO"; then : 9071 9072else 9073 # Broken: fails on valid input. 9074continue 9075fi 9076rm -f conftest.err conftest.i conftest.$ac_ext 9077 9078 # OK, works on sane cases. Now check whether nonexistent headers 9079 # can be detected and how. 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082#include <ac_nonexistent.h> 9083_ACEOF 9084if ac_fn_c_try_cpp "$LINENO"; then : 9085 # Broken: success on invalid input. 9086continue 9087else 9088 # Passes both tests. 9089ac_preproc_ok=: 9090break 9091fi 9092rm -f conftest.err conftest.i conftest.$ac_ext 9093 9094done 9095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9096rm -f conftest.i conftest.err conftest.$ac_ext 9097if $ac_preproc_ok; then : 9098 break 9099fi 9100 9101 done 9102 ac_cv_prog_CPP=$CPP 9103 9104fi 9105 CPP=$ac_cv_prog_CPP 9106else 9107 ac_cv_prog_CPP=$CPP 9108fi 9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9110$as_echo "$CPP" >&6; } 9111ac_preproc_ok=false 9112for ac_c_preproc_warn_flag in '' yes 9113do 9114 # Use a header file that comes with gcc, so configuring glibc 9115 # with a fresh cross-compiler works. 9116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9117 # <limits.h> exists even on freestanding compilers. 9118 # On the NeXT, cc -E runs the code through the compiler's parser, 9119 # not just through cpp. "Syntax error" is here to catch this case. 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122#ifdef __STDC__ 9123# include <limits.h> 9124#else 9125# include <assert.h> 9126#endif 9127 Syntax error 9128_ACEOF 9129if ac_fn_c_try_cpp "$LINENO"; then : 9130 9131else 9132 # Broken: fails on valid input. 9133continue 9134fi 9135rm -f conftest.err conftest.i conftest.$ac_ext 9136 9137 # OK, works on sane cases. Now check whether nonexistent headers 9138 # can be detected and how. 9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9140/* end confdefs.h. */ 9141#include <ac_nonexistent.h> 9142_ACEOF 9143if ac_fn_c_try_cpp "$LINENO"; then : 9144 # Broken: success on invalid input. 9145continue 9146else 9147 # Passes both tests. 9148ac_preproc_ok=: 9149break 9150fi 9151rm -f conftest.err conftest.i conftest.$ac_ext 9152 9153done 9154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9155rm -f conftest.i conftest.err conftest.$ac_ext 9156if $ac_preproc_ok; then : 9157 9158else 9159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9161as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9162See \`config.log' for more details" "$LINENO" 5; } 9163fi 9164 9165ac_ext=c 9166ac_cpp='$CPP $CPPFLAGS' 9167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9169ac_compiler_gnu=$ac_cv_c_compiler_gnu 9170 9171 9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9173$as_echo_n "checking for ANSI C header files... " >&6; } 9174if ${ac_cv_header_stdc+:} false; then : 9175 $as_echo_n "(cached) " >&6 9176else 9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9178/* end confdefs.h. */ 9179#include <stdlib.h> 9180#include <stdarg.h> 9181#include <string.h> 9182#include <float.h> 9183 9184int 9185main () 9186{ 9187 9188 ; 9189 return 0; 9190} 9191_ACEOF 9192if ac_fn_c_try_compile "$LINENO"; then : 9193 ac_cv_header_stdc=yes 9194else 9195 ac_cv_header_stdc=no 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9198 9199if test $ac_cv_header_stdc = yes; then 9200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203#include <string.h> 9204 9205_ACEOF 9206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9207 $EGREP "memchr" >/dev/null 2>&1; then : 9208 9209else 9210 ac_cv_header_stdc=no 9211fi 9212rm -f conftest* 9213 9214fi 9215 9216if test $ac_cv_header_stdc = yes; then 9217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219/* end confdefs.h. */ 9220#include <stdlib.h> 9221 9222_ACEOF 9223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9224 $EGREP "free" >/dev/null 2>&1; then : 9225 9226else 9227 ac_cv_header_stdc=no 9228fi 9229rm -f conftest* 9230 9231fi 9232 9233if test $ac_cv_header_stdc = yes; then 9234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9235 if test "$cross_compiling" = yes; then : 9236 : 9237else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240#include <ctype.h> 9241#include <stdlib.h> 9242#if ((' ' & 0x0FF) == 0x020) 9243# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9244# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9245#else 9246# define ISLOWER(c) \ 9247 (('a' <= (c) && (c) <= 'i') \ 9248 || ('j' <= (c) && (c) <= 'r') \ 9249 || ('s' <= (c) && (c) <= 'z')) 9250# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9251#endif 9252 9253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9254int 9255main () 9256{ 9257 int i; 9258 for (i = 0; i < 256; i++) 9259 if (XOR (islower (i), ISLOWER (i)) 9260 || toupper (i) != TOUPPER (i)) 9261 return 2; 9262 return 0; 9263} 9264_ACEOF 9265if ac_fn_c_try_run "$LINENO"; then : 9266 9267else 9268 ac_cv_header_stdc=no 9269fi 9270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9271 conftest.$ac_objext conftest.beam conftest.$ac_ext 9272fi 9273 9274fi 9275fi 9276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9277$as_echo "$ac_cv_header_stdc" >&6; } 9278if test $ac_cv_header_stdc = yes; then 9279 9280$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9281 9282fi 9283 9284# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9285for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9286 inttypes.h stdint.h unistd.h 9287do : 9288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9289ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9290" 9291if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9292 cat >>confdefs.h <<_ACEOF 9293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9294_ACEOF 9295 9296fi 9297 9298done 9299 9300 9301for ac_header in dlfcn.h 9302do : 9303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9304" 9305if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9306 cat >>confdefs.h <<_ACEOF 9307#define HAVE_DLFCN_H 1 9308_ACEOF 9309 9310fi 9311 9312done 9313 9314 9315 9316func_stripname_cnf () 9317{ 9318 case $2 in 9319 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9320 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9321 esac 9322} # func_stripname_cnf 9323 9324 9325 9326 9327 9328# Set options 9329# Check whether --enable-static was given. 9330if test "${enable_static+set}" = set; then : 9331 enableval=$enable_static; p=${PACKAGE-default} 9332 case $enableval in 9333 yes) enable_static=yes ;; 9334 no) enable_static=no ;; 9335 *) 9336 enable_static=no 9337 # Look at the argument we got. We use all the common list separators. 9338 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9339 for pkg in $enableval; do 9340 IFS=$lt_save_ifs 9341 if test "X$pkg" = "X$p"; then 9342 enable_static=yes 9343 fi 9344 done 9345 IFS=$lt_save_ifs 9346 ;; 9347 esac 9348else 9349 enable_static=no 9350fi 9351 9352 9353 9354 9355 9356 9357 9358enable_dlopen=yes 9359enable_win32_dll=yes 9360 9361case $host in 9362*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9363 if test -n "$ac_tool_prefix"; then 9364 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9365set dummy ${ac_tool_prefix}as; ac_word=$2 9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9367$as_echo_n "checking for $ac_word... " >&6; } 9368if ${ac_cv_prog_AS+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 if test -n "$AS"; then 9372 ac_cv_prog_AS="$AS" # Let the user override the test. 9373else 9374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9375for as_dir in $PATH 9376do 9377 IFS=$as_save_IFS 9378 test -z "$as_dir" && as_dir=. 9379 for ac_exec_ext in '' $ac_executable_extensions; do 9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9381 ac_cv_prog_AS="${ac_tool_prefix}as" 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9383 break 2 9384 fi 9385done 9386 done 9387IFS=$as_save_IFS 9388 9389fi 9390fi 9391AS=$ac_cv_prog_AS 9392if test -n "$AS"; then 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9394$as_echo "$AS" >&6; } 9395else 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9397$as_echo "no" >&6; } 9398fi 9399 9400 9401fi 9402if test -z "$ac_cv_prog_AS"; then 9403 ac_ct_AS=$AS 9404 # Extract the first word of "as", so it can be a program name with args. 9405set dummy as; ac_word=$2 9406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9407$as_echo_n "checking for $ac_word... " >&6; } 9408if ${ac_cv_prog_ac_ct_AS+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 if test -n "$ac_ct_AS"; then 9412 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9413else 9414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9415for as_dir in $PATH 9416do 9417 IFS=$as_save_IFS 9418 test -z "$as_dir" && as_dir=. 9419 for ac_exec_ext in '' $ac_executable_extensions; do 9420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9421 ac_cv_prog_ac_ct_AS="as" 9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9423 break 2 9424 fi 9425done 9426 done 9427IFS=$as_save_IFS 9428 9429fi 9430fi 9431ac_ct_AS=$ac_cv_prog_ac_ct_AS 9432if test -n "$ac_ct_AS"; then 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9434$as_echo "$ac_ct_AS" >&6; } 9435else 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9437$as_echo "no" >&6; } 9438fi 9439 9440 if test "x$ac_ct_AS" = x; then 9441 AS="false" 9442 else 9443 case $cross_compiling:$ac_tool_warned in 9444yes:) 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9447ac_tool_warned=yes ;; 9448esac 9449 AS=$ac_ct_AS 9450 fi 9451else 9452 AS="$ac_cv_prog_AS" 9453fi 9454 9455 if test -n "$ac_tool_prefix"; then 9456 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9457set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9459$as_echo_n "checking for $ac_word... " >&6; } 9460if ${ac_cv_prog_DLLTOOL+:} false; then : 9461 $as_echo_n "(cached) " >&6 9462else 9463 if test -n "$DLLTOOL"; then 9464 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9465else 9466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9467for as_dir in $PATH 9468do 9469 IFS=$as_save_IFS 9470 test -z "$as_dir" && as_dir=. 9471 for ac_exec_ext in '' $ac_executable_extensions; do 9472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9473 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9475 break 2 9476 fi 9477done 9478 done 9479IFS=$as_save_IFS 9480 9481fi 9482fi 9483DLLTOOL=$ac_cv_prog_DLLTOOL 9484if test -n "$DLLTOOL"; then 9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9486$as_echo "$DLLTOOL" >&6; } 9487else 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9489$as_echo "no" >&6; } 9490fi 9491 9492 9493fi 9494if test -z "$ac_cv_prog_DLLTOOL"; then 9495 ac_ct_DLLTOOL=$DLLTOOL 9496 # Extract the first word of "dlltool", so it can be a program name with args. 9497set dummy dlltool; ac_word=$2 9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9499$as_echo_n "checking for $ac_word... " >&6; } 9500if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502else 9503 if test -n "$ac_ct_DLLTOOL"; then 9504 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9505else 9506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9507for as_dir in $PATH 9508do 9509 IFS=$as_save_IFS 9510 test -z "$as_dir" && as_dir=. 9511 for ac_exec_ext in '' $ac_executable_extensions; do 9512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9513 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9515 break 2 9516 fi 9517done 9518 done 9519IFS=$as_save_IFS 9520 9521fi 9522fi 9523ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9524if test -n "$ac_ct_DLLTOOL"; then 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9526$as_echo "$ac_ct_DLLTOOL" >&6; } 9527else 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9529$as_echo "no" >&6; } 9530fi 9531 9532 if test "x$ac_ct_DLLTOOL" = x; then 9533 DLLTOOL="false" 9534 else 9535 case $cross_compiling:$ac_tool_warned in 9536yes:) 9537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9539ac_tool_warned=yes ;; 9540esac 9541 DLLTOOL=$ac_ct_DLLTOOL 9542 fi 9543else 9544 DLLTOOL="$ac_cv_prog_DLLTOOL" 9545fi 9546 9547 if test -n "$ac_tool_prefix"; then 9548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9549set dummy ${ac_tool_prefix}objdump; ac_word=$2 9550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9551$as_echo_n "checking for $ac_word... " >&6; } 9552if ${ac_cv_prog_OBJDUMP+:} false; then : 9553 $as_echo_n "(cached) " >&6 9554else 9555 if test -n "$OBJDUMP"; then 9556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9557else 9558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9559for as_dir in $PATH 9560do 9561 IFS=$as_save_IFS 9562 test -z "$as_dir" && as_dir=. 9563 for ac_exec_ext in '' $ac_executable_extensions; do 9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9567 break 2 9568 fi 9569done 9570 done 9571IFS=$as_save_IFS 9572 9573fi 9574fi 9575OBJDUMP=$ac_cv_prog_OBJDUMP 9576if test -n "$OBJDUMP"; then 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9578$as_echo "$OBJDUMP" >&6; } 9579else 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9581$as_echo "no" >&6; } 9582fi 9583 9584 9585fi 9586if test -z "$ac_cv_prog_OBJDUMP"; then 9587 ac_ct_OBJDUMP=$OBJDUMP 9588 # Extract the first word of "objdump", so it can be a program name with args. 9589set dummy objdump; ac_word=$2 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9591$as_echo_n "checking for $ac_word... " >&6; } 9592if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594else 9595 if test -n "$ac_ct_OBJDUMP"; then 9596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9597else 9598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9599for as_dir in $PATH 9600do 9601 IFS=$as_save_IFS 9602 test -z "$as_dir" && as_dir=. 9603 for ac_exec_ext in '' $ac_executable_extensions; do 9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9605 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9607 break 2 9608 fi 9609done 9610 done 9611IFS=$as_save_IFS 9612 9613fi 9614fi 9615ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9616if test -n "$ac_ct_OBJDUMP"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9618$as_echo "$ac_ct_OBJDUMP" >&6; } 9619else 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9621$as_echo "no" >&6; } 9622fi 9623 9624 if test "x$ac_ct_OBJDUMP" = x; then 9625 OBJDUMP="false" 9626 else 9627 case $cross_compiling:$ac_tool_warned in 9628yes:) 9629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9631ac_tool_warned=yes ;; 9632esac 9633 OBJDUMP=$ac_ct_OBJDUMP 9634 fi 9635else 9636 OBJDUMP="$ac_cv_prog_OBJDUMP" 9637fi 9638 9639 ;; 9640esac 9641 9642test -z "$AS" && AS=as 9643 9644 9645 9646 9647 9648test -z "$DLLTOOL" && DLLTOOL=dlltool 9649 9650 9651 9652 9653 9654test -z "$OBJDUMP" && OBJDUMP=objdump 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 # Check whether --enable-shared was given. 9665if test "${enable_shared+set}" = set; then : 9666 enableval=$enable_shared; p=${PACKAGE-default} 9667 case $enableval in 9668 yes) enable_shared=yes ;; 9669 no) enable_shared=no ;; 9670 *) 9671 enable_shared=no 9672 # Look at the argument we got. We use all the common list separators. 9673 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9674 for pkg in $enableval; do 9675 IFS=$lt_save_ifs 9676 if test "X$pkg" = "X$p"; then 9677 enable_shared=yes 9678 fi 9679 done 9680 IFS=$lt_save_ifs 9681 ;; 9682 esac 9683else 9684 enable_shared=yes 9685fi 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697# Check whether --with-pic was given. 9698if test "${with_pic+set}" = set; then : 9699 withval=$with_pic; lt_p=${PACKAGE-default} 9700 case $withval in 9701 yes|no) pic_mode=$withval ;; 9702 *) 9703 pic_mode=default 9704 # Look at the argument we got. We use all the common list separators. 9705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9706 for lt_pkg in $withval; do 9707 IFS=$lt_save_ifs 9708 if test "X$lt_pkg" = "X$lt_p"; then 9709 pic_mode=yes 9710 fi 9711 done 9712 IFS=$lt_save_ifs 9713 ;; 9714 esac 9715else 9716 pic_mode=default 9717fi 9718 9719 9720 9721 9722 9723 9724 9725 9726 # Check whether --enable-fast-install was given. 9727if test "${enable_fast_install+set}" = set; then : 9728 enableval=$enable_fast_install; p=${PACKAGE-default} 9729 case $enableval in 9730 yes) enable_fast_install=yes ;; 9731 no) enable_fast_install=no ;; 9732 *) 9733 enable_fast_install=no 9734 # Look at the argument we got. We use all the common list separators. 9735 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9736 for pkg in $enableval; do 9737 IFS=$lt_save_ifs 9738 if test "X$pkg" = "X$p"; then 9739 enable_fast_install=yes 9740 fi 9741 done 9742 IFS=$lt_save_ifs 9743 ;; 9744 esac 9745else 9746 enable_fast_install=yes 9747fi 9748 9749 9750 9751 9752 9753 9754 9755 9756 shared_archive_member_spec= 9757case $host,$enable_shared in 9758power*-*-aix[5-9]*,yes) 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9760$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9761 9762# Check whether --with-aix-soname was given. 9763if test "${with_aix_soname+set}" = set; then : 9764 withval=$with_aix_soname; case $withval in 9765 aix|svr4|both) 9766 ;; 9767 *) 9768 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9769 ;; 9770 esac 9771 lt_cv_with_aix_soname=$with_aix_soname 9772else 9773 if ${lt_cv_with_aix_soname+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 lt_cv_with_aix_soname=aix 9777fi 9778 9779 with_aix_soname=$lt_cv_with_aix_soname 9780fi 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9783$as_echo "$with_aix_soname" >&6; } 9784 if test aix != "$with_aix_soname"; then 9785 # For the AIX way of multilib, we name the shared archive member 9786 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9787 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9788 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9789 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9790 if test 64 = "${OBJECT_MODE-32}"; then 9791 shared_archive_member_spec=shr_64 9792 else 9793 shared_archive_member_spec=shr 9794 fi 9795 fi 9796 ;; 9797*) 9798 with_aix_soname=aix 9799 ;; 9800esac 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811# This can be used to rebuild libtool when needed 9812LIBTOOL_DEPS=$ltmain 9813 9814# Always use our own libtool. 9815LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846test -z "$LN_S" && LN_S="ln -s" 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861if test -n "${ZSH_VERSION+set}"; then 9862 setopt NO_GLOB_SUBST 9863fi 9864 9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9866$as_echo_n "checking for objdir... " >&6; } 9867if ${lt_cv_objdir+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 rm -f .libs 2>/dev/null 9871mkdir .libs 2>/dev/null 9872if test -d .libs; then 9873 lt_cv_objdir=.libs 9874else 9875 # MS-DOS does not allow filenames that begin with a dot. 9876 lt_cv_objdir=_libs 9877fi 9878rmdir .libs 2>/dev/null 9879fi 9880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9881$as_echo "$lt_cv_objdir" >&6; } 9882objdir=$lt_cv_objdir 9883 9884 9885 9886 9887 9888cat >>confdefs.h <<_ACEOF 9889#define LT_OBJDIR "$lt_cv_objdir/" 9890_ACEOF 9891 9892 9893 9894 9895case $host_os in 9896aix3*) 9897 # AIX sometimes has problems with the GCC collect2 program. For some 9898 # reason, if we set the COLLECT_NAMES environment variable, the problems 9899 # vanish in a puff of smoke. 9900 if test set != "${COLLECT_NAMES+set}"; then 9901 COLLECT_NAMES= 9902 export COLLECT_NAMES 9903 fi 9904 ;; 9905esac 9906 9907# Global variables: 9908ofile=libtool 9909can_build_shared=yes 9910 9911# All known linkers require a '.a' archive for static linking (except MSVC, 9912# which needs '.lib'). 9913libext=a 9914 9915with_gnu_ld=$lt_cv_prog_gnu_ld 9916 9917old_CC=$CC 9918old_CFLAGS=$CFLAGS 9919 9920# Set sane defaults for various variables 9921test -z "$CC" && CC=cc 9922test -z "$LTCC" && LTCC=$CC 9923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9924test -z "$LD" && LD=ld 9925test -z "$ac_objext" && ac_objext=o 9926 9927func_cc_basename $compiler 9928cc_basename=$func_cc_basename_result 9929 9930 9931# Only perform the check for file, if the check method requires it 9932test -z "$MAGIC_CMD" && MAGIC_CMD=file 9933case $deplibs_check_method in 9934file_magic*) 9935 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9937$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9938if ${lt_cv_path_MAGIC_CMD+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940else 9941 case $MAGIC_CMD in 9942[\\/*] | ?:[\\/]*) 9943 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9944 ;; 9945*) 9946 lt_save_MAGIC_CMD=$MAGIC_CMD 9947 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9949 for ac_dir in $ac_dummy; do 9950 IFS=$lt_save_ifs 9951 test -z "$ac_dir" && ac_dir=. 9952 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9953 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9954 if test -n "$file_magic_test_file"; then 9955 case $deplibs_check_method in 9956 "file_magic "*) 9957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9958 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9960 $EGREP "$file_magic_regex" > /dev/null; then 9961 : 9962 else 9963 cat <<_LT_EOF 1>&2 9964 9965*** Warning: the command libtool uses to detect shared libraries, 9966*** $file_magic_cmd, produces output that libtool cannot recognize. 9967*** The result is that libtool may fail to recognize shared libraries 9968*** as such. This will affect the creation of libtool libraries that 9969*** depend on shared libraries, but programs linked with such libtool 9970*** libraries will work regardless of this problem. Nevertheless, you 9971*** may want to report the problem to your system manager and/or to 9972*** bug-libtool@gnu.org 9973 9974_LT_EOF 9975 fi ;; 9976 esac 9977 fi 9978 break 9979 fi 9980 done 9981 IFS=$lt_save_ifs 9982 MAGIC_CMD=$lt_save_MAGIC_CMD 9983 ;; 9984esac 9985fi 9986 9987MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9988if test -n "$MAGIC_CMD"; then 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9990$as_echo "$MAGIC_CMD" >&6; } 9991else 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9993$as_echo "no" >&6; } 9994fi 9995 9996 9997 9998 9999 10000if test -z "$lt_cv_path_MAGIC_CMD"; then 10001 if test -n "$ac_tool_prefix"; then 10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10003$as_echo_n "checking for file... " >&6; } 10004if ${lt_cv_path_MAGIC_CMD+:} false; then : 10005 $as_echo_n "(cached) " >&6 10006else 10007 case $MAGIC_CMD in 10008[\\/*] | ?:[\\/]*) 10009 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10010 ;; 10011*) 10012 lt_save_MAGIC_CMD=$MAGIC_CMD 10013 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10014 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10015 for ac_dir in $ac_dummy; do 10016 IFS=$lt_save_ifs 10017 test -z "$ac_dir" && ac_dir=. 10018 if test -f "$ac_dir/file"; then 10019 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10020 if test -n "$file_magic_test_file"; then 10021 case $deplibs_check_method in 10022 "file_magic "*) 10023 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10024 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10025 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10026 $EGREP "$file_magic_regex" > /dev/null; then 10027 : 10028 else 10029 cat <<_LT_EOF 1>&2 10030 10031*** Warning: the command libtool uses to detect shared libraries, 10032*** $file_magic_cmd, produces output that libtool cannot recognize. 10033*** The result is that libtool may fail to recognize shared libraries 10034*** as such. This will affect the creation of libtool libraries that 10035*** depend on shared libraries, but programs linked with such libtool 10036*** libraries will work regardless of this problem. Nevertheless, you 10037*** may want to report the problem to your system manager and/or to 10038*** bug-libtool@gnu.org 10039 10040_LT_EOF 10041 fi ;; 10042 esac 10043 fi 10044 break 10045 fi 10046 done 10047 IFS=$lt_save_ifs 10048 MAGIC_CMD=$lt_save_MAGIC_CMD 10049 ;; 10050esac 10051fi 10052 10053MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10054if test -n "$MAGIC_CMD"; then 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10056$as_echo "$MAGIC_CMD" >&6; } 10057else 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10059$as_echo "no" >&6; } 10060fi 10061 10062 10063 else 10064 MAGIC_CMD=: 10065 fi 10066fi 10067 10068 fi 10069 ;; 10070esac 10071 10072# Use C for the default configuration in the libtool script 10073 10074lt_save_CC=$CC 10075ac_ext=c 10076ac_cpp='$CPP $CPPFLAGS' 10077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10079ac_compiler_gnu=$ac_cv_c_compiler_gnu 10080 10081 10082# Source file extension for C test sources. 10083ac_ext=c 10084 10085# Object file extension for compiled C test sources. 10086objext=o 10087objext=$objext 10088 10089# Code to be used in simple compile tests 10090lt_simple_compile_test_code="int some_variable = 0;" 10091 10092# Code to be used in simple link tests 10093lt_simple_link_test_code='int main(){return(0);}' 10094 10095 10096 10097 10098 10099 10100 10101# If no C compiler was specified, use CC. 10102LTCC=${LTCC-"$CC"} 10103 10104# If no C compiler flags were specified, use CFLAGS. 10105LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10106 10107# Allow CC to be a program name with arguments. 10108compiler=$CC 10109 10110# Save the default compiler, since it gets overwritten when the other 10111# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10112compiler_DEFAULT=$CC 10113 10114# save warnings/boilerplate of simple test code 10115ac_outfile=conftest.$ac_objext 10116echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10117eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10118_lt_compiler_boilerplate=`cat conftest.err` 10119$RM conftest* 10120 10121ac_outfile=conftest.$ac_objext 10122echo "$lt_simple_link_test_code" >conftest.$ac_ext 10123eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10124_lt_linker_boilerplate=`cat conftest.err` 10125$RM -r conftest* 10126 10127 10128## CAVEAT EMPTOR: 10129## There is no encapsulation within the following macros, do not change 10130## the running order or otherwise move them around unless you know exactly 10131## what you are doing... 10132if test -n "$compiler"; then 10133 10134lt_prog_compiler_no_builtin_flag= 10135 10136if test yes = "$GCC"; then 10137 case $cc_basename in 10138 nvcc*) 10139 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10140 *) 10141 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10142 esac 10143 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10145$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10146if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 lt_cv_prog_compiler_rtti_exceptions=no 10150 ac_outfile=conftest.$ac_objext 10151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10152 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10153 # Insert the option either (1) after the last *FLAGS variable, or 10154 # (2) before a word containing "conftest.", or (3) at the end. 10155 # Note that $ac_compile itself does not contain backslashes and begins 10156 # with a dollar sign (not a hyphen), so the echo should work correctly. 10157 # The option is referenced via a variable to avoid confusing sed. 10158 lt_compile=`echo "$ac_compile" | $SED \ 10159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10161 -e 's:$: $lt_compiler_flag:'` 10162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10163 (eval "$lt_compile" 2>conftest.err) 10164 ac_status=$? 10165 cat conftest.err >&5 10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10167 if (exit $ac_status) && test -s "$ac_outfile"; then 10168 # The compiler can only warn and ignore the option if not recognized 10169 # So say no if there are warnings other than the usual output. 10170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10173 lt_cv_prog_compiler_rtti_exceptions=yes 10174 fi 10175 fi 10176 $RM conftest* 10177 10178fi 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10180$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10181 10182if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10184else 10185 : 10186fi 10187 10188fi 10189 10190 10191 10192 10193 10194 10195 lt_prog_compiler_wl= 10196lt_prog_compiler_pic= 10197lt_prog_compiler_static= 10198 10199 10200 if test yes = "$GCC"; then 10201 lt_prog_compiler_wl='-Wl,' 10202 lt_prog_compiler_static='-static' 10203 10204 case $host_os in 10205 aix*) 10206 # All AIX code is PIC. 10207 if test ia64 = "$host_cpu"; then 10208 # AIX 5 now supports IA64 processor 10209 lt_prog_compiler_static='-Bstatic' 10210 fi 10211 lt_prog_compiler_pic='-fPIC' 10212 ;; 10213 10214 amigaos*) 10215 case $host_cpu in 10216 powerpc) 10217 # see comment about AmigaOS4 .so support 10218 lt_prog_compiler_pic='-fPIC' 10219 ;; 10220 m68k) 10221 # FIXME: we need at least 68020 code to build shared libraries, but 10222 # adding the '-m68020' flag to GCC prevents building anything better, 10223 # like '-m68040'. 10224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10225 ;; 10226 esac 10227 ;; 10228 10229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10230 # PIC is the default for these OSes. 10231 ;; 10232 10233 mingw* | cygwin* | pw32* | os2* | cegcc*) 10234 # This hack is so that the source file can tell whether it is being 10235 # built for inclusion in a dll (and should export symbols for example). 10236 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10237 # (--disable-auto-import) libraries 10238 lt_prog_compiler_pic='-DDLL_EXPORT' 10239 case $host_os in 10240 os2*) 10241 lt_prog_compiler_static='$wl-static' 10242 ;; 10243 esac 10244 ;; 10245 10246 darwin* | rhapsody*) 10247 # PIC is the default on this platform 10248 # Common symbols not allowed in MH_DYLIB files 10249 lt_prog_compiler_pic='-fno-common' 10250 ;; 10251 10252 haiku*) 10253 # PIC is the default for Haiku. 10254 # The "-static" flag exists, but is broken. 10255 lt_prog_compiler_static= 10256 ;; 10257 10258 hpux*) 10259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10261 # sets the default TLS model and affects inlining. 10262 case $host_cpu in 10263 hppa*64*) 10264 # +Z the default 10265 ;; 10266 *) 10267 lt_prog_compiler_pic='-fPIC' 10268 ;; 10269 esac 10270 ;; 10271 10272 interix[3-9]*) 10273 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10274 # Instead, we relocate shared libraries at runtime. 10275 ;; 10276 10277 msdosdjgpp*) 10278 # Just because we use GCC doesn't mean we suddenly get shared libraries 10279 # on systems that don't support them. 10280 lt_prog_compiler_can_build_shared=no 10281 enable_shared=no 10282 ;; 10283 10284 *nto* | *qnx*) 10285 # QNX uses GNU C++, but need to define -shared option too, otherwise 10286 # it will coredump. 10287 lt_prog_compiler_pic='-fPIC -shared' 10288 ;; 10289 10290 sysv4*MP*) 10291 if test -d /usr/nec; then 10292 lt_prog_compiler_pic=-Kconform_pic 10293 fi 10294 ;; 10295 10296 *) 10297 lt_prog_compiler_pic='-fPIC' 10298 ;; 10299 esac 10300 10301 case $cc_basename in 10302 nvcc*) # Cuda Compiler Driver 2.2 10303 lt_prog_compiler_wl='-Xlinker ' 10304 if test -n "$lt_prog_compiler_pic"; then 10305 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10306 fi 10307 ;; 10308 esac 10309 else 10310 # PORTME Check for flag to pass linker flags through the system compiler. 10311 case $host_os in 10312 aix*) 10313 lt_prog_compiler_wl='-Wl,' 10314 if test ia64 = "$host_cpu"; then 10315 # AIX 5 now supports IA64 processor 10316 lt_prog_compiler_static='-Bstatic' 10317 else 10318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10319 fi 10320 ;; 10321 10322 darwin* | rhapsody*) 10323 # PIC is the default on this platform 10324 # Common symbols not allowed in MH_DYLIB files 10325 lt_prog_compiler_pic='-fno-common' 10326 case $cc_basename in 10327 nagfor*) 10328 # NAG Fortran compiler 10329 lt_prog_compiler_wl='-Wl,-Wl,,' 10330 lt_prog_compiler_pic='-PIC' 10331 lt_prog_compiler_static='-Bstatic' 10332 ;; 10333 esac 10334 ;; 10335 10336 mingw* | cygwin* | pw32* | os2* | cegcc*) 10337 # This hack is so that the source file can tell whether it is being 10338 # built for inclusion in a dll (and should export symbols for example). 10339 lt_prog_compiler_pic='-DDLL_EXPORT' 10340 case $host_os in 10341 os2*) 10342 lt_prog_compiler_static='$wl-static' 10343 ;; 10344 esac 10345 ;; 10346 10347 hpux9* | hpux10* | hpux11*) 10348 lt_prog_compiler_wl='-Wl,' 10349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10350 # not for PA HP-UX. 10351 case $host_cpu in 10352 hppa*64*|ia64*) 10353 # +Z the default 10354 ;; 10355 *) 10356 lt_prog_compiler_pic='+Z' 10357 ;; 10358 esac 10359 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10360 lt_prog_compiler_static='$wl-a ${wl}archive' 10361 ;; 10362 10363 irix5* | irix6* | nonstopux*) 10364 lt_prog_compiler_wl='-Wl,' 10365 # PIC (with -KPIC) is the default. 10366 lt_prog_compiler_static='-non_shared' 10367 ;; 10368 10369 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10370 case $cc_basename in 10371 # old Intel for x86_64, which still supported -KPIC. 10372 ecc*) 10373 lt_prog_compiler_wl='-Wl,' 10374 lt_prog_compiler_pic='-KPIC' 10375 lt_prog_compiler_static='-static' 10376 ;; 10377 # icc used to be incompatible with GCC. 10378 # ICC 10 doesn't accept -KPIC any more. 10379 icc* | ifort*) 10380 lt_prog_compiler_wl='-Wl,' 10381 lt_prog_compiler_pic='-fPIC' 10382 lt_prog_compiler_static='-static' 10383 ;; 10384 # Lahey Fortran 8.1. 10385 lf95*) 10386 lt_prog_compiler_wl='-Wl,' 10387 lt_prog_compiler_pic='--shared' 10388 lt_prog_compiler_static='--static' 10389 ;; 10390 nagfor*) 10391 # NAG Fortran compiler 10392 lt_prog_compiler_wl='-Wl,-Wl,,' 10393 lt_prog_compiler_pic='-PIC' 10394 lt_prog_compiler_static='-Bstatic' 10395 ;; 10396 tcc*) 10397 # Fabrice Bellard et al's Tiny C Compiler 10398 lt_prog_compiler_wl='-Wl,' 10399 lt_prog_compiler_pic='-fPIC' 10400 lt_prog_compiler_static='-static' 10401 ;; 10402 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10403 # Portland Group compilers (*not* the Pentium gcc compiler, 10404 # which looks to be a dead project) 10405 lt_prog_compiler_wl='-Wl,' 10406 lt_prog_compiler_pic='-fpic' 10407 lt_prog_compiler_static='-Bstatic' 10408 ;; 10409 ccc*) 10410 lt_prog_compiler_wl='-Wl,' 10411 # All Alpha code is PIC. 10412 lt_prog_compiler_static='-non_shared' 10413 ;; 10414 xl* | bgxl* | bgf* | mpixl*) 10415 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10416 lt_prog_compiler_wl='-Wl,' 10417 lt_prog_compiler_pic='-qpic' 10418 lt_prog_compiler_static='-qstaticlink' 10419 ;; 10420 *) 10421 case `$CC -V 2>&1 | sed 5q` in 10422 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10423 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10424 lt_prog_compiler_pic='-KPIC' 10425 lt_prog_compiler_static='-Bstatic' 10426 lt_prog_compiler_wl='' 10427 ;; 10428 *Sun\ F* | *Sun*Fortran*) 10429 lt_prog_compiler_pic='-KPIC' 10430 lt_prog_compiler_static='-Bstatic' 10431 lt_prog_compiler_wl='-Qoption ld ' 10432 ;; 10433 *Sun\ C*) 10434 # Sun C 5.9 10435 lt_prog_compiler_pic='-KPIC' 10436 lt_prog_compiler_static='-Bstatic' 10437 lt_prog_compiler_wl='-Wl,' 10438 ;; 10439 *Intel*\ [CF]*Compiler*) 10440 lt_prog_compiler_wl='-Wl,' 10441 lt_prog_compiler_pic='-fPIC' 10442 lt_prog_compiler_static='-static' 10443 ;; 10444 *Portland\ Group*) 10445 lt_prog_compiler_wl='-Wl,' 10446 lt_prog_compiler_pic='-fpic' 10447 lt_prog_compiler_static='-Bstatic' 10448 ;; 10449 esac 10450 ;; 10451 esac 10452 ;; 10453 10454 newsos6) 10455 lt_prog_compiler_pic='-KPIC' 10456 lt_prog_compiler_static='-Bstatic' 10457 ;; 10458 10459 *nto* | *qnx*) 10460 # QNX uses GNU C++, but need to define -shared option too, otherwise 10461 # it will coredump. 10462 lt_prog_compiler_pic='-fPIC -shared' 10463 ;; 10464 10465 osf3* | osf4* | osf5*) 10466 lt_prog_compiler_wl='-Wl,' 10467 # All OSF/1 code is PIC. 10468 lt_prog_compiler_static='-non_shared' 10469 ;; 10470 10471 rdos*) 10472 lt_prog_compiler_static='-non_shared' 10473 ;; 10474 10475 solaris*) 10476 lt_prog_compiler_pic='-KPIC' 10477 lt_prog_compiler_static='-Bstatic' 10478 case $cc_basename in 10479 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10480 lt_prog_compiler_wl='-Qoption ld ';; 10481 *) 10482 lt_prog_compiler_wl='-Wl,';; 10483 esac 10484 ;; 10485 10486 sunos4*) 10487 lt_prog_compiler_wl='-Qoption ld ' 10488 lt_prog_compiler_pic='-PIC' 10489 lt_prog_compiler_static='-Bstatic' 10490 ;; 10491 10492 sysv4 | sysv4.2uw2* | sysv4.3*) 10493 lt_prog_compiler_wl='-Wl,' 10494 lt_prog_compiler_pic='-KPIC' 10495 lt_prog_compiler_static='-Bstatic' 10496 ;; 10497 10498 sysv4*MP*) 10499 if test -d /usr/nec; then 10500 lt_prog_compiler_pic='-Kconform_pic' 10501 lt_prog_compiler_static='-Bstatic' 10502 fi 10503 ;; 10504 10505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10506 lt_prog_compiler_wl='-Wl,' 10507 lt_prog_compiler_pic='-KPIC' 10508 lt_prog_compiler_static='-Bstatic' 10509 ;; 10510 10511 unicos*) 10512 lt_prog_compiler_wl='-Wl,' 10513 lt_prog_compiler_can_build_shared=no 10514 ;; 10515 10516 uts4*) 10517 lt_prog_compiler_pic='-pic' 10518 lt_prog_compiler_static='-Bstatic' 10519 ;; 10520 10521 *) 10522 lt_prog_compiler_can_build_shared=no 10523 ;; 10524 esac 10525 fi 10526 10527case $host_os in 10528 # For platforms that do not support PIC, -DPIC is meaningless: 10529 *djgpp*) 10530 lt_prog_compiler_pic= 10531 ;; 10532 *) 10533 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10534 ;; 10535esac 10536 10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10538$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10539if ${lt_cv_prog_compiler_pic+:} false; then : 10540 $as_echo_n "(cached) " >&6 10541else 10542 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10543fi 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10545$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10546lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10547 10548# 10549# Check to make sure the PIC flag actually works. 10550# 10551if test -n "$lt_prog_compiler_pic"; then 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10553$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10554if ${lt_cv_prog_compiler_pic_works+:} false; then : 10555 $as_echo_n "(cached) " >&6 10556else 10557 lt_cv_prog_compiler_pic_works=no 10558 ac_outfile=conftest.$ac_objext 10559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10560 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10561 # Insert the option either (1) after the last *FLAGS variable, or 10562 # (2) before a word containing "conftest.", or (3) at the end. 10563 # Note that $ac_compile itself does not contain backslashes and begins 10564 # with a dollar sign (not a hyphen), so the echo should work correctly. 10565 # The option is referenced via a variable to avoid confusing sed. 10566 lt_compile=`echo "$ac_compile" | $SED \ 10567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10569 -e 's:$: $lt_compiler_flag:'` 10570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10571 (eval "$lt_compile" 2>conftest.err) 10572 ac_status=$? 10573 cat conftest.err >&5 10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10575 if (exit $ac_status) && test -s "$ac_outfile"; then 10576 # The compiler can only warn and ignore the option if not recognized 10577 # So say no if there are warnings other than the usual output. 10578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10581 lt_cv_prog_compiler_pic_works=yes 10582 fi 10583 fi 10584 $RM conftest* 10585 10586fi 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10588$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10589 10590if test yes = "$lt_cv_prog_compiler_pic_works"; then 10591 case $lt_prog_compiler_pic in 10592 "" | " "*) ;; 10593 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10594 esac 10595else 10596 lt_prog_compiler_pic= 10597 lt_prog_compiler_can_build_shared=no 10598fi 10599 10600fi 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612# 10613# Check to make sure the static flag actually works. 10614# 10615wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10617$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10618if ${lt_cv_prog_compiler_static_works+:} false; then : 10619 $as_echo_n "(cached) " >&6 10620else 10621 lt_cv_prog_compiler_static_works=no 10622 save_LDFLAGS=$LDFLAGS 10623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10624 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10626 # The linker can only warn and ignore the option if not recognized 10627 # So say no if there are warnings 10628 if test -s conftest.err; then 10629 # Append any errors to the config.log. 10630 cat conftest.err 1>&5 10631 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10633 if diff conftest.exp conftest.er2 >/dev/null; then 10634 lt_cv_prog_compiler_static_works=yes 10635 fi 10636 else 10637 lt_cv_prog_compiler_static_works=yes 10638 fi 10639 fi 10640 $RM -r conftest* 10641 LDFLAGS=$save_LDFLAGS 10642 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10645$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10646 10647if test yes = "$lt_cv_prog_compiler_static_works"; then 10648 : 10649else 10650 lt_prog_compiler_static= 10651fi 10652 10653 10654 10655 10656 10657 10658 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10661if ${lt_cv_prog_compiler_c_o+:} false; then : 10662 $as_echo_n "(cached) " >&6 10663else 10664 lt_cv_prog_compiler_c_o=no 10665 $RM -r conftest 2>/dev/null 10666 mkdir conftest 10667 cd conftest 10668 mkdir out 10669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10670 10671 lt_compiler_flag="-o out/conftest2.$ac_objext" 10672 # Insert the option either (1) after the last *FLAGS variable, or 10673 # (2) before a word containing "conftest.", or (3) at the end. 10674 # Note that $ac_compile itself does not contain backslashes and begins 10675 # with a dollar sign (not a hyphen), so the echo should work correctly. 10676 lt_compile=`echo "$ac_compile" | $SED \ 10677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10679 -e 's:$: $lt_compiler_flag:'` 10680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10681 (eval "$lt_compile" 2>out/conftest.err) 10682 ac_status=$? 10683 cat out/conftest.err >&5 10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10685 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10686 then 10687 # The compiler can only warn and ignore the option if not recognized 10688 # So say no if there are warnings 10689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10692 lt_cv_prog_compiler_c_o=yes 10693 fi 10694 fi 10695 chmod u+w . 2>&5 10696 $RM conftest* 10697 # SGI C++ compiler will create directory out/ii_files/ for 10698 # template instantiation 10699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10700 $RM out/* && rmdir out 10701 cd .. 10702 $RM -r conftest 10703 $RM conftest* 10704 10705fi 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10707$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10708 10709 10710 10711 10712 10713 10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10716if ${lt_cv_prog_compiler_c_o+:} false; then : 10717 $as_echo_n "(cached) " >&6 10718else 10719 lt_cv_prog_compiler_c_o=no 10720 $RM -r conftest 2>/dev/null 10721 mkdir conftest 10722 cd conftest 10723 mkdir out 10724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10725 10726 lt_compiler_flag="-o out/conftest2.$ac_objext" 10727 # Insert the option either (1) after the last *FLAGS variable, or 10728 # (2) before a word containing "conftest.", or (3) at the end. 10729 # Note that $ac_compile itself does not contain backslashes and begins 10730 # with a dollar sign (not a hyphen), so the echo should work correctly. 10731 lt_compile=`echo "$ac_compile" | $SED \ 10732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10734 -e 's:$: $lt_compiler_flag:'` 10735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10736 (eval "$lt_compile" 2>out/conftest.err) 10737 ac_status=$? 10738 cat out/conftest.err >&5 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10740 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10741 then 10742 # The compiler can only warn and ignore the option if not recognized 10743 # So say no if there are warnings 10744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10747 lt_cv_prog_compiler_c_o=yes 10748 fi 10749 fi 10750 chmod u+w . 2>&5 10751 $RM conftest* 10752 # SGI C++ compiler will create directory out/ii_files/ for 10753 # template instantiation 10754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10755 $RM out/* && rmdir out 10756 cd .. 10757 $RM -r conftest 10758 $RM conftest* 10759 10760fi 10761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10762$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10763 10764 10765 10766 10767hard_links=nottested 10768if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10769 # do not overwrite the value of need_locks provided by the user 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10771$as_echo_n "checking if we can lock with hard links... " >&6; } 10772 hard_links=yes 10773 $RM conftest* 10774 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10775 touch conftest.a 10776 ln conftest.a conftest.b 2>&5 || hard_links=no 10777 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10779$as_echo "$hard_links" >&6; } 10780 if test no = "$hard_links"; then 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10782$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10783 need_locks=warn 10784 fi 10785else 10786 need_locks=no 10787fi 10788 10789 10790 10791 10792 10793 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10795$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10796 10797 runpath_var= 10798 allow_undefined_flag= 10799 always_export_symbols=no 10800 archive_cmds= 10801 archive_expsym_cmds= 10802 compiler_needs_object=no 10803 enable_shared_with_static_runtimes=no 10804 export_dynamic_flag_spec= 10805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10806 hardcode_automatic=no 10807 hardcode_direct=no 10808 hardcode_direct_absolute=no 10809 hardcode_libdir_flag_spec= 10810 hardcode_libdir_separator= 10811 hardcode_minus_L=no 10812 hardcode_shlibpath_var=unsupported 10813 inherit_rpath=no 10814 link_all_deplibs=unknown 10815 module_cmds= 10816 module_expsym_cmds= 10817 old_archive_from_new_cmds= 10818 old_archive_from_expsyms_cmds= 10819 thread_safe_flag_spec= 10820 whole_archive_flag_spec= 10821 # include_expsyms should be a list of space-separated symbols to be *always* 10822 # included in the symbol list 10823 include_expsyms= 10824 # exclude_expsyms can be an extended regexp of symbols to exclude 10825 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10826 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10827 # as well as any symbol that contains 'd'. 10828 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10829 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10830 # platforms (ab)use it in PIC code, but their linkers get confused if 10831 # the symbol is explicitly referenced. Since portable code cannot 10832 # rely on this symbol name, it's probably fine to never include it in 10833 # preloaded symbol tables. 10834 # Exclude shared library initialization/finalization symbols. 10835 extract_expsyms_cmds= 10836 10837 case $host_os in 10838 cygwin* | mingw* | pw32* | cegcc*) 10839 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10840 # When not using gcc, we currently assume that we are using 10841 # Microsoft Visual C++. 10842 if test yes != "$GCC"; then 10843 with_gnu_ld=no 10844 fi 10845 ;; 10846 interix*) 10847 # we just hope/assume this is gcc and not c89 (= MSVC++) 10848 with_gnu_ld=yes 10849 ;; 10850 openbsd* | bitrig*) 10851 with_gnu_ld=no 10852 ;; 10853 esac 10854 10855 ld_shlibs=yes 10856 10857 # On some targets, GNU ld is compatible enough with the native linker 10858 # that we're better off using the native interface for both. 10859 lt_use_gnu_ld_interface=no 10860 if test yes = "$with_gnu_ld"; then 10861 case $host_os in 10862 aix*) 10863 # The AIX port of GNU ld has always aspired to compatibility 10864 # with the native linker. However, as the warning in the GNU ld 10865 # block says, versions before 2.19.5* couldn't really create working 10866 # shared libraries, regardless of the interface used. 10867 case `$LD -v 2>&1` in 10868 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10869 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10870 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10871 *) 10872 lt_use_gnu_ld_interface=yes 10873 ;; 10874 esac 10875 ;; 10876 *) 10877 lt_use_gnu_ld_interface=yes 10878 ;; 10879 esac 10880 fi 10881 10882 if test yes = "$lt_use_gnu_ld_interface"; then 10883 # If archive_cmds runs LD, not CC, wlarc should be empty 10884 wlarc='$wl' 10885 10886 # Set some defaults for GNU ld with shared library support. These 10887 # are reset later if shared libraries are not supported. Putting them 10888 # here allows them to be overridden if necessary. 10889 runpath_var=LD_RUN_PATH 10890 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10891 export_dynamic_flag_spec='$wl--export-dynamic' 10892 # ancient GNU ld didn't support --whole-archive et. al. 10893 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10894 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10895 else 10896 whole_archive_flag_spec= 10897 fi 10898 supports_anon_versioning=no 10899 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10900 *GNU\ gold*) supports_anon_versioning=yes ;; 10901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10904 *\ 2.11.*) ;; # other 2.11 versions 10905 *) supports_anon_versioning=yes ;; 10906 esac 10907 10908 # See if GNU ld supports shared libraries. 10909 case $host_os in 10910 aix[3-9]*) 10911 # On AIX/PPC, the GNU linker is very broken 10912 if test ia64 != "$host_cpu"; then 10913 ld_shlibs=no 10914 cat <<_LT_EOF 1>&2 10915 10916*** Warning: the GNU linker, at least up to release 2.19, is reported 10917*** to be unable to reliably create shared libraries on AIX. 10918*** Therefore, libtool is disabling shared libraries support. If you 10919*** really care for shared libraries, you may want to install binutils 10920*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10921*** You will then need to restart the configuration process. 10922 10923_LT_EOF 10924 fi 10925 ;; 10926 10927 amigaos*) 10928 case $host_cpu in 10929 powerpc) 10930 # see comment about AmigaOS4 .so support 10931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10932 archive_expsym_cmds='' 10933 ;; 10934 m68k) 10935 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)' 10936 hardcode_libdir_flag_spec='-L$libdir' 10937 hardcode_minus_L=yes 10938 ;; 10939 esac 10940 ;; 10941 10942 beos*) 10943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10944 allow_undefined_flag=unsupported 10945 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10946 # support --undefined. This deserves some investigation. FIXME 10947 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10948 else 10949 ld_shlibs=no 10950 fi 10951 ;; 10952 10953 cygwin* | mingw* | pw32* | cegcc*) 10954 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10955 # as there is no search path for DLLs. 10956 hardcode_libdir_flag_spec='-L$libdir' 10957 export_dynamic_flag_spec='$wl--export-all-symbols' 10958 allow_undefined_flag=unsupported 10959 always_export_symbols=no 10960 enable_shared_with_static_runtimes=yes 10961 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' 10962 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10963 10964 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10966 # If the export-symbols file already is a .def file, use it as 10967 # is; otherwise, prepend EXPORTS... 10968 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10969 cp $export_symbols $output_objdir/$soname.def; 10970 else 10971 echo EXPORTS > $output_objdir/$soname.def; 10972 cat $export_symbols >> $output_objdir/$soname.def; 10973 fi~ 10974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10975 else 10976 ld_shlibs=no 10977 fi 10978 ;; 10979 10980 haiku*) 10981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10982 link_all_deplibs=yes 10983 ;; 10984 10985 os2*) 10986 hardcode_libdir_flag_spec='-L$libdir' 10987 hardcode_minus_L=yes 10988 allow_undefined_flag=unsupported 10989 shrext_cmds=.dll 10990 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10991 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10992 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10993 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10994 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10995 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10996 emximp -o $lib $output_objdir/$libname.def' 10997 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10998 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10999 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11000 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11001 prefix_cmds="$SED"~ 11002 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11003 prefix_cmds="$prefix_cmds -e 1d"; 11004 fi~ 11005 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11006 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11007 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11008 emximp -o $lib $output_objdir/$libname.def' 11009 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11010 enable_shared_with_static_runtimes=yes 11011 ;; 11012 11013 interix[3-9]*) 11014 hardcode_direct=no 11015 hardcode_shlibpath_var=no 11016 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11017 export_dynamic_flag_spec='$wl-E' 11018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11019 # Instead, shared libraries are loaded at an image base (0x10000000 by 11020 # default) and relocated if they conflict, which is a slow very memory 11021 # consuming and fragmenting process. To avoid this, we pick a random, 11022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11023 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11024 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11025 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' 11026 ;; 11027 11028 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11029 tmp_diet=no 11030 if test linux-dietlibc = "$host_os"; then 11031 case $cc_basename in 11032 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11033 esac 11034 fi 11035 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11036 && test no = "$tmp_diet" 11037 then 11038 tmp_addflag=' $pic_flag' 11039 tmp_sharedflag='-shared' 11040 case $cc_basename,$host_cpu in 11041 pgcc*) # Portland Group C compiler 11042 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' 11043 tmp_addflag=' $pic_flag' 11044 ;; 11045 pgf77* | pgf90* | pgf95* | pgfortran*) 11046 # Portland Group f77 and f90 compilers 11047 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' 11048 tmp_addflag=' $pic_flag -Mnomain' ;; 11049 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11050 tmp_addflag=' -i_dynamic' ;; 11051 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11052 tmp_addflag=' -i_dynamic -nofor_main' ;; 11053 ifc* | ifort*) # Intel Fortran compiler 11054 tmp_addflag=' -nofor_main' ;; 11055 lf95*) # Lahey Fortran 8.1 11056 whole_archive_flag_spec= 11057 tmp_sharedflag='--shared' ;; 11058 nagfor*) # NAGFOR 5.3 11059 tmp_sharedflag='-Wl,-shared' ;; 11060 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11061 tmp_sharedflag='-qmkshrobj' 11062 tmp_addflag= ;; 11063 nvcc*) # Cuda Compiler Driver 2.2 11064 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' 11065 compiler_needs_object=yes 11066 ;; 11067 esac 11068 case `$CC -V 2>&1 | sed 5q` in 11069 *Sun\ C*) # Sun C 5.9 11070 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' 11071 compiler_needs_object=yes 11072 tmp_sharedflag='-G' ;; 11073 *Sun\ F*) # Sun Fortran 8.3 11074 tmp_sharedflag='-G' ;; 11075 esac 11076 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11077 11078 if test yes = "$supports_anon_versioning"; then 11079 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11081 echo "local: *; };" >> $output_objdir/$libname.ver~ 11082 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11083 fi 11084 11085 case $cc_basename in 11086 tcc*) 11087 export_dynamic_flag_spec='-rdynamic' 11088 ;; 11089 xlf* | bgf* | bgxlf* | mpixlf*) 11090 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11091 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11093 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11094 if test yes = "$supports_anon_versioning"; then 11095 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11096 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11097 echo "local: *; };" >> $output_objdir/$libname.ver~ 11098 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11099 fi 11100 ;; 11101 esac 11102 else 11103 ld_shlibs=no 11104 fi 11105 ;; 11106 11107 netbsd*) 11108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11109 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11110 wlarc= 11111 else 11112 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11113 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11114 fi 11115 ;; 11116 11117 solaris*) 11118 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11119 ld_shlibs=no 11120 cat <<_LT_EOF 1>&2 11121 11122*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11123*** create shared libraries on Solaris systems. Therefore, libtool 11124*** is disabling shared libraries support. We urge you to upgrade GNU 11125*** binutils to release 2.9.1 or newer. Another option is to modify 11126*** your PATH or compiler configuration so that the native linker is 11127*** used, and then restart. 11128 11129_LT_EOF 11130 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11133 else 11134 ld_shlibs=no 11135 fi 11136 ;; 11137 11138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11139 case `$LD -v 2>&1` in 11140 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11141 ld_shlibs=no 11142 cat <<_LT_EOF 1>&2 11143 11144*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11145*** reliably create shared libraries on SCO systems. Therefore, libtool 11146*** is disabling shared libraries support. We urge you to upgrade GNU 11147*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11148*** your PATH or compiler configuration so that the native linker is 11149*** used, and then restart. 11150 11151_LT_EOF 11152 ;; 11153 *) 11154 # For security reasons, it is highly recommended that you always 11155 # use absolute paths for naming shared libraries, and exclude the 11156 # DT_RUNPATH tag from executables and libraries. But doing so 11157 # requires that you compile everything twice, which is a pain. 11158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11159 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11162 else 11163 ld_shlibs=no 11164 fi 11165 ;; 11166 esac 11167 ;; 11168 11169 sunos4*) 11170 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11171 wlarc= 11172 hardcode_direct=yes 11173 hardcode_shlibpath_var=no 11174 ;; 11175 11176 *) 11177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11178 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11179 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11180 else 11181 ld_shlibs=no 11182 fi 11183 ;; 11184 esac 11185 11186 if test no = "$ld_shlibs"; then 11187 runpath_var= 11188 hardcode_libdir_flag_spec= 11189 export_dynamic_flag_spec= 11190 whole_archive_flag_spec= 11191 fi 11192 else 11193 # PORTME fill in a description of your system's linker (not GNU ld) 11194 case $host_os in 11195 aix3*) 11196 allow_undefined_flag=unsupported 11197 always_export_symbols=yes 11198 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' 11199 # Note: this linker hardcodes the directories in LIBPATH if there 11200 # are no directories specified by -L. 11201 hardcode_minus_L=yes 11202 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11203 # Neither direct hardcoding nor static linking is supported with a 11204 # broken collect2. 11205 hardcode_direct=unsupported 11206 fi 11207 ;; 11208 11209 aix[4-9]*) 11210 if test ia64 = "$host_cpu"; then 11211 # On IA64, the linker does run time linking by default, so we don't 11212 # have to do anything special. 11213 aix_use_runtimelinking=no 11214 exp_sym_flag='-Bexport' 11215 no_entry_flag= 11216 else 11217 # If we're using GNU nm, then we don't want the "-C" option. 11218 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11219 # Without the "-l" option, or with the "-B" option, AIX nm treats 11220 # weak defined symbols like other global defined symbols, whereas 11221 # GNU nm marks them as "W". 11222 # While the 'weak' keyword is ignored in the Export File, we need 11223 # it in the Import File for the 'aix-soname' feature, so we have 11224 # to replace the "-B" option with "-P" for AIX nm. 11225 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11226 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' 11227 else 11228 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' 11229 fi 11230 aix_use_runtimelinking=no 11231 11232 # Test if we are trying to use run time linking or normal 11233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11234 # have runtime linking enabled, and use it for executables. 11235 # For shared libraries, we enable/disable runtime linking 11236 # depending on the kind of the shared library created - 11237 # when "with_aix_soname,aix_use_runtimelinking" is: 11238 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11239 # "aix,yes" lib.so shared, rtl:yes, for executables 11240 # lib.a static archive 11241 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11242 # lib.a(lib.so.V) shared, rtl:no, for executables 11243 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11244 # lib.a(lib.so.V) shared, rtl:no 11245 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11246 # lib.a static archive 11247 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11248 for ld_flag in $LDFLAGS; do 11249 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11250 aix_use_runtimelinking=yes 11251 break 11252 fi 11253 done 11254 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11255 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11256 # so we don't have lib.a shared libs to link our executables. 11257 # We have to force runtime linking in this case. 11258 aix_use_runtimelinking=yes 11259 LDFLAGS="$LDFLAGS -Wl,-brtl" 11260 fi 11261 ;; 11262 esac 11263 11264 exp_sym_flag='-bexport' 11265 no_entry_flag='-bnoentry' 11266 fi 11267 11268 # When large executables or shared objects are built, AIX ld can 11269 # have problems creating the table of contents. If linking a library 11270 # or program results in "error TOC overflow" add -mminimal-toc to 11271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11273 11274 archive_cmds='' 11275 hardcode_direct=yes 11276 hardcode_direct_absolute=yes 11277 hardcode_libdir_separator=':' 11278 link_all_deplibs=yes 11279 file_list_spec='$wl-f,' 11280 case $with_aix_soname,$aix_use_runtimelinking in 11281 aix,*) ;; # traditional, no import file 11282 svr4,* | *,yes) # use import file 11283 # The Import File defines what to hardcode. 11284 hardcode_direct=no 11285 hardcode_direct_absolute=no 11286 ;; 11287 esac 11288 11289 if test yes = "$GCC"; then 11290 case $host_os in aix4.[012]|aix4.[012].*) 11291 # We only want to do this on AIX 4.2 and lower, the check 11292 # below for broken collect2 doesn't work under 4.3+ 11293 collect2name=`$CC -print-prog-name=collect2` 11294 if test -f "$collect2name" && 11295 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11296 then 11297 # We have reworked collect2 11298 : 11299 else 11300 # We have old collect2 11301 hardcode_direct=unsupported 11302 # It fails to find uninstalled libraries when the uninstalled 11303 # path is not listed in the libpath. Setting hardcode_minus_L 11304 # to unsupported forces relinking 11305 hardcode_minus_L=yes 11306 hardcode_libdir_flag_spec='-L$libdir' 11307 hardcode_libdir_separator= 11308 fi 11309 ;; 11310 esac 11311 shared_flag='-shared' 11312 if test yes = "$aix_use_runtimelinking"; then 11313 shared_flag="$shared_flag "'$wl-G' 11314 fi 11315 # Need to ensure runtime linking is disabled for the traditional 11316 # shared library, or the linker may eventually find shared libraries 11317 # /with/ Import File - we do not want to mix them. 11318 shared_flag_aix='-shared' 11319 shared_flag_svr4='-shared $wl-G' 11320 else 11321 # not using gcc 11322 if test ia64 = "$host_cpu"; then 11323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11324 # chokes on -Wl,-G. The following line is correct: 11325 shared_flag='-G' 11326 else 11327 if test yes = "$aix_use_runtimelinking"; then 11328 shared_flag='$wl-G' 11329 else 11330 shared_flag='$wl-bM:SRE' 11331 fi 11332 shared_flag_aix='$wl-bM:SRE' 11333 shared_flag_svr4='$wl-G' 11334 fi 11335 fi 11336 11337 export_dynamic_flag_spec='$wl-bexpall' 11338 # It seems that -bexpall does not export symbols beginning with 11339 # underscore (_), so it is better to generate a list of symbols to export. 11340 always_export_symbols=yes 11341 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11342 # Warning - without using the other runtime loading flags (-brtl), 11343 # -berok will link without error, but may produce a broken library. 11344 allow_undefined_flag='-berok' 11345 # Determine the default libpath from the value encoded in an 11346 # empty executable. 11347 if test set = "${lt_cv_aix_libpath+set}"; then 11348 aix_libpath=$lt_cv_aix_libpath 11349else 11350 if ${lt_cv_aix_libpath_+:} false; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354/* end confdefs.h. */ 11355 11356int 11357main () 11358{ 11359 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364if ac_fn_c_try_link "$LINENO"; then : 11365 11366 lt_aix_libpath_sed=' 11367 /Import File Strings/,/^$/ { 11368 /^0/ { 11369 s/^0 *\([^ ]*\) *$/\1/ 11370 p 11371 } 11372 }' 11373 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11374 # Check for a 64-bit object if we didn't find anything. 11375 if test -z "$lt_cv_aix_libpath_"; then 11376 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11377 fi 11378fi 11379rm -f core conftest.err conftest.$ac_objext \ 11380 conftest$ac_exeext conftest.$ac_ext 11381 if test -z "$lt_cv_aix_libpath_"; then 11382 lt_cv_aix_libpath_=/usr/lib:/lib 11383 fi 11384 11385fi 11386 11387 aix_libpath=$lt_cv_aix_libpath_ 11388fi 11389 11390 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11391 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 11392 else 11393 if test ia64 = "$host_cpu"; then 11394 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11395 allow_undefined_flag="-z nodefs" 11396 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" 11397 else 11398 # Determine the default libpath from the value encoded in an 11399 # empty executable. 11400 if test set = "${lt_cv_aix_libpath+set}"; then 11401 aix_libpath=$lt_cv_aix_libpath 11402else 11403 if ${lt_cv_aix_libpath_+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11407/* end confdefs.h. */ 11408 11409int 11410main () 11411{ 11412 11413 ; 11414 return 0; 11415} 11416_ACEOF 11417if ac_fn_c_try_link "$LINENO"; then : 11418 11419 lt_aix_libpath_sed=' 11420 /Import File Strings/,/^$/ { 11421 /^0/ { 11422 s/^0 *\([^ ]*\) *$/\1/ 11423 p 11424 } 11425 }' 11426 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11427 # Check for a 64-bit object if we didn't find anything. 11428 if test -z "$lt_cv_aix_libpath_"; then 11429 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11430 fi 11431fi 11432rm -f core conftest.err conftest.$ac_objext \ 11433 conftest$ac_exeext conftest.$ac_ext 11434 if test -z "$lt_cv_aix_libpath_"; then 11435 lt_cv_aix_libpath_=/usr/lib:/lib 11436 fi 11437 11438fi 11439 11440 aix_libpath=$lt_cv_aix_libpath_ 11441fi 11442 11443 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11444 # Warning - without using the other run time loading flags, 11445 # -berok will link without error, but may produce a broken library. 11446 no_undefined_flag=' $wl-bernotok' 11447 allow_undefined_flag=' $wl-berok' 11448 if test yes = "$with_gnu_ld"; then 11449 # We only use this code for GNU lds that support --whole-archive. 11450 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11451 else 11452 # Exported symbols can be pulled into shared objects from archives 11453 whole_archive_flag_spec='$convenience' 11454 fi 11455 archive_cmds_need_lc=yes 11456 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11457 # -brtl affects multiple linker settings, -berok does not and is overridden later 11458 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11459 if test svr4 != "$with_aix_soname"; then 11460 # This is similar to how AIX traditionally builds its shared libraries. 11461 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' 11462 fi 11463 if test aix != "$with_aix_soname"; then 11464 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' 11465 else 11466 # used by -dlpreopen to get the symbols 11467 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11468 fi 11469 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11470 fi 11471 fi 11472 ;; 11473 11474 amigaos*) 11475 case $host_cpu in 11476 powerpc) 11477 # see comment about AmigaOS4 .so support 11478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11479 archive_expsym_cmds='' 11480 ;; 11481 m68k) 11482 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)' 11483 hardcode_libdir_flag_spec='-L$libdir' 11484 hardcode_minus_L=yes 11485 ;; 11486 esac 11487 ;; 11488 11489 bsdi[45]*) 11490 export_dynamic_flag_spec=-rdynamic 11491 ;; 11492 11493 cygwin* | mingw* | pw32* | cegcc*) 11494 # When not using gcc, we currently assume that we are using 11495 # Microsoft Visual C++. 11496 # hardcode_libdir_flag_spec is actually meaningless, as there is 11497 # no search path for DLLs. 11498 case $cc_basename in 11499 cl*) 11500 # Native MSVC 11501 hardcode_libdir_flag_spec=' ' 11502 allow_undefined_flag=unsupported 11503 always_export_symbols=yes 11504 file_list_spec='@' 11505 # Tell ltmain to make .lib files, not .a files. 11506 libext=lib 11507 # Tell ltmain to make .dll files, not .so files. 11508 shrext_cmds=.dll 11509 # FIXME: Setting linknames here is a bad hack. 11510 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11511 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11512 cp "$export_symbols" "$output_objdir/$soname.def"; 11513 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11514 else 11515 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11516 fi~ 11517 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11518 linknames=' 11519 # The linker will not automatically build a static lib if we build a DLL. 11520 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11521 enable_shared_with_static_runtimes=yes 11522 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11524 # Don't use ranlib 11525 old_postinstall_cmds='chmod 644 $oldlib' 11526 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11527 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11528 case $lt_outputfile in 11529 *.exe|*.EXE) ;; 11530 *) 11531 lt_outputfile=$lt_outputfile.exe 11532 lt_tool_outputfile=$lt_tool_outputfile.exe 11533 ;; 11534 esac~ 11535 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11536 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11537 $RM "$lt_outputfile.manifest"; 11538 fi' 11539 ;; 11540 *) 11541 # Assume MSVC wrapper 11542 hardcode_libdir_flag_spec=' ' 11543 allow_undefined_flag=unsupported 11544 # Tell ltmain to make .lib files, not .a files. 11545 libext=lib 11546 # Tell ltmain to make .dll files, not .so files. 11547 shrext_cmds=.dll 11548 # FIXME: Setting linknames here is a bad hack. 11549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11550 # The linker will automatically build a .lib file if we build a DLL. 11551 old_archive_from_new_cmds='true' 11552 # FIXME: Should let the user specify the lib program. 11553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11554 enable_shared_with_static_runtimes=yes 11555 ;; 11556 esac 11557 ;; 11558 11559 darwin* | rhapsody*) 11560 11561 11562 archive_cmds_need_lc=no 11563 hardcode_direct=no 11564 hardcode_automatic=yes 11565 hardcode_shlibpath_var=unsupported 11566 if test yes = "$lt_cv_ld_force_load"; then 11567 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\"`' 11568 11569 else 11570 whole_archive_flag_spec='' 11571 fi 11572 link_all_deplibs=yes 11573 allow_undefined_flag=$_lt_dar_allow_undefined 11574 case $cc_basename in 11575 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11576 *) _lt_dar_can_shared=$GCC ;; 11577 esac 11578 if test yes = "$_lt_dar_can_shared"; then 11579 output_verbose_link_cmd=func_echo_all 11580 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11581 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11582 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" 11583 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" 11584 11585 else 11586 ld_shlibs=no 11587 fi 11588 11589 ;; 11590 11591 dgux*) 11592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11593 hardcode_libdir_flag_spec='-L$libdir' 11594 hardcode_shlibpath_var=no 11595 ;; 11596 11597 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11598 # support. Future versions do this automatically, but an explicit c++rt0.o 11599 # does not break anything, and helps significantly (at the cost of a little 11600 # extra space). 11601 freebsd2.2*) 11602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11603 hardcode_libdir_flag_spec='-R$libdir' 11604 hardcode_direct=yes 11605 hardcode_shlibpath_var=no 11606 ;; 11607 11608 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11609 freebsd2.*) 11610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11611 hardcode_direct=yes 11612 hardcode_minus_L=yes 11613 hardcode_shlibpath_var=no 11614 ;; 11615 11616 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11617 freebsd* | dragonfly*) 11618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11619 hardcode_libdir_flag_spec='-R$libdir' 11620 hardcode_direct=yes 11621 hardcode_shlibpath_var=no 11622 ;; 11623 11624 hpux9*) 11625 if test yes = "$GCC"; then 11626 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' 11627 else 11628 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' 11629 fi 11630 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11631 hardcode_libdir_separator=: 11632 hardcode_direct=yes 11633 11634 # hardcode_minus_L: Not really in the search PATH, 11635 # but as the default location of the library. 11636 hardcode_minus_L=yes 11637 export_dynamic_flag_spec='$wl-E' 11638 ;; 11639 11640 hpux10*) 11641 if test yes,no = "$GCC,$with_gnu_ld"; then 11642 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11643 else 11644 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11645 fi 11646 if test no = "$with_gnu_ld"; then 11647 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11648 hardcode_libdir_separator=: 11649 hardcode_direct=yes 11650 hardcode_direct_absolute=yes 11651 export_dynamic_flag_spec='$wl-E' 11652 # hardcode_minus_L: Not really in the search PATH, 11653 # but as the default location of the library. 11654 hardcode_minus_L=yes 11655 fi 11656 ;; 11657 11658 hpux11*) 11659 if test yes,no = "$GCC,$with_gnu_ld"; then 11660 case $host_cpu in 11661 hppa*64*) 11662 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11663 ;; 11664 ia64*) 11665 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11666 ;; 11667 *) 11668 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11669 ;; 11670 esac 11671 else 11672 case $host_cpu in 11673 hppa*64*) 11674 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11675 ;; 11676 ia64*) 11677 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11678 ;; 11679 *) 11680 11681 # Older versions of the 11.00 compiler do not understand -b yet 11682 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11684$as_echo_n "checking if $CC understands -b... " >&6; } 11685if ${lt_cv_prog_compiler__b+:} false; then : 11686 $as_echo_n "(cached) " >&6 11687else 11688 lt_cv_prog_compiler__b=no 11689 save_LDFLAGS=$LDFLAGS 11690 LDFLAGS="$LDFLAGS -b" 11691 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11693 # The linker can only warn and ignore the option if not recognized 11694 # So say no if there are warnings 11695 if test -s conftest.err; then 11696 # Append any errors to the config.log. 11697 cat conftest.err 1>&5 11698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11700 if diff conftest.exp conftest.er2 >/dev/null; then 11701 lt_cv_prog_compiler__b=yes 11702 fi 11703 else 11704 lt_cv_prog_compiler__b=yes 11705 fi 11706 fi 11707 $RM -r conftest* 11708 LDFLAGS=$save_LDFLAGS 11709 11710fi 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11712$as_echo "$lt_cv_prog_compiler__b" >&6; } 11713 11714if test yes = "$lt_cv_prog_compiler__b"; then 11715 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11716else 11717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11718fi 11719 11720 ;; 11721 esac 11722 fi 11723 if test no = "$with_gnu_ld"; then 11724 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11725 hardcode_libdir_separator=: 11726 11727 case $host_cpu in 11728 hppa*64*|ia64*) 11729 hardcode_direct=no 11730 hardcode_shlibpath_var=no 11731 ;; 11732 *) 11733 hardcode_direct=yes 11734 hardcode_direct_absolute=yes 11735 export_dynamic_flag_spec='$wl-E' 11736 11737 # hardcode_minus_L: Not really in the search PATH, 11738 # but as the default location of the library. 11739 hardcode_minus_L=yes 11740 ;; 11741 esac 11742 fi 11743 ;; 11744 11745 irix5* | irix6* | nonstopux*) 11746 if test yes = "$GCC"; then 11747 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' 11748 # Try to use the -exported_symbol ld option, if it does not 11749 # work, assume that -exports_file does not work either and 11750 # implicitly export all symbols. 11751 # This should be the same for all languages, so no per-tag cache variable. 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11753$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11754if ${lt_cv_irix_exported_symbol+:} false; then : 11755 $as_echo_n "(cached) " >&6 11756else 11757 save_LDFLAGS=$LDFLAGS 11758 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11760/* end confdefs.h. */ 11761int foo (void) { return 0; } 11762_ACEOF 11763if ac_fn_c_try_link "$LINENO"; then : 11764 lt_cv_irix_exported_symbol=yes 11765else 11766 lt_cv_irix_exported_symbol=no 11767fi 11768rm -f core conftest.err conftest.$ac_objext \ 11769 conftest$ac_exeext conftest.$ac_ext 11770 LDFLAGS=$save_LDFLAGS 11771fi 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11773$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11774 if test yes = "$lt_cv_irix_exported_symbol"; then 11775 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' 11776 fi 11777 else 11778 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' 11779 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' 11780 fi 11781 archive_cmds_need_lc='no' 11782 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11783 hardcode_libdir_separator=: 11784 inherit_rpath=yes 11785 link_all_deplibs=yes 11786 ;; 11787 11788 linux*) 11789 case $cc_basename in 11790 tcc*) 11791 # Fabrice Bellard et al's Tiny C Compiler 11792 ld_shlibs=yes 11793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11794 ;; 11795 esac 11796 ;; 11797 11798 netbsd*) 11799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11801 else 11802 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11803 fi 11804 hardcode_libdir_flag_spec='-R$libdir' 11805 hardcode_direct=yes 11806 hardcode_shlibpath_var=no 11807 ;; 11808 11809 newsos6) 11810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11811 hardcode_direct=yes 11812 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11813 hardcode_libdir_separator=: 11814 hardcode_shlibpath_var=no 11815 ;; 11816 11817 *nto* | *qnx*) 11818 ;; 11819 11820 openbsd* | bitrig*) 11821 if test -f /usr/libexec/ld.so; then 11822 hardcode_direct=yes 11823 hardcode_shlibpath_var=no 11824 hardcode_direct_absolute=yes 11825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11828 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11829 export_dynamic_flag_spec='$wl-E' 11830 else 11831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11832 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11833 fi 11834 else 11835 ld_shlibs=no 11836 fi 11837 ;; 11838 11839 os2*) 11840 hardcode_libdir_flag_spec='-L$libdir' 11841 hardcode_minus_L=yes 11842 allow_undefined_flag=unsupported 11843 shrext_cmds=.dll 11844 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11847 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11848 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11849 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11850 emximp -o $lib $output_objdir/$libname.def' 11851 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11854 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11855 prefix_cmds="$SED"~ 11856 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11857 prefix_cmds="$prefix_cmds -e 1d"; 11858 fi~ 11859 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11860 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11861 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11862 emximp -o $lib $output_objdir/$libname.def' 11863 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11864 enable_shared_with_static_runtimes=yes 11865 ;; 11866 11867 osf3*) 11868 if test yes = "$GCC"; then 11869 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11870 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' 11871 else 11872 allow_undefined_flag=' -expect_unresolved \*' 11873 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' 11874 fi 11875 archive_cmds_need_lc='no' 11876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11877 hardcode_libdir_separator=: 11878 ;; 11879 11880 osf4* | osf5*) # as osf3* with the addition of -msym flag 11881 if test yes = "$GCC"; then 11882 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11883 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' 11884 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11885 else 11886 allow_undefined_flag=' -expect_unresolved \*' 11887 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' 11888 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~ 11889 $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' 11890 11891 # Both c and cxx compiler support -rpath directly 11892 hardcode_libdir_flag_spec='-rpath $libdir' 11893 fi 11894 archive_cmds_need_lc='no' 11895 hardcode_libdir_separator=: 11896 ;; 11897 11898 solaris*) 11899 no_undefined_flag=' -z defs' 11900 if test yes = "$GCC"; then 11901 wlarc='$wl' 11902 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11904 $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' 11905 else 11906 case `$CC -V 2>&1` in 11907 *"Compilers 5.0"*) 11908 wlarc='' 11909 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11911 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11912 ;; 11913 *) 11914 wlarc='$wl' 11915 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11917 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11918 ;; 11919 esac 11920 fi 11921 hardcode_libdir_flag_spec='-R$libdir' 11922 hardcode_shlibpath_var=no 11923 case $host_os in 11924 solaris2.[0-5] | solaris2.[0-5].*) ;; 11925 *) 11926 # The compiler driver will combine and reorder linker options, 11927 # but understands '-z linker_flag'. GCC discards it without '$wl', 11928 # but is careful enough not to reorder. 11929 # Supported since Solaris 2.6 (maybe 2.5.1?) 11930 if test yes = "$GCC"; then 11931 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11932 else 11933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11934 fi 11935 ;; 11936 esac 11937 link_all_deplibs=yes 11938 ;; 11939 11940 sunos4*) 11941 if test sequent = "$host_vendor"; then 11942 # Use $CC to link under sequent, because it throws in some extra .o 11943 # files that make .init and .fini sections work. 11944 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11945 else 11946 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11947 fi 11948 hardcode_libdir_flag_spec='-L$libdir' 11949 hardcode_direct=yes 11950 hardcode_minus_L=yes 11951 hardcode_shlibpath_var=no 11952 ;; 11953 11954 sysv4) 11955 case $host_vendor in 11956 sni) 11957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11958 hardcode_direct=yes # is this really true??? 11959 ;; 11960 siemens) 11961 ## LD is ld it makes a PLAMLIB 11962 ## CC just makes a GrossModule. 11963 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11964 reload_cmds='$CC -r -o $output$reload_objs' 11965 hardcode_direct=no 11966 ;; 11967 motorola) 11968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11969 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11970 ;; 11971 esac 11972 runpath_var='LD_RUN_PATH' 11973 hardcode_shlibpath_var=no 11974 ;; 11975 11976 sysv4.3*) 11977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11978 hardcode_shlibpath_var=no 11979 export_dynamic_flag_spec='-Bexport' 11980 ;; 11981 11982 sysv4*MP*) 11983 if test -d /usr/nec; then 11984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11985 hardcode_shlibpath_var=no 11986 runpath_var=LD_RUN_PATH 11987 hardcode_runpath_var=yes 11988 ld_shlibs=yes 11989 fi 11990 ;; 11991 11992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11993 no_undefined_flag='$wl-z,text' 11994 archive_cmds_need_lc=no 11995 hardcode_shlibpath_var=no 11996 runpath_var='LD_RUN_PATH' 11997 11998 if test yes = "$GCC"; then 11999 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12000 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12001 else 12002 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12003 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12004 fi 12005 ;; 12006 12007 sysv5* | sco3.2v5* | sco5v6*) 12008 # Note: We CANNOT use -z defs as we might desire, because we do not 12009 # link with -lc, and that would cause any symbols used from libc to 12010 # always be unresolved, which means just about no library would 12011 # ever link correctly. If we're not using GNU ld we use -z text 12012 # though, which does catch some bad symbols but isn't as heavy-handed 12013 # as -z defs. 12014 no_undefined_flag='$wl-z,text' 12015 allow_undefined_flag='$wl-z,nodefs' 12016 archive_cmds_need_lc=no 12017 hardcode_shlibpath_var=no 12018 hardcode_libdir_flag_spec='$wl-R,$libdir' 12019 hardcode_libdir_separator=':' 12020 link_all_deplibs=yes 12021 export_dynamic_flag_spec='$wl-Bexport' 12022 runpath_var='LD_RUN_PATH' 12023 12024 if test yes = "$GCC"; then 12025 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12026 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12027 else 12028 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12029 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12030 fi 12031 ;; 12032 12033 uts4*) 12034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12035 hardcode_libdir_flag_spec='-L$libdir' 12036 hardcode_shlibpath_var=no 12037 ;; 12038 12039 *) 12040 ld_shlibs=no 12041 ;; 12042 esac 12043 12044 if test sni = "$host_vendor"; then 12045 case $host in 12046 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12047 export_dynamic_flag_spec='$wl-Blargedynsym' 12048 ;; 12049 esac 12050 fi 12051 fi 12052 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12054$as_echo "$ld_shlibs" >&6; } 12055test no = "$ld_shlibs" && can_build_shared=no 12056 12057with_gnu_ld=$with_gnu_ld 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073# 12074# Do we need to explicitly link libc? 12075# 12076case "x$archive_cmds_need_lc" in 12077x|xyes) 12078 # Assume -lc should be added 12079 archive_cmds_need_lc=yes 12080 12081 if test yes,yes = "$GCC,$enable_shared"; then 12082 case $archive_cmds in 12083 *'~'*) 12084 # FIXME: we may have to deal with multi-command sequences. 12085 ;; 12086 '$CC '*) 12087 # Test whether the compiler implicitly links with -lc since on some 12088 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12089 # to ld, don't add -lc before -lgcc. 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12091$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12092if ${lt_cv_archive_cmds_need_lc+:} false; then : 12093 $as_echo_n "(cached) " >&6 12094else 12095 $RM conftest* 12096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12097 12098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12099 (eval $ac_compile) 2>&5 12100 ac_status=$? 12101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12102 test $ac_status = 0; } 2>conftest.err; then 12103 soname=conftest 12104 lib=conftest 12105 libobjs=conftest.$ac_objext 12106 deplibs= 12107 wl=$lt_prog_compiler_wl 12108 pic_flag=$lt_prog_compiler_pic 12109 compiler_flags=-v 12110 linker_flags=-v 12111 verstring= 12112 output_objdir=. 12113 libname=conftest 12114 lt_save_allow_undefined_flag=$allow_undefined_flag 12115 allow_undefined_flag= 12116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12118 ac_status=$? 12119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12120 test $ac_status = 0; } 12121 then 12122 lt_cv_archive_cmds_need_lc=no 12123 else 12124 lt_cv_archive_cmds_need_lc=yes 12125 fi 12126 allow_undefined_flag=$lt_save_allow_undefined_flag 12127 else 12128 cat conftest.err 1>&5 12129 fi 12130 $RM conftest* 12131 12132fi 12133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12134$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12135 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12136 ;; 12137 esac 12138 fi 12139 ;; 12140esac 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12294$as_echo_n "checking dynamic linker characteristics... " >&6; } 12295 12296if test yes = "$GCC"; then 12297 case $host_os in 12298 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12299 *) lt_awk_arg='/^libraries:/' ;; 12300 esac 12301 case $host_os in 12302 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12303 *) lt_sed_strip_eq='s|=/|/|g' ;; 12304 esac 12305 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12306 case $lt_search_path_spec in 12307 *\;*) 12308 # if the path contains ";" then we assume it to be the separator 12309 # otherwise default to the standard path separator (i.e. ":") - it is 12310 # assumed that no part of a normal pathname contains ";" but that should 12311 # okay in the real world where ";" in dirpaths is itself problematic. 12312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12313 ;; 12314 *) 12315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12316 ;; 12317 esac 12318 # Ok, now we have the path, separated by spaces, we can step through it 12319 # and add multilib dir if necessary... 12320 lt_tmp_lt_search_path_spec= 12321 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12322 # ...but if some path component already ends with the multilib dir we assume 12323 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12324 case "$lt_multi_os_dir; $lt_search_path_spec " in 12325 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12326 lt_multi_os_dir= 12327 ;; 12328 esac 12329 for lt_sys_path in $lt_search_path_spec; do 12330 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12332 elif test -n "$lt_multi_os_dir"; then 12333 test -d "$lt_sys_path" && \ 12334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12335 fi 12336 done 12337 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12338BEGIN {RS = " "; FS = "/|\n";} { 12339 lt_foo = ""; 12340 lt_count = 0; 12341 for (lt_i = NF; lt_i > 0; lt_i--) { 12342 if ($lt_i != "" && $lt_i != ".") { 12343 if ($lt_i == "..") { 12344 lt_count++; 12345 } else { 12346 if (lt_count == 0) { 12347 lt_foo = "/" $lt_i lt_foo; 12348 } else { 12349 lt_count--; 12350 } 12351 } 12352 } 12353 } 12354 if (lt_foo != "") { lt_freq[lt_foo]++; } 12355 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12356}'` 12357 # AWK program above erroneously prepends '/' to C:/dos/paths 12358 # for these hosts. 12359 case $host_os in 12360 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12361 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12362 esac 12363 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12364else 12365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12366fi 12367library_names_spec= 12368libname_spec='lib$name' 12369soname_spec= 12370shrext_cmds=.so 12371postinstall_cmds= 12372postuninstall_cmds= 12373finish_cmds= 12374finish_eval= 12375shlibpath_var= 12376shlibpath_overrides_runpath=unknown 12377version_type=none 12378dynamic_linker="$host_os ld.so" 12379sys_lib_dlsearch_path_spec="/lib /usr/lib" 12380need_lib_prefix=unknown 12381hardcode_into_libs=no 12382 12383# when you set need_version to no, make sure it does not cause -set_version 12384# flags to be left without arguments 12385need_version=unknown 12386 12387 12388 12389case $host_os in 12390aix3*) 12391 version_type=linux # correct to gnu/linux during the next big refactor 12392 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12393 shlibpath_var=LIBPATH 12394 12395 # AIX 3 has no versioning support, so we append a major version to the name. 12396 soname_spec='$libname$release$shared_ext$major' 12397 ;; 12398 12399aix[4-9]*) 12400 version_type=linux # correct to gnu/linux during the next big refactor 12401 need_lib_prefix=no 12402 need_version=no 12403 hardcode_into_libs=yes 12404 if test ia64 = "$host_cpu"; then 12405 # AIX 5 supports IA64 12406 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 else 12409 # With GCC up to 2.95.x, collect2 would create an import file 12410 # for dependence libraries. The import file would start with 12411 # the line '#! .'. This would cause the generated library to 12412 # depend on '.', always an invalid library. This was fixed in 12413 # development snapshots of GCC prior to 3.0. 12414 case $host_os in 12415 aix4 | aix4.[01] | aix4.[01].*) 12416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12417 echo ' yes ' 12418 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12419 : 12420 else 12421 can_build_shared=no 12422 fi 12423 ;; 12424 esac 12425 # Using Import Files as archive members, it is possible to support 12426 # filename-based versioning of shared library archives on AIX. While 12427 # this would work for both with and without runtime linking, it will 12428 # prevent static linking of such archives. So we do filename-based 12429 # shared library versioning with .so extension only, which is used 12430 # when both runtime linking and shared linking is enabled. 12431 # Unfortunately, runtime linking may impact performance, so we do 12432 # not want this to be the default eventually. Also, we use the 12433 # versioned .so libs for executables only if there is the -brtl 12434 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12435 # To allow for filename-based versioning support, we need to create 12436 # libNAME.so.V as an archive file, containing: 12437 # *) an Import File, referring to the versioned filename of the 12438 # archive as well as the shared archive member, telling the 12439 # bitwidth (32 or 64) of that shared object, and providing the 12440 # list of exported symbols of that shared object, eventually 12441 # decorated with the 'weak' keyword 12442 # *) the shared object with the F_LOADONLY flag set, to really avoid 12443 # it being seen by the linker. 12444 # At run time we better use the real file rather than another symlink, 12445 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12446 12447 case $with_aix_soname,$aix_use_runtimelinking in 12448 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12449 # soname into executable. Probably we can add versioning support to 12450 # collect2, so additional links can be useful in future. 12451 aix,yes) # traditional libtool 12452 dynamic_linker='AIX unversionable lib.so' 12453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12454 # instead of lib<name>.a to let people know that these are not 12455 # typical AIX shared libraries. 12456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12457 ;; 12458 aix,no) # traditional AIX only 12459 dynamic_linker='AIX lib.a(lib.so.V)' 12460 # We preserve .a as extension for shared libraries through AIX4.2 12461 # and later when we are not doing run time linking. 12462 library_names_spec='$libname$release.a $libname.a' 12463 soname_spec='$libname$release$shared_ext$major' 12464 ;; 12465 svr4,*) # full svr4 only 12466 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12467 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12468 # We do not specify a path in Import Files, so LIBPATH fires. 12469 shlibpath_overrides_runpath=yes 12470 ;; 12471 *,yes) # both, prefer svr4 12472 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12473 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12474 # unpreferred sharedlib libNAME.a needs extra handling 12475 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"' 12476 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"' 12477 # We do not specify a path in Import Files, so LIBPATH fires. 12478 shlibpath_overrides_runpath=yes 12479 ;; 12480 *,no) # both, prefer aix 12481 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12482 library_names_spec='$libname$release.a $libname.a' 12483 soname_spec='$libname$release$shared_ext$major' 12484 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12485 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)' 12486 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"' 12487 ;; 12488 esac 12489 shlibpath_var=LIBPATH 12490 fi 12491 ;; 12492 12493amigaos*) 12494 case $host_cpu in 12495 powerpc) 12496 # Since July 2007 AmigaOS4 officially supports .so libraries. 12497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12499 ;; 12500 m68k) 12501 library_names_spec='$libname.ixlibrary $libname.a' 12502 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12503 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' 12504 ;; 12505 esac 12506 ;; 12507 12508beos*) 12509 library_names_spec='$libname$shared_ext' 12510 dynamic_linker="$host_os ld.so" 12511 shlibpath_var=LIBRARY_PATH 12512 ;; 12513 12514bsdi[45]*) 12515 version_type=linux # correct to gnu/linux during the next big refactor 12516 need_version=no 12517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12518 soname_spec='$libname$release$shared_ext$major' 12519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12520 shlibpath_var=LD_LIBRARY_PATH 12521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12523 # the default ld.so.conf also contains /usr/contrib/lib and 12524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12525 # libtool to hard-code these into programs 12526 ;; 12527 12528cygwin* | mingw* | pw32* | cegcc*) 12529 version_type=windows 12530 shrext_cmds=.dll 12531 need_version=no 12532 need_lib_prefix=no 12533 12534 case $GCC,$cc_basename in 12535 yes,*) 12536 # gcc 12537 library_names_spec='$libname.dll.a' 12538 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12539 postinstall_cmds='base_file=`basename \$file`~ 12540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12541 dldir=$destdir/`dirname \$dlpath`~ 12542 test -d \$dldir || mkdir -p \$dldir~ 12543 $install_prog $dir/$dlname \$dldir/$dlname~ 12544 chmod a+x \$dldir/$dlname~ 12545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12547 fi' 12548 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12549 dlpath=$dir/\$dldll~ 12550 $RM \$dlpath' 12551 shlibpath_overrides_runpath=yes 12552 12553 case $host_os in 12554 cygwin*) 12555 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12556 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12557 12558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12559 ;; 12560 mingw* | cegcc*) 12561 # MinGW DLLs use traditional 'lib' prefix 12562 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12563 ;; 12564 pw32*) 12565 # pw32 DLLs use 'pw' prefix rather than 'lib' 12566 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12567 ;; 12568 esac 12569 dynamic_linker='Win32 ld.exe' 12570 ;; 12571 12572 *,cl*) 12573 # Native MSVC 12574 libname_spec='$name' 12575 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12576 library_names_spec='$libname.dll.lib' 12577 12578 case $build_os in 12579 mingw*) 12580 sys_lib_search_path_spec= 12581 lt_save_ifs=$IFS 12582 IFS=';' 12583 for lt_path in $LIB 12584 do 12585 IFS=$lt_save_ifs 12586 # Let DOS variable expansion print the short 8.3 style file name. 12587 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12588 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12589 done 12590 IFS=$lt_save_ifs 12591 # Convert to MSYS style. 12592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12593 ;; 12594 cygwin*) 12595 # Convert to unix form, then to dos form, then back to unix form 12596 # but this time dos style (no spaces!) so that the unix form looks 12597 # like /cygdrive/c/PROGRA~1:/cygdr... 12598 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12599 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12600 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12601 ;; 12602 *) 12603 sys_lib_search_path_spec=$LIB 12604 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12605 # It is most probably a Windows format PATH. 12606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12607 else 12608 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12609 fi 12610 # FIXME: find the short name or the path components, as spaces are 12611 # common. (e.g. "Program Files" -> "PROGRA~1") 12612 ;; 12613 esac 12614 12615 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12616 postinstall_cmds='base_file=`basename \$file`~ 12617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12618 dldir=$destdir/`dirname \$dlpath`~ 12619 test -d \$dldir || mkdir -p \$dldir~ 12620 $install_prog $dir/$dlname \$dldir/$dlname' 12621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12622 dlpath=$dir/\$dldll~ 12623 $RM \$dlpath' 12624 shlibpath_overrides_runpath=yes 12625 dynamic_linker='Win32 link.exe' 12626 ;; 12627 12628 *) 12629 # Assume MSVC wrapper 12630 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12631 dynamic_linker='Win32 ld.exe' 12632 ;; 12633 esac 12634 # FIXME: first we should search . and the directory the executable is in 12635 shlibpath_var=PATH 12636 ;; 12637 12638darwin* | rhapsody*) 12639 dynamic_linker="$host_os dyld" 12640 version_type=darwin 12641 need_lib_prefix=no 12642 need_version=no 12643 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12644 soname_spec='$libname$release$major$shared_ext' 12645 shlibpath_overrides_runpath=yes 12646 shlibpath_var=DYLD_LIBRARY_PATH 12647 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12648 12649 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12651 ;; 12652 12653dgux*) 12654 version_type=linux # correct to gnu/linux during the next big refactor 12655 need_lib_prefix=no 12656 need_version=no 12657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12658 soname_spec='$libname$release$shared_ext$major' 12659 shlibpath_var=LD_LIBRARY_PATH 12660 ;; 12661 12662freebsd* | dragonfly*) 12663 # DragonFly does not have aout. When/if they implement a new 12664 # versioning mechanism, adjust this. 12665 if test -x /usr/bin/objformat; then 12666 objformat=`/usr/bin/objformat` 12667 else 12668 case $host_os in 12669 freebsd[23].*) objformat=aout ;; 12670 *) objformat=elf ;; 12671 esac 12672 fi 12673 version_type=freebsd-$objformat 12674 case $version_type in 12675 freebsd-elf*) 12676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12677 soname_spec='$libname$release$shared_ext$major' 12678 need_version=no 12679 need_lib_prefix=no 12680 ;; 12681 freebsd-*) 12682 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12683 need_version=yes 12684 ;; 12685 esac 12686 shlibpath_var=LD_LIBRARY_PATH 12687 case $host_os in 12688 freebsd2.*) 12689 shlibpath_overrides_runpath=yes 12690 ;; 12691 freebsd3.[01]* | freebsdelf3.[01]*) 12692 shlibpath_overrides_runpath=yes 12693 hardcode_into_libs=yes 12694 ;; 12695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12697 shlibpath_overrides_runpath=no 12698 hardcode_into_libs=yes 12699 ;; 12700 *) # from 4.6 on, and DragonFly 12701 shlibpath_overrides_runpath=yes 12702 hardcode_into_libs=yes 12703 ;; 12704 esac 12705 ;; 12706 12707haiku*) 12708 version_type=linux # correct to gnu/linux during the next big refactor 12709 need_lib_prefix=no 12710 need_version=no 12711 dynamic_linker="$host_os runtime_loader" 12712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12713 soname_spec='$libname$release$shared_ext$major' 12714 shlibpath_var=LIBRARY_PATH 12715 shlibpath_overrides_runpath=no 12716 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12717 hardcode_into_libs=yes 12718 ;; 12719 12720hpux9* | hpux10* | hpux11*) 12721 # Give a soname corresponding to the major version so that dld.sl refuses to 12722 # link against other versions. 12723 version_type=sunos 12724 need_lib_prefix=no 12725 need_version=no 12726 case $host_cpu in 12727 ia64*) 12728 shrext_cmds='.so' 12729 hardcode_into_libs=yes 12730 dynamic_linker="$host_os dld.so" 12731 shlibpath_var=LD_LIBRARY_PATH 12732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12734 soname_spec='$libname$release$shared_ext$major' 12735 if test 32 = "$HPUX_IA64_MODE"; then 12736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12737 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12738 else 12739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12740 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12741 fi 12742 ;; 12743 hppa*64*) 12744 shrext_cmds='.sl' 12745 hardcode_into_libs=yes 12746 dynamic_linker="$host_os dld.sl" 12747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12750 soname_spec='$libname$release$shared_ext$major' 12751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12753 ;; 12754 *) 12755 shrext_cmds='.sl' 12756 dynamic_linker="$host_os dld.sl" 12757 shlibpath_var=SHLIB_PATH 12758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12760 soname_spec='$libname$release$shared_ext$major' 12761 ;; 12762 esac 12763 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12764 postinstall_cmds='chmod 555 $lib' 12765 # or fails outright, so override atomically: 12766 install_override_mode=555 12767 ;; 12768 12769interix[3-9]*) 12770 version_type=linux # correct to gnu/linux during the next big refactor 12771 need_lib_prefix=no 12772 need_version=no 12773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12774 soname_spec='$libname$release$shared_ext$major' 12775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12776 shlibpath_var=LD_LIBRARY_PATH 12777 shlibpath_overrides_runpath=no 12778 hardcode_into_libs=yes 12779 ;; 12780 12781irix5* | irix6* | nonstopux*) 12782 case $host_os in 12783 nonstopux*) version_type=nonstopux ;; 12784 *) 12785 if test yes = "$lt_cv_prog_gnu_ld"; then 12786 version_type=linux # correct to gnu/linux during the next big refactor 12787 else 12788 version_type=irix 12789 fi ;; 12790 esac 12791 need_lib_prefix=no 12792 need_version=no 12793 soname_spec='$libname$release$shared_ext$major' 12794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12795 case $host_os in 12796 irix5* | nonstopux*) 12797 libsuff= shlibsuff= 12798 ;; 12799 *) 12800 case $LD in # libtool.m4 will add one of these switches to LD 12801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12802 libsuff= shlibsuff= libmagic=32-bit;; 12803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12804 libsuff=32 shlibsuff=N32 libmagic=N32;; 12805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12806 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12807 *) libsuff= shlibsuff= libmagic=never-match;; 12808 esac 12809 ;; 12810 esac 12811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12812 shlibpath_overrides_runpath=no 12813 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12814 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12815 hardcode_into_libs=yes 12816 ;; 12817 12818# No shared lib support for Linux oldld, aout, or coff. 12819linux*oldld* | linux*aout* | linux*coff*) 12820 dynamic_linker=no 12821 ;; 12822 12823linux*android*) 12824 version_type=none # Android doesn't support versioned libraries. 12825 need_lib_prefix=no 12826 need_version=no 12827 library_names_spec='$libname$release$shared_ext' 12828 soname_spec='$libname$release$shared_ext' 12829 finish_cmds= 12830 shlibpath_var=LD_LIBRARY_PATH 12831 shlibpath_overrides_runpath=yes 12832 12833 # This implies no fast_install, which is unacceptable. 12834 # Some rework will be needed to allow for fast_install 12835 # before this can be enabled. 12836 hardcode_into_libs=yes 12837 12838 dynamic_linker='Android linker' 12839 # Don't embed -rpath directories since the linker doesn't support them. 12840 hardcode_libdir_flag_spec='-L$libdir' 12841 ;; 12842 12843# This must be glibc/ELF. 12844linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12845 version_type=linux # correct to gnu/linux during the next big refactor 12846 need_lib_prefix=no 12847 need_version=no 12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12849 soname_spec='$libname$release$shared_ext$major' 12850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12851 shlibpath_var=LD_LIBRARY_PATH 12852 shlibpath_overrides_runpath=no 12853 12854 # Some binutils ld are patched to set DT_RUNPATH 12855 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12856 $as_echo_n "(cached) " >&6 12857else 12858 lt_cv_shlibpath_overrides_runpath=no 12859 save_LDFLAGS=$LDFLAGS 12860 save_libdir=$libdir 12861 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12862 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12864/* end confdefs.h. */ 12865 12866int 12867main () 12868{ 12869 12870 ; 12871 return 0; 12872} 12873_ACEOF 12874if ac_fn_c_try_link "$LINENO"; then : 12875 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12876 lt_cv_shlibpath_overrides_runpath=yes 12877fi 12878fi 12879rm -f core conftest.err conftest.$ac_objext \ 12880 conftest$ac_exeext conftest.$ac_ext 12881 LDFLAGS=$save_LDFLAGS 12882 libdir=$save_libdir 12883 12884fi 12885 12886 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12887 12888 # This implies no fast_install, which is unacceptable. 12889 # Some rework will be needed to allow for fast_install 12890 # before this can be enabled. 12891 hardcode_into_libs=yes 12892 12893 # Ideally, we could use ldconfig to report *all* directores which are 12894 # searched for libraries, however this is still not possible. Aside from not 12895 # being certain /sbin/ldconfig is available, command 12896 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12897 # even though it is searched at run-time. Try to do the best guess by 12898 # appending ld.so.conf contents (and includes) to the search path. 12899 if test -f /etc/ld.so.conf; then 12900 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' ' '` 12901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12902 fi 12903 12904 # We used to test for /lib/ld.so.1 and disable shared libraries on 12905 # powerpc, because MkLinux only supported shared libraries with the 12906 # GNU dynamic linker. Since this was broken with cross compilers, 12907 # most powerpc-linux boxes support dynamic linking these days and 12908 # people can always --disable-shared, the test was removed, and we 12909 # assume the GNU/Linux dynamic linker is in use. 12910 dynamic_linker='GNU/Linux ld.so' 12911 ;; 12912 12913netbsd*) 12914 version_type=sunos 12915 need_lib_prefix=no 12916 need_version=no 12917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12920 dynamic_linker='NetBSD (a.out) ld.so' 12921 else 12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12923 soname_spec='$libname$release$shared_ext$major' 12924 dynamic_linker='NetBSD ld.elf_so' 12925 fi 12926 shlibpath_var=LD_LIBRARY_PATH 12927 shlibpath_overrides_runpath=yes 12928 hardcode_into_libs=yes 12929 ;; 12930 12931newsos6) 12932 version_type=linux # correct to gnu/linux during the next big refactor 12933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12934 shlibpath_var=LD_LIBRARY_PATH 12935 shlibpath_overrides_runpath=yes 12936 ;; 12937 12938*nto* | *qnx*) 12939 version_type=qnx 12940 need_lib_prefix=no 12941 need_version=no 12942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12943 soname_spec='$libname$release$shared_ext$major' 12944 shlibpath_var=LD_LIBRARY_PATH 12945 shlibpath_overrides_runpath=no 12946 hardcode_into_libs=yes 12947 dynamic_linker='ldqnx.so' 12948 ;; 12949 12950openbsd* | bitrig*) 12951 version_type=sunos 12952 sys_lib_dlsearch_path_spec=/usr/lib 12953 need_lib_prefix=no 12954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12955 need_version=no 12956 else 12957 need_version=yes 12958 fi 12959 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12961 shlibpath_var=LD_LIBRARY_PATH 12962 shlibpath_overrides_runpath=yes 12963 ;; 12964 12965os2*) 12966 libname_spec='$name' 12967 version_type=windows 12968 shrext_cmds=.dll 12969 need_version=no 12970 need_lib_prefix=no 12971 # OS/2 can only load a DLL with a base name of 8 characters or less. 12972 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12973 v=$($ECHO $release$versuffix | tr -d .-); 12974 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12975 $ECHO $n$v`$shared_ext' 12976 library_names_spec='${libname}_dll.$libext' 12977 dynamic_linker='OS/2 ld.exe' 12978 shlibpath_var=BEGINLIBPATH 12979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12981 postinstall_cmds='base_file=`basename \$file`~ 12982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12983 dldir=$destdir/`dirname \$dlpath`~ 12984 test -d \$dldir || mkdir -p \$dldir~ 12985 $install_prog $dir/$dlname \$dldir/$dlname~ 12986 chmod a+x \$dldir/$dlname~ 12987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12989 fi' 12990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12991 dlpath=$dir/\$dldll~ 12992 $RM \$dlpath' 12993 ;; 12994 12995osf3* | osf4* | osf5*) 12996 version_type=osf 12997 need_lib_prefix=no 12998 need_version=no 12999 soname_spec='$libname$release$shared_ext$major' 13000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13001 shlibpath_var=LD_LIBRARY_PATH 13002 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13004 ;; 13005 13006rdos*) 13007 dynamic_linker=no 13008 ;; 13009 13010solaris*) 13011 version_type=linux # correct to gnu/linux during the next big refactor 13012 need_lib_prefix=no 13013 need_version=no 13014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13015 soname_spec='$libname$release$shared_ext$major' 13016 shlibpath_var=LD_LIBRARY_PATH 13017 shlibpath_overrides_runpath=yes 13018 hardcode_into_libs=yes 13019 # ldd complains unless libraries are executable 13020 postinstall_cmds='chmod +x $lib' 13021 ;; 13022 13023sunos4*) 13024 version_type=sunos 13025 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13027 shlibpath_var=LD_LIBRARY_PATH 13028 shlibpath_overrides_runpath=yes 13029 if test yes = "$with_gnu_ld"; then 13030 need_lib_prefix=no 13031 fi 13032 need_version=yes 13033 ;; 13034 13035sysv4 | sysv4.3*) 13036 version_type=linux # correct to gnu/linux during the next big refactor 13037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13038 soname_spec='$libname$release$shared_ext$major' 13039 shlibpath_var=LD_LIBRARY_PATH 13040 case $host_vendor in 13041 sni) 13042 shlibpath_overrides_runpath=no 13043 need_lib_prefix=no 13044 runpath_var=LD_RUN_PATH 13045 ;; 13046 siemens) 13047 need_lib_prefix=no 13048 ;; 13049 motorola) 13050 need_lib_prefix=no 13051 need_version=no 13052 shlibpath_overrides_runpath=no 13053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13054 ;; 13055 esac 13056 ;; 13057 13058sysv4*MP*) 13059 if test -d /usr/nec; then 13060 version_type=linux # correct to gnu/linux during the next big refactor 13061 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13062 soname_spec='$libname$shared_ext.$major' 13063 shlibpath_var=LD_LIBRARY_PATH 13064 fi 13065 ;; 13066 13067sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13068 version_type=sco 13069 need_lib_prefix=no 13070 need_version=no 13071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13072 soname_spec='$libname$release$shared_ext$major' 13073 shlibpath_var=LD_LIBRARY_PATH 13074 shlibpath_overrides_runpath=yes 13075 hardcode_into_libs=yes 13076 if test yes = "$with_gnu_ld"; then 13077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13078 else 13079 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13080 case $host_os in 13081 sco3.2v5*) 13082 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13083 ;; 13084 esac 13085 fi 13086 sys_lib_dlsearch_path_spec='/usr/lib' 13087 ;; 13088 13089tpf*) 13090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13091 version_type=linux # correct to gnu/linux during the next big refactor 13092 need_lib_prefix=no 13093 need_version=no 13094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13095 shlibpath_var=LD_LIBRARY_PATH 13096 shlibpath_overrides_runpath=no 13097 hardcode_into_libs=yes 13098 ;; 13099 13100uts4*) 13101 version_type=linux # correct to gnu/linux during the next big refactor 13102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13103 soname_spec='$libname$release$shared_ext$major' 13104 shlibpath_var=LD_LIBRARY_PATH 13105 ;; 13106 13107*) 13108 dynamic_linker=no 13109 ;; 13110esac 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13112$as_echo "$dynamic_linker" >&6; } 13113test no = "$dynamic_linker" && can_build_shared=no 13114 13115variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13116if test yes = "$GCC"; then 13117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13118fi 13119 13120if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13121 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13122fi 13123 13124if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13125 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13126fi 13127 13128# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13129configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13130 13131# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13132func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13133 13134# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13135configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13234$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13235hardcode_action= 13236if test -n "$hardcode_libdir_flag_spec" || 13237 test -n "$runpath_var" || 13238 test yes = "$hardcode_automatic"; then 13239 13240 # We can hardcode non-existent directories. 13241 if test no != "$hardcode_direct" && 13242 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13243 # have to relink, otherwise we might link with an installed library 13244 # when we should be linking with a yet-to-be-installed one 13245 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13246 test no != "$hardcode_minus_L"; then 13247 # Linking always hardcodes the temporary library directory. 13248 hardcode_action=relink 13249 else 13250 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13251 hardcode_action=immediate 13252 fi 13253else 13254 # We cannot hardcode anything, or else we can only hardcode existing 13255 # directories. 13256 hardcode_action=unsupported 13257fi 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13259$as_echo "$hardcode_action" >&6; } 13260 13261if test relink = "$hardcode_action" || 13262 test yes = "$inherit_rpath"; then 13263 # Fast installation is not supported 13264 enable_fast_install=no 13265elif test yes = "$shlibpath_overrides_runpath" || 13266 test no = "$enable_shared"; then 13267 # Fast installation is not necessary 13268 enable_fast_install=needless 13269fi 13270 13271 13272 13273 13274 13275 13276 if test yes != "$enable_dlopen"; then 13277 enable_dlopen=unknown 13278 enable_dlopen_self=unknown 13279 enable_dlopen_self_static=unknown 13280else 13281 lt_cv_dlopen=no 13282 lt_cv_dlopen_libs= 13283 13284 case $host_os in 13285 beos*) 13286 lt_cv_dlopen=load_add_on 13287 lt_cv_dlopen_libs= 13288 lt_cv_dlopen_self=yes 13289 ;; 13290 13291 mingw* | pw32* | cegcc*) 13292 lt_cv_dlopen=LoadLibrary 13293 lt_cv_dlopen_libs= 13294 ;; 13295 13296 cygwin*) 13297 lt_cv_dlopen=dlopen 13298 lt_cv_dlopen_libs= 13299 ;; 13300 13301 darwin*) 13302 # if libdl is installed we need to link against it 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13304$as_echo_n "checking for dlopen in -ldl... " >&6; } 13305if ${ac_cv_lib_dl_dlopen+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 ac_check_lib_save_LIBS=$LIBS 13309LIBS="-ldl $LIBS" 13310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312 13313/* Override any GCC internal prototype to avoid an error. 13314 Use char because int might match the return type of a GCC 13315 builtin and then its argument prototype would still apply. */ 13316#ifdef __cplusplus 13317extern "C" 13318#endif 13319char dlopen (); 13320int 13321main () 13322{ 13323return dlopen (); 13324 ; 13325 return 0; 13326} 13327_ACEOF 13328if ac_fn_c_try_link "$LINENO"; then : 13329 ac_cv_lib_dl_dlopen=yes 13330else 13331 ac_cv_lib_dl_dlopen=no 13332fi 13333rm -f core conftest.err conftest.$ac_objext \ 13334 conftest$ac_exeext conftest.$ac_ext 13335LIBS=$ac_check_lib_save_LIBS 13336fi 13337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13338$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13339if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13340 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13341else 13342 13343 lt_cv_dlopen=dyld 13344 lt_cv_dlopen_libs= 13345 lt_cv_dlopen_self=yes 13346 13347fi 13348 13349 ;; 13350 13351 tpf*) 13352 # Don't try to run any link tests for TPF. We know it's impossible 13353 # because TPF is a cross-compiler, and we know how we open DSOs. 13354 lt_cv_dlopen=dlopen 13355 lt_cv_dlopen_libs= 13356 lt_cv_dlopen_self=no 13357 ;; 13358 13359 *) 13360 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13361if test "x$ac_cv_func_shl_load" = xyes; then : 13362 lt_cv_dlopen=shl_load 13363else 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13365$as_echo_n "checking for shl_load in -ldld... " >&6; } 13366if ${ac_cv_lib_dld_shl_load+:} false; then : 13367 $as_echo_n "(cached) " >&6 13368else 13369 ac_check_lib_save_LIBS=$LIBS 13370LIBS="-ldld $LIBS" 13371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13372/* end confdefs.h. */ 13373 13374/* Override any GCC internal prototype to avoid an error. 13375 Use char because int might match the return type of a GCC 13376 builtin and then its argument prototype would still apply. */ 13377#ifdef __cplusplus 13378extern "C" 13379#endif 13380char shl_load (); 13381int 13382main () 13383{ 13384return shl_load (); 13385 ; 13386 return 0; 13387} 13388_ACEOF 13389if ac_fn_c_try_link "$LINENO"; then : 13390 ac_cv_lib_dld_shl_load=yes 13391else 13392 ac_cv_lib_dld_shl_load=no 13393fi 13394rm -f core conftest.err conftest.$ac_objext \ 13395 conftest$ac_exeext conftest.$ac_ext 13396LIBS=$ac_check_lib_save_LIBS 13397fi 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13399$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13400if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13401 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13402else 13403 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13404if test "x$ac_cv_func_dlopen" = xyes; then : 13405 lt_cv_dlopen=dlopen 13406else 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13408$as_echo_n "checking for dlopen in -ldl... " >&6; } 13409if ${ac_cv_lib_dl_dlopen+:} false; then : 13410 $as_echo_n "(cached) " >&6 13411else 13412 ac_check_lib_save_LIBS=$LIBS 13413LIBS="-ldl $LIBS" 13414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13415/* end confdefs.h. */ 13416 13417/* Override any GCC internal prototype to avoid an error. 13418 Use char because int might match the return type of a GCC 13419 builtin and then its argument prototype would still apply. */ 13420#ifdef __cplusplus 13421extern "C" 13422#endif 13423char dlopen (); 13424int 13425main () 13426{ 13427return dlopen (); 13428 ; 13429 return 0; 13430} 13431_ACEOF 13432if ac_fn_c_try_link "$LINENO"; then : 13433 ac_cv_lib_dl_dlopen=yes 13434else 13435 ac_cv_lib_dl_dlopen=no 13436fi 13437rm -f core conftest.err conftest.$ac_objext \ 13438 conftest$ac_exeext conftest.$ac_ext 13439LIBS=$ac_check_lib_save_LIBS 13440fi 13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13442$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13443if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13444 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13445else 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13447$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13448if ${ac_cv_lib_svld_dlopen+:} false; then : 13449 $as_echo_n "(cached) " >&6 13450else 13451 ac_check_lib_save_LIBS=$LIBS 13452LIBS="-lsvld $LIBS" 13453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455 13456/* Override any GCC internal prototype to avoid an error. 13457 Use char because int might match the return type of a GCC 13458 builtin and then its argument prototype would still apply. */ 13459#ifdef __cplusplus 13460extern "C" 13461#endif 13462char dlopen (); 13463int 13464main () 13465{ 13466return dlopen (); 13467 ; 13468 return 0; 13469} 13470_ACEOF 13471if ac_fn_c_try_link "$LINENO"; then : 13472 ac_cv_lib_svld_dlopen=yes 13473else 13474 ac_cv_lib_svld_dlopen=no 13475fi 13476rm -f core conftest.err conftest.$ac_objext \ 13477 conftest$ac_exeext conftest.$ac_ext 13478LIBS=$ac_check_lib_save_LIBS 13479fi 13480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13481$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13482if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13483 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13484else 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13486$as_echo_n "checking for dld_link in -ldld... " >&6; } 13487if ${ac_cv_lib_dld_dld_link+:} false; then : 13488 $as_echo_n "(cached) " >&6 13489else 13490 ac_check_lib_save_LIBS=$LIBS 13491LIBS="-ldld $LIBS" 13492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13493/* end confdefs.h. */ 13494 13495/* Override any GCC internal prototype to avoid an error. 13496 Use char because int might match the return type of a GCC 13497 builtin and then its argument prototype would still apply. */ 13498#ifdef __cplusplus 13499extern "C" 13500#endif 13501char dld_link (); 13502int 13503main () 13504{ 13505return dld_link (); 13506 ; 13507 return 0; 13508} 13509_ACEOF 13510if ac_fn_c_try_link "$LINENO"; then : 13511 ac_cv_lib_dld_dld_link=yes 13512else 13513 ac_cv_lib_dld_dld_link=no 13514fi 13515rm -f core conftest.err conftest.$ac_objext \ 13516 conftest$ac_exeext conftest.$ac_ext 13517LIBS=$ac_check_lib_save_LIBS 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13520$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13521if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13522 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13523fi 13524 13525 13526fi 13527 13528 13529fi 13530 13531 13532fi 13533 13534 13535fi 13536 13537 13538fi 13539 13540 ;; 13541 esac 13542 13543 if test no = "$lt_cv_dlopen"; then 13544 enable_dlopen=no 13545 else 13546 enable_dlopen=yes 13547 fi 13548 13549 case $lt_cv_dlopen in 13550 dlopen) 13551 save_CPPFLAGS=$CPPFLAGS 13552 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13553 13554 save_LDFLAGS=$LDFLAGS 13555 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13556 13557 save_LIBS=$LIBS 13558 LIBS="$lt_cv_dlopen_libs $LIBS" 13559 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13561$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13562if ${lt_cv_dlopen_self+:} false; then : 13563 $as_echo_n "(cached) " >&6 13564else 13565 if test yes = "$cross_compiling"; then : 13566 lt_cv_dlopen_self=cross 13567else 13568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13569 lt_status=$lt_dlunknown 13570 cat > conftest.$ac_ext <<_LT_EOF 13571#line $LINENO "configure" 13572#include "confdefs.h" 13573 13574#if HAVE_DLFCN_H 13575#include <dlfcn.h> 13576#endif 13577 13578#include <stdio.h> 13579 13580#ifdef RTLD_GLOBAL 13581# define LT_DLGLOBAL RTLD_GLOBAL 13582#else 13583# ifdef DL_GLOBAL 13584# define LT_DLGLOBAL DL_GLOBAL 13585# else 13586# define LT_DLGLOBAL 0 13587# endif 13588#endif 13589 13590/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13591 find out it does not work in some platform. */ 13592#ifndef LT_DLLAZY_OR_NOW 13593# ifdef RTLD_LAZY 13594# define LT_DLLAZY_OR_NOW RTLD_LAZY 13595# else 13596# ifdef DL_LAZY 13597# define LT_DLLAZY_OR_NOW DL_LAZY 13598# else 13599# ifdef RTLD_NOW 13600# define LT_DLLAZY_OR_NOW RTLD_NOW 13601# else 13602# ifdef DL_NOW 13603# define LT_DLLAZY_OR_NOW DL_NOW 13604# else 13605# define LT_DLLAZY_OR_NOW 0 13606# endif 13607# endif 13608# endif 13609# endif 13610#endif 13611 13612/* When -fvisibility=hidden is used, assume the code has been annotated 13613 correspondingly for the symbols needed. */ 13614#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13615int fnord () __attribute__((visibility("default"))); 13616#endif 13617 13618int fnord () { return 42; } 13619int main () 13620{ 13621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13622 int status = $lt_dlunknown; 13623 13624 if (self) 13625 { 13626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13627 else 13628 { 13629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13630 else puts (dlerror ()); 13631 } 13632 /* dlclose (self); */ 13633 } 13634 else 13635 puts (dlerror ()); 13636 13637 return status; 13638} 13639_LT_EOF 13640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13641 (eval $ac_link) 2>&5 13642 ac_status=$? 13643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13644 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13645 (./conftest; exit; ) >&5 2>/dev/null 13646 lt_status=$? 13647 case x$lt_status in 13648 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13649 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13650 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13651 esac 13652 else : 13653 # compilation failed 13654 lt_cv_dlopen_self=no 13655 fi 13656fi 13657rm -fr conftest* 13658 13659 13660fi 13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13662$as_echo "$lt_cv_dlopen_self" >&6; } 13663 13664 if test yes = "$lt_cv_dlopen_self"; then 13665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13667$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13668if ${lt_cv_dlopen_self_static+:} false; then : 13669 $as_echo_n "(cached) " >&6 13670else 13671 if test yes = "$cross_compiling"; then : 13672 lt_cv_dlopen_self_static=cross 13673else 13674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13675 lt_status=$lt_dlunknown 13676 cat > conftest.$ac_ext <<_LT_EOF 13677#line $LINENO "configure" 13678#include "confdefs.h" 13679 13680#if HAVE_DLFCN_H 13681#include <dlfcn.h> 13682#endif 13683 13684#include <stdio.h> 13685 13686#ifdef RTLD_GLOBAL 13687# define LT_DLGLOBAL RTLD_GLOBAL 13688#else 13689# ifdef DL_GLOBAL 13690# define LT_DLGLOBAL DL_GLOBAL 13691# else 13692# define LT_DLGLOBAL 0 13693# endif 13694#endif 13695 13696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13697 find out it does not work in some platform. */ 13698#ifndef LT_DLLAZY_OR_NOW 13699# ifdef RTLD_LAZY 13700# define LT_DLLAZY_OR_NOW RTLD_LAZY 13701# else 13702# ifdef DL_LAZY 13703# define LT_DLLAZY_OR_NOW DL_LAZY 13704# else 13705# ifdef RTLD_NOW 13706# define LT_DLLAZY_OR_NOW RTLD_NOW 13707# else 13708# ifdef DL_NOW 13709# define LT_DLLAZY_OR_NOW DL_NOW 13710# else 13711# define LT_DLLAZY_OR_NOW 0 13712# endif 13713# endif 13714# endif 13715# endif 13716#endif 13717 13718/* When -fvisibility=hidden is used, assume the code has been annotated 13719 correspondingly for the symbols needed. */ 13720#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13721int fnord () __attribute__((visibility("default"))); 13722#endif 13723 13724int fnord () { return 42; } 13725int main () 13726{ 13727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13728 int status = $lt_dlunknown; 13729 13730 if (self) 13731 { 13732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13733 else 13734 { 13735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13736 else puts (dlerror ()); 13737 } 13738 /* dlclose (self); */ 13739 } 13740 else 13741 puts (dlerror ()); 13742 13743 return status; 13744} 13745_LT_EOF 13746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13747 (eval $ac_link) 2>&5 13748 ac_status=$? 13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13750 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13751 (./conftest; exit; ) >&5 2>/dev/null 13752 lt_status=$? 13753 case x$lt_status in 13754 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13755 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13756 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13757 esac 13758 else : 13759 # compilation failed 13760 lt_cv_dlopen_self_static=no 13761 fi 13762fi 13763rm -fr conftest* 13764 13765 13766fi 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13768$as_echo "$lt_cv_dlopen_self_static" >&6; } 13769 fi 13770 13771 CPPFLAGS=$save_CPPFLAGS 13772 LDFLAGS=$save_LDFLAGS 13773 LIBS=$save_LIBS 13774 ;; 13775 esac 13776 13777 case $lt_cv_dlopen_self in 13778 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13779 *) enable_dlopen_self=unknown ;; 13780 esac 13781 13782 case $lt_cv_dlopen_self_static in 13783 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13784 *) enable_dlopen_self_static=unknown ;; 13785 esac 13786fi 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804striplib= 13805old_striplib= 13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13807$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13808if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13809 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13810 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13812$as_echo "yes" >&6; } 13813else 13814# FIXME - insert some real tests, host_os isn't really good enough 13815 case $host_os in 13816 darwin*) 13817 if test -n "$STRIP"; then 13818 striplib="$STRIP -x" 13819 old_striplib="$STRIP -S" 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13821$as_echo "yes" >&6; } 13822 else 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13824$as_echo "no" >&6; } 13825 fi 13826 ;; 13827 *) 13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13829$as_echo "no" >&6; } 13830 ;; 13831 esac 13832fi 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 # Report what library types will actually be built 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13847$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13849$as_echo "$can_build_shared" >&6; } 13850 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13852$as_echo_n "checking whether to build shared libraries... " >&6; } 13853 test no = "$can_build_shared" && enable_shared=no 13854 13855 # On AIX, shared libraries and static libraries use the same namespace, and 13856 # are all built from PIC. 13857 case $host_os in 13858 aix3*) 13859 test yes = "$enable_shared" && enable_static=no 13860 if test -n "$RANLIB"; then 13861 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13862 postinstall_cmds='$RANLIB $lib' 13863 fi 13864 ;; 13865 13866 aix[4-9]*) 13867 if test ia64 != "$host_cpu"; then 13868 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13869 yes,aix,yes) ;; # shared object as lib.so file only 13870 yes,svr4,*) ;; # shared object as lib.so archive member only 13871 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13872 esac 13873 fi 13874 ;; 13875 esac 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13877$as_echo "$enable_shared" >&6; } 13878 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13880$as_echo_n "checking whether to build static libraries... " >&6; } 13881 # Make sure either enable_shared or enable_static is yes. 13882 test yes = "$enable_shared" || enable_static=yes 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13884$as_echo "$enable_static" >&6; } 13885 13886 13887 13888 13889fi 13890ac_ext=cpp 13891ac_cpp='$CXXCPP $CPPFLAGS' 13892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13895 13896CC=$lt_save_CC 13897 13898 if test -n "$CXX" && ( test no != "$CXX" && 13899 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13900 (test g++ != "$CXX"))); then 13901 ac_ext=cpp 13902ac_cpp='$CXXCPP $CPPFLAGS' 13903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13907$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13908if test -z "$CXXCPP"; then 13909 if ${ac_cv_prog_CXXCPP+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 # Double quotes because CXXCPP needs to be expanded 13913 for CXXCPP in "$CXX -E" "/lib/cpp" 13914 do 13915 ac_preproc_ok=false 13916for ac_cxx_preproc_warn_flag in '' yes 13917do 13918 # Use a header file that comes with gcc, so configuring glibc 13919 # with a fresh cross-compiler works. 13920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13921 # <limits.h> exists even on freestanding compilers. 13922 # On the NeXT, cc -E runs the code through the compiler's parser, 13923 # not just through cpp. "Syntax error" is here to catch this case. 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926#ifdef __STDC__ 13927# include <limits.h> 13928#else 13929# include <assert.h> 13930#endif 13931 Syntax error 13932_ACEOF 13933if ac_fn_cxx_try_cpp "$LINENO"; then : 13934 13935else 13936 # Broken: fails on valid input. 13937continue 13938fi 13939rm -f conftest.err conftest.i conftest.$ac_ext 13940 13941 # OK, works on sane cases. Now check whether nonexistent headers 13942 # can be detected and how. 13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13944/* end confdefs.h. */ 13945#include <ac_nonexistent.h> 13946_ACEOF 13947if ac_fn_cxx_try_cpp "$LINENO"; then : 13948 # Broken: success on invalid input. 13949continue 13950else 13951 # Passes both tests. 13952ac_preproc_ok=: 13953break 13954fi 13955rm -f conftest.err conftest.i conftest.$ac_ext 13956 13957done 13958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13959rm -f conftest.i conftest.err conftest.$ac_ext 13960if $ac_preproc_ok; then : 13961 break 13962fi 13963 13964 done 13965 ac_cv_prog_CXXCPP=$CXXCPP 13966 13967fi 13968 CXXCPP=$ac_cv_prog_CXXCPP 13969else 13970 ac_cv_prog_CXXCPP=$CXXCPP 13971fi 13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13973$as_echo "$CXXCPP" >&6; } 13974ac_preproc_ok=false 13975for ac_cxx_preproc_warn_flag in '' yes 13976do 13977 # Use a header file that comes with gcc, so configuring glibc 13978 # with a fresh cross-compiler works. 13979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13980 # <limits.h> exists even on freestanding compilers. 13981 # On the NeXT, cc -E runs the code through the compiler's parser, 13982 # not just through cpp. "Syntax error" is here to catch this case. 13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13984/* end confdefs.h. */ 13985#ifdef __STDC__ 13986# include <limits.h> 13987#else 13988# include <assert.h> 13989#endif 13990 Syntax error 13991_ACEOF 13992if ac_fn_cxx_try_cpp "$LINENO"; then : 13993 13994else 13995 # Broken: fails on valid input. 13996continue 13997fi 13998rm -f conftest.err conftest.i conftest.$ac_ext 13999 14000 # OK, works on sane cases. Now check whether nonexistent headers 14001 # can be detected and how. 14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14003/* end confdefs.h. */ 14004#include <ac_nonexistent.h> 14005_ACEOF 14006if ac_fn_cxx_try_cpp "$LINENO"; then : 14007 # Broken: success on invalid input. 14008continue 14009else 14010 # Passes both tests. 14011ac_preproc_ok=: 14012break 14013fi 14014rm -f conftest.err conftest.i conftest.$ac_ext 14015 14016done 14017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14018rm -f conftest.i conftest.err conftest.$ac_ext 14019if $ac_preproc_ok; then : 14020 14021else 14022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14024as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14025See \`config.log' for more details" "$LINENO" 5; } 14026fi 14027 14028ac_ext=cpp 14029ac_cpp='$CXXCPP $CPPFLAGS' 14030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14033 14034else 14035 _lt_caught_CXX_error=yes 14036fi 14037 14038ac_ext=cpp 14039ac_cpp='$CXXCPP $CPPFLAGS' 14040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14043 14044archive_cmds_need_lc_CXX=no 14045allow_undefined_flag_CXX= 14046always_export_symbols_CXX=no 14047archive_expsym_cmds_CXX= 14048compiler_needs_object_CXX=no 14049export_dynamic_flag_spec_CXX= 14050hardcode_direct_CXX=no 14051hardcode_direct_absolute_CXX=no 14052hardcode_libdir_flag_spec_CXX= 14053hardcode_libdir_separator_CXX= 14054hardcode_minus_L_CXX=no 14055hardcode_shlibpath_var_CXX=unsupported 14056hardcode_automatic_CXX=no 14057inherit_rpath_CXX=no 14058module_cmds_CXX= 14059module_expsym_cmds_CXX= 14060link_all_deplibs_CXX=unknown 14061old_archive_cmds_CXX=$old_archive_cmds 14062reload_flag_CXX=$reload_flag 14063reload_cmds_CXX=$reload_cmds 14064no_undefined_flag_CXX= 14065whole_archive_flag_spec_CXX= 14066enable_shared_with_static_runtimes_CXX=no 14067 14068# Source file extension for C++ test sources. 14069ac_ext=cpp 14070 14071# Object file extension for compiled C++ test sources. 14072objext=o 14073objext_CXX=$objext 14074 14075# No sense in running all these tests if we already determined that 14076# the CXX compiler isn't working. Some variables (like enable_shared) 14077# are currently assumed to apply to all compilers on this platform, 14078# and will be corrupted by setting them based on a non-working compiler. 14079if test yes != "$_lt_caught_CXX_error"; then 14080 # Code to be used in simple compile tests 14081 lt_simple_compile_test_code="int some_variable = 0;" 14082 14083 # Code to be used in simple link tests 14084 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14085 14086 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14087 14088 14089 14090 14091 14092 14093# If no C compiler was specified, use CC. 14094LTCC=${LTCC-"$CC"} 14095 14096# If no C compiler flags were specified, use CFLAGS. 14097LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14098 14099# Allow CC to be a program name with arguments. 14100compiler=$CC 14101 14102 14103 # save warnings/boilerplate of simple test code 14104 ac_outfile=conftest.$ac_objext 14105echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14106eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14107_lt_compiler_boilerplate=`cat conftest.err` 14108$RM conftest* 14109 14110 ac_outfile=conftest.$ac_objext 14111echo "$lt_simple_link_test_code" >conftest.$ac_ext 14112eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14113_lt_linker_boilerplate=`cat conftest.err` 14114$RM -r conftest* 14115 14116 14117 # Allow CC to be a program name with arguments. 14118 lt_save_CC=$CC 14119 lt_save_CFLAGS=$CFLAGS 14120 lt_save_LD=$LD 14121 lt_save_GCC=$GCC 14122 GCC=$GXX 14123 lt_save_with_gnu_ld=$with_gnu_ld 14124 lt_save_path_LD=$lt_cv_path_LD 14125 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14126 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14127 else 14128 $as_unset lt_cv_prog_gnu_ld 14129 fi 14130 if test -n "${lt_cv_path_LDCXX+set}"; then 14131 lt_cv_path_LD=$lt_cv_path_LDCXX 14132 else 14133 $as_unset lt_cv_path_LD 14134 fi 14135 test -z "${LDCXX+set}" || LD=$LDCXX 14136 CC=${CXX-"c++"} 14137 CFLAGS=$CXXFLAGS 14138 compiler=$CC 14139 compiler_CXX=$CC 14140 func_cc_basename $compiler 14141cc_basename=$func_cc_basename_result 14142 14143 14144 if test -n "$compiler"; then 14145 # We don't want -fno-exception when compiling C++ code, so set the 14146 # no_builtin_flag separately 14147 if test yes = "$GXX"; then 14148 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14149 else 14150 lt_prog_compiler_no_builtin_flag_CXX= 14151 fi 14152 14153 if test yes = "$GXX"; then 14154 # Set up default GNU C++ configuration 14155 14156 14157 14158# Check whether --with-gnu-ld was given. 14159if test "${with_gnu_ld+set}" = set; then : 14160 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14161else 14162 with_gnu_ld=no 14163fi 14164 14165ac_prog=ld 14166if test yes = "$GCC"; then 14167 # Check if gcc -print-prog-name=ld gives a path. 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14169$as_echo_n "checking for ld used by $CC... " >&6; } 14170 case $host in 14171 *-*-mingw*) 14172 # gcc leaves a trailing carriage return, which upsets mingw 14173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14174 *) 14175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14176 esac 14177 case $ac_prog in 14178 # Accept absolute paths. 14179 [\\/]* | ?:[\\/]*) 14180 re_direlt='/[^/][^/]*/\.\./' 14181 # Canonicalize the pathname of ld 14182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14185 done 14186 test -z "$LD" && LD=$ac_prog 14187 ;; 14188 "") 14189 # If it fails, then pretend we aren't using GCC. 14190 ac_prog=ld 14191 ;; 14192 *) 14193 # If it is relative, then search for the first ld in PATH. 14194 with_gnu_ld=unknown 14195 ;; 14196 esac 14197elif test yes = "$with_gnu_ld"; then 14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14199$as_echo_n "checking for GNU ld... " >&6; } 14200else 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14202$as_echo_n "checking for non-GNU ld... " >&6; } 14203fi 14204if ${lt_cv_path_LD+:} false; then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 if test -z "$LD"; then 14208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14209 for ac_dir in $PATH; do 14210 IFS=$lt_save_ifs 14211 test -z "$ac_dir" && ac_dir=. 14212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14213 lt_cv_path_LD=$ac_dir/$ac_prog 14214 # Check to see if the program is GNU ld. I'd rather use --version, 14215 # but apparently some variants of GNU ld only accept -v. 14216 # Break only if it was the GNU/non-GNU ld that we prefer. 14217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14218 *GNU* | *'with BFD'*) 14219 test no != "$with_gnu_ld" && break 14220 ;; 14221 *) 14222 test yes != "$with_gnu_ld" && break 14223 ;; 14224 esac 14225 fi 14226 done 14227 IFS=$lt_save_ifs 14228else 14229 lt_cv_path_LD=$LD # Let the user override the test with a path. 14230fi 14231fi 14232 14233LD=$lt_cv_path_LD 14234if test -n "$LD"; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14236$as_echo "$LD" >&6; } 14237else 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14239$as_echo "no" >&6; } 14240fi 14241test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14243$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14244if ${lt_cv_prog_gnu_ld+:} false; then : 14245 $as_echo_n "(cached) " >&6 14246else 14247 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14248case `$LD -v 2>&1 </dev/null` in 14249*GNU* | *'with BFD'*) 14250 lt_cv_prog_gnu_ld=yes 14251 ;; 14252*) 14253 lt_cv_prog_gnu_ld=no 14254 ;; 14255esac 14256fi 14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14258$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14259with_gnu_ld=$lt_cv_prog_gnu_ld 14260 14261 14262 14263 14264 14265 14266 14267 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14268 # archiving commands below assume that GNU ld is being used. 14269 if test yes = "$with_gnu_ld"; then 14270 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14271 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' 14272 14273 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14274 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14275 14276 # If archive_cmds runs LD, not CC, wlarc should be empty 14277 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14278 # investigate it a little bit more. (MM) 14279 wlarc='$wl' 14280 14281 # ancient GNU ld didn't support --whole-archive et. al. 14282 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14283 $GREP 'no-whole-archive' > /dev/null; then 14284 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14285 else 14286 whole_archive_flag_spec_CXX= 14287 fi 14288 else 14289 with_gnu_ld=no 14290 wlarc= 14291 14292 # A generic and very simple default shared library creation 14293 # command for GNU C++ for the case where it uses the native 14294 # linker, instead of GNU ld. If possible, this setting should 14295 # overridden to take advantage of the native linker features on 14296 # the platform it is being used on. 14297 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14298 fi 14299 14300 # Commands to make compiler produce verbose output that lists 14301 # what "hidden" libraries, object files and flags are used when 14302 # linking a shared library. 14303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14304 14305 else 14306 GXX=no 14307 with_gnu_ld=no 14308 wlarc= 14309 fi 14310 14311 # PORTME: fill in a description of your system's C++ link characteristics 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14313$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14314 ld_shlibs_CXX=yes 14315 case $host_os in 14316 aix3*) 14317 # FIXME: insert proper C++ library support 14318 ld_shlibs_CXX=no 14319 ;; 14320 aix[4-9]*) 14321 if test ia64 = "$host_cpu"; then 14322 # On IA64, the linker does run time linking by default, so we don't 14323 # have to do anything special. 14324 aix_use_runtimelinking=no 14325 exp_sym_flag='-Bexport' 14326 no_entry_flag= 14327 else 14328 aix_use_runtimelinking=no 14329 14330 # Test if we are trying to use run time linking or normal 14331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14332 # have runtime linking enabled, and use it for executables. 14333 # For shared libraries, we enable/disable runtime linking 14334 # depending on the kind of the shared library created - 14335 # when "with_aix_soname,aix_use_runtimelinking" is: 14336 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14337 # "aix,yes" lib.so shared, rtl:yes, for executables 14338 # lib.a static archive 14339 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14340 # lib.a(lib.so.V) shared, rtl:no, for executables 14341 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14342 # lib.a(lib.so.V) shared, rtl:no 14343 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14344 # lib.a static archive 14345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14346 for ld_flag in $LDFLAGS; do 14347 case $ld_flag in 14348 *-brtl*) 14349 aix_use_runtimelinking=yes 14350 break 14351 ;; 14352 esac 14353 done 14354 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14355 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14356 # so we don't have lib.a shared libs to link our executables. 14357 # We have to force runtime linking in this case. 14358 aix_use_runtimelinking=yes 14359 LDFLAGS="$LDFLAGS -Wl,-brtl" 14360 fi 14361 ;; 14362 esac 14363 14364 exp_sym_flag='-bexport' 14365 no_entry_flag='-bnoentry' 14366 fi 14367 14368 # When large executables or shared objects are built, AIX ld can 14369 # have problems creating the table of contents. If linking a library 14370 # or program results in "error TOC overflow" add -mminimal-toc to 14371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14373 14374 archive_cmds_CXX='' 14375 hardcode_direct_CXX=yes 14376 hardcode_direct_absolute_CXX=yes 14377 hardcode_libdir_separator_CXX=':' 14378 link_all_deplibs_CXX=yes 14379 file_list_spec_CXX='$wl-f,' 14380 case $with_aix_soname,$aix_use_runtimelinking in 14381 aix,*) ;; # no import file 14382 svr4,* | *,yes) # use import file 14383 # The Import File defines what to hardcode. 14384 hardcode_direct_CXX=no 14385 hardcode_direct_absolute_CXX=no 14386 ;; 14387 esac 14388 14389 if test yes = "$GXX"; then 14390 case $host_os in aix4.[012]|aix4.[012].*) 14391 # We only want to do this on AIX 4.2 and lower, the check 14392 # below for broken collect2 doesn't work under 4.3+ 14393 collect2name=`$CC -print-prog-name=collect2` 14394 if test -f "$collect2name" && 14395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14396 then 14397 # We have reworked collect2 14398 : 14399 else 14400 # We have old collect2 14401 hardcode_direct_CXX=unsupported 14402 # It fails to find uninstalled libraries when the uninstalled 14403 # path is not listed in the libpath. Setting hardcode_minus_L 14404 # to unsupported forces relinking 14405 hardcode_minus_L_CXX=yes 14406 hardcode_libdir_flag_spec_CXX='-L$libdir' 14407 hardcode_libdir_separator_CXX= 14408 fi 14409 esac 14410 shared_flag='-shared' 14411 if test yes = "$aix_use_runtimelinking"; then 14412 shared_flag=$shared_flag' $wl-G' 14413 fi 14414 # Need to ensure runtime linking is disabled for the traditional 14415 # shared library, or the linker may eventually find shared libraries 14416 # /with/ Import File - we do not want to mix them. 14417 shared_flag_aix='-shared' 14418 shared_flag_svr4='-shared $wl-G' 14419 else 14420 # not using gcc 14421 if test ia64 = "$host_cpu"; then 14422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14423 # chokes on -Wl,-G. The following line is correct: 14424 shared_flag='-G' 14425 else 14426 if test yes = "$aix_use_runtimelinking"; then 14427 shared_flag='$wl-G' 14428 else 14429 shared_flag='$wl-bM:SRE' 14430 fi 14431 shared_flag_aix='$wl-bM:SRE' 14432 shared_flag_svr4='$wl-G' 14433 fi 14434 fi 14435 14436 export_dynamic_flag_spec_CXX='$wl-bexpall' 14437 # It seems that -bexpall does not export symbols beginning with 14438 # underscore (_), so it is better to generate a list of symbols to 14439 # export. 14440 always_export_symbols_CXX=yes 14441 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14442 # Warning - without using the other runtime loading flags (-brtl), 14443 # -berok will link without error, but may produce a broken library. 14444 # The "-G" linker flag allows undefined symbols. 14445 no_undefined_flag_CXX='-bernotok' 14446 # Determine the default libpath from the value encoded in an empty 14447 # executable. 14448 if test set = "${lt_cv_aix_libpath+set}"; then 14449 aix_libpath=$lt_cv_aix_libpath 14450else 14451 if ${lt_cv_aix_libpath__CXX+:} false; then : 14452 $as_echo_n "(cached) " >&6 14453else 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455/* end confdefs.h. */ 14456 14457int 14458main () 14459{ 14460 14461 ; 14462 return 0; 14463} 14464_ACEOF 14465if ac_fn_cxx_try_link "$LINENO"; then : 14466 14467 lt_aix_libpath_sed=' 14468 /Import File Strings/,/^$/ { 14469 /^0/ { 14470 s/^0 *\([^ ]*\) *$/\1/ 14471 p 14472 } 14473 }' 14474 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14475 # Check for a 64-bit object if we didn't find anything. 14476 if test -z "$lt_cv_aix_libpath__CXX"; then 14477 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14478 fi 14479fi 14480rm -f core conftest.err conftest.$ac_objext \ 14481 conftest$ac_exeext conftest.$ac_ext 14482 if test -z "$lt_cv_aix_libpath__CXX"; then 14483 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14484 fi 14485 14486fi 14487 14488 aix_libpath=$lt_cv_aix_libpath__CXX 14489fi 14490 14491 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14492 14493 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 14494 else 14495 if test ia64 = "$host_cpu"; then 14496 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14497 allow_undefined_flag_CXX="-z nodefs" 14498 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" 14499 else 14500 # Determine the default libpath from the value encoded in an 14501 # empty executable. 14502 if test set = "${lt_cv_aix_libpath+set}"; then 14503 aix_libpath=$lt_cv_aix_libpath 14504else 14505 if ${lt_cv_aix_libpath__CXX+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510 14511int 14512main () 14513{ 14514 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_cxx_try_link "$LINENO"; then : 14520 14521 lt_aix_libpath_sed=' 14522 /Import File Strings/,/^$/ { 14523 /^0/ { 14524 s/^0 *\([^ ]*\) *$/\1/ 14525 p 14526 } 14527 }' 14528 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14529 # Check for a 64-bit object if we didn't find anything. 14530 if test -z "$lt_cv_aix_libpath__CXX"; then 14531 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14532 fi 14533fi 14534rm -f core conftest.err conftest.$ac_objext \ 14535 conftest$ac_exeext conftest.$ac_ext 14536 if test -z "$lt_cv_aix_libpath__CXX"; then 14537 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14538 fi 14539 14540fi 14541 14542 aix_libpath=$lt_cv_aix_libpath__CXX 14543fi 14544 14545 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14546 # Warning - without using the other run time loading flags, 14547 # -berok will link without error, but may produce a broken library. 14548 no_undefined_flag_CXX=' $wl-bernotok' 14549 allow_undefined_flag_CXX=' $wl-berok' 14550 if test yes = "$with_gnu_ld"; then 14551 # We only use this code for GNU lds that support --whole-archive. 14552 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14553 else 14554 # Exported symbols can be pulled into shared objects from archives 14555 whole_archive_flag_spec_CXX='$convenience' 14556 fi 14557 archive_cmds_need_lc_CXX=yes 14558 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14559 # -brtl affects multiple linker settings, -berok does not and is overridden later 14560 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14561 if test svr4 != "$with_aix_soname"; then 14562 # This is similar to how AIX traditionally builds its shared 14563 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14564 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' 14565 fi 14566 if test aix != "$with_aix_soname"; then 14567 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' 14568 else 14569 # used by -dlpreopen to get the symbols 14570 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14571 fi 14572 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14573 fi 14574 fi 14575 ;; 14576 14577 beos*) 14578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14579 allow_undefined_flag_CXX=unsupported 14580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14581 # support --undefined. This deserves some investigation. FIXME 14582 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14583 else 14584 ld_shlibs_CXX=no 14585 fi 14586 ;; 14587 14588 chorus*) 14589 case $cc_basename in 14590 *) 14591 # FIXME: insert proper C++ library support 14592 ld_shlibs_CXX=no 14593 ;; 14594 esac 14595 ;; 14596 14597 cygwin* | mingw* | pw32* | cegcc*) 14598 case $GXX,$cc_basename in 14599 ,cl* | no,cl*) 14600 # Native MSVC 14601 # hardcode_libdir_flag_spec is actually meaningless, as there is 14602 # no search path for DLLs. 14603 hardcode_libdir_flag_spec_CXX=' ' 14604 allow_undefined_flag_CXX=unsupported 14605 always_export_symbols_CXX=yes 14606 file_list_spec_CXX='@' 14607 # Tell ltmain to make .lib files, not .a files. 14608 libext=lib 14609 # Tell ltmain to make .dll files, not .so files. 14610 shrext_cmds=.dll 14611 # FIXME: Setting linknames here is a bad hack. 14612 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14613 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14614 cp "$export_symbols" "$output_objdir/$soname.def"; 14615 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14616 else 14617 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14618 fi~ 14619 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14620 linknames=' 14621 # The linker will not automatically build a static lib if we build a DLL. 14622 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14623 enable_shared_with_static_runtimes_CXX=yes 14624 # Don't use ranlib 14625 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14626 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14627 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14628 case $lt_outputfile in 14629 *.exe|*.EXE) ;; 14630 *) 14631 lt_outputfile=$lt_outputfile.exe 14632 lt_tool_outputfile=$lt_tool_outputfile.exe 14633 ;; 14634 esac~ 14635 func_to_tool_file "$lt_outputfile"~ 14636 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14637 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14638 $RM "$lt_outputfile.manifest"; 14639 fi' 14640 ;; 14641 *) 14642 # g++ 14643 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14644 # as there is no search path for DLLs. 14645 hardcode_libdir_flag_spec_CXX='-L$libdir' 14646 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14647 allow_undefined_flag_CXX=unsupported 14648 always_export_symbols_CXX=no 14649 enable_shared_with_static_runtimes_CXX=yes 14650 14651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14652 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' 14653 # If the export-symbols file already is a .def file, use it as 14654 # is; otherwise, prepend EXPORTS... 14655 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14656 cp $export_symbols $output_objdir/$soname.def; 14657 else 14658 echo EXPORTS > $output_objdir/$soname.def; 14659 cat $export_symbols >> $output_objdir/$soname.def; 14660 fi~ 14661 $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' 14662 else 14663 ld_shlibs_CXX=no 14664 fi 14665 ;; 14666 esac 14667 ;; 14668 darwin* | rhapsody*) 14669 14670 14671 archive_cmds_need_lc_CXX=no 14672 hardcode_direct_CXX=no 14673 hardcode_automatic_CXX=yes 14674 hardcode_shlibpath_var_CXX=unsupported 14675 if test yes = "$lt_cv_ld_force_load"; then 14676 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\"`' 14677 14678 else 14679 whole_archive_flag_spec_CXX='' 14680 fi 14681 link_all_deplibs_CXX=yes 14682 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14683 case $cc_basename in 14684 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14685 *) _lt_dar_can_shared=$GCC ;; 14686 esac 14687 if test yes = "$_lt_dar_can_shared"; then 14688 output_verbose_link_cmd=func_echo_all 14689 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" 14690 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14691 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" 14692 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" 14693 if test yes != "$lt_cv_apple_cc_single_mod"; then 14694 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" 14695 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" 14696 fi 14697 14698 else 14699 ld_shlibs_CXX=no 14700 fi 14701 14702 ;; 14703 14704 os2*) 14705 hardcode_libdir_flag_spec_CXX='-L$libdir' 14706 hardcode_minus_L_CXX=yes 14707 allow_undefined_flag_CXX=unsupported 14708 shrext_cmds=.dll 14709 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14710 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14711 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14712 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14713 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14714 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14715 emximp -o $lib $output_objdir/$libname.def' 14716 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14719 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14720 prefix_cmds="$SED"~ 14721 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14722 prefix_cmds="$prefix_cmds -e 1d"; 14723 fi~ 14724 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14725 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14726 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14727 emximp -o $lib $output_objdir/$libname.def' 14728 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14729 enable_shared_with_static_runtimes_CXX=yes 14730 ;; 14731 14732 dgux*) 14733 case $cc_basename in 14734 ec++*) 14735 # FIXME: insert proper C++ library support 14736 ld_shlibs_CXX=no 14737 ;; 14738 ghcx*) 14739 # Green Hills C++ Compiler 14740 # FIXME: insert proper C++ library support 14741 ld_shlibs_CXX=no 14742 ;; 14743 *) 14744 # FIXME: insert proper C++ library support 14745 ld_shlibs_CXX=no 14746 ;; 14747 esac 14748 ;; 14749 14750 freebsd2.*) 14751 # C++ shared libraries reported to be fairly broken before 14752 # switch to ELF 14753 ld_shlibs_CXX=no 14754 ;; 14755 14756 freebsd-elf*) 14757 archive_cmds_need_lc_CXX=no 14758 ;; 14759 14760 freebsd* | dragonfly*) 14761 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14762 # conventions 14763 ld_shlibs_CXX=yes 14764 ;; 14765 14766 haiku*) 14767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14768 link_all_deplibs_CXX=yes 14769 ;; 14770 14771 hpux9*) 14772 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14773 hardcode_libdir_separator_CXX=: 14774 export_dynamic_flag_spec_CXX='$wl-E' 14775 hardcode_direct_CXX=yes 14776 hardcode_minus_L_CXX=yes # Not in the search PATH, 14777 # but as the default 14778 # location of the library. 14779 14780 case $cc_basename in 14781 CC*) 14782 # FIXME: insert proper C++ library support 14783 ld_shlibs_CXX=no 14784 ;; 14785 aCC*) 14786 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' 14787 # Commands to make compiler produce verbose output that lists 14788 # what "hidden" libraries, object files and flags are used when 14789 # linking a shared library. 14790 # 14791 # There doesn't appear to be a way to prevent this compiler from 14792 # explicitly linking system object files so we need to strip them 14793 # from the output so that they don't get included in the library 14794 # dependencies. 14795 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"' 14796 ;; 14797 *) 14798 if test yes = "$GXX"; then 14799 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' 14800 else 14801 # FIXME: insert proper C++ library support 14802 ld_shlibs_CXX=no 14803 fi 14804 ;; 14805 esac 14806 ;; 14807 14808 hpux10*|hpux11*) 14809 if test no = "$with_gnu_ld"; then 14810 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14811 hardcode_libdir_separator_CXX=: 14812 14813 case $host_cpu in 14814 hppa*64*|ia64*) 14815 ;; 14816 *) 14817 export_dynamic_flag_spec_CXX='$wl-E' 14818 ;; 14819 esac 14820 fi 14821 case $host_cpu in 14822 hppa*64*|ia64*) 14823 hardcode_direct_CXX=no 14824 hardcode_shlibpath_var_CXX=no 14825 ;; 14826 *) 14827 hardcode_direct_CXX=yes 14828 hardcode_direct_absolute_CXX=yes 14829 hardcode_minus_L_CXX=yes # Not in the search PATH, 14830 # but as the default 14831 # location of the library. 14832 ;; 14833 esac 14834 14835 case $cc_basename in 14836 CC*) 14837 # FIXME: insert proper C++ library support 14838 ld_shlibs_CXX=no 14839 ;; 14840 aCC*) 14841 case $host_cpu in 14842 hppa*64*) 14843 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14844 ;; 14845 ia64*) 14846 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14847 ;; 14848 *) 14849 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14850 ;; 14851 esac 14852 # Commands to make compiler produce verbose output that lists 14853 # what "hidden" libraries, object files and flags are used when 14854 # linking a shared library. 14855 # 14856 # There doesn't appear to be a way to prevent this compiler from 14857 # explicitly linking system object files so we need to strip them 14858 # from the output so that they don't get included in the library 14859 # dependencies. 14860 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"' 14861 ;; 14862 *) 14863 if test yes = "$GXX"; then 14864 if test no = "$with_gnu_ld"; then 14865 case $host_cpu in 14866 hppa*64*) 14867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14868 ;; 14869 ia64*) 14870 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14871 ;; 14872 *) 14873 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' 14874 ;; 14875 esac 14876 fi 14877 else 14878 # FIXME: insert proper C++ library support 14879 ld_shlibs_CXX=no 14880 fi 14881 ;; 14882 esac 14883 ;; 14884 14885 interix[3-9]*) 14886 hardcode_direct_CXX=no 14887 hardcode_shlibpath_var_CXX=no 14888 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14889 export_dynamic_flag_spec_CXX='$wl-E' 14890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14891 # Instead, shared libraries are loaded at an image base (0x10000000 by 14892 # default) and relocated if they conflict, which is a slow very memory 14893 # consuming and fragmenting process. To avoid this, we pick a random, 14894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14895 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14896 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' 14897 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' 14898 ;; 14899 irix5* | irix6*) 14900 case $cc_basename in 14901 CC*) 14902 # SGI C++ 14903 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' 14904 14905 # Archives containing C++ object files must be created using 14906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14907 # necessary to make sure instantiated templates are included 14908 # in the archive. 14909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14910 ;; 14911 *) 14912 if test yes = "$GXX"; then 14913 if test no = "$with_gnu_ld"; then 14914 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' 14915 else 14916 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' 14917 fi 14918 fi 14919 link_all_deplibs_CXX=yes 14920 ;; 14921 esac 14922 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14923 hardcode_libdir_separator_CXX=: 14924 inherit_rpath_CXX=yes 14925 ;; 14926 14927 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14928 case $cc_basename in 14929 KCC*) 14930 # Kuck and Associates, Inc. (KAI) C++ Compiler 14931 14932 # KCC will only create a shared library if the output file 14933 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14934 # to its proper name (with version) after linking. 14935 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' 14936 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' 14937 # Commands to make compiler produce verbose output that lists 14938 # what "hidden" libraries, object files and flags are used when 14939 # linking a shared library. 14940 # 14941 # There doesn't appear to be a way to prevent this compiler from 14942 # explicitly linking system object files so we need to strip them 14943 # from the output so that they don't get included in the library 14944 # dependencies. 14945 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"' 14946 14947 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14948 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14949 14950 # Archives containing C++ object files must be created using 14951 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14953 ;; 14954 icpc* | ecpc* ) 14955 # Intel C++ 14956 with_gnu_ld=yes 14957 # version 8.0 and above of icpc choke on multiply defined symbols 14958 # if we add $predep_objects and $postdep_objects, however 7.1 and 14959 # earlier do not add the objects themselves. 14960 case `$CC -V 2>&1` in 14961 *"Version 7."*) 14962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14963 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' 14964 ;; 14965 *) # Version 8.0 or newer 14966 tmp_idyn= 14967 case $host_cpu in 14968 ia64*) tmp_idyn=' -i_dynamic';; 14969 esac 14970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14971 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' 14972 ;; 14973 esac 14974 archive_cmds_need_lc_CXX=no 14975 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14976 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14977 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14978 ;; 14979 pgCC* | pgcpp*) 14980 # Portland Group C++ compiler 14981 case `$CC -V` in 14982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14983 prelink_cmds_CXX='tpldir=Template.dir~ 14984 rm -rf $tpldir~ 14985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14986 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14987 old_archive_cmds_CXX='tpldir=Template.dir~ 14988 rm -rf $tpldir~ 14989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14991 $RANLIB $oldlib' 14992 archive_cmds_CXX='tpldir=Template.dir~ 14993 rm -rf $tpldir~ 14994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14996 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14997 rm -rf $tpldir~ 14998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14999 $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' 15000 ;; 15001 *) # Version 6 and above use weak symbols 15002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15003 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' 15004 ;; 15005 esac 15006 15007 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15008 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15009 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' 15010 ;; 15011 cxx*) 15012 # Compaq C++ 15013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15014 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' 15015 15016 runpath_var=LD_RUN_PATH 15017 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15018 hardcode_libdir_separator_CXX=: 15019 15020 # Commands to make compiler produce verbose output that lists 15021 # what "hidden" libraries, object files and flags are used when 15022 # linking a shared library. 15023 # 15024 # There doesn't appear to be a way to prevent this compiler from 15025 # explicitly linking system object files so we need to strip them 15026 # from the output so that they don't get included in the library 15027 # dependencies. 15028 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' 15029 ;; 15030 xl* | mpixl* | bgxl*) 15031 # IBM XL 8.0 on PPC, with GNU ld 15032 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15033 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15035 if test yes = "$supports_anon_versioning"; then 15036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15038 echo "local: *; };" >> $output_objdir/$libname.ver~ 15039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15040 fi 15041 ;; 15042 *) 15043 case `$CC -V 2>&1 | sed 5q` in 15044 *Sun\ C*) 15045 # Sun C++ 5.9 15046 no_undefined_flag_CXX=' -zdefs' 15047 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15048 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' 15049 hardcode_libdir_flag_spec_CXX='-R$libdir' 15050 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' 15051 compiler_needs_object_CXX=yes 15052 15053 # Not sure whether something based on 15054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15055 # would be better. 15056 output_verbose_link_cmd='func_echo_all' 15057 15058 # Archives containing C++ object files must be created using 15059 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15060 # necessary to make sure instantiated templates are included 15061 # in the archive. 15062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15063 ;; 15064 esac 15065 ;; 15066 esac 15067 ;; 15068 15069 lynxos*) 15070 # FIXME: insert proper C++ library support 15071 ld_shlibs_CXX=no 15072 ;; 15073 15074 m88k*) 15075 # FIXME: insert proper C++ library support 15076 ld_shlibs_CXX=no 15077 ;; 15078 15079 mvs*) 15080 case $cc_basename in 15081 cxx*) 15082 # FIXME: insert proper C++ library support 15083 ld_shlibs_CXX=no 15084 ;; 15085 *) 15086 # FIXME: insert proper C++ library support 15087 ld_shlibs_CXX=no 15088 ;; 15089 esac 15090 ;; 15091 15092 netbsd*) 15093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15095 wlarc= 15096 hardcode_libdir_flag_spec_CXX='-R$libdir' 15097 hardcode_direct_CXX=yes 15098 hardcode_shlibpath_var_CXX=no 15099 fi 15100 # Workaround some broken pre-1.5 toolchains 15101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15102 ;; 15103 15104 *nto* | *qnx*) 15105 ld_shlibs_CXX=yes 15106 ;; 15107 15108 openbsd* | bitrig*) 15109 if test -f /usr/libexec/ld.so; then 15110 hardcode_direct_CXX=yes 15111 hardcode_shlibpath_var_CXX=no 15112 hardcode_direct_absolute_CXX=yes 15113 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15114 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15116 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15117 export_dynamic_flag_spec_CXX='$wl-E' 15118 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15119 fi 15120 output_verbose_link_cmd=func_echo_all 15121 else 15122 ld_shlibs_CXX=no 15123 fi 15124 ;; 15125 15126 osf3* | osf4* | osf5*) 15127 case $cc_basename in 15128 KCC*) 15129 # Kuck and Associates, Inc. (KAI) C++ Compiler 15130 15131 # KCC will only create a shared library if the output file 15132 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15133 # to its proper name (with version) after linking. 15134 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' 15135 15136 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15137 hardcode_libdir_separator_CXX=: 15138 15139 # Archives containing C++ object files must be created using 15140 # the KAI C++ compiler. 15141 case $host in 15142 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15143 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15144 esac 15145 ;; 15146 RCC*) 15147 # Rational C++ 2.4.1 15148 # FIXME: insert proper C++ library support 15149 ld_shlibs_CXX=no 15150 ;; 15151 cxx*) 15152 case $host in 15153 osf3*) 15154 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15155 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' 15156 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15157 ;; 15158 *) 15159 allow_undefined_flag_CXX=' -expect_unresolved \*' 15160 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' 15161 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15162 echo "-hidden">> $lib.exp~ 15163 $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~ 15164 $RM $lib.exp' 15165 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15166 ;; 15167 esac 15168 15169 hardcode_libdir_separator_CXX=: 15170 15171 # Commands to make compiler produce verbose output that lists 15172 # what "hidden" libraries, object files and flags are used when 15173 # linking a shared library. 15174 # 15175 # There doesn't appear to be a way to prevent this compiler from 15176 # explicitly linking system object files so we need to strip them 15177 # from the output so that they don't get included in the library 15178 # dependencies. 15179 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"' 15180 ;; 15181 *) 15182 if test yes,no = "$GXX,$with_gnu_ld"; then 15183 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15184 case $host in 15185 osf3*) 15186 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' 15187 ;; 15188 *) 15189 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' 15190 ;; 15191 esac 15192 15193 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15194 hardcode_libdir_separator_CXX=: 15195 15196 # Commands to make compiler produce verbose output that lists 15197 # what "hidden" libraries, object files and flags are used when 15198 # linking a shared library. 15199 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15200 15201 else 15202 # FIXME: insert proper C++ library support 15203 ld_shlibs_CXX=no 15204 fi 15205 ;; 15206 esac 15207 ;; 15208 15209 psos*) 15210 # FIXME: insert proper C++ library support 15211 ld_shlibs_CXX=no 15212 ;; 15213 15214 sunos4*) 15215 case $cc_basename in 15216 CC*) 15217 # Sun C++ 4.x 15218 # FIXME: insert proper C++ library support 15219 ld_shlibs_CXX=no 15220 ;; 15221 lcc*) 15222 # Lucid 15223 # FIXME: insert proper C++ library support 15224 ld_shlibs_CXX=no 15225 ;; 15226 *) 15227 # FIXME: insert proper C++ library support 15228 ld_shlibs_CXX=no 15229 ;; 15230 esac 15231 ;; 15232 15233 solaris*) 15234 case $cc_basename in 15235 CC* | sunCC*) 15236 # Sun C++ 4.2, 5.x and Centerline C++ 15237 archive_cmds_need_lc_CXX=yes 15238 no_undefined_flag_CXX=' -zdefs' 15239 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15241 $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' 15242 15243 hardcode_libdir_flag_spec_CXX='-R$libdir' 15244 hardcode_shlibpath_var_CXX=no 15245 case $host_os in 15246 solaris2.[0-5] | solaris2.[0-5].*) ;; 15247 *) 15248 # The compiler driver will combine and reorder linker options, 15249 # but understands '-z linker_flag'. 15250 # Supported since Solaris 2.6 (maybe 2.5.1?) 15251 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15252 ;; 15253 esac 15254 link_all_deplibs_CXX=yes 15255 15256 output_verbose_link_cmd='func_echo_all' 15257 15258 # Archives containing C++ object files must be created using 15259 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15260 # necessary to make sure instantiated templates are included 15261 # in the archive. 15262 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15263 ;; 15264 gcx*) 15265 # Green Hills C++ Compiler 15266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15267 15268 # The C++ compiler must be used to create the archive. 15269 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15270 ;; 15271 *) 15272 # GNU C++ compiler with Solaris linker 15273 if test yes,no = "$GXX,$with_gnu_ld"; then 15274 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15275 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15276 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15277 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15278 $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' 15279 15280 # Commands to make compiler produce verbose output that lists 15281 # what "hidden" libraries, object files and flags are used when 15282 # linking a shared library. 15283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15284 else 15285 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15286 # platform. 15287 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15288 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15289 $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' 15290 15291 # Commands to make compiler produce verbose output that lists 15292 # what "hidden" libraries, object files and flags are used when 15293 # linking a shared library. 15294 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15295 fi 15296 15297 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15298 case $host_os in 15299 solaris2.[0-5] | solaris2.[0-5].*) ;; 15300 *) 15301 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15302 ;; 15303 esac 15304 fi 15305 ;; 15306 esac 15307 ;; 15308 15309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15310 no_undefined_flag_CXX='$wl-z,text' 15311 archive_cmds_need_lc_CXX=no 15312 hardcode_shlibpath_var_CXX=no 15313 runpath_var='LD_RUN_PATH' 15314 15315 case $cc_basename in 15316 CC*) 15317 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15318 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15319 ;; 15320 *) 15321 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15322 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15323 ;; 15324 esac 15325 ;; 15326 15327 sysv5* | sco3.2v5* | sco5v6*) 15328 # Note: We CANNOT use -z defs as we might desire, because we do not 15329 # link with -lc, and that would cause any symbols used from libc to 15330 # always be unresolved, which means just about no library would 15331 # ever link correctly. If we're not using GNU ld we use -z text 15332 # though, which does catch some bad symbols but isn't as heavy-handed 15333 # as -z defs. 15334 no_undefined_flag_CXX='$wl-z,text' 15335 allow_undefined_flag_CXX='$wl-z,nodefs' 15336 archive_cmds_need_lc_CXX=no 15337 hardcode_shlibpath_var_CXX=no 15338 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15339 hardcode_libdir_separator_CXX=':' 15340 link_all_deplibs_CXX=yes 15341 export_dynamic_flag_spec_CXX='$wl-Bexport' 15342 runpath_var='LD_RUN_PATH' 15343 15344 case $cc_basename in 15345 CC*) 15346 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15347 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15348 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15349 '"$old_archive_cmds_CXX" 15350 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15351 '"$reload_cmds_CXX" 15352 ;; 15353 *) 15354 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15355 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15356 ;; 15357 esac 15358 ;; 15359 15360 tandem*) 15361 case $cc_basename in 15362 NCC*) 15363 # NonStop-UX NCC 3.20 15364 # FIXME: insert proper C++ library support 15365 ld_shlibs_CXX=no 15366 ;; 15367 *) 15368 # FIXME: insert proper C++ library support 15369 ld_shlibs_CXX=no 15370 ;; 15371 esac 15372 ;; 15373 15374 vxworks*) 15375 # FIXME: insert proper C++ library support 15376 ld_shlibs_CXX=no 15377 ;; 15378 15379 *) 15380 # FIXME: insert proper C++ library support 15381 ld_shlibs_CXX=no 15382 ;; 15383 esac 15384 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15386$as_echo "$ld_shlibs_CXX" >&6; } 15387 test no = "$ld_shlibs_CXX" && can_build_shared=no 15388 15389 GCC_CXX=$GXX 15390 LD_CXX=$LD 15391 15392 ## CAVEAT EMPTOR: 15393 ## There is no encapsulation within the following macros, do not change 15394 ## the running order or otherwise move them around unless you know exactly 15395 ## what you are doing... 15396 # Dependencies to place before and after the object being linked: 15397predep_objects_CXX= 15398postdep_objects_CXX= 15399predeps_CXX= 15400postdeps_CXX= 15401compiler_lib_search_path_CXX= 15402 15403cat > conftest.$ac_ext <<_LT_EOF 15404class Foo 15405{ 15406public: 15407 Foo (void) { a = 0; } 15408private: 15409 int a; 15410}; 15411_LT_EOF 15412 15413 15414_lt_libdeps_save_CFLAGS=$CFLAGS 15415case "$CC $CFLAGS " in #( 15416*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15417*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15418*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15419esac 15420 15421if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15422 (eval $ac_compile) 2>&5 15423 ac_status=$? 15424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15425 test $ac_status = 0; }; then 15426 # Parse the compiler output and extract the necessary 15427 # objects, libraries and library flags. 15428 15429 # Sentinel used to keep track of whether or not we are before 15430 # the conftest object file. 15431 pre_test_object_deps_done=no 15432 15433 for p in `eval "$output_verbose_link_cmd"`; do 15434 case $prev$p in 15435 15436 -L* | -R* | -l*) 15437 # Some compilers place space between "-{L,R}" and the path. 15438 # Remove the space. 15439 if test x-L = "$p" || 15440 test x-R = "$p"; then 15441 prev=$p 15442 continue 15443 fi 15444 15445 # Expand the sysroot to ease extracting the directories later. 15446 if test -z "$prev"; then 15447 case $p in 15448 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15449 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15450 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15451 esac 15452 fi 15453 case $p in 15454 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15455 esac 15456 if test no = "$pre_test_object_deps_done"; then 15457 case $prev in 15458 -L | -R) 15459 # Internal compiler library paths should come after those 15460 # provided the user. The postdeps already come after the 15461 # user supplied libs so there is no need to process them. 15462 if test -z "$compiler_lib_search_path_CXX"; then 15463 compiler_lib_search_path_CXX=$prev$p 15464 else 15465 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15466 fi 15467 ;; 15468 # The "-l" case would never come before the object being 15469 # linked, so don't bother handling this case. 15470 esac 15471 else 15472 if test -z "$postdeps_CXX"; then 15473 postdeps_CXX=$prev$p 15474 else 15475 postdeps_CXX="${postdeps_CXX} $prev$p" 15476 fi 15477 fi 15478 prev= 15479 ;; 15480 15481 *.lto.$objext) ;; # Ignore GCC LTO objects 15482 *.$objext) 15483 # This assumes that the test object file only shows up 15484 # once in the compiler output. 15485 if test "$p" = "conftest.$objext"; then 15486 pre_test_object_deps_done=yes 15487 continue 15488 fi 15489 15490 if test no = "$pre_test_object_deps_done"; then 15491 if test -z "$predep_objects_CXX"; then 15492 predep_objects_CXX=$p 15493 else 15494 predep_objects_CXX="$predep_objects_CXX $p" 15495 fi 15496 else 15497 if test -z "$postdep_objects_CXX"; then 15498 postdep_objects_CXX=$p 15499 else 15500 postdep_objects_CXX="$postdep_objects_CXX $p" 15501 fi 15502 fi 15503 ;; 15504 15505 *) ;; # Ignore the rest. 15506 15507 esac 15508 done 15509 15510 # Clean up. 15511 rm -f a.out a.exe 15512else 15513 echo "libtool.m4: error: problem compiling CXX test program" 15514fi 15515 15516$RM -f confest.$objext 15517CFLAGS=$_lt_libdeps_save_CFLAGS 15518 15519# PORTME: override above test on systems where it is broken 15520case $host_os in 15521interix[3-9]*) 15522 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15523 # hack all around it, let's just trust "g++" to DTRT. 15524 predep_objects_CXX= 15525 postdep_objects_CXX= 15526 postdeps_CXX= 15527 ;; 15528esac 15529 15530 15531case " $postdeps_CXX " in 15532*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15533esac 15534 compiler_lib_search_dirs_CXX= 15535if test -n "${compiler_lib_search_path_CXX}"; then 15536 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15537fi 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 lt_prog_compiler_wl_CXX= 15570lt_prog_compiler_pic_CXX= 15571lt_prog_compiler_static_CXX= 15572 15573 15574 # C++ specific cases for pic, static, wl, etc. 15575 if test yes = "$GXX"; then 15576 lt_prog_compiler_wl_CXX='-Wl,' 15577 lt_prog_compiler_static_CXX='-static' 15578 15579 case $host_os in 15580 aix*) 15581 # All AIX code is PIC. 15582 if test ia64 = "$host_cpu"; then 15583 # AIX 5 now supports IA64 processor 15584 lt_prog_compiler_static_CXX='-Bstatic' 15585 fi 15586 lt_prog_compiler_pic_CXX='-fPIC' 15587 ;; 15588 15589 amigaos*) 15590 case $host_cpu in 15591 powerpc) 15592 # see comment about AmigaOS4 .so support 15593 lt_prog_compiler_pic_CXX='-fPIC' 15594 ;; 15595 m68k) 15596 # FIXME: we need at least 68020 code to build shared libraries, but 15597 # adding the '-m68020' flag to GCC prevents building anything better, 15598 # like '-m68040'. 15599 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15600 ;; 15601 esac 15602 ;; 15603 15604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15605 # PIC is the default for these OSes. 15606 ;; 15607 mingw* | cygwin* | os2* | pw32* | cegcc*) 15608 # This hack is so that the source file can tell whether it is being 15609 # built for inclusion in a dll (and should export symbols for example). 15610 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15611 # (--disable-auto-import) libraries 15612 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15613 case $host_os in 15614 os2*) 15615 lt_prog_compiler_static_CXX='$wl-static' 15616 ;; 15617 esac 15618 ;; 15619 darwin* | rhapsody*) 15620 # PIC is the default on this platform 15621 # Common symbols not allowed in MH_DYLIB files 15622 lt_prog_compiler_pic_CXX='-fno-common' 15623 ;; 15624 *djgpp*) 15625 # DJGPP does not support shared libraries at all 15626 lt_prog_compiler_pic_CXX= 15627 ;; 15628 haiku*) 15629 # PIC is the default for Haiku. 15630 # The "-static" flag exists, but is broken. 15631 lt_prog_compiler_static_CXX= 15632 ;; 15633 interix[3-9]*) 15634 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15635 # Instead, we relocate shared libraries at runtime. 15636 ;; 15637 sysv4*MP*) 15638 if test -d /usr/nec; then 15639 lt_prog_compiler_pic_CXX=-Kconform_pic 15640 fi 15641 ;; 15642 hpux*) 15643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15645 # sets the default TLS model and affects inlining. 15646 case $host_cpu in 15647 hppa*64*) 15648 ;; 15649 *) 15650 lt_prog_compiler_pic_CXX='-fPIC' 15651 ;; 15652 esac 15653 ;; 15654 *qnx* | *nto*) 15655 # QNX uses GNU C++, but need to define -shared option too, otherwise 15656 # it will coredump. 15657 lt_prog_compiler_pic_CXX='-fPIC -shared' 15658 ;; 15659 *) 15660 lt_prog_compiler_pic_CXX='-fPIC' 15661 ;; 15662 esac 15663 else 15664 case $host_os in 15665 aix[4-9]*) 15666 # All AIX code is PIC. 15667 if test ia64 = "$host_cpu"; then 15668 # AIX 5 now supports IA64 processor 15669 lt_prog_compiler_static_CXX='-Bstatic' 15670 else 15671 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15672 fi 15673 ;; 15674 chorus*) 15675 case $cc_basename in 15676 cxch68*) 15677 # Green Hills C++ Compiler 15678 # _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" 15679 ;; 15680 esac 15681 ;; 15682 mingw* | cygwin* | os2* | pw32* | cegcc*) 15683 # This hack is so that the source file can tell whether it is being 15684 # built for inclusion in a dll (and should export symbols for example). 15685 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15686 ;; 15687 dgux*) 15688 case $cc_basename in 15689 ec++*) 15690 lt_prog_compiler_pic_CXX='-KPIC' 15691 ;; 15692 ghcx*) 15693 # Green Hills C++ Compiler 15694 lt_prog_compiler_pic_CXX='-pic' 15695 ;; 15696 *) 15697 ;; 15698 esac 15699 ;; 15700 freebsd* | dragonfly*) 15701 # FreeBSD uses GNU C++ 15702 ;; 15703 hpux9* | hpux10* | hpux11*) 15704 case $cc_basename in 15705 CC*) 15706 lt_prog_compiler_wl_CXX='-Wl,' 15707 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15708 if test ia64 != "$host_cpu"; then 15709 lt_prog_compiler_pic_CXX='+Z' 15710 fi 15711 ;; 15712 aCC*) 15713 lt_prog_compiler_wl_CXX='-Wl,' 15714 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15715 case $host_cpu in 15716 hppa*64*|ia64*) 15717 # +Z the default 15718 ;; 15719 *) 15720 lt_prog_compiler_pic_CXX='+Z' 15721 ;; 15722 esac 15723 ;; 15724 *) 15725 ;; 15726 esac 15727 ;; 15728 interix*) 15729 # This is c89, which is MS Visual C++ (no shared libs) 15730 # Anyone wants to do a port? 15731 ;; 15732 irix5* | irix6* | nonstopux*) 15733 case $cc_basename in 15734 CC*) 15735 lt_prog_compiler_wl_CXX='-Wl,' 15736 lt_prog_compiler_static_CXX='-non_shared' 15737 # CC pic flag -KPIC is the default. 15738 ;; 15739 *) 15740 ;; 15741 esac 15742 ;; 15743 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15744 case $cc_basename in 15745 KCC*) 15746 # KAI C++ Compiler 15747 lt_prog_compiler_wl_CXX='--backend -Wl,' 15748 lt_prog_compiler_pic_CXX='-fPIC' 15749 ;; 15750 ecpc* ) 15751 # old Intel C++ for x86_64, which still supported -KPIC. 15752 lt_prog_compiler_wl_CXX='-Wl,' 15753 lt_prog_compiler_pic_CXX='-KPIC' 15754 lt_prog_compiler_static_CXX='-static' 15755 ;; 15756 icpc* ) 15757 # Intel C++, used to be incompatible with GCC. 15758 # ICC 10 doesn't accept -KPIC any more. 15759 lt_prog_compiler_wl_CXX='-Wl,' 15760 lt_prog_compiler_pic_CXX='-fPIC' 15761 lt_prog_compiler_static_CXX='-static' 15762 ;; 15763 pgCC* | pgcpp*) 15764 # Portland Group C++ compiler 15765 lt_prog_compiler_wl_CXX='-Wl,' 15766 lt_prog_compiler_pic_CXX='-fpic' 15767 lt_prog_compiler_static_CXX='-Bstatic' 15768 ;; 15769 cxx*) 15770 # Compaq C++ 15771 # Make sure the PIC flag is empty. It appears that all Alpha 15772 # Linux and Compaq Tru64 Unix objects are PIC. 15773 lt_prog_compiler_pic_CXX= 15774 lt_prog_compiler_static_CXX='-non_shared' 15775 ;; 15776 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15777 # IBM XL 8.0, 9.0 on PPC and BlueGene 15778 lt_prog_compiler_wl_CXX='-Wl,' 15779 lt_prog_compiler_pic_CXX='-qpic' 15780 lt_prog_compiler_static_CXX='-qstaticlink' 15781 ;; 15782 *) 15783 case `$CC -V 2>&1 | sed 5q` in 15784 *Sun\ C*) 15785 # Sun C++ 5.9 15786 lt_prog_compiler_pic_CXX='-KPIC' 15787 lt_prog_compiler_static_CXX='-Bstatic' 15788 lt_prog_compiler_wl_CXX='-Qoption ld ' 15789 ;; 15790 esac 15791 ;; 15792 esac 15793 ;; 15794 lynxos*) 15795 ;; 15796 m88k*) 15797 ;; 15798 mvs*) 15799 case $cc_basename in 15800 cxx*) 15801 lt_prog_compiler_pic_CXX='-W c,exportall' 15802 ;; 15803 *) 15804 ;; 15805 esac 15806 ;; 15807 netbsd*) 15808 ;; 15809 *qnx* | *nto*) 15810 # QNX uses GNU C++, but need to define -shared option too, otherwise 15811 # it will coredump. 15812 lt_prog_compiler_pic_CXX='-fPIC -shared' 15813 ;; 15814 osf3* | osf4* | osf5*) 15815 case $cc_basename in 15816 KCC*) 15817 lt_prog_compiler_wl_CXX='--backend -Wl,' 15818 ;; 15819 RCC*) 15820 # Rational C++ 2.4.1 15821 lt_prog_compiler_pic_CXX='-pic' 15822 ;; 15823 cxx*) 15824 # Digital/Compaq C++ 15825 lt_prog_compiler_wl_CXX='-Wl,' 15826 # Make sure the PIC flag is empty. It appears that all Alpha 15827 # Linux and Compaq Tru64 Unix objects are PIC. 15828 lt_prog_compiler_pic_CXX= 15829 lt_prog_compiler_static_CXX='-non_shared' 15830 ;; 15831 *) 15832 ;; 15833 esac 15834 ;; 15835 psos*) 15836 ;; 15837 solaris*) 15838 case $cc_basename in 15839 CC* | sunCC*) 15840 # Sun C++ 4.2, 5.x and Centerline C++ 15841 lt_prog_compiler_pic_CXX='-KPIC' 15842 lt_prog_compiler_static_CXX='-Bstatic' 15843 lt_prog_compiler_wl_CXX='-Qoption ld ' 15844 ;; 15845 gcx*) 15846 # Green Hills C++ Compiler 15847 lt_prog_compiler_pic_CXX='-PIC' 15848 ;; 15849 *) 15850 ;; 15851 esac 15852 ;; 15853 sunos4*) 15854 case $cc_basename in 15855 CC*) 15856 # Sun C++ 4.x 15857 lt_prog_compiler_pic_CXX='-pic' 15858 lt_prog_compiler_static_CXX='-Bstatic' 15859 ;; 15860 lcc*) 15861 # Lucid 15862 lt_prog_compiler_pic_CXX='-pic' 15863 ;; 15864 *) 15865 ;; 15866 esac 15867 ;; 15868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15869 case $cc_basename in 15870 CC*) 15871 lt_prog_compiler_wl_CXX='-Wl,' 15872 lt_prog_compiler_pic_CXX='-KPIC' 15873 lt_prog_compiler_static_CXX='-Bstatic' 15874 ;; 15875 esac 15876 ;; 15877 tandem*) 15878 case $cc_basename in 15879 NCC*) 15880 # NonStop-UX NCC 3.20 15881 lt_prog_compiler_pic_CXX='-KPIC' 15882 ;; 15883 *) 15884 ;; 15885 esac 15886 ;; 15887 vxworks*) 15888 ;; 15889 *) 15890 lt_prog_compiler_can_build_shared_CXX=no 15891 ;; 15892 esac 15893 fi 15894 15895case $host_os in 15896 # For platforms that do not support PIC, -DPIC is meaningless: 15897 *djgpp*) 15898 lt_prog_compiler_pic_CXX= 15899 ;; 15900 *) 15901 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15902 ;; 15903esac 15904 15905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15906$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15907if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15908 $as_echo_n "(cached) " >&6 15909else 15910 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15911fi 15912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15913$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15914lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15915 15916# 15917# Check to make sure the PIC flag actually works. 15918# 15919if test -n "$lt_prog_compiler_pic_CXX"; then 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15921$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15922if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15923 $as_echo_n "(cached) " >&6 15924else 15925 lt_cv_prog_compiler_pic_works_CXX=no 15926 ac_outfile=conftest.$ac_objext 15927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15929 # Insert the option either (1) after the last *FLAGS variable, or 15930 # (2) before a word containing "conftest.", or (3) at the end. 15931 # Note that $ac_compile itself does not contain backslashes and begins 15932 # with a dollar sign (not a hyphen), so the echo should work correctly. 15933 # The option is referenced via a variable to avoid confusing sed. 15934 lt_compile=`echo "$ac_compile" | $SED \ 15935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15937 -e 's:$: $lt_compiler_flag:'` 15938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15939 (eval "$lt_compile" 2>conftest.err) 15940 ac_status=$? 15941 cat conftest.err >&5 15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15943 if (exit $ac_status) && test -s "$ac_outfile"; then 15944 # The compiler can only warn and ignore the option if not recognized 15945 # So say no if there are warnings other than the usual output. 15946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15949 lt_cv_prog_compiler_pic_works_CXX=yes 15950 fi 15951 fi 15952 $RM conftest* 15953 15954fi 15955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15956$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15957 15958if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15959 case $lt_prog_compiler_pic_CXX in 15960 "" | " "*) ;; 15961 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15962 esac 15963else 15964 lt_prog_compiler_pic_CXX= 15965 lt_prog_compiler_can_build_shared_CXX=no 15966fi 15967 15968fi 15969 15970 15971 15972 15973 15974# 15975# Check to make sure the static flag actually works. 15976# 15977wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15979$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15980if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15981 $as_echo_n "(cached) " >&6 15982else 15983 lt_cv_prog_compiler_static_works_CXX=no 15984 save_LDFLAGS=$LDFLAGS 15985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15986 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15988 # The linker can only warn and ignore the option if not recognized 15989 # So say no if there are warnings 15990 if test -s conftest.err; then 15991 # Append any errors to the config.log. 15992 cat conftest.err 1>&5 15993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15995 if diff conftest.exp conftest.er2 >/dev/null; then 15996 lt_cv_prog_compiler_static_works_CXX=yes 15997 fi 15998 else 15999 lt_cv_prog_compiler_static_works_CXX=yes 16000 fi 16001 fi 16002 $RM -r conftest* 16003 LDFLAGS=$save_LDFLAGS 16004 16005fi 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16007$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16008 16009if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16010 : 16011else 16012 lt_prog_compiler_static_CXX= 16013fi 16014 16015 16016 16017 16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16020if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16021 $as_echo_n "(cached) " >&6 16022else 16023 lt_cv_prog_compiler_c_o_CXX=no 16024 $RM -r conftest 2>/dev/null 16025 mkdir conftest 16026 cd conftest 16027 mkdir out 16028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16029 16030 lt_compiler_flag="-o out/conftest2.$ac_objext" 16031 # Insert the option either (1) after the last *FLAGS variable, or 16032 # (2) before a word containing "conftest.", or (3) at the end. 16033 # Note that $ac_compile itself does not contain backslashes and begins 16034 # with a dollar sign (not a hyphen), so the echo should work correctly. 16035 lt_compile=`echo "$ac_compile" | $SED \ 16036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16038 -e 's:$: $lt_compiler_flag:'` 16039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16040 (eval "$lt_compile" 2>out/conftest.err) 16041 ac_status=$? 16042 cat out/conftest.err >&5 16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16045 then 16046 # The compiler can only warn and ignore the option if not recognized 16047 # So say no if there are warnings 16048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16051 lt_cv_prog_compiler_c_o_CXX=yes 16052 fi 16053 fi 16054 chmod u+w . 2>&5 16055 $RM conftest* 16056 # SGI C++ compiler will create directory out/ii_files/ for 16057 # template instantiation 16058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16059 $RM out/* && rmdir out 16060 cd .. 16061 $RM -r conftest 16062 $RM conftest* 16063 16064fi 16065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16066$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16067 16068 16069 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16071$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16072if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16073 $as_echo_n "(cached) " >&6 16074else 16075 lt_cv_prog_compiler_c_o_CXX=no 16076 $RM -r conftest 2>/dev/null 16077 mkdir conftest 16078 cd conftest 16079 mkdir out 16080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16081 16082 lt_compiler_flag="-o out/conftest2.$ac_objext" 16083 # Insert the option either (1) after the last *FLAGS variable, or 16084 # (2) before a word containing "conftest.", or (3) at the end. 16085 # Note that $ac_compile itself does not contain backslashes and begins 16086 # with a dollar sign (not a hyphen), so the echo should work correctly. 16087 lt_compile=`echo "$ac_compile" | $SED \ 16088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16090 -e 's:$: $lt_compiler_flag:'` 16091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16092 (eval "$lt_compile" 2>out/conftest.err) 16093 ac_status=$? 16094 cat out/conftest.err >&5 16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16096 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16097 then 16098 # The compiler can only warn and ignore the option if not recognized 16099 # So say no if there are warnings 16100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16103 lt_cv_prog_compiler_c_o_CXX=yes 16104 fi 16105 fi 16106 chmod u+w . 2>&5 16107 $RM conftest* 16108 # SGI C++ compiler will create directory out/ii_files/ for 16109 # template instantiation 16110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16111 $RM out/* && rmdir out 16112 cd .. 16113 $RM -r conftest 16114 $RM conftest* 16115 16116fi 16117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16118$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16119 16120 16121 16122 16123hard_links=nottested 16124if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16125 # do not overwrite the value of need_locks provided by the user 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16127$as_echo_n "checking if we can lock with hard links... " >&6; } 16128 hard_links=yes 16129 $RM conftest* 16130 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16131 touch conftest.a 16132 ln conftest.a conftest.b 2>&5 || hard_links=no 16133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16135$as_echo "$hard_links" >&6; } 16136 if test no = "$hard_links"; then 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16138$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16139 need_locks=warn 16140 fi 16141else 16142 need_locks=no 16143fi 16144 16145 16146 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16148$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16149 16150 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16151 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16152 case $host_os in 16153 aix[4-9]*) 16154 # If we're using GNU nm, then we don't want the "-C" option. 16155 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16156 # Without the "-l" option, or with the "-B" option, AIX nm treats 16157 # weak defined symbols like other global defined symbols, whereas 16158 # GNU nm marks them as "W". 16159 # While the 'weak' keyword is ignored in the Export File, we need 16160 # it in the Import File for the 'aix-soname' feature, so we have 16161 # to replace the "-B" option with "-P" for AIX nm. 16162 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16163 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' 16164 else 16165 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' 16166 fi 16167 ;; 16168 pw32*) 16169 export_symbols_cmds_CXX=$ltdll_cmds 16170 ;; 16171 cygwin* | mingw* | cegcc*) 16172 case $cc_basename in 16173 cl*) 16174 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16175 ;; 16176 *) 16177 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' 16178 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16179 ;; 16180 esac 16181 ;; 16182 *) 16183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16184 ;; 16185 esac 16186 16187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16188$as_echo "$ld_shlibs_CXX" >&6; } 16189test no = "$ld_shlibs_CXX" && can_build_shared=no 16190 16191with_gnu_ld_CXX=$with_gnu_ld 16192 16193 16194 16195 16196 16197 16198# 16199# Do we need to explicitly link libc? 16200# 16201case "x$archive_cmds_need_lc_CXX" in 16202x|xyes) 16203 # Assume -lc should be added 16204 archive_cmds_need_lc_CXX=yes 16205 16206 if test yes,yes = "$GCC,$enable_shared"; then 16207 case $archive_cmds_CXX in 16208 *'~'*) 16209 # FIXME: we may have to deal with multi-command sequences. 16210 ;; 16211 '$CC '*) 16212 # Test whether the compiler implicitly links with -lc since on some 16213 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16214 # to ld, don't add -lc before -lgcc. 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16216$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16217if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16218 $as_echo_n "(cached) " >&6 16219else 16220 $RM conftest* 16221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16222 16223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16224 (eval $ac_compile) 2>&5 16225 ac_status=$? 16226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16227 test $ac_status = 0; } 2>conftest.err; then 16228 soname=conftest 16229 lib=conftest 16230 libobjs=conftest.$ac_objext 16231 deplibs= 16232 wl=$lt_prog_compiler_wl_CXX 16233 pic_flag=$lt_prog_compiler_pic_CXX 16234 compiler_flags=-v 16235 linker_flags=-v 16236 verstring= 16237 output_objdir=. 16238 libname=conftest 16239 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16240 allow_undefined_flag_CXX= 16241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16242 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16243 ac_status=$? 16244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16245 test $ac_status = 0; } 16246 then 16247 lt_cv_archive_cmds_need_lc_CXX=no 16248 else 16249 lt_cv_archive_cmds_need_lc_CXX=yes 16250 fi 16251 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16252 else 16253 cat conftest.err 1>&5 16254 fi 16255 $RM conftest* 16256 16257fi 16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16259$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16260 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16261 ;; 16262 esac 16263 fi 16264 ;; 16265esac 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16329$as_echo_n "checking dynamic linker characteristics... " >&6; } 16330 16331library_names_spec= 16332libname_spec='lib$name' 16333soname_spec= 16334shrext_cmds=.so 16335postinstall_cmds= 16336postuninstall_cmds= 16337finish_cmds= 16338finish_eval= 16339shlibpath_var= 16340shlibpath_overrides_runpath=unknown 16341version_type=none 16342dynamic_linker="$host_os ld.so" 16343sys_lib_dlsearch_path_spec="/lib /usr/lib" 16344need_lib_prefix=unknown 16345hardcode_into_libs=no 16346 16347# when you set need_version to no, make sure it does not cause -set_version 16348# flags to be left without arguments 16349need_version=unknown 16350 16351 16352 16353case $host_os in 16354aix3*) 16355 version_type=linux # correct to gnu/linux during the next big refactor 16356 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16357 shlibpath_var=LIBPATH 16358 16359 # AIX 3 has no versioning support, so we append a major version to the name. 16360 soname_spec='$libname$release$shared_ext$major' 16361 ;; 16362 16363aix[4-9]*) 16364 version_type=linux # correct to gnu/linux during the next big refactor 16365 need_lib_prefix=no 16366 need_version=no 16367 hardcode_into_libs=yes 16368 if test ia64 = "$host_cpu"; then 16369 # AIX 5 supports IA64 16370 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16371 shlibpath_var=LD_LIBRARY_PATH 16372 else 16373 # With GCC up to 2.95.x, collect2 would create an import file 16374 # for dependence libraries. The import file would start with 16375 # the line '#! .'. This would cause the generated library to 16376 # depend on '.', always an invalid library. This was fixed in 16377 # development snapshots of GCC prior to 3.0. 16378 case $host_os in 16379 aix4 | aix4.[01] | aix4.[01].*) 16380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16381 echo ' yes ' 16382 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16383 : 16384 else 16385 can_build_shared=no 16386 fi 16387 ;; 16388 esac 16389 # Using Import Files as archive members, it is possible to support 16390 # filename-based versioning of shared library archives on AIX. While 16391 # this would work for both with and without runtime linking, it will 16392 # prevent static linking of such archives. So we do filename-based 16393 # shared library versioning with .so extension only, which is used 16394 # when both runtime linking and shared linking is enabled. 16395 # Unfortunately, runtime linking may impact performance, so we do 16396 # not want this to be the default eventually. Also, we use the 16397 # versioned .so libs for executables only if there is the -brtl 16398 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16399 # To allow for filename-based versioning support, we need to create 16400 # libNAME.so.V as an archive file, containing: 16401 # *) an Import File, referring to the versioned filename of the 16402 # archive as well as the shared archive member, telling the 16403 # bitwidth (32 or 64) of that shared object, and providing the 16404 # list of exported symbols of that shared object, eventually 16405 # decorated with the 'weak' keyword 16406 # *) the shared object with the F_LOADONLY flag set, to really avoid 16407 # it being seen by the linker. 16408 # At run time we better use the real file rather than another symlink, 16409 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16410 16411 case $with_aix_soname,$aix_use_runtimelinking in 16412 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16413 # soname into executable. Probably we can add versioning support to 16414 # collect2, so additional links can be useful in future. 16415 aix,yes) # traditional libtool 16416 dynamic_linker='AIX unversionable lib.so' 16417 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16418 # instead of lib<name>.a to let people know that these are not 16419 # typical AIX shared libraries. 16420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16421 ;; 16422 aix,no) # traditional AIX only 16423 dynamic_linker='AIX lib.a(lib.so.V)' 16424 # We preserve .a as extension for shared libraries through AIX4.2 16425 # and later when we are not doing run time linking. 16426 library_names_spec='$libname$release.a $libname.a' 16427 soname_spec='$libname$release$shared_ext$major' 16428 ;; 16429 svr4,*) # full svr4 only 16430 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16431 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16432 # We do not specify a path in Import Files, so LIBPATH fires. 16433 shlibpath_overrides_runpath=yes 16434 ;; 16435 *,yes) # both, prefer svr4 16436 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16437 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16438 # unpreferred sharedlib libNAME.a needs extra handling 16439 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"' 16440 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"' 16441 # We do not specify a path in Import Files, so LIBPATH fires. 16442 shlibpath_overrides_runpath=yes 16443 ;; 16444 *,no) # both, prefer aix 16445 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16446 library_names_spec='$libname$release.a $libname.a' 16447 soname_spec='$libname$release$shared_ext$major' 16448 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16449 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)' 16450 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"' 16451 ;; 16452 esac 16453 shlibpath_var=LIBPATH 16454 fi 16455 ;; 16456 16457amigaos*) 16458 case $host_cpu in 16459 powerpc) 16460 # Since July 2007 AmigaOS4 officially supports .so libraries. 16461 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16463 ;; 16464 m68k) 16465 library_names_spec='$libname.ixlibrary $libname.a' 16466 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16467 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' 16468 ;; 16469 esac 16470 ;; 16471 16472beos*) 16473 library_names_spec='$libname$shared_ext' 16474 dynamic_linker="$host_os ld.so" 16475 shlibpath_var=LIBRARY_PATH 16476 ;; 16477 16478bsdi[45]*) 16479 version_type=linux # correct to gnu/linux during the next big refactor 16480 need_version=no 16481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16482 soname_spec='$libname$release$shared_ext$major' 16483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16484 shlibpath_var=LD_LIBRARY_PATH 16485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16487 # the default ld.so.conf also contains /usr/contrib/lib and 16488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16489 # libtool to hard-code these into programs 16490 ;; 16491 16492cygwin* | mingw* | pw32* | cegcc*) 16493 version_type=windows 16494 shrext_cmds=.dll 16495 need_version=no 16496 need_lib_prefix=no 16497 16498 case $GCC,$cc_basename in 16499 yes,*) 16500 # gcc 16501 library_names_spec='$libname.dll.a' 16502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16503 postinstall_cmds='base_file=`basename \$file`~ 16504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16505 dldir=$destdir/`dirname \$dlpath`~ 16506 test -d \$dldir || mkdir -p \$dldir~ 16507 $install_prog $dir/$dlname \$dldir/$dlname~ 16508 chmod a+x \$dldir/$dlname~ 16509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16511 fi' 16512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16513 dlpath=$dir/\$dldll~ 16514 $RM \$dlpath' 16515 shlibpath_overrides_runpath=yes 16516 16517 case $host_os in 16518 cygwin*) 16519 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16520 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16521 16522 ;; 16523 mingw* | cegcc*) 16524 # MinGW DLLs use traditional 'lib' prefix 16525 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16526 ;; 16527 pw32*) 16528 # pw32 DLLs use 'pw' prefix rather than 'lib' 16529 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16530 ;; 16531 esac 16532 dynamic_linker='Win32 ld.exe' 16533 ;; 16534 16535 *,cl*) 16536 # Native MSVC 16537 libname_spec='$name' 16538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16539 library_names_spec='$libname.dll.lib' 16540 16541 case $build_os in 16542 mingw*) 16543 sys_lib_search_path_spec= 16544 lt_save_ifs=$IFS 16545 IFS=';' 16546 for lt_path in $LIB 16547 do 16548 IFS=$lt_save_ifs 16549 # Let DOS variable expansion print the short 8.3 style file name. 16550 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16551 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16552 done 16553 IFS=$lt_save_ifs 16554 # Convert to MSYS style. 16555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16556 ;; 16557 cygwin*) 16558 # Convert to unix form, then to dos form, then back to unix form 16559 # but this time dos style (no spaces!) so that the unix form looks 16560 # like /cygdrive/c/PROGRA~1:/cygdr... 16561 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16562 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16563 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16564 ;; 16565 *) 16566 sys_lib_search_path_spec=$LIB 16567 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16568 # It is most probably a Windows format PATH. 16569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16570 else 16571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16572 fi 16573 # FIXME: find the short name or the path components, as spaces are 16574 # common. (e.g. "Program Files" -> "PROGRA~1") 16575 ;; 16576 esac 16577 16578 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16579 postinstall_cmds='base_file=`basename \$file`~ 16580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16581 dldir=$destdir/`dirname \$dlpath`~ 16582 test -d \$dldir || mkdir -p \$dldir~ 16583 $install_prog $dir/$dlname \$dldir/$dlname' 16584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16585 dlpath=$dir/\$dldll~ 16586 $RM \$dlpath' 16587 shlibpath_overrides_runpath=yes 16588 dynamic_linker='Win32 link.exe' 16589 ;; 16590 16591 *) 16592 # Assume MSVC wrapper 16593 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16594 dynamic_linker='Win32 ld.exe' 16595 ;; 16596 esac 16597 # FIXME: first we should search . and the directory the executable is in 16598 shlibpath_var=PATH 16599 ;; 16600 16601darwin* | rhapsody*) 16602 dynamic_linker="$host_os dyld" 16603 version_type=darwin 16604 need_lib_prefix=no 16605 need_version=no 16606 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16607 soname_spec='$libname$release$major$shared_ext' 16608 shlibpath_overrides_runpath=yes 16609 shlibpath_var=DYLD_LIBRARY_PATH 16610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16611 16612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16613 ;; 16614 16615dgux*) 16616 version_type=linux # correct to gnu/linux during the next big refactor 16617 need_lib_prefix=no 16618 need_version=no 16619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16620 soname_spec='$libname$release$shared_ext$major' 16621 shlibpath_var=LD_LIBRARY_PATH 16622 ;; 16623 16624freebsd* | dragonfly*) 16625 # DragonFly does not have aout. When/if they implement a new 16626 # versioning mechanism, adjust this. 16627 if test -x /usr/bin/objformat; then 16628 objformat=`/usr/bin/objformat` 16629 else 16630 case $host_os in 16631 freebsd[23].*) objformat=aout ;; 16632 *) objformat=elf ;; 16633 esac 16634 fi 16635 version_type=freebsd-$objformat 16636 case $version_type in 16637 freebsd-elf*) 16638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16639 soname_spec='$libname$release$shared_ext$major' 16640 need_version=no 16641 need_lib_prefix=no 16642 ;; 16643 freebsd-*) 16644 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16645 need_version=yes 16646 ;; 16647 esac 16648 shlibpath_var=LD_LIBRARY_PATH 16649 case $host_os in 16650 freebsd2.*) 16651 shlibpath_overrides_runpath=yes 16652 ;; 16653 freebsd3.[01]* | freebsdelf3.[01]*) 16654 shlibpath_overrides_runpath=yes 16655 hardcode_into_libs=yes 16656 ;; 16657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16659 shlibpath_overrides_runpath=no 16660 hardcode_into_libs=yes 16661 ;; 16662 *) # from 4.6 on, and DragonFly 16663 shlibpath_overrides_runpath=yes 16664 hardcode_into_libs=yes 16665 ;; 16666 esac 16667 ;; 16668 16669haiku*) 16670 version_type=linux # correct to gnu/linux during the next big refactor 16671 need_lib_prefix=no 16672 need_version=no 16673 dynamic_linker="$host_os runtime_loader" 16674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16675 soname_spec='$libname$release$shared_ext$major' 16676 shlibpath_var=LIBRARY_PATH 16677 shlibpath_overrides_runpath=no 16678 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16679 hardcode_into_libs=yes 16680 ;; 16681 16682hpux9* | hpux10* | hpux11*) 16683 # Give a soname corresponding to the major version so that dld.sl refuses to 16684 # link against other versions. 16685 version_type=sunos 16686 need_lib_prefix=no 16687 need_version=no 16688 case $host_cpu in 16689 ia64*) 16690 shrext_cmds='.so' 16691 hardcode_into_libs=yes 16692 dynamic_linker="$host_os dld.so" 16693 shlibpath_var=LD_LIBRARY_PATH 16694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16696 soname_spec='$libname$release$shared_ext$major' 16697 if test 32 = "$HPUX_IA64_MODE"; then 16698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16699 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16700 else 16701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16702 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16703 fi 16704 ;; 16705 hppa*64*) 16706 shrext_cmds='.sl' 16707 hardcode_into_libs=yes 16708 dynamic_linker="$host_os dld.sl" 16709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16712 soname_spec='$libname$release$shared_ext$major' 16713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16715 ;; 16716 *) 16717 shrext_cmds='.sl' 16718 dynamic_linker="$host_os dld.sl" 16719 shlibpath_var=SHLIB_PATH 16720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16722 soname_spec='$libname$release$shared_ext$major' 16723 ;; 16724 esac 16725 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16726 postinstall_cmds='chmod 555 $lib' 16727 # or fails outright, so override atomically: 16728 install_override_mode=555 16729 ;; 16730 16731interix[3-9]*) 16732 version_type=linux # correct to gnu/linux during the next big refactor 16733 need_lib_prefix=no 16734 need_version=no 16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16736 soname_spec='$libname$release$shared_ext$major' 16737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16738 shlibpath_var=LD_LIBRARY_PATH 16739 shlibpath_overrides_runpath=no 16740 hardcode_into_libs=yes 16741 ;; 16742 16743irix5* | irix6* | nonstopux*) 16744 case $host_os in 16745 nonstopux*) version_type=nonstopux ;; 16746 *) 16747 if test yes = "$lt_cv_prog_gnu_ld"; then 16748 version_type=linux # correct to gnu/linux during the next big refactor 16749 else 16750 version_type=irix 16751 fi ;; 16752 esac 16753 need_lib_prefix=no 16754 need_version=no 16755 soname_spec='$libname$release$shared_ext$major' 16756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16757 case $host_os in 16758 irix5* | nonstopux*) 16759 libsuff= shlibsuff= 16760 ;; 16761 *) 16762 case $LD in # libtool.m4 will add one of these switches to LD 16763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16764 libsuff= shlibsuff= libmagic=32-bit;; 16765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16766 libsuff=32 shlibsuff=N32 libmagic=N32;; 16767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16768 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16769 *) libsuff= shlibsuff= libmagic=never-match;; 16770 esac 16771 ;; 16772 esac 16773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16774 shlibpath_overrides_runpath=no 16775 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16776 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16777 hardcode_into_libs=yes 16778 ;; 16779 16780# No shared lib support for Linux oldld, aout, or coff. 16781linux*oldld* | linux*aout* | linux*coff*) 16782 dynamic_linker=no 16783 ;; 16784 16785linux*android*) 16786 version_type=none # Android doesn't support versioned libraries. 16787 need_lib_prefix=no 16788 need_version=no 16789 library_names_spec='$libname$release$shared_ext' 16790 soname_spec='$libname$release$shared_ext' 16791 finish_cmds= 16792 shlibpath_var=LD_LIBRARY_PATH 16793 shlibpath_overrides_runpath=yes 16794 16795 # This implies no fast_install, which is unacceptable. 16796 # Some rework will be needed to allow for fast_install 16797 # before this can be enabled. 16798 hardcode_into_libs=yes 16799 16800 dynamic_linker='Android linker' 16801 # Don't embed -rpath directories since the linker doesn't support them. 16802 hardcode_libdir_flag_spec_CXX='-L$libdir' 16803 ;; 16804 16805# This must be glibc/ELF. 16806linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16807 version_type=linux # correct to gnu/linux during the next big refactor 16808 need_lib_prefix=no 16809 need_version=no 16810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16811 soname_spec='$libname$release$shared_ext$major' 16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16813 shlibpath_var=LD_LIBRARY_PATH 16814 shlibpath_overrides_runpath=no 16815 16816 # Some binutils ld are patched to set DT_RUNPATH 16817 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16818 $as_echo_n "(cached) " >&6 16819else 16820 lt_cv_shlibpath_overrides_runpath=no 16821 save_LDFLAGS=$LDFLAGS 16822 save_libdir=$libdir 16823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16826/* end confdefs.h. */ 16827 16828int 16829main () 16830{ 16831 16832 ; 16833 return 0; 16834} 16835_ACEOF 16836if ac_fn_cxx_try_link "$LINENO"; then : 16837 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16838 lt_cv_shlibpath_overrides_runpath=yes 16839fi 16840fi 16841rm -f core conftest.err conftest.$ac_objext \ 16842 conftest$ac_exeext conftest.$ac_ext 16843 LDFLAGS=$save_LDFLAGS 16844 libdir=$save_libdir 16845 16846fi 16847 16848 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16849 16850 # This implies no fast_install, which is unacceptable. 16851 # Some rework will be needed to allow for fast_install 16852 # before this can be enabled. 16853 hardcode_into_libs=yes 16854 16855 # Ideally, we could use ldconfig to report *all* directores which are 16856 # searched for libraries, however this is still not possible. Aside from not 16857 # being certain /sbin/ldconfig is available, command 16858 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16859 # even though it is searched at run-time. Try to do the best guess by 16860 # appending ld.so.conf contents (and includes) to the search path. 16861 if test -f /etc/ld.so.conf; then 16862 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' ' '` 16863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16864 fi 16865 16866 # We used to test for /lib/ld.so.1 and disable shared libraries on 16867 # powerpc, because MkLinux only supported shared libraries with the 16868 # GNU dynamic linker. Since this was broken with cross compilers, 16869 # most powerpc-linux boxes support dynamic linking these days and 16870 # people can always --disable-shared, the test was removed, and we 16871 # assume the GNU/Linux dynamic linker is in use. 16872 dynamic_linker='GNU/Linux ld.so' 16873 ;; 16874 16875netbsd*) 16876 version_type=sunos 16877 need_lib_prefix=no 16878 need_version=no 16879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16880 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16882 dynamic_linker='NetBSD (a.out) ld.so' 16883 else 16884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16885 soname_spec='$libname$release$shared_ext$major' 16886 dynamic_linker='NetBSD ld.elf_so' 16887 fi 16888 shlibpath_var=LD_LIBRARY_PATH 16889 shlibpath_overrides_runpath=yes 16890 hardcode_into_libs=yes 16891 ;; 16892 16893newsos6) 16894 version_type=linux # correct to gnu/linux during the next big refactor 16895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16896 shlibpath_var=LD_LIBRARY_PATH 16897 shlibpath_overrides_runpath=yes 16898 ;; 16899 16900*nto* | *qnx*) 16901 version_type=qnx 16902 need_lib_prefix=no 16903 need_version=no 16904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16905 soname_spec='$libname$release$shared_ext$major' 16906 shlibpath_var=LD_LIBRARY_PATH 16907 shlibpath_overrides_runpath=no 16908 hardcode_into_libs=yes 16909 dynamic_linker='ldqnx.so' 16910 ;; 16911 16912openbsd* | bitrig*) 16913 version_type=sunos 16914 sys_lib_dlsearch_path_spec=/usr/lib 16915 need_lib_prefix=no 16916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16917 need_version=no 16918 else 16919 need_version=yes 16920 fi 16921 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16923 shlibpath_var=LD_LIBRARY_PATH 16924 shlibpath_overrides_runpath=yes 16925 ;; 16926 16927os2*) 16928 libname_spec='$name' 16929 version_type=windows 16930 shrext_cmds=.dll 16931 need_version=no 16932 need_lib_prefix=no 16933 # OS/2 can only load a DLL with a base name of 8 characters or less. 16934 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16935 v=$($ECHO $release$versuffix | tr -d .-); 16936 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16937 $ECHO $n$v`$shared_ext' 16938 library_names_spec='${libname}_dll.$libext' 16939 dynamic_linker='OS/2 ld.exe' 16940 shlibpath_var=BEGINLIBPATH 16941 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16943 postinstall_cmds='base_file=`basename \$file`~ 16944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16945 dldir=$destdir/`dirname \$dlpath`~ 16946 test -d \$dldir || mkdir -p \$dldir~ 16947 $install_prog $dir/$dlname \$dldir/$dlname~ 16948 chmod a+x \$dldir/$dlname~ 16949 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16950 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16951 fi' 16952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16953 dlpath=$dir/\$dldll~ 16954 $RM \$dlpath' 16955 ;; 16956 16957osf3* | osf4* | osf5*) 16958 version_type=osf 16959 need_lib_prefix=no 16960 need_version=no 16961 soname_spec='$libname$release$shared_ext$major' 16962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16963 shlibpath_var=LD_LIBRARY_PATH 16964 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16966 ;; 16967 16968rdos*) 16969 dynamic_linker=no 16970 ;; 16971 16972solaris*) 16973 version_type=linux # correct to gnu/linux during the next big refactor 16974 need_lib_prefix=no 16975 need_version=no 16976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16977 soname_spec='$libname$release$shared_ext$major' 16978 shlibpath_var=LD_LIBRARY_PATH 16979 shlibpath_overrides_runpath=yes 16980 hardcode_into_libs=yes 16981 # ldd complains unless libraries are executable 16982 postinstall_cmds='chmod +x $lib' 16983 ;; 16984 16985sunos4*) 16986 version_type=sunos 16987 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16989 shlibpath_var=LD_LIBRARY_PATH 16990 shlibpath_overrides_runpath=yes 16991 if test yes = "$with_gnu_ld"; then 16992 need_lib_prefix=no 16993 fi 16994 need_version=yes 16995 ;; 16996 16997sysv4 | sysv4.3*) 16998 version_type=linux # correct to gnu/linux during the next big refactor 16999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17000 soname_spec='$libname$release$shared_ext$major' 17001 shlibpath_var=LD_LIBRARY_PATH 17002 case $host_vendor in 17003 sni) 17004 shlibpath_overrides_runpath=no 17005 need_lib_prefix=no 17006 runpath_var=LD_RUN_PATH 17007 ;; 17008 siemens) 17009 need_lib_prefix=no 17010 ;; 17011 motorola) 17012 need_lib_prefix=no 17013 need_version=no 17014 shlibpath_overrides_runpath=no 17015 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17016 ;; 17017 esac 17018 ;; 17019 17020sysv4*MP*) 17021 if test -d /usr/nec; then 17022 version_type=linux # correct to gnu/linux during the next big refactor 17023 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17024 soname_spec='$libname$shared_ext.$major' 17025 shlibpath_var=LD_LIBRARY_PATH 17026 fi 17027 ;; 17028 17029sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17030 version_type=sco 17031 need_lib_prefix=no 17032 need_version=no 17033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17034 soname_spec='$libname$release$shared_ext$major' 17035 shlibpath_var=LD_LIBRARY_PATH 17036 shlibpath_overrides_runpath=yes 17037 hardcode_into_libs=yes 17038 if test yes = "$with_gnu_ld"; then 17039 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17040 else 17041 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17042 case $host_os in 17043 sco3.2v5*) 17044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17045 ;; 17046 esac 17047 fi 17048 sys_lib_dlsearch_path_spec='/usr/lib' 17049 ;; 17050 17051tpf*) 17052 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17053 version_type=linux # correct to gnu/linux during the next big refactor 17054 need_lib_prefix=no 17055 need_version=no 17056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17057 shlibpath_var=LD_LIBRARY_PATH 17058 shlibpath_overrides_runpath=no 17059 hardcode_into_libs=yes 17060 ;; 17061 17062uts4*) 17063 version_type=linux # correct to gnu/linux during the next big refactor 17064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17065 soname_spec='$libname$release$shared_ext$major' 17066 shlibpath_var=LD_LIBRARY_PATH 17067 ;; 17068 17069*) 17070 dynamic_linker=no 17071 ;; 17072esac 17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17074$as_echo "$dynamic_linker" >&6; } 17075test no = "$dynamic_linker" && can_build_shared=no 17076 17077variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17078if test yes = "$GCC"; then 17079 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17080fi 17081 17082if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17083 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17084fi 17085 17086if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17087 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17088fi 17089 17090# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17091configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17092 17093# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17094func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17095 17096# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17097configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17139$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17140hardcode_action_CXX= 17141if test -n "$hardcode_libdir_flag_spec_CXX" || 17142 test -n "$runpath_var_CXX" || 17143 test yes = "$hardcode_automatic_CXX"; then 17144 17145 # We can hardcode non-existent directories. 17146 if test no != "$hardcode_direct_CXX" && 17147 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17148 # have to relink, otherwise we might link with an installed library 17149 # when we should be linking with a yet-to-be-installed one 17150 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17151 test no != "$hardcode_minus_L_CXX"; then 17152 # Linking always hardcodes the temporary library directory. 17153 hardcode_action_CXX=relink 17154 else 17155 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17156 hardcode_action_CXX=immediate 17157 fi 17158else 17159 # We cannot hardcode anything, or else we can only hardcode existing 17160 # directories. 17161 hardcode_action_CXX=unsupported 17162fi 17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17164$as_echo "$hardcode_action_CXX" >&6; } 17165 17166if test relink = "$hardcode_action_CXX" || 17167 test yes = "$inherit_rpath_CXX"; then 17168 # Fast installation is not supported 17169 enable_fast_install=no 17170elif test yes = "$shlibpath_overrides_runpath" || 17171 test no = "$enable_shared"; then 17172 # Fast installation is not necessary 17173 enable_fast_install=needless 17174fi 17175 17176 17177 17178 17179 17180 17181 17182 fi # test -n "$compiler" 17183 17184 CC=$lt_save_CC 17185 CFLAGS=$lt_save_CFLAGS 17186 LDCXX=$LD 17187 LD=$lt_save_LD 17188 GCC=$lt_save_GCC 17189 with_gnu_ld=$lt_save_with_gnu_ld 17190 lt_cv_path_LDCXX=$lt_cv_path_LD 17191 lt_cv_path_LD=$lt_save_path_LD 17192 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17193 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17194fi # test yes != "$_lt_caught_CXX_error" 17195 17196ac_ext=cpp 17197ac_cpp='$CXXCPP $CPPFLAGS' 17198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 ac_config_commands="$ac_config_commands libtool" 17217 17218 17219 17220 17221# Only expand once: 17222 17223 17224 17225 17226 ac_ext=c 17227ac_cpp='$CPP $CPPFLAGS' 17228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17230ac_compiler_gnu=$ac_cv_c_compiler_gnu 17231 17232 17233 # Make sure CDPATH is portably set to a sensible value 17234 CDPATH=${ZSH_VERSION+.}: 17235 17236 GAP_CPPFLAGS="" 17237 17238 ###################################### 17239 # Find the GAP root directory by 17240 # checking for the sysinfo.gap file 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5 17242$as_echo_n "checking for GAP root directory... " >&6; } 17243 GAPROOT="../.." 17244 17245 #Allow the user to specify the location of GAP 17246 # 17247 17248# Check whether --with-gaproot was given. 17249if test "${with_gaproot+set}" = set; then : 17250 withval=$with_gaproot; GAPROOT="$withval" 17251fi 17252 17253 17254 # Convert the path to absolute 17255 GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd` 17256 17257 if test -e ${GAPROOT}/sysinfo.gap; then 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5 17259$as_echo "${GAPROOT}" >&6; } 17260 else 17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 17262$as_echo "Not found" >&6; } 17263 17264 echo "" 17265 echo "********************************************************************" 17266 echo " ERROR" 17267 echo "" 17268 echo " Cannot find your GAP installation. Please specify the location of" 17269 echo " GAP's root directory using --with-gaproot=<path>" 17270 echo "" 17271 echo " The GAP root directory (as far as this package is concerned) is" 17272 echo " the one containing the file sysinfo.gap" 17273 echo "********************************************************************" 17274 echo "" 17275 17276 as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5 17277 fi 17278 17279 ##################################### 17280 # Now find the architecture 17281 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5 17283$as_echo_n "checking for GAP architecture... " >&6; } 17284 GAPARCH="Unknown" 17285 . $GAPROOT/sysinfo.gap 17286 if test "x$GAParch" != "x"; then 17287 GAPARCH=$GAParch 17288 fi 17289 17290 if test "x$GAPARCH" = "xUnknown" ; then 17291 echo "" 17292 echo "********************************************************************" 17293 echo " ERROR" 17294 echo "" 17295 echo " Found a GAP installation at $GAPROOT but could not find" 17296 echo " information about GAP's architecture in the file" 17297 echo " ${GAPROOT}/sysinfo.gap ." 17298 echo " This file should be present: please check your GAP installation." 17299 echo "********************************************************************" 17300 echo "" 17301 17302 as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5 17303 fi 17304 17305 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5 17307$as_echo_n "checking for GAP >= 4.9... " >&6; } 17308 # test if this GAP >= 4.9 17309 if test "x$GAP_CPPFLAGS" != x; then 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17311$as_echo "yes" >&6; } 17312 else 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17314$as_echo "no" >&6; } 17315 ##################################### 17316 # Now check for the GAP header files 17317 17318 bad=0 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5 17320$as_echo_n "checking for GAP include files... " >&6; } 17321 if test -r $GAPROOT/src/compiled.h; then 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5 17323$as_echo "$GAPROOT/src/compiled.h" >&6; } 17324 else 17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 17326$as_echo "Not found" >&6; } 17327 bad=1 17328 fi 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5 17330$as_echo_n "checking for GAP config.h... " >&6; } 17331 if test -r $GAPROOT/bin/$GAPARCH/config.h; then 17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5 17333$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; } 17334 else 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 17336$as_echo "Not found" >&6; } 17337 bad=1 17338 fi 17339 17340 if test "x$bad" = "x1"; then 17341 echo "" 17342 echo "********************************************************************" 17343 echo " ERROR" 17344 echo "" 17345 echo " Failed to find the GAP source header files in src/ and" 17346 echo " GAP's config.h in the architecture dependend directory" 17347 echo "" 17348 echo " The kernel build process expects to find the normal GAP " 17349 echo " root directory structure as it is after building GAP itself, and" 17350 echo " in particular the files" 17351 echo " <gaproot>/sysinfo.gap" 17352 echo " <gaproot>/src/<includes>" 17353 echo " and <gaproot>/bin/<architecture>/bin/config.h." 17354 echo " Please make sure that your GAP root directory structure" 17355 echo " conforms to this layout, or give the correct GAP root using" 17356 echo " --with-gaproot=<path>" 17357 echo "********************************************************************" 17358 echo "" 17359 as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5 17360 fi 17361 17362 ARCHPATH=$GAPROOT/bin/$GAPARCH 17363 GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH" 17364 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5 17366$as_echo_n "checking for GAP's gmp.h location... " >&6; } 17367 if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then 17368 GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include" 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5 17370$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; } 17371 else 17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5 17373$as_echo "not found, GAP was compiled without its own GMP" >&6; } 17374 fi 17375 fi 17376 17377 17378 17379 17380 17381 17382 17383 17384 ac_ext=cpp 17385ac_cpp='$CXXCPP $CPPFLAGS' 17386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17389 17390 17391 17392 17393 17394 17395 17396ac_ext=c 17397ac_cpp='$CPP $CPPFLAGS' 17398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17400ac_compiler_gnu=$ac_cv_c_compiler_gnu 17401 17402ax_pthread_ok=no 17403 17404# We used to check for pthread.h first, but this fails if pthread.h 17405# requires special compiler flags (e.g. on Tru64 or Sequent). 17406# It gets checked for in the link test anyway. 17407 17408# First of all, check if the user has set any of the PTHREAD_LIBS, 17409# etcetera environment variables, and if threads linking works using 17410# them: 17411if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 17412 ax_pthread_save_CC="$CC" 17413 ax_pthread_save_CFLAGS="$CFLAGS" 17414 ax_pthread_save_LIBS="$LIBS" 17415 if test "x$PTHREAD_CC" != "x"; then : 17416 CC="$PTHREAD_CC" 17417fi 17418 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17419 LIBS="$PTHREAD_LIBS $LIBS" 17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 17421$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17423/* end confdefs.h. */ 17424 17425/* Override any GCC internal prototype to avoid an error. 17426 Use char because int might match the return type of a GCC 17427 builtin and then its argument prototype would still apply. */ 17428#ifdef __cplusplus 17429extern "C" 17430#endif 17431char pthread_join (); 17432int 17433main () 17434{ 17435return pthread_join (); 17436 ; 17437 return 0; 17438} 17439_ACEOF 17440if ac_fn_c_try_link "$LINENO"; then : 17441 ax_pthread_ok=yes 17442fi 17443rm -f core conftest.err conftest.$ac_objext \ 17444 conftest$ac_exeext conftest.$ac_ext 17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17446$as_echo "$ax_pthread_ok" >&6; } 17447 if test "x$ax_pthread_ok" = "xno"; then 17448 PTHREAD_LIBS="" 17449 PTHREAD_CFLAGS="" 17450 fi 17451 CC="$ax_pthread_save_CC" 17452 CFLAGS="$ax_pthread_save_CFLAGS" 17453 LIBS="$ax_pthread_save_LIBS" 17454fi 17455 17456# We must check for the threads library under a number of different 17457# names; the ordering is very important because some systems 17458# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17459# libraries is broken (non-POSIX). 17460 17461# Create a list of thread flags to try. Items starting with a "-" are 17462# C compiler flags, and other items are library names, except for "none" 17463# which indicates that we try without any flags at all, and "pthread-config" 17464# which is a program returning the flags for the Pth emulation library. 17465 17466ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17467 17468# The ordering *is* (sometimes) important. Some notes on the 17469# individual items follow: 17470 17471# pthreads: AIX (must check this before -lpthread) 17472# none: in case threads are in libc; should be tried before -Kthread and 17473# other compiler flags to prevent continual compiler warnings 17474# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17475# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 17476# (Note: HP C rejects this with "bad form for `-t' option") 17477# -pthreads: Solaris/gcc (Note: HP C also rejects) 17478# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17479# doesn't hurt to check since this sometimes defines pthreads and 17480# -D_REENTRANT too), HP C (must be checked before -lpthread, which 17481# is present but should not be used directly; and before -mthreads, 17482# because the compiler interprets this as "-mt" + "-hreads") 17483# -mthreads: Mingw32/gcc, Lynx/gcc 17484# pthread: Linux, etcetera 17485# --thread-safe: KAI C++ 17486# pthread-config: use pthread-config program (for GNU Pth library) 17487 17488case $host_os in 17489 17490 freebsd*) 17491 17492 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17493 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17494 17495 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 17496 ;; 17497 17498 hpux*) 17499 17500 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 17501 # multi-threading and also sets -lpthread." 17502 17503 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 17504 ;; 17505 17506 openedition*) 17507 17508 # IBM z/OS requires a feature-test macro to be defined in order to 17509 # enable POSIX threads at all, so give the user a hint if this is 17510 # not set. (We don't define these ourselves, as they can affect 17511 # other portions of the system API in unpredictable ways.) 17512 17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17514/* end confdefs.h. */ 17515 17516# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 17517 AX_PTHREAD_ZOS_MISSING 17518# endif 17519 17520_ACEOF 17521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17522 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 17523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 17524$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 17525fi 17526rm -f conftest* 17527 17528 ;; 17529 17530 solaris*) 17531 17532 # On Solaris (at least, for some versions), libc contains stubbed 17533 # (non-functional) versions of the pthreads routines, so link-based 17534 # tests will erroneously succeed. (N.B.: The stubs are missing 17535 # pthread_cleanup_push, or rather a function called by this macro, 17536 # so we could check for that, but who knows whether they'll stub 17537 # that too in a future libc.) So we'll check first for the 17538 # standard Solaris way of linking pthreads (-mt -lpthread). 17539 17540 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 17541 ;; 17542esac 17543 17544# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 17545 17546if test "x$GCC" = "xyes"; then : 17547 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 17548fi 17549 17550# The presence of a feature test macro requesting re-entrant function 17551# definitions is, on some systems, a strong hint that pthreads support is 17552# correctly enabled 17553 17554case $host_os in 17555 darwin* | hpux* | linux* | osf* | solaris*) 17556 ax_pthread_check_macro="_REENTRANT" 17557 ;; 17558 17559 aix*) 17560 ax_pthread_check_macro="_THREAD_SAFE" 17561 ;; 17562 17563 *) 17564 ax_pthread_check_macro="--" 17565 ;; 17566esac 17567if test "x$ax_pthread_check_macro" = "x--"; then : 17568 ax_pthread_check_cond=0 17569else 17570 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 17571fi 17572 17573# Are we compiling with Clang? 17574 17575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 17576$as_echo_n "checking whether $CC is Clang... " >&6; } 17577if ${ax_cv_PTHREAD_CLANG+:} false; then : 17578 $as_echo_n "(cached) " >&6 17579else 17580 ax_cv_PTHREAD_CLANG=no 17581 # Note that Autoconf sets GCC=yes for Clang as well as GCC 17582 if test "x$GCC" = "xyes"; then 17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17584/* end confdefs.h. */ 17585/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 17586# if defined(__clang__) && defined(__llvm__) 17587 AX_PTHREAD_CC_IS_CLANG 17588# endif 17589 17590_ACEOF 17591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17592 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 17593 ax_cv_PTHREAD_CLANG=yes 17594fi 17595rm -f conftest* 17596 17597 fi 17598 17599fi 17600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 17601$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 17602ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 17603 17604ax_pthread_clang_warning=no 17605 17606# Clang needs special handling, because older versions handle the -pthread 17607# option in a rather... idiosyncratic way 17608 17609if test "x$ax_pthread_clang" = "xyes"; then 17610 17611 # Clang takes -pthread; it has never supported any other flag 17612 17613 # (Note 1: This will need to be revisited if a system that Clang 17614 # supports has POSIX threads in a separate library. This tends not 17615 # to be the way of modern systems, but it's conceivable.) 17616 17617 # (Note 2: On some systems, notably Darwin, -pthread is not needed 17618 # to get POSIX threads support; the API is always present and 17619 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 17620 # -pthread does define _REENTRANT, and while the Darwin headers 17621 # ignore this macro, third-party headers might not.) 17622 17623 PTHREAD_CFLAGS="-pthread" 17624 PTHREAD_LIBS= 17625 17626 ax_pthread_ok=yes 17627 17628 # However, older versions of Clang make a point of warning the user 17629 # that, in an invocation where only linking and no compilation is 17630 # taking place, the -pthread option has no effect ("argument unused 17631 # during compilation"). They expect -pthread to be passed in only 17632 # when source code is being compiled. 17633 # 17634 # Problem is, this is at odds with the way Automake and most other 17635 # C build frameworks function, which is that the same flags used in 17636 # compilation (CFLAGS) are also used in linking. Many systems 17637 # supported by AX_PTHREAD require exactly this for POSIX threads 17638 # support, and in fact it is often not straightforward to specify a 17639 # flag that is used only in the compilation phase and not in 17640 # linking. Such a scenario is extremely rare in practice. 17641 # 17642 # Even though use of the -pthread flag in linking would only print 17643 # a warning, this can be a nuisance for well-run software projects 17644 # that build with -Werror. So if the active version of Clang has 17645 # this misfeature, we search for an option to squash it. 17646 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 17648$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 17649if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 17650 $as_echo_n "(cached) " >&6 17651else 17652 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 17653 # Create an alternate version of $ac_link that compiles and 17654 # links in two steps (.c -> .o, .o -> exe) instead of one 17655 # (.c -> exe), because the warning occurs only in the second 17656 # step 17657 ax_pthread_save_ac_link="$ac_link" 17658 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 17659 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 17660 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 17661 ax_pthread_save_CFLAGS="$CFLAGS" 17662 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 17663 if test "x$ax_pthread_try" = "xunknown"; then : 17664 break 17665fi 17666 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 17667 ac_link="$ax_pthread_save_ac_link" 17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17669/* end confdefs.h. */ 17670int main(void){return 0;} 17671_ACEOF 17672if ac_fn_c_try_link "$LINENO"; then : 17673 ac_link="$ax_pthread_2step_ac_link" 17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17675/* end confdefs.h. */ 17676int main(void){return 0;} 17677_ACEOF 17678if ac_fn_c_try_link "$LINENO"; then : 17679 break 17680fi 17681rm -f core conftest.err conftest.$ac_objext \ 17682 conftest$ac_exeext conftest.$ac_ext 17683 17684fi 17685rm -f core conftest.err conftest.$ac_objext \ 17686 conftest$ac_exeext conftest.$ac_ext 17687 done 17688 ac_link="$ax_pthread_save_ac_link" 17689 CFLAGS="$ax_pthread_save_CFLAGS" 17690 if test "x$ax_pthread_try" = "x"; then : 17691 ax_pthread_try=no 17692fi 17693 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 17694 17695fi 17696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 17697$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 17698 17699 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 17700 no | unknown) ;; 17701 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 17702 esac 17703 17704fi # $ax_pthread_clang = yes 17705 17706if test "x$ax_pthread_ok" = "xno"; then 17707for ax_pthread_try_flag in $ax_pthread_flags; do 17708 17709 case $ax_pthread_try_flag in 17710 none) 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 17712$as_echo_n "checking whether pthreads work without any flags... " >&6; } 17713 ;; 17714 17715 -mt,pthread) 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 17717$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 17718 PTHREAD_CFLAGS="-mt" 17719 PTHREAD_LIBS="-lpthread" 17720 ;; 17721 17722 -*) 17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 17724$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 17725 PTHREAD_CFLAGS="$ax_pthread_try_flag" 17726 ;; 17727 17728 pthread-config) 17729 # Extract the first word of "pthread-config", so it can be a program name with args. 17730set dummy pthread-config; ac_word=$2 17731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17732$as_echo_n "checking for $ac_word... " >&6; } 17733if ${ac_cv_prog_ax_pthread_config+:} false; then : 17734 $as_echo_n "(cached) " >&6 17735else 17736 if test -n "$ax_pthread_config"; then 17737 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 17738else 17739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17740for as_dir in $PATH 17741do 17742 IFS=$as_save_IFS 17743 test -z "$as_dir" && as_dir=. 17744 for ac_exec_ext in '' $ac_executable_extensions; do 17745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17746 ac_cv_prog_ax_pthread_config="yes" 17747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17748 break 2 17749 fi 17750done 17751 done 17752IFS=$as_save_IFS 17753 17754 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 17755fi 17756fi 17757ax_pthread_config=$ac_cv_prog_ax_pthread_config 17758if test -n "$ax_pthread_config"; then 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 17760$as_echo "$ax_pthread_config" >&6; } 17761else 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17763$as_echo "no" >&6; } 17764fi 17765 17766 17767 if test "x$ax_pthread_config" = "xno"; then : 17768 continue 17769fi 17770 PTHREAD_CFLAGS="`pthread-config --cflags`" 17771 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 17772 ;; 17773 17774 *) 17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 17776$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 17777 PTHREAD_LIBS="-l$ax_pthread_try_flag" 17778 ;; 17779 esac 17780 17781 ax_pthread_save_CFLAGS="$CFLAGS" 17782 ax_pthread_save_LIBS="$LIBS" 17783 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17784 LIBS="$PTHREAD_LIBS $LIBS" 17785 17786 # Check for various functions. We must include pthread.h, 17787 # since some functions may be macros. (On the Sequent, we 17788 # need a special flag -Kthread to make this header compile.) 17789 # We check for pthread_join because it is in -lpthread on IRIX 17790 # while pthread_create is in libc. We check for pthread_attr_init 17791 # due to DEC craziness with -lpthreads. We check for 17792 # pthread_cleanup_push because it is one of the few pthread 17793 # functions on Solaris that doesn't have a non-functional libc stub. 17794 # We try pthread_create on general principles. 17795 17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17797/* end confdefs.h. */ 17798#include <pthread.h> 17799# if $ax_pthread_check_cond 17800# error "$ax_pthread_check_macro must be defined" 17801# endif 17802 static void routine(void *a) { a = 0; } 17803 static void *start_routine(void *a) { return a; } 17804int 17805main () 17806{ 17807pthread_t th; pthread_attr_t attr; 17808 pthread_create(&th, 0, start_routine, 0); 17809 pthread_join(th, 0); 17810 pthread_attr_init(&attr); 17811 pthread_cleanup_push(routine, 0); 17812 pthread_cleanup_pop(0) /* ; */ 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817if ac_fn_c_try_link "$LINENO"; then : 17818 ax_pthread_ok=yes 17819fi 17820rm -f core conftest.err conftest.$ac_objext \ 17821 conftest$ac_exeext conftest.$ac_ext 17822 17823 CFLAGS="$ax_pthread_save_CFLAGS" 17824 LIBS="$ax_pthread_save_LIBS" 17825 17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 17827$as_echo "$ax_pthread_ok" >&6; } 17828 if test "x$ax_pthread_ok" = "xyes"; then : 17829 break 17830fi 17831 17832 PTHREAD_LIBS="" 17833 PTHREAD_CFLAGS="" 17834done 17835fi 17836 17837# Various other checks: 17838if test "x$ax_pthread_ok" = "xyes"; then 17839 ax_pthread_save_CFLAGS="$CFLAGS" 17840 ax_pthread_save_LIBS="$LIBS" 17841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17842 LIBS="$PTHREAD_LIBS $LIBS" 17843 17844 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 17846$as_echo_n "checking for joinable pthread attribute... " >&6; } 17847if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 17848 $as_echo_n "(cached) " >&6 17849else 17850 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 17851 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853/* end confdefs.h. */ 17854#include <pthread.h> 17855int 17856main () 17857{ 17858int attr = $ax_pthread_attr; return attr /* ; */ 17859 ; 17860 return 0; 17861} 17862_ACEOF 17863if ac_fn_c_try_link "$LINENO"; then : 17864 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 17865fi 17866rm -f core conftest.err conftest.$ac_objext \ 17867 conftest$ac_exeext conftest.$ac_ext 17868 done 17869 17870fi 17871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 17872$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 17873 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 17874 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 17875 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 17876 17877cat >>confdefs.h <<_ACEOF 17878#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 17879_ACEOF 17880 17881 ax_pthread_joinable_attr_defined=yes 17882 17883fi 17884 17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 17886$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 17887if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 17888 $as_echo_n "(cached) " >&6 17889else 17890 ax_cv_PTHREAD_SPECIAL_FLAGS=no 17891 case $host_os in 17892 solaris*) 17893 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 17894 ;; 17895 esac 17896 17897fi 17898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 17899$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 17900 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 17901 test "x$ax_pthread_special_flags_added" != "xyes"; then : 17902 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 17903 ax_pthread_special_flags_added=yes 17904fi 17905 17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 17907$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 17908if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 17909 $as_echo_n "(cached) " >&6 17910else 17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17912/* end confdefs.h. */ 17913#include <pthread.h> 17914int 17915main () 17916{ 17917int i = PTHREAD_PRIO_INHERIT; 17918 ; 17919 return 0; 17920} 17921_ACEOF 17922if ac_fn_c_try_link "$LINENO"; then : 17923 ax_cv_PTHREAD_PRIO_INHERIT=yes 17924else 17925 ax_cv_PTHREAD_PRIO_INHERIT=no 17926fi 17927rm -f core conftest.err conftest.$ac_objext \ 17928 conftest$ac_exeext conftest.$ac_ext 17929 17930fi 17931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 17932$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 17933 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 17934 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 17935 17936$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 17937 17938 ax_pthread_prio_inherit_defined=yes 17939 17940fi 17941 17942 CFLAGS="$ax_pthread_save_CFLAGS" 17943 LIBS="$ax_pthread_save_LIBS" 17944 17945 # More AIX lossage: compile with *_r variant 17946 if test "x$GCC" != "xyes"; then 17947 case $host_os in 17948 aix*) 17949 case "x/$CC" in #( 17950 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 17951 #handle absolute path differently from PATH based program lookup 17952 case "x$CC" in #( 17953 x/*) : 17954 if as_fn_executable_p ${CC}_r; then : 17955 PTHREAD_CC="${CC}_r" 17956fi ;; #( 17957 *) : 17958 for ac_prog in ${CC}_r 17959do 17960 # Extract the first word of "$ac_prog", so it can be a program name with args. 17961set dummy $ac_prog; ac_word=$2 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17963$as_echo_n "checking for $ac_word... " >&6; } 17964if ${ac_cv_prog_PTHREAD_CC+:} false; then : 17965 $as_echo_n "(cached) " >&6 17966else 17967 if test -n "$PTHREAD_CC"; then 17968 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 17969else 17970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17971for as_dir in $PATH 17972do 17973 IFS=$as_save_IFS 17974 test -z "$as_dir" && as_dir=. 17975 for ac_exec_ext in '' $ac_executable_extensions; do 17976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17977 ac_cv_prog_PTHREAD_CC="$ac_prog" 17978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17979 break 2 17980 fi 17981done 17982 done 17983IFS=$as_save_IFS 17984 17985fi 17986fi 17987PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 17988if test -n "$PTHREAD_CC"; then 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 17990$as_echo "$PTHREAD_CC" >&6; } 17991else 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17993$as_echo "no" >&6; } 17994fi 17995 17996 17997 test -n "$PTHREAD_CC" && break 17998done 17999test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18000 ;; 18001esac ;; #( 18002 *) : 18003 ;; 18004esac 18005 ;; 18006 esac 18007 fi 18008fi 18009 18010test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 18011 18012 18013 18014 18015 18016# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 18017if test "x$ax_pthread_ok" = "xyes"; then 18018 18019$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 18020 18021 : 18022else 18023 ax_pthread_ok=no 18024 as_fn_error $? "pthread is required" "$LINENO" 5 18025fi 18026ac_ext=cpp 18027ac_cpp='$CXXCPP $CPPFLAGS' 18028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18031 18032 18033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 18034$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 18035if ${ac_cv_lib_pthread_pthread_create+:} false; then : 18036 $as_echo_n "(cached) " >&6 18037else 18038 ac_check_lib_save_LIBS=$LIBS 18039LIBS="-lpthread $LIBS" 18040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18041/* end confdefs.h. */ 18042 18043/* Override any GCC internal prototype to avoid an error. 18044 Use char because int might match the return type of a GCC 18045 builtin and then its argument prototype would still apply. */ 18046#ifdef __cplusplus 18047extern "C" 18048#endif 18049char pthread_create (); 18050int 18051main () 18052{ 18053return pthread_create (); 18054 ; 18055 return 0; 18056} 18057_ACEOF 18058if ac_fn_cxx_try_link "$LINENO"; then : 18059 ac_cv_lib_pthread_pthread_create=yes 18060else 18061 ac_cv_lib_pthread_pthread_create=no 18062fi 18063rm -f core conftest.err conftest.$ac_objext \ 18064 conftest$ac_exeext conftest.$ac_ext 18065LIBS=$ac_check_lib_save_LIBS 18066fi 18067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 18068$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 18069if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 18070 cat >>confdefs.h <<_ACEOF 18071#define HAVE_LIBPTHREAD 1 18072_ACEOF 18073 18074 LIBS="-lpthread $LIBS" 18075 18076fi 18077 18078 18079case $host_os in 18080 *cygwin* ) CYGWIN=yes;; 18081 * ) CYGWIN=no;; 18082esac 18083 if test "$CYGWIN" = "yes"; then 18084 SYS_IS_CYGWIN_TRUE= 18085 SYS_IS_CYGWIN_FALSE='#' 18086else 18087 SYS_IS_CYGWIN_TRUE='#' 18088 SYS_IS_CYGWIN_FALSE= 18089fi 18090 18091if test "$CYGWIN" = "yes"; then 18092 18093$as_echo "#define SYS_IS_CYGWIN32 1" >>confdefs.h 18094 18095else 18096 18097$as_echo "#define SYS_IS_CYGWIN32 0" >>confdefs.h 18098 18099fi 18100 18101 18102 18103 18104 18105 18106 18107 18108if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18109 if test -n "$ac_tool_prefix"; then 18110 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18111set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18113$as_echo_n "checking for $ac_word... " >&6; } 18114if ${ac_cv_path_PKG_CONFIG+:} false; then : 18115 $as_echo_n "(cached) " >&6 18116else 18117 case $PKG_CONFIG in 18118 [\\/]* | ?:[\\/]*) 18119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18120 ;; 18121 *) 18122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18123for as_dir in $PATH 18124do 18125 IFS=$as_save_IFS 18126 test -z "$as_dir" && as_dir=. 18127 for ac_exec_ext in '' $ac_executable_extensions; do 18128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18131 break 2 18132 fi 18133done 18134 done 18135IFS=$as_save_IFS 18136 18137 ;; 18138esac 18139fi 18140PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18141if test -n "$PKG_CONFIG"; then 18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18143$as_echo "$PKG_CONFIG" >&6; } 18144else 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18146$as_echo "no" >&6; } 18147fi 18148 18149 18150fi 18151if test -z "$ac_cv_path_PKG_CONFIG"; then 18152 ac_pt_PKG_CONFIG=$PKG_CONFIG 18153 # Extract the first word of "pkg-config", so it can be a program name with args. 18154set dummy pkg-config; ac_word=$2 18155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18156$as_echo_n "checking for $ac_word... " >&6; } 18157if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 18158 $as_echo_n "(cached) " >&6 18159else 18160 case $ac_pt_PKG_CONFIG in 18161 [\\/]* | ?:[\\/]*) 18162 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18163 ;; 18164 *) 18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18166for as_dir in $PATH 18167do 18168 IFS=$as_save_IFS 18169 test -z "$as_dir" && as_dir=. 18170 for ac_exec_ext in '' $ac_executable_extensions; do 18171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18172 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18174 break 2 18175 fi 18176done 18177 done 18178IFS=$as_save_IFS 18179 18180 ;; 18181esac 18182fi 18183ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18184if test -n "$ac_pt_PKG_CONFIG"; then 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 18186$as_echo "$ac_pt_PKG_CONFIG" >&6; } 18187else 18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18189$as_echo "no" >&6; } 18190fi 18191 18192 if test "x$ac_pt_PKG_CONFIG" = x; then 18193 PKG_CONFIG="" 18194 else 18195 case $cross_compiling:$ac_tool_warned in 18196yes:) 18197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18199ac_tool_warned=yes ;; 18200esac 18201 PKG_CONFIG=$ac_pt_PKG_CONFIG 18202 fi 18203else 18204 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18205fi 18206 18207fi 18208if test -n "$PKG_CONFIG"; then 18209 _pkg_min_version=0.9.0 18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 18211$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 18212 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18214$as_echo "yes" >&6; } 18215 else 18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18217$as_echo "no" >&6; } 18218 PKG_CONFIG="" 18219 fi 18220fi 18221 18222 18223 18224 18225# Check whether --with-external-libsemigroups was given. 18226if test "${with_external_libsemigroups+set}" = set; then : 18227 withval=$with_external_libsemigroups; 18228fi 18229 18230 REQUI_LIBSEMIGROUPS_VERSION="$(cat .LIBSEMIGROUPS_VERSION)" 18231 need_included_libsemigroups=yes 18232 if test "$with_external_libsemigroups" = yes; then 18233 18234 18235pkg_failed=no 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION" >&5 18237$as_echo_n "checking for libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION... " >&6; } 18238 18239if test -n "$LIBSEMIGROUPS_CFLAGS"; then 18240 pkg_cv_LIBSEMIGROUPS_CFLAGS="$LIBSEMIGROUPS_CFLAGS" 18241 elif test -n "$PKG_CONFIG"; then 18242 if test -n "$PKG_CONFIG" && \ 18243 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsemigroups >= \$REQUI_LIBSEMIGROUPS_VERSION\""; } >&5 18244 ($PKG_CONFIG --exists --print-errors "libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION") 2>&5 18245 ac_status=$? 18246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18247 test $ac_status = 0; }; then 18248 pkg_cv_LIBSEMIGROUPS_CFLAGS=`$PKG_CONFIG --cflags "libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION" 2>/dev/null` 18249 test "x$?" != "x0" && pkg_failed=yes 18250else 18251 pkg_failed=yes 18252fi 18253 else 18254 pkg_failed=untried 18255fi 18256if test -n "$LIBSEMIGROUPS_LIBS"; then 18257 pkg_cv_LIBSEMIGROUPS_LIBS="$LIBSEMIGROUPS_LIBS" 18258 elif test -n "$PKG_CONFIG"; then 18259 if test -n "$PKG_CONFIG" && \ 18260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsemigroups >= \$REQUI_LIBSEMIGROUPS_VERSION\""; } >&5 18261 ($PKG_CONFIG --exists --print-errors "libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION") 2>&5 18262 ac_status=$? 18263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18264 test $ac_status = 0; }; then 18265 pkg_cv_LIBSEMIGROUPS_LIBS=`$PKG_CONFIG --libs "libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION" 2>/dev/null` 18266 test "x$?" != "x0" && pkg_failed=yes 18267else 18268 pkg_failed=yes 18269fi 18270 else 18271 pkg_failed=untried 18272fi 18273 18274 18275 18276if test $pkg_failed = yes; then 18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18278$as_echo "no" >&6; } 18279 18280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18281 _pkg_short_errors_supported=yes 18282else 18283 _pkg_short_errors_supported=no 18284fi 18285 if test $_pkg_short_errors_supported = yes; then 18286 LIBSEMIGROUPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION" 2>&1` 18287 else 18288 LIBSEMIGROUPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsemigroups >= $REQUI_LIBSEMIGROUPS_VERSION" 2>&1` 18289 fi 18290 # Put the nasty error message in config.log where it belongs 18291 echo "$LIBSEMIGROUPS_PKG_ERRORS" >&5 18292 18293 need_included_libsemigroups=yes 18294elif test $pkg_failed = untried; then 18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18296$as_echo "no" >&6; } 18297 need_included_libsemigroups=yes 18298else 18299 LIBSEMIGROUPS_CFLAGS=$pkg_cv_LIBSEMIGROUPS_CFLAGS 18300 LIBSEMIGROUPS_LIBS=$pkg_cv_LIBSEMIGROUPS_LIBS 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18302$as_echo "yes" >&6; } 18303 need_included_libsemigroups=no 18304fi 18305 fi 18306 if test "$need_included_libsemigroups" = yes; then 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: using included libsemigroups..." >&5 18308$as_echo "$as_me: using included libsemigroups..." >&6;} 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsemigroups/include/libsemigroups/libsemigroups.hpp" >&5 18310$as_echo_n "checking for libsemigroups/include/libsemigroups/libsemigroups.hpp... " >&6; } 18311if ${ac_cv_file_libsemigroups_include_libsemigroups_libsemigroups_hpp+:} false; then : 18312 $as_echo_n "(cached) " >&6 18313else 18314 test "$cross_compiling" = yes && 18315 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18316if test -r "libsemigroups/include/libsemigroups/libsemigroups.hpp"; then 18317 ac_cv_file_libsemigroups_include_libsemigroups_libsemigroups_hpp=yes 18318else 18319 ac_cv_file_libsemigroups_include_libsemigroups_libsemigroups_hpp=no 18320fi 18321fi 18322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_libsemigroups_include_libsemigroups_libsemigroups_hpp" >&5 18323$as_echo "$ac_cv_file_libsemigroups_include_libsemigroups_libsemigroups_hpp" >&6; } 18324if test "x$ac_cv_file_libsemigroups_include_libsemigroups_libsemigroups_hpp" = xyes; then : 18325 18326else 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsemigroups/include/libsemigroups.hpp" >&5 18328$as_echo_n "checking for libsemigroups/include/libsemigroups.hpp... " >&6; } 18329if ${ac_cv_file_libsemigroups_include_libsemigroups_hpp+:} false; then : 18330 $as_echo_n "(cached) " >&6 18331else 18332 test "$cross_compiling" = yes && 18333 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18334if test -r "libsemigroups/include/libsemigroups.hpp"; then 18335 ac_cv_file_libsemigroups_include_libsemigroups_hpp=yes 18336else 18337 ac_cv_file_libsemigroups_include_libsemigroups_hpp=no 18338fi 18339fi 18340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_libsemigroups_include_libsemigroups_hpp" >&5 18341$as_echo "$ac_cv_file_libsemigroups_include_libsemigroups_hpp" >&6; } 18342if test "x$ac_cv_file_libsemigroups_include_libsemigroups_hpp" = xyes; then : 18343 18344else 18345 as_fn_error $? "libsemigroups is required, clone or download the repo from https://github.com/libsemigroups/libsemigroups into this directory" "$LINENO" 5 18346fi 18347 18348fi 18349 18350 18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsemigroups/.VERSION" >&5 18352$as_echo_n "checking for libsemigroups/.VERSION... " >&6; } 18353if ${ac_cv_file_libsemigroups__VERSION+:} false; then : 18354 $as_echo_n "(cached) " >&6 18355else 18356 test "$cross_compiling" = yes && 18357 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18358if test -r "libsemigroups/.VERSION"; then 18359 ac_cv_file_libsemigroups__VERSION=yes 18360else 18361 ac_cv_file_libsemigroups__VERSION=no 18362fi 18363fi 18364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_libsemigroups__VERSION" >&5 18365$as_echo "$ac_cv_file_libsemigroups__VERSION" >&6; } 18366if test "x$ac_cv_file_libsemigroups__VERSION" = xyes; then : 18367 18368else 18369 as_fn_error $? "libsemigroups version $REQUI_LIBSEMIGROUPS_VERSION or higher is required" "$LINENO" 5 18370fi 18371 18372 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libsemigroups version" >&5 18374$as_echo_n "checking libsemigroups version... " >&6; } 18375 FOUND_LIBSEMIGROUPS_VERSION="$(cat libsemigroups/.VERSION)" 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_LIBSEMIGROUPS_VERSION" >&5 18377$as_echo "$FOUND_LIBSEMIGROUPS_VERSION" >&6; } 18378 18379 18380 18381 # Used to indicate true or false condition 18382 ax_compare_version=false 18383 18384 # Convert the two version strings to be compared into a format that 18385 # allows a simple string comparison. The end result is that a version 18386 # string of the form 1.12.5-r617 will be converted to the form 18387 # 0001001200050617. In other words, each number is zero padded to four 18388 # digits, and non digits are removed. 18389 18390 ax_compare_version_A=`echo "$FOUND_LIBSEMIGROUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 18391 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 18392 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 18393 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 18394 -e 's/[^0-9]//g'` 18395 18396 18397 ax_compare_version_B=`echo "$REQUI_LIBSEMIGROUPS_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 18398 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 18399 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 18400 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 18401 -e 's/[^0-9]//g'` 18402 18403 18404 ax_compare_version=`echo "x$ax_compare_version_A 18405x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 18406 18407 18408 18409 if test "$ax_compare_version" = "true" ; then 18410 : 18411 else as_fn_error $? "libsemigroups version $REQUI_LIBSEMIGROUPS_VERSION or higher is required" "$LINENO" 5 18412 18413 fi 18414 18415 LIBSEMIGROUPS_CFLAGS='-I./bin/include' 18416 18417 LIBSEMIGROUPS_LIBS='bin/lib/libsemigroups.la' 18418 18419 subdirs="$subdirs libsemigroups" 18420 18421 fi 18422 18423 if test "$need_included_libsemigroups" = yes; then 18424 WITH_INCLUDED_LIBSEMIGROUPS_TRUE= 18425 WITH_INCLUDED_LIBSEMIGROUPS_FALSE='#' 18426else 18427 WITH_INCLUDED_LIBSEMIGROUPS_TRUE='#' 18428 WITH_INCLUDED_LIBSEMIGROUPS_FALSE= 18429fi 18430 18431 18432 18433# Check whether --enable-debug was given. 18434if test "${enable_debug+set}" = set; then : 18435 enableval=$enable_debug; 18436$as_echo "#define KERNEL_DEBUG 1" >>confdefs.h 18437 18438else 18439 enable_debug=no 18440 18441fi 18442 18443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug mode" >&5 18444$as_echo_n "checking whether to enable debug mode... " >&6; } 18445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 18446$as_echo "$enable_debug" >&6; } 18447 18448## TODO check that the compiler supports these flags 18449if test "x$enable_debug" = xyes; then : 18450 CXXFLAGS='-g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wtype-limits -Wformat-security -Wpointer-arith -Wno-div-by-zero -Wreturn-type -Wswitch -Wsizeof-array-argument -Wunused-label -fno-omit-frame-pointer -Wno-c++11-extensions -Wshadow -Wint-conversion' 18451 18452fi 18453 18454if test "x$enable_debug" = xyes; then : 18455 CFLAGS='-g3 -O0 -Wall -Wextra -Wno-unused-parameter -Wtype-limits -Wformat-security -Wpointer-arith -Wno-div-by-zero -Wreturn-type -Wswitch -Wsizeof-array-argument -Wunused-label -fno-omit-frame-pointer -Wshadow -Wint-conversion' 18456 18457fi 18458 18459 if test "x$enable_debug" = xyes; then 18460 KERNEL_DEBUG_TRUE= 18461 KERNEL_DEBUG_FALSE='#' 18462else 18463 KERNEL_DEBUG_TRUE='#' 18464 KERNEL_DEBUG_FALSE= 18465fi 18466 18467 18468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -march=native" >&5 18469$as_echo_n "checking whether C++ compiler accepts -march=native... " >&6; } 18470if ${ax_cv_check_cxxflags___march_native+:} false; then : 18471 $as_echo_n "(cached) " >&6 18472else 18473 18474 ax_check_save_flags=$CXXFLAGS 18475 CXXFLAGS="$CXXFLAGS -march=native" 18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18477/* end confdefs.h. */ 18478 18479int 18480main () 18481{ 18482 18483 ; 18484 return 0; 18485} 18486_ACEOF 18487if ac_fn_cxx_try_compile "$LINENO"; then : 18488 ax_cv_check_cxxflags___march_native=yes 18489else 18490 ax_cv_check_cxxflags___march_native=no 18491fi 18492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18493 CXXFLAGS=$ax_check_save_flags 18494fi 18495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___march_native" >&5 18496$as_echo "$ax_cv_check_cxxflags___march_native" >&6; } 18497if test "x$ax_cv_check_cxxflags___march_native" = xyes; then : 18498 18499if ${CXXFLAGS+:} false; then : 18500 18501 case " $CXXFLAGS " in #( 18502 *" -march=native "*) : 18503 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -march=native"; } >&5 18504 (: CXXFLAGS already contains -march=native) 2>&5 18505 ac_status=$? 18506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18507 test $ac_status = 0; } ;; #( 18508 *) : 18509 18510 as_fn_append CXXFLAGS " -march=native" 18511 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 18512 (: CXXFLAGS="$CXXFLAGS") 2>&5 18513 ac_status=$? 18514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18515 test $ac_status = 0; } 18516 ;; 18517esac 18518 18519else 18520 18521 CXXFLAGS=-march=native 18522 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 18523 (: CXXFLAGS="$CXXFLAGS") 2>&5 18524 ac_status=$? 18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18526 test $ac_status = 0; } 18527 18528fi 18529 18530else 18531 : 18532fi 18533 18534 18535ac_config_files="$ac_config_files Makefile" 18536 18537cat >confcache <<\_ACEOF 18538# This file is a shell script that caches the results of configure 18539# tests run on this system so they can be shared between configure 18540# scripts and configure runs, see configure's option --config-cache. 18541# It is not useful on other systems. If it contains results you don't 18542# want to keep, you may remove or edit it. 18543# 18544# config.status only pays attention to the cache file if you give it 18545# the --recheck option to rerun configure. 18546# 18547# `ac_cv_env_foo' variables (set or unset) will be overridden when 18548# loading this file, other *unset* `ac_cv_foo' will be assigned the 18549# following values. 18550 18551_ACEOF 18552 18553# The following way of writing the cache mishandles newlines in values, 18554# but we know of no workaround that is simple, portable, and efficient. 18555# So, we kill variables containing newlines. 18556# Ultrix sh set writes to stderr and can't be redirected directly, 18557# and sets the high bit in the cache file unless we assign to the vars. 18558( 18559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18560 eval ac_val=\$$ac_var 18561 case $ac_val in #( 18562 *${as_nl}*) 18563 case $ac_var in #( 18564 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18565$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18566 esac 18567 case $ac_var in #( 18568 _ | IFS | as_nl) ;; #( 18569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18570 *) { eval $ac_var=; unset $ac_var;} ;; 18571 esac ;; 18572 esac 18573 done 18574 18575 (set) 2>&1 | 18576 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18577 *${as_nl}ac_space=\ *) 18578 # `set' does not quote correctly, so add quotes: double-quote 18579 # substitution turns \\\\ into \\, and sed turns \\ into \. 18580 sed -n \ 18581 "s/'/'\\\\''/g; 18582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18583 ;; #( 18584 *) 18585 # `set' quotes correctly as required by POSIX, so do not add quotes. 18586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18587 ;; 18588 esac | 18589 sort 18590) | 18591 sed ' 18592 /^ac_cv_env_/b end 18593 t clear 18594 :clear 18595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18596 t end 18597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18598 :end' >>confcache 18599if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18600 if test -w "$cache_file"; then 18601 if test "x$cache_file" != "x/dev/null"; then 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18603$as_echo "$as_me: updating cache $cache_file" >&6;} 18604 if test ! -f "$cache_file" || test -h "$cache_file"; then 18605 cat confcache >"$cache_file" 18606 else 18607 case $cache_file in #( 18608 */* | ?:*) 18609 mv -f confcache "$cache_file"$$ && 18610 mv -f "$cache_file"$$ "$cache_file" ;; #( 18611 *) 18612 mv -f confcache "$cache_file" ;; 18613 esac 18614 fi 18615 fi 18616 else 18617 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18618$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18619 fi 18620fi 18621rm -f confcache 18622 18623test "x$prefix" = xNONE && prefix=$ac_default_prefix 18624# Let make expand exec_prefix. 18625test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18626 18627DEFS=-DHAVE_CONFIG_H 18628 18629ac_libobjs= 18630ac_ltlibobjs= 18631U= 18632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18633 # 1. Remove the extension, and $U if already installed. 18634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18635 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18637 # will be set to the directory where LIBOBJS objects are built. 18638 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18639 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18640done 18641LIBOBJS=$ac_libobjs 18642 18643LTLIBOBJS=$ac_ltlibobjs 18644 18645 18646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18647$as_echo_n "checking that generated files are newer than configure... " >&6; } 18648 if test -n "$am_sleep_pid"; then 18649 # Hide warnings about reused PIDs. 18650 wait $am_sleep_pid 2>/dev/null 18651 fi 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18653$as_echo "done" >&6; } 18654 if test -n "$EXEEXT"; then 18655 am__EXEEXT_TRUE= 18656 am__EXEEXT_FALSE='#' 18657else 18658 am__EXEEXT_TRUE='#' 18659 am__EXEEXT_FALSE= 18660fi 18661 18662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18663 as_fn_error $? "conditional \"AMDEP\" was never defined. 18664Usually this means the macro was only invoked conditionally." "$LINENO" 5 18665fi 18666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18667 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18668Usually this means the macro was only invoked conditionally." "$LINENO" 5 18669fi 18670if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18671 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18672Usually this means the macro was only invoked conditionally." "$LINENO" 5 18673fi 18674if test -z "${SYS_IS_CYGWIN_TRUE}" && test -z "${SYS_IS_CYGWIN_FALSE}"; then 18675 as_fn_error $? "conditional \"SYS_IS_CYGWIN\" was never defined. 18676Usually this means the macro was only invoked conditionally." "$LINENO" 5 18677fi 18678if test -z "${WITH_INCLUDED_LIBSEMIGROUPS_TRUE}" && test -z "${WITH_INCLUDED_LIBSEMIGROUPS_FALSE}"; then 18679 as_fn_error $? "conditional \"WITH_INCLUDED_LIBSEMIGROUPS\" was never defined. 18680Usually this means the macro was only invoked conditionally." "$LINENO" 5 18681fi 18682if test -z "${KERNEL_DEBUG_TRUE}" && test -z "${KERNEL_DEBUG_FALSE}"; then 18683 as_fn_error $? "conditional \"KERNEL_DEBUG\" was never defined. 18684Usually this means the macro was only invoked conditionally." "$LINENO" 5 18685fi 18686 18687: "${CONFIG_STATUS=./config.status}" 18688ac_write_fail=0 18689ac_clean_files_save=$ac_clean_files 18690ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18691{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18692$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18693as_write_fail=0 18694cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18695#! $SHELL 18696# Generated by $as_me. 18697# Run this file to recreate the current configuration. 18698# Compiler output produced by configure, useful for debugging 18699# configure, is in config.log if it exists. 18700 18701debug=false 18702ac_cs_recheck=false 18703ac_cs_silent=false 18704 18705SHELL=\${CONFIG_SHELL-$SHELL} 18706export SHELL 18707_ASEOF 18708cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18709## -------------------- ## 18710## M4sh Initialization. ## 18711## -------------------- ## 18712 18713# Be more Bourne compatible 18714DUALCASE=1; export DUALCASE # for MKS sh 18715if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18716 emulate sh 18717 NULLCMD=: 18718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18719 # is contrary to our usage. Disable this feature. 18720 alias -g '${1+"$@"}'='"$@"' 18721 setopt NO_GLOB_SUBST 18722else 18723 case `(set -o) 2>/dev/null` in #( 18724 *posix*) : 18725 set -o posix ;; #( 18726 *) : 18727 ;; 18728esac 18729fi 18730 18731 18732as_nl=' 18733' 18734export as_nl 18735# Printing a long string crashes Solaris 7 /usr/bin/printf. 18736as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18737as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18738as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18739# Prefer a ksh shell builtin over an external printf program on Solaris, 18740# but without wasting forks for bash or zsh. 18741if test -z "$BASH_VERSION$ZSH_VERSION" \ 18742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18743 as_echo='print -r --' 18744 as_echo_n='print -rn --' 18745elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18746 as_echo='printf %s\n' 18747 as_echo_n='printf %s' 18748else 18749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18751 as_echo_n='/usr/ucb/echo -n' 18752 else 18753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18754 as_echo_n_body='eval 18755 arg=$1; 18756 case $arg in #( 18757 *"$as_nl"*) 18758 expr "X$arg" : "X\\(.*\\)$as_nl"; 18759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18760 esac; 18761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18762 ' 18763 export as_echo_n_body 18764 as_echo_n='sh -c $as_echo_n_body as_echo' 18765 fi 18766 export as_echo_body 18767 as_echo='sh -c $as_echo_body as_echo' 18768fi 18769 18770# The user is always right. 18771if test "${PATH_SEPARATOR+set}" != set; then 18772 PATH_SEPARATOR=: 18773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18775 PATH_SEPARATOR=';' 18776 } 18777fi 18778 18779 18780# IFS 18781# We need space, tab and new line, in precisely that order. Quoting is 18782# there to prevent editors from complaining about space-tab. 18783# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18784# splitting by setting IFS to empty value.) 18785IFS=" "" $as_nl" 18786 18787# Find who we are. Look in the path if we contain no directory separator. 18788as_myself= 18789case $0 in #(( 18790 *[\\/]* ) as_myself=$0 ;; 18791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18792for as_dir in $PATH 18793do 18794 IFS=$as_save_IFS 18795 test -z "$as_dir" && as_dir=. 18796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18797 done 18798IFS=$as_save_IFS 18799 18800 ;; 18801esac 18802# We did not find ourselves, most probably we were run as `sh COMMAND' 18803# in which case we are not to be found in the path. 18804if test "x$as_myself" = x; then 18805 as_myself=$0 18806fi 18807if test ! -f "$as_myself"; then 18808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18809 exit 1 18810fi 18811 18812# Unset variables that we do not need and which cause bugs (e.g. in 18813# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18814# suppresses any "Segmentation fault" message there. '((' could 18815# trigger a bug in pdksh 5.2.14. 18816for as_var in BASH_ENV ENV MAIL MAILPATH 18817do eval test x\${$as_var+set} = xset \ 18818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18819done 18820PS1='$ ' 18821PS2='> ' 18822PS4='+ ' 18823 18824# NLS nuisances. 18825LC_ALL=C 18826export LC_ALL 18827LANGUAGE=C 18828export LANGUAGE 18829 18830# CDPATH. 18831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18832 18833 18834# as_fn_error STATUS ERROR [LINENO LOG_FD] 18835# ---------------------------------------- 18836# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18837# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18838# script with STATUS, using 1 if that was 0. 18839as_fn_error () 18840{ 18841 as_status=$1; test $as_status -eq 0 && as_status=1 18842 if test "$4"; then 18843 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18845 fi 18846 $as_echo "$as_me: error: $2" >&2 18847 as_fn_exit $as_status 18848} # as_fn_error 18849 18850 18851# as_fn_set_status STATUS 18852# ----------------------- 18853# Set $? to STATUS, without forking. 18854as_fn_set_status () 18855{ 18856 return $1 18857} # as_fn_set_status 18858 18859# as_fn_exit STATUS 18860# ----------------- 18861# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18862as_fn_exit () 18863{ 18864 set +e 18865 as_fn_set_status $1 18866 exit $1 18867} # as_fn_exit 18868 18869# as_fn_unset VAR 18870# --------------- 18871# Portably unset VAR. 18872as_fn_unset () 18873{ 18874 { eval $1=; unset $1;} 18875} 18876as_unset=as_fn_unset 18877# as_fn_append VAR VALUE 18878# ---------------------- 18879# Append the text in VALUE to the end of the definition contained in VAR. Take 18880# advantage of any shell optimizations that allow amortized linear growth over 18881# repeated appends, instead of the typical quadratic growth present in naive 18882# implementations. 18883if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18884 eval 'as_fn_append () 18885 { 18886 eval $1+=\$2 18887 }' 18888else 18889 as_fn_append () 18890 { 18891 eval $1=\$$1\$2 18892 } 18893fi # as_fn_append 18894 18895# as_fn_arith ARG... 18896# ------------------ 18897# Perform arithmetic evaluation on the ARGs, and store the result in the 18898# global $as_val. Take advantage of shells that can avoid forks. The arguments 18899# must be portable across $(()) and expr. 18900if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18901 eval 'as_fn_arith () 18902 { 18903 as_val=$(( $* )) 18904 }' 18905else 18906 as_fn_arith () 18907 { 18908 as_val=`expr "$@" || test $? -eq 1` 18909 } 18910fi # as_fn_arith 18911 18912 18913if expr a : '\(a\)' >/dev/null 2>&1 && 18914 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18915 as_expr=expr 18916else 18917 as_expr=false 18918fi 18919 18920if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18921 as_basename=basename 18922else 18923 as_basename=false 18924fi 18925 18926if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18927 as_dirname=dirname 18928else 18929 as_dirname=false 18930fi 18931 18932as_me=`$as_basename -- "$0" || 18933$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18934 X"$0" : 'X\(//\)$' \| \ 18935 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18936$as_echo X/"$0" | 18937 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18938 s//\1/ 18939 q 18940 } 18941 /^X\/\(\/\/\)$/{ 18942 s//\1/ 18943 q 18944 } 18945 /^X\/\(\/\).*/{ 18946 s//\1/ 18947 q 18948 } 18949 s/.*/./; q'` 18950 18951# Avoid depending upon Character Ranges. 18952as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18953as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18954as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18955as_cr_digits='0123456789' 18956as_cr_alnum=$as_cr_Letters$as_cr_digits 18957 18958ECHO_C= ECHO_N= ECHO_T= 18959case `echo -n x` in #((((( 18960-n*) 18961 case `echo 'xy\c'` in 18962 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18963 xy) ECHO_C='\c';; 18964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18965 ECHO_T=' ';; 18966 esac;; 18967*) 18968 ECHO_N='-n';; 18969esac 18970 18971rm -f conf$$ conf$$.exe conf$$.file 18972if test -d conf$$.dir; then 18973 rm -f conf$$.dir/conf$$.file 18974else 18975 rm -f conf$$.dir 18976 mkdir conf$$.dir 2>/dev/null 18977fi 18978if (echo >conf$$.file) 2>/dev/null; then 18979 if ln -s conf$$.file conf$$ 2>/dev/null; then 18980 as_ln_s='ln -s' 18981 # ... but there are two gotchas: 18982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18984 # In both cases, we have to default to `cp -pR'. 18985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18986 as_ln_s='cp -pR' 18987 elif ln conf$$.file conf$$ 2>/dev/null; then 18988 as_ln_s=ln 18989 else 18990 as_ln_s='cp -pR' 18991 fi 18992else 18993 as_ln_s='cp -pR' 18994fi 18995rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18996rmdir conf$$.dir 2>/dev/null 18997 18998 18999# as_fn_mkdir_p 19000# ------------- 19001# Create "$as_dir" as a directory, including parents if necessary. 19002as_fn_mkdir_p () 19003{ 19004 19005 case $as_dir in #( 19006 -*) as_dir=./$as_dir;; 19007 esac 19008 test -d "$as_dir" || eval $as_mkdir_p || { 19009 as_dirs= 19010 while :; do 19011 case $as_dir in #( 19012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19013 *) as_qdir=$as_dir;; 19014 esac 19015 as_dirs="'$as_qdir' $as_dirs" 19016 as_dir=`$as_dirname -- "$as_dir" || 19017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19018 X"$as_dir" : 'X\(//\)[^/]' \| \ 19019 X"$as_dir" : 'X\(//\)$' \| \ 19020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19021$as_echo X"$as_dir" | 19022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19023 s//\1/ 19024 q 19025 } 19026 /^X\(\/\/\)[^/].*/{ 19027 s//\1/ 19028 q 19029 } 19030 /^X\(\/\/\)$/{ 19031 s//\1/ 19032 q 19033 } 19034 /^X\(\/\).*/{ 19035 s//\1/ 19036 q 19037 } 19038 s/.*/./; q'` 19039 test -d "$as_dir" && break 19040 done 19041 test -z "$as_dirs" || eval "mkdir $as_dirs" 19042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19043 19044 19045} # as_fn_mkdir_p 19046if mkdir -p . 2>/dev/null; then 19047 as_mkdir_p='mkdir -p "$as_dir"' 19048else 19049 test -d ./-p && rmdir ./-p 19050 as_mkdir_p=false 19051fi 19052 19053 19054# as_fn_executable_p FILE 19055# ----------------------- 19056# Test if FILE is an executable regular file. 19057as_fn_executable_p () 19058{ 19059 test -f "$1" && test -x "$1" 19060} # as_fn_executable_p 19061as_test_x='test -x' 19062as_executable_p=as_fn_executable_p 19063 19064# Sed expression to map a string onto a valid CPP name. 19065as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19066 19067# Sed expression to map a string onto a valid variable name. 19068as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19069 19070 19071exec 6>&1 19072## ----------------------------------- ## 19073## Main body of $CONFIG_STATUS script. ## 19074## ----------------------------------- ## 19075_ASEOF 19076test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19077 19078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19079# Save the log message, to keep $0 and so on meaningful, and to 19080# report actual input values of CONFIG_FILES etc. instead of their 19081# values after options handling. 19082ac_log=" 19083This file was extended by semigroups $as_me 3.2.3, which was 19084generated by GNU Autoconf 2.69. Invocation command line was 19085 19086 CONFIG_FILES = $CONFIG_FILES 19087 CONFIG_HEADERS = $CONFIG_HEADERS 19088 CONFIG_LINKS = $CONFIG_LINKS 19089 CONFIG_COMMANDS = $CONFIG_COMMANDS 19090 $ $0 $@ 19091 19092on `(hostname || uname -n) 2>/dev/null | sed 1q` 19093" 19094 19095_ACEOF 19096 19097case $ac_config_files in *" 19098"*) set x $ac_config_files; shift; ac_config_files=$*;; 19099esac 19100 19101case $ac_config_headers in *" 19102"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19103esac 19104 19105 19106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19107# Files that config.status was made for. 19108config_files="$ac_config_files" 19109config_headers="$ac_config_headers" 19110config_commands="$ac_config_commands" 19111 19112_ACEOF 19113 19114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19115ac_cs_usage="\ 19116\`$as_me' instantiates files and other configuration actions 19117from templates according to the current configuration. Unless the files 19118and actions are specified as TAGs, all are instantiated by default. 19119 19120Usage: $0 [OPTION]... [TAG]... 19121 19122 -h, --help print this help, then exit 19123 -V, --version print version number and configuration settings, then exit 19124 --config print configuration, then exit 19125 -q, --quiet, --silent 19126 do not print progress messages 19127 -d, --debug don't remove temporary files 19128 --recheck update $as_me by reconfiguring in the same conditions 19129 --file=FILE[:TEMPLATE] 19130 instantiate the configuration file FILE 19131 --header=FILE[:TEMPLATE] 19132 instantiate the configuration header FILE 19133 19134Configuration files: 19135$config_files 19136 19137Configuration headers: 19138$config_headers 19139 19140Configuration commands: 19141$config_commands 19142 19143Report bugs to the package provider." 19144 19145_ACEOF 19146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19147ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19148ac_cs_version="\\ 19149semigroups config.status 3.2.3 19150configured by $0, generated by GNU Autoconf 2.69, 19151 with options \\"\$ac_cs_config\\" 19152 19153Copyright (C) 2012 Free Software Foundation, Inc. 19154This config.status script is free software; the Free Software Foundation 19155gives unlimited permission to copy, distribute and modify it." 19156 19157ac_pwd='$ac_pwd' 19158srcdir='$srcdir' 19159INSTALL='$INSTALL' 19160MKDIR_P='$MKDIR_P' 19161AWK='$AWK' 19162test -n "\$AWK" || AWK=awk 19163_ACEOF 19164 19165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19166# The default lists apply if the user does not specify any file. 19167ac_need_defaults=: 19168while test $# != 0 19169do 19170 case $1 in 19171 --*=?*) 19172 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19174 ac_shift=: 19175 ;; 19176 --*=) 19177 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19178 ac_optarg= 19179 ac_shift=: 19180 ;; 19181 *) 19182 ac_option=$1 19183 ac_optarg=$2 19184 ac_shift=shift 19185 ;; 19186 esac 19187 19188 case $ac_option in 19189 # Handling of the options. 19190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19191 ac_cs_recheck=: ;; 19192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19193 $as_echo "$ac_cs_version"; exit ;; 19194 --config | --confi | --conf | --con | --co | --c ) 19195 $as_echo "$ac_cs_config"; exit ;; 19196 --debug | --debu | --deb | --de | --d | -d ) 19197 debug=: ;; 19198 --file | --fil | --fi | --f ) 19199 $ac_shift 19200 case $ac_optarg in 19201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19202 '') as_fn_error $? "missing file argument" ;; 19203 esac 19204 as_fn_append CONFIG_FILES " '$ac_optarg'" 19205 ac_need_defaults=false;; 19206 --header | --heade | --head | --hea ) 19207 $ac_shift 19208 case $ac_optarg in 19209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19210 esac 19211 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19212 ac_need_defaults=false;; 19213 --he | --h) 19214 # Conflict between --help and --header 19215 as_fn_error $? "ambiguous option: \`$1' 19216Try \`$0 --help' for more information.";; 19217 --help | --hel | -h ) 19218 $as_echo "$ac_cs_usage"; exit ;; 19219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19220 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19221 ac_cs_silent=: ;; 19222 19223 # This is an error. 19224 -*) as_fn_error $? "unrecognized option: \`$1' 19225Try \`$0 --help' for more information." ;; 19226 19227 *) as_fn_append ac_config_targets " $1" 19228 ac_need_defaults=false ;; 19229 19230 esac 19231 shift 19232done 19233 19234ac_configure_extra_args= 19235 19236if $ac_cs_silent; then 19237 exec 6>/dev/null 19238 ac_configure_extra_args="$ac_configure_extra_args --silent" 19239fi 19240 19241_ACEOF 19242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19243if \$ac_cs_recheck; then 19244 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19245 shift 19246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19247 CONFIG_SHELL='$SHELL' 19248 export CONFIG_SHELL 19249 exec "\$@" 19250fi 19251 19252_ACEOF 19253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19254exec 5>>config.log 19255{ 19256 echo 19257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19258## Running $as_me. ## 19259_ASBOX 19260 $as_echo "$ac_log" 19261} >&5 19262 19263_ACEOF 19264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19265# 19266# INIT-COMMANDS 19267# 19268AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19269PACKAGE="$PACKAGE" 19270 19271 19272# The HP-UX ksh and POSIX shell print the target directory to stdout 19273# if CDPATH is set. 19274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19275 19276sed_quote_subst='$sed_quote_subst' 19277double_quote_subst='$double_quote_subst' 19278delay_variable_subst='$delay_variable_subst' 19279macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19280macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19281enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19282AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19283DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19284OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19285enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19286pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19287enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19288shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19289SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19290ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19291PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19292host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19293host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19294host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19295build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19296build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19297build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19298SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19299Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19300GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19301EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19302FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19303LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19304NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19305LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19306max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19307ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19308exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19309lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19310lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19311lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19312lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19313lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19314reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19315reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19316deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19317file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19318file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19319want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19320sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19321AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19322AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19323archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19324STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19325RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19326old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19327old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19328old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19329lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19330CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19331CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19332compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19333GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19334lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19335lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19336lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19337lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19338lt_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"`' 19339lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19340nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19341lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19342lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19343objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19344MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19345lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19346lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19347lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19348lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19349lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19350need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19351MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19352DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19353NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19354LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19355OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19356OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19357libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19358shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19359extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19360archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19361enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19362export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19363whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19364compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19365old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19366old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19367archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19368archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19369module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19370module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19371with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19372allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19373no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19374hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19375hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19376hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19377hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19378hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19379hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19380hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19381inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19382link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19383always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19384export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19385exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19386include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19387prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19388postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19389file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19390variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19391need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19392need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19393version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19394runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19395shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19396shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19397libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19398library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19399soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19400install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19401postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19402postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19403finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19404finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19405hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19406sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19407configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19408configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19409hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19410enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19411enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19412enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19413old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19414striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19415compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19416predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19417postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19418predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19419postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19420compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19421LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19422reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19423reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19424old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19425compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19426GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19427lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19428lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19429lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19430lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19431lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19432archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19433enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19434export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19435whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19436compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19437old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19438old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19439archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19440archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19441module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19442module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19443with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19444allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19445no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19446hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19447hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19448hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19449hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19450hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19451hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19452hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19453inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19454link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19455always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19456export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19457exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19458include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19459prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19460postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19461file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19462hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19463compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19464predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19465postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19466predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19467postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19468compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19469 19470LTCC='$LTCC' 19471LTCFLAGS='$LTCFLAGS' 19472compiler='$compiler_DEFAULT' 19473 19474# A function that is used when there is no print builtin or printf. 19475func_fallback_echo () 19476{ 19477 eval 'cat <<_LTECHO_EOF 19478\$1 19479_LTECHO_EOF' 19480} 19481 19482# Quote evaled strings. 19483for var in AS \ 19484DLLTOOL \ 19485OBJDUMP \ 19486SHELL \ 19487ECHO \ 19488PATH_SEPARATOR \ 19489SED \ 19490GREP \ 19491EGREP \ 19492FGREP \ 19493LD \ 19494NM \ 19495LN_S \ 19496lt_SP2NL \ 19497lt_NL2SP \ 19498reload_flag \ 19499deplibs_check_method \ 19500file_magic_cmd \ 19501file_magic_glob \ 19502want_nocaseglob \ 19503sharedlib_from_linklib_cmd \ 19504AR \ 19505AR_FLAGS \ 19506archiver_list_spec \ 19507STRIP \ 19508RANLIB \ 19509CC \ 19510CFLAGS \ 19511compiler \ 19512lt_cv_sys_global_symbol_pipe \ 19513lt_cv_sys_global_symbol_to_cdecl \ 19514lt_cv_sys_global_symbol_to_import \ 19515lt_cv_sys_global_symbol_to_c_name_address \ 19516lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19517lt_cv_nm_interface \ 19518nm_file_list_spec \ 19519lt_cv_truncate_bin \ 19520lt_prog_compiler_no_builtin_flag \ 19521lt_prog_compiler_pic \ 19522lt_prog_compiler_wl \ 19523lt_prog_compiler_static \ 19524lt_cv_prog_compiler_c_o \ 19525need_locks \ 19526MANIFEST_TOOL \ 19527DSYMUTIL \ 19528NMEDIT \ 19529LIPO \ 19530OTOOL \ 19531OTOOL64 \ 19532shrext_cmds \ 19533export_dynamic_flag_spec \ 19534whole_archive_flag_spec \ 19535compiler_needs_object \ 19536with_gnu_ld \ 19537allow_undefined_flag \ 19538no_undefined_flag \ 19539hardcode_libdir_flag_spec \ 19540hardcode_libdir_separator \ 19541exclude_expsyms \ 19542include_expsyms \ 19543file_list_spec \ 19544variables_saved_for_relink \ 19545libname_spec \ 19546library_names_spec \ 19547soname_spec \ 19548install_override_mode \ 19549finish_eval \ 19550old_striplib \ 19551striplib \ 19552compiler_lib_search_dirs \ 19553predep_objects \ 19554postdep_objects \ 19555predeps \ 19556postdeps \ 19557compiler_lib_search_path \ 19558LD_CXX \ 19559reload_flag_CXX \ 19560compiler_CXX \ 19561lt_prog_compiler_no_builtin_flag_CXX \ 19562lt_prog_compiler_pic_CXX \ 19563lt_prog_compiler_wl_CXX \ 19564lt_prog_compiler_static_CXX \ 19565lt_cv_prog_compiler_c_o_CXX \ 19566export_dynamic_flag_spec_CXX \ 19567whole_archive_flag_spec_CXX \ 19568compiler_needs_object_CXX \ 19569with_gnu_ld_CXX \ 19570allow_undefined_flag_CXX \ 19571no_undefined_flag_CXX \ 19572hardcode_libdir_flag_spec_CXX \ 19573hardcode_libdir_separator_CXX \ 19574exclude_expsyms_CXX \ 19575include_expsyms_CXX \ 19576file_list_spec_CXX \ 19577compiler_lib_search_dirs_CXX \ 19578predep_objects_CXX \ 19579postdep_objects_CXX \ 19580predeps_CXX \ 19581postdeps_CXX \ 19582compiler_lib_search_path_CXX; do 19583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19584 *[\\\\\\\`\\"\\\$]*) 19585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19586 ;; 19587 *) 19588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19589 ;; 19590 esac 19591done 19592 19593# Double-quote double-evaled strings. 19594for var in reload_cmds \ 19595old_postinstall_cmds \ 19596old_postuninstall_cmds \ 19597old_archive_cmds \ 19598extract_expsyms_cmds \ 19599old_archive_from_new_cmds \ 19600old_archive_from_expsyms_cmds \ 19601archive_cmds \ 19602archive_expsym_cmds \ 19603module_cmds \ 19604module_expsym_cmds \ 19605export_symbols_cmds \ 19606prelink_cmds \ 19607postlink_cmds \ 19608postinstall_cmds \ 19609postuninstall_cmds \ 19610finish_cmds \ 19611sys_lib_search_path_spec \ 19612configure_time_dlsearch_path \ 19613configure_time_lt_sys_library_path \ 19614reload_cmds_CXX \ 19615old_archive_cmds_CXX \ 19616old_archive_from_new_cmds_CXX \ 19617old_archive_from_expsyms_cmds_CXX \ 19618archive_cmds_CXX \ 19619archive_expsym_cmds_CXX \ 19620module_cmds_CXX \ 19621module_expsym_cmds_CXX \ 19622export_symbols_cmds_CXX \ 19623prelink_cmds_CXX \ 19624postlink_cmds_CXX; do 19625 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19626 *[\\\\\\\`\\"\\\$]*) 19627 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19628 ;; 19629 *) 19630 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19631 ;; 19632 esac 19633done 19634 19635ac_aux_dir='$ac_aux_dir' 19636 19637# See if we are running on zsh, and set the options that allow our 19638# commands through without removal of \ escapes INIT. 19639if test -n "\${ZSH_VERSION+set}"; then 19640 setopt NO_GLOB_SUBST 19641fi 19642 19643 19644 PACKAGE='$PACKAGE' 19645 VERSION='$VERSION' 19646 RM='$RM' 19647 ofile='$ofile' 19648 19649 19650 19651 19652 19653 19654_ACEOF 19655 19656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19657 19658# Handling of arguments. 19659for ac_config_target in $ac_config_targets 19660do 19661 case $ac_config_target in 19662 "src/_pkgconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/_pkgconfig.h:cnf/pkgconfig.h.in" ;; 19663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19664 "src/semigroups-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/semigroups-config.h" ;; 19665 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19667 19668 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19669 esac 19670done 19671 19672 19673# If the user did not use the arguments to specify the items to instantiate, 19674# then the envvar interface is used. Set only those that are not. 19675# We use the long form for the default assignment because of an extremely 19676# bizarre bug on SunOS 4.1.3. 19677if $ac_need_defaults; then 19678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19681fi 19682 19683# Have a temporary directory for convenience. Make it in the build tree 19684# simply because there is no reason against having it here, and in addition, 19685# creating and moving files from /tmp can sometimes cause problems. 19686# Hook for its removal unless debugging. 19687# Note that there is a small window in which the directory will not be cleaned: 19688# after its creation but before its name has been assigned to `$tmp'. 19689$debug || 19690{ 19691 tmp= ac_tmp= 19692 trap 'exit_status=$? 19693 : "${ac_tmp:=$tmp}" 19694 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19695' 0 19696 trap 'as_fn_exit 1' 1 2 13 15 19697} 19698# Create a (secure) tmp directory for tmp files. 19699 19700{ 19701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19702 test -d "$tmp" 19703} || 19704{ 19705 tmp=./conf$$-$RANDOM 19706 (umask 077 && mkdir "$tmp") 19707} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19708ac_tmp=$tmp 19709 19710# Set up the scripts for CONFIG_FILES section. 19711# No need to generate them if there are no CONFIG_FILES. 19712# This happens for instance with `./config.status config.h'. 19713if test -n "$CONFIG_FILES"; then 19714 19715 19716ac_cr=`echo X | tr X '\015'` 19717# On cygwin, bash can eat \r inside `` if the user requested igncr. 19718# But we know of no other shell where ac_cr would be empty at this 19719# point, so we can use a bashism as a fallback. 19720if test "x$ac_cr" = x; then 19721 eval ac_cr=\$\'\\r\' 19722fi 19723ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19724if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19725 ac_cs_awk_cr='\\r' 19726else 19727 ac_cs_awk_cr=$ac_cr 19728fi 19729 19730echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19731_ACEOF 19732 19733 19734{ 19735 echo "cat >conf$$subs.awk <<_ACEOF" && 19736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19737 echo "_ACEOF" 19738} >conf$$subs.sh || 19739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19740ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19741ac_delim='%!_!# ' 19742for ac_last_try in false false false false false :; do 19743 . ./conf$$subs.sh || 19744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19745 19746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19747 if test $ac_delim_n = $ac_delim_num; then 19748 break 19749 elif $ac_last_try; then 19750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19751 else 19752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19753 fi 19754done 19755rm -f conf$$subs.sh 19756 19757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19758cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19759_ACEOF 19760sed -n ' 19761h 19762s/^/S["/; s/!.*/"]=/ 19763p 19764g 19765s/^[^!]*!// 19766:repl 19767t repl 19768s/'"$ac_delim"'$// 19769t delim 19770:nl 19771h 19772s/\(.\{148\}\)..*/\1/ 19773t more1 19774s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19775p 19776n 19777b repl 19778:more1 19779s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19780p 19781g 19782s/.\{148\}// 19783t nl 19784:delim 19785h 19786s/\(.\{148\}\)..*/\1/ 19787t more2 19788s/["\\]/\\&/g; s/^/"/; s/$/"/ 19789p 19790b 19791:more2 19792s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19793p 19794g 19795s/.\{148\}// 19796t delim 19797' <conf$$subs.awk | sed ' 19798/^[^""]/{ 19799 N 19800 s/\n// 19801} 19802' >>$CONFIG_STATUS || ac_write_fail=1 19803rm -f conf$$subs.awk 19804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19805_ACAWK 19806cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19807 for (key in S) S_is_set[key] = 1 19808 FS = "" 19809 19810} 19811{ 19812 line = $ 0 19813 nfields = split(line, field, "@") 19814 substed = 0 19815 len = length(field[1]) 19816 for (i = 2; i < nfields; i++) { 19817 key = field[i] 19818 keylen = length(key) 19819 if (S_is_set[key]) { 19820 value = S[key] 19821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19822 len += length(value) + length(field[++i]) 19823 substed = 1 19824 } else 19825 len += 1 + keylen 19826 } 19827 19828 print line 19829} 19830 19831_ACAWK 19832_ACEOF 19833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19834if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19836else 19837 cat 19838fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19839 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19840_ACEOF 19841 19842# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19843# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19844# trailing colons and then remove the whole line if VPATH becomes empty 19845# (actually we leave an empty line to preserve line numbers). 19846if test "x$srcdir" = x.; then 19847 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19848h 19849s/// 19850s/^/:/ 19851s/[ ]*$/:/ 19852s/:\$(srcdir):/:/g 19853s/:\${srcdir}:/:/g 19854s/:@srcdir@:/:/g 19855s/^:*// 19856s/:*$// 19857x 19858s/\(=[ ]*\).*/\1/ 19859G 19860s/\n// 19861s/^[^=]*=[ ]*$// 19862}' 19863fi 19864 19865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19866fi # test -n "$CONFIG_FILES" 19867 19868# Set up the scripts for CONFIG_HEADERS section. 19869# No need to generate them if there are no CONFIG_HEADERS. 19870# This happens for instance with `./config.status Makefile'. 19871if test -n "$CONFIG_HEADERS"; then 19872cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19873BEGIN { 19874_ACEOF 19875 19876# Transform confdefs.h into an awk script `defines.awk', embedded as 19877# here-document in config.status, that substitutes the proper values into 19878# config.h.in to produce config.h. 19879 19880# Create a delimiter string that does not exist in confdefs.h, to ease 19881# handling of long lines. 19882ac_delim='%!_!# ' 19883for ac_last_try in false false :; do 19884 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19885 if test -z "$ac_tt"; then 19886 break 19887 elif $ac_last_try; then 19888 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19889 else 19890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19891 fi 19892done 19893 19894# For the awk script, D is an array of macro values keyed by name, 19895# likewise P contains macro parameters if any. Preserve backslash 19896# newline sequences. 19897 19898ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19899sed -n ' 19900s/.\{148\}/&'"$ac_delim"'/g 19901t rset 19902:rset 19903s/^[ ]*#[ ]*define[ ][ ]*/ / 19904t def 19905d 19906:def 19907s/\\$// 19908t bsnl 19909s/["\\]/\\&/g 19910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19911D["\1"]=" \3"/p 19912s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19913d 19914:bsnl 19915s/["\\]/\\&/g 19916s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19917D["\1"]=" \3\\\\\\n"\\/p 19918t cont 19919s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19920t cont 19921d 19922:cont 19923n 19924s/.\{148\}/&'"$ac_delim"'/g 19925t clear 19926:clear 19927s/\\$// 19928t bsnlc 19929s/["\\]/\\&/g; s/^/"/; s/$/"/p 19930d 19931:bsnlc 19932s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19933b cont 19934' <confdefs.h | sed ' 19935s/'"$ac_delim"'/"\\\ 19936"/g' >>$CONFIG_STATUS || ac_write_fail=1 19937 19938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19939 for (key in D) D_is_set[key] = 1 19940 FS = "" 19941} 19942/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19943 line = \$ 0 19944 split(line, arg, " ") 19945 if (arg[1] == "#") { 19946 defundef = arg[2] 19947 mac1 = arg[3] 19948 } else { 19949 defundef = substr(arg[1], 2) 19950 mac1 = arg[2] 19951 } 19952 split(mac1, mac2, "(") #) 19953 macro = mac2[1] 19954 prefix = substr(line, 1, index(line, defundef) - 1) 19955 if (D_is_set[macro]) { 19956 # Preserve the white space surrounding the "#". 19957 print prefix "define", macro P[macro] D[macro] 19958 next 19959 } else { 19960 # Replace #undef with comments. This is necessary, for example, 19961 # in the case of _POSIX_SOURCE, which is predefined and required 19962 # on some systems where configure will not decide to define it. 19963 if (defundef == "undef") { 19964 print "/*", prefix defundef, macro, "*/" 19965 next 19966 } 19967 } 19968} 19969{ print } 19970_ACAWK 19971_ACEOF 19972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19973 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19974fi # test -n "$CONFIG_HEADERS" 19975 19976 19977eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19978shift 19979for ac_tag 19980do 19981 case $ac_tag in 19982 :[FHLC]) ac_mode=$ac_tag; continue;; 19983 esac 19984 case $ac_mode$ac_tag in 19985 :[FHL]*:*);; 19986 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19987 :[FH]-) ac_tag=-:-;; 19988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19989 esac 19990 ac_save_IFS=$IFS 19991 IFS=: 19992 set x $ac_tag 19993 IFS=$ac_save_IFS 19994 shift 19995 ac_file=$1 19996 shift 19997 19998 case $ac_mode in 19999 :L) ac_source=$1;; 20000 :[FH]) 20001 ac_file_inputs= 20002 for ac_f 20003 do 20004 case $ac_f in 20005 -) ac_f="$ac_tmp/stdin";; 20006 *) # Look for the file first in the build tree, then in the source tree 20007 # (if the path is not absolute). The absolute path cannot be DOS-style, 20008 # because $ac_f cannot contain `:'. 20009 test -f "$ac_f" || 20010 case $ac_f in 20011 [\\/$]*) false;; 20012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20013 esac || 20014 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20015 esac 20016 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20017 as_fn_append ac_file_inputs " '$ac_f'" 20018 done 20019 20020 # Let's still pretend it is `configure' which instantiates (i.e., don't 20021 # use $as_me), people would be surprised to read: 20022 # /* config.h. Generated by config.status. */ 20023 configure_input='Generated from '` 20024 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20025 `' by configure.' 20026 if test x"$ac_file" != x-; then 20027 configure_input="$ac_file. $configure_input" 20028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20029$as_echo "$as_me: creating $ac_file" >&6;} 20030 fi 20031 # Neutralize special characters interpreted by sed in replacement strings. 20032 case $configure_input in #( 20033 *\&* | *\|* | *\\* ) 20034 ac_sed_conf_input=`$as_echo "$configure_input" | 20035 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20036 *) ac_sed_conf_input=$configure_input;; 20037 esac 20038 20039 case $ac_tag in 20040 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20042 esac 20043 ;; 20044 esac 20045 20046 ac_dir=`$as_dirname -- "$ac_file" || 20047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20048 X"$ac_file" : 'X\(//\)[^/]' \| \ 20049 X"$ac_file" : 'X\(//\)$' \| \ 20050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20051$as_echo X"$ac_file" | 20052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20053 s//\1/ 20054 q 20055 } 20056 /^X\(\/\/\)[^/].*/{ 20057 s//\1/ 20058 q 20059 } 20060 /^X\(\/\/\)$/{ 20061 s//\1/ 20062 q 20063 } 20064 /^X\(\/\).*/{ 20065 s//\1/ 20066 q 20067 } 20068 s/.*/./; q'` 20069 as_dir="$ac_dir"; as_fn_mkdir_p 20070 ac_builddir=. 20071 20072case "$ac_dir" in 20073.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20074*) 20075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20076 # A ".." for each directory in $ac_dir_suffix. 20077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20078 case $ac_top_builddir_sub in 20079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20081 esac ;; 20082esac 20083ac_abs_top_builddir=$ac_pwd 20084ac_abs_builddir=$ac_pwd$ac_dir_suffix 20085# for backward compatibility: 20086ac_top_builddir=$ac_top_build_prefix 20087 20088case $srcdir in 20089 .) # We are building in place. 20090 ac_srcdir=. 20091 ac_top_srcdir=$ac_top_builddir_sub 20092 ac_abs_top_srcdir=$ac_pwd ;; 20093 [\\/]* | ?:[\\/]* ) # Absolute name. 20094 ac_srcdir=$srcdir$ac_dir_suffix; 20095 ac_top_srcdir=$srcdir 20096 ac_abs_top_srcdir=$srcdir ;; 20097 *) # Relative name. 20098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20099 ac_top_srcdir=$ac_top_build_prefix$srcdir 20100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20101esac 20102ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20103 20104 20105 case $ac_mode in 20106 :F) 20107 # 20108 # CONFIG_FILE 20109 # 20110 20111 case $INSTALL in 20112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20113 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20114 esac 20115 ac_MKDIR_P=$MKDIR_P 20116 case $MKDIR_P in 20117 [\\/$]* | ?:[\\/]* ) ;; 20118 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20119 esac 20120_ACEOF 20121 20122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20123# If the template does not know about datarootdir, expand it. 20124# FIXME: This hack should be removed a few years after 2.60. 20125ac_datarootdir_hack=; ac_datarootdir_seen= 20126ac_sed_dataroot=' 20127/datarootdir/ { 20128 p 20129 q 20130} 20131/@datadir@/p 20132/@docdir@/p 20133/@infodir@/p 20134/@localedir@/p 20135/@mandir@/p' 20136case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20137*datarootdir*) ac_datarootdir_seen=yes;; 20138*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20140$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20141_ACEOF 20142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20143 ac_datarootdir_hack=' 20144 s&@datadir@&$datadir&g 20145 s&@docdir@&$docdir&g 20146 s&@infodir@&$infodir&g 20147 s&@localedir@&$localedir&g 20148 s&@mandir@&$mandir&g 20149 s&\\\${datarootdir}&$datarootdir&g' ;; 20150esac 20151_ACEOF 20152 20153# Neutralize VPATH when `$srcdir' = `.'. 20154# Shell code in configure.ac might set extrasub. 20155# FIXME: do we really want to maintain this feature? 20156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20157ac_sed_extra="$ac_vpsub 20158$extrasub 20159_ACEOF 20160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20161:t 20162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20163s|@configure_input@|$ac_sed_conf_input|;t t 20164s&@top_builddir@&$ac_top_builddir_sub&;t t 20165s&@top_build_prefix@&$ac_top_build_prefix&;t t 20166s&@srcdir@&$ac_srcdir&;t t 20167s&@abs_srcdir@&$ac_abs_srcdir&;t t 20168s&@top_srcdir@&$ac_top_srcdir&;t t 20169s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20170s&@builddir@&$ac_builddir&;t t 20171s&@abs_builddir@&$ac_abs_builddir&;t t 20172s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20173s&@INSTALL@&$ac_INSTALL&;t t 20174s&@MKDIR_P@&$ac_MKDIR_P&;t t 20175$ac_datarootdir_hack 20176" 20177eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20178 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20179 20180test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20181 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20182 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20183 "$ac_tmp/out"`; test -z "$ac_out"; } && 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20185which seems to be undefined. Please make sure it is defined" >&5 20186$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20187which seems to be undefined. Please make sure it is defined" >&2;} 20188 20189 rm -f "$ac_tmp/stdin" 20190 case $ac_file in 20191 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20192 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20193 esac \ 20194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20195 ;; 20196 :H) 20197 # 20198 # CONFIG_HEADER 20199 # 20200 if test x"$ac_file" != x-; then 20201 { 20202 $as_echo "/* $configure_input */" \ 20203 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20204 } >"$ac_tmp/config.h" \ 20205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20206 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20208$as_echo "$as_me: $ac_file is unchanged" >&6;} 20209 else 20210 rm -f "$ac_file" 20211 mv "$ac_tmp/config.h" "$ac_file" \ 20212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20213 fi 20214 else 20215 $as_echo "/* $configure_input */" \ 20216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20217 || as_fn_error $? "could not create -" "$LINENO" 5 20218 fi 20219# Compute "$ac_file"'s index in $config_headers. 20220_am_arg="$ac_file" 20221_am_stamp_count=1 20222for _am_header in $config_headers :; do 20223 case $_am_header in 20224 $_am_arg | $_am_arg:* ) 20225 break ;; 20226 * ) 20227 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20228 esac 20229done 20230echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20231$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20232 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20233 X"$_am_arg" : 'X\(//\)$' \| \ 20234 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20235$as_echo X"$_am_arg" | 20236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20237 s//\1/ 20238 q 20239 } 20240 /^X\(\/\/\)[^/].*/{ 20241 s//\1/ 20242 q 20243 } 20244 /^X\(\/\/\)$/{ 20245 s//\1/ 20246 q 20247 } 20248 /^X\(\/\).*/{ 20249 s//\1/ 20250 q 20251 } 20252 s/.*/./; q'`/stamp-h$_am_stamp_count 20253 ;; 20254 20255 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20256$as_echo "$as_me: executing $ac_file commands" >&6;} 20257 ;; 20258 esac 20259 20260 20261 case $ac_file$ac_mode in 20262 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20263 # Older Autoconf quotes --file arguments for eval, but not when files 20264 # are listed without --file. Let's play safe and only enable the eval 20265 # if we detect the quoting. 20266 # TODO: see whether this extra hack can be removed once we start 20267 # requiring Autoconf 2.70 or later. 20268 case $CONFIG_FILES in #( 20269 *\'*) : 20270 eval set x "$CONFIG_FILES" ;; #( 20271 *) : 20272 set x $CONFIG_FILES ;; #( 20273 *) : 20274 ;; 20275esac 20276 shift 20277 # Used to flag and report bootstrapping failures. 20278 am_rc=0 20279 for am_mf 20280 do 20281 # Strip MF so we end up with the name of the file. 20282 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20283 # Check whether this is an Automake generated Makefile which includes 20284 # dependency-tracking related rules and includes. 20285 # Grep'ing the whole file directly is not great: AIX grep has a line 20286 # limit of 2048, but all sed's we know have understand at least 4000. 20287 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20288 || continue 20289 am_dirpart=`$as_dirname -- "$am_mf" || 20290$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20291 X"$am_mf" : 'X\(//\)[^/]' \| \ 20292 X"$am_mf" : 'X\(//\)$' \| \ 20293 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20294$as_echo X"$am_mf" | 20295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20296 s//\1/ 20297 q 20298 } 20299 /^X\(\/\/\)[^/].*/{ 20300 s//\1/ 20301 q 20302 } 20303 /^X\(\/\/\)$/{ 20304 s//\1/ 20305 q 20306 } 20307 /^X\(\/\).*/{ 20308 s//\1/ 20309 q 20310 } 20311 s/.*/./; q'` 20312 am_filepart=`$as_basename -- "$am_mf" || 20313$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20314 X"$am_mf" : 'X\(//\)$' \| \ 20315 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20316$as_echo X/"$am_mf" | 20317 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20318 s//\1/ 20319 q 20320 } 20321 /^X\/\(\/\/\)$/{ 20322 s//\1/ 20323 q 20324 } 20325 /^X\/\(\/\).*/{ 20326 s//\1/ 20327 q 20328 } 20329 s/.*/./; q'` 20330 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20331 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20332 | $MAKE -f - am--depfiles" >&5 20333 (cd "$am_dirpart" \ 20334 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20335 | $MAKE -f - am--depfiles) >&5 2>&5 20336 ac_status=$? 20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20338 (exit $ac_status); } || am_rc=$? 20339 done 20340 if test $am_rc -ne 0; then 20341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20343as_fn_error $? "Something went wrong bootstrapping makefile fragments 20344 for automatic dependency tracking. Try re-running configure with the 20345 '--disable-dependency-tracking' option to at least be able to build 20346 the package (albeit without support for automatic dependency tracking). 20347See \`config.log' for more details" "$LINENO" 5; } 20348 fi 20349 { am_dirpart=; unset am_dirpart;} 20350 { am_filepart=; unset am_filepart;} 20351 { am_mf=; unset am_mf;} 20352 { am_rc=; unset am_rc;} 20353 rm -f conftest-deps.mk 20354} 20355 ;; 20356 "src/semigroups-config.h":C) ac_prefix_conf_OUT=`echo src/semigroups-config.h` 20357ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 20358ac_prefix_conf_PKG=`echo $PACKAGE` 20359ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 20360ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 20361ac_prefix_conf_INP=`echo "src/_pkgconfig.h" | sed -e 's/ *//'` 20362if test ".$ac_prefix_conf_INP" = "."; then 20363 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 20364 case "$ac_file" in 20365 *.h) ac_prefix_conf_INP=$ac_file ;; 20366 *) 20367 esac 20368 test ".$ac_prefix_conf_INP" != "." && break 20369 done 20370fi 20371if test ".$ac_prefix_conf_INP" = "."; then 20372 case "$ac_prefix_conf_OUT" in 20373 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 20374 ;; 20375 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 20376 ;; 20377 *) ac_prefix_conf_INP=config.h 20378 ;; 20379 esac 20380fi 20381if test -z "$ac_prefix_conf_PKG" ; then 20382 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 20383else 20384 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 20385 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 20386 fi fi 20387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 20388$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 20389 if test -f $ac_prefix_conf_INP ; then 20390 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 20391 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 20392 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 20393 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 20394 $as_echo "#endif/" >> conftest.prefix 20395 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 20396 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 20397 $as_echo "#endif/" >> conftest.prefix 20398 # now executing _script on _DEF input to create _OUT output file 20399 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 20400 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 20401 echo ' ' >>$tmp/pconfig.h 20402 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 20403 20404 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 20405 echo ' ' >>$tmp/pconfig.h 20406 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 20407 echo "#endif" >>$tmp/pconfig.h 20408 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 20410$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 20411 else 20412 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 20413$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20414 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 20415 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 20416 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 20417$as_echo X"$ac_prefix_conf_OUT" | 20418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20419 s//\1/ 20420 q 20421 } 20422 /^X\(\/\/\)[^/].*/{ 20423 s//\1/ 20424 q 20425 } 20426 /^X\(\/\/\)$/{ 20427 s//\1/ 20428 q 20429 } 20430 /^X\(\/\).*/{ 20431 s//\1/ 20432 q 20433 } 20434 s/.*/./; q'` 20435 as_dir="$ac_dir"; as_fn_mkdir_p 20436 rm -f "$ac_prefix_conf_OUT" 20437 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 20438 fi 20439 else 20440 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 20441 fi 20442 rm -f conftest.* 20443fi 20444 ;; 20445 "libtool":C) 20446 20447 # See if we are running on zsh, and set the options that allow our 20448 # commands through without removal of \ escapes. 20449 if test -n "${ZSH_VERSION+set}"; then 20450 setopt NO_GLOB_SUBST 20451 fi 20452 20453 cfgfile=${ofile}T 20454 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20455 $RM "$cfgfile" 20456 20457 cat <<_LT_EOF >> "$cfgfile" 20458#! $SHELL 20459# Generated automatically by $as_me ($PACKAGE) $VERSION 20460# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20461# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20462 20463# Provide generalized library-building support services. 20464# Written by Gordon Matzigkeit, 1996 20465 20466# Copyright (C) 2014 Free Software Foundation, Inc. 20467# This is free software; see the source for copying conditions. There is NO 20468# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20469 20470# GNU Libtool is free software; you can redistribute it and/or modify 20471# it under the terms of the GNU General Public License as published by 20472# the Free Software Foundation; either version 2 of of the License, or 20473# (at your option) any later version. 20474# 20475# As a special exception to the GNU General Public License, if you 20476# distribute this file as part of a program or library that is built 20477# using GNU Libtool, you may include this file under the same 20478# distribution terms that you use for the rest of that program. 20479# 20480# GNU Libtool is distributed in the hope that it will be useful, but 20481# WITHOUT ANY WARRANTY; without even the implied warranty of 20482# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20483# GNU General Public License for more details. 20484# 20485# You should have received a copy of the GNU General Public License 20486# along with this program. If not, see <http://www.gnu.org/licenses/>. 20487 20488 20489# The names of the tagged configurations supported by this script. 20490available_tags='CXX ' 20491 20492# Configured defaults for sys_lib_dlsearch_path munging. 20493: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20494 20495# ### BEGIN LIBTOOL CONFIG 20496 20497# Which release of libtool.m4 was used? 20498macro_version=$macro_version 20499macro_revision=$macro_revision 20500 20501# Whether or not to build static libraries. 20502build_old_libs=$enable_static 20503 20504# Assembler program. 20505AS=$lt_AS 20506 20507# DLL creation program. 20508DLLTOOL=$lt_DLLTOOL 20509 20510# Object dumper program. 20511OBJDUMP=$lt_OBJDUMP 20512 20513# Whether or not to build shared libraries. 20514build_libtool_libs=$enable_shared 20515 20516# What type of objects to build. 20517pic_mode=$pic_mode 20518 20519# Whether or not to optimize for fast installation. 20520fast_install=$enable_fast_install 20521 20522# Shared archive member basename,for filename based shared library versioning on AIX. 20523shared_archive_member_spec=$shared_archive_member_spec 20524 20525# Shell to use when invoking shell scripts. 20526SHELL=$lt_SHELL 20527 20528# An echo program that protects backslashes. 20529ECHO=$lt_ECHO 20530 20531# The PATH separator for the build system. 20532PATH_SEPARATOR=$lt_PATH_SEPARATOR 20533 20534# The host system. 20535host_alias=$host_alias 20536host=$host 20537host_os=$host_os 20538 20539# The build system. 20540build_alias=$build_alias 20541build=$build 20542build_os=$build_os 20543 20544# A sed program that does not truncate output. 20545SED=$lt_SED 20546 20547# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20548Xsed="\$SED -e 1s/^X//" 20549 20550# A grep program that handles long lines. 20551GREP=$lt_GREP 20552 20553# An ERE matcher. 20554EGREP=$lt_EGREP 20555 20556# A literal string matcher. 20557FGREP=$lt_FGREP 20558 20559# A BSD- or MS-compatible name lister. 20560NM=$lt_NM 20561 20562# Whether we need soft or hard links. 20563LN_S=$lt_LN_S 20564 20565# What is the maximum length of a command? 20566max_cmd_len=$max_cmd_len 20567 20568# Object file suffix (normally "o"). 20569objext=$ac_objext 20570 20571# Executable file suffix (normally ""). 20572exeext=$exeext 20573 20574# whether the shell understands "unset". 20575lt_unset=$lt_unset 20576 20577# turn spaces into newlines. 20578SP2NL=$lt_lt_SP2NL 20579 20580# turn newlines into spaces. 20581NL2SP=$lt_lt_NL2SP 20582 20583# convert \$build file names to \$host format. 20584to_host_file_cmd=$lt_cv_to_host_file_cmd 20585 20586# convert \$build files to toolchain format. 20587to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20588 20589# Method to check whether dependent libraries are shared objects. 20590deplibs_check_method=$lt_deplibs_check_method 20591 20592# Command to use when deplibs_check_method = "file_magic". 20593file_magic_cmd=$lt_file_magic_cmd 20594 20595# How to find potential files when deplibs_check_method = "file_magic". 20596file_magic_glob=$lt_file_magic_glob 20597 20598# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20599want_nocaseglob=$lt_want_nocaseglob 20600 20601# Command to associate shared and link libraries. 20602sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20603 20604# The archiver. 20605AR=$lt_AR 20606 20607# Flags to create an archive. 20608AR_FLAGS=$lt_AR_FLAGS 20609 20610# How to feed a file listing to the archiver. 20611archiver_list_spec=$lt_archiver_list_spec 20612 20613# A symbol stripping program. 20614STRIP=$lt_STRIP 20615 20616# Commands used to install an old-style archive. 20617RANLIB=$lt_RANLIB 20618old_postinstall_cmds=$lt_old_postinstall_cmds 20619old_postuninstall_cmds=$lt_old_postuninstall_cmds 20620 20621# Whether to use a lock for old archive extraction. 20622lock_old_archive_extraction=$lock_old_archive_extraction 20623 20624# A C compiler. 20625LTCC=$lt_CC 20626 20627# LTCC compiler flags. 20628LTCFLAGS=$lt_CFLAGS 20629 20630# Take the output of nm and produce a listing of raw symbols and C names. 20631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20632 20633# Transform the output of nm in a proper C declaration. 20634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20635 20636# Transform the output of nm into a list of symbols to manually relocate. 20637global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20638 20639# Transform the output of nm in a C name address pair. 20640global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20641 20642# Transform the output of nm in a C name address pair when lib prefix is needed. 20643global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20644 20645# The name lister interface. 20646nm_interface=$lt_lt_cv_nm_interface 20647 20648# Specify filename containing input files for \$NM. 20649nm_file_list_spec=$lt_nm_file_list_spec 20650 20651# The root where to search for dependent libraries,and where our libraries should be installed. 20652lt_sysroot=$lt_sysroot 20653 20654# Command to truncate a binary pipe. 20655lt_truncate_bin=$lt_lt_cv_truncate_bin 20656 20657# The name of the directory that contains temporary libtool files. 20658objdir=$objdir 20659 20660# Used to examine libraries when file_magic_cmd begins with "file". 20661MAGIC_CMD=$MAGIC_CMD 20662 20663# Must we lock files when doing compilation? 20664need_locks=$lt_need_locks 20665 20666# Manifest tool. 20667MANIFEST_TOOL=$lt_MANIFEST_TOOL 20668 20669# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20670DSYMUTIL=$lt_DSYMUTIL 20671 20672# Tool to change global to local symbols on Mac OS X. 20673NMEDIT=$lt_NMEDIT 20674 20675# Tool to manipulate fat objects and archives on Mac OS X. 20676LIPO=$lt_LIPO 20677 20678# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20679OTOOL=$lt_OTOOL 20680 20681# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20682OTOOL64=$lt_OTOOL64 20683 20684# Old archive suffix (normally "a"). 20685libext=$libext 20686 20687# Shared library suffix (normally ".so"). 20688shrext_cmds=$lt_shrext_cmds 20689 20690# The commands to extract the exported symbol list from a shared archive. 20691extract_expsyms_cmds=$lt_extract_expsyms_cmds 20692 20693# Variables whose values should be saved in libtool wrapper scripts and 20694# restored at link time. 20695variables_saved_for_relink=$lt_variables_saved_for_relink 20696 20697# Do we need the "lib" prefix for modules? 20698need_lib_prefix=$need_lib_prefix 20699 20700# Do we need a version for libraries? 20701need_version=$need_version 20702 20703# Library versioning type. 20704version_type=$version_type 20705 20706# Shared library runtime path variable. 20707runpath_var=$runpath_var 20708 20709# Shared library path variable. 20710shlibpath_var=$shlibpath_var 20711 20712# Is shlibpath searched before the hard-coded library search path? 20713shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20714 20715# Format of library name prefix. 20716libname_spec=$lt_libname_spec 20717 20718# List of archive names. First name is the real one, the rest are links. 20719# The last name is the one that the linker finds with -lNAME 20720library_names_spec=$lt_library_names_spec 20721 20722# The coded name of the library, if different from the real name. 20723soname_spec=$lt_soname_spec 20724 20725# Permission mode override for installation of shared libraries. 20726install_override_mode=$lt_install_override_mode 20727 20728# Command to use after installation of a shared archive. 20729postinstall_cmds=$lt_postinstall_cmds 20730 20731# Command to use after uninstallation of a shared archive. 20732postuninstall_cmds=$lt_postuninstall_cmds 20733 20734# Commands used to finish a libtool library installation in a directory. 20735finish_cmds=$lt_finish_cmds 20736 20737# As "finish_cmds", except a single script fragment to be evaled but 20738# not shown. 20739finish_eval=$lt_finish_eval 20740 20741# Whether we should hardcode library paths into libraries. 20742hardcode_into_libs=$hardcode_into_libs 20743 20744# Compile-time system search path for libraries. 20745sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20746 20747# Detected run-time system search path for libraries. 20748sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20749 20750# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20751configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20752 20753# Whether dlopen is supported. 20754dlopen_support=$enable_dlopen 20755 20756# Whether dlopen of programs is supported. 20757dlopen_self=$enable_dlopen_self 20758 20759# Whether dlopen of statically linked programs is supported. 20760dlopen_self_static=$enable_dlopen_self_static 20761 20762# Commands to strip libraries. 20763old_striplib=$lt_old_striplib 20764striplib=$lt_striplib 20765 20766 20767# The linker used to build libraries. 20768LD=$lt_LD 20769 20770# How to create reloadable object files. 20771reload_flag=$lt_reload_flag 20772reload_cmds=$lt_reload_cmds 20773 20774# Commands used to build an old-style archive. 20775old_archive_cmds=$lt_old_archive_cmds 20776 20777# A language specific compiler. 20778CC=$lt_compiler 20779 20780# Is the compiler the GNU compiler? 20781with_gcc=$GCC 20782 20783# Compiler flag to turn off builtin functions. 20784no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20785 20786# Additional compiler flags for building library objects. 20787pic_flag=$lt_lt_prog_compiler_pic 20788 20789# How to pass a linker flag through the compiler. 20790wl=$lt_lt_prog_compiler_wl 20791 20792# Compiler flag to prevent dynamic linking. 20793link_static_flag=$lt_lt_prog_compiler_static 20794 20795# Does compiler simultaneously support -c and -o options? 20796compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20797 20798# Whether or not to add -lc for building shared libraries. 20799build_libtool_need_lc=$archive_cmds_need_lc 20800 20801# Whether or not to disallow shared libs when runtime libs are static. 20802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20803 20804# Compiler flag to allow reflexive dlopens. 20805export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20806 20807# Compiler flag to generate shared objects directly from archives. 20808whole_archive_flag_spec=$lt_whole_archive_flag_spec 20809 20810# Whether the compiler copes with passing no objects directly. 20811compiler_needs_object=$lt_compiler_needs_object 20812 20813# Create an old-style archive from a shared archive. 20814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20815 20816# Create a temporary old-style archive to link instead of a shared archive. 20817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20818 20819# Commands used to build a shared archive. 20820archive_cmds=$lt_archive_cmds 20821archive_expsym_cmds=$lt_archive_expsym_cmds 20822 20823# Commands used to build a loadable module if different from building 20824# a shared archive. 20825module_cmds=$lt_module_cmds 20826module_expsym_cmds=$lt_module_expsym_cmds 20827 20828# Whether we are building with GNU ld or not. 20829with_gnu_ld=$lt_with_gnu_ld 20830 20831# Flag that allows shared libraries with undefined symbols to be built. 20832allow_undefined_flag=$lt_allow_undefined_flag 20833 20834# Flag that enforces no undefined symbols. 20835no_undefined_flag=$lt_no_undefined_flag 20836 20837# Flag to hardcode \$libdir into a binary during linking. 20838# This must work even if \$libdir does not exist 20839hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20840 20841# Whether we need a single "-rpath" flag with a separated argument. 20842hardcode_libdir_separator=$lt_hardcode_libdir_separator 20843 20844# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20845# DIR into the resulting binary. 20846hardcode_direct=$hardcode_direct 20847 20848# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20849# DIR into the resulting binary and the resulting library dependency is 20850# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20851# library is relocated. 20852hardcode_direct_absolute=$hardcode_direct_absolute 20853 20854# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20855# into the resulting binary. 20856hardcode_minus_L=$hardcode_minus_L 20857 20858# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20859# into the resulting binary. 20860hardcode_shlibpath_var=$hardcode_shlibpath_var 20861 20862# Set to "yes" if building a shared library automatically hardcodes DIR 20863# into the library and all subsequent libraries and executables linked 20864# against it. 20865hardcode_automatic=$hardcode_automatic 20866 20867# Set to yes if linker adds runtime paths of dependent libraries 20868# to runtime path list. 20869inherit_rpath=$inherit_rpath 20870 20871# Whether libtool must link a program against all its dependency libraries. 20872link_all_deplibs=$link_all_deplibs 20873 20874# Set to "yes" if exported symbols are required. 20875always_export_symbols=$always_export_symbols 20876 20877# The commands to list exported symbols. 20878export_symbols_cmds=$lt_export_symbols_cmds 20879 20880# Symbols that should not be listed in the preloaded symbols. 20881exclude_expsyms=$lt_exclude_expsyms 20882 20883# Symbols that must always be exported. 20884include_expsyms=$lt_include_expsyms 20885 20886# Commands necessary for linking programs (against libraries) with templates. 20887prelink_cmds=$lt_prelink_cmds 20888 20889# Commands necessary for finishing linking programs. 20890postlink_cmds=$lt_postlink_cmds 20891 20892# Specify filename containing input files. 20893file_list_spec=$lt_file_list_spec 20894 20895# How to hardcode a shared library path into an executable. 20896hardcode_action=$hardcode_action 20897 20898# The directories searched by this compiler when creating a shared library. 20899compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20900 20901# Dependencies to place before and after the objects being linked to 20902# create a shared library. 20903predep_objects=$lt_predep_objects 20904postdep_objects=$lt_postdep_objects 20905predeps=$lt_predeps 20906postdeps=$lt_postdeps 20907 20908# The library search path used internally by the compiler when linking 20909# a shared library. 20910compiler_lib_search_path=$lt_compiler_lib_search_path 20911 20912# ### END LIBTOOL CONFIG 20913 20914_LT_EOF 20915 20916 cat <<'_LT_EOF' >> "$cfgfile" 20917 20918# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20919 20920# func_munge_path_list VARIABLE PATH 20921# ----------------------------------- 20922# VARIABLE is name of variable containing _space_ separated list of 20923# directories to be munged by the contents of PATH, which is string 20924# having a format: 20925# "DIR[:DIR]:" 20926# string "DIR[ DIR]" will be prepended to VARIABLE 20927# ":DIR[:DIR]" 20928# string "DIR[ DIR]" will be appended to VARIABLE 20929# "DIRP[:DIRP]::[DIRA:]DIRA" 20930# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20931# "DIRA[ DIRA]" will be appended to VARIABLE 20932# "DIR[:DIR]" 20933# VARIABLE will be replaced by "DIR[ DIR]" 20934func_munge_path_list () 20935{ 20936 case x$2 in 20937 x) 20938 ;; 20939 *:) 20940 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20941 ;; 20942 x:*) 20943 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20944 ;; 20945 *::*) 20946 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20947 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20948 ;; 20949 *) 20950 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20951 ;; 20952 esac 20953} 20954 20955 20956# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20957func_cc_basename () 20958{ 20959 for cc_temp in $*""; do 20960 case $cc_temp in 20961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20963 \-*) ;; 20964 *) break;; 20965 esac 20966 done 20967 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20968} 20969 20970 20971# ### END FUNCTIONS SHARED WITH CONFIGURE 20972 20973_LT_EOF 20974 20975 case $host_os in 20976 aix3*) 20977 cat <<\_LT_EOF >> "$cfgfile" 20978# AIX sometimes has problems with the GCC collect2 program. For some 20979# reason, if we set the COLLECT_NAMES environment variable, the problems 20980# vanish in a puff of smoke. 20981if test set != "${COLLECT_NAMES+set}"; then 20982 COLLECT_NAMES= 20983 export COLLECT_NAMES 20984fi 20985_LT_EOF 20986 ;; 20987 esac 20988 20989 20990ltmain=$ac_aux_dir/ltmain.sh 20991 20992 20993 # We use sed instead of cat because bash on DJGPP gets confused if 20994 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20995 # text mode, it properly converts lines to CR/LF. This bash problem 20996 # is reportedly fixed, but why not run on old versions too? 20997 sed '$q' "$ltmain" >> "$cfgfile" \ 20998 || (rm -f "$cfgfile"; exit 1) 20999 21000 mv -f "$cfgfile" "$ofile" || 21001 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21002 chmod +x "$ofile" 21003 21004 21005 cat <<_LT_EOF >> "$ofile" 21006 21007# ### BEGIN LIBTOOL TAG CONFIG: CXX 21008 21009# The linker used to build libraries. 21010LD=$lt_LD_CXX 21011 21012# How to create reloadable object files. 21013reload_flag=$lt_reload_flag_CXX 21014reload_cmds=$lt_reload_cmds_CXX 21015 21016# Commands used to build an old-style archive. 21017old_archive_cmds=$lt_old_archive_cmds_CXX 21018 21019# A language specific compiler. 21020CC=$lt_compiler_CXX 21021 21022# Is the compiler the GNU compiler? 21023with_gcc=$GCC_CXX 21024 21025# Compiler flag to turn off builtin functions. 21026no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 21027 21028# Additional compiler flags for building library objects. 21029pic_flag=$lt_lt_prog_compiler_pic_CXX 21030 21031# How to pass a linker flag through the compiler. 21032wl=$lt_lt_prog_compiler_wl_CXX 21033 21034# Compiler flag to prevent dynamic linking. 21035link_static_flag=$lt_lt_prog_compiler_static_CXX 21036 21037# Does compiler simultaneously support -c and -o options? 21038compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 21039 21040# Whether or not to add -lc for building shared libraries. 21041build_libtool_need_lc=$archive_cmds_need_lc_CXX 21042 21043# Whether or not to disallow shared libs when runtime libs are static. 21044allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21045 21046# Compiler flag to allow reflexive dlopens. 21047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21048 21049# Compiler flag to generate shared objects directly from archives. 21050whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21051 21052# Whether the compiler copes with passing no objects directly. 21053compiler_needs_object=$lt_compiler_needs_object_CXX 21054 21055# Create an old-style archive from a shared archive. 21056old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21057 21058# Create a temporary old-style archive to link instead of a shared archive. 21059old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21060 21061# Commands used to build a shared archive. 21062archive_cmds=$lt_archive_cmds_CXX 21063archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21064 21065# Commands used to build a loadable module if different from building 21066# a shared archive. 21067module_cmds=$lt_module_cmds_CXX 21068module_expsym_cmds=$lt_module_expsym_cmds_CXX 21069 21070# Whether we are building with GNU ld or not. 21071with_gnu_ld=$lt_with_gnu_ld_CXX 21072 21073# Flag that allows shared libraries with undefined symbols to be built. 21074allow_undefined_flag=$lt_allow_undefined_flag_CXX 21075 21076# Flag that enforces no undefined symbols. 21077no_undefined_flag=$lt_no_undefined_flag_CXX 21078 21079# Flag to hardcode \$libdir into a binary during linking. 21080# This must work even if \$libdir does not exist 21081hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21082 21083# Whether we need a single "-rpath" flag with a separated argument. 21084hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21085 21086# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21087# DIR into the resulting binary. 21088hardcode_direct=$hardcode_direct_CXX 21089 21090# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21091# DIR into the resulting binary and the resulting library dependency is 21092# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21093# library is relocated. 21094hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21095 21096# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21097# into the resulting binary. 21098hardcode_minus_L=$hardcode_minus_L_CXX 21099 21100# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21101# into the resulting binary. 21102hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21103 21104# Set to "yes" if building a shared library automatically hardcodes DIR 21105# into the library and all subsequent libraries and executables linked 21106# against it. 21107hardcode_automatic=$hardcode_automatic_CXX 21108 21109# Set to yes if linker adds runtime paths of dependent libraries 21110# to runtime path list. 21111inherit_rpath=$inherit_rpath_CXX 21112 21113# Whether libtool must link a program against all its dependency libraries. 21114link_all_deplibs=$link_all_deplibs_CXX 21115 21116# Set to "yes" if exported symbols are required. 21117always_export_symbols=$always_export_symbols_CXX 21118 21119# The commands to list exported symbols. 21120export_symbols_cmds=$lt_export_symbols_cmds_CXX 21121 21122# Symbols that should not be listed in the preloaded symbols. 21123exclude_expsyms=$lt_exclude_expsyms_CXX 21124 21125# Symbols that must always be exported. 21126include_expsyms=$lt_include_expsyms_CXX 21127 21128# Commands necessary for linking programs (against libraries) with templates. 21129prelink_cmds=$lt_prelink_cmds_CXX 21130 21131# Commands necessary for finishing linking programs. 21132postlink_cmds=$lt_postlink_cmds_CXX 21133 21134# Specify filename containing input files. 21135file_list_spec=$lt_file_list_spec_CXX 21136 21137# How to hardcode a shared library path into an executable. 21138hardcode_action=$hardcode_action_CXX 21139 21140# The directories searched by this compiler when creating a shared library. 21141compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21142 21143# Dependencies to place before and after the objects being linked to 21144# create a shared library. 21145predep_objects=$lt_predep_objects_CXX 21146postdep_objects=$lt_postdep_objects_CXX 21147predeps=$lt_predeps_CXX 21148postdeps=$lt_postdeps_CXX 21149 21150# The library search path used internally by the compiler when linking 21151# a shared library. 21152compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21153 21154# ### END LIBTOOL TAG CONFIG: CXX 21155_LT_EOF 21156 21157 ;; 21158 21159 esac 21160done # for ac_tag 21161 21162 21163as_fn_exit 0 21164_ACEOF 21165ac_clean_files=$ac_clean_files_save 21166 21167test $ac_write_fail = 0 || 21168 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21169 21170 21171# configure is writing to config.log, and then calls config.status. 21172# config.status does its own redirection, appending to config.log. 21173# Unfortunately, on DOS this fails, as config.log is still kept open 21174# by configure, so config.status won't be able to write to it; its 21175# output is simply discarded. So we exec the FD to /dev/null, 21176# effectively closing config.log, so it can be properly (re)opened and 21177# appended to by config.status. When coming back to configure, we 21178# need to make the FD available again. 21179if test "$no_create" != yes; then 21180 ac_cs_success=: 21181 ac_config_status_args= 21182 test "$silent" = yes && 21183 ac_config_status_args="$ac_config_status_args --quiet" 21184 exec 5>/dev/null 21185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21186 exec 5>>config.log 21187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21188 # would make configure fail if this is the last instruction. 21189 $ac_cs_success || as_fn_exit 1 21190fi 21191 21192# 21193# CONFIG_SUBDIRS section. 21194# 21195if test "$no_recursion" != yes; then 21196 21197 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 21198 # so they do not pile up. 21199 ac_sub_configure_args= 21200 ac_prev= 21201 eval "set x $ac_configure_args" 21202 shift 21203 for ac_arg 21204 do 21205 if test -n "$ac_prev"; then 21206 ac_prev= 21207 continue 21208 fi 21209 case $ac_arg in 21210 -cache-file | --cache-file | --cache-fil | --cache-fi \ 21211 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 21212 ac_prev=cache_file ;; 21213 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 21214 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 21215 | --c=*) 21216 ;; 21217 --config-cache | -C) 21218 ;; 21219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 21220 ac_prev=srcdir ;; 21221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 21222 ;; 21223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 21224 ac_prev=prefix ;; 21225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 21226 ;; 21227 --disable-option-checking) 21228 ;; 21229 *) 21230 case $ac_arg in 21231 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21232 esac 21233 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 21234 esac 21235 done 21236 21237 # Always prepend --prefix to ensure using the same prefix 21238 # in subdir configurations. 21239 ac_arg="--prefix=$prefix" 21240 case $ac_arg in 21241 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21242 esac 21243 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 21244 21245 # Pass --silent 21246 if test "$silent" = yes; then 21247 ac_sub_configure_args="--silent $ac_sub_configure_args" 21248 fi 21249 21250 # Always prepend --disable-option-checking to silence warnings, since 21251 # different subdirs can have different --enable and --with options. 21252 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 21253 21254 ac_popdir=`pwd` 21255 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 21256 21257 # Do not complain, so a configure script can configure whichever 21258 # parts of a large source tree are present. 21259 test -d "$srcdir/$ac_dir" || continue 21260 21261 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 21262 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 21263 $as_echo "$ac_msg" >&6 21264 as_dir="$ac_dir"; as_fn_mkdir_p 21265 ac_builddir=. 21266 21267case "$ac_dir" in 21268.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21269*) 21270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21271 # A ".." for each directory in $ac_dir_suffix. 21272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21273 case $ac_top_builddir_sub in 21274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21276 esac ;; 21277esac 21278ac_abs_top_builddir=$ac_pwd 21279ac_abs_builddir=$ac_pwd$ac_dir_suffix 21280# for backward compatibility: 21281ac_top_builddir=$ac_top_build_prefix 21282 21283case $srcdir in 21284 .) # We are building in place. 21285 ac_srcdir=. 21286 ac_top_srcdir=$ac_top_builddir_sub 21287 ac_abs_top_srcdir=$ac_pwd ;; 21288 [\\/]* | ?:[\\/]* ) # Absolute name. 21289 ac_srcdir=$srcdir$ac_dir_suffix; 21290 ac_top_srcdir=$srcdir 21291 ac_abs_top_srcdir=$srcdir ;; 21292 *) # Relative name. 21293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21294 ac_top_srcdir=$ac_top_build_prefix$srcdir 21295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21296esac 21297ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21298 21299 21300 cd "$ac_dir" 21301 21302 # Check for guested configure; otherwise get Cygnus style configure. 21303 if test -f "$ac_srcdir/configure.gnu"; then 21304 ac_sub_configure=$ac_srcdir/configure.gnu 21305 elif test -f "$ac_srcdir/configure"; then 21306 ac_sub_configure=$ac_srcdir/configure 21307 elif test -f "$ac_srcdir/configure.in"; then 21308 # This should be Cygnus configure. 21309 ac_sub_configure=$ac_aux_dir/configure 21310 else 21311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 21312$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 21313 ac_sub_configure= 21314 fi 21315 21316 # The recursion is here. 21317 if test -n "$ac_sub_configure"; then 21318 # Make the cache file name correct relative to the subdirectory. 21319 case $cache_file in 21320 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 21321 *) # Relative name. 21322 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 21323 esac 21324 21325 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 21326$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 21327 # The eval makes quoting arguments work. 21328 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 21329 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 21330 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 21331 fi 21332 21333 cd "$ac_popdir" 21334 done 21335fi 21336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21339fi 21340 21341