1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libsemigroups 1.0.5. 4# 5# Report bugs to <jdm3@st-andrews.ac.uk>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: jdm3@st-andrews.ac.uk about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libsemigroups' 592PACKAGE_TARNAME='libsemigroups' 593PACKAGE_VERSION='1.0.5' 594PACKAGE_STRING='libsemigroups 1.0.5' 595PACKAGE_BUGREPORT='jdm3@st-andrews.ac.uk' 596PACKAGE_URL='' 597 598ac_unique_file="include/libsemigroups.hpp" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638FMT_LIBS 639FMT_CFLAGS 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643HPCOMBI_CONSTEXPR_FUN_ARGS_FALSE 644HPCOMBI_CONSTEXPR_FUN_ARGS_TRUE 645LIBSEMIGROUPS_HPCOMBI_FALSE 646LIBSEMIGROUPS_HPCOMBI_TRUE 647CODE_COVERAGE_RULES 648CODE_COVERAGE_LDFLAGS 649CODE_COVERAGE_LIBS 650CODE_COVERAGE_CXXFLAGS 651CODE_COVERAGE_CFLAGS 652CODE_COVERAGE_CPPFLAGS 653GENHTML 654LCOV 655GCOV 656CODE_COVERAGE_ENABLED 657CODE_COVERAGE_ENABLED_FALSE 658CODE_COVERAGE_ENABLED_TRUE 659WARNING_CXXFLAGS 660LIBSEMIGROUPS_DEBUG_FALSE 661LIBSEMIGROUPS_DEBUG_TRUE 662LIBOBJS 663CXXCPP 664LT_SYS_LIBRARY_PATH 665OTOOL64 666OTOOL 667LIPO 668NMEDIT 669DSYMUTIL 670MANIFEST_TOOL 671RANLIB 672DLLTOOL 673OBJDUMP 674NM 675ac_ct_DUMPBIN 676DUMPBIN 677LD 678FGREP 679LIBTOOL 680LN_S 681ac_aux_dir 682MAINT 683MAINTAINER_MODE_FALSE 684MAINTAINER_MODE_TRUE 685PTHREAD_CFLAGS 686PTHREAD_LIBS 687PTHREAD_CC 688ax_pthread_config 689EGREP 690GREP 691CPP 692SED 693host_os 694host_vendor 695host_cpu 696host 697build_os 698build_vendor 699build_cpu 700build 701HAVE_CXX11 702am__fastdepCXX_FALSE 703am__fastdepCXX_TRUE 704CXXDEPMODE 705ac_ct_CXX 706CXXFLAGS 707CXX 708am__fastdepCC_FALSE 709am__fastdepCC_TRUE 710CCDEPMODE 711am__nodep 712AMDEPBACKSLASH 713AMDEP_FALSE 714AMDEP_TRUE 715am__include 716DEPDIR 717OBJEXT 718EXEEXT 719ac_ct_CC 720CPPFLAGS 721LDFLAGS 722CFLAGS 723CC 724ac_ct_AR 725AR 726AM_BACKSLASH 727AM_DEFAULT_VERBOSITY 728AM_DEFAULT_V 729AM_V 730am__untar 731am__tar 732AMTAR 733am__leading_dot 734SET_MAKE 735AWK 736mkdir_p 737MKDIR_P 738INSTALL_STRIP_PROGRAM 739STRIP 740install_sh 741MAKEINFO 742AUTOHEADER 743AUTOMAKE 744AUTOCONF 745ACLOCAL 746VERSION 747PACKAGE 748CYGPATH_W 749am__isrc 750INSTALL_DATA 751INSTALL_SCRIPT 752INSTALL_PROGRAM 753target_alias 754host_alias 755build_alias 756LIBS 757ECHO_T 758ECHO_N 759ECHO_C 760DEFS 761mandir 762localedir 763libdir 764psdir 765pdfdir 766dvidir 767htmldir 768infodir 769docdir 770oldincludedir 771includedir 772localstatedir 773sharedstatedir 774sysconfdir 775datadir 776datarootdir 777libexecdir 778sbindir 779bindir 780program_transform_name 781prefix 782exec_prefix 783PACKAGE_URL 784PACKAGE_BUGREPORT 785PACKAGE_STRING 786PACKAGE_VERSION 787PACKAGE_TARNAME 788PACKAGE_NAME 789PATH_SEPARATOR 790SHELL 791am__quote' 792ac_subst_files='' 793ac_user_opts=' 794enable_option_checking 795enable_silent_rules 796enable_dependency_tracking 797enable_maintainer_mode 798enable_shared 799enable_static 800with_pic 801enable_fast_install 802with_aix_soname 803with_gnu_ld 804with_sysroot 805enable_libtool_lock 806enable_debug 807enable_verbose 808enable_compile_warnings 809with_gcov 810enable_code_coverage 811enable_hpcombi 812with_external_fmt 813' 814 ac_precious_vars='build_alias 815host_alias 816target_alias 817CC 818CFLAGS 819LDFLAGS 820LIBS 821CPPFLAGS 822CXX 823CXXFLAGS 824CCC 825CPP 826LT_SYS_LIBRARY_PATH 827CXXCPP 828PKG_CONFIG 829PKG_CONFIG_PATH 830PKG_CONFIG_LIBDIR 831FMT_CFLAGS 832FMT_LIBS' 833 834 835# Initialize some variables set by options. 836ac_init_help= 837ac_init_version=false 838ac_unrecognized_opts= 839ac_unrecognized_sep= 840# The variables have the same names as the options, with 841# dashes changed to underlines. 842cache_file=/dev/null 843exec_prefix=NONE 844no_create= 845no_recursion= 846prefix=NONE 847program_prefix=NONE 848program_suffix=NONE 849program_transform_name=s,x,x, 850silent= 851site= 852srcdir= 853verbose= 854x_includes=NONE 855x_libraries=NONE 856 857# Installation directory options. 858# These are left unexpanded so users can "make install exec_prefix=/foo" 859# and all the variables that are supposed to be based on exec_prefix 860# by default will actually change. 861# Use braces instead of parens because sh, perl, etc. also accept them. 862# (The list follows the same order as the GNU Coding Standards.) 863bindir='${exec_prefix}/bin' 864sbindir='${exec_prefix}/sbin' 865libexecdir='${exec_prefix}/libexec' 866datarootdir='${prefix}/share' 867datadir='${datarootdir}' 868sysconfdir='${prefix}/etc' 869sharedstatedir='${prefix}/com' 870localstatedir='${prefix}/var' 871includedir='${prefix}/include' 872oldincludedir='/usr/include' 873docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 874infodir='${datarootdir}/info' 875htmldir='${docdir}' 876dvidir='${docdir}' 877pdfdir='${docdir}' 878psdir='${docdir}' 879libdir='${exec_prefix}/lib' 880localedir='${datarootdir}/locale' 881mandir='${datarootdir}/man' 882 883ac_prev= 884ac_dashdash= 885for ac_option 886do 887 # If the previous option needs an argument, assign it. 888 if test -n "$ac_prev"; then 889 eval $ac_prev=\$ac_option 890 ac_prev= 891 continue 892 fi 893 894 case $ac_option in 895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 896 *=) ac_optarg= ;; 897 *) ac_optarg=yes ;; 898 esac 899 900 # Accept the important Cygnus configure options, so we can diagnose typos. 901 902 case $ac_dashdash$ac_option in 903 --) 904 ac_dashdash=yes ;; 905 906 -bindir | --bindir | --bindi | --bind | --bin | --bi) 907 ac_prev=bindir ;; 908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 909 bindir=$ac_optarg ;; 910 911 -build | --build | --buil | --bui | --bu) 912 ac_prev=build_alias ;; 913 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 914 build_alias=$ac_optarg ;; 915 916 -cache-file | --cache-file | --cache-fil | --cache-fi \ 917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 918 ac_prev=cache_file ;; 919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 921 cache_file=$ac_optarg ;; 922 923 --config-cache | -C) 924 cache_file=config.cache ;; 925 926 -datadir | --datadir | --datadi | --datad) 927 ac_prev=datadir ;; 928 -datadir=* | --datadir=* | --datadi=* | --datad=*) 929 datadir=$ac_optarg ;; 930 931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 932 | --dataroo | --dataro | --datar) 933 ac_prev=datarootdir ;; 934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 936 datarootdir=$ac_optarg ;; 937 938 -disable-* | --disable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error $? "invalid feature name: $ac_useropt" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=no ;; 953 954 -docdir | --docdir | --docdi | --doc | --do) 955 ac_prev=docdir ;; 956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 957 docdir=$ac_optarg ;; 958 959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 960 ac_prev=dvidir ;; 961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 962 dvidir=$ac_optarg ;; 963 964 -enable-* | --enable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error $? "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=\$ac_optarg ;; 979 980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 982 | --exec | --exe | --ex) 983 ac_prev=exec_prefix ;; 984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 986 | --exec=* | --exe=* | --ex=*) 987 exec_prefix=$ac_optarg ;; 988 989 -gas | --gas | --ga | --g) 990 # Obsolete; use --with-gas. 991 with_gas=yes ;; 992 993 -help | --help | --hel | --he | -h) 994 ac_init_help=long ;; 995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 996 ac_init_help=recursive ;; 997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 998 ac_init_help=short ;; 999 1000 -host | --host | --hos | --ho) 1001 ac_prev=host_alias ;; 1002 -host=* | --host=* | --hos=* | --ho=*) 1003 host_alias=$ac_optarg ;; 1004 1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1006 ac_prev=htmldir ;; 1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1008 | --ht=*) 1009 htmldir=$ac_optarg ;; 1010 1011 -includedir | --includedir | --includedi | --included | --include \ 1012 | --includ | --inclu | --incl | --inc) 1013 ac_prev=includedir ;; 1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1015 | --includ=* | --inclu=* | --incl=* | --inc=*) 1016 includedir=$ac_optarg ;; 1017 1018 -infodir | --infodir | --infodi | --infod | --info | --inf) 1019 ac_prev=infodir ;; 1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1021 infodir=$ac_optarg ;; 1022 1023 -libdir | --libdir | --libdi | --libd) 1024 ac_prev=libdir ;; 1025 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1026 libdir=$ac_optarg ;; 1027 1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1029 | --libexe | --libex | --libe) 1030 ac_prev=libexecdir ;; 1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1032 | --libexe=* | --libex=* | --libe=*) 1033 libexecdir=$ac_optarg ;; 1034 1035 -localedir | --localedir | --localedi | --localed | --locale) 1036 ac_prev=localedir ;; 1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1038 localedir=$ac_optarg ;; 1039 1040 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1041 | --localstate | --localstat | --localsta | --localst | --locals) 1042 ac_prev=localstatedir ;; 1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1045 localstatedir=$ac_optarg ;; 1046 1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1048 ac_prev=mandir ;; 1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1050 mandir=$ac_optarg ;; 1051 1052 -nfp | --nfp | --nf) 1053 # Obsolete; use --without-fp. 1054 with_fp=no ;; 1055 1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1057 | --no-cr | --no-c | -n) 1058 no_create=yes ;; 1059 1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1062 no_recursion=yes ;; 1063 1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1066 | --oldin | --oldi | --old | --ol | --o) 1067 ac_prev=oldincludedir ;; 1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1071 oldincludedir=$ac_optarg ;; 1072 1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1074 ac_prev=prefix ;; 1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1076 prefix=$ac_optarg ;; 1077 1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1079 | --program-pre | --program-pr | --program-p) 1080 ac_prev=program_prefix ;; 1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1083 program_prefix=$ac_optarg ;; 1084 1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1086 | --program-suf | --program-su | --program-s) 1087 ac_prev=program_suffix ;; 1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1090 program_suffix=$ac_optarg ;; 1091 1092 -program-transform-name | --program-transform-name \ 1093 | --program-transform-nam | --program-transform-na \ 1094 | --program-transform-n | --program-transform- \ 1095 | --program-transform | --program-transfor \ 1096 | --program-transfo | --program-transf \ 1097 | --program-trans | --program-tran \ 1098 | --progr-tra | --program-tr | --program-t) 1099 ac_prev=program_transform_name ;; 1100 -program-transform-name=* | --program-transform-name=* \ 1101 | --program-transform-nam=* | --program-transform-na=* \ 1102 | --program-transform-n=* | --program-transform-=* \ 1103 | --program-transform=* | --program-transfor=* \ 1104 | --program-transfo=* | --program-transf=* \ 1105 | --program-trans=* | --program-tran=* \ 1106 | --progr-tra=* | --program-tr=* | --program-t=*) 1107 program_transform_name=$ac_optarg ;; 1108 1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1110 ac_prev=pdfdir ;; 1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1112 pdfdir=$ac_optarg ;; 1113 1114 -psdir | --psdir | --psdi | --psd | --ps) 1115 ac_prev=psdir ;; 1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1117 psdir=$ac_optarg ;; 1118 1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1120 | -silent | --silent | --silen | --sile | --sil) 1121 silent=yes ;; 1122 1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1124 ac_prev=sbindir ;; 1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1126 | --sbi=* | --sb=*) 1127 sbindir=$ac_optarg ;; 1128 1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1131 | --sharedst | --shareds | --shared | --share | --shar \ 1132 | --sha | --sh) 1133 ac_prev=sharedstatedir ;; 1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1137 | --sha=* | --sh=*) 1138 sharedstatedir=$ac_optarg ;; 1139 1140 -site | --site | --sit) 1141 ac_prev=site ;; 1142 -site=* | --site=* | --sit=*) 1143 site=$ac_optarg ;; 1144 1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1146 ac_prev=srcdir ;; 1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1148 srcdir=$ac_optarg ;; 1149 1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1151 | --syscon | --sysco | --sysc | --sys | --sy) 1152 ac_prev=sysconfdir ;; 1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1155 sysconfdir=$ac_optarg ;; 1156 1157 -target | --target | --targe | --targ | --tar | --ta | --t) 1158 ac_prev=target_alias ;; 1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1160 target_alias=$ac_optarg ;; 1161 1162 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1163 verbose=yes ;; 1164 1165 -version | --version | --versio | --versi | --vers | -V) 1166 ac_init_version=: ;; 1167 1168 -with-* | --with-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid package name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=\$ac_optarg ;; 1183 1184 -without-* | --without-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=no ;; 1199 1200 --x) 1201 # Obsolete; use --with-x. 1202 with_x=yes ;; 1203 1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1205 | --x-incl | --x-inc | --x-in | --x-i) 1206 ac_prev=x_includes ;; 1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1209 x_includes=$ac_optarg ;; 1210 1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1213 ac_prev=x_libraries ;; 1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1216 x_libraries=$ac_optarg ;; 1217 1218 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1219Try \`$0 --help' for more information" 1220 ;; 1221 1222 *=*) 1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1224 # Reject names that are not valid shell variable names. 1225 case $ac_envvar in #( 1226 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1228 esac 1229 eval $ac_envvar=\$ac_optarg 1230 export $ac_envvar ;; 1231 1232 *) 1233 # FIXME: should be removed in autoconf 3.0. 1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1238 ;; 1239 1240 esac 1241done 1242 1243if test -n "$ac_prev"; then 1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1245 as_fn_error $? "missing argument to $ac_option" 1246fi 1247 1248if test -n "$ac_unrecognized_opts"; then 1249 case $enable_option_checking in 1250 no) ;; 1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1253 esac 1254fi 1255 1256# Check all directory arguments for consistency. 1257for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1258 datadir sysconfdir sharedstatedir localstatedir includedir \ 1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1260 libdir localedir mandir 1261do 1262 eval ac_val=\$$ac_var 1263 # Remove trailing slashes. 1264 case $ac_val in 1265 */ ) 1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1267 eval $ac_var=\$ac_val;; 1268 esac 1269 # Be sure to have absolute directory names. 1270 case $ac_val in 1271 [\\/$]* | ?:[\\/]* ) continue;; 1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1273 esac 1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1275done 1276 1277# There might be people who depend on the old broken behavior: `$host' 1278# used to hold the argument of --host etc. 1279# FIXME: To remove some day. 1280build=$build_alias 1281host=$host_alias 1282target=$target_alias 1283 1284# FIXME: To remove some day. 1285if test "x$host_alias" != x; then 1286 if test "x$build_alias" = x; then 1287 cross_compiling=maybe 1288 elif test "x$build_alias" != "x$host_alias"; then 1289 cross_compiling=yes 1290 fi 1291fi 1292 1293ac_tool_prefix= 1294test -n "$host_alias" && ac_tool_prefix=$host_alias- 1295 1296test "$silent" = yes && exec 6>/dev/null 1297 1298 1299ac_pwd=`pwd` && test -n "$ac_pwd" && 1300ac_ls_di=`ls -di .` && 1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1302 as_fn_error $? "working directory cannot be determined" 1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1304 as_fn_error $? "pwd does not report name of working directory" 1305 1306 1307# Find the source files, if location was not specified. 1308if test -z "$srcdir"; then 1309 ac_srcdir_defaulted=yes 1310 # Try the directory containing this script, then the parent directory. 1311 ac_confdir=`$as_dirname -- "$as_myself" || 1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1313 X"$as_myself" : 'X\(//\)[^/]' \| \ 1314 X"$as_myself" : 'X\(//\)$' \| \ 1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1316$as_echo X"$as_myself" | 1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)[^/].*/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\).*/{ 1330 s//\1/ 1331 q 1332 } 1333 s/.*/./; q'` 1334 srcdir=$ac_confdir 1335 if test ! -r "$srcdir/$ac_unique_file"; then 1336 srcdir=.. 1337 fi 1338else 1339 ac_srcdir_defaulted=no 1340fi 1341if test ! -r "$srcdir/$ac_unique_file"; then 1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1344fi 1345ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1346ac_abs_confdir=`( 1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1348 pwd)` 1349# When building in place, set srcdir=. 1350if test "$ac_abs_confdir" = "$ac_pwd"; then 1351 srcdir=. 1352fi 1353# Remove unnecessary trailing slashes from srcdir. 1354# Double slashes in file names in object file debugging info 1355# mess up M-x gdb in Emacs. 1356case $srcdir in 1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1358esac 1359for ac_var in $ac_precious_vars; do 1360 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1361 eval ac_env_${ac_var}_value=\$${ac_var} 1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1364done 1365 1366# 1367# Report the --help message. 1368# 1369if test "$ac_init_help" = "long"; then 1370 # Omit some internal or obsolete options to make the list less imposing. 1371 # This message is too long to be a string in the A/UX 3.1 sh. 1372 cat <<_ACEOF 1373\`configure' configures libsemigroups 1.0.5 to adapt to many kinds of systems. 1374 1375Usage: $0 [OPTION]... [VAR=VALUE]... 1376 1377To assign environment variables (e.g., CC, CFLAGS...), specify them as 1378VAR=VALUE. See below for descriptions of some of the useful variables. 1379 1380Defaults for the options are specified in brackets. 1381 1382Configuration: 1383 -h, --help display this help and exit 1384 --help=short display options specific to this package 1385 --help=recursive display the short help of all the included packages 1386 -V, --version display version information and exit 1387 -q, --quiet, --silent do not print \`checking ...' messages 1388 --cache-file=FILE cache test results in FILE [disabled] 1389 -C, --config-cache alias for \`--cache-file=config.cache' 1390 -n, --no-create do not create output files 1391 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1392 1393Installation directories: 1394 --prefix=PREFIX install architecture-independent files in PREFIX 1395 [$ac_default_prefix] 1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1397 [PREFIX] 1398 1399By default, \`make install' will install all the files in 1400\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1401an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1402for instance \`--prefix=\$HOME'. 1403 1404For better control, use the options below. 1405 1406Fine tuning of the installation directories: 1407 --bindir=DIR user executables [EPREFIX/bin] 1408 --sbindir=DIR system admin executables [EPREFIX/sbin] 1409 --libexecdir=DIR program executables [EPREFIX/libexec] 1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1413 --libdir=DIR object code libraries [EPREFIX/lib] 1414 --includedir=DIR C header files [PREFIX/include] 1415 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1418 --infodir=DIR info documentation [DATAROOTDIR/info] 1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1420 --mandir=DIR man documentation [DATAROOTDIR/man] 1421 --docdir=DIR documentation root [DATAROOTDIR/doc/libsemigroups] 1422 --htmldir=DIR html documentation [DOCDIR] 1423 --dvidir=DIR dvi documentation [DOCDIR] 1424 --pdfdir=DIR pdf documentation [DOCDIR] 1425 --psdir=DIR ps documentation [DOCDIR] 1426_ACEOF 1427 1428 cat <<\_ACEOF 1429 1430Program names: 1431 --program-prefix=PREFIX prepend PREFIX to installed program names 1432 --program-suffix=SUFFIX append SUFFIX to installed program names 1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1434 1435System types: 1436 --build=BUILD configure for building on BUILD [guessed] 1437 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1438_ACEOF 1439fi 1440 1441if test -n "$ac_init_help"; then 1442 case $ac_init_help in 1443 short | recursive ) echo "Configuration of libsemigroups 1.0.5:";; 1444 esac 1445 cat <<\_ACEOF 1446 1447Optional Features: 1448 --disable-option-checking ignore unrecognized --enable/--with options 1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1451 --enable-silent-rules less verbose build output (undo: "make V=1") 1452 --disable-silent-rules verbose build output (undo: "make V=0") 1453 --enable-dependency-tracking 1454 do not reject slow dependency extractors 1455 --disable-dependency-tracking 1456 speeds up one-time build 1457 --enable-maintainer-mode 1458 enable make rules and dependencies not useful (and 1459 sometimes confusing) to the casual installer 1460 --enable-shared[=PKGS] build shared libraries [default=yes] 1461 --enable-static[=PKGS] build static libraries [default=yes] 1462 --enable-fast-install[=PKGS] 1463 optimize for fast installation [default=yes] 1464 --disable-libtool-lock avoid locking (might break parallel builds) 1465 --enable-debug enable debug mode 1466 --enable-verbose enable verbose mode 1467 --enable-compile-warnings 1468 enable compiler warnings 1469 --enable-code-coverage Whether to enable code coverage support 1470 --enable-hpcombi enable HPCombi 1471 1472Optional Packages: 1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1476 both] 1477 --with-aix-soname=aix|svr4|both 1478 shared library versioning (aka "SONAME") variant to 1479 provide on AIX, [default=aix]. 1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1482 compiler's sysroot if not specified). 1483 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov). 1484 --with-external-fmt use the external fmt 1485 1486Some influential environment variables: 1487 CC C compiler command 1488 CFLAGS C compiler flags 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1490 nonstandard directory <lib dir> 1491 LIBS libraries to pass to the linker, e.g. -l<library> 1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1493 you have headers in a nonstandard directory <include dir> 1494 CXX C++ compiler command 1495 CXXFLAGS C++ compiler flags 1496 CPP C preprocessor 1497 LT_SYS_LIBRARY_PATH 1498 User-defined run-time library search path. 1499 CXXCPP C++ preprocessor 1500 PKG_CONFIG path to pkg-config utility 1501 PKG_CONFIG_PATH 1502 directories to add to pkg-config's search path 1503 PKG_CONFIG_LIBDIR 1504 path overriding pkg-config's built-in search path 1505 FMT_CFLAGS C compiler flags for FMT, overriding pkg-config 1506 FMT_LIBS linker flags for FMT, overriding pkg-config 1507 1508Use these variables to override the choices made by `configure' or to help 1509it to find libraries and programs with nonstandard names/locations. 1510 1511Report bugs to <jdm3@st-andrews.ac.uk>. 1512_ACEOF 1513ac_status=$? 1514fi 1515 1516if test "$ac_init_help" = "recursive"; then 1517 # If there are subdirs, report their specific --help. 1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1519 test -d "$ac_dir" || 1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1521 continue 1522 ac_builddir=. 1523 1524case "$ac_dir" in 1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526*) 1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1528 # A ".." for each directory in $ac_dir_suffix. 1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1530 case $ac_top_builddir_sub in 1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1533 esac ;; 1534esac 1535ac_abs_top_builddir=$ac_pwd 1536ac_abs_builddir=$ac_pwd$ac_dir_suffix 1537# for backward compatibility: 1538ac_top_builddir=$ac_top_build_prefix 1539 1540case $srcdir in 1541 .) # We are building in place. 1542 ac_srcdir=. 1543 ac_top_srcdir=$ac_top_builddir_sub 1544 ac_abs_top_srcdir=$ac_pwd ;; 1545 [\\/]* | ?:[\\/]* ) # Absolute name. 1546 ac_srcdir=$srcdir$ac_dir_suffix; 1547 ac_top_srcdir=$srcdir 1548 ac_abs_top_srcdir=$srcdir ;; 1549 *) # Relative name. 1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1551 ac_top_srcdir=$ac_top_build_prefix$srcdir 1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1553esac 1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1555 1556 cd "$ac_dir" || { ac_status=$?; continue; } 1557 # Check for guested configure. 1558 if test -f "$ac_srcdir/configure.gnu"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1561 elif test -f "$ac_srcdir/configure"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure" --help=recursive 1564 else 1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1566 fi || ac_status=$? 1567 cd "$ac_pwd" || { ac_status=$?; break; } 1568 done 1569fi 1570 1571test -n "$ac_init_help" && exit $ac_status 1572if $ac_init_version; then 1573 cat <<\_ACEOF 1574libsemigroups configure 1.0.5 1575generated by GNU Autoconf 2.69 1576 1577Copyright (C) 2012 Free Software Foundation, Inc. 1578This configure script is free software; the Free Software Foundation 1579gives unlimited permission to copy, distribute and modify it. 1580_ACEOF 1581 exit 1582fi 1583 1584## ------------------------ ## 1585## Autoconf initialization. ## 1586## ------------------------ ## 1587 1588# ac_fn_c_try_compile LINENO 1589# -------------------------- 1590# Try to compile conftest.$ac_ext, and return whether this succeeded. 1591ac_fn_c_try_compile () 1592{ 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 rm -f conftest.$ac_objext 1595 if { { ac_try="$ac_compile" 1596case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601$as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_compile") 2>conftest.err 1603 ac_status=$? 1604 if test -s conftest.err; then 1605 grep -v '^ *+' conftest.err >conftest.er1 1606 cat conftest.er1 >&5 1607 mv -f conftest.er1 conftest.err 1608 fi 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1610 test $ac_status = 0; } && { 1611 test -z "$ac_c_werror_flag" || 1612 test ! -s conftest.err 1613 } && test -s conftest.$ac_objext; then : 1614 ac_retval=0 1615else 1616 $as_echo "$as_me: failed program was:" >&5 1617sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620fi 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 as_fn_set_status $ac_retval 1623 1624} # ac_fn_c_try_compile 1625 1626# ac_fn_cxx_try_compile LINENO 1627# ---------------------------- 1628# Try to compile conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_cxx_try_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext 1633 if { { ac_try="$ac_compile" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_compile") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_cxx_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest.$ac_objext; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662} # ac_fn_cxx_try_compile 1663 1664# ac_fn_c_try_link LINENO 1665# ----------------------- 1666# Try to link conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_link () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 rm -f conftest.$ac_objext conftest$ac_exeext 1671 if { { ac_try="$ac_link" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_link") 2>conftest.err 1679 ac_status=$? 1680 if test -s conftest.err; then 1681 grep -v '^ *+' conftest.err >conftest.er1 1682 cat conftest.er1 >&5 1683 mv -f conftest.er1 conftest.err 1684 fi 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } && { 1687 test -z "$ac_c_werror_flag" || 1688 test ! -s conftest.err 1689 } && test -s conftest$ac_exeext && { 1690 test "$cross_compiling" = yes || 1691 test -x conftest$ac_exeext 1692 }; then : 1693 ac_retval=0 1694else 1695 $as_echo "$as_me: failed program was:" >&5 1696sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=1 1699fi 1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1702 # interfere with the next link command; also delete a directory that is 1703 # left behind by Apple's compiler. We do this before executing the actions. 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_link 1709 1710# ac_fn_c_try_cpp LINENO 1711# ---------------------- 1712# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1713ac_fn_c_try_cpp () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_cpp conftest.$ac_ext" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } > conftest.i && { 1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 }; then : 1735 ac_retval=0 1736else 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=1 1741fi 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_cpp 1746 1747# ac_fn_cxx_try_link LINENO 1748# ------------------------- 1749# Try to link conftest.$ac_ext, and return whether this succeeded. 1750ac_fn_cxx_try_link () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 rm -f conftest.$ac_objext conftest$ac_exeext 1754 if { { ac_try="$ac_link" 1755case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_link") 2>conftest.err 1762 ac_status=$? 1763 if test -s conftest.err; then 1764 grep -v '^ *+' conftest.err >conftest.er1 1765 cat conftest.er1 >&5 1766 mv -f conftest.er1 conftest.err 1767 fi 1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1769 test $ac_status = 0; } && { 1770 test -z "$ac_cxx_werror_flag" || 1771 test ! -s conftest.err 1772 } && test -s conftest$ac_exeext && { 1773 test "$cross_compiling" = yes || 1774 test -x conftest$ac_exeext 1775 }; then : 1776 ac_retval=0 1777else 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1785 # interfere with the next link command; also delete a directory that is 1786 # left behind by Apple's compiler. We do this before executing the actions. 1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 as_fn_set_status $ac_retval 1790 1791} # ac_fn_cxx_try_link 1792 1793# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1794# ------------------------------------------------------- 1795# Tests whether HEADER exists and can be compiled using the include files in 1796# INCLUDES, setting the cache variable VAR accordingly. 1797ac_fn_c_check_header_compile () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1801$as_echo_n "checking for $2... " >&6; } 1802if eval \${$3+:} false; then : 1803 $as_echo_n "(cached) " >&6 1804else 1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807$4 1808#include <$2> 1809_ACEOF 1810if ac_fn_c_try_compile "$LINENO"; then : 1811 eval "$3=yes" 1812else 1813 eval "$3=no" 1814fi 1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 1822} # ac_fn_c_check_header_compile 1823 1824# ac_fn_c_try_run LINENO 1825# ---------------------- 1826# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1827# that executables *can* be run. 1828ac_fn_c_try_run () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 if { { ac_try="$ac_link" 1832case "(($ac_try" in 1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1834 *) ac_try_echo=$ac_try;; 1835esac 1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1837$as_echo "$ac_try_echo"; } >&5 1838 (eval "$ac_link") 2>&5 1839 ac_status=$? 1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1842 { { case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845esac 1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1847$as_echo "$ac_try_echo"; } >&5 1848 (eval "$ac_try") 2>&5 1849 ac_status=$? 1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1851 test $ac_status = 0; }; }; then : 1852 ac_retval=0 1853else 1854 $as_echo "$as_me: program exited with status $ac_status" >&5 1855 $as_echo "$as_me: failed program was:" >&5 1856sed 's/^/| /' conftest.$ac_ext >&5 1857 1858 ac_retval=$ac_status 1859fi 1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 as_fn_set_status $ac_retval 1863 1864} # ac_fn_c_try_run 1865 1866# ac_fn_c_check_func LINENO FUNC VAR 1867# ---------------------------------- 1868# Tests whether FUNC exists, setting the cache variable VAR accordingly 1869ac_fn_c_check_func () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873$as_echo_n "checking for $2... " >&6; } 1874if eval \${$3+:} false; then : 1875 $as_echo_n "(cached) " >&6 1876else 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1881#define $2 innocuous_$2 1882 1883/* System header to define __stub macros and hopefully few prototypes, 1884 which can conflict with char $2 (); below. 1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1886 <limits.h> exists even on freestanding compilers. */ 1887 1888#ifdef __STDC__ 1889# include <limits.h> 1890#else 1891# include <assert.h> 1892#endif 1893 1894#undef $2 1895 1896/* Override any GCC internal prototype to avoid an error. 1897 Use char because int might match the return type of a GCC 1898 builtin and then its argument prototype would still apply. */ 1899#ifdef __cplusplus 1900extern "C" 1901#endif 1902char $2 (); 1903/* The GNU C library defines this for functions which it implements 1904 to always fail with ENOSYS. Some functions are actually named 1905 something starting with __ and the normal name is an alias. */ 1906#if defined __stub_$2 || defined __stub___$2 1907choke me 1908#endif 1909 1910int 1911main () 1912{ 1913return $2 (); 1914 ; 1915 return 0; 1916} 1917_ACEOF 1918if ac_fn_c_try_link "$LINENO"; then : 1919 eval "$3=yes" 1920else 1921 eval "$3=no" 1922fi 1923rm -f core conftest.err conftest.$ac_objext \ 1924 conftest$ac_exeext conftest.$ac_ext 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_func 1932 1933# ac_fn_cxx_try_cpp LINENO 1934# ------------------------ 1935# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1936ac_fn_cxx_try_cpp () 1937{ 1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939 if { { ac_try="$ac_cpp conftest.$ac_ext" 1940case "(($ac_try" in 1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1942 *) ac_try_echo=$ac_try;; 1943esac 1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1945$as_echo "$ac_try_echo"; } >&5 1946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1947 ac_status=$? 1948 if test -s conftest.err; then 1949 grep -v '^ *+' conftest.err >conftest.er1 1950 cat conftest.er1 >&5 1951 mv -f conftest.er1 conftest.err 1952 fi 1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1954 test $ac_status = 0; } > conftest.i && { 1955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1956 test ! -s conftest.err 1957 }; then : 1958 ac_retval=0 1959else 1960 $as_echo "$as_me: failed program was:" >&5 1961sed 's/^/| /' conftest.$ac_ext >&5 1962 1963 ac_retval=1 1964fi 1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1966 as_fn_set_status $ac_retval 1967 1968} # ac_fn_cxx_try_cpp 1969 1970# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1971# --------------------------------------------------------- 1972# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1973# the include files in INCLUDES and setting the cache variable VAR 1974# accordingly. 1975ac_fn_cxx_check_header_mongrel () 1976{ 1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1978 if eval \${$3+:} false; then : 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1980$as_echo_n "checking for $2... " >&6; } 1981if eval \${$3+:} false; then : 1982 $as_echo_n "(cached) " >&6 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987else 1988 # Is the header compilable? 1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1990$as_echo_n "checking $2 usability... " >&6; } 1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993$4 1994#include <$2> 1995_ACEOF 1996if ac_fn_cxx_try_compile "$LINENO"; then : 1997 ac_header_compiler=yes 1998else 1999 ac_header_compiler=no 2000fi 2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2003$as_echo "$ac_header_compiler" >&6; } 2004 2005# Is the header present? 2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2007$as_echo_n "checking $2 presence... " >&6; } 2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010#include <$2> 2011_ACEOF 2012if ac_fn_cxx_try_cpp "$LINENO"; then : 2013 ac_header_preproc=yes 2014else 2015 ac_header_preproc=no 2016fi 2017rm -f conftest.err conftest.i conftest.$ac_ext 2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2019$as_echo "$ac_header_preproc" >&6; } 2020 2021# So? What about this header? 2022case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2023 yes:no: ) 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2025$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2028 ;; 2029 no:yes:* ) 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2031$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2033$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2035$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2037$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2040( $as_echo "## ------------------------------------ ## 2041## Report this to jdm3@st-andrews.ac.uk ## 2042## ------------------------------------ ##" 2043 ) | sed "s/^/$as_me: WARNING: /" >&2 2044 ;; 2045esac 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2047$as_echo_n "checking for $2... " >&6; } 2048if eval \${$3+:} false; then : 2049 $as_echo_n "(cached) " >&6 2050else 2051 eval "$3=\$ac_header_compiler" 2052fi 2053eval ac_res=\$$3 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2055$as_echo "$ac_res" >&6; } 2056fi 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 2059} # ac_fn_cxx_check_header_mongrel 2060 2061# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2062# --------------------------------------------- 2063# Tests whether TYPE exists after having included INCLUDES, setting cache 2064# variable VAR accordingly. 2065ac_fn_cxx_check_type () 2066{ 2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2069$as_echo_n "checking for $2... " >&6; } 2070if eval \${$3+:} false; then : 2071 $as_echo_n "(cached) " >&6 2072else 2073 eval "$3=no" 2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075/* end confdefs.h. */ 2076$4 2077int 2078main () 2079{ 2080if (sizeof ($2)) 2081 return 0; 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_cxx_try_compile "$LINENO"; then : 2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2088/* end confdefs.h. */ 2089$4 2090int 2091main () 2092{ 2093if (sizeof (($2))) 2094 return 0; 2095 ; 2096 return 0; 2097} 2098_ACEOF 2099if ac_fn_cxx_try_compile "$LINENO"; then : 2100 2101else 2102 eval "$3=yes" 2103fi 2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107fi 2108eval ac_res=\$$3 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2110$as_echo "$ac_res" >&6; } 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 2113} # ac_fn_cxx_check_type 2114 2115# ac_fn_c_find_intX_t LINENO BITS VAR 2116# ----------------------------------- 2117# Finds a signed integer type with width BITS, setting cache variable VAR 2118# accordingly. 2119ac_fn_c_find_intX_t () 2120{ 2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2123$as_echo_n "checking for int$2_t... " >&6; } 2124if eval \${$3+:} false; then : 2125 $as_echo_n "(cached) " >&6 2126else 2127 eval "$3=no" 2128 # Order is important - never check a type that is potentially smaller 2129 # than half of the expected target width. 2130 for ac_type in int$2_t 'int' 'long int' \ 2131 'long long int' 'short int' 'signed char'; do 2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2133/* end confdefs.h. */ 2134$ac_includes_default 2135 enum { N = $2 / 2 - 1 }; 2136int 2137main () 2138{ 2139static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2140test_array [0] = 0; 2141return test_array [0]; 2142 2143 ; 2144 return 0; 2145} 2146_ACEOF 2147if ac_fn_cxx_try_compile "$LINENO"; then : 2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2149/* end confdefs.h. */ 2150$ac_includes_default 2151 enum { N = $2 / 2 - 1 }; 2152int 2153main () 2154{ 2155static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2156 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2157test_array [0] = 0; 2158return test_array [0]; 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_cxx_try_compile "$LINENO"; then : 2165 2166else 2167 case $ac_type in #( 2168 int$2_t) : 2169 eval "$3=yes" ;; #( 2170 *) : 2171 eval "$3=\$ac_type" ;; 2172esac 2173fi 2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177 if eval test \"x\$"$3"\" = x"no"; then : 2178 2179else 2180 break 2181fi 2182 done 2183fi 2184eval ac_res=\$$3 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2186$as_echo "$ac_res" >&6; } 2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2188 2189} # ac_fn_c_find_intX_t 2190 2191# ac_fn_c_find_uintX_t LINENO BITS VAR 2192# ------------------------------------ 2193# Finds an unsigned integer type with width BITS, setting cache variable VAR 2194# accordingly. 2195ac_fn_c_find_uintX_t () 2196{ 2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2199$as_echo_n "checking for uint$2_t... " >&6; } 2200if eval \${$3+:} false; then : 2201 $as_echo_n "(cached) " >&6 2202else 2203 eval "$3=no" 2204 # Order is important - never check a type that is potentially smaller 2205 # than half of the expected target width. 2206 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2207 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209/* end confdefs.h. */ 2210$ac_includes_default 2211int 2212main () 2213{ 2214static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2215test_array [0] = 0; 2216return test_array [0]; 2217 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_cxx_try_compile "$LINENO"; then : 2223 case $ac_type in #( 2224 uint$2_t) : 2225 eval "$3=yes" ;; #( 2226 *) : 2227 eval "$3=\$ac_type" ;; 2228esac 2229fi 2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2231 if eval test \"x\$"$3"\" = x"no"; then : 2232 2233else 2234 break 2235fi 2236 done 2237fi 2238eval ac_res=\$$3 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2240$as_echo "$ac_res" >&6; } 2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2242 2243} # ac_fn_c_find_uintX_t 2244 2245# ac_fn_cxx_try_run LINENO 2246# ------------------------ 2247# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2248# that executables *can* be run. 2249ac_fn_cxx_try_run () 2250{ 2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2252 if { { ac_try="$ac_link" 2253case "(($ac_try" in 2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2255 *) ac_try_echo=$ac_try;; 2256esac 2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2258$as_echo "$ac_try_echo"; } >&5 2259 (eval "$ac_link") 2>&5 2260 ac_status=$? 2261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2262 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2263 { { case "(($ac_try" in 2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2265 *) ac_try_echo=$ac_try;; 2266esac 2267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2268$as_echo "$ac_try_echo"; } >&5 2269 (eval "$ac_try") 2>&5 2270 ac_status=$? 2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2272 test $ac_status = 0; }; }; then : 2273 ac_retval=0 2274else 2275 $as_echo "$as_me: program exited with status $ac_status" >&5 2276 $as_echo "$as_me: failed program was:" >&5 2277sed 's/^/| /' conftest.$ac_ext >&5 2278 2279 ac_retval=$ac_status 2280fi 2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2283 as_fn_set_status $ac_retval 2284 2285} # ac_fn_cxx_try_run 2286 2287# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2288# ---------------------------------------------- 2289# Tries to find the compile-time value of EXPR in a program that includes 2290# INCLUDES, setting VAR accordingly. Returns whether the value could be 2291# computed 2292ac_fn_cxx_compute_int () 2293{ 2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2295 if test "$cross_compiling" = yes; then 2296 # Depending upon the size, compute the lo and hi bounds. 2297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2298/* end confdefs.h. */ 2299$4 2300int 2301main () 2302{ 2303static int test_array [1 - 2 * !(($2) >= 0)]; 2304test_array [0] = 0; 2305return test_array [0]; 2306 2307 ; 2308 return 0; 2309} 2310_ACEOF 2311if ac_fn_cxx_try_compile "$LINENO"; then : 2312 ac_lo=0 ac_mid=0 2313 while :; do 2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2315/* end confdefs.h. */ 2316$4 2317int 2318main () 2319{ 2320static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2321test_array [0] = 0; 2322return test_array [0]; 2323 2324 ; 2325 return 0; 2326} 2327_ACEOF 2328if ac_fn_cxx_try_compile "$LINENO"; then : 2329 ac_hi=$ac_mid; break 2330else 2331 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2332 if test $ac_lo -le $ac_mid; then 2333 ac_lo= ac_hi= 2334 break 2335 fi 2336 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2337fi 2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2339 done 2340else 2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2342/* end confdefs.h. */ 2343$4 2344int 2345main () 2346{ 2347static int test_array [1 - 2 * !(($2) < 0)]; 2348test_array [0] = 0; 2349return test_array [0]; 2350 2351 ; 2352 return 0; 2353} 2354_ACEOF 2355if ac_fn_cxx_try_compile "$LINENO"; then : 2356 ac_hi=-1 ac_mid=-1 2357 while :; do 2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2359/* end confdefs.h. */ 2360$4 2361int 2362main () 2363{ 2364static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2365test_array [0] = 0; 2366return test_array [0]; 2367 2368 ; 2369 return 0; 2370} 2371_ACEOF 2372if ac_fn_cxx_try_compile "$LINENO"; then : 2373 ac_lo=$ac_mid; break 2374else 2375 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2376 if test $ac_mid -le $ac_hi; then 2377 ac_lo= ac_hi= 2378 break 2379 fi 2380 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2381fi 2382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2383 done 2384else 2385 ac_lo= ac_hi= 2386fi 2387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2388fi 2389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2390# Binary search between lo and hi bounds. 2391while test "x$ac_lo" != "x$ac_hi"; do 2392 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2394/* end confdefs.h. */ 2395$4 2396int 2397main () 2398{ 2399static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2400test_array [0] = 0; 2401return test_array [0]; 2402 2403 ; 2404 return 0; 2405} 2406_ACEOF 2407if ac_fn_cxx_try_compile "$LINENO"; then : 2408 ac_hi=$ac_mid 2409else 2410 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2411fi 2412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413done 2414case $ac_lo in #(( 2415?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2416'') ac_retval=1 ;; 2417esac 2418 else 2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2420/* end confdefs.h. */ 2421$4 2422static long int longval () { return $2; } 2423static unsigned long int ulongval () { return $2; } 2424#include <stdio.h> 2425#include <stdlib.h> 2426int 2427main () 2428{ 2429 2430 FILE *f = fopen ("conftest.val", "w"); 2431 if (! f) 2432 return 1; 2433 if (($2) < 0) 2434 { 2435 long int i = longval (); 2436 if (i != ($2)) 2437 return 1; 2438 fprintf (f, "%ld", i); 2439 } 2440 else 2441 { 2442 unsigned long int i = ulongval (); 2443 if (i != ($2)) 2444 return 1; 2445 fprintf (f, "%lu", i); 2446 } 2447 /* Do not output a trailing newline, as this causes \r\n confusion 2448 on some platforms. */ 2449 return ferror (f) || fclose (f) != 0; 2450 2451 ; 2452 return 0; 2453} 2454_ACEOF 2455if ac_fn_cxx_try_run "$LINENO"; then : 2456 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2457else 2458 ac_retval=1 2459fi 2460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2461 conftest.$ac_objext conftest.beam conftest.$ac_ext 2462rm -f conftest.val 2463 2464 fi 2465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2466 as_fn_set_status $ac_retval 2467 2468} # ac_fn_cxx_compute_int 2469 2470# ac_fn_cxx_check_func LINENO FUNC VAR 2471# ------------------------------------ 2472# Tests whether FUNC exists, setting the cache variable VAR accordingly 2473ac_fn_cxx_check_func () 2474{ 2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2477$as_echo_n "checking for $2... " >&6; } 2478if eval \${$3+:} false; then : 2479 $as_echo_n "(cached) " >&6 2480else 2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2482/* end confdefs.h. */ 2483/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2484 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2485#define $2 innocuous_$2 2486 2487/* System header to define __stub macros and hopefully few prototypes, 2488 which can conflict with char $2 (); below. 2489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2490 <limits.h> exists even on freestanding compilers. */ 2491 2492#ifdef __STDC__ 2493# include <limits.h> 2494#else 2495# include <assert.h> 2496#endif 2497 2498#undef $2 2499 2500/* Override any GCC internal prototype to avoid an error. 2501 Use char because int might match the return type of a GCC 2502 builtin and then its argument prototype would still apply. */ 2503#ifdef __cplusplus 2504extern "C" 2505#endif 2506char $2 (); 2507/* The GNU C library defines this for functions which it implements 2508 to always fail with ENOSYS. Some functions are actually named 2509 something starting with __ and the normal name is an alias. */ 2510#if defined __stub_$2 || defined __stub___$2 2511choke me 2512#endif 2513 2514int 2515main () 2516{ 2517return $2 (); 2518 ; 2519 return 0; 2520} 2521_ACEOF 2522if ac_fn_cxx_try_link "$LINENO"; then : 2523 eval "$3=yes" 2524else 2525 eval "$3=no" 2526fi 2527rm -f core conftest.err conftest.$ac_objext \ 2528 conftest$ac_exeext conftest.$ac_ext 2529fi 2530eval ac_res=\$$3 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2532$as_echo "$ac_res" >&6; } 2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2534 2535} # ac_fn_cxx_check_func 2536cat >config.log <<_ACEOF 2537This file contains any messages produced by compilers while 2538running configure, to aid debugging if configure makes a mistake. 2539 2540It was created by libsemigroups $as_me 1.0.5, which was 2541generated by GNU Autoconf 2.69. Invocation command line was 2542 2543 $ $0 $@ 2544 2545_ACEOF 2546exec 5>>config.log 2547{ 2548cat <<_ASUNAME 2549## --------- ## 2550## Platform. ## 2551## --------- ## 2552 2553hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2554uname -m = `(uname -m) 2>/dev/null || echo unknown` 2555uname -r = `(uname -r) 2>/dev/null || echo unknown` 2556uname -s = `(uname -s) 2>/dev/null || echo unknown` 2557uname -v = `(uname -v) 2>/dev/null || echo unknown` 2558 2559/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2560/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2561 2562/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2563/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2564/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2565/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2566/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2567/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2568/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2569 2570_ASUNAME 2571 2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2573for as_dir in $PATH 2574do 2575 IFS=$as_save_IFS 2576 test -z "$as_dir" && as_dir=. 2577 $as_echo "PATH: $as_dir" 2578 done 2579IFS=$as_save_IFS 2580 2581} >&5 2582 2583cat >&5 <<_ACEOF 2584 2585 2586## ----------- ## 2587## Core tests. ## 2588## ----------- ## 2589 2590_ACEOF 2591 2592 2593# Keep a trace of the command line. 2594# Strip out --no-create and --no-recursion so they do not pile up. 2595# Strip out --silent because we don't want to record it for future runs. 2596# Also quote any args containing shell meta-characters. 2597# Make two passes to allow for proper duplicate-argument suppression. 2598ac_configure_args= 2599ac_configure_args0= 2600ac_configure_args1= 2601ac_must_keep_next=false 2602for ac_pass in 1 2 2603do 2604 for ac_arg 2605 do 2606 case $ac_arg in 2607 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2609 | -silent | --silent | --silen | --sile | --sil) 2610 continue ;; 2611 *\'*) 2612 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2613 esac 2614 case $ac_pass in 2615 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2616 2) 2617 as_fn_append ac_configure_args1 " '$ac_arg'" 2618 if test $ac_must_keep_next = true; then 2619 ac_must_keep_next=false # Got value, back to normal. 2620 else 2621 case $ac_arg in 2622 *=* | --config-cache | -C | -disable-* | --disable-* \ 2623 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2624 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2625 | -with-* | --with-* | -without-* | --without-* | --x) 2626 case "$ac_configure_args0 " in 2627 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2628 esac 2629 ;; 2630 -* ) ac_must_keep_next=true ;; 2631 esac 2632 fi 2633 as_fn_append ac_configure_args " '$ac_arg'" 2634 ;; 2635 esac 2636 done 2637done 2638{ ac_configure_args0=; unset ac_configure_args0;} 2639{ ac_configure_args1=; unset ac_configure_args1;} 2640 2641# When interrupted or exit'd, cleanup temporary files, and complete 2642# config.log. We remove comments because anyway the quotes in there 2643# would cause problems or look ugly. 2644# WARNING: Use '\'' to represent an apostrophe within the trap. 2645# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2646trap 'exit_status=$? 2647 # Save into config.log some information that might help in debugging. 2648 { 2649 echo 2650 2651 $as_echo "## ---------------- ## 2652## Cache variables. ## 2653## ---------------- ##" 2654 echo 2655 # The following way of writing the cache mishandles newlines in values, 2656( 2657 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2658 eval ac_val=\$$ac_var 2659 case $ac_val in #( 2660 *${as_nl}*) 2661 case $ac_var in #( 2662 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2663$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2664 esac 2665 case $ac_var in #( 2666 _ | IFS | as_nl) ;; #( 2667 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2668 *) { eval $ac_var=; unset $ac_var;} ;; 2669 esac ;; 2670 esac 2671 done 2672 (set) 2>&1 | 2673 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2674 *${as_nl}ac_space=\ *) 2675 sed -n \ 2676 "s/'\''/'\''\\\\'\'''\''/g; 2677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2678 ;; #( 2679 *) 2680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2681 ;; 2682 esac | 2683 sort 2684) 2685 echo 2686 2687 $as_echo "## ----------------- ## 2688## Output variables. ## 2689## ----------------- ##" 2690 echo 2691 for ac_var in $ac_subst_vars 2692 do 2693 eval ac_val=\$$ac_var 2694 case $ac_val in 2695 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2696 esac 2697 $as_echo "$ac_var='\''$ac_val'\''" 2698 done | sort 2699 echo 2700 2701 if test -n "$ac_subst_files"; then 2702 $as_echo "## ------------------- ## 2703## File substitutions. ## 2704## ------------------- ##" 2705 echo 2706 for ac_var in $ac_subst_files 2707 do 2708 eval ac_val=\$$ac_var 2709 case $ac_val in 2710 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2711 esac 2712 $as_echo "$ac_var='\''$ac_val'\''" 2713 done | sort 2714 echo 2715 fi 2716 2717 if test -s confdefs.h; then 2718 $as_echo "## ----------- ## 2719## confdefs.h. ## 2720## ----------- ##" 2721 echo 2722 cat confdefs.h 2723 echo 2724 fi 2725 test "$ac_signal" != 0 && 2726 $as_echo "$as_me: caught signal $ac_signal" 2727 $as_echo "$as_me: exit $exit_status" 2728 } >&5 2729 rm -f core *.core core.conftest.* && 2730 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2731 exit $exit_status 2732' 0 2733for ac_signal in 1 2 13 15; do 2734 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2735done 2736ac_signal=0 2737 2738# confdefs.h avoids OS command line length limits that DEFS can exceed. 2739rm -f -r conftest* confdefs.h 2740 2741$as_echo "/* confdefs.h */" > confdefs.h 2742 2743# Predefined preprocessor variables. 2744 2745cat >>confdefs.h <<_ACEOF 2746#define PACKAGE_NAME "$PACKAGE_NAME" 2747_ACEOF 2748 2749cat >>confdefs.h <<_ACEOF 2750#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2751_ACEOF 2752 2753cat >>confdefs.h <<_ACEOF 2754#define PACKAGE_VERSION "$PACKAGE_VERSION" 2755_ACEOF 2756 2757cat >>confdefs.h <<_ACEOF 2758#define PACKAGE_STRING "$PACKAGE_STRING" 2759_ACEOF 2760 2761cat >>confdefs.h <<_ACEOF 2762#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2763_ACEOF 2764 2765cat >>confdefs.h <<_ACEOF 2766#define PACKAGE_URL "$PACKAGE_URL" 2767_ACEOF 2768 2769 2770# Let the site file select an alternate cache file if it wants to. 2771# Prefer an explicitly selected file to automatically selected ones. 2772ac_site_file1=NONE 2773ac_site_file2=NONE 2774if test -n "$CONFIG_SITE"; then 2775 # We do not want a PATH search for config.site. 2776 case $CONFIG_SITE in #(( 2777 -*) ac_site_file1=./$CONFIG_SITE;; 2778 */*) ac_site_file1=$CONFIG_SITE;; 2779 *) ac_site_file1=./$CONFIG_SITE;; 2780 esac 2781elif test "x$prefix" != xNONE; then 2782 ac_site_file1=$prefix/share/config.site 2783 ac_site_file2=$prefix/etc/config.site 2784else 2785 ac_site_file1=$ac_default_prefix/share/config.site 2786 ac_site_file2=$ac_default_prefix/etc/config.site 2787fi 2788for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2789do 2790 test "x$ac_site_file" = xNONE && continue 2791 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2793$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2794 sed 's/^/| /' "$ac_site_file" >&5 2795 . "$ac_site_file" \ 2796 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2798as_fn_error $? "failed to load site script $ac_site_file 2799See \`config.log' for more details" "$LINENO" 5; } 2800 fi 2801done 2802 2803if test -r "$cache_file"; then 2804 # Some versions of bash will fail to source /dev/null (special files 2805 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2806 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2808$as_echo "$as_me: loading cache $cache_file" >&6;} 2809 case $cache_file in 2810 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2811 *) . "./$cache_file";; 2812 esac 2813 fi 2814else 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2816$as_echo "$as_me: creating cache $cache_file" >&6;} 2817 >$cache_file 2818fi 2819 2820# Check that the precious variables saved in the cache have kept the same 2821# value. 2822ac_cache_corrupted=false 2823for ac_var in $ac_precious_vars; do 2824 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2825 eval ac_new_set=\$ac_env_${ac_var}_set 2826 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2827 eval ac_new_val=\$ac_env_${ac_var}_value 2828 case $ac_old_set,$ac_new_set in 2829 set,) 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2831$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2832 ac_cache_corrupted=: ;; 2833 ,set) 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2835$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2836 ac_cache_corrupted=: ;; 2837 ,);; 2838 *) 2839 if test "x$ac_old_val" != "x$ac_new_val"; then 2840 # differences in whitespace do not lead to failure. 2841 ac_old_val_w=`echo x $ac_old_val` 2842 ac_new_val_w=`echo x $ac_new_val` 2843 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2845$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2846 ac_cache_corrupted=: 2847 else 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2849$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2850 eval $ac_var=\$ac_old_val 2851 fi 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2853$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2855$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2856 fi;; 2857 esac 2858 # Pass precious variables to config.status. 2859 if test "$ac_new_set" = set; then 2860 case $ac_new_val in 2861 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2862 *) ac_arg=$ac_var=$ac_new_val ;; 2863 esac 2864 case " $ac_configure_args " in 2865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2866 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2867 esac 2868 fi 2869done 2870if $ac_cache_corrupted; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2874$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2875 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2876fi 2877## -------------------- ## 2878## Main body of script. ## 2879## -------------------- ## 2880 2881ac_ext=c 2882ac_cpp='$CPP $CPPFLAGS' 2883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2885ac_compiler_gnu=$ac_cv_c_compiler_gnu 2886 2887 2888 2889ac_config_headers="$ac_config_headers config/config.h" 2890 2891 2892ac_aux_dir= 2893for ac_dir in config "$srcdir"/config; do 2894 if test -f "$ac_dir/install-sh"; then 2895 ac_aux_dir=$ac_dir 2896 ac_install_sh="$ac_aux_dir/install-sh -c" 2897 break 2898 elif test -f "$ac_dir/install.sh"; then 2899 ac_aux_dir=$ac_dir 2900 ac_install_sh="$ac_aux_dir/install.sh -c" 2901 break 2902 elif test -f "$ac_dir/shtool"; then 2903 ac_aux_dir=$ac_dir 2904 ac_install_sh="$ac_aux_dir/shtool install -c" 2905 break 2906 fi 2907done 2908if test -z "$ac_aux_dir"; then 2909 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2910fi 2911 2912# These three variables are undocumented and unsupported, 2913# and are intended to be withdrawn in a future Autoconf release. 2914# They can cause serious problems if a builder's source tree is in a directory 2915# whose full name contains unusual characters. 2916ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2917ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2918ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2919 2920 2921 2922: ${CFLAGS=""} 2923: ${CXXFLAGS=""} 2924 2925am__api_version='1.16' 2926 2927# Find a good install program. We prefer a C program (faster), 2928# so one script is as good as another. But avoid the broken or 2929# incompatible versions: 2930# SysV /etc/install, /usr/sbin/install 2931# SunOS /usr/etc/install 2932# IRIX /sbin/install 2933# AIX /bin/install 2934# AmigaOS /C/install, which installs bootblocks on floppy discs 2935# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2936# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2937# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2938# OS/2's system install, which has a completely different semantic 2939# ./install, which can be erroneously created by make from ./install.sh. 2940# Reject install programs that cannot install multiple files. 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2942$as_echo_n "checking for a BSD-compatible install... " >&6; } 2943if test -z "$INSTALL"; then 2944if ${ac_cv_path_install+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948for as_dir in $PATH 2949do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 # Account for people who put trailing slashes in PATH elements. 2953case $as_dir/ in #(( 2954 ./ | .// | /[cC]/* | \ 2955 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2956 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2957 /usr/ucb/* ) ;; 2958 *) 2959 # OSF1 and SCO ODT 3.0 have their own names for install. 2960 # Don't use installbsd from OSF since it installs stuff as root 2961 # by default. 2962 for ac_prog in ginstall scoinst install; do 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2965 if test $ac_prog = install && 2966 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2967 # AIX install. It has an incompatible calling convention. 2968 : 2969 elif test $ac_prog = install && 2970 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2971 # program-specific install script used by HP pwplus--don't use. 2972 : 2973 else 2974 rm -rf conftest.one conftest.two conftest.dir 2975 echo one > conftest.one 2976 echo two > conftest.two 2977 mkdir conftest.dir 2978 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2979 test -s conftest.one && test -s conftest.two && 2980 test -s conftest.dir/conftest.one && 2981 test -s conftest.dir/conftest.two 2982 then 2983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2984 break 3 2985 fi 2986 fi 2987 fi 2988 done 2989 done 2990 ;; 2991esac 2992 2993 done 2994IFS=$as_save_IFS 2995 2996rm -rf conftest.one conftest.two conftest.dir 2997 2998fi 2999 if test "${ac_cv_path_install+set}" = set; then 3000 INSTALL=$ac_cv_path_install 3001 else 3002 # As a last resort, use the slow shell script. Don't cache a 3003 # value for INSTALL within a source directory, because that will 3004 # break other packages using the cache if that directory is 3005 # removed, or if the value is a relative name. 3006 INSTALL=$ac_install_sh 3007 fi 3008fi 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3010$as_echo "$INSTALL" >&6; } 3011 3012# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3013# It thinks the first close brace ends the variable substitution. 3014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3015 3016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3017 3018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3019 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3021$as_echo_n "checking whether build environment is sane... " >&6; } 3022# Reject unsafe characters in $srcdir or the absolute working directory 3023# name. Accept space and tab only in the latter. 3024am_lf=' 3025' 3026case `pwd` in 3027 *[\\\"\#\$\&\'\`$am_lf]*) 3028 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3029esac 3030case $srcdir in 3031 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3032 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3033esac 3034 3035# Do 'set' in a subshell so we don't clobber the current shell's 3036# arguments. Must try -L first in case configure is actually a 3037# symlink; some systems play weird games with the mod time of symlinks 3038# (eg FreeBSD returns the mod time of the symlink's containing 3039# directory). 3040if ( 3041 am_has_slept=no 3042 for am_try in 1 2; do 3043 echo "timestamp, slept: $am_has_slept" > conftest.file 3044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3045 if test "$*" = "X"; then 3046 # -L didn't work. 3047 set X `ls -t "$srcdir/configure" conftest.file` 3048 fi 3049 if test "$*" != "X $srcdir/configure conftest.file" \ 3050 && test "$*" != "X conftest.file $srcdir/configure"; then 3051 3052 # If neither matched, then we have a broken ls. This can happen 3053 # if, for instance, CONFIG_SHELL is bash and it inherits a 3054 # broken ls alias from the environment. This has actually 3055 # happened. Such a system could not be considered "sane". 3056 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3057 alias in your environment" "$LINENO" 5 3058 fi 3059 if test "$2" = conftest.file || test $am_try -eq 2; then 3060 break 3061 fi 3062 # Just in case. 3063 sleep 1 3064 am_has_slept=yes 3065 done 3066 test "$2" = conftest.file 3067 ) 3068then 3069 # Ok. 3070 : 3071else 3072 as_fn_error $? "newly created file is older than distributed files! 3073Check your system clock" "$LINENO" 5 3074fi 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3076$as_echo "yes" >&6; } 3077# If we didn't sleep, we still need to ensure time stamps of config.status and 3078# generated files are strictly newer. 3079am_sleep_pid= 3080if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3081 ( sleep 1 ) & 3082 am_sleep_pid=$! 3083fi 3084 3085rm -f conftest.file 3086 3087test "$program_prefix" != NONE && 3088 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3089# Use a double $ so make ignores it. 3090test "$program_suffix" != NONE && 3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3092# Double any \ or $. 3093# By default was `s,x,x', remove it if useless. 3094ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3095program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3096 3097# Expand $ac_aux_dir to an absolute path. 3098am_aux_dir=`cd "$ac_aux_dir" && pwd` 3099 3100if test x"${MISSING+set}" != xset; then 3101 case $am_aux_dir in 3102 *\ * | *\ *) 3103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3104 *) 3105 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3106 esac 3107fi 3108# Use eval to expand $SHELL 3109if eval "$MISSING --is-lightweight"; then 3110 am_missing_run="$MISSING " 3111else 3112 am_missing_run= 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3114$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3115fi 3116 3117if test x"${install_sh+set}" != xset; then 3118 case $am_aux_dir in 3119 *\ * | *\ *) 3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3121 *) 3122 install_sh="\${SHELL} $am_aux_dir/install-sh" 3123 esac 3124fi 3125 3126# Installed binaries are usually stripped using 'strip' when the user 3127# run "make install-strip". However 'strip' might not be the right 3128# tool to use in cross-compilation environments, therefore Automake 3129# will honor the 'STRIP' environment variable to overrule this program. 3130if test "$cross_compiling" != no; then 3131 if test -n "$ac_tool_prefix"; then 3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3133set dummy ${ac_tool_prefix}strip; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if ${ac_cv_prog_STRIP+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$STRIP"; then 3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159STRIP=$ac_cv_prog_STRIP 3160if test -n "$STRIP"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3162$as_echo "$STRIP" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169fi 3170if test -z "$ac_cv_prog_STRIP"; then 3171 ac_ct_STRIP=$STRIP 3172 # Extract the first word of "strip", so it can be a program name with args. 3173set dummy strip; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$ac_ct_STRIP"; then 3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_ac_ct_STRIP="strip" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3200if test -n "$ac_ct_STRIP"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3202$as_echo "$ac_ct_STRIP" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 if test "x$ac_ct_STRIP" = x; then 3209 STRIP=":" 3210 else 3211 case $cross_compiling:$ac_tool_warned in 3212yes:) 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3215ac_tool_warned=yes ;; 3216esac 3217 STRIP=$ac_ct_STRIP 3218 fi 3219else 3220 STRIP="$ac_cv_prog_STRIP" 3221fi 3222 3223fi 3224INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3225 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3227$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3228if test -z "$MKDIR_P"; then 3229 if ${ac_cv_path_mkdir+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_prog in mkdir gmkdir; do 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3241 'mkdir (GNU coreutils) '* | \ 3242 'mkdir (coreutils) '* | \ 3243 'mkdir (fileutils) '4.1*) 3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3245 break 3;; 3246 esac 3247 done 3248 done 3249 done 3250IFS=$as_save_IFS 3251 3252fi 3253 3254 test -d ./--version && rmdir ./--version 3255 if test "${ac_cv_path_mkdir+set}" = set; then 3256 MKDIR_P="$ac_cv_path_mkdir -p" 3257 else 3258 # As a last resort, use the slow shell script. Don't cache a 3259 # value for MKDIR_P within a source directory, because that will 3260 # break other packages using the cache if that directory is 3261 # removed, or if the value is a relative name. 3262 MKDIR_P="$ac_install_sh -d" 3263 fi 3264fi 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3266$as_echo "$MKDIR_P" >&6; } 3267 3268for ac_prog in gawk mawk nawk awk 3269do 3270 # Extract the first word of "$ac_prog", so it can be a program name with args. 3271set dummy $ac_prog; ac_word=$2 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273$as_echo_n "checking for $ac_word... " >&6; } 3274if ${ac_cv_prog_AWK+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 if test -n "$AWK"; then 3278 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3287 ac_cv_prog_AWK="$ac_prog" 3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292 done 3293IFS=$as_save_IFS 3294 3295fi 3296fi 3297AWK=$ac_cv_prog_AWK 3298if test -n "$AWK"; then 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3300$as_echo "$AWK" >&6; } 3301else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304fi 3305 3306 3307 test -n "$AWK" && break 3308done 3309 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3311$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3312set x ${MAKE-make} 3313ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3314if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 cat >conftest.make <<\_ACEOF 3318SHELL = /bin/sh 3319all: 3320 @echo '@@@%%%=$(MAKE)=@@@%%%' 3321_ACEOF 3322# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3323case `${MAKE-make} -f conftest.make 2>/dev/null` in 3324 *@@@%%%=?*=@@@%%%*) 3325 eval ac_cv_prog_make_${ac_make}_set=yes;; 3326 *) 3327 eval ac_cv_prog_make_${ac_make}_set=no;; 3328esac 3329rm -f conftest.make 3330fi 3331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3333$as_echo "yes" >&6; } 3334 SET_MAKE= 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338 SET_MAKE="MAKE=${MAKE-make}" 3339fi 3340 3341rm -rf .tst 2>/dev/null 3342mkdir .tst 2>/dev/null 3343if test -d .tst; then 3344 am__leading_dot=. 3345else 3346 am__leading_dot=_ 3347fi 3348rmdir .tst 2>/dev/null 3349 3350# Check whether --enable-silent-rules was given. 3351if test "${enable_silent_rules+set}" = set; then : 3352 enableval=$enable_silent_rules; 3353fi 3354 3355case $enable_silent_rules in # ((( 3356 yes) AM_DEFAULT_VERBOSITY=0;; 3357 no) AM_DEFAULT_VERBOSITY=1;; 3358 *) AM_DEFAULT_VERBOSITY=1;; 3359esac 3360am_make=${MAKE-make} 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3362$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3363if ${am_cv_make_support_nested_variables+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 if $as_echo 'TRUE=$(BAR$(V)) 3367BAR0=false 3368BAR1=true 3369V=1 3370am__doit: 3371 @$(TRUE) 3372.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3373 am_cv_make_support_nested_variables=yes 3374else 3375 am_cv_make_support_nested_variables=no 3376fi 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3379$as_echo "$am_cv_make_support_nested_variables" >&6; } 3380if test $am_cv_make_support_nested_variables = yes; then 3381 AM_V='$(V)' 3382 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3383else 3384 AM_V=$AM_DEFAULT_VERBOSITY 3385 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3386fi 3387AM_BACKSLASH='\' 3388 3389if test "`cd $srcdir && pwd`" != "`pwd`"; then 3390 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3391 # is not polluted with repeated "-I." 3392 am__isrc=' -I$(srcdir)' 3393 # test to see if srcdir already configured 3394 if test -f $srcdir/config.status; then 3395 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3396 fi 3397fi 3398 3399# test whether we have cygpath 3400if test -z "$CYGPATH_W"; then 3401 if (cygpath --version) >/dev/null 2>/dev/null; then 3402 CYGPATH_W='cygpath -w' 3403 else 3404 CYGPATH_W=echo 3405 fi 3406fi 3407 3408 3409# Define the identity of the package. 3410 PACKAGE='libsemigroups' 3411 VERSION='1.0.5' 3412 3413 3414cat >>confdefs.h <<_ACEOF 3415#define PACKAGE "$PACKAGE" 3416_ACEOF 3417 3418 3419cat >>confdefs.h <<_ACEOF 3420#define VERSION "$VERSION" 3421_ACEOF 3422 3423# Some tools Automake needs. 3424 3425ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3426 3427 3428AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3429 3430 3431AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3432 3433 3434AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3435 3436 3437MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3438 3439# For better backward compatibility. To be removed once Automake 1.9.x 3440# dies out for good. For more background, see: 3441# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3442# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3443mkdir_p='$(MKDIR_P)' 3444 3445# We need awk for the "check" target (and possibly the TAP driver). The 3446# system "awk" is bad on some platforms. 3447# Always define AMTAR for backward compatibility. Yes, it's still used 3448# in the wild :-( We should find a proper way to deprecate it ... 3449AMTAR='$${TAR-tar}' 3450 3451 3452# We'll loop over all known methods to create a tar archive until one works. 3453_am_tools='gnutar pax cpio none' 3454 3455am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3456 3457 3458 3459 3460 3461 3462# POSIX will say in a future version that running "rm -f" with no argument 3463# is OK; and we want to be able to make that assumption in our Makefile 3464# recipes. So use an aggressive probe to check that the usage we want is 3465# actually supported "in the wild" to an acceptable degree. 3466# See automake bug#10828. 3467# To make any issue more visible, cause the running configure to be aborted 3468# by default if the 'rm' program in use doesn't match our expectations; the 3469# user can still override this though. 3470if rm -f && rm -fr && rm -rf; then : OK; else 3471 cat >&2 <<'END' 3472Oops! 3473 3474Your 'rm' program seems unable to run without file operands specified 3475on the command line, even when the '-f' option is present. This is contrary 3476to the behaviour of most rm programs out there, and not conforming with 3477the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3478 3479Please tell bug-automake@gnu.org about your system, including the value 3480of your $PATH and any error possibly output before this message. This 3481can help us improve future automake versions. 3482 3483END 3484 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3485 echo 'Configuration will proceed anyway, since you have set the' >&2 3486 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3487 echo >&2 3488 else 3489 cat >&2 <<'END' 3490Aborting the configuration process, to ensure you take notice of the issue. 3491 3492You can download and install GNU coreutils to get an 'rm' implementation 3493that behaves properly: <https://www.gnu.org/software/coreutils/>. 3494 3495If you want to complete the configuration process using your problematic 3496'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3497to "yes", and re-run configure. 3498 3499END 3500 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3501 fi 3502fi 3503 3504# Check whether --enable-silent-rules was given. 3505if test "${enable_silent_rules+set}" = set; then : 3506 enableval=$enable_silent_rules; 3507fi 3508 3509case $enable_silent_rules in # ((( 3510 yes) AM_DEFAULT_VERBOSITY=0;; 3511 no) AM_DEFAULT_VERBOSITY=1;; 3512 *) AM_DEFAULT_VERBOSITY=0;; 3513esac 3514am_make=${MAKE-make} 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3516$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3517if ${am_cv_make_support_nested_variables+:} false; then : 3518 $as_echo_n "(cached) " >&6 3519else 3520 if $as_echo 'TRUE=$(BAR$(V)) 3521BAR0=false 3522BAR1=true 3523V=1 3524am__doit: 3525 @$(TRUE) 3526.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3527 am_cv_make_support_nested_variables=yes 3528else 3529 am_cv_make_support_nested_variables=no 3530fi 3531fi 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3533$as_echo "$am_cv_make_support_nested_variables" >&6; } 3534if test $am_cv_make_support_nested_variables = yes; then 3535 AM_V='$(V)' 3536 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3537else 3538 AM_V=$AM_DEFAULT_VERBOSITY 3539 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3540fi 3541AM_BACKSLASH='\' 3542 3543DEPDIR="${am__leading_dot}deps" 3544 3545ac_config_commands="$ac_config_commands depfiles" 3546 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3548$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3549cat > confinc.mk << 'END' 3550am__doit: 3551 @echo this is the am__doit target >confinc.out 3552.PHONY: am__doit 3553END 3554am__include="#" 3555am__quote= 3556# BSD make does it like this. 3557echo '.include "confinc.mk" # ignored' > confmf.BSD 3558# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3559echo 'include confinc.mk # ignored' > confmf.GNU 3560_am_result=no 3561for s in GNU BSD; do 3562 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3563 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3564 ac_status=$? 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); } 3567 case $?:`cat confinc.out 2>/dev/null` in #( 3568 '0:this is the am__doit target') : 3569 case $s in #( 3570 BSD) : 3571 am__include='.include' am__quote='"' ;; #( 3572 *) : 3573 am__include='include' am__quote='' ;; 3574esac ;; #( 3575 *) : 3576 ;; 3577esac 3578 if test "$am__include" != "#"; then 3579 _am_result="yes ($s style)" 3580 break 3581 fi 3582done 3583rm -f confinc.* confmf.* 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3585$as_echo "${_am_result}" >&6; } 3586 3587# Check whether --enable-dependency-tracking was given. 3588if test "${enable_dependency_tracking+set}" = set; then : 3589 enableval=$enable_dependency_tracking; 3590fi 3591 3592if test "x$enable_dependency_tracking" != xno; then 3593 am_depcomp="$ac_aux_dir/depcomp" 3594 AMDEPBACKSLASH='\' 3595 am__nodep='_no' 3596fi 3597 if test "x$enable_dependency_tracking" != xno; then 3598 AMDEP_TRUE= 3599 AMDEP_FALSE='#' 3600else 3601 AMDEP_TRUE='#' 3602 AMDEP_FALSE= 3603fi 3604 3605 3606ac_ext=c 3607ac_cpp='$CPP $CPPFLAGS' 3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3610ac_compiler_gnu=$ac_cv_c_compiler_gnu 3611if test -n "$ac_tool_prefix"; then 3612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3613set dummy ${ac_tool_prefix}gcc; ac_word=$2 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3615$as_echo_n "checking for $ac_word... " >&6; } 3616if ${ac_cv_prog_CC+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 if test -n "$CC"; then 3620 ac_cv_prog_CC="$CC" # Let the user override the test. 3621else 3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623for as_dir in $PATH 3624do 3625 IFS=$as_save_IFS 3626 test -z "$as_dir" && as_dir=. 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3629 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3631 break 2 3632 fi 3633done 3634 done 3635IFS=$as_save_IFS 3636 3637fi 3638fi 3639CC=$ac_cv_prog_CC 3640if test -n "$CC"; then 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3642$as_echo "$CC" >&6; } 3643else 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3645$as_echo "no" >&6; } 3646fi 3647 3648 3649fi 3650if test -z "$ac_cv_prog_CC"; then 3651 ac_ct_CC=$CC 3652 # Extract the first word of "gcc", so it can be a program name with args. 3653set dummy gcc; ac_word=$2 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3655$as_echo_n "checking for $ac_word... " >&6; } 3656if ${ac_cv_prog_ac_ct_CC+:} false; then : 3657 $as_echo_n "(cached) " >&6 3658else 3659 if test -n "$ac_ct_CC"; then 3660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3661else 3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3663for as_dir in $PATH 3664do 3665 IFS=$as_save_IFS 3666 test -z "$as_dir" && as_dir=. 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3669 ac_cv_prog_ac_ct_CC="gcc" 3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3671 break 2 3672 fi 3673done 3674 done 3675IFS=$as_save_IFS 3676 3677fi 3678fi 3679ac_ct_CC=$ac_cv_prog_ac_ct_CC 3680if test -n "$ac_ct_CC"; then 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3682$as_echo "$ac_ct_CC" >&6; } 3683else 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3685$as_echo "no" >&6; } 3686fi 3687 3688 if test "x$ac_ct_CC" = x; then 3689 CC="" 3690 else 3691 case $cross_compiling:$ac_tool_warned in 3692yes:) 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3695ac_tool_warned=yes ;; 3696esac 3697 CC=$ac_ct_CC 3698 fi 3699else 3700 CC="$ac_cv_prog_CC" 3701fi 3702 3703if test -z "$CC"; then 3704 if test -n "$ac_tool_prefix"; then 3705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3706set dummy ${ac_tool_prefix}cc; ac_word=$2 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708$as_echo_n "checking for $ac_word... " >&6; } 3709if ${ac_cv_prog_CC+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 if test -n "$CC"; then 3713 ac_cv_prog_CC="$CC" # Let the user override the test. 3714else 3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH 3717do 3718 IFS=$as_save_IFS 3719 test -z "$as_dir" && as_dir=. 3720 for ac_exec_ext in '' $ac_executable_extensions; do 3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3722 ac_cv_prog_CC="${ac_tool_prefix}cc" 3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3724 break 2 3725 fi 3726done 3727 done 3728IFS=$as_save_IFS 3729 3730fi 3731fi 3732CC=$ac_cv_prog_CC 3733if test -n "$CC"; then 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3735$as_echo "$CC" >&6; } 3736else 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3738$as_echo "no" >&6; } 3739fi 3740 3741 3742 fi 3743fi 3744if test -z "$CC"; then 3745 # Extract the first word of "cc", so it can be a program name with args. 3746set dummy cc; ac_word=$2 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3748$as_echo_n "checking for $ac_word... " >&6; } 3749if ${ac_cv_prog_CC+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 if test -n "$CC"; then 3753 ac_cv_prog_CC="$CC" # Let the user override the test. 3754else 3755 ac_prog_rejected=no 3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3757for as_dir in $PATH 3758do 3759 IFS=$as_save_IFS 3760 test -z "$as_dir" && as_dir=. 3761 for ac_exec_ext in '' $ac_executable_extensions; do 3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3764 ac_prog_rejected=yes 3765 continue 3766 fi 3767 ac_cv_prog_CC="cc" 3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3769 break 2 3770 fi 3771done 3772 done 3773IFS=$as_save_IFS 3774 3775if test $ac_prog_rejected = yes; then 3776 # We found a bogon in the path, so make sure we never use it. 3777 set dummy $ac_cv_prog_CC 3778 shift 3779 if test $# != 0; then 3780 # We chose a different compiler from the bogus one. 3781 # However, it has the same basename, so the bogon will be chosen 3782 # first if we set CC to just the basename; use the full file name. 3783 shift 3784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3785 fi 3786fi 3787fi 3788fi 3789CC=$ac_cv_prog_CC 3790if test -n "$CC"; then 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3792$as_echo "$CC" >&6; } 3793else 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795$as_echo "no" >&6; } 3796fi 3797 3798 3799fi 3800if test -z "$CC"; then 3801 if test -n "$ac_tool_prefix"; then 3802 for ac_prog in cl.exe 3803 do 3804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3805set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3807$as_echo_n "checking for $ac_word... " >&6; } 3808if ${ac_cv_prog_CC+:} false; then : 3809 $as_echo_n "(cached) " >&6 3810else 3811 if test -n "$CC"; then 3812 ac_cv_prog_CC="$CC" # Let the user override the test. 3813else 3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815for as_dir in $PATH 3816do 3817 IFS=$as_save_IFS 3818 test -z "$as_dir" && as_dir=. 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3823 break 2 3824 fi 3825done 3826 done 3827IFS=$as_save_IFS 3828 3829fi 3830fi 3831CC=$ac_cv_prog_CC 3832if test -n "$CC"; then 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3834$as_echo "$CC" >&6; } 3835else 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3837$as_echo "no" >&6; } 3838fi 3839 3840 3841 test -n "$CC" && break 3842 done 3843fi 3844if test -z "$CC"; then 3845 ac_ct_CC=$CC 3846 for ac_prog in cl.exe 3847do 3848 # Extract the first word of "$ac_prog", so it can be a program name with args. 3849set dummy $ac_prog; ac_word=$2 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3851$as_echo_n "checking for $ac_word... " >&6; } 3852if ${ac_cv_prog_ac_ct_CC+:} false; then : 3853 $as_echo_n "(cached) " >&6 3854else 3855 if test -n "$ac_ct_CC"; then 3856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3857else 3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3859for as_dir in $PATH 3860do 3861 IFS=$as_save_IFS 3862 test -z "$as_dir" && as_dir=. 3863 for ac_exec_ext in '' $ac_executable_extensions; do 3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3865 ac_cv_prog_ac_ct_CC="$ac_prog" 3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3867 break 2 3868 fi 3869done 3870 done 3871IFS=$as_save_IFS 3872 3873fi 3874fi 3875ac_ct_CC=$ac_cv_prog_ac_ct_CC 3876if test -n "$ac_ct_CC"; then 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3878$as_echo "$ac_ct_CC" >&6; } 3879else 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3881$as_echo "no" >&6; } 3882fi 3883 3884 3885 test -n "$ac_ct_CC" && break 3886done 3887 3888 if test "x$ac_ct_CC" = x; then 3889 CC="" 3890 else 3891 case $cross_compiling:$ac_tool_warned in 3892yes:) 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3895ac_tool_warned=yes ;; 3896esac 3897 CC=$ac_ct_CC 3898 fi 3899fi 3900 3901fi 3902 3903 3904test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3906as_fn_error $? "no acceptable C compiler found in \$PATH 3907See \`config.log' for more details" "$LINENO" 5; } 3908 3909# Provide some information about the compiler. 3910$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3911set X $ac_compile 3912ac_compiler=$2 3913for ac_option in --version -v -V -qversion; do 3914 { { ac_try="$ac_compiler $ac_option >&5" 3915case "(($ac_try" in 3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3917 *) ac_try_echo=$ac_try;; 3918esac 3919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3920$as_echo "$ac_try_echo"; } >&5 3921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3922 ac_status=$? 3923 if test -s conftest.err; then 3924 sed '10a\ 3925... rest of stderr output deleted ... 3926 10q' conftest.err >conftest.er1 3927 cat conftest.er1 >&5 3928 fi 3929 rm -f conftest.er1 conftest.err 3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3931 test $ac_status = 0; } 3932done 3933 3934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935/* end confdefs.h. */ 3936 3937int 3938main () 3939{ 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945ac_clean_files_save=$ac_clean_files 3946ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3947# Try to create an executable without -o first, disregard a.out. 3948# It will help us diagnose broken compilers, and finding out an intuition 3949# of exeext. 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3951$as_echo_n "checking whether the C compiler works... " >&6; } 3952ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3953 3954# The possible output files: 3955ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3956 3957ac_rmfiles= 3958for ac_file in $ac_files 3959do 3960 case $ac_file in 3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3962 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3963 esac 3964done 3965rm -f $ac_rmfiles 3966 3967if { { ac_try="$ac_link_default" 3968case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971esac 3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973$as_echo "$ac_try_echo"; } >&5 3974 (eval "$ac_link_default") 2>&5 3975 ac_status=$? 3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3977 test $ac_status = 0; }; then : 3978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3979# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3980# in a Makefile. We should not override ac_cv_exeext if it was cached, 3981# so that the user can short-circuit this test for compilers unknown to 3982# Autoconf. 3983for ac_file in $ac_files '' 3984do 3985 test -f "$ac_file" || continue 3986 case $ac_file in 3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3988 ;; 3989 [ab].out ) 3990 # We found the default executable, but exeext='' is most 3991 # certainly right. 3992 break;; 3993 *.* ) 3994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3995 then :; else 3996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3997 fi 3998 # We set ac_cv_exeext here because the later test for it is not 3999 # safe: cross compilers may not add the suffix if given an `-o' 4000 # argument, so we may need to know it at that point already. 4001 # Even if this section looks crufty: it has the advantage of 4002 # actually working. 4003 break;; 4004 * ) 4005 break;; 4006 esac 4007done 4008test "$ac_cv_exeext" = no && ac_cv_exeext= 4009 4010else 4011 ac_file='' 4012fi 4013if test -z "$ac_file"; then : 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4015$as_echo "no" >&6; } 4016$as_echo "$as_me: failed program was:" >&5 4017sed 's/^/| /' conftest.$ac_ext >&5 4018 4019{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4021as_fn_error 77 "C compiler cannot create executables 4022See \`config.log' for more details" "$LINENO" 5; } 4023else 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4025$as_echo "yes" >&6; } 4026fi 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4028$as_echo_n "checking for C compiler default output file name... " >&6; } 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4030$as_echo "$ac_file" >&6; } 4031ac_exeext=$ac_cv_exeext 4032 4033rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4034ac_clean_files=$ac_clean_files_save 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4036$as_echo_n "checking for suffix of executables... " >&6; } 4037if { { ac_try="$ac_link" 4038case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4043$as_echo "$ac_try_echo"; } >&5 4044 (eval "$ac_link") 2>&5 4045 ac_status=$? 4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4047 test $ac_status = 0; }; then : 4048 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4049# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4050# work properly (i.e., refer to `conftest.exe'), while it won't with 4051# `rm'. 4052for ac_file in conftest.exe conftest conftest.*; do 4053 test -f "$ac_file" || continue 4054 case $ac_file in 4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4056 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4057 break;; 4058 * ) break;; 4059 esac 4060done 4061else 4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4064as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4065See \`config.log' for more details" "$LINENO" 5; } 4066fi 4067rm -f conftest conftest$ac_cv_exeext 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4069$as_echo "$ac_cv_exeext" >&6; } 4070 4071rm -f conftest.$ac_ext 4072EXEEXT=$ac_cv_exeext 4073ac_exeext=$EXEEXT 4074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076#include <stdio.h> 4077int 4078main () 4079{ 4080FILE *f = fopen ("conftest.out", "w"); 4081 return ferror (f) || fclose (f) != 0; 4082 4083 ; 4084 return 0; 4085} 4086_ACEOF 4087ac_clean_files="$ac_clean_files conftest.out" 4088# Check that the compiler produces executables we can run. If not, either 4089# the compiler is broken, or we cross compile. 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4091$as_echo_n "checking whether we are cross compiling... " >&6; } 4092if test "$cross_compiling" != yes; then 4093 { { ac_try="$ac_link" 4094case "(($ac_try" in 4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4096 *) ac_try_echo=$ac_try;; 4097esac 4098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4099$as_echo "$ac_try_echo"; } >&5 4100 (eval "$ac_link") 2>&5 4101 ac_status=$? 4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4103 test $ac_status = 0; } 4104 if { ac_try='./conftest$ac_cv_exeext' 4105 { { case "(($ac_try" in 4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4107 *) ac_try_echo=$ac_try;; 4108esac 4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4110$as_echo "$ac_try_echo"; } >&5 4111 (eval "$ac_try") 2>&5 4112 ac_status=$? 4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4114 test $ac_status = 0; }; }; then 4115 cross_compiling=no 4116 else 4117 if test "$cross_compiling" = maybe; then 4118 cross_compiling=yes 4119 else 4120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4122as_fn_error $? "cannot run C compiled programs. 4123If you meant to cross compile, use \`--host'. 4124See \`config.log' for more details" "$LINENO" 5; } 4125 fi 4126 fi 4127fi 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4129$as_echo "$cross_compiling" >&6; } 4130 4131rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4132ac_clean_files=$ac_clean_files_save 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4134$as_echo_n "checking for suffix of object files... " >&6; } 4135if ${ac_cv_objext+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140 4141int 4142main () 4143{ 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149rm -f conftest.o conftest.obj 4150if { { ac_try="$ac_compile" 4151case "(($ac_try" in 4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4153 *) ac_try_echo=$ac_try;; 4154esac 4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4156$as_echo "$ac_try_echo"; } >&5 4157 (eval "$ac_compile") 2>&5 4158 ac_status=$? 4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4160 test $ac_status = 0; }; then : 4161 for ac_file in conftest.o conftest.obj conftest.*; do 4162 test -f "$ac_file" || continue; 4163 case $ac_file in 4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4166 break;; 4167 esac 4168done 4169else 4170 $as_echo "$as_me: failed program was:" >&5 4171sed 's/^/| /' conftest.$ac_ext >&5 4172 4173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4175as_fn_error $? "cannot compute suffix of object files: cannot compile 4176See \`config.log' for more details" "$LINENO" 5; } 4177fi 4178rm -f conftest.$ac_cv_objext conftest.$ac_ext 4179fi 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4181$as_echo "$ac_cv_objext" >&6; } 4182OBJEXT=$ac_cv_objext 4183ac_objext=$OBJEXT 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4185$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4186if ${ac_cv_c_compiler_gnu+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191 4192int 4193main () 4194{ 4195#ifndef __GNUC__ 4196 choke me 4197#endif 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203if ac_fn_c_try_compile "$LINENO"; then : 4204 ac_compiler_gnu=yes 4205else 4206 ac_compiler_gnu=no 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4209ac_cv_c_compiler_gnu=$ac_compiler_gnu 4210 4211fi 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4213$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4214if test $ac_compiler_gnu = yes; then 4215 GCC=yes 4216else 4217 GCC= 4218fi 4219ac_test_CFLAGS=${CFLAGS+set} 4220ac_save_CFLAGS=$CFLAGS 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4222$as_echo_n "checking whether $CC accepts -g... " >&6; } 4223if ${ac_cv_prog_cc_g+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 ac_save_c_werror_flag=$ac_c_werror_flag 4227 ac_c_werror_flag=yes 4228 ac_cv_prog_cc_g=no 4229 CFLAGS="-g" 4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4231/* end confdefs.h. */ 4232 4233int 4234main () 4235{ 4236 4237 ; 4238 return 0; 4239} 4240_ACEOF 4241if ac_fn_c_try_compile "$LINENO"; then : 4242 ac_cv_prog_cc_g=yes 4243else 4244 CFLAGS="" 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247 4248int 4249main () 4250{ 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256if ac_fn_c_try_compile "$LINENO"; then : 4257 4258else 4259 ac_c_werror_flag=$ac_save_c_werror_flag 4260 CFLAGS="-g" 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262/* end confdefs.h. */ 4263 4264int 4265main () 4266{ 4267 4268 ; 4269 return 0; 4270} 4271_ACEOF 4272if ac_fn_c_try_compile "$LINENO"; then : 4273 ac_cv_prog_cc_g=yes 4274fi 4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4276fi 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4278fi 4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4280 ac_c_werror_flag=$ac_save_c_werror_flag 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4283$as_echo "$ac_cv_prog_cc_g" >&6; } 4284if test "$ac_test_CFLAGS" = set; then 4285 CFLAGS=$ac_save_CFLAGS 4286elif test $ac_cv_prog_cc_g = yes; then 4287 if test "$GCC" = yes; then 4288 CFLAGS="-g -O2" 4289 else 4290 CFLAGS="-g" 4291 fi 4292else 4293 if test "$GCC" = yes; then 4294 CFLAGS="-O2" 4295 else 4296 CFLAGS= 4297 fi 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4300$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4301if ${ac_cv_prog_cc_c89+:} false; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 ac_cv_prog_cc_c89=no 4305ac_save_CC=$CC 4306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308#include <stdarg.h> 4309#include <stdio.h> 4310struct stat; 4311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4312struct buf { int x; }; 4313FILE * (*rcsopen) (struct buf *, struct stat *, int); 4314static char *e (p, i) 4315 char **p; 4316 int i; 4317{ 4318 return p[i]; 4319} 4320static char *f (char * (*g) (char **, int), char **p, ...) 4321{ 4322 char *s; 4323 va_list v; 4324 va_start (v,p); 4325 s = g (p, va_arg (v,int)); 4326 va_end (v); 4327 return s; 4328} 4329 4330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4331 function prototypes and stuff, but not '\xHH' hex character constants. 4332 These don't provoke an error unfortunately, instead are silently treated 4333 as 'x'. The following induces an error, until -std is added to get 4334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4335 array size at least. It's necessary to write '\x00'==0 to get something 4336 that's true only with -std. */ 4337int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4338 4339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4340 inside strings and character constants. */ 4341#define FOO(x) 'x' 4342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4343 4344int test (int i, double x); 4345struct s1 {int (*f) (int a);}; 4346struct s2 {int (*f) (double a);}; 4347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4348int argc; 4349char **argv; 4350int 4351main () 4352{ 4353return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4354 ; 4355 return 0; 4356} 4357_ACEOF 4358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4360do 4361 CC="$ac_save_CC $ac_arg" 4362 if ac_fn_c_try_compile "$LINENO"; then : 4363 ac_cv_prog_cc_c89=$ac_arg 4364fi 4365rm -f core conftest.err conftest.$ac_objext 4366 test "x$ac_cv_prog_cc_c89" != "xno" && break 4367done 4368rm -f conftest.$ac_ext 4369CC=$ac_save_CC 4370 4371fi 4372# AC_CACHE_VAL 4373case "x$ac_cv_prog_cc_c89" in 4374 x) 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4376$as_echo "none needed" >&6; } ;; 4377 xno) 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4379$as_echo "unsupported" >&6; } ;; 4380 *) 4381 CC="$CC $ac_cv_prog_cc_c89" 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4383$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4384esac 4385if test "x$ac_cv_prog_cc_c89" != xno; then : 4386 4387fi 4388 4389ac_ext=c 4390ac_cpp='$CPP $CPPFLAGS' 4391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4393ac_compiler_gnu=$ac_cv_c_compiler_gnu 4394 4395ac_ext=c 4396ac_cpp='$CPP $CPPFLAGS' 4397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4399ac_compiler_gnu=$ac_cv_c_compiler_gnu 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4401$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4402if ${am_cv_prog_cc_c_o+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407 4408int 4409main () 4410{ 4411 4412 ; 4413 return 0; 4414} 4415_ACEOF 4416 # Make sure it works both with $CC and with simple cc. 4417 # Following AC_PROG_CC_C_O, we do the test twice because some 4418 # compilers refuse to overwrite an existing .o file with -o, 4419 # though they will create one. 4420 am_cv_prog_cc_c_o=yes 4421 for am_i in 1 2; do 4422 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4423 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4424 ac_status=$? 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); } \ 4427 && test -f conftest2.$ac_objext; then 4428 : OK 4429 else 4430 am_cv_prog_cc_c_o=no 4431 break 4432 fi 4433 done 4434 rm -f core conftest* 4435 unset am_i 4436fi 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4438$as_echo "$am_cv_prog_cc_c_o" >&6; } 4439if test "$am_cv_prog_cc_c_o" != yes; then 4440 # Losing compiler, so override with the script. 4441 # FIXME: It is wrong to rewrite CC. 4442 # But if we don't then we get into trouble of one sort or another. 4443 # A longer-term fix would be to have automake use am__CC in this case, 4444 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4445 CC="$am_aux_dir/compile $CC" 4446fi 4447ac_ext=c 4448ac_cpp='$CPP $CPPFLAGS' 4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4451ac_compiler_gnu=$ac_cv_c_compiler_gnu 4452 4453 4454depcc="$CC" am_compiler_list= 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4457$as_echo_n "checking dependency style of $depcc... " >&6; } 4458if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4462 # We make a subdir and do the tests there. Otherwise we can end up 4463 # making bogus files that we don't know about and never remove. For 4464 # instance it was reported that on HP-UX the gcc test will end up 4465 # making a dummy file named 'D' -- because '-MD' means "put the output 4466 # in D". 4467 rm -rf conftest.dir 4468 mkdir conftest.dir 4469 # Copy depcomp to subdir because otherwise we won't find it if we're 4470 # using a relative directory. 4471 cp "$am_depcomp" conftest.dir 4472 cd conftest.dir 4473 # We will build objects and dependencies in a subdirectory because 4474 # it helps to detect inapplicable dependency modes. For instance 4475 # both Tru64's cc and ICC support -MD to output dependencies as a 4476 # side effect of compilation, but ICC will put the dependencies in 4477 # the current directory while Tru64 will put them in the object 4478 # directory. 4479 mkdir sub 4480 4481 am_cv_CC_dependencies_compiler_type=none 4482 if test "$am_compiler_list" = ""; then 4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4484 fi 4485 am__universal=false 4486 case " $depcc " in #( 4487 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4488 esac 4489 4490 for depmode in $am_compiler_list; do 4491 # Setup a source with many dependencies, because some compilers 4492 # like to wrap large dependency lists on column 80 (with \), and 4493 # we should not choose a depcomp mode which is confused by this. 4494 # 4495 # We need to recreate these files for each test, as the compiler may 4496 # overwrite some of them when testing with obscure command lines. 4497 # This happens at least with the AIX C compiler. 4498 : > sub/conftest.c 4499 for i in 1 2 3 4 5 6; do 4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4502 # Solaris 10 /bin/sh. 4503 echo '/* dummy */' > sub/conftst$i.h 4504 done 4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4506 4507 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4508 # mode. It turns out that the SunPro C++ compiler does not properly 4509 # handle '-M -o', and we need to detect this. Also, some Intel 4510 # versions had trouble with output in subdirs. 4511 am__obj=sub/conftest.${OBJEXT-o} 4512 am__minus_obj="-o $am__obj" 4513 case $depmode in 4514 gcc) 4515 # This depmode causes a compiler race in universal mode. 4516 test "$am__universal" = false || continue 4517 ;; 4518 nosideeffect) 4519 # After this tag, mechanisms are not by side-effect, so they'll 4520 # only be used when explicitly requested. 4521 if test "x$enable_dependency_tracking" = xyes; then 4522 continue 4523 else 4524 break 4525 fi 4526 ;; 4527 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4528 # This compiler won't grok '-c -o', but also, the minuso test has 4529 # not run yet. These depmodes are late enough in the game, and 4530 # so weak that their functioning should not be impacted. 4531 am__obj=conftest.${OBJEXT-o} 4532 am__minus_obj= 4533 ;; 4534 none) break ;; 4535 esac 4536 if depmode=$depmode \ 4537 source=sub/conftest.c object=$am__obj \ 4538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4540 >/dev/null 2>conftest.err && 4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4545 # icc doesn't choke on unknown options, it will just issue warnings 4546 # or remarks (even with -Werror). So we grep stderr for any message 4547 # that says an option was ignored or not supported. 4548 # When given -MP, icc 7.0 and 7.1 complain thusly: 4549 # icc: Command line warning: ignoring option '-M'; no argument required 4550 # The diagnosis changed in icc 8.0: 4551 # icc: Command line remark: option '-MP' not supported 4552 if (grep 'ignoring option' conftest.err || 4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4554 am_cv_CC_dependencies_compiler_type=$depmode 4555 break 4556 fi 4557 fi 4558 done 4559 4560 cd .. 4561 rm -rf conftest.dir 4562else 4563 am_cv_CC_dependencies_compiler_type=none 4564fi 4565 4566fi 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4568$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4570 4571 if 4572 test "x$enable_dependency_tracking" != xno \ 4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4574 am__fastdepCC_TRUE= 4575 am__fastdepCC_FALSE='#' 4576else 4577 am__fastdepCC_TRUE='#' 4578 am__fastdepCC_FALSE= 4579fi 4580 4581 4582 4583if test -n "$ac_tool_prefix"; then 4584 for ac_prog in ar lib "link -lib" 4585 do 4586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4587set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4589$as_echo_n "checking for $ac_word... " >&6; } 4590if ${ac_cv_prog_AR+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if test -n "$AR"; then 4594 ac_cv_prog_AR="$AR" # Let the user override the test. 4595else 4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4597for as_dir in $PATH 4598do 4599 IFS=$as_save_IFS 4600 test -z "$as_dir" && as_dir=. 4601 for ac_exec_ext in '' $ac_executable_extensions; do 4602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4603 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4605 break 2 4606 fi 4607done 4608 done 4609IFS=$as_save_IFS 4610 4611fi 4612fi 4613AR=$ac_cv_prog_AR 4614if test -n "$AR"; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4616$as_echo "$AR" >&6; } 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619$as_echo "no" >&6; } 4620fi 4621 4622 4623 test -n "$AR" && break 4624 done 4625fi 4626if test -z "$AR"; then 4627 ac_ct_AR=$AR 4628 for ac_prog in ar lib "link -lib" 4629do 4630 # Extract the first word of "$ac_prog", so it can be a program name with args. 4631set dummy $ac_prog; ac_word=$2 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633$as_echo_n "checking for $ac_word... " >&6; } 4634if ${ac_cv_prog_ac_ct_AR+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 if test -n "$ac_ct_AR"; then 4638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4639else 4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641for as_dir in $PATH 4642do 4643 IFS=$as_save_IFS 4644 test -z "$as_dir" && as_dir=. 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4647 ac_cv_prog_ac_ct_AR="$ac_prog" 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4649 break 2 4650 fi 4651done 4652 done 4653IFS=$as_save_IFS 4654 4655fi 4656fi 4657ac_ct_AR=$ac_cv_prog_ac_ct_AR 4658if test -n "$ac_ct_AR"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4660$as_echo "$ac_ct_AR" >&6; } 4661else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4663$as_echo "no" >&6; } 4664fi 4665 4666 4667 test -n "$ac_ct_AR" && break 4668done 4669 4670 if test "x$ac_ct_AR" = x; then 4671 AR="false" 4672 else 4673 case $cross_compiling:$ac_tool_warned in 4674yes:) 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4677ac_tool_warned=yes ;; 4678esac 4679 AR=$ac_ct_AR 4680 fi 4681fi 4682 4683: ${AR=ar} 4684 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4686$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4687if ${am_cv_ar_interface+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 ac_ext=c 4691ac_cpp='$CPP $CPPFLAGS' 4692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4694ac_compiler_gnu=$ac_cv_c_compiler_gnu 4695 4696 am_cv_ar_interface=ar 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699int some_variable = 0; 4700_ACEOF 4701if ac_fn_c_try_compile "$LINENO"; then : 4702 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4704 (eval $am_ar_try) 2>&5 4705 ac_status=$? 4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4707 test $ac_status = 0; } 4708 if test "$ac_status" -eq 0; then 4709 am_cv_ar_interface=ar 4710 else 4711 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4713 (eval $am_ar_try) 2>&5 4714 ac_status=$? 4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4716 test $ac_status = 0; } 4717 if test "$ac_status" -eq 0; then 4718 am_cv_ar_interface=lib 4719 else 4720 am_cv_ar_interface=unknown 4721 fi 4722 fi 4723 rm -f conftest.lib libconftest.a 4724 4725fi 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727 ac_ext=c 4728ac_cpp='$CPP $CPPFLAGS' 4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4731ac_compiler_gnu=$ac_cv_c_compiler_gnu 4732 4733fi 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4735$as_echo "$am_cv_ar_interface" >&6; } 4736 4737case $am_cv_ar_interface in 4738ar) 4739 ;; 4740lib) 4741 # Microsoft lib, so override with the ar-lib wrapper script. 4742 # FIXME: It is wrong to rewrite AR. 4743 # But if we don't then we get into trouble of one sort or another. 4744 # A longer-term fix would be to have automake use am__AR in this case, 4745 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4746 # similar. 4747 AR="$am_aux_dir/ar-lib $AR" 4748 ;; 4749unknown) 4750 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4751 ;; 4752esac 4753 4754 4755 4756ac_config_commands="$ac_config_commands include/libsemigroups-config.hpp" 4757 4758 4759ac_ext=cpp 4760ac_cpp='$CXXCPP $CPPFLAGS' 4761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4764if test -z "$CXX"; then 4765 if test -n "$CCC"; then 4766 CXX=$CCC 4767 else 4768 if test -n "$ac_tool_prefix"; then 4769 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4770 do 4771 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4772set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4774$as_echo_n "checking for $ac_word... " >&6; } 4775if ${ac_cv_prog_CXX+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 if test -n "$CXX"; then 4779 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4780else 4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4782for as_dir in $PATH 4783do 4784 IFS=$as_save_IFS 4785 test -z "$as_dir" && as_dir=. 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4788 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4790 break 2 4791 fi 4792done 4793 done 4794IFS=$as_save_IFS 4795 4796fi 4797fi 4798CXX=$ac_cv_prog_CXX 4799if test -n "$CXX"; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4801$as_echo "$CXX" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4804$as_echo "no" >&6; } 4805fi 4806 4807 4808 test -n "$CXX" && break 4809 done 4810fi 4811if test -z "$CXX"; then 4812 ac_ct_CXX=$CXX 4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4814do 4815 # Extract the first word of "$ac_prog", so it can be a program name with args. 4816set dummy $ac_prog; ac_word=$2 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4818$as_echo_n "checking for $ac_word... " >&6; } 4819if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 if test -n "$ac_ct_CXX"; then 4823 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4824else 4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4832 ac_cv_prog_ac_ct_CXX="$ac_prog" 4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4834 break 2 4835 fi 4836done 4837 done 4838IFS=$as_save_IFS 4839 4840fi 4841fi 4842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4843if test -n "$ac_ct_CXX"; then 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4845$as_echo "$ac_ct_CXX" >&6; } 4846else 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4848$as_echo "no" >&6; } 4849fi 4850 4851 4852 test -n "$ac_ct_CXX" && break 4853done 4854 4855 if test "x$ac_ct_CXX" = x; then 4856 CXX="g++" 4857 else 4858 case $cross_compiling:$ac_tool_warned in 4859yes:) 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4862ac_tool_warned=yes ;; 4863esac 4864 CXX=$ac_ct_CXX 4865 fi 4866fi 4867 4868 fi 4869fi 4870# Provide some information about the compiler. 4871$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4872set X $ac_compile 4873ac_compiler=$2 4874for ac_option in --version -v -V -qversion; do 4875 { { ac_try="$ac_compiler $ac_option >&5" 4876case "(($ac_try" in 4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4878 *) ac_try_echo=$ac_try;; 4879esac 4880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4881$as_echo "$ac_try_echo"; } >&5 4882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4883 ac_status=$? 4884 if test -s conftest.err; then 4885 sed '10a\ 4886... rest of stderr output deleted ... 4887 10q' conftest.err >conftest.er1 4888 cat conftest.er1 >&5 4889 fi 4890 rm -f conftest.er1 conftest.err 4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4892 test $ac_status = 0; } 4893done 4894 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4896$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4897if ${ac_cv_cxx_compiler_gnu+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902 4903int 4904main () 4905{ 4906#ifndef __GNUC__ 4907 choke me 4908#endif 4909 4910 ; 4911 return 0; 4912} 4913_ACEOF 4914if ac_fn_cxx_try_compile "$LINENO"; then : 4915 ac_compiler_gnu=yes 4916else 4917 ac_compiler_gnu=no 4918fi 4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4920ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4921 4922fi 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4924$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4925if test $ac_compiler_gnu = yes; then 4926 GXX=yes 4927else 4928 GXX= 4929fi 4930ac_test_CXXFLAGS=${CXXFLAGS+set} 4931ac_save_CXXFLAGS=$CXXFLAGS 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4933$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4934if ${ac_cv_prog_cxx_g+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4938 ac_cxx_werror_flag=yes 4939 ac_cv_prog_cxx_g=no 4940 CXXFLAGS="-g" 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943 4944int 4945main () 4946{ 4947 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952if ac_fn_cxx_try_compile "$LINENO"; then : 4953 ac_cv_prog_cxx_g=yes 4954else 4955 CXXFLAGS="" 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958 4959int 4960main () 4961{ 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967if ac_fn_cxx_try_compile "$LINENO"; then : 4968 4969else 4970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4971 CXXFLAGS="-g" 4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4973/* end confdefs.h. */ 4974 4975int 4976main () 4977{ 4978 4979 ; 4980 return 0; 4981} 4982_ACEOF 4983if ac_fn_cxx_try_compile "$LINENO"; then : 4984 ac_cv_prog_cxx_g=yes 4985fi 4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989fi 4990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4992fi 4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4994$as_echo "$ac_cv_prog_cxx_g" >&6; } 4995if test "$ac_test_CXXFLAGS" = set; then 4996 CXXFLAGS=$ac_save_CXXFLAGS 4997elif test $ac_cv_prog_cxx_g = yes; then 4998 if test "$GXX" = yes; then 4999 CXXFLAGS="-g -O2" 5000 else 5001 CXXFLAGS="-g" 5002 fi 5003else 5004 if test "$GXX" = yes; then 5005 CXXFLAGS="-O2" 5006 else 5007 CXXFLAGS= 5008 fi 5009fi 5010ac_ext=c 5011ac_cpp='$CPP $CPPFLAGS' 5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5014ac_compiler_gnu=$ac_cv_c_compiler_gnu 5015 5016depcc="$CXX" am_compiler_list= 5017 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5019$as_echo_n "checking dependency style of $depcc... " >&6; } 5020if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5024 # We make a subdir and do the tests there. Otherwise we can end up 5025 # making bogus files that we don't know about and never remove. For 5026 # instance it was reported that on HP-UX the gcc test will end up 5027 # making a dummy file named 'D' -- because '-MD' means "put the output 5028 # in D". 5029 rm -rf conftest.dir 5030 mkdir conftest.dir 5031 # Copy depcomp to subdir because otherwise we won't find it if we're 5032 # using a relative directory. 5033 cp "$am_depcomp" conftest.dir 5034 cd conftest.dir 5035 # We will build objects and dependencies in a subdirectory because 5036 # it helps to detect inapplicable dependency modes. For instance 5037 # both Tru64's cc and ICC support -MD to output dependencies as a 5038 # side effect of compilation, but ICC will put the dependencies in 5039 # the current directory while Tru64 will put them in the object 5040 # directory. 5041 mkdir sub 5042 5043 am_cv_CXX_dependencies_compiler_type=none 5044 if test "$am_compiler_list" = ""; then 5045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5046 fi 5047 am__universal=false 5048 case " $depcc " in #( 5049 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5050 esac 5051 5052 for depmode in $am_compiler_list; do 5053 # Setup a source with many dependencies, because some compilers 5054 # like to wrap large dependency lists on column 80 (with \), and 5055 # we should not choose a depcomp mode which is confused by this. 5056 # 5057 # We need to recreate these files for each test, as the compiler may 5058 # overwrite some of them when testing with obscure command lines. 5059 # This happens at least with the AIX C compiler. 5060 : > sub/conftest.c 5061 for i in 1 2 3 4 5 6; do 5062 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5063 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5064 # Solaris 10 /bin/sh. 5065 echo '/* dummy */' > sub/conftst$i.h 5066 done 5067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5068 5069 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5070 # mode. It turns out that the SunPro C++ compiler does not properly 5071 # handle '-M -o', and we need to detect this. Also, some Intel 5072 # versions had trouble with output in subdirs. 5073 am__obj=sub/conftest.${OBJEXT-o} 5074 am__minus_obj="-o $am__obj" 5075 case $depmode in 5076 gcc) 5077 # This depmode causes a compiler race in universal mode. 5078 test "$am__universal" = false || continue 5079 ;; 5080 nosideeffect) 5081 # After this tag, mechanisms are not by side-effect, so they'll 5082 # only be used when explicitly requested. 5083 if test "x$enable_dependency_tracking" = xyes; then 5084 continue 5085 else 5086 break 5087 fi 5088 ;; 5089 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5090 # This compiler won't grok '-c -o', but also, the minuso test has 5091 # not run yet. These depmodes are late enough in the game, and 5092 # so weak that their functioning should not be impacted. 5093 am__obj=conftest.${OBJEXT-o} 5094 am__minus_obj= 5095 ;; 5096 none) break ;; 5097 esac 5098 if depmode=$depmode \ 5099 source=sub/conftest.c object=$am__obj \ 5100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5102 >/dev/null 2>conftest.err && 5103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5107 # icc doesn't choke on unknown options, it will just issue warnings 5108 # or remarks (even with -Werror). So we grep stderr for any message 5109 # that says an option was ignored or not supported. 5110 # When given -MP, icc 7.0 and 7.1 complain thusly: 5111 # icc: Command line warning: ignoring option '-M'; no argument required 5112 # The diagnosis changed in icc 8.0: 5113 # icc: Command line remark: option '-MP' not supported 5114 if (grep 'ignoring option' conftest.err || 5115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5116 am_cv_CXX_dependencies_compiler_type=$depmode 5117 break 5118 fi 5119 fi 5120 done 5121 5122 cd .. 5123 rm -rf conftest.dir 5124else 5125 am_cv_CXX_dependencies_compiler_type=none 5126fi 5127 5128fi 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5130$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5131CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5132 5133 if 5134 test "x$enable_dependency_tracking" != xno \ 5135 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5136 am__fastdepCXX_TRUE= 5137 am__fastdepCXX_FALSE='#' 5138else 5139 am__fastdepCXX_TRUE='#' 5140 am__fastdepCXX_FALSE= 5141fi 5142 5143 5144ac_ext=cpp 5145ac_cpp='$CXXCPP $CPPFLAGS' 5146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5149 5150 5151 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 5152 ac_ext=cpp 5153ac_cpp='$CXXCPP $CPPFLAGS' 5154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5157 ac_success=no 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 5159$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 5160if ${ax_cv_cxx_compile_cxx11+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165 5166 5167// If the compiler admits that it is not ready for C++11, why torture it? 5168// Hopefully, this will speed up the test. 5169 5170#ifndef __cplusplus 5171 5172#error "This is not a C++ compiler" 5173 5174#elif __cplusplus < 201103L 5175 5176#error "This is not a C++11 compiler" 5177 5178#else 5179 5180namespace cxx11 5181{ 5182 5183 namespace test_static_assert 5184 { 5185 5186 template <typename T> 5187 struct check 5188 { 5189 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5190 }; 5191 5192 } 5193 5194 namespace test_final_override 5195 { 5196 5197 struct Base 5198 { 5199 virtual void f() {} 5200 }; 5201 5202 struct Derived : public Base 5203 { 5204 virtual void f() override {} 5205 }; 5206 5207 } 5208 5209 namespace test_double_right_angle_brackets 5210 { 5211 5212 template < typename T > 5213 struct check {}; 5214 5215 typedef check<void> single_type; 5216 typedef check<check<void>> double_type; 5217 typedef check<check<check<void>>> triple_type; 5218 typedef check<check<check<check<void>>>> quadruple_type; 5219 5220 } 5221 5222 namespace test_decltype 5223 { 5224 5225 int 5226 f() 5227 { 5228 int a = 1; 5229 decltype(a) b = 2; 5230 return a + b; 5231 } 5232 5233 } 5234 5235 namespace test_type_deduction 5236 { 5237 5238 template < typename T1, typename T2 > 5239 struct is_same 5240 { 5241 static const bool value = false; 5242 }; 5243 5244 template < typename T > 5245 struct is_same<T, T> 5246 { 5247 static const bool value = true; 5248 }; 5249 5250 template < typename T1, typename T2 > 5251 auto 5252 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5253 { 5254 return a1 + a2; 5255 } 5256 5257 int 5258 test(const int c, volatile int v) 5259 { 5260 static_assert(is_same<int, decltype(0)>::value == true, ""); 5261 static_assert(is_same<int, decltype(c)>::value == false, ""); 5262 static_assert(is_same<int, decltype(v)>::value == false, ""); 5263 auto ac = c; 5264 auto av = v; 5265 auto sumi = ac + av + 'x'; 5266 auto sumf = ac + av + 1.0; 5267 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5268 static_assert(is_same<int, decltype(av)>::value == true, ""); 5269 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5270 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5271 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5272 return (sumf > 0.0) ? sumi : add(c, v); 5273 } 5274 5275 } 5276 5277 namespace test_noexcept 5278 { 5279 5280 int f() { return 0; } 5281 int g() noexcept { return 0; } 5282 5283 static_assert(noexcept(f()) == false, ""); 5284 static_assert(noexcept(g()) == true, ""); 5285 5286 } 5287 5288 namespace test_constexpr 5289 { 5290 5291 template < typename CharT > 5292 unsigned long constexpr 5293 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5294 { 5295 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5296 } 5297 5298 template < typename CharT > 5299 unsigned long constexpr 5300 strlen_c(const CharT *const s) noexcept 5301 { 5302 return strlen_c_r(s, 0UL); 5303 } 5304 5305 static_assert(strlen_c("") == 0UL, ""); 5306 static_assert(strlen_c("1") == 1UL, ""); 5307 static_assert(strlen_c("example") == 7UL, ""); 5308 static_assert(strlen_c("another\0example") == 7UL, ""); 5309 5310 } 5311 5312 namespace test_rvalue_references 5313 { 5314 5315 template < int N > 5316 struct answer 5317 { 5318 static constexpr int value = N; 5319 }; 5320 5321 answer<1> f(int&) { return answer<1>(); } 5322 answer<2> f(const int&) { return answer<2>(); } 5323 answer<3> f(int&&) { return answer<3>(); } 5324 5325 void 5326 test() 5327 { 5328 int i = 0; 5329 const int c = 0; 5330 static_assert(decltype(f(i))::value == 1, ""); 5331 static_assert(decltype(f(c))::value == 2, ""); 5332 static_assert(decltype(f(0))::value == 3, ""); 5333 } 5334 5335 } 5336 5337 namespace test_uniform_initialization 5338 { 5339 5340 struct test 5341 { 5342 static const int zero {}; 5343 static const int one {1}; 5344 }; 5345 5346 static_assert(test::zero == 0, ""); 5347 static_assert(test::one == 1, ""); 5348 5349 } 5350 5351 namespace test_lambdas 5352 { 5353 5354 void 5355 test1() 5356 { 5357 auto lambda1 = [](){}; 5358 auto lambda2 = lambda1; 5359 lambda1(); 5360 lambda2(); 5361 } 5362 5363 int 5364 test2() 5365 { 5366 auto a = [](int i, int j){ return i + j; }(1, 2); 5367 auto b = []() -> int { return '0'; }(); 5368 auto c = [=](){ return a + b; }(); 5369 auto d = [&](){ return c; }(); 5370 auto e = [a, &b](int x) mutable { 5371 const auto identity = [](int y){ return y; }; 5372 for (auto i = 0; i < a; ++i) 5373 a += b--; 5374 return x + identity(a + b); 5375 }(0); 5376 return a + b + c + d + e; 5377 } 5378 5379 int 5380 test3() 5381 { 5382 const auto nullary = [](){ return 0; }; 5383 const auto unary = [](int x){ return x; }; 5384 using nullary_t = decltype(nullary); 5385 using unary_t = decltype(unary); 5386 const auto higher1st = [](nullary_t f){ return f(); }; 5387 const auto higher2nd = [unary](nullary_t f1){ 5388 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5389 }; 5390 return higher1st(nullary) + higher2nd(nullary)(unary); 5391 } 5392 5393 } 5394 5395 namespace test_variadic_templates 5396 { 5397 5398 template <int...> 5399 struct sum; 5400 5401 template <int N0, int... N1toN> 5402 struct sum<N0, N1toN...> 5403 { 5404 static constexpr auto value = N0 + sum<N1toN...>::value; 5405 }; 5406 5407 template <> 5408 struct sum<> 5409 { 5410 static constexpr auto value = 0; 5411 }; 5412 5413 static_assert(sum<>::value == 0, ""); 5414 static_assert(sum<1>::value == 1, ""); 5415 static_assert(sum<23>::value == 23, ""); 5416 static_assert(sum<1, 2>::value == 3, ""); 5417 static_assert(sum<5, 5, 11>::value == 21, ""); 5418 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5419 5420 } 5421 5422 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5423 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5424 // because of this. 5425 namespace test_template_alias_sfinae 5426 { 5427 5428 struct foo {}; 5429 5430 template<typename T> 5431 using member = typename T::member_type; 5432 5433 template<typename T> 5434 void func(...) {} 5435 5436 template<typename T> 5437 void func(member<T>*) {} 5438 5439 void test(); 5440 5441 void test() { func<foo>(0); } 5442 5443 } 5444 5445} // namespace cxx11 5446 5447#endif // __cplusplus >= 201103L 5448 5449 5450 5451_ACEOF 5452if ac_fn_cxx_try_compile "$LINENO"; then : 5453 ax_cv_cxx_compile_cxx11=yes 5454else 5455 ax_cv_cxx_compile_cxx11=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458fi 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 5460$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 5461 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 5462 ac_success=yes 5463 fi 5464 5465 if test x$ac_success = xno; then 5466 for alternative in ${ax_cxx_compile_alternatives}; do 5467 switch="-std=gnu++${alternative}" 5468 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5470$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5471if eval \${$cachevar+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 ac_save_CXX="$CXX" 5475 CXX="$CXX $switch" 5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5477/* end confdefs.h. */ 5478 5479 5480// If the compiler admits that it is not ready for C++11, why torture it? 5481// Hopefully, this will speed up the test. 5482 5483#ifndef __cplusplus 5484 5485#error "This is not a C++ compiler" 5486 5487#elif __cplusplus < 201103L 5488 5489#error "This is not a C++11 compiler" 5490 5491#else 5492 5493namespace cxx11 5494{ 5495 5496 namespace test_static_assert 5497 { 5498 5499 template <typename T> 5500 struct check 5501 { 5502 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5503 }; 5504 5505 } 5506 5507 namespace test_final_override 5508 { 5509 5510 struct Base 5511 { 5512 virtual void f() {} 5513 }; 5514 5515 struct Derived : public Base 5516 { 5517 virtual void f() override {} 5518 }; 5519 5520 } 5521 5522 namespace test_double_right_angle_brackets 5523 { 5524 5525 template < typename T > 5526 struct check {}; 5527 5528 typedef check<void> single_type; 5529 typedef check<check<void>> double_type; 5530 typedef check<check<check<void>>> triple_type; 5531 typedef check<check<check<check<void>>>> quadruple_type; 5532 5533 } 5534 5535 namespace test_decltype 5536 { 5537 5538 int 5539 f() 5540 { 5541 int a = 1; 5542 decltype(a) b = 2; 5543 return a + b; 5544 } 5545 5546 } 5547 5548 namespace test_type_deduction 5549 { 5550 5551 template < typename T1, typename T2 > 5552 struct is_same 5553 { 5554 static const bool value = false; 5555 }; 5556 5557 template < typename T > 5558 struct is_same<T, T> 5559 { 5560 static const bool value = true; 5561 }; 5562 5563 template < typename T1, typename T2 > 5564 auto 5565 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5566 { 5567 return a1 + a2; 5568 } 5569 5570 int 5571 test(const int c, volatile int v) 5572 { 5573 static_assert(is_same<int, decltype(0)>::value == true, ""); 5574 static_assert(is_same<int, decltype(c)>::value == false, ""); 5575 static_assert(is_same<int, decltype(v)>::value == false, ""); 5576 auto ac = c; 5577 auto av = v; 5578 auto sumi = ac + av + 'x'; 5579 auto sumf = ac + av + 1.0; 5580 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5581 static_assert(is_same<int, decltype(av)>::value == true, ""); 5582 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5583 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5584 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5585 return (sumf > 0.0) ? sumi : add(c, v); 5586 } 5587 5588 } 5589 5590 namespace test_noexcept 5591 { 5592 5593 int f() { return 0; } 5594 int g() noexcept { return 0; } 5595 5596 static_assert(noexcept(f()) == false, ""); 5597 static_assert(noexcept(g()) == true, ""); 5598 5599 } 5600 5601 namespace test_constexpr 5602 { 5603 5604 template < typename CharT > 5605 unsigned long constexpr 5606 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5607 { 5608 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5609 } 5610 5611 template < typename CharT > 5612 unsigned long constexpr 5613 strlen_c(const CharT *const s) noexcept 5614 { 5615 return strlen_c_r(s, 0UL); 5616 } 5617 5618 static_assert(strlen_c("") == 0UL, ""); 5619 static_assert(strlen_c("1") == 1UL, ""); 5620 static_assert(strlen_c("example") == 7UL, ""); 5621 static_assert(strlen_c("another\0example") == 7UL, ""); 5622 5623 } 5624 5625 namespace test_rvalue_references 5626 { 5627 5628 template < int N > 5629 struct answer 5630 { 5631 static constexpr int value = N; 5632 }; 5633 5634 answer<1> f(int&) { return answer<1>(); } 5635 answer<2> f(const int&) { return answer<2>(); } 5636 answer<3> f(int&&) { return answer<3>(); } 5637 5638 void 5639 test() 5640 { 5641 int i = 0; 5642 const int c = 0; 5643 static_assert(decltype(f(i))::value == 1, ""); 5644 static_assert(decltype(f(c))::value == 2, ""); 5645 static_assert(decltype(f(0))::value == 3, ""); 5646 } 5647 5648 } 5649 5650 namespace test_uniform_initialization 5651 { 5652 5653 struct test 5654 { 5655 static const int zero {}; 5656 static const int one {1}; 5657 }; 5658 5659 static_assert(test::zero == 0, ""); 5660 static_assert(test::one == 1, ""); 5661 5662 } 5663 5664 namespace test_lambdas 5665 { 5666 5667 void 5668 test1() 5669 { 5670 auto lambda1 = [](){}; 5671 auto lambda2 = lambda1; 5672 lambda1(); 5673 lambda2(); 5674 } 5675 5676 int 5677 test2() 5678 { 5679 auto a = [](int i, int j){ return i + j; }(1, 2); 5680 auto b = []() -> int { return '0'; }(); 5681 auto c = [=](){ return a + b; }(); 5682 auto d = [&](){ return c; }(); 5683 auto e = [a, &b](int x) mutable { 5684 const auto identity = [](int y){ return y; }; 5685 for (auto i = 0; i < a; ++i) 5686 a += b--; 5687 return x + identity(a + b); 5688 }(0); 5689 return a + b + c + d + e; 5690 } 5691 5692 int 5693 test3() 5694 { 5695 const auto nullary = [](){ return 0; }; 5696 const auto unary = [](int x){ return x; }; 5697 using nullary_t = decltype(nullary); 5698 using unary_t = decltype(unary); 5699 const auto higher1st = [](nullary_t f){ return f(); }; 5700 const auto higher2nd = [unary](nullary_t f1){ 5701 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5702 }; 5703 return higher1st(nullary) + higher2nd(nullary)(unary); 5704 } 5705 5706 } 5707 5708 namespace test_variadic_templates 5709 { 5710 5711 template <int...> 5712 struct sum; 5713 5714 template <int N0, int... N1toN> 5715 struct sum<N0, N1toN...> 5716 { 5717 static constexpr auto value = N0 + sum<N1toN...>::value; 5718 }; 5719 5720 template <> 5721 struct sum<> 5722 { 5723 static constexpr auto value = 0; 5724 }; 5725 5726 static_assert(sum<>::value == 0, ""); 5727 static_assert(sum<1>::value == 1, ""); 5728 static_assert(sum<23>::value == 23, ""); 5729 static_assert(sum<1, 2>::value == 3, ""); 5730 static_assert(sum<5, 5, 11>::value == 21, ""); 5731 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5732 5733 } 5734 5735 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5736 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5737 // because of this. 5738 namespace test_template_alias_sfinae 5739 { 5740 5741 struct foo {}; 5742 5743 template<typename T> 5744 using member = typename T::member_type; 5745 5746 template<typename T> 5747 void func(...) {} 5748 5749 template<typename T> 5750 void func(member<T>*) {} 5751 5752 void test(); 5753 5754 void test() { func<foo>(0); } 5755 5756 } 5757 5758} // namespace cxx11 5759 5760#endif // __cplusplus >= 201103L 5761 5762 5763 5764_ACEOF 5765if ac_fn_cxx_try_compile "$LINENO"; then : 5766 eval $cachevar=yes 5767else 5768 eval $cachevar=no 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771 CXX="$ac_save_CXX" 5772fi 5773eval ac_res=\$$cachevar 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5775$as_echo "$ac_res" >&6; } 5776 if eval test x\$$cachevar = xyes; then 5777 CXX="$CXX $switch" 5778 if test -n "$CXXCPP" ; then 5779 CXXCPP="$CXXCPP $switch" 5780 fi 5781 ac_success=yes 5782 break 5783 fi 5784 done 5785 fi 5786 5787 if test x$ac_success = xno; then 5788 for alternative in ${ax_cxx_compile_alternatives}; do 5789 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 5790 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5792$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5793if eval \${$cachevar+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 ac_save_CXX="$CXX" 5797 CXX="$CXX $switch" 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799/* end confdefs.h. */ 5800 5801 5802// If the compiler admits that it is not ready for C++11, why torture it? 5803// Hopefully, this will speed up the test. 5804 5805#ifndef __cplusplus 5806 5807#error "This is not a C++ compiler" 5808 5809#elif __cplusplus < 201103L 5810 5811#error "This is not a C++11 compiler" 5812 5813#else 5814 5815namespace cxx11 5816{ 5817 5818 namespace test_static_assert 5819 { 5820 5821 template <typename T> 5822 struct check 5823 { 5824 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5825 }; 5826 5827 } 5828 5829 namespace test_final_override 5830 { 5831 5832 struct Base 5833 { 5834 virtual void f() {} 5835 }; 5836 5837 struct Derived : public Base 5838 { 5839 virtual void f() override {} 5840 }; 5841 5842 } 5843 5844 namespace test_double_right_angle_brackets 5845 { 5846 5847 template < typename T > 5848 struct check {}; 5849 5850 typedef check<void> single_type; 5851 typedef check<check<void>> double_type; 5852 typedef check<check<check<void>>> triple_type; 5853 typedef check<check<check<check<void>>>> quadruple_type; 5854 5855 } 5856 5857 namespace test_decltype 5858 { 5859 5860 int 5861 f() 5862 { 5863 int a = 1; 5864 decltype(a) b = 2; 5865 return a + b; 5866 } 5867 5868 } 5869 5870 namespace test_type_deduction 5871 { 5872 5873 template < typename T1, typename T2 > 5874 struct is_same 5875 { 5876 static const bool value = false; 5877 }; 5878 5879 template < typename T > 5880 struct is_same<T, T> 5881 { 5882 static const bool value = true; 5883 }; 5884 5885 template < typename T1, typename T2 > 5886 auto 5887 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5888 { 5889 return a1 + a2; 5890 } 5891 5892 int 5893 test(const int c, volatile int v) 5894 { 5895 static_assert(is_same<int, decltype(0)>::value == true, ""); 5896 static_assert(is_same<int, decltype(c)>::value == false, ""); 5897 static_assert(is_same<int, decltype(v)>::value == false, ""); 5898 auto ac = c; 5899 auto av = v; 5900 auto sumi = ac + av + 'x'; 5901 auto sumf = ac + av + 1.0; 5902 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5903 static_assert(is_same<int, decltype(av)>::value == true, ""); 5904 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5905 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5906 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5907 return (sumf > 0.0) ? sumi : add(c, v); 5908 } 5909 5910 } 5911 5912 namespace test_noexcept 5913 { 5914 5915 int f() { return 0; } 5916 int g() noexcept { return 0; } 5917 5918 static_assert(noexcept(f()) == false, ""); 5919 static_assert(noexcept(g()) == true, ""); 5920 5921 } 5922 5923 namespace test_constexpr 5924 { 5925 5926 template < typename CharT > 5927 unsigned long constexpr 5928 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5929 { 5930 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5931 } 5932 5933 template < typename CharT > 5934 unsigned long constexpr 5935 strlen_c(const CharT *const s) noexcept 5936 { 5937 return strlen_c_r(s, 0UL); 5938 } 5939 5940 static_assert(strlen_c("") == 0UL, ""); 5941 static_assert(strlen_c("1") == 1UL, ""); 5942 static_assert(strlen_c("example") == 7UL, ""); 5943 static_assert(strlen_c("another\0example") == 7UL, ""); 5944 5945 } 5946 5947 namespace test_rvalue_references 5948 { 5949 5950 template < int N > 5951 struct answer 5952 { 5953 static constexpr int value = N; 5954 }; 5955 5956 answer<1> f(int&) { return answer<1>(); } 5957 answer<2> f(const int&) { return answer<2>(); } 5958 answer<3> f(int&&) { return answer<3>(); } 5959 5960 void 5961 test() 5962 { 5963 int i = 0; 5964 const int c = 0; 5965 static_assert(decltype(f(i))::value == 1, ""); 5966 static_assert(decltype(f(c))::value == 2, ""); 5967 static_assert(decltype(f(0))::value == 3, ""); 5968 } 5969 5970 } 5971 5972 namespace test_uniform_initialization 5973 { 5974 5975 struct test 5976 { 5977 static const int zero {}; 5978 static const int one {1}; 5979 }; 5980 5981 static_assert(test::zero == 0, ""); 5982 static_assert(test::one == 1, ""); 5983 5984 } 5985 5986 namespace test_lambdas 5987 { 5988 5989 void 5990 test1() 5991 { 5992 auto lambda1 = [](){}; 5993 auto lambda2 = lambda1; 5994 lambda1(); 5995 lambda2(); 5996 } 5997 5998 int 5999 test2() 6000 { 6001 auto a = [](int i, int j){ return i + j; }(1, 2); 6002 auto b = []() -> int { return '0'; }(); 6003 auto c = [=](){ return a + b; }(); 6004 auto d = [&](){ return c; }(); 6005 auto e = [a, &b](int x) mutable { 6006 const auto identity = [](int y){ return y; }; 6007 for (auto i = 0; i < a; ++i) 6008 a += b--; 6009 return x + identity(a + b); 6010 }(0); 6011 return a + b + c + d + e; 6012 } 6013 6014 int 6015 test3() 6016 { 6017 const auto nullary = [](){ return 0; }; 6018 const auto unary = [](int x){ return x; }; 6019 using nullary_t = decltype(nullary); 6020 using unary_t = decltype(unary); 6021 const auto higher1st = [](nullary_t f){ return f(); }; 6022 const auto higher2nd = [unary](nullary_t f1){ 6023 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 6024 }; 6025 return higher1st(nullary) + higher2nd(nullary)(unary); 6026 } 6027 6028 } 6029 6030 namespace test_variadic_templates 6031 { 6032 6033 template <int...> 6034 struct sum; 6035 6036 template <int N0, int... N1toN> 6037 struct sum<N0, N1toN...> 6038 { 6039 static constexpr auto value = N0 + sum<N1toN...>::value; 6040 }; 6041 6042 template <> 6043 struct sum<> 6044 { 6045 static constexpr auto value = 0; 6046 }; 6047 6048 static_assert(sum<>::value == 0, ""); 6049 static_assert(sum<1>::value == 1, ""); 6050 static_assert(sum<23>::value == 23, ""); 6051 static_assert(sum<1, 2>::value == 3, ""); 6052 static_assert(sum<5, 5, 11>::value == 21, ""); 6053 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 6054 6055 } 6056 6057 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 6058 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 6059 // because of this. 6060 namespace test_template_alias_sfinae 6061 { 6062 6063 struct foo {}; 6064 6065 template<typename T> 6066 using member = typename T::member_type; 6067 6068 template<typename T> 6069 void func(...) {} 6070 6071 template<typename T> 6072 void func(member<T>*) {} 6073 6074 void test(); 6075 6076 void test() { func<foo>(0); } 6077 6078 } 6079 6080} // namespace cxx11 6081 6082#endif // __cplusplus >= 201103L 6083 6084 6085 6086_ACEOF 6087if ac_fn_cxx_try_compile "$LINENO"; then : 6088 eval $cachevar=yes 6089else 6090 eval $cachevar=no 6091fi 6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6093 CXX="$ac_save_CXX" 6094fi 6095eval ac_res=\$$cachevar 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6097$as_echo "$ac_res" >&6; } 6098 if eval test x\$$cachevar = xyes; then 6099 CXX="$CXX $switch" 6100 if test -n "$CXXCPP" ; then 6101 CXXCPP="$CXXCPP $switch" 6102 fi 6103 ac_success=yes 6104 break 6105 fi 6106 done 6107 if test x$ac_success = xyes; then 6108 break 6109 fi 6110 done 6111 fi 6112 ac_ext=cpp 6113ac_cpp='$CXXCPP $CPPFLAGS' 6114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6117 6118 if test x$ax_cxx_compile_cxx11_required = xtrue; then 6119 if test x$ac_success = xno; then 6120 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 6121 fi 6122 fi 6123 if test x$ac_success = xno; then 6124 HAVE_CXX11=0 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 6126$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 6127 else 6128 HAVE_CXX11=1 6129 6130$as_echo "#define HAVE_CXX11 1" >>confdefs.h 6131 6132 fi 6133 6134 6135 6136 6137# Make sure we can run config.sub. 6138$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6139 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6140 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6142$as_echo_n "checking build system type... " >&6; } 6143if ${ac_cv_build+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 ac_build_alias=$build_alias 6147test "x$ac_build_alias" = x && 6148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6149test "x$ac_build_alias" = x && 6150 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6151ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6152 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6153 6154fi 6155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6156$as_echo "$ac_cv_build" >&6; } 6157case $ac_cv_build in 6158*-*-*) ;; 6159*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6160esac 6161build=$ac_cv_build 6162ac_save_IFS=$IFS; IFS='-' 6163set x $ac_cv_build 6164shift 6165build_cpu=$1 6166build_vendor=$2 6167shift; shift 6168# Remember, the first character of IFS is used to create $*, 6169# except with old shells: 6170build_os=$* 6171IFS=$ac_save_IFS 6172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6173 6174 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6176$as_echo_n "checking host system type... " >&6; } 6177if ${ac_cv_host+:} false; then : 6178 $as_echo_n "(cached) " >&6 6179else 6180 if test "x$host_alias" = x; then 6181 ac_cv_host=$ac_cv_build 6182else 6183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6184 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6185fi 6186 6187fi 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6189$as_echo "$ac_cv_host" >&6; } 6190case $ac_cv_host in 6191*-*-*) ;; 6192*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6193esac 6194host=$ac_cv_host 6195ac_save_IFS=$IFS; IFS='-' 6196set x $ac_cv_host 6197shift 6198host_cpu=$1 6199host_vendor=$2 6200shift; shift 6201# Remember, the first character of IFS is used to create $*, 6202# except with old shells: 6203host_os=$* 6204IFS=$ac_save_IFS 6205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6206 6207 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6209$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6210if ${ac_cv_path_SED+:} false; then : 6211 $as_echo_n "(cached) " >&6 6212else 6213 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6214 for ac_i in 1 2 3 4 5 6 7; do 6215 ac_script="$ac_script$as_nl$ac_script" 6216 done 6217 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6218 { ac_script=; unset ac_script;} 6219 if test -z "$SED"; then 6220 ac_path_SED_found=false 6221 # Loop through the user's path and test for each of PROGNAME-LIST 6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223for as_dir in $PATH 6224do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_prog in sed gsed; do 6228 for ac_exec_ext in '' $ac_executable_extensions; do 6229 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6230 as_fn_executable_p "$ac_path_SED" || continue 6231# Check for GNU ac_path_SED and select it if it is found. 6232 # Check for GNU $ac_path_SED 6233case `"$ac_path_SED" --version 2>&1` in 6234*GNU*) 6235 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6236*) 6237 ac_count=0 6238 $as_echo_n 0123456789 >"conftest.in" 6239 while : 6240 do 6241 cat "conftest.in" "conftest.in" >"conftest.tmp" 6242 mv "conftest.tmp" "conftest.in" 6243 cp "conftest.in" "conftest.nl" 6244 $as_echo '' >> "conftest.nl" 6245 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6247 as_fn_arith $ac_count + 1 && ac_count=$as_val 6248 if test $ac_count -gt ${ac_path_SED_max-0}; then 6249 # Best one so far, save it but keep looking for a better one 6250 ac_cv_path_SED="$ac_path_SED" 6251 ac_path_SED_max=$ac_count 6252 fi 6253 # 10*(2^10) chars as input seems more than enough 6254 test $ac_count -gt 10 && break 6255 done 6256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6257esac 6258 6259 $ac_path_SED_found && break 3 6260 done 6261 done 6262 done 6263IFS=$as_save_IFS 6264 if test -z "$ac_cv_path_SED"; then 6265 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6266 fi 6267else 6268 ac_cv_path_SED=$SED 6269fi 6270 6271fi 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6273$as_echo "$ac_cv_path_SED" >&6; } 6274 SED="$ac_cv_path_SED" 6275 rm -f conftest.sed 6276 6277ac_ext=c 6278ac_cpp='$CPP $CPPFLAGS' 6279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6281ac_compiler_gnu=$ac_cv_c_compiler_gnu 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6283$as_echo_n "checking how to run the C preprocessor... " >&6; } 6284# On Suns, sometimes $CPP names a directory. 6285if test -n "$CPP" && test -d "$CPP"; then 6286 CPP= 6287fi 6288if test -z "$CPP"; then 6289 if ${ac_cv_prog_CPP+:} false; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 # Double quotes because CPP needs to be expanded 6293 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6294 do 6295 ac_preproc_ok=false 6296for ac_c_preproc_warn_flag in '' yes 6297do 6298 # Use a header file that comes with gcc, so configuring glibc 6299 # with a fresh cross-compiler works. 6300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6301 # <limits.h> exists even on freestanding compilers. 6302 # On the NeXT, cc -E runs the code through the compiler's parser, 6303 # not just through cpp. "Syntax error" is here to catch this case. 6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305/* end confdefs.h. */ 6306#ifdef __STDC__ 6307# include <limits.h> 6308#else 6309# include <assert.h> 6310#endif 6311 Syntax error 6312_ACEOF 6313if ac_fn_c_try_cpp "$LINENO"; then : 6314 6315else 6316 # Broken: fails on valid input. 6317continue 6318fi 6319rm -f conftest.err conftest.i conftest.$ac_ext 6320 6321 # OK, works on sane cases. Now check whether nonexistent headers 6322 # can be detected and how. 6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325#include <ac_nonexistent.h> 6326_ACEOF 6327if ac_fn_c_try_cpp "$LINENO"; then : 6328 # Broken: success on invalid input. 6329continue 6330else 6331 # Passes both tests. 6332ac_preproc_ok=: 6333break 6334fi 6335rm -f conftest.err conftest.i conftest.$ac_ext 6336 6337done 6338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6339rm -f conftest.i conftest.err conftest.$ac_ext 6340if $ac_preproc_ok; then : 6341 break 6342fi 6343 6344 done 6345 ac_cv_prog_CPP=$CPP 6346 6347fi 6348 CPP=$ac_cv_prog_CPP 6349else 6350 ac_cv_prog_CPP=$CPP 6351fi 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6353$as_echo "$CPP" >&6; } 6354ac_preproc_ok=false 6355for ac_c_preproc_warn_flag in '' yes 6356do 6357 # Use a header file that comes with gcc, so configuring glibc 6358 # with a fresh cross-compiler works. 6359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6360 # <limits.h> exists even on freestanding compilers. 6361 # On the NeXT, cc -E runs the code through the compiler's parser, 6362 # not just through cpp. "Syntax error" is here to catch this case. 6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365#ifdef __STDC__ 6366# include <limits.h> 6367#else 6368# include <assert.h> 6369#endif 6370 Syntax error 6371_ACEOF 6372if ac_fn_c_try_cpp "$LINENO"; then : 6373 6374else 6375 # Broken: fails on valid input. 6376continue 6377fi 6378rm -f conftest.err conftest.i conftest.$ac_ext 6379 6380 # OK, works on sane cases. Now check whether nonexistent headers 6381 # can be detected and how. 6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383/* end confdefs.h. */ 6384#include <ac_nonexistent.h> 6385_ACEOF 6386if ac_fn_c_try_cpp "$LINENO"; then : 6387 # Broken: success on invalid input. 6388continue 6389else 6390 # Passes both tests. 6391ac_preproc_ok=: 6392break 6393fi 6394rm -f conftest.err conftest.i conftest.$ac_ext 6395 6396done 6397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6398rm -f conftest.i conftest.err conftest.$ac_ext 6399if $ac_preproc_ok; then : 6400 6401else 6402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6404as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6405See \`config.log' for more details" "$LINENO" 5; } 6406fi 6407 6408ac_ext=c 6409ac_cpp='$CPP $CPPFLAGS' 6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6412ac_compiler_gnu=$ac_cv_c_compiler_gnu 6413 6414 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6416$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6417if ${ac_cv_path_GREP+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 if test -z "$GREP"; then 6421 ac_path_GREP_found=false 6422 # Loop through the user's path and test for each of PROGNAME-LIST 6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_prog in grep ggrep; do 6429 for ac_exec_ext in '' $ac_executable_extensions; do 6430 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6431 as_fn_executable_p "$ac_path_GREP" || continue 6432# Check for GNU ac_path_GREP and select it if it is found. 6433 # Check for GNU $ac_path_GREP 6434case `"$ac_path_GREP" --version 2>&1` in 6435*GNU*) 6436 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6437*) 6438 ac_count=0 6439 $as_echo_n 0123456789 >"conftest.in" 6440 while : 6441 do 6442 cat "conftest.in" "conftest.in" >"conftest.tmp" 6443 mv "conftest.tmp" "conftest.in" 6444 cp "conftest.in" "conftest.nl" 6445 $as_echo 'GREP' >> "conftest.nl" 6446 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6448 as_fn_arith $ac_count + 1 && ac_count=$as_val 6449 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6450 # Best one so far, save it but keep looking for a better one 6451 ac_cv_path_GREP="$ac_path_GREP" 6452 ac_path_GREP_max=$ac_count 6453 fi 6454 # 10*(2^10) chars as input seems more than enough 6455 test $ac_count -gt 10 && break 6456 done 6457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6458esac 6459 6460 $ac_path_GREP_found && break 3 6461 done 6462 done 6463 done 6464IFS=$as_save_IFS 6465 if test -z "$ac_cv_path_GREP"; then 6466 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6467 fi 6468else 6469 ac_cv_path_GREP=$GREP 6470fi 6471 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6474$as_echo "$ac_cv_path_GREP" >&6; } 6475 GREP="$ac_cv_path_GREP" 6476 6477 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6479$as_echo_n "checking for egrep... " >&6; } 6480if ${ac_cv_path_EGREP+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6484 then ac_cv_path_EGREP="$GREP -E" 6485 else 6486 if test -z "$EGREP"; then 6487 ac_path_EGREP_found=false 6488 # Loop through the user's path and test for each of PROGNAME-LIST 6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6491do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_prog in egrep; do 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6497 as_fn_executable_p "$ac_path_EGREP" || continue 6498# Check for GNU ac_path_EGREP and select it if it is found. 6499 # Check for GNU $ac_path_EGREP 6500case `"$ac_path_EGREP" --version 2>&1` in 6501*GNU*) 6502 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6503*) 6504 ac_count=0 6505 $as_echo_n 0123456789 >"conftest.in" 6506 while : 6507 do 6508 cat "conftest.in" "conftest.in" >"conftest.tmp" 6509 mv "conftest.tmp" "conftest.in" 6510 cp "conftest.in" "conftest.nl" 6511 $as_echo 'EGREP' >> "conftest.nl" 6512 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6514 as_fn_arith $ac_count + 1 && ac_count=$as_val 6515 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6516 # Best one so far, save it but keep looking for a better one 6517 ac_cv_path_EGREP="$ac_path_EGREP" 6518 ac_path_EGREP_max=$ac_count 6519 fi 6520 # 10*(2^10) chars as input seems more than enough 6521 test $ac_count -gt 10 && break 6522 done 6523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6524esac 6525 6526 $ac_path_EGREP_found && break 3 6527 done 6528 done 6529 done 6530IFS=$as_save_IFS 6531 if test -z "$ac_cv_path_EGREP"; then 6532 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6533 fi 6534else 6535 ac_cv_path_EGREP=$EGREP 6536fi 6537 6538 fi 6539fi 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6541$as_echo "$ac_cv_path_EGREP" >&6; } 6542 EGREP="$ac_cv_path_EGREP" 6543 6544 6545 6546 6547 6548 6549ac_ext=c 6550ac_cpp='$CPP $CPPFLAGS' 6551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6553ac_compiler_gnu=$ac_cv_c_compiler_gnu 6554 6555ax_pthread_ok=no 6556 6557# We used to check for pthread.h first, but this fails if pthread.h 6558# requires special compiler flags (e.g. on Tru64 or Sequent). 6559# It gets checked for in the link test anyway. 6560 6561# First of all, check if the user has set any of the PTHREAD_LIBS, 6562# etcetera environment variables, and if threads linking works using 6563# them: 6564if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 6565 ax_pthread_save_CC="$CC" 6566 ax_pthread_save_CFLAGS="$CFLAGS" 6567 ax_pthread_save_LIBS="$LIBS" 6568 if test "x$PTHREAD_CC" != "x"; then : 6569 CC="$PTHREAD_CC" 6570fi 6571 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6572 LIBS="$PTHREAD_LIBS $LIBS" 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 6574$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6576/* end confdefs.h. */ 6577 6578/* Override any GCC internal prototype to avoid an error. 6579 Use char because int might match the return type of a GCC 6580 builtin and then its argument prototype would still apply. */ 6581#ifdef __cplusplus 6582extern "C" 6583#endif 6584char pthread_join (); 6585int 6586main () 6587{ 6588return pthread_join (); 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO"; then : 6594 ax_pthread_ok=yes 6595fi 6596rm -f core conftest.err conftest.$ac_objext \ 6597 conftest$ac_exeext conftest.$ac_ext 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 6599$as_echo "$ax_pthread_ok" >&6; } 6600 if test "x$ax_pthread_ok" = "xno"; then 6601 PTHREAD_LIBS="" 6602 PTHREAD_CFLAGS="" 6603 fi 6604 CC="$ax_pthread_save_CC" 6605 CFLAGS="$ax_pthread_save_CFLAGS" 6606 LIBS="$ax_pthread_save_LIBS" 6607fi 6608 6609# We must check for the threads library under a number of different 6610# names; the ordering is very important because some systems 6611# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 6612# libraries is broken (non-POSIX). 6613 6614# Create a list of thread flags to try. Items starting with a "-" are 6615# C compiler flags, and other items are library names, except for "none" 6616# which indicates that we try without any flags at all, and "pthread-config" 6617# which is a program returning the flags for the Pth emulation library. 6618 6619ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 6620 6621# The ordering *is* (sometimes) important. Some notes on the 6622# individual items follow: 6623 6624# pthreads: AIX (must check this before -lpthread) 6625# none: in case threads are in libc; should be tried before -Kthread and 6626# other compiler flags to prevent continual compiler warnings 6627# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 6628# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 6629# (Note: HP C rejects this with "bad form for `-t' option") 6630# -pthreads: Solaris/gcc (Note: HP C also rejects) 6631# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 6632# doesn't hurt to check since this sometimes defines pthreads and 6633# -D_REENTRANT too), HP C (must be checked before -lpthread, which 6634# is present but should not be used directly; and before -mthreads, 6635# because the compiler interprets this as "-mt" + "-hreads") 6636# -mthreads: Mingw32/gcc, Lynx/gcc 6637# pthread: Linux, etcetera 6638# --thread-safe: KAI C++ 6639# pthread-config: use pthread-config program (for GNU Pth library) 6640 6641case $host_os in 6642 6643 freebsd*) 6644 6645 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 6646 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 6647 6648 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 6649 ;; 6650 6651 hpux*) 6652 6653 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 6654 # multi-threading and also sets -lpthread." 6655 6656 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 6657 ;; 6658 6659 openedition*) 6660 6661 # IBM z/OS requires a feature-test macro to be defined in order to 6662 # enable POSIX threads at all, so give the user a hint if this is 6663 # not set. (We don't define these ourselves, as they can affect 6664 # other portions of the system API in unpredictable ways.) 6665 6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6667/* end confdefs.h. */ 6668 6669# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 6670 AX_PTHREAD_ZOS_MISSING 6671# endif 6672 6673_ACEOF 6674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6675 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 6677$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 6678fi 6679rm -f conftest* 6680 6681 ;; 6682 6683 solaris*) 6684 6685 # On Solaris (at least, for some versions), libc contains stubbed 6686 # (non-functional) versions of the pthreads routines, so link-based 6687 # tests will erroneously succeed. (N.B.: The stubs are missing 6688 # pthread_cleanup_push, or rather a function called by this macro, 6689 # so we could check for that, but who knows whether they'll stub 6690 # that too in a future libc.) So we'll check first for the 6691 # standard Solaris way of linking pthreads (-mt -lpthread). 6692 6693 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 6694 ;; 6695esac 6696 6697# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 6698 6699if test "x$GCC" = "xyes"; then : 6700 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 6701fi 6702 6703# The presence of a feature test macro requesting re-entrant function 6704# definitions is, on some systems, a strong hint that pthreads support is 6705# correctly enabled 6706 6707case $host_os in 6708 darwin* | hpux* | linux* | osf* | solaris*) 6709 ax_pthread_check_macro="_REENTRANT" 6710 ;; 6711 6712 aix*) 6713 ax_pthread_check_macro="_THREAD_SAFE" 6714 ;; 6715 6716 *) 6717 ax_pthread_check_macro="--" 6718 ;; 6719esac 6720if test "x$ax_pthread_check_macro" = "x--"; then : 6721 ax_pthread_check_cond=0 6722else 6723 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 6724fi 6725 6726# Are we compiling with Clang? 6727 6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 6729$as_echo_n "checking whether $CC is Clang... " >&6; } 6730if ${ax_cv_PTHREAD_CLANG+:} false; then : 6731 $as_echo_n "(cached) " >&6 6732else 6733 ax_cv_PTHREAD_CLANG=no 6734 # Note that Autoconf sets GCC=yes for Clang as well as GCC 6735 if test "x$GCC" = "xyes"; then 6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6737/* end confdefs.h. */ 6738/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 6739# if defined(__clang__) && defined(__llvm__) 6740 AX_PTHREAD_CC_IS_CLANG 6741# endif 6742 6743_ACEOF 6744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6745 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 6746 ax_cv_PTHREAD_CLANG=yes 6747fi 6748rm -f conftest* 6749 6750 fi 6751 6752fi 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 6754$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 6755ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 6756 6757ax_pthread_clang_warning=no 6758 6759# Clang needs special handling, because older versions handle the -pthread 6760# option in a rather... idiosyncratic way 6761 6762if test "x$ax_pthread_clang" = "xyes"; then 6763 6764 # Clang takes -pthread; it has never supported any other flag 6765 6766 # (Note 1: This will need to be revisited if a system that Clang 6767 # supports has POSIX threads in a separate library. This tends not 6768 # to be the way of modern systems, but it's conceivable.) 6769 6770 # (Note 2: On some systems, notably Darwin, -pthread is not needed 6771 # to get POSIX threads support; the API is always present and 6772 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 6773 # -pthread does define _REENTRANT, and while the Darwin headers 6774 # ignore this macro, third-party headers might not.) 6775 6776 PTHREAD_CFLAGS="-pthread" 6777 PTHREAD_LIBS= 6778 6779 ax_pthread_ok=yes 6780 6781 # However, older versions of Clang make a point of warning the user 6782 # that, in an invocation where only linking and no compilation is 6783 # taking place, the -pthread option has no effect ("argument unused 6784 # during compilation"). They expect -pthread to be passed in only 6785 # when source code is being compiled. 6786 # 6787 # Problem is, this is at odds with the way Automake and most other 6788 # C build frameworks function, which is that the same flags used in 6789 # compilation (CFLAGS) are also used in linking. Many systems 6790 # supported by AX_PTHREAD require exactly this for POSIX threads 6791 # support, and in fact it is often not straightforward to specify a 6792 # flag that is used only in the compilation phase and not in 6793 # linking. Such a scenario is extremely rare in practice. 6794 # 6795 # Even though use of the -pthread flag in linking would only print 6796 # a warning, this can be a nuisance for well-run software projects 6797 # that build with -Werror. So if the active version of Clang has 6798 # this misfeature, we search for an option to squash it. 6799 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 6801$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 6802if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 6806 # Create an alternate version of $ac_link that compiles and 6807 # links in two steps (.c -> .o, .o -> exe) instead of one 6808 # (.c -> exe), because the warning occurs only in the second 6809 # step 6810 ax_pthread_save_ac_link="$ac_link" 6811 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 6812 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 6813 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 6814 ax_pthread_save_CFLAGS="$CFLAGS" 6815 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 6816 if test "x$ax_pthread_try" = "xunknown"; then : 6817 break 6818fi 6819 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 6820 ac_link="$ax_pthread_save_ac_link" 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822/* end confdefs.h. */ 6823int main(void){return 0;} 6824_ACEOF 6825if ac_fn_c_try_link "$LINENO"; then : 6826 ac_link="$ax_pthread_2step_ac_link" 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829int main(void){return 0;} 6830_ACEOF 6831if ac_fn_c_try_link "$LINENO"; then : 6832 break 6833fi 6834rm -f core conftest.err conftest.$ac_objext \ 6835 conftest$ac_exeext conftest.$ac_ext 6836 6837fi 6838rm -f core conftest.err conftest.$ac_objext \ 6839 conftest$ac_exeext conftest.$ac_ext 6840 done 6841 ac_link="$ax_pthread_save_ac_link" 6842 CFLAGS="$ax_pthread_save_CFLAGS" 6843 if test "x$ax_pthread_try" = "x"; then : 6844 ax_pthread_try=no 6845fi 6846 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 6847 6848fi 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 6850$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 6851 6852 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 6853 no | unknown) ;; 6854 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 6855 esac 6856 6857fi # $ax_pthread_clang = yes 6858 6859if test "x$ax_pthread_ok" = "xno"; then 6860for ax_pthread_try_flag in $ax_pthread_flags; do 6861 6862 case $ax_pthread_try_flag in 6863 none) 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 6865$as_echo_n "checking whether pthreads work without any flags... " >&6; } 6866 ;; 6867 6868 -mt,pthread) 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 6870$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 6871 PTHREAD_CFLAGS="-mt" 6872 PTHREAD_LIBS="-lpthread" 6873 ;; 6874 6875 -*) 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 6877$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 6878 PTHREAD_CFLAGS="$ax_pthread_try_flag" 6879 ;; 6880 6881 pthread-config) 6882 # Extract the first word of "pthread-config", so it can be a program name with args. 6883set dummy pthread-config; ac_word=$2 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885$as_echo_n "checking for $ac_word... " >&6; } 6886if ${ac_cv_prog_ax_pthread_config+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 if test -n "$ax_pthread_config"; then 6890 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 6891else 6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6893for as_dir in $PATH 6894do 6895 IFS=$as_save_IFS 6896 test -z "$as_dir" && as_dir=. 6897 for ac_exec_ext in '' $ac_executable_extensions; do 6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6899 ac_cv_prog_ax_pthread_config="yes" 6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6901 break 2 6902 fi 6903done 6904 done 6905IFS=$as_save_IFS 6906 6907 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 6908fi 6909fi 6910ax_pthread_config=$ac_cv_prog_ax_pthread_config 6911if test -n "$ax_pthread_config"; then 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 6913$as_echo "$ax_pthread_config" >&6; } 6914else 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6916$as_echo "no" >&6; } 6917fi 6918 6919 6920 if test "x$ax_pthread_config" = "xno"; then : 6921 continue 6922fi 6923 PTHREAD_CFLAGS="`pthread-config --cflags`" 6924 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 6925 ;; 6926 6927 *) 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 6929$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 6930 PTHREAD_LIBS="-l$ax_pthread_try_flag" 6931 ;; 6932 esac 6933 6934 ax_pthread_save_CFLAGS="$CFLAGS" 6935 ax_pthread_save_LIBS="$LIBS" 6936 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6937 LIBS="$PTHREAD_LIBS $LIBS" 6938 6939 # Check for various functions. We must include pthread.h, 6940 # since some functions may be macros. (On the Sequent, we 6941 # need a special flag -Kthread to make this header compile.) 6942 # We check for pthread_join because it is in -lpthread on IRIX 6943 # while pthread_create is in libc. We check for pthread_attr_init 6944 # due to DEC craziness with -lpthreads. We check for 6945 # pthread_cleanup_push because it is one of the few pthread 6946 # functions on Solaris that doesn't have a non-functional libc stub. 6947 # We try pthread_create on general principles. 6948 6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950/* end confdefs.h. */ 6951#include <pthread.h> 6952# if $ax_pthread_check_cond 6953# error "$ax_pthread_check_macro must be defined" 6954# endif 6955 static void routine(void *a) { a = 0; } 6956 static void *start_routine(void *a) { return a; } 6957int 6958main () 6959{ 6960pthread_t th; pthread_attr_t attr; 6961 pthread_create(&th, 0, start_routine, 0); 6962 pthread_join(th, 0); 6963 pthread_attr_init(&attr); 6964 pthread_cleanup_push(routine, 0); 6965 pthread_cleanup_pop(0) /* ; */ 6966 ; 6967 return 0; 6968} 6969_ACEOF 6970if ac_fn_c_try_link "$LINENO"; then : 6971 ax_pthread_ok=yes 6972fi 6973rm -f core conftest.err conftest.$ac_objext \ 6974 conftest$ac_exeext conftest.$ac_ext 6975 6976 CFLAGS="$ax_pthread_save_CFLAGS" 6977 LIBS="$ax_pthread_save_LIBS" 6978 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 6980$as_echo "$ax_pthread_ok" >&6; } 6981 if test "x$ax_pthread_ok" = "xyes"; then : 6982 break 6983fi 6984 6985 PTHREAD_LIBS="" 6986 PTHREAD_CFLAGS="" 6987done 6988fi 6989 6990# Various other checks: 6991if test "x$ax_pthread_ok" = "xyes"; then 6992 ax_pthread_save_CFLAGS="$CFLAGS" 6993 ax_pthread_save_LIBS="$LIBS" 6994 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6995 LIBS="$PTHREAD_LIBS $LIBS" 6996 6997 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 6999$as_echo_n "checking for joinable pthread attribute... " >&6; } 7000if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 7001 $as_echo_n "(cached) " >&6 7002else 7003 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 7004 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7006/* end confdefs.h. */ 7007#include <pthread.h> 7008int 7009main () 7010{ 7011int attr = $ax_pthread_attr; return attr /* ; */ 7012 ; 7013 return 0; 7014} 7015_ACEOF 7016if ac_fn_c_try_link "$LINENO"; then : 7017 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 7018fi 7019rm -f core conftest.err conftest.$ac_objext \ 7020 conftest$ac_exeext conftest.$ac_ext 7021 done 7022 7023fi 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 7025$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 7026 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 7027 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 7028 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 7029 7030cat >>confdefs.h <<_ACEOF 7031#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 7032_ACEOF 7033 7034 ax_pthread_joinable_attr_defined=yes 7035 7036fi 7037 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 7039$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 7040if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 ax_cv_PTHREAD_SPECIAL_FLAGS=no 7044 case $host_os in 7045 solaris*) 7046 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 7047 ;; 7048 esac 7049 7050fi 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 7052$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 7053 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 7054 test "x$ax_pthread_special_flags_added" != "xyes"; then : 7055 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 7056 ax_pthread_special_flags_added=yes 7057fi 7058 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 7060$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 7061if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7065/* end confdefs.h. */ 7066#include <pthread.h> 7067int 7068main () 7069{ 7070int i = PTHREAD_PRIO_INHERIT; 7071 ; 7072 return 0; 7073} 7074_ACEOF 7075if ac_fn_c_try_link "$LINENO"; then : 7076 ax_cv_PTHREAD_PRIO_INHERIT=yes 7077else 7078 ax_cv_PTHREAD_PRIO_INHERIT=no 7079fi 7080rm -f core conftest.err conftest.$ac_objext \ 7081 conftest$ac_exeext conftest.$ac_ext 7082 7083fi 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 7085$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 7086 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 7087 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 7088 7089$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 7090 7091 ax_pthread_prio_inherit_defined=yes 7092 7093fi 7094 7095 CFLAGS="$ax_pthread_save_CFLAGS" 7096 LIBS="$ax_pthread_save_LIBS" 7097 7098 # More AIX lossage: compile with *_r variant 7099 if test "x$GCC" != "xyes"; then 7100 case $host_os in 7101 aix*) 7102 case "x/$CC" in #( 7103 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 7104 #handle absolute path differently from PATH based program lookup 7105 case "x$CC" in #( 7106 x/*) : 7107 if as_fn_executable_p ${CC}_r; then : 7108 PTHREAD_CC="${CC}_r" 7109fi ;; #( 7110 *) : 7111 for ac_prog in ${CC}_r 7112do 7113 # Extract the first word of "$ac_prog", so it can be a program name with args. 7114set dummy $ac_prog; ac_word=$2 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7116$as_echo_n "checking for $ac_word... " >&6; } 7117if ${ac_cv_prog_PTHREAD_CC+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119else 7120 if test -n "$PTHREAD_CC"; then 7121 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 7122else 7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7124for as_dir in $PATH 7125do 7126 IFS=$as_save_IFS 7127 test -z "$as_dir" && as_dir=. 7128 for ac_exec_ext in '' $ac_executable_extensions; do 7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7130 ac_cv_prog_PTHREAD_CC="$ac_prog" 7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7132 break 2 7133 fi 7134done 7135 done 7136IFS=$as_save_IFS 7137 7138fi 7139fi 7140PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 7141if test -n "$PTHREAD_CC"; then 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 7143$as_echo "$PTHREAD_CC" >&6; } 7144else 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7146$as_echo "no" >&6; } 7147fi 7148 7149 7150 test -n "$PTHREAD_CC" && break 7151done 7152test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 7153 ;; 7154esac ;; #( 7155 *) : 7156 ;; 7157esac 7158 ;; 7159 esac 7160 fi 7161fi 7162 7163test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 7164 7165 7166 7167 7168 7169# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 7170if test "x$ax_pthread_ok" = "xyes"; then 7171 7172$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 7173 7174 : 7175else 7176 ax_pthread_ok=no 7177 as_fn_error $? "pthread is required" "$LINENO" 5 7178fi 7179ac_ext=cpp 7180ac_cpp='$CXXCPP $CPPFLAGS' 7181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7184 7185 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 7187$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 7188if ${ac_cv_lib_pthread_pthread_create+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 ac_check_lib_save_LIBS=$LIBS 7192LIBS="-lpthread $LIBS" 7193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7194/* end confdefs.h. */ 7195 7196/* Override any GCC internal prototype to avoid an error. 7197 Use char because int might match the return type of a GCC 7198 builtin and then its argument prototype would still apply. */ 7199#ifdef __cplusplus 7200extern "C" 7201#endif 7202char pthread_create (); 7203int 7204main () 7205{ 7206return pthread_create (); 7207 ; 7208 return 0; 7209} 7210_ACEOF 7211if ac_fn_cxx_try_link "$LINENO"; then : 7212 ac_cv_lib_pthread_pthread_create=yes 7213else 7214 ac_cv_lib_pthread_pthread_create=no 7215fi 7216rm -f core conftest.err conftest.$ac_objext \ 7217 conftest$ac_exeext conftest.$ac_ext 7218LIBS=$ac_check_lib_save_LIBS 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 7221$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 7222if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 7223 cat >>confdefs.h <<_ACEOF 7224#define HAVE_LIBPTHREAD 1 7225_ACEOF 7226 7227 LIBS="-lpthread $LIBS" 7228 7229fi 7230 7231 7232 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 7234$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 7235 # Check whether --enable-maintainer-mode was given. 7236if test "${enable_maintainer_mode+set}" = set; then : 7237 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 7238else 7239 USE_MAINTAINER_MODE=no 7240fi 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 7243$as_echo "$USE_MAINTAINER_MODE" >&6; } 7244 if test $USE_MAINTAINER_MODE = yes; then 7245 MAINTAINER_MODE_TRUE= 7246 MAINTAINER_MODE_FALSE='#' 7247else 7248 MAINTAINER_MODE_TRUE='#' 7249 MAINTAINER_MODE_FALSE= 7250fi 7251 7252 MAINT=$MAINTAINER_MODE_TRUE 7253 7254 7255 7256 7257 7258 7259 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7261$as_echo_n "checking whether ln -s works... " >&6; } 7262LN_S=$as_ln_s 7263if test "$LN_S" = "ln -s"; then 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7265$as_echo "yes" >&6; } 7266else 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7268$as_echo "no, using $LN_S" >&6; } 7269fi 7270 7271case `pwd` in 7272 *\ * | *\ *) 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7274$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7275esac 7276 7277 7278 7279macro_version='2.4.6' 7280macro_revision='2.4.6' 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294ltmain=$ac_aux_dir/ltmain.sh 7295 7296# Backslashify metacharacters that are still active within 7297# double-quoted strings. 7298sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7299 7300# Same as above, but do not quote variable references. 7301double_quote_subst='s/\(["`\\]\)/\\\1/g' 7302 7303# Sed substitution to delay expansion of an escaped shell variable in a 7304# double_quote_subst'ed string. 7305delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7306 7307# Sed substitution to delay expansion of an escaped single quote. 7308delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7309 7310# Sed substitution to avoid accidental globbing in evaled expressions 7311no_glob_subst='s/\*/\\\*/g' 7312 7313ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7314ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7315ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7316 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7318$as_echo_n "checking how to print strings... " >&6; } 7319# Test print first, because it will be a builtin if present. 7320if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7322 ECHO='print -r --' 7323elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7324 ECHO='printf %s\n' 7325else 7326 # Use this function as a fallback that always works. 7327 func_fallback_echo () 7328 { 7329 eval 'cat <<_LTECHO_EOF 7330$1 7331_LTECHO_EOF' 7332 } 7333 ECHO='func_fallback_echo' 7334fi 7335 7336# func_echo_all arg... 7337# Invoke $ECHO with all args, space-separated. 7338func_echo_all () 7339{ 7340 $ECHO "" 7341} 7342 7343case $ECHO in 7344 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7345$as_echo "printf" >&6; } ;; 7346 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7347$as_echo "print -r" >&6; } ;; 7348 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7349$as_echo "cat" >&6; } ;; 7350esac 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7366$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7367if ${ac_cv_path_SED+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7371 for ac_i in 1 2 3 4 5 6 7; do 7372 ac_script="$ac_script$as_nl$ac_script" 7373 done 7374 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7375 { ac_script=; unset ac_script;} 7376 if test -z "$SED"; then 7377 ac_path_SED_found=false 7378 # Loop through the user's path and test for each of PROGNAME-LIST 7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7380for as_dir in $PATH 7381do 7382 IFS=$as_save_IFS 7383 test -z "$as_dir" && as_dir=. 7384 for ac_prog in sed gsed; do 7385 for ac_exec_ext in '' $ac_executable_extensions; do 7386 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7387 as_fn_executable_p "$ac_path_SED" || continue 7388# Check for GNU ac_path_SED and select it if it is found. 7389 # Check for GNU $ac_path_SED 7390case `"$ac_path_SED" --version 2>&1` in 7391*GNU*) 7392 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7393*) 7394 ac_count=0 7395 $as_echo_n 0123456789 >"conftest.in" 7396 while : 7397 do 7398 cat "conftest.in" "conftest.in" >"conftest.tmp" 7399 mv "conftest.tmp" "conftest.in" 7400 cp "conftest.in" "conftest.nl" 7401 $as_echo '' >> "conftest.nl" 7402 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7404 as_fn_arith $ac_count + 1 && ac_count=$as_val 7405 if test $ac_count -gt ${ac_path_SED_max-0}; then 7406 # Best one so far, save it but keep looking for a better one 7407 ac_cv_path_SED="$ac_path_SED" 7408 ac_path_SED_max=$ac_count 7409 fi 7410 # 10*(2^10) chars as input seems more than enough 7411 test $ac_count -gt 10 && break 7412 done 7413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7414esac 7415 7416 $ac_path_SED_found && break 3 7417 done 7418 done 7419 done 7420IFS=$as_save_IFS 7421 if test -z "$ac_cv_path_SED"; then 7422 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7423 fi 7424else 7425 ac_cv_path_SED=$SED 7426fi 7427 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7430$as_echo "$ac_cv_path_SED" >&6; } 7431 SED="$ac_cv_path_SED" 7432 rm -f conftest.sed 7433 7434test -z "$SED" && SED=sed 7435Xsed="$SED -e 1s/^X//" 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7448$as_echo_n "checking for fgrep... " >&6; } 7449if ${ac_cv_path_FGREP+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7453 then ac_cv_path_FGREP="$GREP -F" 7454 else 7455 if test -z "$FGREP"; then 7456 ac_path_FGREP_found=false 7457 # Loop through the user's path and test for each of PROGNAME-LIST 7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_prog in fgrep; do 7464 for ac_exec_ext in '' $ac_executable_extensions; do 7465 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7466 as_fn_executable_p "$ac_path_FGREP" || continue 7467# Check for GNU ac_path_FGREP and select it if it is found. 7468 # Check for GNU $ac_path_FGREP 7469case `"$ac_path_FGREP" --version 2>&1` in 7470*GNU*) 7471 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7472*) 7473 ac_count=0 7474 $as_echo_n 0123456789 >"conftest.in" 7475 while : 7476 do 7477 cat "conftest.in" "conftest.in" >"conftest.tmp" 7478 mv "conftest.tmp" "conftest.in" 7479 cp "conftest.in" "conftest.nl" 7480 $as_echo 'FGREP' >> "conftest.nl" 7481 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7483 as_fn_arith $ac_count + 1 && ac_count=$as_val 7484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7485 # Best one so far, save it but keep looking for a better one 7486 ac_cv_path_FGREP="$ac_path_FGREP" 7487 ac_path_FGREP_max=$ac_count 7488 fi 7489 # 10*(2^10) chars as input seems more than enough 7490 test $ac_count -gt 10 && break 7491 done 7492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7493esac 7494 7495 $ac_path_FGREP_found && break 3 7496 done 7497 done 7498 done 7499IFS=$as_save_IFS 7500 if test -z "$ac_cv_path_FGREP"; then 7501 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7502 fi 7503else 7504 ac_cv_path_FGREP=$FGREP 7505fi 7506 7507 fi 7508fi 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7510$as_echo "$ac_cv_path_FGREP" >&6; } 7511 FGREP="$ac_cv_path_FGREP" 7512 7513 7514test -z "$GREP" && GREP=grep 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534# Check whether --with-gnu-ld was given. 7535if test "${with_gnu_ld+set}" = set; then : 7536 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7537else 7538 with_gnu_ld=no 7539fi 7540 7541ac_prog=ld 7542if test yes = "$GCC"; then 7543 # Check if gcc -print-prog-name=ld gives a path. 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7545$as_echo_n "checking for ld used by $CC... " >&6; } 7546 case $host in 7547 *-*-mingw*) 7548 # gcc leaves a trailing carriage return, which upsets mingw 7549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7550 *) 7551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7552 esac 7553 case $ac_prog in 7554 # Accept absolute paths. 7555 [\\/]* | ?:[\\/]*) 7556 re_direlt='/[^/][^/]*/\.\./' 7557 # Canonicalize the pathname of ld 7558 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7559 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7560 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7561 done 7562 test -z "$LD" && LD=$ac_prog 7563 ;; 7564 "") 7565 # If it fails, then pretend we aren't using GCC. 7566 ac_prog=ld 7567 ;; 7568 *) 7569 # If it is relative, then search for the first ld in PATH. 7570 with_gnu_ld=unknown 7571 ;; 7572 esac 7573elif test yes = "$with_gnu_ld"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7575$as_echo_n "checking for GNU ld... " >&6; } 7576else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7578$as_echo_n "checking for non-GNU ld... " >&6; } 7579fi 7580if ${lt_cv_path_LD+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 if test -z "$LD"; then 7584 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7585 for ac_dir in $PATH; do 7586 IFS=$lt_save_ifs 7587 test -z "$ac_dir" && ac_dir=. 7588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7589 lt_cv_path_LD=$ac_dir/$ac_prog 7590 # Check to see if the program is GNU ld. I'd rather use --version, 7591 # but apparently some variants of GNU ld only accept -v. 7592 # Break only if it was the GNU/non-GNU ld that we prefer. 7593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7594 *GNU* | *'with BFD'*) 7595 test no != "$with_gnu_ld" && break 7596 ;; 7597 *) 7598 test yes != "$with_gnu_ld" && break 7599 ;; 7600 esac 7601 fi 7602 done 7603 IFS=$lt_save_ifs 7604else 7605 lt_cv_path_LD=$LD # Let the user override the test with a path. 7606fi 7607fi 7608 7609LD=$lt_cv_path_LD 7610if test -n "$LD"; then 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7612$as_echo "$LD" >&6; } 7613else 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7615$as_echo "no" >&6; } 7616fi 7617test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7619$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7620if ${lt_cv_prog_gnu_ld+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7624case `$LD -v 2>&1 </dev/null` in 7625*GNU* | *'with BFD'*) 7626 lt_cv_prog_gnu_ld=yes 7627 ;; 7628*) 7629 lt_cv_prog_gnu_ld=no 7630 ;; 7631esac 7632fi 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7634$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7635with_gnu_ld=$lt_cv_prog_gnu_ld 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7646$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7647if ${lt_cv_path_NM+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 if test -n "$NM"; then 7651 # Let the user override the test. 7652 lt_cv_path_NM=$NM 7653else 7654 lt_nm_to_check=${ac_tool_prefix}nm 7655 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7656 lt_nm_to_check="$lt_nm_to_check nm" 7657 fi 7658 for lt_tmp_nm in $lt_nm_to_check; do 7659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7660 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7661 IFS=$lt_save_ifs 7662 test -z "$ac_dir" && ac_dir=. 7663 tmp_nm=$ac_dir/$lt_tmp_nm 7664 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7665 # Check to see if the nm accepts a BSD-compat flag. 7666 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7667 # nm: unknown option "B" ignored 7668 # Tru64's nm complains that /dev/null is an invalid object file 7669 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7670 case $build_os in 7671 mingw*) lt_bad_file=conftest.nm/nofile ;; 7672 *) lt_bad_file=/dev/null ;; 7673 esac 7674 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7675 *$lt_bad_file* | *'Invalid file or object type'*) 7676 lt_cv_path_NM="$tmp_nm -B" 7677 break 2 7678 ;; 7679 *) 7680 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7681 */dev/null*) 7682 lt_cv_path_NM="$tmp_nm -p" 7683 break 2 7684 ;; 7685 *) 7686 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7687 continue # so that we can try to find one that supports BSD flags 7688 ;; 7689 esac 7690 ;; 7691 esac 7692 fi 7693 done 7694 IFS=$lt_save_ifs 7695 done 7696 : ${lt_cv_path_NM=no} 7697fi 7698fi 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7700$as_echo "$lt_cv_path_NM" >&6; } 7701if test no != "$lt_cv_path_NM"; then 7702 NM=$lt_cv_path_NM 7703else 7704 # Didn't find any BSD compatible name lister, look for dumpbin. 7705 if test -n "$DUMPBIN"; then : 7706 # Let the user override the test. 7707 else 7708 if test -n "$ac_tool_prefix"; then 7709 for ac_prog in dumpbin "link -dump" 7710 do 7711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7712set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7714$as_echo_n "checking for $ac_word... " >&6; } 7715if ${ac_cv_prog_DUMPBIN+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 if test -n "$DUMPBIN"; then 7719 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7720else 7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 test -z "$as_dir" && as_dir=. 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7728 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7730 break 2 7731 fi 7732done 7733 done 7734IFS=$as_save_IFS 7735 7736fi 7737fi 7738DUMPBIN=$ac_cv_prog_DUMPBIN 7739if test -n "$DUMPBIN"; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7741$as_echo "$DUMPBIN" >&6; } 7742else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744$as_echo "no" >&6; } 7745fi 7746 7747 7748 test -n "$DUMPBIN" && break 7749 done 7750fi 7751if test -z "$DUMPBIN"; then 7752 ac_ct_DUMPBIN=$DUMPBIN 7753 for ac_prog in dumpbin "link -dump" 7754do 7755 # Extract the first word of "$ac_prog", so it can be a program name with args. 7756set dummy $ac_prog; ac_word=$2 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7758$as_echo_n "checking for $ac_word... " >&6; } 7759if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 if test -n "$ac_ct_DUMPBIN"; then 7763 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7764else 7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7766for as_dir in $PATH 7767do 7768 IFS=$as_save_IFS 7769 test -z "$as_dir" && as_dir=. 7770 for ac_exec_ext in '' $ac_executable_extensions; do 7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7772 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7774 break 2 7775 fi 7776done 7777 done 7778IFS=$as_save_IFS 7779 7780fi 7781fi 7782ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7783if test -n "$ac_ct_DUMPBIN"; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7785$as_echo "$ac_ct_DUMPBIN" >&6; } 7786else 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7788$as_echo "no" >&6; } 7789fi 7790 7791 7792 test -n "$ac_ct_DUMPBIN" && break 7793done 7794 7795 if test "x$ac_ct_DUMPBIN" = x; then 7796 DUMPBIN=":" 7797 else 7798 case $cross_compiling:$ac_tool_warned in 7799yes:) 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7802ac_tool_warned=yes ;; 7803esac 7804 DUMPBIN=$ac_ct_DUMPBIN 7805 fi 7806fi 7807 7808 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7809 *COFF*) 7810 DUMPBIN="$DUMPBIN -symbols -headers" 7811 ;; 7812 *) 7813 DUMPBIN=: 7814 ;; 7815 esac 7816 fi 7817 7818 if test : != "$DUMPBIN"; then 7819 NM=$DUMPBIN 7820 fi 7821fi 7822test -z "$NM" && NM=nm 7823 7824 7825 7826 7827 7828 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7830$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7831if ${lt_cv_nm_interface+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 lt_cv_nm_interface="BSD nm" 7835 echo "int some_variable = 0;" > conftest.$ac_ext 7836 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7837 (eval "$ac_compile" 2>conftest.err) 7838 cat conftest.err >&5 7839 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7840 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7841 cat conftest.err >&5 7842 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7843 cat conftest.out >&5 7844 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7845 lt_cv_nm_interface="MS dumpbin" 7846 fi 7847 rm -f conftest* 7848fi 7849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7850$as_echo "$lt_cv_nm_interface" >&6; } 7851 7852# find the maximum length of command line arguments 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7854$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7855if ${lt_cv_sys_max_cmd_len+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 i=0 7859 teststring=ABCD 7860 7861 case $build_os in 7862 msdosdjgpp*) 7863 # On DJGPP, this test can blow up pretty badly due to problems in libc 7864 # (any single argument exceeding 2000 bytes causes a buffer overrun 7865 # during glob expansion). Even if it were fixed, the result of this 7866 # check would be larger than it should be. 7867 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7868 ;; 7869 7870 gnu*) 7871 # Under GNU Hurd, this test is not required because there is 7872 # no limit to the length of command line arguments. 7873 # Libtool will interpret -1 as no limit whatsoever 7874 lt_cv_sys_max_cmd_len=-1; 7875 ;; 7876 7877 cygwin* | mingw* | cegcc*) 7878 # On Win9x/ME, this test blows up -- it succeeds, but takes 7879 # about 5 minutes as the teststring grows exponentially. 7880 # Worse, since 9x/ME are not pre-emptively multitasking, 7881 # you end up with a "frozen" computer, even though with patience 7882 # the test eventually succeeds (with a max line length of 256k). 7883 # Instead, let's just punt: use the minimum linelength reported by 7884 # all of the supported platforms: 8192 (on NT/2K/XP). 7885 lt_cv_sys_max_cmd_len=8192; 7886 ;; 7887 7888 mint*) 7889 # On MiNT this can take a long time and run out of memory. 7890 lt_cv_sys_max_cmd_len=8192; 7891 ;; 7892 7893 amigaos*) 7894 # On AmigaOS with pdksh, this test takes hours, literally. 7895 # So we just punt and use a minimum line length of 8192. 7896 lt_cv_sys_max_cmd_len=8192; 7897 ;; 7898 7899 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7900 # This has been around since 386BSD, at least. Likely further. 7901 if test -x /sbin/sysctl; then 7902 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7903 elif test -x /usr/sbin/sysctl; then 7904 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7905 else 7906 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7907 fi 7908 # And add a safety zone 7909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7911 ;; 7912 7913 interix*) 7914 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7915 lt_cv_sys_max_cmd_len=196608 7916 ;; 7917 7918 os2*) 7919 # The test takes a long time on OS/2. 7920 lt_cv_sys_max_cmd_len=8192 7921 ;; 7922 7923 osf*) 7924 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7925 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7926 # nice to cause kernel panics so lets avoid the loop below. 7927 # First set a reasonable default. 7928 lt_cv_sys_max_cmd_len=16384 7929 # 7930 if test -x /sbin/sysconfig; then 7931 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7932 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7933 esac 7934 fi 7935 ;; 7936 sco3.2v5*) 7937 lt_cv_sys_max_cmd_len=102400 7938 ;; 7939 sysv5* | sco5v6* | sysv4.2uw2*) 7940 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7941 if test -n "$kargmax"; then 7942 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7943 else 7944 lt_cv_sys_max_cmd_len=32768 7945 fi 7946 ;; 7947 *) 7948 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7949 if test -n "$lt_cv_sys_max_cmd_len" && \ 7950 test undefined != "$lt_cv_sys_max_cmd_len"; then 7951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7953 else 7954 # Make teststring a little bigger before we do anything with it. 7955 # a 1K string should be a reasonable start. 7956 for i in 1 2 3 4 5 6 7 8; do 7957 teststring=$teststring$teststring 7958 done 7959 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7960 # If test is not a shell built-in, we'll probably end up computing a 7961 # maximum length that is only half of the actual maximum length, but 7962 # we can't tell. 7963 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7964 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7965 test 17 != "$i" # 1/2 MB should be enough 7966 do 7967 i=`expr $i + 1` 7968 teststring=$teststring$teststring 7969 done 7970 # Only check the string length outside the loop. 7971 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7972 teststring= 7973 # Add a significant safety factor because C++ compilers can tack on 7974 # massive amounts of additional arguments before passing them to the 7975 # linker. It appears as though 1/2 is a usable value. 7976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7977 fi 7978 ;; 7979 esac 7980 7981fi 7982 7983if test -n "$lt_cv_sys_max_cmd_len"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7985$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7988$as_echo "none" >&6; } 7989fi 7990max_cmd_len=$lt_cv_sys_max_cmd_len 7991 7992 7993 7994 7995 7996 7997: ${CP="cp -f"} 7998: ${MV="mv -f"} 7999: ${RM="rm -f"} 8000 8001if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8002 lt_unset=unset 8003else 8004 lt_unset=false 8005fi 8006 8007 8008 8009 8010 8011# test EBCDIC or ASCII 8012case `echo X|tr X '\101'` in 8013 A) # ASCII based system 8014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8015 lt_SP2NL='tr \040 \012' 8016 lt_NL2SP='tr \015\012 \040\040' 8017 ;; 8018 *) # EBCDIC based system 8019 lt_SP2NL='tr \100 \n' 8020 lt_NL2SP='tr \r\n \100\100' 8021 ;; 8022esac 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8033$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8034if ${lt_cv_to_host_file_cmd+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036else 8037 case $host in 8038 *-*-mingw* ) 8039 case $build in 8040 *-*-mingw* ) # actually msys 8041 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8042 ;; 8043 *-*-cygwin* ) 8044 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8045 ;; 8046 * ) # otherwise, assume *nix 8047 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8048 ;; 8049 esac 8050 ;; 8051 *-*-cygwin* ) 8052 case $build in 8053 *-*-mingw* ) # actually msys 8054 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8055 ;; 8056 *-*-cygwin* ) 8057 lt_cv_to_host_file_cmd=func_convert_file_noop 8058 ;; 8059 * ) # otherwise, assume *nix 8060 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8061 ;; 8062 esac 8063 ;; 8064 * ) # unhandled hosts (and "normal" native builds) 8065 lt_cv_to_host_file_cmd=func_convert_file_noop 8066 ;; 8067esac 8068 8069fi 8070 8071to_host_file_cmd=$lt_cv_to_host_file_cmd 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8073$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8074 8075 8076 8077 8078 8079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8080$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8081if ${lt_cv_to_tool_file_cmd+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 #assume ordinary cross tools, or native build. 8085lt_cv_to_tool_file_cmd=func_convert_file_noop 8086case $host in 8087 *-*-mingw* ) 8088 case $build in 8089 *-*-mingw* ) # actually msys 8090 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8091 ;; 8092 esac 8093 ;; 8094esac 8095 8096fi 8097 8098to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8100$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8101 8102 8103 8104 8105 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8107$as_echo_n "checking for $LD option to reload object files... " >&6; } 8108if ${lt_cv_ld_reload_flag+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 lt_cv_ld_reload_flag='-r' 8112fi 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8114$as_echo "$lt_cv_ld_reload_flag" >&6; } 8115reload_flag=$lt_cv_ld_reload_flag 8116case $reload_flag in 8117"" | " "*) ;; 8118*) reload_flag=" $reload_flag" ;; 8119esac 8120reload_cmds='$LD$reload_flag -o $output$reload_objs' 8121case $host_os in 8122 cygwin* | mingw* | pw32* | cegcc*) 8123 if test yes != "$GCC"; then 8124 reload_cmds=false 8125 fi 8126 ;; 8127 darwin*) 8128 if test yes = "$GCC"; then 8129 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8130 else 8131 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8132 fi 8133 ;; 8134esac 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144if test -n "$ac_tool_prefix"; then 8145 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8146set dummy ${ac_tool_prefix}objdump; ac_word=$2 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8148$as_echo_n "checking for $ac_word... " >&6; } 8149if ${ac_cv_prog_OBJDUMP+:} false; then : 8150 $as_echo_n "(cached) " >&6 8151else 8152 if test -n "$OBJDUMP"; then 8153 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8154else 8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8156for as_dir in $PATH 8157do 8158 IFS=$as_save_IFS 8159 test -z "$as_dir" && as_dir=. 8160 for ac_exec_ext in '' $ac_executable_extensions; do 8161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8162 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8164 break 2 8165 fi 8166done 8167 done 8168IFS=$as_save_IFS 8169 8170fi 8171fi 8172OBJDUMP=$ac_cv_prog_OBJDUMP 8173if test -n "$OBJDUMP"; then 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8175$as_echo "$OBJDUMP" >&6; } 8176else 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8178$as_echo "no" >&6; } 8179fi 8180 8181 8182fi 8183if test -z "$ac_cv_prog_OBJDUMP"; then 8184 ac_ct_OBJDUMP=$OBJDUMP 8185 # Extract the first word of "objdump", so it can be a program name with args. 8186set dummy objdump; ac_word=$2 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8188$as_echo_n "checking for $ac_word... " >&6; } 8189if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 if test -n "$ac_ct_OBJDUMP"; then 8193 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8194else 8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8196for as_dir in $PATH 8197do 8198 IFS=$as_save_IFS 8199 test -z "$as_dir" && as_dir=. 8200 for ac_exec_ext in '' $ac_executable_extensions; do 8201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8202 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8204 break 2 8205 fi 8206done 8207 done 8208IFS=$as_save_IFS 8209 8210fi 8211fi 8212ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8213if test -n "$ac_ct_OBJDUMP"; then 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8215$as_echo "$ac_ct_OBJDUMP" >&6; } 8216else 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8218$as_echo "no" >&6; } 8219fi 8220 8221 if test "x$ac_ct_OBJDUMP" = x; then 8222 OBJDUMP="false" 8223 else 8224 case $cross_compiling:$ac_tool_warned in 8225yes:) 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8228ac_tool_warned=yes ;; 8229esac 8230 OBJDUMP=$ac_ct_OBJDUMP 8231 fi 8232else 8233 OBJDUMP="$ac_cv_prog_OBJDUMP" 8234fi 8235 8236test -z "$OBJDUMP" && OBJDUMP=objdump 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8247$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8248if ${lt_cv_deplibs_check_method+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 lt_cv_file_magic_cmd='$MAGIC_CMD' 8252lt_cv_file_magic_test_file= 8253lt_cv_deplibs_check_method='unknown' 8254# Need to set the preceding variable on all platforms that support 8255# interlibrary dependencies. 8256# 'none' -- dependencies not supported. 8257# 'unknown' -- same as none, but documents that we really don't know. 8258# 'pass_all' -- all dependencies passed with no checks. 8259# 'test_compile' -- check by making test program. 8260# 'file_magic [[regex]]' -- check by looking for files in library path 8261# that responds to the $file_magic_cmd with a given extended regex. 8262# If you have 'file' or equivalent on your system and you're not sure 8263# whether 'pass_all' will *always* work, you probably want this one. 8264 8265case $host_os in 8266aix[4-9]*) 8267 lt_cv_deplibs_check_method=pass_all 8268 ;; 8269 8270beos*) 8271 lt_cv_deplibs_check_method=pass_all 8272 ;; 8273 8274bsdi[45]*) 8275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8276 lt_cv_file_magic_cmd='/usr/bin/file -L' 8277 lt_cv_file_magic_test_file=/shlib/libc.so 8278 ;; 8279 8280cygwin*) 8281 # func_win32_libid is a shell function defined in ltmain.sh 8282 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8283 lt_cv_file_magic_cmd='func_win32_libid' 8284 ;; 8285 8286mingw* | pw32*) 8287 # Base MSYS/MinGW do not provide the 'file' command needed by 8288 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8289 # unless we find 'file', for example because we are cross-compiling. 8290 if ( file / ) >/dev/null 2>&1; then 8291 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8292 lt_cv_file_magic_cmd='func_win32_libid' 8293 else 8294 # Keep this pattern in sync with the one in func_win32_libid. 8295 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8296 lt_cv_file_magic_cmd='$OBJDUMP -f' 8297 fi 8298 ;; 8299 8300cegcc*) 8301 # use the weaker test based on 'objdump'. See mingw*. 8302 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8303 lt_cv_file_magic_cmd='$OBJDUMP -f' 8304 ;; 8305 8306darwin* | rhapsody*) 8307 lt_cv_deplibs_check_method=pass_all 8308 ;; 8309 8310freebsd* | dragonfly*) 8311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8312 case $host_cpu in 8313 i*86 ) 8314 # Not sure whether the presence of OpenBSD here was a mistake. 8315 # Let's accept both of them until this is cleared up. 8316 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8317 lt_cv_file_magic_cmd=/usr/bin/file 8318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8319 ;; 8320 esac 8321 else 8322 lt_cv_deplibs_check_method=pass_all 8323 fi 8324 ;; 8325 8326haiku*) 8327 lt_cv_deplibs_check_method=pass_all 8328 ;; 8329 8330hpux10.20* | hpux11*) 8331 lt_cv_file_magic_cmd=/usr/bin/file 8332 case $host_cpu in 8333 ia64*) 8334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8335 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8336 ;; 8337 hppa*64*) 8338 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]' 8339 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8340 ;; 8341 *) 8342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8343 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8344 ;; 8345 esac 8346 ;; 8347 8348interix[3-9]*) 8349 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8351 ;; 8352 8353irix5* | irix6* | nonstopux*) 8354 case $LD in 8355 *-32|*"-32 ") libmagic=32-bit;; 8356 *-n32|*"-n32 ") libmagic=N32;; 8357 *-64|*"-64 ") libmagic=64-bit;; 8358 *) libmagic=never-match;; 8359 esac 8360 lt_cv_deplibs_check_method=pass_all 8361 ;; 8362 8363# This must be glibc/ELF. 8364linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8365 lt_cv_deplibs_check_method=pass_all 8366 ;; 8367 8368netbsd*) 8369 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8371 else 8372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8373 fi 8374 ;; 8375 8376newos6*) 8377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8378 lt_cv_file_magic_cmd=/usr/bin/file 8379 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8380 ;; 8381 8382*nto* | *qnx*) 8383 lt_cv_deplibs_check_method=pass_all 8384 ;; 8385 8386openbsd* | bitrig*) 8387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8389 else 8390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8391 fi 8392 ;; 8393 8394osf3* | osf4* | osf5*) 8395 lt_cv_deplibs_check_method=pass_all 8396 ;; 8397 8398rdos*) 8399 lt_cv_deplibs_check_method=pass_all 8400 ;; 8401 8402solaris*) 8403 lt_cv_deplibs_check_method=pass_all 8404 ;; 8405 8406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8407 lt_cv_deplibs_check_method=pass_all 8408 ;; 8409 8410sysv4 | sysv4.3*) 8411 case $host_vendor in 8412 motorola) 8413 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]' 8414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8415 ;; 8416 ncr) 8417 lt_cv_deplibs_check_method=pass_all 8418 ;; 8419 sequent) 8420 lt_cv_file_magic_cmd='/bin/file' 8421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8422 ;; 8423 sni) 8424 lt_cv_file_magic_cmd='/bin/file' 8425 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8426 lt_cv_file_magic_test_file=/lib/libc.so 8427 ;; 8428 siemens) 8429 lt_cv_deplibs_check_method=pass_all 8430 ;; 8431 pc) 8432 lt_cv_deplibs_check_method=pass_all 8433 ;; 8434 esac 8435 ;; 8436 8437tpf*) 8438 lt_cv_deplibs_check_method=pass_all 8439 ;; 8440os2*) 8441 lt_cv_deplibs_check_method=pass_all 8442 ;; 8443esac 8444 8445fi 8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8447$as_echo "$lt_cv_deplibs_check_method" >&6; } 8448 8449file_magic_glob= 8450want_nocaseglob=no 8451if test "$build" = "$host"; then 8452 case $host_os in 8453 mingw* | pw32*) 8454 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8455 want_nocaseglob=yes 8456 else 8457 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8458 fi 8459 ;; 8460 esac 8461fi 8462 8463file_magic_cmd=$lt_cv_file_magic_cmd 8464deplibs_check_method=$lt_cv_deplibs_check_method 8465test -z "$deplibs_check_method" && deplibs_check_method=unknown 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488if test -n "$ac_tool_prefix"; then 8489 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8490set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8492$as_echo_n "checking for $ac_word... " >&6; } 8493if ${ac_cv_prog_DLLTOOL+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 if test -n "$DLLTOOL"; then 8497 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8498else 8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8500for as_dir in $PATH 8501do 8502 IFS=$as_save_IFS 8503 test -z "$as_dir" && as_dir=. 8504 for ac_exec_ext in '' $ac_executable_extensions; do 8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8506 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8508 break 2 8509 fi 8510done 8511 done 8512IFS=$as_save_IFS 8513 8514fi 8515fi 8516DLLTOOL=$ac_cv_prog_DLLTOOL 8517if test -n "$DLLTOOL"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8519$as_echo "$DLLTOOL" >&6; } 8520else 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8522$as_echo "no" >&6; } 8523fi 8524 8525 8526fi 8527if test -z "$ac_cv_prog_DLLTOOL"; then 8528 ac_ct_DLLTOOL=$DLLTOOL 8529 # Extract the first word of "dlltool", so it can be a program name with args. 8530set dummy dlltool; ac_word=$2 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8532$as_echo_n "checking for $ac_word... " >&6; } 8533if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 if test -n "$ac_ct_DLLTOOL"; then 8537 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8538else 8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8540for as_dir in $PATH 8541do 8542 IFS=$as_save_IFS 8543 test -z "$as_dir" && as_dir=. 8544 for ac_exec_ext in '' $ac_executable_extensions; do 8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8546 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8548 break 2 8549 fi 8550done 8551 done 8552IFS=$as_save_IFS 8553 8554fi 8555fi 8556ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8557if test -n "$ac_ct_DLLTOOL"; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8559$as_echo "$ac_ct_DLLTOOL" >&6; } 8560else 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8562$as_echo "no" >&6; } 8563fi 8564 8565 if test "x$ac_ct_DLLTOOL" = x; then 8566 DLLTOOL="false" 8567 else 8568 case $cross_compiling:$ac_tool_warned in 8569yes:) 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8572ac_tool_warned=yes ;; 8573esac 8574 DLLTOOL=$ac_ct_DLLTOOL 8575 fi 8576else 8577 DLLTOOL="$ac_cv_prog_DLLTOOL" 8578fi 8579 8580test -z "$DLLTOOL" && DLLTOOL=dlltool 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8592$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8593if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8594 $as_echo_n "(cached) " >&6 8595else 8596 lt_cv_sharedlib_from_linklib_cmd='unknown' 8597 8598case $host_os in 8599cygwin* | mingw* | pw32* | cegcc*) 8600 # two different shell functions defined in ltmain.sh; 8601 # decide which one to use based on capabilities of $DLLTOOL 8602 case `$DLLTOOL --help 2>&1` in 8603 *--identify-strict*) 8604 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8605 ;; 8606 *) 8607 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8608 ;; 8609 esac 8610 ;; 8611*) 8612 # fallback: assume linklib IS sharedlib 8613 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8614 ;; 8615esac 8616 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8619$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8620sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8621test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8622 8623 8624 8625 8626 8627 8628 8629if test -n "$ac_tool_prefix"; then 8630 for ac_prog in ar 8631 do 8632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8633set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8635$as_echo_n "checking for $ac_word... " >&6; } 8636if ${ac_cv_prog_AR+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 if test -n "$AR"; then 8640 ac_cv_prog_AR="$AR" # Let the user override the test. 8641else 8642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8643for as_dir in $PATH 8644do 8645 IFS=$as_save_IFS 8646 test -z "$as_dir" && as_dir=. 8647 for ac_exec_ext in '' $ac_executable_extensions; do 8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8649 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8651 break 2 8652 fi 8653done 8654 done 8655IFS=$as_save_IFS 8656 8657fi 8658fi 8659AR=$ac_cv_prog_AR 8660if test -n "$AR"; then 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8662$as_echo "$AR" >&6; } 8663else 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8665$as_echo "no" >&6; } 8666fi 8667 8668 8669 test -n "$AR" && break 8670 done 8671fi 8672if test -z "$AR"; then 8673 ac_ct_AR=$AR 8674 for ac_prog in ar 8675do 8676 # Extract the first word of "$ac_prog", so it can be a program name with args. 8677set dummy $ac_prog; ac_word=$2 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8679$as_echo_n "checking for $ac_word... " >&6; } 8680if ${ac_cv_prog_ac_ct_AR+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682else 8683 if test -n "$ac_ct_AR"; then 8684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8685else 8686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8687for as_dir in $PATH 8688do 8689 IFS=$as_save_IFS 8690 test -z "$as_dir" && as_dir=. 8691 for ac_exec_ext in '' $ac_executable_extensions; do 8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8693 ac_cv_prog_ac_ct_AR="$ac_prog" 8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8695 break 2 8696 fi 8697done 8698 done 8699IFS=$as_save_IFS 8700 8701fi 8702fi 8703ac_ct_AR=$ac_cv_prog_ac_ct_AR 8704if test -n "$ac_ct_AR"; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8706$as_echo "$ac_ct_AR" >&6; } 8707else 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8709$as_echo "no" >&6; } 8710fi 8711 8712 8713 test -n "$ac_ct_AR" && break 8714done 8715 8716 if test "x$ac_ct_AR" = x; then 8717 AR="false" 8718 else 8719 case $cross_compiling:$ac_tool_warned in 8720yes:) 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8723ac_tool_warned=yes ;; 8724esac 8725 AR=$ac_ct_AR 8726 fi 8727fi 8728 8729: ${AR=ar} 8730: ${AR_FLAGS=cru} 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8743$as_echo_n "checking for archiver @FILE support... " >&6; } 8744if ${lt_cv_ar_at_file+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746else 8747 lt_cv_ar_at_file=no 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750 8751int 8752main () 8753{ 8754 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759if ac_fn_cxx_try_compile "$LINENO"; then : 8760 echo conftest.$ac_objext > conftest.lst 8761 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8763 (eval $lt_ar_try) 2>&5 8764 ac_status=$? 8765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8766 test $ac_status = 0; } 8767 if test 0 -eq "$ac_status"; then 8768 # Ensure the archiver fails upon bogus file names. 8769 rm -f conftest.$ac_objext libconftest.a 8770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8771 (eval $lt_ar_try) 2>&5 8772 ac_status=$? 8773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8774 test $ac_status = 0; } 8775 if test 0 -ne "$ac_status"; then 8776 lt_cv_ar_at_file=@ 8777 fi 8778 fi 8779 rm -f conftest.* libconftest.a 8780 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8783 8784fi 8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8786$as_echo "$lt_cv_ar_at_file" >&6; } 8787 8788if test no = "$lt_cv_ar_at_file"; then 8789 archiver_list_spec= 8790else 8791 archiver_list_spec=$lt_cv_ar_at_file 8792fi 8793 8794 8795 8796 8797 8798 8799 8800if test -n "$ac_tool_prefix"; then 8801 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8802set dummy ${ac_tool_prefix}strip; ac_word=$2 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8804$as_echo_n "checking for $ac_word... " >&6; } 8805if ${ac_cv_prog_STRIP+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 if test -n "$STRIP"; then 8809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8810else 8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8812for as_dir in $PATH 8813do 8814 IFS=$as_save_IFS 8815 test -z "$as_dir" && as_dir=. 8816 for ac_exec_ext in '' $ac_executable_extensions; do 8817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8818 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8820 break 2 8821 fi 8822done 8823 done 8824IFS=$as_save_IFS 8825 8826fi 8827fi 8828STRIP=$ac_cv_prog_STRIP 8829if test -n "$STRIP"; then 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8831$as_echo "$STRIP" >&6; } 8832else 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8834$as_echo "no" >&6; } 8835fi 8836 8837 8838fi 8839if test -z "$ac_cv_prog_STRIP"; then 8840 ac_ct_STRIP=$STRIP 8841 # Extract the first word of "strip", so it can be a program name with args. 8842set dummy strip; ac_word=$2 8843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8844$as_echo_n "checking for $ac_word... " >&6; } 8845if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 if test -n "$ac_ct_STRIP"; then 8849 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8850else 8851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8852for as_dir in $PATH 8853do 8854 IFS=$as_save_IFS 8855 test -z "$as_dir" && as_dir=. 8856 for ac_exec_ext in '' $ac_executable_extensions; do 8857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8858 ac_cv_prog_ac_ct_STRIP="strip" 8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8860 break 2 8861 fi 8862done 8863 done 8864IFS=$as_save_IFS 8865 8866fi 8867fi 8868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8869if test -n "$ac_ct_STRIP"; then 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8871$as_echo "$ac_ct_STRIP" >&6; } 8872else 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8874$as_echo "no" >&6; } 8875fi 8876 8877 if test "x$ac_ct_STRIP" = x; then 8878 STRIP=":" 8879 else 8880 case $cross_compiling:$ac_tool_warned in 8881yes:) 8882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8884ac_tool_warned=yes ;; 8885esac 8886 STRIP=$ac_ct_STRIP 8887 fi 8888else 8889 STRIP="$ac_cv_prog_STRIP" 8890fi 8891 8892test -z "$STRIP" && STRIP=: 8893 8894 8895 8896 8897 8898 8899if test -n "$ac_tool_prefix"; then 8900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8901set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8903$as_echo_n "checking for $ac_word... " >&6; } 8904if ${ac_cv_prog_RANLIB+:} false; then : 8905 $as_echo_n "(cached) " >&6 8906else 8907 if test -n "$RANLIB"; then 8908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8909else 8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8911for as_dir in $PATH 8912do 8913 IFS=$as_save_IFS 8914 test -z "$as_dir" && as_dir=. 8915 for ac_exec_ext in '' $ac_executable_extensions; do 8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8919 break 2 8920 fi 8921done 8922 done 8923IFS=$as_save_IFS 8924 8925fi 8926fi 8927RANLIB=$ac_cv_prog_RANLIB 8928if test -n "$RANLIB"; then 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8930$as_echo "$RANLIB" >&6; } 8931else 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8933$as_echo "no" >&6; } 8934fi 8935 8936 8937fi 8938if test -z "$ac_cv_prog_RANLIB"; then 8939 ac_ct_RANLIB=$RANLIB 8940 # Extract the first word of "ranlib", so it can be a program name with args. 8941set dummy ranlib; ac_word=$2 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8943$as_echo_n "checking for $ac_word... " >&6; } 8944if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 if test -n "$ac_ct_RANLIB"; then 8948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8949else 8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8951for as_dir in $PATH 8952do 8953 IFS=$as_save_IFS 8954 test -z "$as_dir" && as_dir=. 8955 for ac_exec_ext in '' $ac_executable_extensions; do 8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8957 ac_cv_prog_ac_ct_RANLIB="ranlib" 8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8959 break 2 8960 fi 8961done 8962 done 8963IFS=$as_save_IFS 8964 8965fi 8966fi 8967ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8968if test -n "$ac_ct_RANLIB"; then 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8970$as_echo "$ac_ct_RANLIB" >&6; } 8971else 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8973$as_echo "no" >&6; } 8974fi 8975 8976 if test "x$ac_ct_RANLIB" = x; then 8977 RANLIB=":" 8978 else 8979 case $cross_compiling:$ac_tool_warned in 8980yes:) 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8983ac_tool_warned=yes ;; 8984esac 8985 RANLIB=$ac_ct_RANLIB 8986 fi 8987else 8988 RANLIB="$ac_cv_prog_RANLIB" 8989fi 8990 8991test -z "$RANLIB" && RANLIB=: 8992 8993 8994 8995 8996 8997 8998# Determine commands to create old-style static archives. 8999old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9000old_postinstall_cmds='chmod 644 $oldlib' 9001old_postuninstall_cmds= 9002 9003if test -n "$RANLIB"; then 9004 case $host_os in 9005 bitrig* | openbsd*) 9006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9007 ;; 9008 *) 9009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9010 ;; 9011 esac 9012 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9013fi 9014 9015case $host_os in 9016 darwin*) 9017 lock_old_archive_extraction=yes ;; 9018 *) 9019 lock_old_archive_extraction=no ;; 9020esac 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060# If no C compiler was specified, use CC. 9061LTCC=${LTCC-"$CC"} 9062 9063# If no C compiler flags were specified, use CFLAGS. 9064LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9065 9066# Allow CC to be a program name with arguments. 9067compiler=$CC 9068 9069 9070# Check for command to grab the raw symbol name followed by C symbol from nm. 9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9072$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9073if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 9077# These are sane defaults that work on at least a few old systems. 9078# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9079 9080# Character class describing NM global symbol codes. 9081symcode='[BCDEGRST]' 9082 9083# Regexp to match symbols that can be accessed directly from C. 9084sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9085 9086# Define system-specific variables. 9087case $host_os in 9088aix*) 9089 symcode='[BCDT]' 9090 ;; 9091cygwin* | mingw* | pw32* | cegcc*) 9092 symcode='[ABCDGISTW]' 9093 ;; 9094hpux*) 9095 if test ia64 = "$host_cpu"; then 9096 symcode='[ABCDEGRST]' 9097 fi 9098 ;; 9099irix* | nonstopux*) 9100 symcode='[BCDEGRST]' 9101 ;; 9102osf*) 9103 symcode='[BCDEGQRST]' 9104 ;; 9105solaris*) 9106 symcode='[BDRT]' 9107 ;; 9108sco3.2v5*) 9109 symcode='[DT]' 9110 ;; 9111sysv4.2uw2*) 9112 symcode='[DT]' 9113 ;; 9114sysv5* | sco5v6* | unixware* | OpenUNIX*) 9115 symcode='[ABDT]' 9116 ;; 9117sysv4) 9118 symcode='[DFNSTU]' 9119 ;; 9120esac 9121 9122# If we're using GNU nm, then use its standard symbol codes. 9123case `$NM -V 2>&1` in 9124*GNU* | *'with BFD'*) 9125 symcode='[ABCDGIRSTW]' ;; 9126esac 9127 9128if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9129 # Gets list of data symbols to import. 9130 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9131 # Adjust the below global symbol transforms to fixup imported variables. 9132 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9133 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9134 lt_c_name_lib_hook="\ 9135 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9136 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9137else 9138 # Disable hooks by default. 9139 lt_cv_sys_global_symbol_to_import= 9140 lt_cdecl_hook= 9141 lt_c_name_hook= 9142 lt_c_name_lib_hook= 9143fi 9144 9145# Transform an extracted symbol line into a proper C declaration. 9146# Some systems (esp. on ia64) link data and code symbols differently, 9147# so use this general approach. 9148lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9149$lt_cdecl_hook\ 9150" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9151" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9152 9153# Transform an extracted symbol line into symbol name and symbol address 9154lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9155$lt_c_name_hook\ 9156" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9157" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9158 9159# Transform an extracted symbol line into symbol name with lib prefix and 9160# symbol address. 9161lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9162$lt_c_name_lib_hook\ 9163" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9164" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9165" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9166 9167# Handle CRLF in mingw tool chain 9168opt_cr= 9169case $build_os in 9170mingw*) 9171 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9172 ;; 9173esac 9174 9175# Try without a prefix underscore, then with it. 9176for ac_symprfx in "" "_"; do 9177 9178 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9179 symxfrm="\\1 $ac_symprfx\\2 \\2" 9180 9181 # Write the raw and C identifiers. 9182 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9183 # Fake it for dumpbin and say T for any non-static function, 9184 # D for any global variable and I for any imported variable. 9185 # Also find C++ and __fastcall symbols from MSVC++, 9186 # which start with @ or ?. 9187 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9188" {last_section=section; section=\$ 3};"\ 9189" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9190" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9191" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9192" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9193" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9194" \$ 0!~/External *\|/{next};"\ 9195" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9196" {if(hide[section]) next};"\ 9197" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9198" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9199" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9200" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9201" ' prfx=^$ac_symprfx" 9202 else 9203 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9204 fi 9205 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9206 9207 # Check to see that the pipe works correctly. 9208 pipe_works=no 9209 9210 rm -f conftest* 9211 cat > conftest.$ac_ext <<_LT_EOF 9212#ifdef __cplusplus 9213extern "C" { 9214#endif 9215char nm_test_var; 9216void nm_test_func(void); 9217void nm_test_func(void){} 9218#ifdef __cplusplus 9219} 9220#endif 9221int main(){nm_test_var='a';nm_test_func();return(0);} 9222_LT_EOF 9223 9224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9225 (eval $ac_compile) 2>&5 9226 ac_status=$? 9227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9228 test $ac_status = 0; }; then 9229 # Now try to grab the symbols. 9230 nlist=conftest.nm 9231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9232 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9233 ac_status=$? 9234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9235 test $ac_status = 0; } && test -s "$nlist"; then 9236 # Try sorting and uniquifying the output. 9237 if sort "$nlist" | uniq > "$nlist"T; then 9238 mv -f "$nlist"T "$nlist" 9239 else 9240 rm -f "$nlist"T 9241 fi 9242 9243 # Make sure that we snagged all the symbols we need. 9244 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9245 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9246 cat <<_LT_EOF > conftest.$ac_ext 9247/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9248#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9249/* DATA imports from DLLs on WIN32 can't be const, because runtime 9250 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9251# define LT_DLSYM_CONST 9252#elif defined __osf__ 9253/* This system does not cope well with relocations in const data. */ 9254# define LT_DLSYM_CONST 9255#else 9256# define LT_DLSYM_CONST const 9257#endif 9258 9259#ifdef __cplusplus 9260extern "C" { 9261#endif 9262 9263_LT_EOF 9264 # Now generate the symbol file. 9265 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9266 9267 cat <<_LT_EOF >> conftest.$ac_ext 9268 9269/* The mapping between symbol names and symbols. */ 9270LT_DLSYM_CONST struct { 9271 const char *name; 9272 void *address; 9273} 9274lt__PROGRAM__LTX_preloaded_symbols[] = 9275{ 9276 { "@PROGRAM@", (void *) 0 }, 9277_LT_EOF 9278 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9279 cat <<\_LT_EOF >> conftest.$ac_ext 9280 {0, (void *) 0} 9281}; 9282 9283/* This works around a problem in FreeBSD linker */ 9284#ifdef FREEBSD_WORKAROUND 9285static const void *lt_preloaded_setup() { 9286 return lt__PROGRAM__LTX_preloaded_symbols; 9287} 9288#endif 9289 9290#ifdef __cplusplus 9291} 9292#endif 9293_LT_EOF 9294 # Now try linking the two files. 9295 mv conftest.$ac_objext conftstm.$ac_objext 9296 lt_globsym_save_LIBS=$LIBS 9297 lt_globsym_save_CFLAGS=$CFLAGS 9298 LIBS=conftstm.$ac_objext 9299 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9301 (eval $ac_link) 2>&5 9302 ac_status=$? 9303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9304 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9305 pipe_works=yes 9306 fi 9307 LIBS=$lt_globsym_save_LIBS 9308 CFLAGS=$lt_globsym_save_CFLAGS 9309 else 9310 echo "cannot find nm_test_func in $nlist" >&5 9311 fi 9312 else 9313 echo "cannot find nm_test_var in $nlist" >&5 9314 fi 9315 else 9316 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9317 fi 9318 else 9319 echo "$progname: failed program was:" >&5 9320 cat conftest.$ac_ext >&5 9321 fi 9322 rm -rf conftest* conftst* 9323 9324 # Do not use the global_symbol_pipe unless it works. 9325 if test yes = "$pipe_works"; then 9326 break 9327 else 9328 lt_cv_sys_global_symbol_pipe= 9329 fi 9330done 9331 9332fi 9333 9334if test -z "$lt_cv_sys_global_symbol_pipe"; then 9335 lt_cv_sys_global_symbol_to_cdecl= 9336fi 9337if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9339$as_echo "failed" >&6; } 9340else 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9342$as_echo "ok" >&6; } 9343fi 9344 9345# Response file support. 9346if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9347 nm_file_list_spec='@' 9348elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9349 nm_file_list_spec='@' 9350fi 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9389$as_echo_n "checking for sysroot... " >&6; } 9390 9391# Check whether --with-sysroot was given. 9392if test "${with_sysroot+set}" = set; then : 9393 withval=$with_sysroot; 9394else 9395 with_sysroot=no 9396fi 9397 9398 9399lt_sysroot= 9400case $with_sysroot in #( 9401 yes) 9402 if test yes = "$GCC"; then 9403 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9404 fi 9405 ;; #( 9406 /*) 9407 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9408 ;; #( 9409 no|'') 9410 ;; #( 9411 *) 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9413$as_echo "$with_sysroot" >&6; } 9414 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9415 ;; 9416esac 9417 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9419$as_echo "${lt_sysroot:-no}" >&6; } 9420 9421 9422 9423 9424 9425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9426$as_echo_n "checking for a working dd... " >&6; } 9427if ${ac_cv_path_lt_DD+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 printf 0123456789abcdef0123456789abcdef >conftest.i 9431cat conftest.i conftest.i >conftest2.i 9432: ${lt_DD:=$DD} 9433if test -z "$lt_DD"; then 9434 ac_path_lt_DD_found=false 9435 # Loop through the user's path and test for each of PROGNAME-LIST 9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9437for as_dir in $PATH 9438do 9439 IFS=$as_save_IFS 9440 test -z "$as_dir" && as_dir=. 9441 for ac_prog in dd; do 9442 for ac_exec_ext in '' $ac_executable_extensions; do 9443 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9444 as_fn_executable_p "$ac_path_lt_DD" || continue 9445if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9446 cmp -s conftest.i conftest.out \ 9447 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9448fi 9449 $ac_path_lt_DD_found && break 3 9450 done 9451 done 9452 done 9453IFS=$as_save_IFS 9454 if test -z "$ac_cv_path_lt_DD"; then 9455 : 9456 fi 9457else 9458 ac_cv_path_lt_DD=$lt_DD 9459fi 9460 9461rm -f conftest.i conftest2.i conftest.out 9462fi 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9464$as_echo "$ac_cv_path_lt_DD" >&6; } 9465 9466 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9468$as_echo_n "checking how to truncate binary pipes... " >&6; } 9469if ${lt_cv_truncate_bin+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471else 9472 printf 0123456789abcdef0123456789abcdef >conftest.i 9473cat conftest.i conftest.i >conftest2.i 9474lt_cv_truncate_bin= 9475if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9476 cmp -s conftest.i conftest.out \ 9477 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9478fi 9479rm -f conftest.i conftest2.i conftest.out 9480test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9481fi 9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9483$as_echo "$lt_cv_truncate_bin" >&6; } 9484 9485 9486 9487 9488 9489 9490 9491# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9492func_cc_basename () 9493{ 9494 for cc_temp in $*""; do 9495 case $cc_temp in 9496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9498 \-*) ;; 9499 *) break;; 9500 esac 9501 done 9502 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9503} 9504 9505# Check whether --enable-libtool-lock was given. 9506if test "${enable_libtool_lock+set}" = set; then : 9507 enableval=$enable_libtool_lock; 9508fi 9509 9510test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9511 9512# Some flags need to be propagated to the compiler or linker for good 9513# libtool support. 9514case $host in 9515ia64-*-hpux*) 9516 # Find out what ABI is being produced by ac_compile, and set mode 9517 # options accordingly. 9518 echo 'int i;' > conftest.$ac_ext 9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9520 (eval $ac_compile) 2>&5 9521 ac_status=$? 9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9523 test $ac_status = 0; }; then 9524 case `/usr/bin/file conftest.$ac_objext` in 9525 *ELF-32*) 9526 HPUX_IA64_MODE=32 9527 ;; 9528 *ELF-64*) 9529 HPUX_IA64_MODE=64 9530 ;; 9531 esac 9532 fi 9533 rm -rf conftest* 9534 ;; 9535*-*-irix6*) 9536 # Find out what ABI is being produced by ac_compile, and set linker 9537 # options accordingly. 9538 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9540 (eval $ac_compile) 2>&5 9541 ac_status=$? 9542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9543 test $ac_status = 0; }; then 9544 if test yes = "$lt_cv_prog_gnu_ld"; then 9545 case `/usr/bin/file conftest.$ac_objext` in 9546 *32-bit*) 9547 LD="${LD-ld} -melf32bsmip" 9548 ;; 9549 *N32*) 9550 LD="${LD-ld} -melf32bmipn32" 9551 ;; 9552 *64-bit*) 9553 LD="${LD-ld} -melf64bmip" 9554 ;; 9555 esac 9556 else 9557 case `/usr/bin/file conftest.$ac_objext` in 9558 *32-bit*) 9559 LD="${LD-ld} -32" 9560 ;; 9561 *N32*) 9562 LD="${LD-ld} -n32" 9563 ;; 9564 *64-bit*) 9565 LD="${LD-ld} -64" 9566 ;; 9567 esac 9568 fi 9569 fi 9570 rm -rf conftest* 9571 ;; 9572 9573mips64*-*linux*) 9574 # Find out what ABI is being produced by ac_compile, and set linker 9575 # options accordingly. 9576 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9578 (eval $ac_compile) 2>&5 9579 ac_status=$? 9580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9581 test $ac_status = 0; }; then 9582 emul=elf 9583 case `/usr/bin/file conftest.$ac_objext` in 9584 *32-bit*) 9585 emul="${emul}32" 9586 ;; 9587 *64-bit*) 9588 emul="${emul}64" 9589 ;; 9590 esac 9591 case `/usr/bin/file conftest.$ac_objext` in 9592 *MSB*) 9593 emul="${emul}btsmip" 9594 ;; 9595 *LSB*) 9596 emul="${emul}ltsmip" 9597 ;; 9598 esac 9599 case `/usr/bin/file conftest.$ac_objext` in 9600 *N32*) 9601 emul="${emul}n32" 9602 ;; 9603 esac 9604 LD="${LD-ld} -m $emul" 9605 fi 9606 rm -rf conftest* 9607 ;; 9608 9609x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9610s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9611 # Find out what ABI is being produced by ac_compile, and set linker 9612 # options accordingly. Note that the listed cases only cover the 9613 # situations where additional linker options are needed (such as when 9614 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9615 # vice versa); the common cases where no linker options are needed do 9616 # not appear in the list. 9617 echo 'int i;' > conftest.$ac_ext 9618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9619 (eval $ac_compile) 2>&5 9620 ac_status=$? 9621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9622 test $ac_status = 0; }; then 9623 case `/usr/bin/file conftest.o` in 9624 *32-bit*) 9625 case $host in 9626 x86_64-*kfreebsd*-gnu) 9627 LD="${LD-ld} -m elf_i386_fbsd" 9628 ;; 9629 x86_64-*linux*) 9630 case `/usr/bin/file conftest.o` in 9631 *x86-64*) 9632 LD="${LD-ld} -m elf32_x86_64" 9633 ;; 9634 *) 9635 LD="${LD-ld} -m elf_i386" 9636 ;; 9637 esac 9638 ;; 9639 powerpc64le-*linux*) 9640 LD="${LD-ld} -m elf32lppclinux" 9641 ;; 9642 powerpc64-*linux*) 9643 LD="${LD-ld} -m elf32ppclinux" 9644 ;; 9645 s390x-*linux*) 9646 LD="${LD-ld} -m elf_s390" 9647 ;; 9648 sparc64-*linux*) 9649 LD="${LD-ld} -m elf32_sparc" 9650 ;; 9651 esac 9652 ;; 9653 *64-bit*) 9654 case $host in 9655 x86_64-*kfreebsd*-gnu) 9656 LD="${LD-ld} -m elf_x86_64_fbsd" 9657 ;; 9658 x86_64-*linux*) 9659 LD="${LD-ld} -m elf_x86_64" 9660 ;; 9661 powerpcle-*linux*) 9662 LD="${LD-ld} -m elf64lppc" 9663 ;; 9664 powerpc-*linux*) 9665 LD="${LD-ld} -m elf64ppc" 9666 ;; 9667 s390*-*linux*|s390*-*tpf*) 9668 LD="${LD-ld} -m elf64_s390" 9669 ;; 9670 sparc*-*linux*) 9671 LD="${LD-ld} -m elf64_sparc" 9672 ;; 9673 esac 9674 ;; 9675 esac 9676 fi 9677 rm -rf conftest* 9678 ;; 9679 9680*-*-sco3.2v5*) 9681 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9682 SAVE_CFLAGS=$CFLAGS 9683 CFLAGS="$CFLAGS -belf" 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9685$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9686if ${lt_cv_cc_needs_belf+:} false; then : 9687 $as_echo_n "(cached) " >&6 9688else 9689 ac_ext=c 9690ac_cpp='$CPP $CPPFLAGS' 9691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9693ac_compiler_gnu=$ac_cv_c_compiler_gnu 9694 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697 9698int 9699main () 9700{ 9701 9702 ; 9703 return 0; 9704} 9705_ACEOF 9706if ac_fn_c_try_link "$LINENO"; then : 9707 lt_cv_cc_needs_belf=yes 9708else 9709 lt_cv_cc_needs_belf=no 9710fi 9711rm -f core conftest.err conftest.$ac_objext \ 9712 conftest$ac_exeext conftest.$ac_ext 9713 ac_ext=c 9714ac_cpp='$CPP $CPPFLAGS' 9715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9717ac_compiler_gnu=$ac_cv_c_compiler_gnu 9718 9719fi 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9721$as_echo "$lt_cv_cc_needs_belf" >&6; } 9722 if test yes != "$lt_cv_cc_needs_belf"; then 9723 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9724 CFLAGS=$SAVE_CFLAGS 9725 fi 9726 ;; 9727*-*solaris*) 9728 # Find out what ABI is being produced by ac_compile, and set linker 9729 # options accordingly. 9730 echo 'int i;' > conftest.$ac_ext 9731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9732 (eval $ac_compile) 2>&5 9733 ac_status=$? 9734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9735 test $ac_status = 0; }; then 9736 case `/usr/bin/file conftest.o` in 9737 *64-bit*) 9738 case $lt_cv_prog_gnu_ld in 9739 yes*) 9740 case $host in 9741 i?86-*-solaris*|x86_64-*-solaris*) 9742 LD="${LD-ld} -m elf_x86_64" 9743 ;; 9744 sparc*-*-solaris*) 9745 LD="${LD-ld} -m elf64_sparc" 9746 ;; 9747 esac 9748 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9749 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9750 LD=${LD-ld}_sol2 9751 fi 9752 ;; 9753 *) 9754 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9755 LD="${LD-ld} -64" 9756 fi 9757 ;; 9758 esac 9759 ;; 9760 esac 9761 fi 9762 rm -rf conftest* 9763 ;; 9764esac 9765 9766need_locks=$enable_libtool_lock 9767 9768if test -n "$ac_tool_prefix"; then 9769 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9770set dummy ${ac_tool_prefix}mt; ac_word=$2 9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9772$as_echo_n "checking for $ac_word... " >&6; } 9773if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 if test -n "$MANIFEST_TOOL"; then 9777 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9778else 9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9780for as_dir in $PATH 9781do 9782 IFS=$as_save_IFS 9783 test -z "$as_dir" && as_dir=. 9784 for ac_exec_ext in '' $ac_executable_extensions; do 9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9786 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9788 break 2 9789 fi 9790done 9791 done 9792IFS=$as_save_IFS 9793 9794fi 9795fi 9796MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9797if test -n "$MANIFEST_TOOL"; then 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9799$as_echo "$MANIFEST_TOOL" >&6; } 9800else 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9802$as_echo "no" >&6; } 9803fi 9804 9805 9806fi 9807if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9808 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9809 # Extract the first word of "mt", so it can be a program name with args. 9810set dummy mt; ac_word=$2 9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9812$as_echo_n "checking for $ac_word... " >&6; } 9813if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9814 $as_echo_n "(cached) " >&6 9815else 9816 if test -n "$ac_ct_MANIFEST_TOOL"; then 9817 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9818else 9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9820for as_dir in $PATH 9821do 9822 IFS=$as_save_IFS 9823 test -z "$as_dir" && as_dir=. 9824 for ac_exec_ext in '' $ac_executable_extensions; do 9825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9826 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9828 break 2 9829 fi 9830done 9831 done 9832IFS=$as_save_IFS 9833 9834fi 9835fi 9836ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9837if test -n "$ac_ct_MANIFEST_TOOL"; then 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9839$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9840else 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9842$as_echo "no" >&6; } 9843fi 9844 9845 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9846 MANIFEST_TOOL=":" 9847 else 9848 case $cross_compiling:$ac_tool_warned in 9849yes:) 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9852ac_tool_warned=yes ;; 9853esac 9854 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9855 fi 9856else 9857 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9858fi 9859 9860test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9862$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9863if ${lt_cv_path_mainfest_tool+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 lt_cv_path_mainfest_tool=no 9867 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9868 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9869 cat conftest.err >&5 9870 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9871 lt_cv_path_mainfest_tool=yes 9872 fi 9873 rm -f conftest* 9874fi 9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9876$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9877if test yes != "$lt_cv_path_mainfest_tool"; then 9878 MANIFEST_TOOL=: 9879fi 9880 9881 9882 9883 9884 9885 9886 case $host_os in 9887 rhapsody* | darwin*) 9888 if test -n "$ac_tool_prefix"; then 9889 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9890set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9892$as_echo_n "checking for $ac_word... " >&6; } 9893if ${ac_cv_prog_DSYMUTIL+:} false; then : 9894 $as_echo_n "(cached) " >&6 9895else 9896 if test -n "$DSYMUTIL"; then 9897 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9898else 9899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9900for as_dir in $PATH 9901do 9902 IFS=$as_save_IFS 9903 test -z "$as_dir" && as_dir=. 9904 for ac_exec_ext in '' $ac_executable_extensions; do 9905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9906 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9908 break 2 9909 fi 9910done 9911 done 9912IFS=$as_save_IFS 9913 9914fi 9915fi 9916DSYMUTIL=$ac_cv_prog_DSYMUTIL 9917if test -n "$DSYMUTIL"; then 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9919$as_echo "$DSYMUTIL" >&6; } 9920else 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9922$as_echo "no" >&6; } 9923fi 9924 9925 9926fi 9927if test -z "$ac_cv_prog_DSYMUTIL"; then 9928 ac_ct_DSYMUTIL=$DSYMUTIL 9929 # Extract the first word of "dsymutil", so it can be a program name with args. 9930set dummy dsymutil; ac_word=$2 9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9932$as_echo_n "checking for $ac_word... " >&6; } 9933if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9934 $as_echo_n "(cached) " >&6 9935else 9936 if test -n "$ac_ct_DSYMUTIL"; then 9937 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9938else 9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9940for as_dir in $PATH 9941do 9942 IFS=$as_save_IFS 9943 test -z "$as_dir" && as_dir=. 9944 for ac_exec_ext in '' $ac_executable_extensions; do 9945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9946 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9948 break 2 9949 fi 9950done 9951 done 9952IFS=$as_save_IFS 9953 9954fi 9955fi 9956ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9957if test -n "$ac_ct_DSYMUTIL"; then 9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9959$as_echo "$ac_ct_DSYMUTIL" >&6; } 9960else 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9962$as_echo "no" >&6; } 9963fi 9964 9965 if test "x$ac_ct_DSYMUTIL" = x; then 9966 DSYMUTIL=":" 9967 else 9968 case $cross_compiling:$ac_tool_warned in 9969yes:) 9970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9972ac_tool_warned=yes ;; 9973esac 9974 DSYMUTIL=$ac_ct_DSYMUTIL 9975 fi 9976else 9977 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9978fi 9979 9980 if test -n "$ac_tool_prefix"; then 9981 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9982set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9984$as_echo_n "checking for $ac_word... " >&6; } 9985if ${ac_cv_prog_NMEDIT+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 if test -n "$NMEDIT"; then 9989 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9990else 9991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9992for as_dir in $PATH 9993do 9994 IFS=$as_save_IFS 9995 test -z "$as_dir" && as_dir=. 9996 for ac_exec_ext in '' $ac_executable_extensions; do 9997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9998 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10000 break 2 10001 fi 10002done 10003 done 10004IFS=$as_save_IFS 10005 10006fi 10007fi 10008NMEDIT=$ac_cv_prog_NMEDIT 10009if test -n "$NMEDIT"; then 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10011$as_echo "$NMEDIT" >&6; } 10012else 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10014$as_echo "no" >&6; } 10015fi 10016 10017 10018fi 10019if test -z "$ac_cv_prog_NMEDIT"; then 10020 ac_ct_NMEDIT=$NMEDIT 10021 # Extract the first word of "nmedit", so it can be a program name with args. 10022set dummy nmedit; ac_word=$2 10023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10024$as_echo_n "checking for $ac_word... " >&6; } 10025if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 if test -n "$ac_ct_NMEDIT"; then 10029 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10030else 10031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10032for as_dir in $PATH 10033do 10034 IFS=$as_save_IFS 10035 test -z "$as_dir" && as_dir=. 10036 for ac_exec_ext in '' $ac_executable_extensions; do 10037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10038 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10040 break 2 10041 fi 10042done 10043 done 10044IFS=$as_save_IFS 10045 10046fi 10047fi 10048ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10049if test -n "$ac_ct_NMEDIT"; then 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10051$as_echo "$ac_ct_NMEDIT" >&6; } 10052else 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10054$as_echo "no" >&6; } 10055fi 10056 10057 if test "x$ac_ct_NMEDIT" = x; then 10058 NMEDIT=":" 10059 else 10060 case $cross_compiling:$ac_tool_warned in 10061yes:) 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10064ac_tool_warned=yes ;; 10065esac 10066 NMEDIT=$ac_ct_NMEDIT 10067 fi 10068else 10069 NMEDIT="$ac_cv_prog_NMEDIT" 10070fi 10071 10072 if test -n "$ac_tool_prefix"; then 10073 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10074set dummy ${ac_tool_prefix}lipo; ac_word=$2 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10076$as_echo_n "checking for $ac_word... " >&6; } 10077if ${ac_cv_prog_LIPO+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079else 10080 if test -n "$LIPO"; then 10081 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10082else 10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10084for as_dir in $PATH 10085do 10086 IFS=$as_save_IFS 10087 test -z "$as_dir" && as_dir=. 10088 for ac_exec_ext in '' $ac_executable_extensions; do 10089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10090 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10092 break 2 10093 fi 10094done 10095 done 10096IFS=$as_save_IFS 10097 10098fi 10099fi 10100LIPO=$ac_cv_prog_LIPO 10101if test -n "$LIPO"; then 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10103$as_echo "$LIPO" >&6; } 10104else 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10106$as_echo "no" >&6; } 10107fi 10108 10109 10110fi 10111if test -z "$ac_cv_prog_LIPO"; then 10112 ac_ct_LIPO=$LIPO 10113 # Extract the first word of "lipo", so it can be a program name with args. 10114set dummy lipo; ac_word=$2 10115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10116$as_echo_n "checking for $ac_word... " >&6; } 10117if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10118 $as_echo_n "(cached) " >&6 10119else 10120 if test -n "$ac_ct_LIPO"; then 10121 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10122else 10123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10124for as_dir in $PATH 10125do 10126 IFS=$as_save_IFS 10127 test -z "$as_dir" && as_dir=. 10128 for ac_exec_ext in '' $ac_executable_extensions; do 10129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10130 ac_cv_prog_ac_ct_LIPO="lipo" 10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10132 break 2 10133 fi 10134done 10135 done 10136IFS=$as_save_IFS 10137 10138fi 10139fi 10140ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10141if test -n "$ac_ct_LIPO"; then 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10143$as_echo "$ac_ct_LIPO" >&6; } 10144else 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10146$as_echo "no" >&6; } 10147fi 10148 10149 if test "x$ac_ct_LIPO" = x; then 10150 LIPO=":" 10151 else 10152 case $cross_compiling:$ac_tool_warned in 10153yes:) 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10156ac_tool_warned=yes ;; 10157esac 10158 LIPO=$ac_ct_LIPO 10159 fi 10160else 10161 LIPO="$ac_cv_prog_LIPO" 10162fi 10163 10164 if test -n "$ac_tool_prefix"; then 10165 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10166set dummy ${ac_tool_prefix}otool; ac_word=$2 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10168$as_echo_n "checking for $ac_word... " >&6; } 10169if ${ac_cv_prog_OTOOL+:} false; then : 10170 $as_echo_n "(cached) " >&6 10171else 10172 if test -n "$OTOOL"; then 10173 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10174else 10175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10176for as_dir in $PATH 10177do 10178 IFS=$as_save_IFS 10179 test -z "$as_dir" && as_dir=. 10180 for ac_exec_ext in '' $ac_executable_extensions; do 10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10182 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10184 break 2 10185 fi 10186done 10187 done 10188IFS=$as_save_IFS 10189 10190fi 10191fi 10192OTOOL=$ac_cv_prog_OTOOL 10193if test -n "$OTOOL"; then 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10195$as_echo "$OTOOL" >&6; } 10196else 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10198$as_echo "no" >&6; } 10199fi 10200 10201 10202fi 10203if test -z "$ac_cv_prog_OTOOL"; then 10204 ac_ct_OTOOL=$OTOOL 10205 # Extract the first word of "otool", so it can be a program name with args. 10206set dummy otool; ac_word=$2 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10208$as_echo_n "checking for $ac_word... " >&6; } 10209if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211else 10212 if test -n "$ac_ct_OTOOL"; then 10213 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10214else 10215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10216for as_dir in $PATH 10217do 10218 IFS=$as_save_IFS 10219 test -z "$as_dir" && as_dir=. 10220 for ac_exec_ext in '' $ac_executable_extensions; do 10221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10222 ac_cv_prog_ac_ct_OTOOL="otool" 10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10224 break 2 10225 fi 10226done 10227 done 10228IFS=$as_save_IFS 10229 10230fi 10231fi 10232ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10233if test -n "$ac_ct_OTOOL"; then 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10235$as_echo "$ac_ct_OTOOL" >&6; } 10236else 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10238$as_echo "no" >&6; } 10239fi 10240 10241 if test "x$ac_ct_OTOOL" = x; then 10242 OTOOL=":" 10243 else 10244 case $cross_compiling:$ac_tool_warned in 10245yes:) 10246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10248ac_tool_warned=yes ;; 10249esac 10250 OTOOL=$ac_ct_OTOOL 10251 fi 10252else 10253 OTOOL="$ac_cv_prog_OTOOL" 10254fi 10255 10256 if test -n "$ac_tool_prefix"; then 10257 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10258set dummy ${ac_tool_prefix}otool64; ac_word=$2 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10260$as_echo_n "checking for $ac_word... " >&6; } 10261if ${ac_cv_prog_OTOOL64+:} false; then : 10262 $as_echo_n "(cached) " >&6 10263else 10264 if test -n "$OTOOL64"; then 10265 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10266else 10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10268for as_dir in $PATH 10269do 10270 IFS=$as_save_IFS 10271 test -z "$as_dir" && as_dir=. 10272 for ac_exec_ext in '' $ac_executable_extensions; do 10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10274 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10276 break 2 10277 fi 10278done 10279 done 10280IFS=$as_save_IFS 10281 10282fi 10283fi 10284OTOOL64=$ac_cv_prog_OTOOL64 10285if test -n "$OTOOL64"; then 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10287$as_echo "$OTOOL64" >&6; } 10288else 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10290$as_echo "no" >&6; } 10291fi 10292 10293 10294fi 10295if test -z "$ac_cv_prog_OTOOL64"; then 10296 ac_ct_OTOOL64=$OTOOL64 10297 # Extract the first word of "otool64", so it can be a program name with args. 10298set dummy otool64; ac_word=$2 10299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10300$as_echo_n "checking for $ac_word... " >&6; } 10301if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10302 $as_echo_n "(cached) " >&6 10303else 10304 if test -n "$ac_ct_OTOOL64"; then 10305 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10306else 10307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10308for as_dir in $PATH 10309do 10310 IFS=$as_save_IFS 10311 test -z "$as_dir" && as_dir=. 10312 for ac_exec_ext in '' $ac_executable_extensions; do 10313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10314 ac_cv_prog_ac_ct_OTOOL64="otool64" 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10316 break 2 10317 fi 10318done 10319 done 10320IFS=$as_save_IFS 10321 10322fi 10323fi 10324ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10325if test -n "$ac_ct_OTOOL64"; then 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10327$as_echo "$ac_ct_OTOOL64" >&6; } 10328else 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10330$as_echo "no" >&6; } 10331fi 10332 10333 if test "x$ac_ct_OTOOL64" = x; then 10334 OTOOL64=":" 10335 else 10336 case $cross_compiling:$ac_tool_warned in 10337yes:) 10338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10340ac_tool_warned=yes ;; 10341esac 10342 OTOOL64=$ac_ct_OTOOL64 10343 fi 10344else 10345 OTOOL64="$ac_cv_prog_OTOOL64" 10346fi 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10375$as_echo_n "checking for -single_module linker flag... " >&6; } 10376if ${lt_cv_apple_cc_single_mod+:} false; then : 10377 $as_echo_n "(cached) " >&6 10378else 10379 lt_cv_apple_cc_single_mod=no 10380 if test -z "$LT_MULTI_MODULE"; then 10381 # By default we will add the -single_module flag. You can override 10382 # by either setting the environment variable LT_MULTI_MODULE 10383 # non-empty at configure time, or by adding -multi_module to the 10384 # link flags. 10385 rm -rf libconftest.dylib* 10386 echo "int foo(void){return 1;}" > conftest.c 10387 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10388-dynamiclib -Wl,-single_module conftest.c" >&5 10389 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10390 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10391 _lt_result=$? 10392 # If there is a non-empty error log, and "single_module" 10393 # appears in it, assume the flag caused a linker warning 10394 if test -s conftest.err && $GREP single_module conftest.err; then 10395 cat conftest.err >&5 10396 # Otherwise, if the output was created with a 0 exit code from 10397 # the compiler, it worked. 10398 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10399 lt_cv_apple_cc_single_mod=yes 10400 else 10401 cat conftest.err >&5 10402 fi 10403 rm -rf libconftest.dylib* 10404 rm -f conftest.* 10405 fi 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10408$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10409 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10411$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10412if ${lt_cv_ld_exported_symbols_list+:} false; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 lt_cv_ld_exported_symbols_list=no 10416 save_LDFLAGS=$LDFLAGS 10417 echo "_main" > conftest.sym 10418 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420/* end confdefs.h. */ 10421 10422int 10423main () 10424{ 10425 10426 ; 10427 return 0; 10428} 10429_ACEOF 10430if ac_fn_c_try_link "$LINENO"; then : 10431 lt_cv_ld_exported_symbols_list=yes 10432else 10433 lt_cv_ld_exported_symbols_list=no 10434fi 10435rm -f core conftest.err conftest.$ac_objext \ 10436 conftest$ac_exeext conftest.$ac_ext 10437 LDFLAGS=$save_LDFLAGS 10438 10439fi 10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10441$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10442 10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10444$as_echo_n "checking for -force_load linker flag... " >&6; } 10445if ${lt_cv_ld_force_load+:} false; then : 10446 $as_echo_n "(cached) " >&6 10447else 10448 lt_cv_ld_force_load=no 10449 cat > conftest.c << _LT_EOF 10450int forced_loaded() { return 2;} 10451_LT_EOF 10452 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10453 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10454 echo "$AR cru libconftest.a conftest.o" >&5 10455 $AR cru libconftest.a conftest.o 2>&5 10456 echo "$RANLIB libconftest.a" >&5 10457 $RANLIB libconftest.a 2>&5 10458 cat > conftest.c << _LT_EOF 10459int main() { return 0;} 10460_LT_EOF 10461 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10462 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10463 _lt_result=$? 10464 if test -s conftest.err && $GREP force_load conftest.err; then 10465 cat conftest.err >&5 10466 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10467 lt_cv_ld_force_load=yes 10468 else 10469 cat conftest.err >&5 10470 fi 10471 rm -f conftest.err libconftest.a conftest conftest.c 10472 rm -rf conftest.dSYM 10473 10474fi 10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10476$as_echo "$lt_cv_ld_force_load" >&6; } 10477 case $host_os in 10478 rhapsody* | darwin1.[012]) 10479 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10480 darwin1.*) 10481 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10482 darwin*) # darwin 5.x on 10483 # if running on 10.5 or later, the deployment target defaults 10484 # to the OS version, if on x86, and 10.4, the deployment 10485 # target defaults to 10.4. Don't you love it? 10486 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10487 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10488 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10489 10.[012][,.]*) 10490 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10491 10.*) 10492 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10493 esac 10494 ;; 10495 esac 10496 if test yes = "$lt_cv_apple_cc_single_mod"; then 10497 _lt_dar_single_mod='$single_module' 10498 fi 10499 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10500 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10501 else 10502 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10503 fi 10504 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10505 _lt_dsymutil='~$DSYMUTIL $lib || :' 10506 else 10507 _lt_dsymutil= 10508 fi 10509 ;; 10510 esac 10511 10512# func_munge_path_list VARIABLE PATH 10513# ----------------------------------- 10514# VARIABLE is name of variable containing _space_ separated list of 10515# directories to be munged by the contents of PATH, which is string 10516# having a format: 10517# "DIR[:DIR]:" 10518# string "DIR[ DIR]" will be prepended to VARIABLE 10519# ":DIR[:DIR]" 10520# string "DIR[ DIR]" will be appended to VARIABLE 10521# "DIRP[:DIRP]::[DIRA:]DIRA" 10522# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10523# "DIRA[ DIRA]" will be appended to VARIABLE 10524# "DIR[:DIR]" 10525# VARIABLE will be replaced by "DIR[ DIR]" 10526func_munge_path_list () 10527{ 10528 case x$2 in 10529 x) 10530 ;; 10531 *:) 10532 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10533 ;; 10534 x:*) 10535 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10536 ;; 10537 *::*) 10538 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10539 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10540 ;; 10541 *) 10542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10543 ;; 10544 esac 10545} 10546 10547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10548$as_echo_n "checking for ANSI C header files... " >&6; } 10549if ${ac_cv_header_stdc+:} false; then : 10550 $as_echo_n "(cached) " >&6 10551else 10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10553/* end confdefs.h. */ 10554#include <stdlib.h> 10555#include <stdarg.h> 10556#include <string.h> 10557#include <float.h> 10558 10559int 10560main () 10561{ 10562 10563 ; 10564 return 0; 10565} 10566_ACEOF 10567if ac_fn_c_try_compile "$LINENO"; then : 10568 ac_cv_header_stdc=yes 10569else 10570 ac_cv_header_stdc=no 10571fi 10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10573 10574if test $ac_cv_header_stdc = yes; then 10575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577/* end confdefs.h. */ 10578#include <string.h> 10579 10580_ACEOF 10581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10582 $EGREP "memchr" >/dev/null 2>&1; then : 10583 10584else 10585 ac_cv_header_stdc=no 10586fi 10587rm -f conftest* 10588 10589fi 10590 10591if test $ac_cv_header_stdc = yes; then 10592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595#include <stdlib.h> 10596 10597_ACEOF 10598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10599 $EGREP "free" >/dev/null 2>&1; then : 10600 10601else 10602 ac_cv_header_stdc=no 10603fi 10604rm -f conftest* 10605 10606fi 10607 10608if test $ac_cv_header_stdc = yes; then 10609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10610 if test "$cross_compiling" = yes; then : 10611 : 10612else 10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10614/* end confdefs.h. */ 10615#include <ctype.h> 10616#include <stdlib.h> 10617#if ((' ' & 0x0FF) == 0x020) 10618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10620#else 10621# define ISLOWER(c) \ 10622 (('a' <= (c) && (c) <= 'i') \ 10623 || ('j' <= (c) && (c) <= 'r') \ 10624 || ('s' <= (c) && (c) <= 'z')) 10625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10626#endif 10627 10628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10629int 10630main () 10631{ 10632 int i; 10633 for (i = 0; i < 256; i++) 10634 if (XOR (islower (i), ISLOWER (i)) 10635 || toupper (i) != TOUPPER (i)) 10636 return 2; 10637 return 0; 10638} 10639_ACEOF 10640if ac_fn_c_try_run "$LINENO"; then : 10641 10642else 10643 ac_cv_header_stdc=no 10644fi 10645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10646 conftest.$ac_objext conftest.beam conftest.$ac_ext 10647fi 10648 10649fi 10650fi 10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10652$as_echo "$ac_cv_header_stdc" >&6; } 10653if test $ac_cv_header_stdc = yes; then 10654 10655$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10656 10657fi 10658 10659# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10661 inttypes.h stdint.h unistd.h 10662do : 10663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10664ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10665" 10666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10667 cat >>confdefs.h <<_ACEOF 10668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10669_ACEOF 10670 10671fi 10672 10673done 10674 10675 10676for ac_header in dlfcn.h 10677do : 10678 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10679" 10680if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10681 cat >>confdefs.h <<_ACEOF 10682#define HAVE_DLFCN_H 1 10683_ACEOF 10684 10685fi 10686 10687done 10688 10689 10690 10691func_stripname_cnf () 10692{ 10693 case $2 in 10694 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10695 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10696 esac 10697} # func_stripname_cnf 10698 10699 10700 10701 10702 10703# Set options 10704 10705 10706 10707 enable_dlopen=no 10708 10709 10710 enable_win32_dll=no 10711 10712 10713 # Check whether --enable-shared was given. 10714if test "${enable_shared+set}" = set; then : 10715 enableval=$enable_shared; p=${PACKAGE-default} 10716 case $enableval in 10717 yes) enable_shared=yes ;; 10718 no) enable_shared=no ;; 10719 *) 10720 enable_shared=no 10721 # Look at the argument we got. We use all the common list separators. 10722 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10723 for pkg in $enableval; do 10724 IFS=$lt_save_ifs 10725 if test "X$pkg" = "X$p"; then 10726 enable_shared=yes 10727 fi 10728 done 10729 IFS=$lt_save_ifs 10730 ;; 10731 esac 10732else 10733 enable_shared=yes 10734fi 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 # Check whether --enable-static was given. 10745if test "${enable_static+set}" = set; then : 10746 enableval=$enable_static; p=${PACKAGE-default} 10747 case $enableval in 10748 yes) enable_static=yes ;; 10749 no) enable_static=no ;; 10750 *) 10751 enable_static=no 10752 # Look at the argument we got. We use all the common list separators. 10753 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10754 for pkg in $enableval; do 10755 IFS=$lt_save_ifs 10756 if test "X$pkg" = "X$p"; then 10757 enable_static=yes 10758 fi 10759 done 10760 IFS=$lt_save_ifs 10761 ;; 10762 esac 10763else 10764 enable_static=yes 10765fi 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776# Check whether --with-pic was given. 10777if test "${with_pic+set}" = set; then : 10778 withval=$with_pic; lt_p=${PACKAGE-default} 10779 case $withval in 10780 yes|no) pic_mode=$withval ;; 10781 *) 10782 pic_mode=default 10783 # Look at the argument we got. We use all the common list separators. 10784 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10785 for lt_pkg in $withval; do 10786 IFS=$lt_save_ifs 10787 if test "X$lt_pkg" = "X$lt_p"; then 10788 pic_mode=yes 10789 fi 10790 done 10791 IFS=$lt_save_ifs 10792 ;; 10793 esac 10794else 10795 pic_mode=default 10796fi 10797 10798 10799 10800 10801 10802 10803 10804 10805 # Check whether --enable-fast-install was given. 10806if test "${enable_fast_install+set}" = set; then : 10807 enableval=$enable_fast_install; p=${PACKAGE-default} 10808 case $enableval in 10809 yes) enable_fast_install=yes ;; 10810 no) enable_fast_install=no ;; 10811 *) 10812 enable_fast_install=no 10813 # Look at the argument we got. We use all the common list separators. 10814 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10815 for pkg in $enableval; do 10816 IFS=$lt_save_ifs 10817 if test "X$pkg" = "X$p"; then 10818 enable_fast_install=yes 10819 fi 10820 done 10821 IFS=$lt_save_ifs 10822 ;; 10823 esac 10824else 10825 enable_fast_install=yes 10826fi 10827 10828 10829 10830 10831 10832 10833 10834 10835 shared_archive_member_spec= 10836case $host,$enable_shared in 10837power*-*-aix[5-9]*,yes) 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10839$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 10840 10841# Check whether --with-aix-soname was given. 10842if test "${with_aix_soname+set}" = set; then : 10843 withval=$with_aix_soname; case $withval in 10844 aix|svr4|both) 10845 ;; 10846 *) 10847 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10848 ;; 10849 esac 10850 lt_cv_with_aix_soname=$with_aix_soname 10851else 10852 if ${lt_cv_with_aix_soname+:} false; then : 10853 $as_echo_n "(cached) " >&6 10854else 10855 lt_cv_with_aix_soname=aix 10856fi 10857 10858 with_aix_soname=$lt_cv_with_aix_soname 10859fi 10860 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10862$as_echo "$with_aix_soname" >&6; } 10863 if test aix != "$with_aix_soname"; then 10864 # For the AIX way of multilib, we name the shared archive member 10865 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10866 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10867 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10868 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10869 if test 64 = "${OBJECT_MODE-32}"; then 10870 shared_archive_member_spec=shr_64 10871 else 10872 shared_archive_member_spec=shr 10873 fi 10874 fi 10875 ;; 10876*) 10877 with_aix_soname=aix 10878 ;; 10879esac 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890# This can be used to rebuild libtool when needed 10891LIBTOOL_DEPS=$ltmain 10892 10893# Always use our own libtool. 10894LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925test -z "$LN_S" && LN_S="ln -s" 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940if test -n "${ZSH_VERSION+set}"; then 10941 setopt NO_GLOB_SUBST 10942fi 10943 10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10945$as_echo_n "checking for objdir... " >&6; } 10946if ${lt_cv_objdir+:} false; then : 10947 $as_echo_n "(cached) " >&6 10948else 10949 rm -f .libs 2>/dev/null 10950mkdir .libs 2>/dev/null 10951if test -d .libs; then 10952 lt_cv_objdir=.libs 10953else 10954 # MS-DOS does not allow filenames that begin with a dot. 10955 lt_cv_objdir=_libs 10956fi 10957rmdir .libs 2>/dev/null 10958fi 10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10960$as_echo "$lt_cv_objdir" >&6; } 10961objdir=$lt_cv_objdir 10962 10963 10964 10965 10966 10967cat >>confdefs.h <<_ACEOF 10968#define LT_OBJDIR "$lt_cv_objdir/" 10969_ACEOF 10970 10971 10972 10973 10974case $host_os in 10975aix3*) 10976 # AIX sometimes has problems with the GCC collect2 program. For some 10977 # reason, if we set the COLLECT_NAMES environment variable, the problems 10978 # vanish in a puff of smoke. 10979 if test set != "${COLLECT_NAMES+set}"; then 10980 COLLECT_NAMES= 10981 export COLLECT_NAMES 10982 fi 10983 ;; 10984esac 10985 10986# Global variables: 10987ofile=libtool 10988can_build_shared=yes 10989 10990# All known linkers require a '.a' archive for static linking (except MSVC, 10991# which needs '.lib'). 10992libext=a 10993 10994with_gnu_ld=$lt_cv_prog_gnu_ld 10995 10996old_CC=$CC 10997old_CFLAGS=$CFLAGS 10998 10999# Set sane defaults for various variables 11000test -z "$CC" && CC=cc 11001test -z "$LTCC" && LTCC=$CC 11002test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11003test -z "$LD" && LD=ld 11004test -z "$ac_objext" && ac_objext=o 11005 11006func_cc_basename $compiler 11007cc_basename=$func_cc_basename_result 11008 11009 11010# Only perform the check for file, if the check method requires it 11011test -z "$MAGIC_CMD" && MAGIC_CMD=file 11012case $deplibs_check_method in 11013file_magic*) 11014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11016$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11017if ${lt_cv_path_MAGIC_CMD+:} false; then : 11018 $as_echo_n "(cached) " >&6 11019else 11020 case $MAGIC_CMD in 11021[\\/*] | ?:[\\/]*) 11022 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11023 ;; 11024*) 11025 lt_save_MAGIC_CMD=$MAGIC_CMD 11026 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11027 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11028 for ac_dir in $ac_dummy; do 11029 IFS=$lt_save_ifs 11030 test -z "$ac_dir" && ac_dir=. 11031 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11032 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11033 if test -n "$file_magic_test_file"; then 11034 case $deplibs_check_method in 11035 "file_magic "*) 11036 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11037 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11038 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11039 $EGREP "$file_magic_regex" > /dev/null; then 11040 : 11041 else 11042 cat <<_LT_EOF 1>&2 11043 11044*** Warning: the command libtool uses to detect shared libraries, 11045*** $file_magic_cmd, produces output that libtool cannot recognize. 11046*** The result is that libtool may fail to recognize shared libraries 11047*** as such. This will affect the creation of libtool libraries that 11048*** depend on shared libraries, but programs linked with such libtool 11049*** libraries will work regardless of this problem. Nevertheless, you 11050*** may want to report the problem to your system manager and/or to 11051*** bug-libtool@gnu.org 11052 11053_LT_EOF 11054 fi ;; 11055 esac 11056 fi 11057 break 11058 fi 11059 done 11060 IFS=$lt_save_ifs 11061 MAGIC_CMD=$lt_save_MAGIC_CMD 11062 ;; 11063esac 11064fi 11065 11066MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11067if test -n "$MAGIC_CMD"; then 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11069$as_echo "$MAGIC_CMD" >&6; } 11070else 11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11072$as_echo "no" >&6; } 11073fi 11074 11075 11076 11077 11078 11079if test -z "$lt_cv_path_MAGIC_CMD"; then 11080 if test -n "$ac_tool_prefix"; then 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11082$as_echo_n "checking for file... " >&6; } 11083if ${lt_cv_path_MAGIC_CMD+:} false; then : 11084 $as_echo_n "(cached) " >&6 11085else 11086 case $MAGIC_CMD in 11087[\\/*] | ?:[\\/]*) 11088 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11089 ;; 11090*) 11091 lt_save_MAGIC_CMD=$MAGIC_CMD 11092 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11093 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11094 for ac_dir in $ac_dummy; do 11095 IFS=$lt_save_ifs 11096 test -z "$ac_dir" && ac_dir=. 11097 if test -f "$ac_dir/file"; then 11098 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11099 if test -n "$file_magic_test_file"; then 11100 case $deplibs_check_method in 11101 "file_magic "*) 11102 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11103 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11104 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11105 $EGREP "$file_magic_regex" > /dev/null; then 11106 : 11107 else 11108 cat <<_LT_EOF 1>&2 11109 11110*** Warning: the command libtool uses to detect shared libraries, 11111*** $file_magic_cmd, produces output that libtool cannot recognize. 11112*** The result is that libtool may fail to recognize shared libraries 11113*** as such. This will affect the creation of libtool libraries that 11114*** depend on shared libraries, but programs linked with such libtool 11115*** libraries will work regardless of this problem. Nevertheless, you 11116*** may want to report the problem to your system manager and/or to 11117*** bug-libtool@gnu.org 11118 11119_LT_EOF 11120 fi ;; 11121 esac 11122 fi 11123 break 11124 fi 11125 done 11126 IFS=$lt_save_ifs 11127 MAGIC_CMD=$lt_save_MAGIC_CMD 11128 ;; 11129esac 11130fi 11131 11132MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11133if test -n "$MAGIC_CMD"; then 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11135$as_echo "$MAGIC_CMD" >&6; } 11136else 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11138$as_echo "no" >&6; } 11139fi 11140 11141 11142 else 11143 MAGIC_CMD=: 11144 fi 11145fi 11146 11147 fi 11148 ;; 11149esac 11150 11151# Use C for the default configuration in the libtool script 11152 11153lt_save_CC=$CC 11154ac_ext=c 11155ac_cpp='$CPP $CPPFLAGS' 11156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11158ac_compiler_gnu=$ac_cv_c_compiler_gnu 11159 11160 11161# Source file extension for C test sources. 11162ac_ext=c 11163 11164# Object file extension for compiled C test sources. 11165objext=o 11166objext=$objext 11167 11168# Code to be used in simple compile tests 11169lt_simple_compile_test_code="int some_variable = 0;" 11170 11171# Code to be used in simple link tests 11172lt_simple_link_test_code='int main(){return(0);}' 11173 11174 11175 11176 11177 11178 11179 11180# If no C compiler was specified, use CC. 11181LTCC=${LTCC-"$CC"} 11182 11183# If no C compiler flags were specified, use CFLAGS. 11184LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11185 11186# Allow CC to be a program name with arguments. 11187compiler=$CC 11188 11189# Save the default compiler, since it gets overwritten when the other 11190# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11191compiler_DEFAULT=$CC 11192 11193# save warnings/boilerplate of simple test code 11194ac_outfile=conftest.$ac_objext 11195echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11197_lt_compiler_boilerplate=`cat conftest.err` 11198$RM conftest* 11199 11200ac_outfile=conftest.$ac_objext 11201echo "$lt_simple_link_test_code" >conftest.$ac_ext 11202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11203_lt_linker_boilerplate=`cat conftest.err` 11204$RM -r conftest* 11205 11206 11207## CAVEAT EMPTOR: 11208## There is no encapsulation within the following macros, do not change 11209## the running order or otherwise move them around unless you know exactly 11210## what you are doing... 11211if test -n "$compiler"; then 11212 11213lt_prog_compiler_no_builtin_flag= 11214 11215if test yes = "$GCC"; then 11216 case $cc_basename in 11217 nvcc*) 11218 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11219 *) 11220 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11221 esac 11222 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11224$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11225if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11226 $as_echo_n "(cached) " >&6 11227else 11228 lt_cv_prog_compiler_rtti_exceptions=no 11229 ac_outfile=conftest.$ac_objext 11230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11231 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11232 # Insert the option either (1) after the last *FLAGS variable, or 11233 # (2) before a word containing "conftest.", or (3) at the end. 11234 # Note that $ac_compile itself does not contain backslashes and begins 11235 # with a dollar sign (not a hyphen), so the echo should work correctly. 11236 # The option is referenced via a variable to avoid confusing sed. 11237 lt_compile=`echo "$ac_compile" | $SED \ 11238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11240 -e 's:$: $lt_compiler_flag:'` 11241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11242 (eval "$lt_compile" 2>conftest.err) 11243 ac_status=$? 11244 cat conftest.err >&5 11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11246 if (exit $ac_status) && test -s "$ac_outfile"; then 11247 # The compiler can only warn and ignore the option if not recognized 11248 # So say no if there are warnings other than the usual output. 11249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11252 lt_cv_prog_compiler_rtti_exceptions=yes 11253 fi 11254 fi 11255 $RM conftest* 11256 11257fi 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11259$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11260 11261if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11262 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11263else 11264 : 11265fi 11266 11267fi 11268 11269 11270 11271 11272 11273 11274 lt_prog_compiler_wl= 11275lt_prog_compiler_pic= 11276lt_prog_compiler_static= 11277 11278 11279 if test yes = "$GCC"; then 11280 lt_prog_compiler_wl='-Wl,' 11281 lt_prog_compiler_static='-static' 11282 11283 case $host_os in 11284 aix*) 11285 # All AIX code is PIC. 11286 if test ia64 = "$host_cpu"; then 11287 # AIX 5 now supports IA64 processor 11288 lt_prog_compiler_static='-Bstatic' 11289 fi 11290 lt_prog_compiler_pic='-fPIC' 11291 ;; 11292 11293 amigaos*) 11294 case $host_cpu in 11295 powerpc) 11296 # see comment about AmigaOS4 .so support 11297 lt_prog_compiler_pic='-fPIC' 11298 ;; 11299 m68k) 11300 # FIXME: we need at least 68020 code to build shared libraries, but 11301 # adding the '-m68020' flag to GCC prevents building anything better, 11302 # like '-m68040'. 11303 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11304 ;; 11305 esac 11306 ;; 11307 11308 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11309 # PIC is the default for these OSes. 11310 ;; 11311 11312 mingw* | cygwin* | pw32* | os2* | cegcc*) 11313 # This hack is so that the source file can tell whether it is being 11314 # built for inclusion in a dll (and should export symbols for example). 11315 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11316 # (--disable-auto-import) libraries 11317 lt_prog_compiler_pic='-DDLL_EXPORT' 11318 case $host_os in 11319 os2*) 11320 lt_prog_compiler_static='$wl-static' 11321 ;; 11322 esac 11323 ;; 11324 11325 darwin* | rhapsody*) 11326 # PIC is the default on this platform 11327 # Common symbols not allowed in MH_DYLIB files 11328 lt_prog_compiler_pic='-fno-common' 11329 ;; 11330 11331 haiku*) 11332 # PIC is the default for Haiku. 11333 # The "-static" flag exists, but is broken. 11334 lt_prog_compiler_static= 11335 ;; 11336 11337 hpux*) 11338 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11339 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11340 # sets the default TLS model and affects inlining. 11341 case $host_cpu in 11342 hppa*64*) 11343 # +Z the default 11344 ;; 11345 *) 11346 lt_prog_compiler_pic='-fPIC' 11347 ;; 11348 esac 11349 ;; 11350 11351 interix[3-9]*) 11352 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11353 # Instead, we relocate shared libraries at runtime. 11354 ;; 11355 11356 msdosdjgpp*) 11357 # Just because we use GCC doesn't mean we suddenly get shared libraries 11358 # on systems that don't support them. 11359 lt_prog_compiler_can_build_shared=no 11360 enable_shared=no 11361 ;; 11362 11363 *nto* | *qnx*) 11364 # QNX uses GNU C++, but need to define -shared option too, otherwise 11365 # it will coredump. 11366 lt_prog_compiler_pic='-fPIC -shared' 11367 ;; 11368 11369 sysv4*MP*) 11370 if test -d /usr/nec; then 11371 lt_prog_compiler_pic=-Kconform_pic 11372 fi 11373 ;; 11374 11375 *) 11376 lt_prog_compiler_pic='-fPIC' 11377 ;; 11378 esac 11379 11380 case $cc_basename in 11381 nvcc*) # Cuda Compiler Driver 2.2 11382 lt_prog_compiler_wl='-Xlinker ' 11383 if test -n "$lt_prog_compiler_pic"; then 11384 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11385 fi 11386 ;; 11387 esac 11388 else 11389 # PORTME Check for flag to pass linker flags through the system compiler. 11390 case $host_os in 11391 aix*) 11392 lt_prog_compiler_wl='-Wl,' 11393 if test ia64 = "$host_cpu"; then 11394 # AIX 5 now supports IA64 processor 11395 lt_prog_compiler_static='-Bstatic' 11396 else 11397 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11398 fi 11399 ;; 11400 11401 darwin* | rhapsody*) 11402 # PIC is the default on this platform 11403 # Common symbols not allowed in MH_DYLIB files 11404 lt_prog_compiler_pic='-fno-common' 11405 case $cc_basename in 11406 nagfor*) 11407 # NAG Fortran compiler 11408 lt_prog_compiler_wl='-Wl,-Wl,,' 11409 lt_prog_compiler_pic='-PIC' 11410 lt_prog_compiler_static='-Bstatic' 11411 ;; 11412 esac 11413 ;; 11414 11415 mingw* | cygwin* | pw32* | os2* | cegcc*) 11416 # This hack is so that the source file can tell whether it is being 11417 # built for inclusion in a dll (and should export symbols for example). 11418 lt_prog_compiler_pic='-DDLL_EXPORT' 11419 case $host_os in 11420 os2*) 11421 lt_prog_compiler_static='$wl-static' 11422 ;; 11423 esac 11424 ;; 11425 11426 hpux9* | hpux10* | hpux11*) 11427 lt_prog_compiler_wl='-Wl,' 11428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11429 # not for PA HP-UX. 11430 case $host_cpu in 11431 hppa*64*|ia64*) 11432 # +Z the default 11433 ;; 11434 *) 11435 lt_prog_compiler_pic='+Z' 11436 ;; 11437 esac 11438 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11439 lt_prog_compiler_static='$wl-a ${wl}archive' 11440 ;; 11441 11442 irix5* | irix6* | nonstopux*) 11443 lt_prog_compiler_wl='-Wl,' 11444 # PIC (with -KPIC) is the default. 11445 lt_prog_compiler_static='-non_shared' 11446 ;; 11447 11448 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11449 case $cc_basename in 11450 # old Intel for x86_64, which still supported -KPIC. 11451 ecc*) 11452 lt_prog_compiler_wl='-Wl,' 11453 lt_prog_compiler_pic='-KPIC' 11454 lt_prog_compiler_static='-static' 11455 ;; 11456 # icc used to be incompatible with GCC. 11457 # ICC 10 doesn't accept -KPIC any more. 11458 icc* | ifort*) 11459 lt_prog_compiler_wl='-Wl,' 11460 lt_prog_compiler_pic='-fPIC' 11461 lt_prog_compiler_static='-static' 11462 ;; 11463 # Lahey Fortran 8.1. 11464 lf95*) 11465 lt_prog_compiler_wl='-Wl,' 11466 lt_prog_compiler_pic='--shared' 11467 lt_prog_compiler_static='--static' 11468 ;; 11469 nagfor*) 11470 # NAG Fortran compiler 11471 lt_prog_compiler_wl='-Wl,-Wl,,' 11472 lt_prog_compiler_pic='-PIC' 11473 lt_prog_compiler_static='-Bstatic' 11474 ;; 11475 tcc*) 11476 # Fabrice Bellard et al's Tiny C Compiler 11477 lt_prog_compiler_wl='-Wl,' 11478 lt_prog_compiler_pic='-fPIC' 11479 lt_prog_compiler_static='-static' 11480 ;; 11481 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11482 # Portland Group compilers (*not* the Pentium gcc compiler, 11483 # which looks to be a dead project) 11484 lt_prog_compiler_wl='-Wl,' 11485 lt_prog_compiler_pic='-fpic' 11486 lt_prog_compiler_static='-Bstatic' 11487 ;; 11488 ccc*) 11489 lt_prog_compiler_wl='-Wl,' 11490 # All Alpha code is PIC. 11491 lt_prog_compiler_static='-non_shared' 11492 ;; 11493 xl* | bgxl* | bgf* | mpixl*) 11494 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11495 lt_prog_compiler_wl='-Wl,' 11496 lt_prog_compiler_pic='-qpic' 11497 lt_prog_compiler_static='-qstaticlink' 11498 ;; 11499 *) 11500 case `$CC -V 2>&1 | sed 5q` in 11501 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11502 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11503 lt_prog_compiler_pic='-KPIC' 11504 lt_prog_compiler_static='-Bstatic' 11505 lt_prog_compiler_wl='' 11506 ;; 11507 *Sun\ F* | *Sun*Fortran*) 11508 lt_prog_compiler_pic='-KPIC' 11509 lt_prog_compiler_static='-Bstatic' 11510 lt_prog_compiler_wl='-Qoption ld ' 11511 ;; 11512 *Sun\ C*) 11513 # Sun C 5.9 11514 lt_prog_compiler_pic='-KPIC' 11515 lt_prog_compiler_static='-Bstatic' 11516 lt_prog_compiler_wl='-Wl,' 11517 ;; 11518 *Intel*\ [CF]*Compiler*) 11519 lt_prog_compiler_wl='-Wl,' 11520 lt_prog_compiler_pic='-fPIC' 11521 lt_prog_compiler_static='-static' 11522 ;; 11523 *Portland\ Group*) 11524 lt_prog_compiler_wl='-Wl,' 11525 lt_prog_compiler_pic='-fpic' 11526 lt_prog_compiler_static='-Bstatic' 11527 ;; 11528 esac 11529 ;; 11530 esac 11531 ;; 11532 11533 newsos6) 11534 lt_prog_compiler_pic='-KPIC' 11535 lt_prog_compiler_static='-Bstatic' 11536 ;; 11537 11538 *nto* | *qnx*) 11539 # QNX uses GNU C++, but need to define -shared option too, otherwise 11540 # it will coredump. 11541 lt_prog_compiler_pic='-fPIC -shared' 11542 ;; 11543 11544 osf3* | osf4* | osf5*) 11545 lt_prog_compiler_wl='-Wl,' 11546 # All OSF/1 code is PIC. 11547 lt_prog_compiler_static='-non_shared' 11548 ;; 11549 11550 rdos*) 11551 lt_prog_compiler_static='-non_shared' 11552 ;; 11553 11554 solaris*) 11555 lt_prog_compiler_pic='-KPIC' 11556 lt_prog_compiler_static='-Bstatic' 11557 case $cc_basename in 11558 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11559 lt_prog_compiler_wl='-Qoption ld ';; 11560 *) 11561 lt_prog_compiler_wl='-Wl,';; 11562 esac 11563 ;; 11564 11565 sunos4*) 11566 lt_prog_compiler_wl='-Qoption ld ' 11567 lt_prog_compiler_pic='-PIC' 11568 lt_prog_compiler_static='-Bstatic' 11569 ;; 11570 11571 sysv4 | sysv4.2uw2* | sysv4.3*) 11572 lt_prog_compiler_wl='-Wl,' 11573 lt_prog_compiler_pic='-KPIC' 11574 lt_prog_compiler_static='-Bstatic' 11575 ;; 11576 11577 sysv4*MP*) 11578 if test -d /usr/nec; then 11579 lt_prog_compiler_pic='-Kconform_pic' 11580 lt_prog_compiler_static='-Bstatic' 11581 fi 11582 ;; 11583 11584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11585 lt_prog_compiler_wl='-Wl,' 11586 lt_prog_compiler_pic='-KPIC' 11587 lt_prog_compiler_static='-Bstatic' 11588 ;; 11589 11590 unicos*) 11591 lt_prog_compiler_wl='-Wl,' 11592 lt_prog_compiler_can_build_shared=no 11593 ;; 11594 11595 uts4*) 11596 lt_prog_compiler_pic='-pic' 11597 lt_prog_compiler_static='-Bstatic' 11598 ;; 11599 11600 *) 11601 lt_prog_compiler_can_build_shared=no 11602 ;; 11603 esac 11604 fi 11605 11606case $host_os in 11607 # For platforms that do not support PIC, -DPIC is meaningless: 11608 *djgpp*) 11609 lt_prog_compiler_pic= 11610 ;; 11611 *) 11612 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11613 ;; 11614esac 11615 11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11617$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11618if ${lt_cv_prog_compiler_pic+:} false; then : 11619 $as_echo_n "(cached) " >&6 11620else 11621 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11622fi 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11624$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11625lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11626 11627# 11628# Check to make sure the PIC flag actually works. 11629# 11630if test -n "$lt_prog_compiler_pic"; then 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11632$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11633if ${lt_cv_prog_compiler_pic_works+:} false; then : 11634 $as_echo_n "(cached) " >&6 11635else 11636 lt_cv_prog_compiler_pic_works=no 11637 ac_outfile=conftest.$ac_objext 11638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11639 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11640 # Insert the option either (1) after the last *FLAGS variable, or 11641 # (2) before a word containing "conftest.", or (3) at the end. 11642 # Note that $ac_compile itself does not contain backslashes and begins 11643 # with a dollar sign (not a hyphen), so the echo should work correctly. 11644 # The option is referenced via a variable to avoid confusing sed. 11645 lt_compile=`echo "$ac_compile" | $SED \ 11646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11648 -e 's:$: $lt_compiler_flag:'` 11649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11650 (eval "$lt_compile" 2>conftest.err) 11651 ac_status=$? 11652 cat conftest.err >&5 11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11654 if (exit $ac_status) && test -s "$ac_outfile"; then 11655 # The compiler can only warn and ignore the option if not recognized 11656 # So say no if there are warnings other than the usual output. 11657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11660 lt_cv_prog_compiler_pic_works=yes 11661 fi 11662 fi 11663 $RM conftest* 11664 11665fi 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11667$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11668 11669if test yes = "$lt_cv_prog_compiler_pic_works"; then 11670 case $lt_prog_compiler_pic in 11671 "" | " "*) ;; 11672 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11673 esac 11674else 11675 lt_prog_compiler_pic= 11676 lt_prog_compiler_can_build_shared=no 11677fi 11678 11679fi 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691# 11692# Check to make sure the static flag actually works. 11693# 11694wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11696$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11697if ${lt_cv_prog_compiler_static_works+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 lt_cv_prog_compiler_static_works=no 11701 save_LDFLAGS=$LDFLAGS 11702 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11703 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11705 # The linker can only warn and ignore the option if not recognized 11706 # So say no if there are warnings 11707 if test -s conftest.err; then 11708 # Append any errors to the config.log. 11709 cat conftest.err 1>&5 11710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11712 if diff conftest.exp conftest.er2 >/dev/null; then 11713 lt_cv_prog_compiler_static_works=yes 11714 fi 11715 else 11716 lt_cv_prog_compiler_static_works=yes 11717 fi 11718 fi 11719 $RM -r conftest* 11720 LDFLAGS=$save_LDFLAGS 11721 11722fi 11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11724$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11725 11726if test yes = "$lt_cv_prog_compiler_static_works"; then 11727 : 11728else 11729 lt_prog_compiler_static= 11730fi 11731 11732 11733 11734 11735 11736 11737 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11739$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11740if ${lt_cv_prog_compiler_c_o+:} false; then : 11741 $as_echo_n "(cached) " >&6 11742else 11743 lt_cv_prog_compiler_c_o=no 11744 $RM -r conftest 2>/dev/null 11745 mkdir conftest 11746 cd conftest 11747 mkdir out 11748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11749 11750 lt_compiler_flag="-o out/conftest2.$ac_objext" 11751 # Insert the option either (1) after the last *FLAGS variable, or 11752 # (2) before a word containing "conftest.", or (3) at the end. 11753 # Note that $ac_compile itself does not contain backslashes and begins 11754 # with a dollar sign (not a hyphen), so the echo should work correctly. 11755 lt_compile=`echo "$ac_compile" | $SED \ 11756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11758 -e 's:$: $lt_compiler_flag:'` 11759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11760 (eval "$lt_compile" 2>out/conftest.err) 11761 ac_status=$? 11762 cat out/conftest.err >&5 11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11764 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11765 then 11766 # The compiler can only warn and ignore the option if not recognized 11767 # So say no if there are warnings 11768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11771 lt_cv_prog_compiler_c_o=yes 11772 fi 11773 fi 11774 chmod u+w . 2>&5 11775 $RM conftest* 11776 # SGI C++ compiler will create directory out/ii_files/ for 11777 # template instantiation 11778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11779 $RM out/* && rmdir out 11780 cd .. 11781 $RM -r conftest 11782 $RM conftest* 11783 11784fi 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11786$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11787 11788 11789 11790 11791 11792 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11794$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11795if ${lt_cv_prog_compiler_c_o+:} false; then : 11796 $as_echo_n "(cached) " >&6 11797else 11798 lt_cv_prog_compiler_c_o=no 11799 $RM -r conftest 2>/dev/null 11800 mkdir conftest 11801 cd conftest 11802 mkdir out 11803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11804 11805 lt_compiler_flag="-o out/conftest2.$ac_objext" 11806 # Insert the option either (1) after the last *FLAGS variable, or 11807 # (2) before a word containing "conftest.", or (3) at the end. 11808 # Note that $ac_compile itself does not contain backslashes and begins 11809 # with a dollar sign (not a hyphen), so the echo should work correctly. 11810 lt_compile=`echo "$ac_compile" | $SED \ 11811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11813 -e 's:$: $lt_compiler_flag:'` 11814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11815 (eval "$lt_compile" 2>out/conftest.err) 11816 ac_status=$? 11817 cat out/conftest.err >&5 11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11819 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11820 then 11821 # The compiler can only warn and ignore the option if not recognized 11822 # So say no if there are warnings 11823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11826 lt_cv_prog_compiler_c_o=yes 11827 fi 11828 fi 11829 chmod u+w . 2>&5 11830 $RM conftest* 11831 # SGI C++ compiler will create directory out/ii_files/ for 11832 # template instantiation 11833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11834 $RM out/* && rmdir out 11835 cd .. 11836 $RM -r conftest 11837 $RM conftest* 11838 11839fi 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11841$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11842 11843 11844 11845 11846hard_links=nottested 11847if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11848 # do not overwrite the value of need_locks provided by the user 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11850$as_echo_n "checking if we can lock with hard links... " >&6; } 11851 hard_links=yes 11852 $RM conftest* 11853 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11854 touch conftest.a 11855 ln conftest.a conftest.b 2>&5 || hard_links=no 11856 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11858$as_echo "$hard_links" >&6; } 11859 if test no = "$hard_links"; then 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11861$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11862 need_locks=warn 11863 fi 11864else 11865 need_locks=no 11866fi 11867 11868 11869 11870 11871 11872 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11874$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11875 11876 runpath_var= 11877 allow_undefined_flag= 11878 always_export_symbols=no 11879 archive_cmds= 11880 archive_expsym_cmds= 11881 compiler_needs_object=no 11882 enable_shared_with_static_runtimes=no 11883 export_dynamic_flag_spec= 11884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11885 hardcode_automatic=no 11886 hardcode_direct=no 11887 hardcode_direct_absolute=no 11888 hardcode_libdir_flag_spec= 11889 hardcode_libdir_separator= 11890 hardcode_minus_L=no 11891 hardcode_shlibpath_var=unsupported 11892 inherit_rpath=no 11893 link_all_deplibs=unknown 11894 module_cmds= 11895 module_expsym_cmds= 11896 old_archive_from_new_cmds= 11897 old_archive_from_expsyms_cmds= 11898 thread_safe_flag_spec= 11899 whole_archive_flag_spec= 11900 # include_expsyms should be a list of space-separated symbols to be *always* 11901 # included in the symbol list 11902 include_expsyms= 11903 # exclude_expsyms can be an extended regexp of symbols to exclude 11904 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11905 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11906 # as well as any symbol that contains 'd'. 11907 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11908 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11909 # platforms (ab)use it in PIC code, but their linkers get confused if 11910 # the symbol is explicitly referenced. Since portable code cannot 11911 # rely on this symbol name, it's probably fine to never include it in 11912 # preloaded symbol tables. 11913 # Exclude shared library initialization/finalization symbols. 11914 extract_expsyms_cmds= 11915 11916 case $host_os in 11917 cygwin* | mingw* | pw32* | cegcc*) 11918 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11919 # When not using gcc, we currently assume that we are using 11920 # Microsoft Visual C++. 11921 if test yes != "$GCC"; then 11922 with_gnu_ld=no 11923 fi 11924 ;; 11925 interix*) 11926 # we just hope/assume this is gcc and not c89 (= MSVC++) 11927 with_gnu_ld=yes 11928 ;; 11929 openbsd* | bitrig*) 11930 with_gnu_ld=no 11931 ;; 11932 esac 11933 11934 ld_shlibs=yes 11935 11936 # On some targets, GNU ld is compatible enough with the native linker 11937 # that we're better off using the native interface for both. 11938 lt_use_gnu_ld_interface=no 11939 if test yes = "$with_gnu_ld"; then 11940 case $host_os in 11941 aix*) 11942 # The AIX port of GNU ld has always aspired to compatibility 11943 # with the native linker. However, as the warning in the GNU ld 11944 # block says, versions before 2.19.5* couldn't really create working 11945 # shared libraries, regardless of the interface used. 11946 case `$LD -v 2>&1` in 11947 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11948 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11949 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11950 *) 11951 lt_use_gnu_ld_interface=yes 11952 ;; 11953 esac 11954 ;; 11955 *) 11956 lt_use_gnu_ld_interface=yes 11957 ;; 11958 esac 11959 fi 11960 11961 if test yes = "$lt_use_gnu_ld_interface"; then 11962 # If archive_cmds runs LD, not CC, wlarc should be empty 11963 wlarc='$wl' 11964 11965 # Set some defaults for GNU ld with shared library support. These 11966 # are reset later if shared libraries are not supported. Putting them 11967 # here allows them to be overridden if necessary. 11968 runpath_var=LD_RUN_PATH 11969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11970 export_dynamic_flag_spec='$wl--export-dynamic' 11971 # ancient GNU ld didn't support --whole-archive et. al. 11972 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11973 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11974 else 11975 whole_archive_flag_spec= 11976 fi 11977 supports_anon_versioning=no 11978 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11979 *GNU\ gold*) supports_anon_versioning=yes ;; 11980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11983 *\ 2.11.*) ;; # other 2.11 versions 11984 *) supports_anon_versioning=yes ;; 11985 esac 11986 11987 # See if GNU ld supports shared libraries. 11988 case $host_os in 11989 aix[3-9]*) 11990 # On AIX/PPC, the GNU linker is very broken 11991 if test ia64 != "$host_cpu"; then 11992 ld_shlibs=no 11993 cat <<_LT_EOF 1>&2 11994 11995*** Warning: the GNU linker, at least up to release 2.19, is reported 11996*** to be unable to reliably create shared libraries on AIX. 11997*** Therefore, libtool is disabling shared libraries support. If you 11998*** really care for shared libraries, you may want to install binutils 11999*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12000*** You will then need to restart the configuration process. 12001 12002_LT_EOF 12003 fi 12004 ;; 12005 12006 amigaos*) 12007 case $host_cpu in 12008 powerpc) 12009 # see comment about AmigaOS4 .so support 12010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12011 archive_expsym_cmds='' 12012 ;; 12013 m68k) 12014 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)' 12015 hardcode_libdir_flag_spec='-L$libdir' 12016 hardcode_minus_L=yes 12017 ;; 12018 esac 12019 ;; 12020 12021 beos*) 12022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12023 allow_undefined_flag=unsupported 12024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12025 # support --undefined. This deserves some investigation. FIXME 12026 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12027 else 12028 ld_shlibs=no 12029 fi 12030 ;; 12031 12032 cygwin* | mingw* | pw32* | cegcc*) 12033 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12034 # as there is no search path for DLLs. 12035 hardcode_libdir_flag_spec='-L$libdir' 12036 export_dynamic_flag_spec='$wl--export-all-symbols' 12037 allow_undefined_flag=unsupported 12038 always_export_symbols=no 12039 enable_shared_with_static_runtimes=yes 12040 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' 12041 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12042 12043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12045 # If the export-symbols file already is a .def file, use it as 12046 # is; otherwise, prepend EXPORTS... 12047 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12048 cp $export_symbols $output_objdir/$soname.def; 12049 else 12050 echo EXPORTS > $output_objdir/$soname.def; 12051 cat $export_symbols >> $output_objdir/$soname.def; 12052 fi~ 12053 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12054 else 12055 ld_shlibs=no 12056 fi 12057 ;; 12058 12059 haiku*) 12060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12061 link_all_deplibs=yes 12062 ;; 12063 12064 os2*) 12065 hardcode_libdir_flag_spec='-L$libdir' 12066 hardcode_minus_L=yes 12067 allow_undefined_flag=unsupported 12068 shrext_cmds=.dll 12069 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12070 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12071 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12072 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12073 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12074 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12075 emximp -o $lib $output_objdir/$libname.def' 12076 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12077 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12078 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12079 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12080 prefix_cmds="$SED"~ 12081 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12082 prefix_cmds="$prefix_cmds -e 1d"; 12083 fi~ 12084 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12085 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12087 emximp -o $lib $output_objdir/$libname.def' 12088 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12089 enable_shared_with_static_runtimes=yes 12090 ;; 12091 12092 interix[3-9]*) 12093 hardcode_direct=no 12094 hardcode_shlibpath_var=no 12095 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12096 export_dynamic_flag_spec='$wl-E' 12097 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12098 # Instead, shared libraries are loaded at an image base (0x10000000 by 12099 # default) and relocated if they conflict, which is a slow very memory 12100 # consuming and fragmenting process. To avoid this, we pick a random, 12101 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12102 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12104 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' 12105 ;; 12106 12107 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12108 tmp_diet=no 12109 if test linux-dietlibc = "$host_os"; then 12110 case $cc_basename in 12111 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12112 esac 12113 fi 12114 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12115 && test no = "$tmp_diet" 12116 then 12117 tmp_addflag=' $pic_flag' 12118 tmp_sharedflag='-shared' 12119 case $cc_basename,$host_cpu in 12120 pgcc*) # Portland Group C compiler 12121 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' 12122 tmp_addflag=' $pic_flag' 12123 ;; 12124 pgf77* | pgf90* | pgf95* | pgfortran*) 12125 # Portland Group f77 and f90 compilers 12126 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' 12127 tmp_addflag=' $pic_flag -Mnomain' ;; 12128 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12129 tmp_addflag=' -i_dynamic' ;; 12130 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12131 tmp_addflag=' -i_dynamic -nofor_main' ;; 12132 ifc* | ifort*) # Intel Fortran compiler 12133 tmp_addflag=' -nofor_main' ;; 12134 lf95*) # Lahey Fortran 8.1 12135 whole_archive_flag_spec= 12136 tmp_sharedflag='--shared' ;; 12137 nagfor*) # NAGFOR 5.3 12138 tmp_sharedflag='-Wl,-shared' ;; 12139 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12140 tmp_sharedflag='-qmkshrobj' 12141 tmp_addflag= ;; 12142 nvcc*) # Cuda Compiler Driver 2.2 12143 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' 12144 compiler_needs_object=yes 12145 ;; 12146 esac 12147 case `$CC -V 2>&1 | sed 5q` in 12148 *Sun\ C*) # Sun C 5.9 12149 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' 12150 compiler_needs_object=yes 12151 tmp_sharedflag='-G' ;; 12152 *Sun\ F*) # Sun Fortran 8.3 12153 tmp_sharedflag='-G' ;; 12154 esac 12155 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12156 12157 if test yes = "$supports_anon_versioning"; then 12158 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12160 echo "local: *; };" >> $output_objdir/$libname.ver~ 12161 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12162 fi 12163 12164 case $cc_basename in 12165 tcc*) 12166 export_dynamic_flag_spec='-rdynamic' 12167 ;; 12168 xlf* | bgf* | bgxlf* | mpixlf*) 12169 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12170 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12171 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12172 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12173 if test yes = "$supports_anon_versioning"; then 12174 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12176 echo "local: *; };" >> $output_objdir/$libname.ver~ 12177 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12178 fi 12179 ;; 12180 esac 12181 else 12182 ld_shlibs=no 12183 fi 12184 ;; 12185 12186 netbsd*) 12187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12189 wlarc= 12190 else 12191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12192 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12193 fi 12194 ;; 12195 12196 solaris*) 12197 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12198 ld_shlibs=no 12199 cat <<_LT_EOF 1>&2 12200 12201*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12202*** create shared libraries on Solaris systems. Therefore, libtool 12203*** is disabling shared libraries support. We urge you to upgrade GNU 12204*** binutils to release 2.9.1 or newer. Another option is to modify 12205*** your PATH or compiler configuration so that the native linker is 12206*** used, and then restart. 12207 12208_LT_EOF 12209 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12212 else 12213 ld_shlibs=no 12214 fi 12215 ;; 12216 12217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12218 case `$LD -v 2>&1` in 12219 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12220 ld_shlibs=no 12221 cat <<_LT_EOF 1>&2 12222 12223*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12224*** reliably create shared libraries on SCO systems. Therefore, libtool 12225*** is disabling shared libraries support. We urge you to upgrade GNU 12226*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12227*** your PATH or compiler configuration so that the native linker is 12228*** used, and then restart. 12229 12230_LT_EOF 12231 ;; 12232 *) 12233 # For security reasons, it is highly recommended that you always 12234 # use absolute paths for naming shared libraries, and exclude the 12235 # DT_RUNPATH tag from executables and libraries. But doing so 12236 # requires that you compile everything twice, which is a pain. 12237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12238 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12241 else 12242 ld_shlibs=no 12243 fi 12244 ;; 12245 esac 12246 ;; 12247 12248 sunos4*) 12249 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12250 wlarc= 12251 hardcode_direct=yes 12252 hardcode_shlibpath_var=no 12253 ;; 12254 12255 *) 12256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12258 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12259 else 12260 ld_shlibs=no 12261 fi 12262 ;; 12263 esac 12264 12265 if test no = "$ld_shlibs"; then 12266 runpath_var= 12267 hardcode_libdir_flag_spec= 12268 export_dynamic_flag_spec= 12269 whole_archive_flag_spec= 12270 fi 12271 else 12272 # PORTME fill in a description of your system's linker (not GNU ld) 12273 case $host_os in 12274 aix3*) 12275 allow_undefined_flag=unsupported 12276 always_export_symbols=yes 12277 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' 12278 # Note: this linker hardcodes the directories in LIBPATH if there 12279 # are no directories specified by -L. 12280 hardcode_minus_L=yes 12281 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12282 # Neither direct hardcoding nor static linking is supported with a 12283 # broken collect2. 12284 hardcode_direct=unsupported 12285 fi 12286 ;; 12287 12288 aix[4-9]*) 12289 if test ia64 = "$host_cpu"; then 12290 # On IA64, the linker does run time linking by default, so we don't 12291 # have to do anything special. 12292 aix_use_runtimelinking=no 12293 exp_sym_flag='-Bexport' 12294 no_entry_flag= 12295 else 12296 # If we're using GNU nm, then we don't want the "-C" option. 12297 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12298 # Without the "-l" option, or with the "-B" option, AIX nm treats 12299 # weak defined symbols like other global defined symbols, whereas 12300 # GNU nm marks them as "W". 12301 # While the 'weak' keyword is ignored in the Export File, we need 12302 # it in the Import File for the 'aix-soname' feature, so we have 12303 # to replace the "-B" option with "-P" for AIX nm. 12304 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12305 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' 12306 else 12307 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' 12308 fi 12309 aix_use_runtimelinking=no 12310 12311 # Test if we are trying to use run time linking or normal 12312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12313 # have runtime linking enabled, and use it for executables. 12314 # For shared libraries, we enable/disable runtime linking 12315 # depending on the kind of the shared library created - 12316 # when "with_aix_soname,aix_use_runtimelinking" is: 12317 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12318 # "aix,yes" lib.so shared, rtl:yes, for executables 12319 # lib.a static archive 12320 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12321 # lib.a(lib.so.V) shared, rtl:no, for executables 12322 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12323 # lib.a(lib.so.V) shared, rtl:no 12324 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12325 # lib.a static archive 12326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12327 for ld_flag in $LDFLAGS; do 12328 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12329 aix_use_runtimelinking=yes 12330 break 12331 fi 12332 done 12333 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12334 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12335 # so we don't have lib.a shared libs to link our executables. 12336 # We have to force runtime linking in this case. 12337 aix_use_runtimelinking=yes 12338 LDFLAGS="$LDFLAGS -Wl,-brtl" 12339 fi 12340 ;; 12341 esac 12342 12343 exp_sym_flag='-bexport' 12344 no_entry_flag='-bnoentry' 12345 fi 12346 12347 # When large executables or shared objects are built, AIX ld can 12348 # have problems creating the table of contents. If linking a library 12349 # or program results in "error TOC overflow" add -mminimal-toc to 12350 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12351 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12352 12353 archive_cmds='' 12354 hardcode_direct=yes 12355 hardcode_direct_absolute=yes 12356 hardcode_libdir_separator=':' 12357 link_all_deplibs=yes 12358 file_list_spec='$wl-f,' 12359 case $with_aix_soname,$aix_use_runtimelinking in 12360 aix,*) ;; # traditional, no import file 12361 svr4,* | *,yes) # use import file 12362 # The Import File defines what to hardcode. 12363 hardcode_direct=no 12364 hardcode_direct_absolute=no 12365 ;; 12366 esac 12367 12368 if test yes = "$GCC"; then 12369 case $host_os in aix4.[012]|aix4.[012].*) 12370 # We only want to do this on AIX 4.2 and lower, the check 12371 # below for broken collect2 doesn't work under 4.3+ 12372 collect2name=`$CC -print-prog-name=collect2` 12373 if test -f "$collect2name" && 12374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12375 then 12376 # We have reworked collect2 12377 : 12378 else 12379 # We have old collect2 12380 hardcode_direct=unsupported 12381 # It fails to find uninstalled libraries when the uninstalled 12382 # path is not listed in the libpath. Setting hardcode_minus_L 12383 # to unsupported forces relinking 12384 hardcode_minus_L=yes 12385 hardcode_libdir_flag_spec='-L$libdir' 12386 hardcode_libdir_separator= 12387 fi 12388 ;; 12389 esac 12390 shared_flag='-shared' 12391 if test yes = "$aix_use_runtimelinking"; then 12392 shared_flag="$shared_flag "'$wl-G' 12393 fi 12394 # Need to ensure runtime linking is disabled for the traditional 12395 # shared library, or the linker may eventually find shared libraries 12396 # /with/ Import File - we do not want to mix them. 12397 shared_flag_aix='-shared' 12398 shared_flag_svr4='-shared $wl-G' 12399 else 12400 # not using gcc 12401 if test ia64 = "$host_cpu"; then 12402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12403 # chokes on -Wl,-G. The following line is correct: 12404 shared_flag='-G' 12405 else 12406 if test yes = "$aix_use_runtimelinking"; then 12407 shared_flag='$wl-G' 12408 else 12409 shared_flag='$wl-bM:SRE' 12410 fi 12411 shared_flag_aix='$wl-bM:SRE' 12412 shared_flag_svr4='$wl-G' 12413 fi 12414 fi 12415 12416 export_dynamic_flag_spec='$wl-bexpall' 12417 # It seems that -bexpall does not export symbols beginning with 12418 # underscore (_), so it is better to generate a list of symbols to export. 12419 always_export_symbols=yes 12420 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12421 # Warning - without using the other runtime loading flags (-brtl), 12422 # -berok will link without error, but may produce a broken library. 12423 allow_undefined_flag='-berok' 12424 # Determine the default libpath from the value encoded in an 12425 # empty executable. 12426 if test set = "${lt_cv_aix_libpath+set}"; then 12427 aix_libpath=$lt_cv_aix_libpath 12428else 12429 if ${lt_cv_aix_libpath_+:} false; then : 12430 $as_echo_n "(cached) " >&6 12431else 12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433/* end confdefs.h. */ 12434 12435int 12436main () 12437{ 12438 12439 ; 12440 return 0; 12441} 12442_ACEOF 12443if ac_fn_c_try_link "$LINENO"; then : 12444 12445 lt_aix_libpath_sed=' 12446 /Import File Strings/,/^$/ { 12447 /^0/ { 12448 s/^0 *\([^ ]*\) *$/\1/ 12449 p 12450 } 12451 }' 12452 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12453 # Check for a 64-bit object if we didn't find anything. 12454 if test -z "$lt_cv_aix_libpath_"; then 12455 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12456 fi 12457fi 12458rm -f core conftest.err conftest.$ac_objext \ 12459 conftest$ac_exeext conftest.$ac_ext 12460 if test -z "$lt_cv_aix_libpath_"; then 12461 lt_cv_aix_libpath_=/usr/lib:/lib 12462 fi 12463 12464fi 12465 12466 aix_libpath=$lt_cv_aix_libpath_ 12467fi 12468 12469 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12470 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 12471 else 12472 if test ia64 = "$host_cpu"; then 12473 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12474 allow_undefined_flag="-z nodefs" 12475 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" 12476 else 12477 # Determine the default libpath from the value encoded in an 12478 # empty executable. 12479 if test set = "${lt_cv_aix_libpath+set}"; then 12480 aix_libpath=$lt_cv_aix_libpath 12481else 12482 if ${lt_cv_aix_libpath_+:} false; then : 12483 $as_echo_n "(cached) " >&6 12484else 12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12486/* end confdefs.h. */ 12487 12488int 12489main () 12490{ 12491 12492 ; 12493 return 0; 12494} 12495_ACEOF 12496if ac_fn_c_try_link "$LINENO"; then : 12497 12498 lt_aix_libpath_sed=' 12499 /Import File Strings/,/^$/ { 12500 /^0/ { 12501 s/^0 *\([^ ]*\) *$/\1/ 12502 p 12503 } 12504 }' 12505 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12506 # Check for a 64-bit object if we didn't find anything. 12507 if test -z "$lt_cv_aix_libpath_"; then 12508 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12509 fi 12510fi 12511rm -f core conftest.err conftest.$ac_objext \ 12512 conftest$ac_exeext conftest.$ac_ext 12513 if test -z "$lt_cv_aix_libpath_"; then 12514 lt_cv_aix_libpath_=/usr/lib:/lib 12515 fi 12516 12517fi 12518 12519 aix_libpath=$lt_cv_aix_libpath_ 12520fi 12521 12522 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12523 # Warning - without using the other run time loading flags, 12524 # -berok will link without error, but may produce a broken library. 12525 no_undefined_flag=' $wl-bernotok' 12526 allow_undefined_flag=' $wl-berok' 12527 if test yes = "$with_gnu_ld"; then 12528 # We only use this code for GNU lds that support --whole-archive. 12529 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12530 else 12531 # Exported symbols can be pulled into shared objects from archives 12532 whole_archive_flag_spec='$convenience' 12533 fi 12534 archive_cmds_need_lc=yes 12535 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12536 # -brtl affects multiple linker settings, -berok does not and is overridden later 12537 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12538 if test svr4 != "$with_aix_soname"; then 12539 # This is similar to how AIX traditionally builds its shared libraries. 12540 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' 12541 fi 12542 if test aix != "$with_aix_soname"; then 12543 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' 12544 else 12545 # used by -dlpreopen to get the symbols 12546 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12547 fi 12548 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12549 fi 12550 fi 12551 ;; 12552 12553 amigaos*) 12554 case $host_cpu in 12555 powerpc) 12556 # see comment about AmigaOS4 .so support 12557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12558 archive_expsym_cmds='' 12559 ;; 12560 m68k) 12561 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)' 12562 hardcode_libdir_flag_spec='-L$libdir' 12563 hardcode_minus_L=yes 12564 ;; 12565 esac 12566 ;; 12567 12568 bsdi[45]*) 12569 export_dynamic_flag_spec=-rdynamic 12570 ;; 12571 12572 cygwin* | mingw* | pw32* | cegcc*) 12573 # When not using gcc, we currently assume that we are using 12574 # Microsoft Visual C++. 12575 # hardcode_libdir_flag_spec is actually meaningless, as there is 12576 # no search path for DLLs. 12577 case $cc_basename in 12578 cl*) 12579 # Native MSVC 12580 hardcode_libdir_flag_spec=' ' 12581 allow_undefined_flag=unsupported 12582 always_export_symbols=yes 12583 file_list_spec='@' 12584 # Tell ltmain to make .lib files, not .a files. 12585 libext=lib 12586 # Tell ltmain to make .dll files, not .so files. 12587 shrext_cmds=.dll 12588 # FIXME: Setting linknames here is a bad hack. 12589 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12590 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12591 cp "$export_symbols" "$output_objdir/$soname.def"; 12592 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12593 else 12594 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12595 fi~ 12596 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12597 linknames=' 12598 # The linker will not automatically build a static lib if we build a DLL. 12599 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12600 enable_shared_with_static_runtimes=yes 12601 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12602 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12603 # Don't use ranlib 12604 old_postinstall_cmds='chmod 644 $oldlib' 12605 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12606 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12607 case $lt_outputfile in 12608 *.exe|*.EXE) ;; 12609 *) 12610 lt_outputfile=$lt_outputfile.exe 12611 lt_tool_outputfile=$lt_tool_outputfile.exe 12612 ;; 12613 esac~ 12614 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12615 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12616 $RM "$lt_outputfile.manifest"; 12617 fi' 12618 ;; 12619 *) 12620 # Assume MSVC wrapper 12621 hardcode_libdir_flag_spec=' ' 12622 allow_undefined_flag=unsupported 12623 # Tell ltmain to make .lib files, not .a files. 12624 libext=lib 12625 # Tell ltmain to make .dll files, not .so files. 12626 shrext_cmds=.dll 12627 # FIXME: Setting linknames here is a bad hack. 12628 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12629 # The linker will automatically build a .lib file if we build a DLL. 12630 old_archive_from_new_cmds='true' 12631 # FIXME: Should let the user specify the lib program. 12632 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12633 enable_shared_with_static_runtimes=yes 12634 ;; 12635 esac 12636 ;; 12637 12638 darwin* | rhapsody*) 12639 12640 12641 archive_cmds_need_lc=no 12642 hardcode_direct=no 12643 hardcode_automatic=yes 12644 hardcode_shlibpath_var=unsupported 12645 if test yes = "$lt_cv_ld_force_load"; then 12646 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\"`' 12647 12648 else 12649 whole_archive_flag_spec='' 12650 fi 12651 link_all_deplibs=yes 12652 allow_undefined_flag=$_lt_dar_allow_undefined 12653 case $cc_basename in 12654 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12655 *) _lt_dar_can_shared=$GCC ;; 12656 esac 12657 if test yes = "$_lt_dar_can_shared"; then 12658 output_verbose_link_cmd=func_echo_all 12659 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12660 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12661 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" 12662 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" 12663 12664 else 12665 ld_shlibs=no 12666 fi 12667 12668 ;; 12669 12670 dgux*) 12671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12672 hardcode_libdir_flag_spec='-L$libdir' 12673 hardcode_shlibpath_var=no 12674 ;; 12675 12676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12677 # support. Future versions do this automatically, but an explicit c++rt0.o 12678 # does not break anything, and helps significantly (at the cost of a little 12679 # extra space). 12680 freebsd2.2*) 12681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12682 hardcode_libdir_flag_spec='-R$libdir' 12683 hardcode_direct=yes 12684 hardcode_shlibpath_var=no 12685 ;; 12686 12687 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12688 freebsd2.*) 12689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12690 hardcode_direct=yes 12691 hardcode_minus_L=yes 12692 hardcode_shlibpath_var=no 12693 ;; 12694 12695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12696 freebsd* | dragonfly*) 12697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12698 hardcode_libdir_flag_spec='-R$libdir' 12699 hardcode_direct=yes 12700 hardcode_shlibpath_var=no 12701 ;; 12702 12703 hpux9*) 12704 if test yes = "$GCC"; then 12705 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' 12706 else 12707 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' 12708 fi 12709 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12710 hardcode_libdir_separator=: 12711 hardcode_direct=yes 12712 12713 # hardcode_minus_L: Not really in the search PATH, 12714 # but as the default location of the library. 12715 hardcode_minus_L=yes 12716 export_dynamic_flag_spec='$wl-E' 12717 ;; 12718 12719 hpux10*) 12720 if test yes,no = "$GCC,$with_gnu_ld"; then 12721 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12722 else 12723 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12724 fi 12725 if test no = "$with_gnu_ld"; then 12726 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12727 hardcode_libdir_separator=: 12728 hardcode_direct=yes 12729 hardcode_direct_absolute=yes 12730 export_dynamic_flag_spec='$wl-E' 12731 # hardcode_minus_L: Not really in the search PATH, 12732 # but as the default location of the library. 12733 hardcode_minus_L=yes 12734 fi 12735 ;; 12736 12737 hpux11*) 12738 if test yes,no = "$GCC,$with_gnu_ld"; then 12739 case $host_cpu in 12740 hppa*64*) 12741 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12742 ;; 12743 ia64*) 12744 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12745 ;; 12746 *) 12747 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12748 ;; 12749 esac 12750 else 12751 case $host_cpu in 12752 hppa*64*) 12753 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12754 ;; 12755 ia64*) 12756 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12757 ;; 12758 *) 12759 12760 # Older versions of the 11.00 compiler do not understand -b yet 12761 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12763$as_echo_n "checking if $CC understands -b... " >&6; } 12764if ${lt_cv_prog_compiler__b+:} false; then : 12765 $as_echo_n "(cached) " >&6 12766else 12767 lt_cv_prog_compiler__b=no 12768 save_LDFLAGS=$LDFLAGS 12769 LDFLAGS="$LDFLAGS -b" 12770 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12772 # The linker can only warn and ignore the option if not recognized 12773 # So say no if there are warnings 12774 if test -s conftest.err; then 12775 # Append any errors to the config.log. 12776 cat conftest.err 1>&5 12777 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12779 if diff conftest.exp conftest.er2 >/dev/null; then 12780 lt_cv_prog_compiler__b=yes 12781 fi 12782 else 12783 lt_cv_prog_compiler__b=yes 12784 fi 12785 fi 12786 $RM -r conftest* 12787 LDFLAGS=$save_LDFLAGS 12788 12789fi 12790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12791$as_echo "$lt_cv_prog_compiler__b" >&6; } 12792 12793if test yes = "$lt_cv_prog_compiler__b"; then 12794 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12795else 12796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12797fi 12798 12799 ;; 12800 esac 12801 fi 12802 if test no = "$with_gnu_ld"; then 12803 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12804 hardcode_libdir_separator=: 12805 12806 case $host_cpu in 12807 hppa*64*|ia64*) 12808 hardcode_direct=no 12809 hardcode_shlibpath_var=no 12810 ;; 12811 *) 12812 hardcode_direct=yes 12813 hardcode_direct_absolute=yes 12814 export_dynamic_flag_spec='$wl-E' 12815 12816 # hardcode_minus_L: Not really in the search PATH, 12817 # but as the default location of the library. 12818 hardcode_minus_L=yes 12819 ;; 12820 esac 12821 fi 12822 ;; 12823 12824 irix5* | irix6* | nonstopux*) 12825 if test yes = "$GCC"; then 12826 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' 12827 # Try to use the -exported_symbol ld option, if it does not 12828 # work, assume that -exports_file does not work either and 12829 # implicitly export all symbols. 12830 # This should be the same for all languages, so no per-tag cache variable. 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12832$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12833if ${lt_cv_irix_exported_symbol+:} false; then : 12834 $as_echo_n "(cached) " >&6 12835else 12836 save_LDFLAGS=$LDFLAGS 12837 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839/* end confdefs.h. */ 12840int foo (void) { return 0; } 12841_ACEOF 12842if ac_fn_c_try_link "$LINENO"; then : 12843 lt_cv_irix_exported_symbol=yes 12844else 12845 lt_cv_irix_exported_symbol=no 12846fi 12847rm -f core conftest.err conftest.$ac_objext \ 12848 conftest$ac_exeext conftest.$ac_ext 12849 LDFLAGS=$save_LDFLAGS 12850fi 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12852$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12853 if test yes = "$lt_cv_irix_exported_symbol"; then 12854 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' 12855 fi 12856 else 12857 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' 12858 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' 12859 fi 12860 archive_cmds_need_lc='no' 12861 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12862 hardcode_libdir_separator=: 12863 inherit_rpath=yes 12864 link_all_deplibs=yes 12865 ;; 12866 12867 linux*) 12868 case $cc_basename in 12869 tcc*) 12870 # Fabrice Bellard et al's Tiny C Compiler 12871 ld_shlibs=yes 12872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12873 ;; 12874 esac 12875 ;; 12876 12877 netbsd*) 12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12880 else 12881 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12882 fi 12883 hardcode_libdir_flag_spec='-R$libdir' 12884 hardcode_direct=yes 12885 hardcode_shlibpath_var=no 12886 ;; 12887 12888 newsos6) 12889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12890 hardcode_direct=yes 12891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12892 hardcode_libdir_separator=: 12893 hardcode_shlibpath_var=no 12894 ;; 12895 12896 *nto* | *qnx*) 12897 ;; 12898 12899 openbsd* | bitrig*) 12900 if test -f /usr/libexec/ld.so; then 12901 hardcode_direct=yes 12902 hardcode_shlibpath_var=no 12903 hardcode_direct_absolute=yes 12904 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12906 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12907 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12908 export_dynamic_flag_spec='$wl-E' 12909 else 12910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12911 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12912 fi 12913 else 12914 ld_shlibs=no 12915 fi 12916 ;; 12917 12918 os2*) 12919 hardcode_libdir_flag_spec='-L$libdir' 12920 hardcode_minus_L=yes 12921 allow_undefined_flag=unsupported 12922 shrext_cmds=.dll 12923 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12924 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12925 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12926 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12927 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12928 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12929 emximp -o $lib $output_objdir/$libname.def' 12930 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12931 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12932 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12933 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12934 prefix_cmds="$SED"~ 12935 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12936 prefix_cmds="$prefix_cmds -e 1d"; 12937 fi~ 12938 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12939 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12940 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12941 emximp -o $lib $output_objdir/$libname.def' 12942 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12943 enable_shared_with_static_runtimes=yes 12944 ;; 12945 12946 osf3*) 12947 if test yes = "$GCC"; then 12948 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12949 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' 12950 else 12951 allow_undefined_flag=' -expect_unresolved \*' 12952 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' 12953 fi 12954 archive_cmds_need_lc='no' 12955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12956 hardcode_libdir_separator=: 12957 ;; 12958 12959 osf4* | osf5*) # as osf3* with the addition of -msym flag 12960 if test yes = "$GCC"; then 12961 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12962 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' 12963 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12964 else 12965 allow_undefined_flag=' -expect_unresolved \*' 12966 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' 12967 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~ 12968 $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' 12969 12970 # Both c and cxx compiler support -rpath directly 12971 hardcode_libdir_flag_spec='-rpath $libdir' 12972 fi 12973 archive_cmds_need_lc='no' 12974 hardcode_libdir_separator=: 12975 ;; 12976 12977 solaris*) 12978 no_undefined_flag=' -z defs' 12979 if test yes = "$GCC"; then 12980 wlarc='$wl' 12981 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12982 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12983 $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' 12984 else 12985 case `$CC -V 2>&1` in 12986 *"Compilers 5.0"*) 12987 wlarc='' 12988 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12990 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12991 ;; 12992 *) 12993 wlarc='$wl' 12994 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12996 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12997 ;; 12998 esac 12999 fi 13000 hardcode_libdir_flag_spec='-R$libdir' 13001 hardcode_shlibpath_var=no 13002 case $host_os in 13003 solaris2.[0-5] | solaris2.[0-5].*) ;; 13004 *) 13005 # The compiler driver will combine and reorder linker options, 13006 # but understands '-z linker_flag'. GCC discards it without '$wl', 13007 # but is careful enough not to reorder. 13008 # Supported since Solaris 2.6 (maybe 2.5.1?) 13009 if test yes = "$GCC"; then 13010 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13011 else 13012 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13013 fi 13014 ;; 13015 esac 13016 link_all_deplibs=yes 13017 ;; 13018 13019 sunos4*) 13020 if test sequent = "$host_vendor"; then 13021 # Use $CC to link under sequent, because it throws in some extra .o 13022 # files that make .init and .fini sections work. 13023 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13024 else 13025 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13026 fi 13027 hardcode_libdir_flag_spec='-L$libdir' 13028 hardcode_direct=yes 13029 hardcode_minus_L=yes 13030 hardcode_shlibpath_var=no 13031 ;; 13032 13033 sysv4) 13034 case $host_vendor in 13035 sni) 13036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13037 hardcode_direct=yes # is this really true??? 13038 ;; 13039 siemens) 13040 ## LD is ld it makes a PLAMLIB 13041 ## CC just makes a GrossModule. 13042 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13043 reload_cmds='$CC -r -o $output$reload_objs' 13044 hardcode_direct=no 13045 ;; 13046 motorola) 13047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13048 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13049 ;; 13050 esac 13051 runpath_var='LD_RUN_PATH' 13052 hardcode_shlibpath_var=no 13053 ;; 13054 13055 sysv4.3*) 13056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13057 hardcode_shlibpath_var=no 13058 export_dynamic_flag_spec='-Bexport' 13059 ;; 13060 13061 sysv4*MP*) 13062 if test -d /usr/nec; then 13063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13064 hardcode_shlibpath_var=no 13065 runpath_var=LD_RUN_PATH 13066 hardcode_runpath_var=yes 13067 ld_shlibs=yes 13068 fi 13069 ;; 13070 13071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13072 no_undefined_flag='$wl-z,text' 13073 archive_cmds_need_lc=no 13074 hardcode_shlibpath_var=no 13075 runpath_var='LD_RUN_PATH' 13076 13077 if test yes = "$GCC"; then 13078 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13079 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13080 else 13081 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13082 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13083 fi 13084 ;; 13085 13086 sysv5* | sco3.2v5* | sco5v6*) 13087 # Note: We CANNOT use -z defs as we might desire, because we do not 13088 # link with -lc, and that would cause any symbols used from libc to 13089 # always be unresolved, which means just about no library would 13090 # ever link correctly. If we're not using GNU ld we use -z text 13091 # though, which does catch some bad symbols but isn't as heavy-handed 13092 # as -z defs. 13093 no_undefined_flag='$wl-z,text' 13094 allow_undefined_flag='$wl-z,nodefs' 13095 archive_cmds_need_lc=no 13096 hardcode_shlibpath_var=no 13097 hardcode_libdir_flag_spec='$wl-R,$libdir' 13098 hardcode_libdir_separator=':' 13099 link_all_deplibs=yes 13100 export_dynamic_flag_spec='$wl-Bexport' 13101 runpath_var='LD_RUN_PATH' 13102 13103 if test yes = "$GCC"; then 13104 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13105 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13106 else 13107 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13108 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13109 fi 13110 ;; 13111 13112 uts4*) 13113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13114 hardcode_libdir_flag_spec='-L$libdir' 13115 hardcode_shlibpath_var=no 13116 ;; 13117 13118 *) 13119 ld_shlibs=no 13120 ;; 13121 esac 13122 13123 if test sni = "$host_vendor"; then 13124 case $host in 13125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13126 export_dynamic_flag_spec='$wl-Blargedynsym' 13127 ;; 13128 esac 13129 fi 13130 fi 13131 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13133$as_echo "$ld_shlibs" >&6; } 13134test no = "$ld_shlibs" && can_build_shared=no 13135 13136with_gnu_ld=$with_gnu_ld 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152# 13153# Do we need to explicitly link libc? 13154# 13155case "x$archive_cmds_need_lc" in 13156x|xyes) 13157 # Assume -lc should be added 13158 archive_cmds_need_lc=yes 13159 13160 if test yes,yes = "$GCC,$enable_shared"; then 13161 case $archive_cmds in 13162 *'~'*) 13163 # FIXME: we may have to deal with multi-command sequences. 13164 ;; 13165 '$CC '*) 13166 # Test whether the compiler implicitly links with -lc since on some 13167 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13168 # to ld, don't add -lc before -lgcc. 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13170$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13171if ${lt_cv_archive_cmds_need_lc+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 $RM conftest* 13175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13176 13177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13178 (eval $ac_compile) 2>&5 13179 ac_status=$? 13180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13181 test $ac_status = 0; } 2>conftest.err; then 13182 soname=conftest 13183 lib=conftest 13184 libobjs=conftest.$ac_objext 13185 deplibs= 13186 wl=$lt_prog_compiler_wl 13187 pic_flag=$lt_prog_compiler_pic 13188 compiler_flags=-v 13189 linker_flags=-v 13190 verstring= 13191 output_objdir=. 13192 libname=conftest 13193 lt_save_allow_undefined_flag=$allow_undefined_flag 13194 allow_undefined_flag= 13195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13196 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13197 ac_status=$? 13198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13199 test $ac_status = 0; } 13200 then 13201 lt_cv_archive_cmds_need_lc=no 13202 else 13203 lt_cv_archive_cmds_need_lc=yes 13204 fi 13205 allow_undefined_flag=$lt_save_allow_undefined_flag 13206 else 13207 cat conftest.err 1>&5 13208 fi 13209 $RM conftest* 13210 13211fi 13212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13213$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13214 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13215 ;; 13216 esac 13217 fi 13218 ;; 13219esac 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13373$as_echo_n "checking dynamic linker characteristics... " >&6; } 13374 13375if test yes = "$GCC"; then 13376 case $host_os in 13377 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13378 *) lt_awk_arg='/^libraries:/' ;; 13379 esac 13380 case $host_os in 13381 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13382 *) lt_sed_strip_eq='s|=/|/|g' ;; 13383 esac 13384 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13385 case $lt_search_path_spec in 13386 *\;*) 13387 # if the path contains ";" then we assume it to be the separator 13388 # otherwise default to the standard path separator (i.e. ":") - it is 13389 # assumed that no part of a normal pathname contains ";" but that should 13390 # okay in the real world where ";" in dirpaths is itself problematic. 13391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13392 ;; 13393 *) 13394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13395 ;; 13396 esac 13397 # Ok, now we have the path, separated by spaces, we can step through it 13398 # and add multilib dir if necessary... 13399 lt_tmp_lt_search_path_spec= 13400 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13401 # ...but if some path component already ends with the multilib dir we assume 13402 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13403 case "$lt_multi_os_dir; $lt_search_path_spec " in 13404 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13405 lt_multi_os_dir= 13406 ;; 13407 esac 13408 for lt_sys_path in $lt_search_path_spec; do 13409 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13411 elif test -n "$lt_multi_os_dir"; then 13412 test -d "$lt_sys_path" && \ 13413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13414 fi 13415 done 13416 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13417BEGIN {RS = " "; FS = "/|\n";} { 13418 lt_foo = ""; 13419 lt_count = 0; 13420 for (lt_i = NF; lt_i > 0; lt_i--) { 13421 if ($lt_i != "" && $lt_i != ".") { 13422 if ($lt_i == "..") { 13423 lt_count++; 13424 } else { 13425 if (lt_count == 0) { 13426 lt_foo = "/" $lt_i lt_foo; 13427 } else { 13428 lt_count--; 13429 } 13430 } 13431 } 13432 } 13433 if (lt_foo != "") { lt_freq[lt_foo]++; } 13434 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13435}'` 13436 # AWK program above erroneously prepends '/' to C:/dos/paths 13437 # for these hosts. 13438 case $host_os in 13439 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13440 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13441 esac 13442 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13443else 13444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13445fi 13446library_names_spec= 13447libname_spec='lib$name' 13448soname_spec= 13449shrext_cmds=.so 13450postinstall_cmds= 13451postuninstall_cmds= 13452finish_cmds= 13453finish_eval= 13454shlibpath_var= 13455shlibpath_overrides_runpath=unknown 13456version_type=none 13457dynamic_linker="$host_os ld.so" 13458sys_lib_dlsearch_path_spec="/lib /usr/lib" 13459need_lib_prefix=unknown 13460hardcode_into_libs=no 13461 13462# when you set need_version to no, make sure it does not cause -set_version 13463# flags to be left without arguments 13464need_version=unknown 13465 13466 13467 13468case $host_os in 13469aix3*) 13470 version_type=linux # correct to gnu/linux during the next big refactor 13471 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13472 shlibpath_var=LIBPATH 13473 13474 # AIX 3 has no versioning support, so we append a major version to the name. 13475 soname_spec='$libname$release$shared_ext$major' 13476 ;; 13477 13478aix[4-9]*) 13479 version_type=linux # correct to gnu/linux during the next big refactor 13480 need_lib_prefix=no 13481 need_version=no 13482 hardcode_into_libs=yes 13483 if test ia64 = "$host_cpu"; then 13484 # AIX 5 supports IA64 13485 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13486 shlibpath_var=LD_LIBRARY_PATH 13487 else 13488 # With GCC up to 2.95.x, collect2 would create an import file 13489 # for dependence libraries. The import file would start with 13490 # the line '#! .'. This would cause the generated library to 13491 # depend on '.', always an invalid library. This was fixed in 13492 # development snapshots of GCC prior to 3.0. 13493 case $host_os in 13494 aix4 | aix4.[01] | aix4.[01].*) 13495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13496 echo ' yes ' 13497 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13498 : 13499 else 13500 can_build_shared=no 13501 fi 13502 ;; 13503 esac 13504 # Using Import Files as archive members, it is possible to support 13505 # filename-based versioning of shared library archives on AIX. While 13506 # this would work for both with and without runtime linking, it will 13507 # prevent static linking of such archives. So we do filename-based 13508 # shared library versioning with .so extension only, which is used 13509 # when both runtime linking and shared linking is enabled. 13510 # Unfortunately, runtime linking may impact performance, so we do 13511 # not want this to be the default eventually. Also, we use the 13512 # versioned .so libs for executables only if there is the -brtl 13513 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13514 # To allow for filename-based versioning support, we need to create 13515 # libNAME.so.V as an archive file, containing: 13516 # *) an Import File, referring to the versioned filename of the 13517 # archive as well as the shared archive member, telling the 13518 # bitwidth (32 or 64) of that shared object, and providing the 13519 # list of exported symbols of that shared object, eventually 13520 # decorated with the 'weak' keyword 13521 # *) the shared object with the F_LOADONLY flag set, to really avoid 13522 # it being seen by the linker. 13523 # At run time we better use the real file rather than another symlink, 13524 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13525 13526 case $with_aix_soname,$aix_use_runtimelinking in 13527 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13528 # soname into executable. Probably we can add versioning support to 13529 # collect2, so additional links can be useful in future. 13530 aix,yes) # traditional libtool 13531 dynamic_linker='AIX unversionable lib.so' 13532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13533 # instead of lib<name>.a to let people know that these are not 13534 # typical AIX shared libraries. 13535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13536 ;; 13537 aix,no) # traditional AIX only 13538 dynamic_linker='AIX lib.a(lib.so.V)' 13539 # We preserve .a as extension for shared libraries through AIX4.2 13540 # and later when we are not doing run time linking. 13541 library_names_spec='$libname$release.a $libname.a' 13542 soname_spec='$libname$release$shared_ext$major' 13543 ;; 13544 svr4,*) # full svr4 only 13545 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13546 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13547 # We do not specify a path in Import Files, so LIBPATH fires. 13548 shlibpath_overrides_runpath=yes 13549 ;; 13550 *,yes) # both, prefer svr4 13551 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13552 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13553 # unpreferred sharedlib libNAME.a needs extra handling 13554 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"' 13555 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"' 13556 # We do not specify a path in Import Files, so LIBPATH fires. 13557 shlibpath_overrides_runpath=yes 13558 ;; 13559 *,no) # both, prefer aix 13560 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13561 library_names_spec='$libname$release.a $libname.a' 13562 soname_spec='$libname$release$shared_ext$major' 13563 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13564 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)' 13565 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"' 13566 ;; 13567 esac 13568 shlibpath_var=LIBPATH 13569 fi 13570 ;; 13571 13572amigaos*) 13573 case $host_cpu in 13574 powerpc) 13575 # Since July 2007 AmigaOS4 officially supports .so libraries. 13576 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13578 ;; 13579 m68k) 13580 library_names_spec='$libname.ixlibrary $libname.a' 13581 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13582 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' 13583 ;; 13584 esac 13585 ;; 13586 13587beos*) 13588 library_names_spec='$libname$shared_ext' 13589 dynamic_linker="$host_os ld.so" 13590 shlibpath_var=LIBRARY_PATH 13591 ;; 13592 13593bsdi[45]*) 13594 version_type=linux # correct to gnu/linux during the next big refactor 13595 need_version=no 13596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13597 soname_spec='$libname$release$shared_ext$major' 13598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13599 shlibpath_var=LD_LIBRARY_PATH 13600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13602 # the default ld.so.conf also contains /usr/contrib/lib and 13603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13604 # libtool to hard-code these into programs 13605 ;; 13606 13607cygwin* | mingw* | pw32* | cegcc*) 13608 version_type=windows 13609 shrext_cmds=.dll 13610 need_version=no 13611 need_lib_prefix=no 13612 13613 case $GCC,$cc_basename in 13614 yes,*) 13615 # gcc 13616 library_names_spec='$libname.dll.a' 13617 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13618 postinstall_cmds='base_file=`basename \$file`~ 13619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13620 dldir=$destdir/`dirname \$dlpath`~ 13621 test -d \$dldir || mkdir -p \$dldir~ 13622 $install_prog $dir/$dlname \$dldir/$dlname~ 13623 chmod a+x \$dldir/$dlname~ 13624 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13625 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13626 fi' 13627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13628 dlpath=$dir/\$dldll~ 13629 $RM \$dlpath' 13630 shlibpath_overrides_runpath=yes 13631 13632 case $host_os in 13633 cygwin*) 13634 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13635 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13636 13637 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13638 ;; 13639 mingw* | cegcc*) 13640 # MinGW DLLs use traditional 'lib' prefix 13641 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13642 ;; 13643 pw32*) 13644 # pw32 DLLs use 'pw' prefix rather than 'lib' 13645 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13646 ;; 13647 esac 13648 dynamic_linker='Win32 ld.exe' 13649 ;; 13650 13651 *,cl*) 13652 # Native MSVC 13653 libname_spec='$name' 13654 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13655 library_names_spec='$libname.dll.lib' 13656 13657 case $build_os in 13658 mingw*) 13659 sys_lib_search_path_spec= 13660 lt_save_ifs=$IFS 13661 IFS=';' 13662 for lt_path in $LIB 13663 do 13664 IFS=$lt_save_ifs 13665 # Let DOS variable expansion print the short 8.3 style file name. 13666 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13667 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13668 done 13669 IFS=$lt_save_ifs 13670 # Convert to MSYS style. 13671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13672 ;; 13673 cygwin*) 13674 # Convert to unix form, then to dos form, then back to unix form 13675 # but this time dos style (no spaces!) so that the unix form looks 13676 # like /cygdrive/c/PROGRA~1:/cygdr... 13677 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13678 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13679 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13680 ;; 13681 *) 13682 sys_lib_search_path_spec=$LIB 13683 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13684 # It is most probably a Windows format PATH. 13685 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13686 else 13687 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13688 fi 13689 # FIXME: find the short name or the path components, as spaces are 13690 # common. (e.g. "Program Files" -> "PROGRA~1") 13691 ;; 13692 esac 13693 13694 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13695 postinstall_cmds='base_file=`basename \$file`~ 13696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13697 dldir=$destdir/`dirname \$dlpath`~ 13698 test -d \$dldir || mkdir -p \$dldir~ 13699 $install_prog $dir/$dlname \$dldir/$dlname' 13700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13701 dlpath=$dir/\$dldll~ 13702 $RM \$dlpath' 13703 shlibpath_overrides_runpath=yes 13704 dynamic_linker='Win32 link.exe' 13705 ;; 13706 13707 *) 13708 # Assume MSVC wrapper 13709 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13710 dynamic_linker='Win32 ld.exe' 13711 ;; 13712 esac 13713 # FIXME: first we should search . and the directory the executable is in 13714 shlibpath_var=PATH 13715 ;; 13716 13717darwin* | rhapsody*) 13718 dynamic_linker="$host_os dyld" 13719 version_type=darwin 13720 need_lib_prefix=no 13721 need_version=no 13722 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13723 soname_spec='$libname$release$major$shared_ext' 13724 shlibpath_overrides_runpath=yes 13725 shlibpath_var=DYLD_LIBRARY_PATH 13726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13727 13728 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13730 ;; 13731 13732dgux*) 13733 version_type=linux # correct to gnu/linux during the next big refactor 13734 need_lib_prefix=no 13735 need_version=no 13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13737 soname_spec='$libname$release$shared_ext$major' 13738 shlibpath_var=LD_LIBRARY_PATH 13739 ;; 13740 13741freebsd* | dragonfly*) 13742 # DragonFly does not have aout. When/if they implement a new 13743 # versioning mechanism, adjust this. 13744 if test -x /usr/bin/objformat; then 13745 objformat=`/usr/bin/objformat` 13746 else 13747 case $host_os in 13748 freebsd[23].*) objformat=aout ;; 13749 *) objformat=elf ;; 13750 esac 13751 fi 13752 version_type=freebsd-$objformat 13753 case $version_type in 13754 freebsd-elf*) 13755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13756 soname_spec='$libname$release$shared_ext$major' 13757 need_version=no 13758 need_lib_prefix=no 13759 ;; 13760 freebsd-*) 13761 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13762 need_version=yes 13763 ;; 13764 esac 13765 shlibpath_var=LD_LIBRARY_PATH 13766 case $host_os in 13767 freebsd2.*) 13768 shlibpath_overrides_runpath=yes 13769 ;; 13770 freebsd3.[01]* | freebsdelf3.[01]*) 13771 shlibpath_overrides_runpath=yes 13772 hardcode_into_libs=yes 13773 ;; 13774 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13775 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13776 shlibpath_overrides_runpath=no 13777 hardcode_into_libs=yes 13778 ;; 13779 *) # from 4.6 on, and DragonFly 13780 shlibpath_overrides_runpath=yes 13781 hardcode_into_libs=yes 13782 ;; 13783 esac 13784 ;; 13785 13786haiku*) 13787 version_type=linux # correct to gnu/linux during the next big refactor 13788 need_lib_prefix=no 13789 need_version=no 13790 dynamic_linker="$host_os runtime_loader" 13791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13792 soname_spec='$libname$release$shared_ext$major' 13793 shlibpath_var=LIBRARY_PATH 13794 shlibpath_overrides_runpath=no 13795 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13796 hardcode_into_libs=yes 13797 ;; 13798 13799hpux9* | hpux10* | hpux11*) 13800 # Give a soname corresponding to the major version so that dld.sl refuses to 13801 # link against other versions. 13802 version_type=sunos 13803 need_lib_prefix=no 13804 need_version=no 13805 case $host_cpu in 13806 ia64*) 13807 shrext_cmds='.so' 13808 hardcode_into_libs=yes 13809 dynamic_linker="$host_os dld.so" 13810 shlibpath_var=LD_LIBRARY_PATH 13811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13813 soname_spec='$libname$release$shared_ext$major' 13814 if test 32 = "$HPUX_IA64_MODE"; then 13815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13816 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13817 else 13818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13819 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13820 fi 13821 ;; 13822 hppa*64*) 13823 shrext_cmds='.sl' 13824 hardcode_into_libs=yes 13825 dynamic_linker="$host_os dld.sl" 13826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13829 soname_spec='$libname$release$shared_ext$major' 13830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13832 ;; 13833 *) 13834 shrext_cmds='.sl' 13835 dynamic_linker="$host_os dld.sl" 13836 shlibpath_var=SHLIB_PATH 13837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13839 soname_spec='$libname$release$shared_ext$major' 13840 ;; 13841 esac 13842 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13843 postinstall_cmds='chmod 555 $lib' 13844 # or fails outright, so override atomically: 13845 install_override_mode=555 13846 ;; 13847 13848interix[3-9]*) 13849 version_type=linux # correct to gnu/linux during the next big refactor 13850 need_lib_prefix=no 13851 need_version=no 13852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13853 soname_spec='$libname$release$shared_ext$major' 13854 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13855 shlibpath_var=LD_LIBRARY_PATH 13856 shlibpath_overrides_runpath=no 13857 hardcode_into_libs=yes 13858 ;; 13859 13860irix5* | irix6* | nonstopux*) 13861 case $host_os in 13862 nonstopux*) version_type=nonstopux ;; 13863 *) 13864 if test yes = "$lt_cv_prog_gnu_ld"; then 13865 version_type=linux # correct to gnu/linux during the next big refactor 13866 else 13867 version_type=irix 13868 fi ;; 13869 esac 13870 need_lib_prefix=no 13871 need_version=no 13872 soname_spec='$libname$release$shared_ext$major' 13873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13874 case $host_os in 13875 irix5* | nonstopux*) 13876 libsuff= shlibsuff= 13877 ;; 13878 *) 13879 case $LD in # libtool.m4 will add one of these switches to LD 13880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13881 libsuff= shlibsuff= libmagic=32-bit;; 13882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13883 libsuff=32 shlibsuff=N32 libmagic=N32;; 13884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13885 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13886 *) libsuff= shlibsuff= libmagic=never-match;; 13887 esac 13888 ;; 13889 esac 13890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13891 shlibpath_overrides_runpath=no 13892 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13893 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13894 hardcode_into_libs=yes 13895 ;; 13896 13897# No shared lib support for Linux oldld, aout, or coff. 13898linux*oldld* | linux*aout* | linux*coff*) 13899 dynamic_linker=no 13900 ;; 13901 13902linux*android*) 13903 version_type=none # Android doesn't support versioned libraries. 13904 need_lib_prefix=no 13905 need_version=no 13906 library_names_spec='$libname$release$shared_ext' 13907 soname_spec='$libname$release$shared_ext' 13908 finish_cmds= 13909 shlibpath_var=LD_LIBRARY_PATH 13910 shlibpath_overrides_runpath=yes 13911 13912 # This implies no fast_install, which is unacceptable. 13913 # Some rework will be needed to allow for fast_install 13914 # before this can be enabled. 13915 hardcode_into_libs=yes 13916 13917 dynamic_linker='Android linker' 13918 # Don't embed -rpath directories since the linker doesn't support them. 13919 hardcode_libdir_flag_spec='-L$libdir' 13920 ;; 13921 13922# This must be glibc/ELF. 13923linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13924 version_type=linux # correct to gnu/linux during the next big refactor 13925 need_lib_prefix=no 13926 need_version=no 13927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13928 soname_spec='$libname$release$shared_ext$major' 13929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13930 shlibpath_var=LD_LIBRARY_PATH 13931 shlibpath_overrides_runpath=no 13932 13933 # Some binutils ld are patched to set DT_RUNPATH 13934 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 lt_cv_shlibpath_overrides_runpath=no 13938 save_LDFLAGS=$LDFLAGS 13939 save_libdir=$libdir 13940 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13941 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13943/* end confdefs.h. */ 13944 13945int 13946main () 13947{ 13948 13949 ; 13950 return 0; 13951} 13952_ACEOF 13953if ac_fn_c_try_link "$LINENO"; then : 13954 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13955 lt_cv_shlibpath_overrides_runpath=yes 13956fi 13957fi 13958rm -f core conftest.err conftest.$ac_objext \ 13959 conftest$ac_exeext conftest.$ac_ext 13960 LDFLAGS=$save_LDFLAGS 13961 libdir=$save_libdir 13962 13963fi 13964 13965 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13966 13967 # This implies no fast_install, which is unacceptable. 13968 # Some rework will be needed to allow for fast_install 13969 # before this can be enabled. 13970 hardcode_into_libs=yes 13971 13972 # Ideally, we could use ldconfig to report *all* directores which are 13973 # searched for libraries, however this is still not possible. Aside from not 13974 # being certain /sbin/ldconfig is available, command 13975 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13976 # even though it is searched at run-time. Try to do the best guess by 13977 # appending ld.so.conf contents (and includes) to the search path. 13978 if test -f /etc/ld.so.conf; then 13979 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' ' '` 13980 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13981 fi 13982 13983 # We used to test for /lib/ld.so.1 and disable shared libraries on 13984 # powerpc, because MkLinux only supported shared libraries with the 13985 # GNU dynamic linker. Since this was broken with cross compilers, 13986 # most powerpc-linux boxes support dynamic linking these days and 13987 # people can always --disable-shared, the test was removed, and we 13988 # assume the GNU/Linux dynamic linker is in use. 13989 dynamic_linker='GNU/Linux ld.so' 13990 ;; 13991 13992netbsd*) 13993 version_type=sunos 13994 need_lib_prefix=no 13995 need_version=no 13996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13997 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13999 dynamic_linker='NetBSD (a.out) ld.so' 14000 else 14001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14002 soname_spec='$libname$release$shared_ext$major' 14003 dynamic_linker='NetBSD ld.elf_so' 14004 fi 14005 shlibpath_var=LD_LIBRARY_PATH 14006 shlibpath_overrides_runpath=yes 14007 hardcode_into_libs=yes 14008 ;; 14009 14010newsos6) 14011 version_type=linux # correct to gnu/linux during the next big refactor 14012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14013 shlibpath_var=LD_LIBRARY_PATH 14014 shlibpath_overrides_runpath=yes 14015 ;; 14016 14017*nto* | *qnx*) 14018 version_type=qnx 14019 need_lib_prefix=no 14020 need_version=no 14021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14022 soname_spec='$libname$release$shared_ext$major' 14023 shlibpath_var=LD_LIBRARY_PATH 14024 shlibpath_overrides_runpath=no 14025 hardcode_into_libs=yes 14026 dynamic_linker='ldqnx.so' 14027 ;; 14028 14029openbsd* | bitrig*) 14030 version_type=sunos 14031 sys_lib_dlsearch_path_spec=/usr/lib 14032 need_lib_prefix=no 14033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14034 need_version=no 14035 else 14036 need_version=yes 14037 fi 14038 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14040 shlibpath_var=LD_LIBRARY_PATH 14041 shlibpath_overrides_runpath=yes 14042 ;; 14043 14044os2*) 14045 libname_spec='$name' 14046 version_type=windows 14047 shrext_cmds=.dll 14048 need_version=no 14049 need_lib_prefix=no 14050 # OS/2 can only load a DLL with a base name of 8 characters or less. 14051 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14052 v=$($ECHO $release$versuffix | tr -d .-); 14053 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14054 $ECHO $n$v`$shared_ext' 14055 library_names_spec='${libname}_dll.$libext' 14056 dynamic_linker='OS/2 ld.exe' 14057 shlibpath_var=BEGINLIBPATH 14058 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14060 postinstall_cmds='base_file=`basename \$file`~ 14061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14062 dldir=$destdir/`dirname \$dlpath`~ 14063 test -d \$dldir || mkdir -p \$dldir~ 14064 $install_prog $dir/$dlname \$dldir/$dlname~ 14065 chmod a+x \$dldir/$dlname~ 14066 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14067 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14068 fi' 14069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14070 dlpath=$dir/\$dldll~ 14071 $RM \$dlpath' 14072 ;; 14073 14074osf3* | osf4* | osf5*) 14075 version_type=osf 14076 need_lib_prefix=no 14077 need_version=no 14078 soname_spec='$libname$release$shared_ext$major' 14079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14080 shlibpath_var=LD_LIBRARY_PATH 14081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14083 ;; 14084 14085rdos*) 14086 dynamic_linker=no 14087 ;; 14088 14089solaris*) 14090 version_type=linux # correct to gnu/linux during the next big refactor 14091 need_lib_prefix=no 14092 need_version=no 14093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14094 soname_spec='$libname$release$shared_ext$major' 14095 shlibpath_var=LD_LIBRARY_PATH 14096 shlibpath_overrides_runpath=yes 14097 hardcode_into_libs=yes 14098 # ldd complains unless libraries are executable 14099 postinstall_cmds='chmod +x $lib' 14100 ;; 14101 14102sunos4*) 14103 version_type=sunos 14104 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14106 shlibpath_var=LD_LIBRARY_PATH 14107 shlibpath_overrides_runpath=yes 14108 if test yes = "$with_gnu_ld"; then 14109 need_lib_prefix=no 14110 fi 14111 need_version=yes 14112 ;; 14113 14114sysv4 | sysv4.3*) 14115 version_type=linux # correct to gnu/linux during the next big refactor 14116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14117 soname_spec='$libname$release$shared_ext$major' 14118 shlibpath_var=LD_LIBRARY_PATH 14119 case $host_vendor in 14120 sni) 14121 shlibpath_overrides_runpath=no 14122 need_lib_prefix=no 14123 runpath_var=LD_RUN_PATH 14124 ;; 14125 siemens) 14126 need_lib_prefix=no 14127 ;; 14128 motorola) 14129 need_lib_prefix=no 14130 need_version=no 14131 shlibpath_overrides_runpath=no 14132 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14133 ;; 14134 esac 14135 ;; 14136 14137sysv4*MP*) 14138 if test -d /usr/nec; then 14139 version_type=linux # correct to gnu/linux during the next big refactor 14140 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14141 soname_spec='$libname$shared_ext.$major' 14142 shlibpath_var=LD_LIBRARY_PATH 14143 fi 14144 ;; 14145 14146sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14147 version_type=sco 14148 need_lib_prefix=no 14149 need_version=no 14150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14151 soname_spec='$libname$release$shared_ext$major' 14152 shlibpath_var=LD_LIBRARY_PATH 14153 shlibpath_overrides_runpath=yes 14154 hardcode_into_libs=yes 14155 if test yes = "$with_gnu_ld"; then 14156 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14157 else 14158 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14159 case $host_os in 14160 sco3.2v5*) 14161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14162 ;; 14163 esac 14164 fi 14165 sys_lib_dlsearch_path_spec='/usr/lib' 14166 ;; 14167 14168tpf*) 14169 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14170 version_type=linux # correct to gnu/linux during the next big refactor 14171 need_lib_prefix=no 14172 need_version=no 14173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14174 shlibpath_var=LD_LIBRARY_PATH 14175 shlibpath_overrides_runpath=no 14176 hardcode_into_libs=yes 14177 ;; 14178 14179uts4*) 14180 version_type=linux # correct to gnu/linux during the next big refactor 14181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14182 soname_spec='$libname$release$shared_ext$major' 14183 shlibpath_var=LD_LIBRARY_PATH 14184 ;; 14185 14186*) 14187 dynamic_linker=no 14188 ;; 14189esac 14190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14191$as_echo "$dynamic_linker" >&6; } 14192test no = "$dynamic_linker" && can_build_shared=no 14193 14194variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14195if test yes = "$GCC"; then 14196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14197fi 14198 14199if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14200 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14201fi 14202 14203if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14204 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14205fi 14206 14207# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14208configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14209 14210# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14211func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14212 14213# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14214configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14313$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14314hardcode_action= 14315if test -n "$hardcode_libdir_flag_spec" || 14316 test -n "$runpath_var" || 14317 test yes = "$hardcode_automatic"; then 14318 14319 # We can hardcode non-existent directories. 14320 if test no != "$hardcode_direct" && 14321 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14322 # have to relink, otherwise we might link with an installed library 14323 # when we should be linking with a yet-to-be-installed one 14324 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14325 test no != "$hardcode_minus_L"; then 14326 # Linking always hardcodes the temporary library directory. 14327 hardcode_action=relink 14328 else 14329 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14330 hardcode_action=immediate 14331 fi 14332else 14333 # We cannot hardcode anything, or else we can only hardcode existing 14334 # directories. 14335 hardcode_action=unsupported 14336fi 14337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14338$as_echo "$hardcode_action" >&6; } 14339 14340if test relink = "$hardcode_action" || 14341 test yes = "$inherit_rpath"; then 14342 # Fast installation is not supported 14343 enable_fast_install=no 14344elif test yes = "$shlibpath_overrides_runpath" || 14345 test no = "$enable_shared"; then 14346 # Fast installation is not necessary 14347 enable_fast_install=needless 14348fi 14349 14350 14351 14352 14353 14354 14355 if test yes != "$enable_dlopen"; then 14356 enable_dlopen=unknown 14357 enable_dlopen_self=unknown 14358 enable_dlopen_self_static=unknown 14359else 14360 lt_cv_dlopen=no 14361 lt_cv_dlopen_libs= 14362 14363 case $host_os in 14364 beos*) 14365 lt_cv_dlopen=load_add_on 14366 lt_cv_dlopen_libs= 14367 lt_cv_dlopen_self=yes 14368 ;; 14369 14370 mingw* | pw32* | cegcc*) 14371 lt_cv_dlopen=LoadLibrary 14372 lt_cv_dlopen_libs= 14373 ;; 14374 14375 cygwin*) 14376 lt_cv_dlopen=dlopen 14377 lt_cv_dlopen_libs= 14378 ;; 14379 14380 darwin*) 14381 # if libdl is installed we need to link against it 14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14383$as_echo_n "checking for dlopen in -ldl... " >&6; } 14384if ${ac_cv_lib_dl_dlopen+:} false; then : 14385 $as_echo_n "(cached) " >&6 14386else 14387 ac_check_lib_save_LIBS=$LIBS 14388LIBS="-ldl $LIBS" 14389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14390/* end confdefs.h. */ 14391 14392/* Override any GCC internal prototype to avoid an error. 14393 Use char because int might match the return type of a GCC 14394 builtin and then its argument prototype would still apply. */ 14395#ifdef __cplusplus 14396extern "C" 14397#endif 14398char dlopen (); 14399int 14400main () 14401{ 14402return dlopen (); 14403 ; 14404 return 0; 14405} 14406_ACEOF 14407if ac_fn_c_try_link "$LINENO"; then : 14408 ac_cv_lib_dl_dlopen=yes 14409else 14410 ac_cv_lib_dl_dlopen=no 14411fi 14412rm -f core conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext conftest.$ac_ext 14414LIBS=$ac_check_lib_save_LIBS 14415fi 14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14417$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14418if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14419 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14420else 14421 14422 lt_cv_dlopen=dyld 14423 lt_cv_dlopen_libs= 14424 lt_cv_dlopen_self=yes 14425 14426fi 14427 14428 ;; 14429 14430 tpf*) 14431 # Don't try to run any link tests for TPF. We know it's impossible 14432 # because TPF is a cross-compiler, and we know how we open DSOs. 14433 lt_cv_dlopen=dlopen 14434 lt_cv_dlopen_libs= 14435 lt_cv_dlopen_self=no 14436 ;; 14437 14438 *) 14439 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14440if test "x$ac_cv_func_shl_load" = xyes; then : 14441 lt_cv_dlopen=shl_load 14442else 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14444$as_echo_n "checking for shl_load in -ldld... " >&6; } 14445if ${ac_cv_lib_dld_shl_load+:} false; then : 14446 $as_echo_n "(cached) " >&6 14447else 14448 ac_check_lib_save_LIBS=$LIBS 14449LIBS="-ldld $LIBS" 14450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14451/* end confdefs.h. */ 14452 14453/* Override any GCC internal prototype to avoid an error. 14454 Use char because int might match the return type of a GCC 14455 builtin and then its argument prototype would still apply. */ 14456#ifdef __cplusplus 14457extern "C" 14458#endif 14459char shl_load (); 14460int 14461main () 14462{ 14463return shl_load (); 14464 ; 14465 return 0; 14466} 14467_ACEOF 14468if ac_fn_c_try_link "$LINENO"; then : 14469 ac_cv_lib_dld_shl_load=yes 14470else 14471 ac_cv_lib_dld_shl_load=no 14472fi 14473rm -f core conftest.err conftest.$ac_objext \ 14474 conftest$ac_exeext conftest.$ac_ext 14475LIBS=$ac_check_lib_save_LIBS 14476fi 14477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14478$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14479if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14480 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14481else 14482 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14483if test "x$ac_cv_func_dlopen" = xyes; then : 14484 lt_cv_dlopen=dlopen 14485else 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14487$as_echo_n "checking for dlopen in -ldl... " >&6; } 14488if ${ac_cv_lib_dl_dlopen+:} false; then : 14489 $as_echo_n "(cached) " >&6 14490else 14491 ac_check_lib_save_LIBS=$LIBS 14492LIBS="-ldl $LIBS" 14493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494/* end confdefs.h. */ 14495 14496/* Override any GCC internal prototype to avoid an error. 14497 Use char because int might match the return type of a GCC 14498 builtin and then its argument prototype would still apply. */ 14499#ifdef __cplusplus 14500extern "C" 14501#endif 14502char dlopen (); 14503int 14504main () 14505{ 14506return dlopen (); 14507 ; 14508 return 0; 14509} 14510_ACEOF 14511if ac_fn_c_try_link "$LINENO"; then : 14512 ac_cv_lib_dl_dlopen=yes 14513else 14514 ac_cv_lib_dl_dlopen=no 14515fi 14516rm -f core conftest.err conftest.$ac_objext \ 14517 conftest$ac_exeext conftest.$ac_ext 14518LIBS=$ac_check_lib_save_LIBS 14519fi 14520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14521$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14522if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14523 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14524else 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14526$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14527if ${ac_cv_lib_svld_dlopen+:} false; then : 14528 $as_echo_n "(cached) " >&6 14529else 14530 ac_check_lib_save_LIBS=$LIBS 14531LIBS="-lsvld $LIBS" 14532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14533/* end confdefs.h. */ 14534 14535/* Override any GCC internal prototype to avoid an error. 14536 Use char because int might match the return type of a GCC 14537 builtin and then its argument prototype would still apply. */ 14538#ifdef __cplusplus 14539extern "C" 14540#endif 14541char dlopen (); 14542int 14543main () 14544{ 14545return dlopen (); 14546 ; 14547 return 0; 14548} 14549_ACEOF 14550if ac_fn_c_try_link "$LINENO"; then : 14551 ac_cv_lib_svld_dlopen=yes 14552else 14553 ac_cv_lib_svld_dlopen=no 14554fi 14555rm -f core conftest.err conftest.$ac_objext \ 14556 conftest$ac_exeext conftest.$ac_ext 14557LIBS=$ac_check_lib_save_LIBS 14558fi 14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14560$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14561if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14562 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14563else 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14565$as_echo_n "checking for dld_link in -ldld... " >&6; } 14566if ${ac_cv_lib_dld_dld_link+:} false; then : 14567 $as_echo_n "(cached) " >&6 14568else 14569 ac_check_lib_save_LIBS=$LIBS 14570LIBS="-ldld $LIBS" 14571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14572/* end confdefs.h. */ 14573 14574/* Override any GCC internal prototype to avoid an error. 14575 Use char because int might match the return type of a GCC 14576 builtin and then its argument prototype would still apply. */ 14577#ifdef __cplusplus 14578extern "C" 14579#endif 14580char dld_link (); 14581int 14582main () 14583{ 14584return dld_link (); 14585 ; 14586 return 0; 14587} 14588_ACEOF 14589if ac_fn_c_try_link "$LINENO"; then : 14590 ac_cv_lib_dld_dld_link=yes 14591else 14592 ac_cv_lib_dld_dld_link=no 14593fi 14594rm -f core conftest.err conftest.$ac_objext \ 14595 conftest$ac_exeext conftest.$ac_ext 14596LIBS=$ac_check_lib_save_LIBS 14597fi 14598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14599$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14600if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14601 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14602fi 14603 14604 14605fi 14606 14607 14608fi 14609 14610 14611fi 14612 14613 14614fi 14615 14616 14617fi 14618 14619 ;; 14620 esac 14621 14622 if test no = "$lt_cv_dlopen"; then 14623 enable_dlopen=no 14624 else 14625 enable_dlopen=yes 14626 fi 14627 14628 case $lt_cv_dlopen in 14629 dlopen) 14630 save_CPPFLAGS=$CPPFLAGS 14631 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14632 14633 save_LDFLAGS=$LDFLAGS 14634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14635 14636 save_LIBS=$LIBS 14637 LIBS="$lt_cv_dlopen_libs $LIBS" 14638 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14640$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14641if ${lt_cv_dlopen_self+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 if test yes = "$cross_compiling"; then : 14645 lt_cv_dlopen_self=cross 14646else 14647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14648 lt_status=$lt_dlunknown 14649 cat > conftest.$ac_ext <<_LT_EOF 14650#line $LINENO "configure" 14651#include "confdefs.h" 14652 14653#if HAVE_DLFCN_H 14654#include <dlfcn.h> 14655#endif 14656 14657#include <stdio.h> 14658 14659#ifdef RTLD_GLOBAL 14660# define LT_DLGLOBAL RTLD_GLOBAL 14661#else 14662# ifdef DL_GLOBAL 14663# define LT_DLGLOBAL DL_GLOBAL 14664# else 14665# define LT_DLGLOBAL 0 14666# endif 14667#endif 14668 14669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14670 find out it does not work in some platform. */ 14671#ifndef LT_DLLAZY_OR_NOW 14672# ifdef RTLD_LAZY 14673# define LT_DLLAZY_OR_NOW RTLD_LAZY 14674# else 14675# ifdef DL_LAZY 14676# define LT_DLLAZY_OR_NOW DL_LAZY 14677# else 14678# ifdef RTLD_NOW 14679# define LT_DLLAZY_OR_NOW RTLD_NOW 14680# else 14681# ifdef DL_NOW 14682# define LT_DLLAZY_OR_NOW DL_NOW 14683# else 14684# define LT_DLLAZY_OR_NOW 0 14685# endif 14686# endif 14687# endif 14688# endif 14689#endif 14690 14691/* When -fvisibility=hidden is used, assume the code has been annotated 14692 correspondingly for the symbols needed. */ 14693#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14694int fnord () __attribute__((visibility("default"))); 14695#endif 14696 14697int fnord () { return 42; } 14698int main () 14699{ 14700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14701 int status = $lt_dlunknown; 14702 14703 if (self) 14704 { 14705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14706 else 14707 { 14708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14709 else puts (dlerror ()); 14710 } 14711 /* dlclose (self); */ 14712 } 14713 else 14714 puts (dlerror ()); 14715 14716 return status; 14717} 14718_LT_EOF 14719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14720 (eval $ac_link) 2>&5 14721 ac_status=$? 14722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14723 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14724 (./conftest; exit; ) >&5 2>/dev/null 14725 lt_status=$? 14726 case x$lt_status in 14727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14729 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14730 esac 14731 else : 14732 # compilation failed 14733 lt_cv_dlopen_self=no 14734 fi 14735fi 14736rm -fr conftest* 14737 14738 14739fi 14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14741$as_echo "$lt_cv_dlopen_self" >&6; } 14742 14743 if test yes = "$lt_cv_dlopen_self"; then 14744 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14746$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14747if ${lt_cv_dlopen_self_static+:} false; then : 14748 $as_echo_n "(cached) " >&6 14749else 14750 if test yes = "$cross_compiling"; then : 14751 lt_cv_dlopen_self_static=cross 14752else 14753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14754 lt_status=$lt_dlunknown 14755 cat > conftest.$ac_ext <<_LT_EOF 14756#line $LINENO "configure" 14757#include "confdefs.h" 14758 14759#if HAVE_DLFCN_H 14760#include <dlfcn.h> 14761#endif 14762 14763#include <stdio.h> 14764 14765#ifdef RTLD_GLOBAL 14766# define LT_DLGLOBAL RTLD_GLOBAL 14767#else 14768# ifdef DL_GLOBAL 14769# define LT_DLGLOBAL DL_GLOBAL 14770# else 14771# define LT_DLGLOBAL 0 14772# endif 14773#endif 14774 14775/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14776 find out it does not work in some platform. */ 14777#ifndef LT_DLLAZY_OR_NOW 14778# ifdef RTLD_LAZY 14779# define LT_DLLAZY_OR_NOW RTLD_LAZY 14780# else 14781# ifdef DL_LAZY 14782# define LT_DLLAZY_OR_NOW DL_LAZY 14783# else 14784# ifdef RTLD_NOW 14785# define LT_DLLAZY_OR_NOW RTLD_NOW 14786# else 14787# ifdef DL_NOW 14788# define LT_DLLAZY_OR_NOW DL_NOW 14789# else 14790# define LT_DLLAZY_OR_NOW 0 14791# endif 14792# endif 14793# endif 14794# endif 14795#endif 14796 14797/* When -fvisibility=hidden is used, assume the code has been annotated 14798 correspondingly for the symbols needed. */ 14799#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14800int fnord () __attribute__((visibility("default"))); 14801#endif 14802 14803int fnord () { return 42; } 14804int main () 14805{ 14806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14807 int status = $lt_dlunknown; 14808 14809 if (self) 14810 { 14811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14812 else 14813 { 14814 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14815 else puts (dlerror ()); 14816 } 14817 /* dlclose (self); */ 14818 } 14819 else 14820 puts (dlerror ()); 14821 14822 return status; 14823} 14824_LT_EOF 14825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14826 (eval $ac_link) 2>&5 14827 ac_status=$? 14828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14829 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14830 (./conftest; exit; ) >&5 2>/dev/null 14831 lt_status=$? 14832 case x$lt_status in 14833 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14834 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14835 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14836 esac 14837 else : 14838 # compilation failed 14839 lt_cv_dlopen_self_static=no 14840 fi 14841fi 14842rm -fr conftest* 14843 14844 14845fi 14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14847$as_echo "$lt_cv_dlopen_self_static" >&6; } 14848 fi 14849 14850 CPPFLAGS=$save_CPPFLAGS 14851 LDFLAGS=$save_LDFLAGS 14852 LIBS=$save_LIBS 14853 ;; 14854 esac 14855 14856 case $lt_cv_dlopen_self in 14857 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14858 *) enable_dlopen_self=unknown ;; 14859 esac 14860 14861 case $lt_cv_dlopen_self_static in 14862 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14863 *) enable_dlopen_self_static=unknown ;; 14864 esac 14865fi 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883striplib= 14884old_striplib= 14885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14886$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14887if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14888 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14889 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14891$as_echo "yes" >&6; } 14892else 14893# FIXME - insert some real tests, host_os isn't really good enough 14894 case $host_os in 14895 darwin*) 14896 if test -n "$STRIP"; then 14897 striplib="$STRIP -x" 14898 old_striplib="$STRIP -S" 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14900$as_echo "yes" >&6; } 14901 else 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14903$as_echo "no" >&6; } 14904 fi 14905 ;; 14906 *) 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14908$as_echo "no" >&6; } 14909 ;; 14910 esac 14911fi 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 # Report what library types will actually be built 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14926$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14928$as_echo "$can_build_shared" >&6; } 14929 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14931$as_echo_n "checking whether to build shared libraries... " >&6; } 14932 test no = "$can_build_shared" && enable_shared=no 14933 14934 # On AIX, shared libraries and static libraries use the same namespace, and 14935 # are all built from PIC. 14936 case $host_os in 14937 aix3*) 14938 test yes = "$enable_shared" && enable_static=no 14939 if test -n "$RANLIB"; then 14940 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14941 postinstall_cmds='$RANLIB $lib' 14942 fi 14943 ;; 14944 14945 aix[4-9]*) 14946 if test ia64 != "$host_cpu"; then 14947 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14948 yes,aix,yes) ;; # shared object as lib.so file only 14949 yes,svr4,*) ;; # shared object as lib.so archive member only 14950 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14951 esac 14952 fi 14953 ;; 14954 esac 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14956$as_echo "$enable_shared" >&6; } 14957 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14959$as_echo_n "checking whether to build static libraries... " >&6; } 14960 # Make sure either enable_shared or enable_static is yes. 14961 test yes = "$enable_shared" || enable_static=yes 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14963$as_echo "$enable_static" >&6; } 14964 14965 14966 14967 14968fi 14969ac_ext=cpp 14970ac_cpp='$CXXCPP $CPPFLAGS' 14971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14974 14975CC=$lt_save_CC 14976 14977 if test -n "$CXX" && ( test no != "$CXX" && 14978 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 14979 (test g++ != "$CXX"))); then 14980 ac_ext=cpp 14981ac_cpp='$CXXCPP $CPPFLAGS' 14982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14986$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14987if test -z "$CXXCPP"; then 14988 if ${ac_cv_prog_CXXCPP+:} false; then : 14989 $as_echo_n "(cached) " >&6 14990else 14991 # Double quotes because CXXCPP needs to be expanded 14992 for CXXCPP in "$CXX -E" "/lib/cpp" 14993 do 14994 ac_preproc_ok=false 14995for ac_cxx_preproc_warn_flag in '' yes 14996do 14997 # Use a header file that comes with gcc, so configuring glibc 14998 # with a fresh cross-compiler works. 14999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15000 # <limits.h> exists even on freestanding compilers. 15001 # On the NeXT, cc -E runs the code through the compiler's parser, 15002 # not just through cpp. "Syntax error" is here to catch this case. 15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004/* end confdefs.h. */ 15005#ifdef __STDC__ 15006# include <limits.h> 15007#else 15008# include <assert.h> 15009#endif 15010 Syntax error 15011_ACEOF 15012if ac_fn_cxx_try_cpp "$LINENO"; then : 15013 15014else 15015 # Broken: fails on valid input. 15016continue 15017fi 15018rm -f conftest.err conftest.i conftest.$ac_ext 15019 15020 # OK, works on sane cases. Now check whether nonexistent headers 15021 # can be detected and how. 15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15023/* end confdefs.h. */ 15024#include <ac_nonexistent.h> 15025_ACEOF 15026if ac_fn_cxx_try_cpp "$LINENO"; then : 15027 # Broken: success on invalid input. 15028continue 15029else 15030 # Passes both tests. 15031ac_preproc_ok=: 15032break 15033fi 15034rm -f conftest.err conftest.i conftest.$ac_ext 15035 15036done 15037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15038rm -f conftest.i conftest.err conftest.$ac_ext 15039if $ac_preproc_ok; then : 15040 break 15041fi 15042 15043 done 15044 ac_cv_prog_CXXCPP=$CXXCPP 15045 15046fi 15047 CXXCPP=$ac_cv_prog_CXXCPP 15048else 15049 ac_cv_prog_CXXCPP=$CXXCPP 15050fi 15051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15052$as_echo "$CXXCPP" >&6; } 15053ac_preproc_ok=false 15054for ac_cxx_preproc_warn_flag in '' yes 15055do 15056 # Use a header file that comes with gcc, so configuring glibc 15057 # with a fresh cross-compiler works. 15058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15059 # <limits.h> exists even on freestanding compilers. 15060 # On the NeXT, cc -E runs the code through the compiler's parser, 15061 # not just through cpp. "Syntax error" is here to catch this case. 15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15063/* end confdefs.h. */ 15064#ifdef __STDC__ 15065# include <limits.h> 15066#else 15067# include <assert.h> 15068#endif 15069 Syntax error 15070_ACEOF 15071if ac_fn_cxx_try_cpp "$LINENO"; then : 15072 15073else 15074 # Broken: fails on valid input. 15075continue 15076fi 15077rm -f conftest.err conftest.i conftest.$ac_ext 15078 15079 # OK, works on sane cases. Now check whether nonexistent headers 15080 # can be detected and how. 15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15082/* end confdefs.h. */ 15083#include <ac_nonexistent.h> 15084_ACEOF 15085if ac_fn_cxx_try_cpp "$LINENO"; then : 15086 # Broken: success on invalid input. 15087continue 15088else 15089 # Passes both tests. 15090ac_preproc_ok=: 15091break 15092fi 15093rm -f conftest.err conftest.i conftest.$ac_ext 15094 15095done 15096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15097rm -f conftest.i conftest.err conftest.$ac_ext 15098if $ac_preproc_ok; then : 15099 15100else 15101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15103as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15104See \`config.log' for more details" "$LINENO" 5; } 15105fi 15106 15107ac_ext=cpp 15108ac_cpp='$CXXCPP $CPPFLAGS' 15109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15112 15113else 15114 _lt_caught_CXX_error=yes 15115fi 15116 15117ac_ext=cpp 15118ac_cpp='$CXXCPP $CPPFLAGS' 15119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15122 15123archive_cmds_need_lc_CXX=no 15124allow_undefined_flag_CXX= 15125always_export_symbols_CXX=no 15126archive_expsym_cmds_CXX= 15127compiler_needs_object_CXX=no 15128export_dynamic_flag_spec_CXX= 15129hardcode_direct_CXX=no 15130hardcode_direct_absolute_CXX=no 15131hardcode_libdir_flag_spec_CXX= 15132hardcode_libdir_separator_CXX= 15133hardcode_minus_L_CXX=no 15134hardcode_shlibpath_var_CXX=unsupported 15135hardcode_automatic_CXX=no 15136inherit_rpath_CXX=no 15137module_cmds_CXX= 15138module_expsym_cmds_CXX= 15139link_all_deplibs_CXX=unknown 15140old_archive_cmds_CXX=$old_archive_cmds 15141reload_flag_CXX=$reload_flag 15142reload_cmds_CXX=$reload_cmds 15143no_undefined_flag_CXX= 15144whole_archive_flag_spec_CXX= 15145enable_shared_with_static_runtimes_CXX=no 15146 15147# Source file extension for C++ test sources. 15148ac_ext=cpp 15149 15150# Object file extension for compiled C++ test sources. 15151objext=o 15152objext_CXX=$objext 15153 15154# No sense in running all these tests if we already determined that 15155# the CXX compiler isn't working. Some variables (like enable_shared) 15156# are currently assumed to apply to all compilers on this platform, 15157# and will be corrupted by setting them based on a non-working compiler. 15158if test yes != "$_lt_caught_CXX_error"; then 15159 # Code to be used in simple compile tests 15160 lt_simple_compile_test_code="int some_variable = 0;" 15161 15162 # Code to be used in simple link tests 15163 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15164 15165 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15166 15167 15168 15169 15170 15171 15172# If no C compiler was specified, use CC. 15173LTCC=${LTCC-"$CC"} 15174 15175# If no C compiler flags were specified, use CFLAGS. 15176LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15177 15178# Allow CC to be a program name with arguments. 15179compiler=$CC 15180 15181 15182 # save warnings/boilerplate of simple test code 15183 ac_outfile=conftest.$ac_objext 15184echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15186_lt_compiler_boilerplate=`cat conftest.err` 15187$RM conftest* 15188 15189 ac_outfile=conftest.$ac_objext 15190echo "$lt_simple_link_test_code" >conftest.$ac_ext 15191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15192_lt_linker_boilerplate=`cat conftest.err` 15193$RM -r conftest* 15194 15195 15196 # Allow CC to be a program name with arguments. 15197 lt_save_CC=$CC 15198 lt_save_CFLAGS=$CFLAGS 15199 lt_save_LD=$LD 15200 lt_save_GCC=$GCC 15201 GCC=$GXX 15202 lt_save_with_gnu_ld=$with_gnu_ld 15203 lt_save_path_LD=$lt_cv_path_LD 15204 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15205 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15206 else 15207 $as_unset lt_cv_prog_gnu_ld 15208 fi 15209 if test -n "${lt_cv_path_LDCXX+set}"; then 15210 lt_cv_path_LD=$lt_cv_path_LDCXX 15211 else 15212 $as_unset lt_cv_path_LD 15213 fi 15214 test -z "${LDCXX+set}" || LD=$LDCXX 15215 CC=${CXX-"c++"} 15216 CFLAGS=$CXXFLAGS 15217 compiler=$CC 15218 compiler_CXX=$CC 15219 func_cc_basename $compiler 15220cc_basename=$func_cc_basename_result 15221 15222 15223 if test -n "$compiler"; then 15224 # We don't want -fno-exception when compiling C++ code, so set the 15225 # no_builtin_flag separately 15226 if test yes = "$GXX"; then 15227 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15228 else 15229 lt_prog_compiler_no_builtin_flag_CXX= 15230 fi 15231 15232 if test yes = "$GXX"; then 15233 # Set up default GNU C++ configuration 15234 15235 15236 15237# Check whether --with-gnu-ld was given. 15238if test "${with_gnu_ld+set}" = set; then : 15239 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15240else 15241 with_gnu_ld=no 15242fi 15243 15244ac_prog=ld 15245if test yes = "$GCC"; then 15246 # Check if gcc -print-prog-name=ld gives a path. 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15248$as_echo_n "checking for ld used by $CC... " >&6; } 15249 case $host in 15250 *-*-mingw*) 15251 # gcc leaves a trailing carriage return, which upsets mingw 15252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15253 *) 15254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15255 esac 15256 case $ac_prog in 15257 # Accept absolute paths. 15258 [\\/]* | ?:[\\/]*) 15259 re_direlt='/[^/][^/]*/\.\./' 15260 # Canonicalize the pathname of ld 15261 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15262 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15263 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15264 done 15265 test -z "$LD" && LD=$ac_prog 15266 ;; 15267 "") 15268 # If it fails, then pretend we aren't using GCC. 15269 ac_prog=ld 15270 ;; 15271 *) 15272 # If it is relative, then search for the first ld in PATH. 15273 with_gnu_ld=unknown 15274 ;; 15275 esac 15276elif test yes = "$with_gnu_ld"; then 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15278$as_echo_n "checking for GNU ld... " >&6; } 15279else 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15281$as_echo_n "checking for non-GNU ld... " >&6; } 15282fi 15283if ${lt_cv_path_LD+:} false; then : 15284 $as_echo_n "(cached) " >&6 15285else 15286 if test -z "$LD"; then 15287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15288 for ac_dir in $PATH; do 15289 IFS=$lt_save_ifs 15290 test -z "$ac_dir" && ac_dir=. 15291 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15292 lt_cv_path_LD=$ac_dir/$ac_prog 15293 # Check to see if the program is GNU ld. I'd rather use --version, 15294 # but apparently some variants of GNU ld only accept -v. 15295 # Break only if it was the GNU/non-GNU ld that we prefer. 15296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15297 *GNU* | *'with BFD'*) 15298 test no != "$with_gnu_ld" && break 15299 ;; 15300 *) 15301 test yes != "$with_gnu_ld" && break 15302 ;; 15303 esac 15304 fi 15305 done 15306 IFS=$lt_save_ifs 15307else 15308 lt_cv_path_LD=$LD # Let the user override the test with a path. 15309fi 15310fi 15311 15312LD=$lt_cv_path_LD 15313if test -n "$LD"; then 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15315$as_echo "$LD" >&6; } 15316else 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15318$as_echo "no" >&6; } 15319fi 15320test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15322$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15323if ${lt_cv_prog_gnu_ld+:} false; then : 15324 $as_echo_n "(cached) " >&6 15325else 15326 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15327case `$LD -v 2>&1 </dev/null` in 15328*GNU* | *'with BFD'*) 15329 lt_cv_prog_gnu_ld=yes 15330 ;; 15331*) 15332 lt_cv_prog_gnu_ld=no 15333 ;; 15334esac 15335fi 15336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15337$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15338with_gnu_ld=$lt_cv_prog_gnu_ld 15339 15340 15341 15342 15343 15344 15345 15346 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15347 # archiving commands below assume that GNU ld is being used. 15348 if test yes = "$with_gnu_ld"; then 15349 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15350 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' 15351 15352 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15353 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15354 15355 # If archive_cmds runs LD, not CC, wlarc should be empty 15356 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15357 # investigate it a little bit more. (MM) 15358 wlarc='$wl' 15359 15360 # ancient GNU ld didn't support --whole-archive et. al. 15361 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15362 $GREP 'no-whole-archive' > /dev/null; then 15363 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15364 else 15365 whole_archive_flag_spec_CXX= 15366 fi 15367 else 15368 with_gnu_ld=no 15369 wlarc= 15370 15371 # A generic and very simple default shared library creation 15372 # command for GNU C++ for the case where it uses the native 15373 # linker, instead of GNU ld. If possible, this setting should 15374 # overridden to take advantage of the native linker features on 15375 # the platform it is being used on. 15376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15377 fi 15378 15379 # Commands to make compiler produce verbose output that lists 15380 # what "hidden" libraries, object files and flags are used when 15381 # linking a shared library. 15382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15383 15384 else 15385 GXX=no 15386 with_gnu_ld=no 15387 wlarc= 15388 fi 15389 15390 # PORTME: fill in a description of your system's C++ link characteristics 15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15392$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15393 ld_shlibs_CXX=yes 15394 case $host_os in 15395 aix3*) 15396 # FIXME: insert proper C++ library support 15397 ld_shlibs_CXX=no 15398 ;; 15399 aix[4-9]*) 15400 if test ia64 = "$host_cpu"; then 15401 # On IA64, the linker does run time linking by default, so we don't 15402 # have to do anything special. 15403 aix_use_runtimelinking=no 15404 exp_sym_flag='-Bexport' 15405 no_entry_flag= 15406 else 15407 aix_use_runtimelinking=no 15408 15409 # Test if we are trying to use run time linking or normal 15410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15411 # have runtime linking enabled, and use it for executables. 15412 # For shared libraries, we enable/disable runtime linking 15413 # depending on the kind of the shared library created - 15414 # when "with_aix_soname,aix_use_runtimelinking" is: 15415 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15416 # "aix,yes" lib.so shared, rtl:yes, for executables 15417 # lib.a static archive 15418 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15419 # lib.a(lib.so.V) shared, rtl:no, for executables 15420 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15421 # lib.a(lib.so.V) shared, rtl:no 15422 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15423 # lib.a static archive 15424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15425 for ld_flag in $LDFLAGS; do 15426 case $ld_flag in 15427 *-brtl*) 15428 aix_use_runtimelinking=yes 15429 break 15430 ;; 15431 esac 15432 done 15433 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15434 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15435 # so we don't have lib.a shared libs to link our executables. 15436 # We have to force runtime linking in this case. 15437 aix_use_runtimelinking=yes 15438 LDFLAGS="$LDFLAGS -Wl,-brtl" 15439 fi 15440 ;; 15441 esac 15442 15443 exp_sym_flag='-bexport' 15444 no_entry_flag='-bnoentry' 15445 fi 15446 15447 # When large executables or shared objects are built, AIX ld can 15448 # have problems creating the table of contents. If linking a library 15449 # or program results in "error TOC overflow" add -mminimal-toc to 15450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15452 15453 archive_cmds_CXX='' 15454 hardcode_direct_CXX=yes 15455 hardcode_direct_absolute_CXX=yes 15456 hardcode_libdir_separator_CXX=':' 15457 link_all_deplibs_CXX=yes 15458 file_list_spec_CXX='$wl-f,' 15459 case $with_aix_soname,$aix_use_runtimelinking in 15460 aix,*) ;; # no import file 15461 svr4,* | *,yes) # use import file 15462 # The Import File defines what to hardcode. 15463 hardcode_direct_CXX=no 15464 hardcode_direct_absolute_CXX=no 15465 ;; 15466 esac 15467 15468 if test yes = "$GXX"; then 15469 case $host_os in aix4.[012]|aix4.[012].*) 15470 # We only want to do this on AIX 4.2 and lower, the check 15471 # below for broken collect2 doesn't work under 4.3+ 15472 collect2name=`$CC -print-prog-name=collect2` 15473 if test -f "$collect2name" && 15474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15475 then 15476 # We have reworked collect2 15477 : 15478 else 15479 # We have old collect2 15480 hardcode_direct_CXX=unsupported 15481 # It fails to find uninstalled libraries when the uninstalled 15482 # path is not listed in the libpath. Setting hardcode_minus_L 15483 # to unsupported forces relinking 15484 hardcode_minus_L_CXX=yes 15485 hardcode_libdir_flag_spec_CXX='-L$libdir' 15486 hardcode_libdir_separator_CXX= 15487 fi 15488 esac 15489 shared_flag='-shared' 15490 if test yes = "$aix_use_runtimelinking"; then 15491 shared_flag=$shared_flag' $wl-G' 15492 fi 15493 # Need to ensure runtime linking is disabled for the traditional 15494 # shared library, or the linker may eventually find shared libraries 15495 # /with/ Import File - we do not want to mix them. 15496 shared_flag_aix='-shared' 15497 shared_flag_svr4='-shared $wl-G' 15498 else 15499 # not using gcc 15500 if test ia64 = "$host_cpu"; then 15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15502 # chokes on -Wl,-G. The following line is correct: 15503 shared_flag='-G' 15504 else 15505 if test yes = "$aix_use_runtimelinking"; then 15506 shared_flag='$wl-G' 15507 else 15508 shared_flag='$wl-bM:SRE' 15509 fi 15510 shared_flag_aix='$wl-bM:SRE' 15511 shared_flag_svr4='$wl-G' 15512 fi 15513 fi 15514 15515 export_dynamic_flag_spec_CXX='$wl-bexpall' 15516 # It seems that -bexpall does not export symbols beginning with 15517 # underscore (_), so it is better to generate a list of symbols to 15518 # export. 15519 always_export_symbols_CXX=yes 15520 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15521 # Warning - without using the other runtime loading flags (-brtl), 15522 # -berok will link without error, but may produce a broken library. 15523 # The "-G" linker flag allows undefined symbols. 15524 no_undefined_flag_CXX='-bernotok' 15525 # Determine the default libpath from the value encoded in an empty 15526 # executable. 15527 if test set = "${lt_cv_aix_libpath+set}"; then 15528 aix_libpath=$lt_cv_aix_libpath 15529else 15530 if ${lt_cv_aix_libpath__CXX+:} false; then : 15531 $as_echo_n "(cached) " >&6 15532else 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535 15536int 15537main () 15538{ 15539 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_cxx_try_link "$LINENO"; then : 15545 15546 lt_aix_libpath_sed=' 15547 /Import File Strings/,/^$/ { 15548 /^0/ { 15549 s/^0 *\([^ ]*\) *$/\1/ 15550 p 15551 } 15552 }' 15553 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15554 # Check for a 64-bit object if we didn't find anything. 15555 if test -z "$lt_cv_aix_libpath__CXX"; then 15556 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15557 fi 15558fi 15559rm -f core conftest.err conftest.$ac_objext \ 15560 conftest$ac_exeext conftest.$ac_ext 15561 if test -z "$lt_cv_aix_libpath__CXX"; then 15562 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15563 fi 15564 15565fi 15566 15567 aix_libpath=$lt_cv_aix_libpath__CXX 15568fi 15569 15570 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15571 15572 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 15573 else 15574 if test ia64 = "$host_cpu"; then 15575 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 15576 allow_undefined_flag_CXX="-z nodefs" 15577 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" 15578 else 15579 # Determine the default libpath from the value encoded in an 15580 # empty executable. 15581 if test set = "${lt_cv_aix_libpath+set}"; then 15582 aix_libpath=$lt_cv_aix_libpath 15583else 15584 if ${lt_cv_aix_libpath__CXX+:} false; then : 15585 $as_echo_n "(cached) " >&6 15586else 15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15588/* end confdefs.h. */ 15589 15590int 15591main () 15592{ 15593 15594 ; 15595 return 0; 15596} 15597_ACEOF 15598if ac_fn_cxx_try_link "$LINENO"; then : 15599 15600 lt_aix_libpath_sed=' 15601 /Import File Strings/,/^$/ { 15602 /^0/ { 15603 s/^0 *\([^ ]*\) *$/\1/ 15604 p 15605 } 15606 }' 15607 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15608 # Check for a 64-bit object if we didn't find anything. 15609 if test -z "$lt_cv_aix_libpath__CXX"; then 15610 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15611 fi 15612fi 15613rm -f core conftest.err conftest.$ac_objext \ 15614 conftest$ac_exeext conftest.$ac_ext 15615 if test -z "$lt_cv_aix_libpath__CXX"; then 15616 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15617 fi 15618 15619fi 15620 15621 aix_libpath=$lt_cv_aix_libpath__CXX 15622fi 15623 15624 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15625 # Warning - without using the other run time loading flags, 15626 # -berok will link without error, but may produce a broken library. 15627 no_undefined_flag_CXX=' $wl-bernotok' 15628 allow_undefined_flag_CXX=' $wl-berok' 15629 if test yes = "$with_gnu_ld"; then 15630 # We only use this code for GNU lds that support --whole-archive. 15631 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15632 else 15633 # Exported symbols can be pulled into shared objects from archives 15634 whole_archive_flag_spec_CXX='$convenience' 15635 fi 15636 archive_cmds_need_lc_CXX=yes 15637 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15638 # -brtl affects multiple linker settings, -berok does not and is overridden later 15639 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15640 if test svr4 != "$with_aix_soname"; then 15641 # This is similar to how AIX traditionally builds its shared 15642 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15643 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' 15644 fi 15645 if test aix != "$with_aix_soname"; then 15646 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' 15647 else 15648 # used by -dlpreopen to get the symbols 15649 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15650 fi 15651 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15652 fi 15653 fi 15654 ;; 15655 15656 beos*) 15657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15658 allow_undefined_flag_CXX=unsupported 15659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15660 # support --undefined. This deserves some investigation. FIXME 15661 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15662 else 15663 ld_shlibs_CXX=no 15664 fi 15665 ;; 15666 15667 chorus*) 15668 case $cc_basename in 15669 *) 15670 # FIXME: insert proper C++ library support 15671 ld_shlibs_CXX=no 15672 ;; 15673 esac 15674 ;; 15675 15676 cygwin* | mingw* | pw32* | cegcc*) 15677 case $GXX,$cc_basename in 15678 ,cl* | no,cl*) 15679 # Native MSVC 15680 # hardcode_libdir_flag_spec is actually meaningless, as there is 15681 # no search path for DLLs. 15682 hardcode_libdir_flag_spec_CXX=' ' 15683 allow_undefined_flag_CXX=unsupported 15684 always_export_symbols_CXX=yes 15685 file_list_spec_CXX='@' 15686 # Tell ltmain to make .lib files, not .a files. 15687 libext=lib 15688 # Tell ltmain to make .dll files, not .so files. 15689 shrext_cmds=.dll 15690 # FIXME: Setting linknames here is a bad hack. 15691 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15692 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15693 cp "$export_symbols" "$output_objdir/$soname.def"; 15694 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15695 else 15696 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15697 fi~ 15698 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15699 linknames=' 15700 # The linker will not automatically build a static lib if we build a DLL. 15701 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15702 enable_shared_with_static_runtimes_CXX=yes 15703 # Don't use ranlib 15704 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15705 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15706 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15707 case $lt_outputfile in 15708 *.exe|*.EXE) ;; 15709 *) 15710 lt_outputfile=$lt_outputfile.exe 15711 lt_tool_outputfile=$lt_tool_outputfile.exe 15712 ;; 15713 esac~ 15714 func_to_tool_file "$lt_outputfile"~ 15715 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15716 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15717 $RM "$lt_outputfile.manifest"; 15718 fi' 15719 ;; 15720 *) 15721 # g++ 15722 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15723 # as there is no search path for DLLs. 15724 hardcode_libdir_flag_spec_CXX='-L$libdir' 15725 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15726 allow_undefined_flag_CXX=unsupported 15727 always_export_symbols_CXX=no 15728 enable_shared_with_static_runtimes_CXX=yes 15729 15730 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15731 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' 15732 # If the export-symbols file already is a .def file, use it as 15733 # is; otherwise, prepend EXPORTS... 15734 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15735 cp $export_symbols $output_objdir/$soname.def; 15736 else 15737 echo EXPORTS > $output_objdir/$soname.def; 15738 cat $export_symbols >> $output_objdir/$soname.def; 15739 fi~ 15740 $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' 15741 else 15742 ld_shlibs_CXX=no 15743 fi 15744 ;; 15745 esac 15746 ;; 15747 darwin* | rhapsody*) 15748 15749 15750 archive_cmds_need_lc_CXX=no 15751 hardcode_direct_CXX=no 15752 hardcode_automatic_CXX=yes 15753 hardcode_shlibpath_var_CXX=unsupported 15754 if test yes = "$lt_cv_ld_force_load"; then 15755 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\"`' 15756 15757 else 15758 whole_archive_flag_spec_CXX='' 15759 fi 15760 link_all_deplibs_CXX=yes 15761 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15762 case $cc_basename in 15763 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15764 *) _lt_dar_can_shared=$GCC ;; 15765 esac 15766 if test yes = "$_lt_dar_can_shared"; then 15767 output_verbose_link_cmd=func_echo_all 15768 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" 15769 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15770 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" 15771 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" 15772 if test yes != "$lt_cv_apple_cc_single_mod"; then 15773 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" 15774 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" 15775 fi 15776 15777 else 15778 ld_shlibs_CXX=no 15779 fi 15780 15781 ;; 15782 15783 os2*) 15784 hardcode_libdir_flag_spec_CXX='-L$libdir' 15785 hardcode_minus_L_CXX=yes 15786 allow_undefined_flag_CXX=unsupported 15787 shrext_cmds=.dll 15788 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15789 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15790 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15791 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15792 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15793 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15794 emximp -o $lib $output_objdir/$libname.def' 15795 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15796 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15797 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15798 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15799 prefix_cmds="$SED"~ 15800 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15801 prefix_cmds="$prefix_cmds -e 1d"; 15802 fi~ 15803 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15804 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15805 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15806 emximp -o $lib $output_objdir/$libname.def' 15807 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15808 enable_shared_with_static_runtimes_CXX=yes 15809 ;; 15810 15811 dgux*) 15812 case $cc_basename in 15813 ec++*) 15814 # FIXME: insert proper C++ library support 15815 ld_shlibs_CXX=no 15816 ;; 15817 ghcx*) 15818 # Green Hills C++ Compiler 15819 # FIXME: insert proper C++ library support 15820 ld_shlibs_CXX=no 15821 ;; 15822 *) 15823 # FIXME: insert proper C++ library support 15824 ld_shlibs_CXX=no 15825 ;; 15826 esac 15827 ;; 15828 15829 freebsd2.*) 15830 # C++ shared libraries reported to be fairly broken before 15831 # switch to ELF 15832 ld_shlibs_CXX=no 15833 ;; 15834 15835 freebsd-elf*) 15836 archive_cmds_need_lc_CXX=no 15837 ;; 15838 15839 freebsd* | dragonfly*) 15840 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15841 # conventions 15842 ld_shlibs_CXX=yes 15843 ;; 15844 15845 haiku*) 15846 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15847 link_all_deplibs_CXX=yes 15848 ;; 15849 15850 hpux9*) 15851 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15852 hardcode_libdir_separator_CXX=: 15853 export_dynamic_flag_spec_CXX='$wl-E' 15854 hardcode_direct_CXX=yes 15855 hardcode_minus_L_CXX=yes # Not in the search PATH, 15856 # but as the default 15857 # location of the library. 15858 15859 case $cc_basename in 15860 CC*) 15861 # FIXME: insert proper C++ library support 15862 ld_shlibs_CXX=no 15863 ;; 15864 aCC*) 15865 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' 15866 # Commands to make compiler produce verbose output that lists 15867 # what "hidden" libraries, object files and flags are used when 15868 # linking a shared library. 15869 # 15870 # There doesn't appear to be a way to prevent this compiler from 15871 # explicitly linking system object files so we need to strip them 15872 # from the output so that they don't get included in the library 15873 # dependencies. 15874 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"' 15875 ;; 15876 *) 15877 if test yes = "$GXX"; then 15878 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' 15879 else 15880 # FIXME: insert proper C++ library support 15881 ld_shlibs_CXX=no 15882 fi 15883 ;; 15884 esac 15885 ;; 15886 15887 hpux10*|hpux11*) 15888 if test no = "$with_gnu_ld"; then 15889 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15890 hardcode_libdir_separator_CXX=: 15891 15892 case $host_cpu in 15893 hppa*64*|ia64*) 15894 ;; 15895 *) 15896 export_dynamic_flag_spec_CXX='$wl-E' 15897 ;; 15898 esac 15899 fi 15900 case $host_cpu in 15901 hppa*64*|ia64*) 15902 hardcode_direct_CXX=no 15903 hardcode_shlibpath_var_CXX=no 15904 ;; 15905 *) 15906 hardcode_direct_CXX=yes 15907 hardcode_direct_absolute_CXX=yes 15908 hardcode_minus_L_CXX=yes # Not in the search PATH, 15909 # but as the default 15910 # location of the library. 15911 ;; 15912 esac 15913 15914 case $cc_basename in 15915 CC*) 15916 # FIXME: insert proper C++ library support 15917 ld_shlibs_CXX=no 15918 ;; 15919 aCC*) 15920 case $host_cpu in 15921 hppa*64*) 15922 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15923 ;; 15924 ia64*) 15925 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15926 ;; 15927 *) 15928 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15929 ;; 15930 esac 15931 # Commands to make compiler produce verbose output that lists 15932 # what "hidden" libraries, object files and flags are used when 15933 # linking a shared library. 15934 # 15935 # There doesn't appear to be a way to prevent this compiler from 15936 # explicitly linking system object files so we need to strip them 15937 # from the output so that they don't get included in the library 15938 # dependencies. 15939 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"' 15940 ;; 15941 *) 15942 if test yes = "$GXX"; then 15943 if test no = "$with_gnu_ld"; then 15944 case $host_cpu in 15945 hppa*64*) 15946 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15947 ;; 15948 ia64*) 15949 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15950 ;; 15951 *) 15952 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' 15953 ;; 15954 esac 15955 fi 15956 else 15957 # FIXME: insert proper C++ library support 15958 ld_shlibs_CXX=no 15959 fi 15960 ;; 15961 esac 15962 ;; 15963 15964 interix[3-9]*) 15965 hardcode_direct_CXX=no 15966 hardcode_shlibpath_var_CXX=no 15967 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15968 export_dynamic_flag_spec_CXX='$wl-E' 15969 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15970 # Instead, shared libraries are loaded at an image base (0x10000000 by 15971 # default) and relocated if they conflict, which is a slow very memory 15972 # consuming and fragmenting process. To avoid this, we pick a random, 15973 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15974 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15975 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' 15976 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' 15977 ;; 15978 irix5* | irix6*) 15979 case $cc_basename in 15980 CC*) 15981 # SGI C++ 15982 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' 15983 15984 # Archives containing C++ object files must be created using 15985 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15986 # necessary to make sure instantiated templates are included 15987 # in the archive. 15988 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15989 ;; 15990 *) 15991 if test yes = "$GXX"; then 15992 if test no = "$with_gnu_ld"; then 15993 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' 15994 else 15995 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' 15996 fi 15997 fi 15998 link_all_deplibs_CXX=yes 15999 ;; 16000 esac 16001 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16002 hardcode_libdir_separator_CXX=: 16003 inherit_rpath_CXX=yes 16004 ;; 16005 16006 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16007 case $cc_basename in 16008 KCC*) 16009 # Kuck and Associates, Inc. (KAI) C++ Compiler 16010 16011 # KCC will only create a shared library if the output file 16012 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16013 # to its proper name (with version) after linking. 16014 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' 16015 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' 16016 # Commands to make compiler produce verbose output that lists 16017 # what "hidden" libraries, object files and flags are used when 16018 # linking a shared library. 16019 # 16020 # There doesn't appear to be a way to prevent this compiler from 16021 # explicitly linking system object files so we need to strip them 16022 # from the output so that they don't get included in the library 16023 # dependencies. 16024 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"' 16025 16026 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16027 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16028 16029 # Archives containing C++ object files must be created using 16030 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16031 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16032 ;; 16033 icpc* | ecpc* ) 16034 # Intel C++ 16035 with_gnu_ld=yes 16036 # version 8.0 and above of icpc choke on multiply defined symbols 16037 # if we add $predep_objects and $postdep_objects, however 7.1 and 16038 # earlier do not add the objects themselves. 16039 case `$CC -V 2>&1` in 16040 *"Version 7."*) 16041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16042 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' 16043 ;; 16044 *) # Version 8.0 or newer 16045 tmp_idyn= 16046 case $host_cpu in 16047 ia64*) tmp_idyn=' -i_dynamic';; 16048 esac 16049 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16050 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' 16051 ;; 16052 esac 16053 archive_cmds_need_lc_CXX=no 16054 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16055 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16056 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16057 ;; 16058 pgCC* | pgcpp*) 16059 # Portland Group C++ compiler 16060 case `$CC -V` in 16061 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16062 prelink_cmds_CXX='tpldir=Template.dir~ 16063 rm -rf $tpldir~ 16064 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16065 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16066 old_archive_cmds_CXX='tpldir=Template.dir~ 16067 rm -rf $tpldir~ 16068 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16069 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16070 $RANLIB $oldlib' 16071 archive_cmds_CXX='tpldir=Template.dir~ 16072 rm -rf $tpldir~ 16073 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16074 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16075 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16076 rm -rf $tpldir~ 16077 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16078 $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' 16079 ;; 16080 *) # Version 6 and above use weak symbols 16081 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16082 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' 16083 ;; 16084 esac 16085 16086 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16087 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16088 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' 16089 ;; 16090 cxx*) 16091 # Compaq C++ 16092 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16093 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' 16094 16095 runpath_var=LD_RUN_PATH 16096 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16097 hardcode_libdir_separator_CXX=: 16098 16099 # Commands to make compiler produce verbose output that lists 16100 # what "hidden" libraries, object files and flags are used when 16101 # linking a shared library. 16102 # 16103 # There doesn't appear to be a way to prevent this compiler from 16104 # explicitly linking system object files so we need to strip them 16105 # from the output so that they don't get included in the library 16106 # dependencies. 16107 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' 16108 ;; 16109 xl* | mpixl* | bgxl*) 16110 # IBM XL 8.0 on PPC, with GNU ld 16111 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16112 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16113 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16114 if test yes = "$supports_anon_versioning"; then 16115 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16117 echo "local: *; };" >> $output_objdir/$libname.ver~ 16118 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16119 fi 16120 ;; 16121 *) 16122 case `$CC -V 2>&1 | sed 5q` in 16123 *Sun\ C*) 16124 # Sun C++ 5.9 16125 no_undefined_flag_CXX=' -zdefs' 16126 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16127 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' 16128 hardcode_libdir_flag_spec_CXX='-R$libdir' 16129 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' 16130 compiler_needs_object_CXX=yes 16131 16132 # Not sure whether something based on 16133 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16134 # would be better. 16135 output_verbose_link_cmd='func_echo_all' 16136 16137 # Archives containing C++ object files must be created using 16138 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16139 # necessary to make sure instantiated templates are included 16140 # in the archive. 16141 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16142 ;; 16143 esac 16144 ;; 16145 esac 16146 ;; 16147 16148 lynxos*) 16149 # FIXME: insert proper C++ library support 16150 ld_shlibs_CXX=no 16151 ;; 16152 16153 m88k*) 16154 # FIXME: insert proper C++ library support 16155 ld_shlibs_CXX=no 16156 ;; 16157 16158 mvs*) 16159 case $cc_basename in 16160 cxx*) 16161 # FIXME: insert proper C++ library support 16162 ld_shlibs_CXX=no 16163 ;; 16164 *) 16165 # FIXME: insert proper C++ library support 16166 ld_shlibs_CXX=no 16167 ;; 16168 esac 16169 ;; 16170 16171 netbsd*) 16172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16173 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16174 wlarc= 16175 hardcode_libdir_flag_spec_CXX='-R$libdir' 16176 hardcode_direct_CXX=yes 16177 hardcode_shlibpath_var_CXX=no 16178 fi 16179 # Workaround some broken pre-1.5 toolchains 16180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16181 ;; 16182 16183 *nto* | *qnx*) 16184 ld_shlibs_CXX=yes 16185 ;; 16186 16187 openbsd* | bitrig*) 16188 if test -f /usr/libexec/ld.so; then 16189 hardcode_direct_CXX=yes 16190 hardcode_shlibpath_var_CXX=no 16191 hardcode_direct_absolute_CXX=yes 16192 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16193 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16195 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16196 export_dynamic_flag_spec_CXX='$wl-E' 16197 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16198 fi 16199 output_verbose_link_cmd=func_echo_all 16200 else 16201 ld_shlibs_CXX=no 16202 fi 16203 ;; 16204 16205 osf3* | osf4* | osf5*) 16206 case $cc_basename in 16207 KCC*) 16208 # Kuck and Associates, Inc. (KAI) C++ Compiler 16209 16210 # KCC will only create a shared library if the output file 16211 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16212 # to its proper name (with version) after linking. 16213 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' 16214 16215 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16216 hardcode_libdir_separator_CXX=: 16217 16218 # Archives containing C++ object files must be created using 16219 # the KAI C++ compiler. 16220 case $host in 16221 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16222 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16223 esac 16224 ;; 16225 RCC*) 16226 # Rational C++ 2.4.1 16227 # FIXME: insert proper C++ library support 16228 ld_shlibs_CXX=no 16229 ;; 16230 cxx*) 16231 case $host in 16232 osf3*) 16233 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16234 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' 16235 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16236 ;; 16237 *) 16238 allow_undefined_flag_CXX=' -expect_unresolved \*' 16239 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' 16240 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16241 echo "-hidden">> $lib.exp~ 16242 $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~ 16243 $RM $lib.exp' 16244 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16245 ;; 16246 esac 16247 16248 hardcode_libdir_separator_CXX=: 16249 16250 # Commands to make compiler produce verbose output that lists 16251 # what "hidden" libraries, object files and flags are used when 16252 # linking a shared library. 16253 # 16254 # There doesn't appear to be a way to prevent this compiler from 16255 # explicitly linking system object files so we need to strip them 16256 # from the output so that they don't get included in the library 16257 # dependencies. 16258 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"' 16259 ;; 16260 *) 16261 if test yes,no = "$GXX,$with_gnu_ld"; then 16262 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16263 case $host in 16264 osf3*) 16265 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' 16266 ;; 16267 *) 16268 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' 16269 ;; 16270 esac 16271 16272 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16273 hardcode_libdir_separator_CXX=: 16274 16275 # Commands to make compiler produce verbose output that lists 16276 # what "hidden" libraries, object files and flags are used when 16277 # linking a shared library. 16278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16279 16280 else 16281 # FIXME: insert proper C++ library support 16282 ld_shlibs_CXX=no 16283 fi 16284 ;; 16285 esac 16286 ;; 16287 16288 psos*) 16289 # FIXME: insert proper C++ library support 16290 ld_shlibs_CXX=no 16291 ;; 16292 16293 sunos4*) 16294 case $cc_basename in 16295 CC*) 16296 # Sun C++ 4.x 16297 # FIXME: insert proper C++ library support 16298 ld_shlibs_CXX=no 16299 ;; 16300 lcc*) 16301 # Lucid 16302 # FIXME: insert proper C++ library support 16303 ld_shlibs_CXX=no 16304 ;; 16305 *) 16306 # FIXME: insert proper C++ library support 16307 ld_shlibs_CXX=no 16308 ;; 16309 esac 16310 ;; 16311 16312 solaris*) 16313 case $cc_basename in 16314 CC* | sunCC*) 16315 # Sun C++ 4.2, 5.x and Centerline C++ 16316 archive_cmds_need_lc_CXX=yes 16317 no_undefined_flag_CXX=' -zdefs' 16318 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16319 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16320 $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' 16321 16322 hardcode_libdir_flag_spec_CXX='-R$libdir' 16323 hardcode_shlibpath_var_CXX=no 16324 case $host_os in 16325 solaris2.[0-5] | solaris2.[0-5].*) ;; 16326 *) 16327 # The compiler driver will combine and reorder linker options, 16328 # but understands '-z linker_flag'. 16329 # Supported since Solaris 2.6 (maybe 2.5.1?) 16330 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16331 ;; 16332 esac 16333 link_all_deplibs_CXX=yes 16334 16335 output_verbose_link_cmd='func_echo_all' 16336 16337 # Archives containing C++ object files must be created using 16338 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16339 # necessary to make sure instantiated templates are included 16340 # in the archive. 16341 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16342 ;; 16343 gcx*) 16344 # Green Hills C++ Compiler 16345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16346 16347 # The C++ compiler must be used to create the archive. 16348 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16349 ;; 16350 *) 16351 # GNU C++ compiler with Solaris linker 16352 if test yes,no = "$GXX,$with_gnu_ld"; then 16353 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16354 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16355 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16356 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16357 $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' 16358 16359 # Commands to make compiler produce verbose output that lists 16360 # what "hidden" libraries, object files and flags are used when 16361 # linking a shared library. 16362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16363 else 16364 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16365 # platform. 16366 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16368 $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' 16369 16370 # Commands to make compiler produce verbose output that lists 16371 # what "hidden" libraries, object files and flags are used when 16372 # linking a shared library. 16373 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16374 fi 16375 16376 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 16377 case $host_os in 16378 solaris2.[0-5] | solaris2.[0-5].*) ;; 16379 *) 16380 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16381 ;; 16382 esac 16383 fi 16384 ;; 16385 esac 16386 ;; 16387 16388 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16389 no_undefined_flag_CXX='$wl-z,text' 16390 archive_cmds_need_lc_CXX=no 16391 hardcode_shlibpath_var_CXX=no 16392 runpath_var='LD_RUN_PATH' 16393 16394 case $cc_basename in 16395 CC*) 16396 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16397 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16398 ;; 16399 *) 16400 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16401 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16402 ;; 16403 esac 16404 ;; 16405 16406 sysv5* | sco3.2v5* | sco5v6*) 16407 # Note: We CANNOT use -z defs as we might desire, because we do not 16408 # link with -lc, and that would cause any symbols used from libc to 16409 # always be unresolved, which means just about no library would 16410 # ever link correctly. If we're not using GNU ld we use -z text 16411 # though, which does catch some bad symbols but isn't as heavy-handed 16412 # as -z defs. 16413 no_undefined_flag_CXX='$wl-z,text' 16414 allow_undefined_flag_CXX='$wl-z,nodefs' 16415 archive_cmds_need_lc_CXX=no 16416 hardcode_shlibpath_var_CXX=no 16417 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 16418 hardcode_libdir_separator_CXX=':' 16419 link_all_deplibs_CXX=yes 16420 export_dynamic_flag_spec_CXX='$wl-Bexport' 16421 runpath_var='LD_RUN_PATH' 16422 16423 case $cc_basename in 16424 CC*) 16425 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16426 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16427 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16428 '"$old_archive_cmds_CXX" 16429 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16430 '"$reload_cmds_CXX" 16431 ;; 16432 *) 16433 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16434 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16435 ;; 16436 esac 16437 ;; 16438 16439 tandem*) 16440 case $cc_basename in 16441 NCC*) 16442 # NonStop-UX NCC 3.20 16443 # FIXME: insert proper C++ library support 16444 ld_shlibs_CXX=no 16445 ;; 16446 *) 16447 # FIXME: insert proper C++ library support 16448 ld_shlibs_CXX=no 16449 ;; 16450 esac 16451 ;; 16452 16453 vxworks*) 16454 # FIXME: insert proper C++ library support 16455 ld_shlibs_CXX=no 16456 ;; 16457 16458 *) 16459 # FIXME: insert proper C++ library support 16460 ld_shlibs_CXX=no 16461 ;; 16462 esac 16463 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16465$as_echo "$ld_shlibs_CXX" >&6; } 16466 test no = "$ld_shlibs_CXX" && can_build_shared=no 16467 16468 GCC_CXX=$GXX 16469 LD_CXX=$LD 16470 16471 ## CAVEAT EMPTOR: 16472 ## There is no encapsulation within the following macros, do not change 16473 ## the running order or otherwise move them around unless you know exactly 16474 ## what you are doing... 16475 # Dependencies to place before and after the object being linked: 16476predep_objects_CXX= 16477postdep_objects_CXX= 16478predeps_CXX= 16479postdeps_CXX= 16480compiler_lib_search_path_CXX= 16481 16482cat > conftest.$ac_ext <<_LT_EOF 16483class Foo 16484{ 16485public: 16486 Foo (void) { a = 0; } 16487private: 16488 int a; 16489}; 16490_LT_EOF 16491 16492 16493_lt_libdeps_save_CFLAGS=$CFLAGS 16494case "$CC $CFLAGS " in #( 16495*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16496*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16497*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 16498esac 16499 16500if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16501 (eval $ac_compile) 2>&5 16502 ac_status=$? 16503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16504 test $ac_status = 0; }; then 16505 # Parse the compiler output and extract the necessary 16506 # objects, libraries and library flags. 16507 16508 # Sentinel used to keep track of whether or not we are before 16509 # the conftest object file. 16510 pre_test_object_deps_done=no 16511 16512 for p in `eval "$output_verbose_link_cmd"`; do 16513 case $prev$p in 16514 16515 -L* | -R* | -l*) 16516 # Some compilers place space between "-{L,R}" and the path. 16517 # Remove the space. 16518 if test x-L = "$p" || 16519 test x-R = "$p"; then 16520 prev=$p 16521 continue 16522 fi 16523 16524 # Expand the sysroot to ease extracting the directories later. 16525 if test -z "$prev"; then 16526 case $p in 16527 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16528 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16529 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16530 esac 16531 fi 16532 case $p in 16533 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16534 esac 16535 if test no = "$pre_test_object_deps_done"; then 16536 case $prev in 16537 -L | -R) 16538 # Internal compiler library paths should come after those 16539 # provided the user. The postdeps already come after the 16540 # user supplied libs so there is no need to process them. 16541 if test -z "$compiler_lib_search_path_CXX"; then 16542 compiler_lib_search_path_CXX=$prev$p 16543 else 16544 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 16545 fi 16546 ;; 16547 # The "-l" case would never come before the object being 16548 # linked, so don't bother handling this case. 16549 esac 16550 else 16551 if test -z "$postdeps_CXX"; then 16552 postdeps_CXX=$prev$p 16553 else 16554 postdeps_CXX="${postdeps_CXX} $prev$p" 16555 fi 16556 fi 16557 prev= 16558 ;; 16559 16560 *.lto.$objext) ;; # Ignore GCC LTO objects 16561 *.$objext) 16562 # This assumes that the test object file only shows up 16563 # once in the compiler output. 16564 if test "$p" = "conftest.$objext"; then 16565 pre_test_object_deps_done=yes 16566 continue 16567 fi 16568 16569 if test no = "$pre_test_object_deps_done"; then 16570 if test -z "$predep_objects_CXX"; then 16571 predep_objects_CXX=$p 16572 else 16573 predep_objects_CXX="$predep_objects_CXX $p" 16574 fi 16575 else 16576 if test -z "$postdep_objects_CXX"; then 16577 postdep_objects_CXX=$p 16578 else 16579 postdep_objects_CXX="$postdep_objects_CXX $p" 16580 fi 16581 fi 16582 ;; 16583 16584 *) ;; # Ignore the rest. 16585 16586 esac 16587 done 16588 16589 # Clean up. 16590 rm -f a.out a.exe 16591else 16592 echo "libtool.m4: error: problem compiling CXX test program" 16593fi 16594 16595$RM -f confest.$objext 16596CFLAGS=$_lt_libdeps_save_CFLAGS 16597 16598# PORTME: override above test on systems where it is broken 16599case $host_os in 16600interix[3-9]*) 16601 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16602 # hack all around it, let's just trust "g++" to DTRT. 16603 predep_objects_CXX= 16604 postdep_objects_CXX= 16605 postdeps_CXX= 16606 ;; 16607esac 16608 16609 16610case " $postdeps_CXX " in 16611*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16612esac 16613 compiler_lib_search_dirs_CXX= 16614if test -n "${compiler_lib_search_path_CXX}"; then 16615 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 16616fi 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 lt_prog_compiler_wl_CXX= 16649lt_prog_compiler_pic_CXX= 16650lt_prog_compiler_static_CXX= 16651 16652 16653 # C++ specific cases for pic, static, wl, etc. 16654 if test yes = "$GXX"; then 16655 lt_prog_compiler_wl_CXX='-Wl,' 16656 lt_prog_compiler_static_CXX='-static' 16657 16658 case $host_os in 16659 aix*) 16660 # All AIX code is PIC. 16661 if test ia64 = "$host_cpu"; then 16662 # AIX 5 now supports IA64 processor 16663 lt_prog_compiler_static_CXX='-Bstatic' 16664 fi 16665 lt_prog_compiler_pic_CXX='-fPIC' 16666 ;; 16667 16668 amigaos*) 16669 case $host_cpu in 16670 powerpc) 16671 # see comment about AmigaOS4 .so support 16672 lt_prog_compiler_pic_CXX='-fPIC' 16673 ;; 16674 m68k) 16675 # FIXME: we need at least 68020 code to build shared libraries, but 16676 # adding the '-m68020' flag to GCC prevents building anything better, 16677 # like '-m68040'. 16678 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16679 ;; 16680 esac 16681 ;; 16682 16683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16684 # PIC is the default for these OSes. 16685 ;; 16686 mingw* | cygwin* | os2* | pw32* | cegcc*) 16687 # This hack is so that the source file can tell whether it is being 16688 # built for inclusion in a dll (and should export symbols for example). 16689 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16690 # (--disable-auto-import) libraries 16691 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16692 case $host_os in 16693 os2*) 16694 lt_prog_compiler_static_CXX='$wl-static' 16695 ;; 16696 esac 16697 ;; 16698 darwin* | rhapsody*) 16699 # PIC is the default on this platform 16700 # Common symbols not allowed in MH_DYLIB files 16701 lt_prog_compiler_pic_CXX='-fno-common' 16702 ;; 16703 *djgpp*) 16704 # DJGPP does not support shared libraries at all 16705 lt_prog_compiler_pic_CXX= 16706 ;; 16707 haiku*) 16708 # PIC is the default for Haiku. 16709 # The "-static" flag exists, but is broken. 16710 lt_prog_compiler_static_CXX= 16711 ;; 16712 interix[3-9]*) 16713 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16714 # Instead, we relocate shared libraries at runtime. 16715 ;; 16716 sysv4*MP*) 16717 if test -d /usr/nec; then 16718 lt_prog_compiler_pic_CXX=-Kconform_pic 16719 fi 16720 ;; 16721 hpux*) 16722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16724 # sets the default TLS model and affects inlining. 16725 case $host_cpu in 16726 hppa*64*) 16727 ;; 16728 *) 16729 lt_prog_compiler_pic_CXX='-fPIC' 16730 ;; 16731 esac 16732 ;; 16733 *qnx* | *nto*) 16734 # QNX uses GNU C++, but need to define -shared option too, otherwise 16735 # it will coredump. 16736 lt_prog_compiler_pic_CXX='-fPIC -shared' 16737 ;; 16738 *) 16739 lt_prog_compiler_pic_CXX='-fPIC' 16740 ;; 16741 esac 16742 else 16743 case $host_os in 16744 aix[4-9]*) 16745 # All AIX code is PIC. 16746 if test ia64 = "$host_cpu"; then 16747 # AIX 5 now supports IA64 processor 16748 lt_prog_compiler_static_CXX='-Bstatic' 16749 else 16750 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16751 fi 16752 ;; 16753 chorus*) 16754 case $cc_basename in 16755 cxch68*) 16756 # Green Hills C++ Compiler 16757 # _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" 16758 ;; 16759 esac 16760 ;; 16761 mingw* | cygwin* | os2* | pw32* | cegcc*) 16762 # This hack is so that the source file can tell whether it is being 16763 # built for inclusion in a dll (and should export symbols for example). 16764 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16765 ;; 16766 dgux*) 16767 case $cc_basename in 16768 ec++*) 16769 lt_prog_compiler_pic_CXX='-KPIC' 16770 ;; 16771 ghcx*) 16772 # Green Hills C++ Compiler 16773 lt_prog_compiler_pic_CXX='-pic' 16774 ;; 16775 *) 16776 ;; 16777 esac 16778 ;; 16779 freebsd* | dragonfly*) 16780 # FreeBSD uses GNU C++ 16781 ;; 16782 hpux9* | hpux10* | hpux11*) 16783 case $cc_basename in 16784 CC*) 16785 lt_prog_compiler_wl_CXX='-Wl,' 16786 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16787 if test ia64 != "$host_cpu"; then 16788 lt_prog_compiler_pic_CXX='+Z' 16789 fi 16790 ;; 16791 aCC*) 16792 lt_prog_compiler_wl_CXX='-Wl,' 16793 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16794 case $host_cpu in 16795 hppa*64*|ia64*) 16796 # +Z the default 16797 ;; 16798 *) 16799 lt_prog_compiler_pic_CXX='+Z' 16800 ;; 16801 esac 16802 ;; 16803 *) 16804 ;; 16805 esac 16806 ;; 16807 interix*) 16808 # This is c89, which is MS Visual C++ (no shared libs) 16809 # Anyone wants to do a port? 16810 ;; 16811 irix5* | irix6* | nonstopux*) 16812 case $cc_basename in 16813 CC*) 16814 lt_prog_compiler_wl_CXX='-Wl,' 16815 lt_prog_compiler_static_CXX='-non_shared' 16816 # CC pic flag -KPIC is the default. 16817 ;; 16818 *) 16819 ;; 16820 esac 16821 ;; 16822 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16823 case $cc_basename in 16824 KCC*) 16825 # KAI C++ Compiler 16826 lt_prog_compiler_wl_CXX='--backend -Wl,' 16827 lt_prog_compiler_pic_CXX='-fPIC' 16828 ;; 16829 ecpc* ) 16830 # old Intel C++ for x86_64, which still supported -KPIC. 16831 lt_prog_compiler_wl_CXX='-Wl,' 16832 lt_prog_compiler_pic_CXX='-KPIC' 16833 lt_prog_compiler_static_CXX='-static' 16834 ;; 16835 icpc* ) 16836 # Intel C++, used to be incompatible with GCC. 16837 # ICC 10 doesn't accept -KPIC any more. 16838 lt_prog_compiler_wl_CXX='-Wl,' 16839 lt_prog_compiler_pic_CXX='-fPIC' 16840 lt_prog_compiler_static_CXX='-static' 16841 ;; 16842 pgCC* | pgcpp*) 16843 # Portland Group C++ compiler 16844 lt_prog_compiler_wl_CXX='-Wl,' 16845 lt_prog_compiler_pic_CXX='-fpic' 16846 lt_prog_compiler_static_CXX='-Bstatic' 16847 ;; 16848 cxx*) 16849 # Compaq C++ 16850 # Make sure the PIC flag is empty. It appears that all Alpha 16851 # Linux and Compaq Tru64 Unix objects are PIC. 16852 lt_prog_compiler_pic_CXX= 16853 lt_prog_compiler_static_CXX='-non_shared' 16854 ;; 16855 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16856 # IBM XL 8.0, 9.0 on PPC and BlueGene 16857 lt_prog_compiler_wl_CXX='-Wl,' 16858 lt_prog_compiler_pic_CXX='-qpic' 16859 lt_prog_compiler_static_CXX='-qstaticlink' 16860 ;; 16861 *) 16862 case `$CC -V 2>&1 | sed 5q` in 16863 *Sun\ C*) 16864 # Sun C++ 5.9 16865 lt_prog_compiler_pic_CXX='-KPIC' 16866 lt_prog_compiler_static_CXX='-Bstatic' 16867 lt_prog_compiler_wl_CXX='-Qoption ld ' 16868 ;; 16869 esac 16870 ;; 16871 esac 16872 ;; 16873 lynxos*) 16874 ;; 16875 m88k*) 16876 ;; 16877 mvs*) 16878 case $cc_basename in 16879 cxx*) 16880 lt_prog_compiler_pic_CXX='-W c,exportall' 16881 ;; 16882 *) 16883 ;; 16884 esac 16885 ;; 16886 netbsd*) 16887 ;; 16888 *qnx* | *nto*) 16889 # QNX uses GNU C++, but need to define -shared option too, otherwise 16890 # it will coredump. 16891 lt_prog_compiler_pic_CXX='-fPIC -shared' 16892 ;; 16893 osf3* | osf4* | osf5*) 16894 case $cc_basename in 16895 KCC*) 16896 lt_prog_compiler_wl_CXX='--backend -Wl,' 16897 ;; 16898 RCC*) 16899 # Rational C++ 2.4.1 16900 lt_prog_compiler_pic_CXX='-pic' 16901 ;; 16902 cxx*) 16903 # Digital/Compaq C++ 16904 lt_prog_compiler_wl_CXX='-Wl,' 16905 # Make sure the PIC flag is empty. It appears that all Alpha 16906 # Linux and Compaq Tru64 Unix objects are PIC. 16907 lt_prog_compiler_pic_CXX= 16908 lt_prog_compiler_static_CXX='-non_shared' 16909 ;; 16910 *) 16911 ;; 16912 esac 16913 ;; 16914 psos*) 16915 ;; 16916 solaris*) 16917 case $cc_basename in 16918 CC* | sunCC*) 16919 # Sun C++ 4.2, 5.x and Centerline C++ 16920 lt_prog_compiler_pic_CXX='-KPIC' 16921 lt_prog_compiler_static_CXX='-Bstatic' 16922 lt_prog_compiler_wl_CXX='-Qoption ld ' 16923 ;; 16924 gcx*) 16925 # Green Hills C++ Compiler 16926 lt_prog_compiler_pic_CXX='-PIC' 16927 ;; 16928 *) 16929 ;; 16930 esac 16931 ;; 16932 sunos4*) 16933 case $cc_basename in 16934 CC*) 16935 # Sun C++ 4.x 16936 lt_prog_compiler_pic_CXX='-pic' 16937 lt_prog_compiler_static_CXX='-Bstatic' 16938 ;; 16939 lcc*) 16940 # Lucid 16941 lt_prog_compiler_pic_CXX='-pic' 16942 ;; 16943 *) 16944 ;; 16945 esac 16946 ;; 16947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16948 case $cc_basename in 16949 CC*) 16950 lt_prog_compiler_wl_CXX='-Wl,' 16951 lt_prog_compiler_pic_CXX='-KPIC' 16952 lt_prog_compiler_static_CXX='-Bstatic' 16953 ;; 16954 esac 16955 ;; 16956 tandem*) 16957 case $cc_basename in 16958 NCC*) 16959 # NonStop-UX NCC 3.20 16960 lt_prog_compiler_pic_CXX='-KPIC' 16961 ;; 16962 *) 16963 ;; 16964 esac 16965 ;; 16966 vxworks*) 16967 ;; 16968 *) 16969 lt_prog_compiler_can_build_shared_CXX=no 16970 ;; 16971 esac 16972 fi 16973 16974case $host_os in 16975 # For platforms that do not support PIC, -DPIC is meaningless: 16976 *djgpp*) 16977 lt_prog_compiler_pic_CXX= 16978 ;; 16979 *) 16980 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16981 ;; 16982esac 16983 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16985$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16986if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16987 $as_echo_n "(cached) " >&6 16988else 16989 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16990fi 16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16992$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16993lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16994 16995# 16996# Check to make sure the PIC flag actually works. 16997# 16998if test -n "$lt_prog_compiler_pic_CXX"; then 16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17000$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17001if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17002 $as_echo_n "(cached) " >&6 17003else 17004 lt_cv_prog_compiler_pic_works_CXX=no 17005 ac_outfile=conftest.$ac_objext 17006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17007 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17008 # Insert the option either (1) after the last *FLAGS variable, or 17009 # (2) before a word containing "conftest.", or (3) at the end. 17010 # Note that $ac_compile itself does not contain backslashes and begins 17011 # with a dollar sign (not a hyphen), so the echo should work correctly. 17012 # The option is referenced via a variable to avoid confusing sed. 17013 lt_compile=`echo "$ac_compile" | $SED \ 17014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17016 -e 's:$: $lt_compiler_flag:'` 17017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17018 (eval "$lt_compile" 2>conftest.err) 17019 ac_status=$? 17020 cat conftest.err >&5 17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17022 if (exit $ac_status) && test -s "$ac_outfile"; then 17023 # The compiler can only warn and ignore the option if not recognized 17024 # So say no if there are warnings other than the usual output. 17025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17028 lt_cv_prog_compiler_pic_works_CXX=yes 17029 fi 17030 fi 17031 $RM conftest* 17032 17033fi 17034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17035$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17036 17037if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17038 case $lt_prog_compiler_pic_CXX in 17039 "" | " "*) ;; 17040 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17041 esac 17042else 17043 lt_prog_compiler_pic_CXX= 17044 lt_prog_compiler_can_build_shared_CXX=no 17045fi 17046 17047fi 17048 17049 17050 17051 17052 17053# 17054# Check to make sure the static flag actually works. 17055# 17056wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17059if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17060 $as_echo_n "(cached) " >&6 17061else 17062 lt_cv_prog_compiler_static_works_CXX=no 17063 save_LDFLAGS=$LDFLAGS 17064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17065 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17067 # The linker can only warn and ignore the option if not recognized 17068 # So say no if there are warnings 17069 if test -s conftest.err; then 17070 # Append any errors to the config.log. 17071 cat conftest.err 1>&5 17072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17074 if diff conftest.exp conftest.er2 >/dev/null; then 17075 lt_cv_prog_compiler_static_works_CXX=yes 17076 fi 17077 else 17078 lt_cv_prog_compiler_static_works_CXX=yes 17079 fi 17080 fi 17081 $RM -r conftest* 17082 LDFLAGS=$save_LDFLAGS 17083 17084fi 17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17086$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17087 17088if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17089 : 17090else 17091 lt_prog_compiler_static_CXX= 17092fi 17093 17094 17095 17096 17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17099if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17100 $as_echo_n "(cached) " >&6 17101else 17102 lt_cv_prog_compiler_c_o_CXX=no 17103 $RM -r conftest 2>/dev/null 17104 mkdir conftest 17105 cd conftest 17106 mkdir out 17107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17108 17109 lt_compiler_flag="-o out/conftest2.$ac_objext" 17110 # Insert the option either (1) after the last *FLAGS variable, or 17111 # (2) before a word containing "conftest.", or (3) at the end. 17112 # Note that $ac_compile itself does not contain backslashes and begins 17113 # with a dollar sign (not a hyphen), so the echo should work correctly. 17114 lt_compile=`echo "$ac_compile" | $SED \ 17115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17117 -e 's:$: $lt_compiler_flag:'` 17118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17119 (eval "$lt_compile" 2>out/conftest.err) 17120 ac_status=$? 17121 cat out/conftest.err >&5 17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17123 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17124 then 17125 # The compiler can only warn and ignore the option if not recognized 17126 # So say no if there are warnings 17127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17130 lt_cv_prog_compiler_c_o_CXX=yes 17131 fi 17132 fi 17133 chmod u+w . 2>&5 17134 $RM conftest* 17135 # SGI C++ compiler will create directory out/ii_files/ for 17136 # template instantiation 17137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17138 $RM out/* && rmdir out 17139 cd .. 17140 $RM -r conftest 17141 $RM conftest* 17142 17143fi 17144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17145$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17146 17147 17148 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17150$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17151if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17152 $as_echo_n "(cached) " >&6 17153else 17154 lt_cv_prog_compiler_c_o_CXX=no 17155 $RM -r conftest 2>/dev/null 17156 mkdir conftest 17157 cd conftest 17158 mkdir out 17159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17160 17161 lt_compiler_flag="-o out/conftest2.$ac_objext" 17162 # Insert the option either (1) after the last *FLAGS variable, or 17163 # (2) before a word containing "conftest.", or (3) at the end. 17164 # Note that $ac_compile itself does not contain backslashes and begins 17165 # with a dollar sign (not a hyphen), so the echo should work correctly. 17166 lt_compile=`echo "$ac_compile" | $SED \ 17167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17169 -e 's:$: $lt_compiler_flag:'` 17170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17171 (eval "$lt_compile" 2>out/conftest.err) 17172 ac_status=$? 17173 cat out/conftest.err >&5 17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17175 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17176 then 17177 # The compiler can only warn and ignore the option if not recognized 17178 # So say no if there are warnings 17179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17182 lt_cv_prog_compiler_c_o_CXX=yes 17183 fi 17184 fi 17185 chmod u+w . 2>&5 17186 $RM conftest* 17187 # SGI C++ compiler will create directory out/ii_files/ for 17188 # template instantiation 17189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17190 $RM out/* && rmdir out 17191 cd .. 17192 $RM -r conftest 17193 $RM conftest* 17194 17195fi 17196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17197$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17198 17199 17200 17201 17202hard_links=nottested 17203if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17204 # do not overwrite the value of need_locks provided by the user 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17206$as_echo_n "checking if we can lock with hard links... " >&6; } 17207 hard_links=yes 17208 $RM conftest* 17209 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17210 touch conftest.a 17211 ln conftest.a conftest.b 2>&5 || hard_links=no 17212 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17214$as_echo "$hard_links" >&6; } 17215 if test no = "$hard_links"; then 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17217$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17218 need_locks=warn 17219 fi 17220else 17221 need_locks=no 17222fi 17223 17224 17225 17226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17227$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17228 17229 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17230 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17231 case $host_os in 17232 aix[4-9]*) 17233 # If we're using GNU nm, then we don't want the "-C" option. 17234 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17235 # Without the "-l" option, or with the "-B" option, AIX nm treats 17236 # weak defined symbols like other global defined symbols, whereas 17237 # GNU nm marks them as "W". 17238 # While the 'weak' keyword is ignored in the Export File, we need 17239 # it in the Import File for the 'aix-soname' feature, so we have 17240 # to replace the "-B" option with "-P" for AIX nm. 17241 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17242 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' 17243 else 17244 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' 17245 fi 17246 ;; 17247 pw32*) 17248 export_symbols_cmds_CXX=$ltdll_cmds 17249 ;; 17250 cygwin* | mingw* | cegcc*) 17251 case $cc_basename in 17252 cl*) 17253 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17254 ;; 17255 *) 17256 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' 17257 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17258 ;; 17259 esac 17260 ;; 17261 *) 17262 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17263 ;; 17264 esac 17265 17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17267$as_echo "$ld_shlibs_CXX" >&6; } 17268test no = "$ld_shlibs_CXX" && can_build_shared=no 17269 17270with_gnu_ld_CXX=$with_gnu_ld 17271 17272 17273 17274 17275 17276 17277# 17278# Do we need to explicitly link libc? 17279# 17280case "x$archive_cmds_need_lc_CXX" in 17281x|xyes) 17282 # Assume -lc should be added 17283 archive_cmds_need_lc_CXX=yes 17284 17285 if test yes,yes = "$GCC,$enable_shared"; then 17286 case $archive_cmds_CXX in 17287 *'~'*) 17288 # FIXME: we may have to deal with multi-command sequences. 17289 ;; 17290 '$CC '*) 17291 # Test whether the compiler implicitly links with -lc since on some 17292 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17293 # to ld, don't add -lc before -lgcc. 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17295$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17296if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17297 $as_echo_n "(cached) " >&6 17298else 17299 $RM conftest* 17300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17301 17302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17303 (eval $ac_compile) 2>&5 17304 ac_status=$? 17305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17306 test $ac_status = 0; } 2>conftest.err; then 17307 soname=conftest 17308 lib=conftest 17309 libobjs=conftest.$ac_objext 17310 deplibs= 17311 wl=$lt_prog_compiler_wl_CXX 17312 pic_flag=$lt_prog_compiler_pic_CXX 17313 compiler_flags=-v 17314 linker_flags=-v 17315 verstring= 17316 output_objdir=. 17317 libname=conftest 17318 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17319 allow_undefined_flag_CXX= 17320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17321 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17322 ac_status=$? 17323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17324 test $ac_status = 0; } 17325 then 17326 lt_cv_archive_cmds_need_lc_CXX=no 17327 else 17328 lt_cv_archive_cmds_need_lc_CXX=yes 17329 fi 17330 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17331 else 17332 cat conftest.err 1>&5 17333 fi 17334 $RM conftest* 17335 17336fi 17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17338$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17339 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17340 ;; 17341 esac 17342 fi 17343 ;; 17344esac 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17408$as_echo_n "checking dynamic linker characteristics... " >&6; } 17409 17410library_names_spec= 17411libname_spec='lib$name' 17412soname_spec= 17413shrext_cmds=.so 17414postinstall_cmds= 17415postuninstall_cmds= 17416finish_cmds= 17417finish_eval= 17418shlibpath_var= 17419shlibpath_overrides_runpath=unknown 17420version_type=none 17421dynamic_linker="$host_os ld.so" 17422sys_lib_dlsearch_path_spec="/lib /usr/lib" 17423need_lib_prefix=unknown 17424hardcode_into_libs=no 17425 17426# when you set need_version to no, make sure it does not cause -set_version 17427# flags to be left without arguments 17428need_version=unknown 17429 17430 17431 17432case $host_os in 17433aix3*) 17434 version_type=linux # correct to gnu/linux during the next big refactor 17435 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17436 shlibpath_var=LIBPATH 17437 17438 # AIX 3 has no versioning support, so we append a major version to the name. 17439 soname_spec='$libname$release$shared_ext$major' 17440 ;; 17441 17442aix[4-9]*) 17443 version_type=linux # correct to gnu/linux during the next big refactor 17444 need_lib_prefix=no 17445 need_version=no 17446 hardcode_into_libs=yes 17447 if test ia64 = "$host_cpu"; then 17448 # AIX 5 supports IA64 17449 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17450 shlibpath_var=LD_LIBRARY_PATH 17451 else 17452 # With GCC up to 2.95.x, collect2 would create an import file 17453 # for dependence libraries. The import file would start with 17454 # the line '#! .'. This would cause the generated library to 17455 # depend on '.', always an invalid library. This was fixed in 17456 # development snapshots of GCC prior to 3.0. 17457 case $host_os in 17458 aix4 | aix4.[01] | aix4.[01].*) 17459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17460 echo ' yes ' 17461 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17462 : 17463 else 17464 can_build_shared=no 17465 fi 17466 ;; 17467 esac 17468 # Using Import Files as archive members, it is possible to support 17469 # filename-based versioning of shared library archives on AIX. While 17470 # this would work for both with and without runtime linking, it will 17471 # prevent static linking of such archives. So we do filename-based 17472 # shared library versioning with .so extension only, which is used 17473 # when both runtime linking and shared linking is enabled. 17474 # Unfortunately, runtime linking may impact performance, so we do 17475 # not want this to be the default eventually. Also, we use the 17476 # versioned .so libs for executables only if there is the -brtl 17477 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17478 # To allow for filename-based versioning support, we need to create 17479 # libNAME.so.V as an archive file, containing: 17480 # *) an Import File, referring to the versioned filename of the 17481 # archive as well as the shared archive member, telling the 17482 # bitwidth (32 or 64) of that shared object, and providing the 17483 # list of exported symbols of that shared object, eventually 17484 # decorated with the 'weak' keyword 17485 # *) the shared object with the F_LOADONLY flag set, to really avoid 17486 # it being seen by the linker. 17487 # At run time we better use the real file rather than another symlink, 17488 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17489 17490 case $with_aix_soname,$aix_use_runtimelinking in 17491 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17492 # soname into executable. Probably we can add versioning support to 17493 # collect2, so additional links can be useful in future. 17494 aix,yes) # traditional libtool 17495 dynamic_linker='AIX unversionable lib.so' 17496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17497 # instead of lib<name>.a to let people know that these are not 17498 # typical AIX shared libraries. 17499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17500 ;; 17501 aix,no) # traditional AIX only 17502 dynamic_linker='AIX lib.a(lib.so.V)' 17503 # We preserve .a as extension for shared libraries through AIX4.2 17504 # and later when we are not doing run time linking. 17505 library_names_spec='$libname$release.a $libname.a' 17506 soname_spec='$libname$release$shared_ext$major' 17507 ;; 17508 svr4,*) # full svr4 only 17509 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17510 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17511 # We do not specify a path in Import Files, so LIBPATH fires. 17512 shlibpath_overrides_runpath=yes 17513 ;; 17514 *,yes) # both, prefer svr4 17515 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17516 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17517 # unpreferred sharedlib libNAME.a needs extra handling 17518 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"' 17519 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"' 17520 # We do not specify a path in Import Files, so LIBPATH fires. 17521 shlibpath_overrides_runpath=yes 17522 ;; 17523 *,no) # both, prefer aix 17524 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17525 library_names_spec='$libname$release.a $libname.a' 17526 soname_spec='$libname$release$shared_ext$major' 17527 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17528 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)' 17529 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"' 17530 ;; 17531 esac 17532 shlibpath_var=LIBPATH 17533 fi 17534 ;; 17535 17536amigaos*) 17537 case $host_cpu in 17538 powerpc) 17539 # Since July 2007 AmigaOS4 officially supports .so libraries. 17540 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17542 ;; 17543 m68k) 17544 library_names_spec='$libname.ixlibrary $libname.a' 17545 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17546 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' 17547 ;; 17548 esac 17549 ;; 17550 17551beos*) 17552 library_names_spec='$libname$shared_ext' 17553 dynamic_linker="$host_os ld.so" 17554 shlibpath_var=LIBRARY_PATH 17555 ;; 17556 17557bsdi[45]*) 17558 version_type=linux # correct to gnu/linux during the next big refactor 17559 need_version=no 17560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17561 soname_spec='$libname$release$shared_ext$major' 17562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17563 shlibpath_var=LD_LIBRARY_PATH 17564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17566 # the default ld.so.conf also contains /usr/contrib/lib and 17567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17568 # libtool to hard-code these into programs 17569 ;; 17570 17571cygwin* | mingw* | pw32* | cegcc*) 17572 version_type=windows 17573 shrext_cmds=.dll 17574 need_version=no 17575 need_lib_prefix=no 17576 17577 case $GCC,$cc_basename in 17578 yes,*) 17579 # gcc 17580 library_names_spec='$libname.dll.a' 17581 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17582 postinstall_cmds='base_file=`basename \$file`~ 17583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17584 dldir=$destdir/`dirname \$dlpath`~ 17585 test -d \$dldir || mkdir -p \$dldir~ 17586 $install_prog $dir/$dlname \$dldir/$dlname~ 17587 chmod a+x \$dldir/$dlname~ 17588 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17589 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17590 fi' 17591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17592 dlpath=$dir/\$dldll~ 17593 $RM \$dlpath' 17594 shlibpath_overrides_runpath=yes 17595 17596 case $host_os in 17597 cygwin*) 17598 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17599 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17600 17601 ;; 17602 mingw* | cegcc*) 17603 # MinGW DLLs use traditional 'lib' prefix 17604 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17605 ;; 17606 pw32*) 17607 # pw32 DLLs use 'pw' prefix rather than 'lib' 17608 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17609 ;; 17610 esac 17611 dynamic_linker='Win32 ld.exe' 17612 ;; 17613 17614 *,cl*) 17615 # Native MSVC 17616 libname_spec='$name' 17617 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17618 library_names_spec='$libname.dll.lib' 17619 17620 case $build_os in 17621 mingw*) 17622 sys_lib_search_path_spec= 17623 lt_save_ifs=$IFS 17624 IFS=';' 17625 for lt_path in $LIB 17626 do 17627 IFS=$lt_save_ifs 17628 # Let DOS variable expansion print the short 8.3 style file name. 17629 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17630 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17631 done 17632 IFS=$lt_save_ifs 17633 # Convert to MSYS style. 17634 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17635 ;; 17636 cygwin*) 17637 # Convert to unix form, then to dos form, then back to unix form 17638 # but this time dos style (no spaces!) so that the unix form looks 17639 # like /cygdrive/c/PROGRA~1:/cygdr... 17640 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17641 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17642 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17643 ;; 17644 *) 17645 sys_lib_search_path_spec=$LIB 17646 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17647 # It is most probably a Windows format PATH. 17648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17649 else 17650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17651 fi 17652 # FIXME: find the short name or the path components, as spaces are 17653 # common. (e.g. "Program Files" -> "PROGRA~1") 17654 ;; 17655 esac 17656 17657 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17658 postinstall_cmds='base_file=`basename \$file`~ 17659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17660 dldir=$destdir/`dirname \$dlpath`~ 17661 test -d \$dldir || mkdir -p \$dldir~ 17662 $install_prog $dir/$dlname \$dldir/$dlname' 17663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17664 dlpath=$dir/\$dldll~ 17665 $RM \$dlpath' 17666 shlibpath_overrides_runpath=yes 17667 dynamic_linker='Win32 link.exe' 17668 ;; 17669 17670 *) 17671 # Assume MSVC wrapper 17672 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17673 dynamic_linker='Win32 ld.exe' 17674 ;; 17675 esac 17676 # FIXME: first we should search . and the directory the executable is in 17677 shlibpath_var=PATH 17678 ;; 17679 17680darwin* | rhapsody*) 17681 dynamic_linker="$host_os dyld" 17682 version_type=darwin 17683 need_lib_prefix=no 17684 need_version=no 17685 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17686 soname_spec='$libname$release$major$shared_ext' 17687 shlibpath_overrides_runpath=yes 17688 shlibpath_var=DYLD_LIBRARY_PATH 17689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17690 17691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17692 ;; 17693 17694dgux*) 17695 version_type=linux # correct to gnu/linux during the next big refactor 17696 need_lib_prefix=no 17697 need_version=no 17698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17699 soname_spec='$libname$release$shared_ext$major' 17700 shlibpath_var=LD_LIBRARY_PATH 17701 ;; 17702 17703freebsd* | dragonfly*) 17704 # DragonFly does not have aout. When/if they implement a new 17705 # versioning mechanism, adjust this. 17706 if test -x /usr/bin/objformat; then 17707 objformat=`/usr/bin/objformat` 17708 else 17709 case $host_os in 17710 freebsd[23].*) objformat=aout ;; 17711 *) objformat=elf ;; 17712 esac 17713 fi 17714 version_type=freebsd-$objformat 17715 case $version_type in 17716 freebsd-elf*) 17717 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17718 soname_spec='$libname$release$shared_ext$major' 17719 need_version=no 17720 need_lib_prefix=no 17721 ;; 17722 freebsd-*) 17723 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17724 need_version=yes 17725 ;; 17726 esac 17727 shlibpath_var=LD_LIBRARY_PATH 17728 case $host_os in 17729 freebsd2.*) 17730 shlibpath_overrides_runpath=yes 17731 ;; 17732 freebsd3.[01]* | freebsdelf3.[01]*) 17733 shlibpath_overrides_runpath=yes 17734 hardcode_into_libs=yes 17735 ;; 17736 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17737 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17738 shlibpath_overrides_runpath=no 17739 hardcode_into_libs=yes 17740 ;; 17741 *) # from 4.6 on, and DragonFly 17742 shlibpath_overrides_runpath=yes 17743 hardcode_into_libs=yes 17744 ;; 17745 esac 17746 ;; 17747 17748haiku*) 17749 version_type=linux # correct to gnu/linux during the next big refactor 17750 need_lib_prefix=no 17751 need_version=no 17752 dynamic_linker="$host_os runtime_loader" 17753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17754 soname_spec='$libname$release$shared_ext$major' 17755 shlibpath_var=LIBRARY_PATH 17756 shlibpath_overrides_runpath=no 17757 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17758 hardcode_into_libs=yes 17759 ;; 17760 17761hpux9* | hpux10* | hpux11*) 17762 # Give a soname corresponding to the major version so that dld.sl refuses to 17763 # link against other versions. 17764 version_type=sunos 17765 need_lib_prefix=no 17766 need_version=no 17767 case $host_cpu in 17768 ia64*) 17769 shrext_cmds='.so' 17770 hardcode_into_libs=yes 17771 dynamic_linker="$host_os dld.so" 17772 shlibpath_var=LD_LIBRARY_PATH 17773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17775 soname_spec='$libname$release$shared_ext$major' 17776 if test 32 = "$HPUX_IA64_MODE"; then 17777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17778 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17779 else 17780 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17781 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17782 fi 17783 ;; 17784 hppa*64*) 17785 shrext_cmds='.sl' 17786 hardcode_into_libs=yes 17787 dynamic_linker="$host_os dld.sl" 17788 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17791 soname_spec='$libname$release$shared_ext$major' 17792 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17794 ;; 17795 *) 17796 shrext_cmds='.sl' 17797 dynamic_linker="$host_os dld.sl" 17798 shlibpath_var=SHLIB_PATH 17799 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17801 soname_spec='$libname$release$shared_ext$major' 17802 ;; 17803 esac 17804 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17805 postinstall_cmds='chmod 555 $lib' 17806 # or fails outright, so override atomically: 17807 install_override_mode=555 17808 ;; 17809 17810interix[3-9]*) 17811 version_type=linux # correct to gnu/linux during the next big refactor 17812 need_lib_prefix=no 17813 need_version=no 17814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17815 soname_spec='$libname$release$shared_ext$major' 17816 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17817 shlibpath_var=LD_LIBRARY_PATH 17818 shlibpath_overrides_runpath=no 17819 hardcode_into_libs=yes 17820 ;; 17821 17822irix5* | irix6* | nonstopux*) 17823 case $host_os in 17824 nonstopux*) version_type=nonstopux ;; 17825 *) 17826 if test yes = "$lt_cv_prog_gnu_ld"; then 17827 version_type=linux # correct to gnu/linux during the next big refactor 17828 else 17829 version_type=irix 17830 fi ;; 17831 esac 17832 need_lib_prefix=no 17833 need_version=no 17834 soname_spec='$libname$release$shared_ext$major' 17835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17836 case $host_os in 17837 irix5* | nonstopux*) 17838 libsuff= shlibsuff= 17839 ;; 17840 *) 17841 case $LD in # libtool.m4 will add one of these switches to LD 17842 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17843 libsuff= shlibsuff= libmagic=32-bit;; 17844 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17845 libsuff=32 shlibsuff=N32 libmagic=N32;; 17846 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17847 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17848 *) libsuff= shlibsuff= libmagic=never-match;; 17849 esac 17850 ;; 17851 esac 17852 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17853 shlibpath_overrides_runpath=no 17854 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17855 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17856 hardcode_into_libs=yes 17857 ;; 17858 17859# No shared lib support for Linux oldld, aout, or coff. 17860linux*oldld* | linux*aout* | linux*coff*) 17861 dynamic_linker=no 17862 ;; 17863 17864linux*android*) 17865 version_type=none # Android doesn't support versioned libraries. 17866 need_lib_prefix=no 17867 need_version=no 17868 library_names_spec='$libname$release$shared_ext' 17869 soname_spec='$libname$release$shared_ext' 17870 finish_cmds= 17871 shlibpath_var=LD_LIBRARY_PATH 17872 shlibpath_overrides_runpath=yes 17873 17874 # This implies no fast_install, which is unacceptable. 17875 # Some rework will be needed to allow for fast_install 17876 # before this can be enabled. 17877 hardcode_into_libs=yes 17878 17879 dynamic_linker='Android linker' 17880 # Don't embed -rpath directories since the linker doesn't support them. 17881 hardcode_libdir_flag_spec_CXX='-L$libdir' 17882 ;; 17883 17884# This must be glibc/ELF. 17885linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17886 version_type=linux # correct to gnu/linux during the next big refactor 17887 need_lib_prefix=no 17888 need_version=no 17889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17890 soname_spec='$libname$release$shared_ext$major' 17891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17892 shlibpath_var=LD_LIBRARY_PATH 17893 shlibpath_overrides_runpath=no 17894 17895 # Some binutils ld are patched to set DT_RUNPATH 17896 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17897 $as_echo_n "(cached) " >&6 17898else 17899 lt_cv_shlibpath_overrides_runpath=no 17900 save_LDFLAGS=$LDFLAGS 17901 save_libdir=$libdir 17902 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17903 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17905/* end confdefs.h. */ 17906 17907int 17908main () 17909{ 17910 17911 ; 17912 return 0; 17913} 17914_ACEOF 17915if ac_fn_cxx_try_link "$LINENO"; then : 17916 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17917 lt_cv_shlibpath_overrides_runpath=yes 17918fi 17919fi 17920rm -f core conftest.err conftest.$ac_objext \ 17921 conftest$ac_exeext conftest.$ac_ext 17922 LDFLAGS=$save_LDFLAGS 17923 libdir=$save_libdir 17924 17925fi 17926 17927 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17928 17929 # This implies no fast_install, which is unacceptable. 17930 # Some rework will be needed to allow for fast_install 17931 # before this can be enabled. 17932 hardcode_into_libs=yes 17933 17934 # Ideally, we could use ldconfig to report *all* directores which are 17935 # searched for libraries, however this is still not possible. Aside from not 17936 # being certain /sbin/ldconfig is available, command 17937 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17938 # even though it is searched at run-time. Try to do the best guess by 17939 # appending ld.so.conf contents (and includes) to the search path. 17940 if test -f /etc/ld.so.conf; then 17941 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' ' '` 17942 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17943 fi 17944 17945 # We used to test for /lib/ld.so.1 and disable shared libraries on 17946 # powerpc, because MkLinux only supported shared libraries with the 17947 # GNU dynamic linker. Since this was broken with cross compilers, 17948 # most powerpc-linux boxes support dynamic linking these days and 17949 # people can always --disable-shared, the test was removed, and we 17950 # assume the GNU/Linux dynamic linker is in use. 17951 dynamic_linker='GNU/Linux ld.so' 17952 ;; 17953 17954netbsd*) 17955 version_type=sunos 17956 need_lib_prefix=no 17957 need_version=no 17958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17959 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17961 dynamic_linker='NetBSD (a.out) ld.so' 17962 else 17963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17964 soname_spec='$libname$release$shared_ext$major' 17965 dynamic_linker='NetBSD ld.elf_so' 17966 fi 17967 shlibpath_var=LD_LIBRARY_PATH 17968 shlibpath_overrides_runpath=yes 17969 hardcode_into_libs=yes 17970 ;; 17971 17972newsos6) 17973 version_type=linux # correct to gnu/linux during the next big refactor 17974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17975 shlibpath_var=LD_LIBRARY_PATH 17976 shlibpath_overrides_runpath=yes 17977 ;; 17978 17979*nto* | *qnx*) 17980 version_type=qnx 17981 need_lib_prefix=no 17982 need_version=no 17983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17984 soname_spec='$libname$release$shared_ext$major' 17985 shlibpath_var=LD_LIBRARY_PATH 17986 shlibpath_overrides_runpath=no 17987 hardcode_into_libs=yes 17988 dynamic_linker='ldqnx.so' 17989 ;; 17990 17991openbsd* | bitrig*) 17992 version_type=sunos 17993 sys_lib_dlsearch_path_spec=/usr/lib 17994 need_lib_prefix=no 17995 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17996 need_version=no 17997 else 17998 need_version=yes 17999 fi 18000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18002 shlibpath_var=LD_LIBRARY_PATH 18003 shlibpath_overrides_runpath=yes 18004 ;; 18005 18006os2*) 18007 libname_spec='$name' 18008 version_type=windows 18009 shrext_cmds=.dll 18010 need_version=no 18011 need_lib_prefix=no 18012 # OS/2 can only load a DLL with a base name of 8 characters or less. 18013 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18014 v=$($ECHO $release$versuffix | tr -d .-); 18015 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18016 $ECHO $n$v`$shared_ext' 18017 library_names_spec='${libname}_dll.$libext' 18018 dynamic_linker='OS/2 ld.exe' 18019 shlibpath_var=BEGINLIBPATH 18020 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18022 postinstall_cmds='base_file=`basename \$file`~ 18023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18024 dldir=$destdir/`dirname \$dlpath`~ 18025 test -d \$dldir || mkdir -p \$dldir~ 18026 $install_prog $dir/$dlname \$dldir/$dlname~ 18027 chmod a+x \$dldir/$dlname~ 18028 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18029 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18030 fi' 18031 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18032 dlpath=$dir/\$dldll~ 18033 $RM \$dlpath' 18034 ;; 18035 18036osf3* | osf4* | osf5*) 18037 version_type=osf 18038 need_lib_prefix=no 18039 need_version=no 18040 soname_spec='$libname$release$shared_ext$major' 18041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18042 shlibpath_var=LD_LIBRARY_PATH 18043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18045 ;; 18046 18047rdos*) 18048 dynamic_linker=no 18049 ;; 18050 18051solaris*) 18052 version_type=linux # correct to gnu/linux during the next big refactor 18053 need_lib_prefix=no 18054 need_version=no 18055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18056 soname_spec='$libname$release$shared_ext$major' 18057 shlibpath_var=LD_LIBRARY_PATH 18058 shlibpath_overrides_runpath=yes 18059 hardcode_into_libs=yes 18060 # ldd complains unless libraries are executable 18061 postinstall_cmds='chmod +x $lib' 18062 ;; 18063 18064sunos4*) 18065 version_type=sunos 18066 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18068 shlibpath_var=LD_LIBRARY_PATH 18069 shlibpath_overrides_runpath=yes 18070 if test yes = "$with_gnu_ld"; then 18071 need_lib_prefix=no 18072 fi 18073 need_version=yes 18074 ;; 18075 18076sysv4 | sysv4.3*) 18077 version_type=linux # correct to gnu/linux during the next big refactor 18078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18079 soname_spec='$libname$release$shared_ext$major' 18080 shlibpath_var=LD_LIBRARY_PATH 18081 case $host_vendor in 18082 sni) 18083 shlibpath_overrides_runpath=no 18084 need_lib_prefix=no 18085 runpath_var=LD_RUN_PATH 18086 ;; 18087 siemens) 18088 need_lib_prefix=no 18089 ;; 18090 motorola) 18091 need_lib_prefix=no 18092 need_version=no 18093 shlibpath_overrides_runpath=no 18094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18095 ;; 18096 esac 18097 ;; 18098 18099sysv4*MP*) 18100 if test -d /usr/nec; then 18101 version_type=linux # correct to gnu/linux during the next big refactor 18102 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18103 soname_spec='$libname$shared_ext.$major' 18104 shlibpath_var=LD_LIBRARY_PATH 18105 fi 18106 ;; 18107 18108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18109 version_type=sco 18110 need_lib_prefix=no 18111 need_version=no 18112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18113 soname_spec='$libname$release$shared_ext$major' 18114 shlibpath_var=LD_LIBRARY_PATH 18115 shlibpath_overrides_runpath=yes 18116 hardcode_into_libs=yes 18117 if test yes = "$with_gnu_ld"; then 18118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18119 else 18120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18121 case $host_os in 18122 sco3.2v5*) 18123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18124 ;; 18125 esac 18126 fi 18127 sys_lib_dlsearch_path_spec='/usr/lib' 18128 ;; 18129 18130tpf*) 18131 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18132 version_type=linux # correct to gnu/linux during the next big refactor 18133 need_lib_prefix=no 18134 need_version=no 18135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18136 shlibpath_var=LD_LIBRARY_PATH 18137 shlibpath_overrides_runpath=no 18138 hardcode_into_libs=yes 18139 ;; 18140 18141uts4*) 18142 version_type=linux # correct to gnu/linux during the next big refactor 18143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18144 soname_spec='$libname$release$shared_ext$major' 18145 shlibpath_var=LD_LIBRARY_PATH 18146 ;; 18147 18148*) 18149 dynamic_linker=no 18150 ;; 18151esac 18152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18153$as_echo "$dynamic_linker" >&6; } 18154test no = "$dynamic_linker" && can_build_shared=no 18155 18156variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18157if test yes = "$GCC"; then 18158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18159fi 18160 18161if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18162 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18163fi 18164 18165if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18166 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18167fi 18168 18169# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18170configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18171 18172# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18173func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18174 18175# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18176configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18218$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18219hardcode_action_CXX= 18220if test -n "$hardcode_libdir_flag_spec_CXX" || 18221 test -n "$runpath_var_CXX" || 18222 test yes = "$hardcode_automatic_CXX"; then 18223 18224 # We can hardcode non-existent directories. 18225 if test no != "$hardcode_direct_CXX" && 18226 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18227 # have to relink, otherwise we might link with an installed library 18228 # when we should be linking with a yet-to-be-installed one 18229 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18230 test no != "$hardcode_minus_L_CXX"; then 18231 # Linking always hardcodes the temporary library directory. 18232 hardcode_action_CXX=relink 18233 else 18234 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18235 hardcode_action_CXX=immediate 18236 fi 18237else 18238 # We cannot hardcode anything, or else we can only hardcode existing 18239 # directories. 18240 hardcode_action_CXX=unsupported 18241fi 18242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18243$as_echo "$hardcode_action_CXX" >&6; } 18244 18245if test relink = "$hardcode_action_CXX" || 18246 test yes = "$inherit_rpath_CXX"; then 18247 # Fast installation is not supported 18248 enable_fast_install=no 18249elif test yes = "$shlibpath_overrides_runpath" || 18250 test no = "$enable_shared"; then 18251 # Fast installation is not necessary 18252 enable_fast_install=needless 18253fi 18254 18255 18256 18257 18258 18259 18260 18261 fi # test -n "$compiler" 18262 18263 CC=$lt_save_CC 18264 CFLAGS=$lt_save_CFLAGS 18265 LDCXX=$LD 18266 LD=$lt_save_LD 18267 GCC=$lt_save_GCC 18268 with_gnu_ld=$lt_save_with_gnu_ld 18269 lt_cv_path_LDCXX=$lt_cv_path_LD 18270 lt_cv_path_LD=$lt_save_path_LD 18271 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18272 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18273fi # test yes != "$_lt_caught_CXX_error" 18274 18275ac_ext=cpp 18276ac_cpp='$CXXCPP $CPPFLAGS' 18277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 ac_config_commands="$ac_config_commands libtool" 18296 18297 18298 18299 18300# Only expand once: 18301 18302 18303 18304# Checks for header files. 18305 18306for ac_header in limits.h stdint.h stdlib.h sys/time.h unistd.h pthread.h 18307do : 18308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18309ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18310if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18311 cat >>confdefs.h <<_ACEOF 18312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18313_ACEOF 18314 18315fi 18316 18317done 18318 18319 18320# Checks for typedefs, structures, and compiler characteristics. 18321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 18322$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 18323if ${ac_cv_header_stdbool_h+:} false; then : 18324 $as_echo_n "(cached) " >&6 18325else 18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18327/* end confdefs.h. */ 18328 18329 #include <stdbool.h> 18330 #ifndef bool 18331 "error: bool is not defined" 18332 #endif 18333 #ifndef false 18334 "error: false is not defined" 18335 #endif 18336 #if false 18337 "error: false is not 0" 18338 #endif 18339 #ifndef true 18340 "error: true is not defined" 18341 #endif 18342 #if true != 1 18343 "error: true is not 1" 18344 #endif 18345 #ifndef __bool_true_false_are_defined 18346 "error: __bool_true_false_are_defined is not defined" 18347 #endif 18348 18349 struct s { _Bool s: 1; _Bool t; } s; 18350 18351 char a[true == 1 ? 1 : -1]; 18352 char b[false == 0 ? 1 : -1]; 18353 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 18354 char d[(bool) 0.5 == true ? 1 : -1]; 18355 /* See body of main program for 'e'. */ 18356 char f[(_Bool) 0.0 == false ? 1 : -1]; 18357 char g[true]; 18358 char h[sizeof (_Bool)]; 18359 char i[sizeof s.t]; 18360 enum { j = false, k = true, l = false * true, m = true * 256 }; 18361 /* The following fails for 18362 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 18363 _Bool n[m]; 18364 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 18365 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 18366 /* Catch a bug in an HP-UX C compiler. See 18367 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 18368 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 18369 */ 18370 _Bool q = true; 18371 _Bool *pq = &q; 18372 18373int 18374main () 18375{ 18376 18377 bool e = &s; 18378 *pq |= q; 18379 *pq |= ! q; 18380 /* Refer to every declared value, to avoid compiler optimizations. */ 18381 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 18382 + !m + !n + !o + !p + !q + !pq); 18383 18384 ; 18385 return 0; 18386} 18387_ACEOF 18388if ac_fn_cxx_try_compile "$LINENO"; then : 18389 ac_cv_header_stdbool_h=yes 18390else 18391 ac_cv_header_stdbool_h=no 18392fi 18393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18394fi 18395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 18396$as_echo "$ac_cv_header_stdbool_h" >&6; } 18397 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 18398if test "x$ac_cv_type__Bool" = xyes; then : 18399 18400cat >>confdefs.h <<_ACEOF 18401#define HAVE__BOOL 1 18402_ACEOF 18403 18404 18405fi 18406 18407 18408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18409$as_echo_n "checking for inline... " >&6; } 18410if ${ac_cv_c_inline+:} false; then : 18411 $as_echo_n "(cached) " >&6 18412else 18413 ac_cv_c_inline=no 18414for ac_kw in inline __inline__ __inline; do 18415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18416/* end confdefs.h. */ 18417#ifndef __cplusplus 18418typedef int foo_t; 18419static $ac_kw foo_t static_foo () {return 0; } 18420$ac_kw foo_t foo () {return 0; } 18421#endif 18422 18423_ACEOF 18424if ac_fn_cxx_try_compile "$LINENO"; then : 18425 ac_cv_c_inline=$ac_kw 18426fi 18427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18428 test "$ac_cv_c_inline" != no && break 18429done 18430 18431fi 18432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18433$as_echo "$ac_cv_c_inline" >&6; } 18434 18435case $ac_cv_c_inline in 18436 inline | yes) ;; 18437 *) 18438 case $ac_cv_c_inline in 18439 no) ac_val=;; 18440 *) ac_val=$ac_cv_c_inline;; 18441 esac 18442 cat >>confdefs.h <<_ACEOF 18443#ifndef __cplusplus 18444#define inline $ac_val 18445#endif 18446_ACEOF 18447 ;; 18448esac 18449 18450ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 18451case $ac_cv_c_int64_t in #( 18452 no|yes) ;; #( 18453 *) 18454 18455cat >>confdefs.h <<_ACEOF 18456#define int64_t $ac_cv_c_int64_t 18457_ACEOF 18458;; 18459esac 18460 18461ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18462if test "x$ac_cv_type_size_t" = xyes; then : 18463 18464else 18465 18466cat >>confdefs.h <<_ACEOF 18467#define size_t unsigned int 18468_ACEOF 18469 18470fi 18471 18472ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 18473case $ac_cv_c_uint64_t in #( 18474 no|yes) ;; #( 18475 *) 18476 18477$as_echo "#define _UINT64_T 1" >>confdefs.h 18478 18479 18480cat >>confdefs.h <<_ACEOF 18481#define uint64_t $ac_cv_c_uint64_t 18482_ACEOF 18483;; 18484 esac 18485 18486ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 18487if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 18488 18489cat >>confdefs.h <<_ACEOF 18490#define HAVE_PTRDIFF_T 1 18491_ACEOF 18492 18493 18494fi 18495 18496# The cast to long int works around a bug in the HP C Compiler 18497# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18498# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18499# This bug is HP SR number 8606223364. 18500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 18501$as_echo_n "checking size of void *... " >&6; } 18502if ${ac_cv_sizeof_void_p+:} false; then : 18503 $as_echo_n "(cached) " >&6 18504else 18505 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 18506 18507else 18508 if test "$ac_cv_type_void_p" = yes; then 18509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18511as_fn_error 77 "cannot compute sizeof (void *) 18512See \`config.log' for more details" "$LINENO" 5; } 18513 else 18514 ac_cv_sizeof_void_p=0 18515 fi 18516fi 18517 18518fi 18519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 18520$as_echo "$ac_cv_sizeof_void_p" >&6; } 18521 18522 18523 18524cat >>confdefs.h <<_ACEOF 18525#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 18526_ACEOF 18527 18528 18529 18530# Checks for library functions. 18531for ac_header in stdlib.h 18532do : 18533 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 18534if test "x$ac_cv_header_stdlib_h" = xyes; then : 18535 cat >>confdefs.h <<_ACEOF 18536#define HAVE_STDLIB_H 1 18537_ACEOF 18538 18539fi 18540 18541done 18542 18543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 18544$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 18545if ${ac_cv_func_malloc_0_nonnull+:} false; then : 18546 $as_echo_n "(cached) " >&6 18547else 18548 if test "$cross_compiling" = yes; then : 18549 ac_cv_func_malloc_0_nonnull=no 18550else 18551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18552/* end confdefs.h. */ 18553#if defined STDC_HEADERS || defined HAVE_STDLIB_H 18554# include <stdlib.h> 18555#else 18556char *malloc (); 18557#endif 18558 18559int 18560main () 18561{ 18562return ! malloc (0); 18563 ; 18564 return 0; 18565} 18566_ACEOF 18567if ac_fn_cxx_try_run "$LINENO"; then : 18568 ac_cv_func_malloc_0_nonnull=yes 18569else 18570 ac_cv_func_malloc_0_nonnull=no 18571fi 18572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18573 conftest.$ac_objext conftest.beam conftest.$ac_ext 18574fi 18575 18576fi 18577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 18578$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 18579if test $ac_cv_func_malloc_0_nonnull = yes; then : 18580 18581$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 18582 18583else 18584 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 18585 18586 case " $LIBOBJS " in 18587 *" malloc.$ac_objext "* ) ;; 18588 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 18589 ;; 18590esac 18591 18592 18593$as_echo "#define malloc rpl_malloc" >>confdefs.h 18594 18595fi 18596 18597 18598for ac_func in gettimeofday memset pow sqrt 18599do : 18600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18601ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 18602if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18603 cat >>confdefs.h <<_ACEOF 18604#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18605_ACEOF 18606 18607fi 18608done 18609 18610 18611# Check if debug mode is enabled 18612# Check whether --enable-debug was given. 18613if test "${enable_debug+set}" = set; then : 18614 enableval=$enable_debug; 18615$as_echo "#define DEBUG 1" >>confdefs.h 18616 18617else 18618 enable_debug=no 18619 18620fi 18621 18622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug mode" >&5 18623$as_echo_n "checking whether to enable debug mode... " >&6; } 18624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 18625$as_echo "$enable_debug" >&6; } 18626 18627 if test "x$enable_debug" = xyes; then 18628 LIBSEMIGROUPS_DEBUG_TRUE= 18629 LIBSEMIGROUPS_DEBUG_FALSE='#' 18630else 18631 LIBSEMIGROUPS_DEBUG_TRUE='#' 18632 LIBSEMIGROUPS_DEBUG_FALSE= 18633fi 18634 18635 18636# Check whether --enable-verbose was given. 18637if test "${enable_verbose+set}" = set; then : 18638 enableval=$enable_verbose; 18639$as_echo "#define VERBOSE 1" >>confdefs.h 18640 18641else 18642 enable_verbose=no 18643 18644fi 18645 18646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose mode" >&5 18647$as_echo_n "checking whether to enable verbose mode... " >&6; } 18648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_verbose" >&5 18649$as_echo "$enable_verbose" >&6; } 18650 18651# Check if we should use google's dense_hash_map 18652# AC_ARG_ENABLE([densehashmap], 18653# [AS_HELP_STRING([--enable-densehashmap], 18654# [enable google's dense_hash_map])], 18655# [enable_densehashmap=yes], 18656# [enable_densehashmap=no]) 18657# 18658# AC_MSG_CHECKING([whether to use google's dense_hash_map]) 18659# AC_MSG_RESULT([$enable_densehashmap]) 18660# 18661# AS_IF([test "x$enable_densehashmap" = xyes], 18662# [AC_CHECK_FILE([extern/sparsehash-c11/sparsehash/dense_hash_map], 18663# [], 18664# [AC_MSG_WARN([extern/sparsehash-c11 is not available, see https://github.com/sparsehash/sparsehash-c11]) 18665# [enable_densehashmap=no]])]) 18666# 18667# AS_IF([test "x$enable_densehashmap" = xyes], 18668# [AC_DEFINE([DENSEHASHMAP], 18669# [1], 18670# [define if google's dense_hash_map is available])]) 18671# 18672# AM_CONDITIONAL([LIBSEMIGROUPS_DENSEHASHMAP], 18673# [test "x$enable_densehashmap" = xyes]) 18674 18675# Check whether --enable-compile-warnings was given. 18676if test "${enable_compile_warnings+set}" = set; then : 18677 enableval=$enable_compile_warnings; enable_compile_warnings=yes 18678else 18679 enable_compile_warnings=no 18680fi 18681 18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enable compiler warnings" >&5 18683$as_echo_n "checking whether enable compiler warnings... " >&6; } 18684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_compile_warnings" >&5 18685$as_echo "$enable_compile_warnings" >&6; } 18686 18687if test "x$enable_compile_warnings" != "xno"; then : 18688 ax_enable_compile_warnings=yes 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 # Variable names 18699 18700 18701 ac_ext=cpp 18702ac_cpp='$CXXCPP $CPPFLAGS' 18703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18706 18707 18708 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 18709 # flags, otherwise they are always appended to the warn_cxxflags variable, 18710 # and Clang warns on them for every compilation unit. 18711 # If this is passed to GCC, it will explode, so the flag must be enabled 18712 # conditionally. 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5 18714$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; } 18715if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then : 18716 $as_echo_n "(cached) " >&6 18717else 18718 18719 ax_check_save_flags=$CXXFLAGS 18720 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option" 18721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18722/* end confdefs.h. */ 18723 18724int 18725main () 18726{ 18727 18728 ; 18729 return 0; 18730} 18731_ACEOF 18732if ac_fn_cxx_try_compile "$LINENO"; then : 18733 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes 18734else 18735 ax_cv_check_cxxflags___Werror_unknown_warning_option=no 18736fi 18737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18738 CXXFLAGS=$ax_check_save_flags 18739fi 18740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5 18741$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; } 18742if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then : 18743 18744 ax_compiler_flags_test="-Werror=unknown-warning-option" 18745 18746else 18747 18748 ax_compiler_flags_test="" 18749 18750fi 18751 18752 18753 # Check that -Wno-suggest-attribute=format is supported 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wno-suggest-attribute=format" >&5 18755$as_echo_n "checking whether C++ compiler accepts -Wno-suggest-attribute=format... " >&6; } 18756if ${ax_cv_check_cxxflags___Wno_suggest_attribute_format+:} false; then : 18757 $as_echo_n "(cached) " >&6 18758else 18759 18760 ax_check_save_flags=$CXXFLAGS 18761 CXXFLAGS="$CXXFLAGS -Wno-suggest-attribute=format" 18762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18763/* end confdefs.h. */ 18764 18765int 18766main () 18767{ 18768 18769 ; 18770 return 0; 18771} 18772_ACEOF 18773if ac_fn_cxx_try_compile "$LINENO"; then : 18774 ax_cv_check_cxxflags___Wno_suggest_attribute_format=yes 18775else 18776 ax_cv_check_cxxflags___Wno_suggest_attribute_format=no 18777fi 18778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18779 CXXFLAGS=$ax_check_save_flags 18780fi 18781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Wno_suggest_attribute_format" >&5 18782$as_echo "$ax_cv_check_cxxflags___Wno_suggest_attribute_format" >&6; } 18783if test "x$ax_cv_check_cxxflags___Wno_suggest_attribute_format" = xyes; then : 18784 18785 ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format" 18786 18787else 18788 18789 ax_compiler_no_suggest_attribute_flags="" 18790 18791fi 18792 18793 18794 # Base flags 18795 18796 18797 18798 18799for flag in -fno-strict-aliasing -pedantic -Wold-style-cast ; do 18800 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 18801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 18802$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 18803if eval \${$as_CACHEVAR+:} false; then : 18804 $as_echo_n "(cached) " >&6 18805else 18806 18807 ax_check_save_flags=$CXXFLAGS 18808 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18810/* end confdefs.h. */ 18811 18812int 18813main () 18814{ 18815 18816 ; 18817 return 0; 18818} 18819_ACEOF 18820if ac_fn_cxx_try_compile "$LINENO"; then : 18821 eval "$as_CACHEVAR=yes" 18822else 18823 eval "$as_CACHEVAR=no" 18824fi 18825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18826 CXXFLAGS=$ax_check_save_flags 18827fi 18828eval ac_res=\$$as_CACHEVAR 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18830$as_echo "$ac_res" >&6; } 18831if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 18832 18833if ${WARNING_CXXFLAGS+:} false; then : 18834 18835 case " $WARNING_CXXFLAGS " in #( 18836 *" $flag "*) : 18837 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5 18838 (: WARNING_CXXFLAGS already contains $flag) 2>&5 18839 ac_status=$? 18840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18841 test $ac_status = 0; } ;; #( 18842 *) : 18843 18844 as_fn_append WARNING_CXXFLAGS " $flag" 18845 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 18846 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 18847 ac_status=$? 18848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18849 test $ac_status = 0; } 18850 ;; 18851esac 18852 18853else 18854 18855 WARNING_CXXFLAGS=$flag 18856 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 18857 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 18858 ac_status=$? 18859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18860 test $ac_status = 0; } 18861 18862fi 18863 18864else 18865 : 18866fi 18867 18868done 18869 18870 18871 if test "$ax_enable_compile_warnings" != "no"; then : 18872 18873 # "yes" flags 18874 18875 18876 18877 18878for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default ; do 18879 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 18880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 18881$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 18882if eval \${$as_CACHEVAR+:} false; then : 18883 $as_echo_n "(cached) " >&6 18884else 18885 18886 ax_check_save_flags=$CXXFLAGS 18887 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890 18891int 18892main () 18893{ 18894 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899if ac_fn_cxx_try_compile "$LINENO"; then : 18900 eval "$as_CACHEVAR=yes" 18901else 18902 eval "$as_CACHEVAR=no" 18903fi 18904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18905 CXXFLAGS=$ax_check_save_flags 18906fi 18907eval ac_res=\$$as_CACHEVAR 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18909$as_echo "$ac_res" >&6; } 18910if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 18911 18912if ${WARNING_CXXFLAGS+:} false; then : 18913 18914 case " $WARNING_CXXFLAGS " in #( 18915 *" $flag "*) : 18916 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5 18917 (: WARNING_CXXFLAGS already contains $flag) 2>&5 18918 ac_status=$? 18919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18920 test $ac_status = 0; } ;; #( 18921 *) : 18922 18923 as_fn_append WARNING_CXXFLAGS " $flag" 18924 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 18925 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 18926 ac_status=$? 18927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18928 test $ac_status = 0; } 18929 ;; 18930esac 18931 18932else 18933 18934 WARNING_CXXFLAGS=$flag 18935 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 18936 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 18937 ac_status=$? 18938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18939 test $ac_status = 0; } 18940 18941fi 18942 18943else 18944 : 18945fi 18946 18947done 18948 18949 18950fi 18951 if test "$ax_enable_compile_warnings" = "error"; then : 18952 18953 # "error" flags; -Werror has to be appended unconditionally because 18954 # it's not possible to test for 18955 # 18956 # suggest-attribute=format is disabled because it gives too many false 18957 # positives 18958 18959if ${WARNING_CXXFLAGS+:} false; then : 18960 18961 case " $WARNING_CXXFLAGS " in #( 18962 *" -Werror "*) : 18963 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains -Werror"; } >&5 18964 (: WARNING_CXXFLAGS already contains -Werror) 2>&5 18965 ac_status=$? 18966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18967 test $ac_status = 0; } ;; #( 18968 *) : 18969 18970 as_fn_append WARNING_CXXFLAGS " -Werror" 18971 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 18972 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 18973 ac_status=$? 18974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18975 test $ac_status = 0; } 18976 ;; 18977esac 18978 18979else 18980 18981 WARNING_CXXFLAGS=-Werror 18982 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 18983 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 18984 ac_status=$? 18985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18986 test $ac_status = 0; } 18987 18988fi 18989 18990 18991 18992 18993 18994 18995for flag in $ax_compiler_no_suggest_attribute_flags ; do 18996 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 18997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 18998$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 18999if eval \${$as_CACHEVAR+:} false; then : 19000 $as_echo_n "(cached) " >&6 19001else 19002 19003 ax_check_save_flags=$CXXFLAGS 19004 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 19005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19006/* end confdefs.h. */ 19007 19008int 19009main () 19010{ 19011 19012 ; 19013 return 0; 19014} 19015_ACEOF 19016if ac_fn_cxx_try_compile "$LINENO"; then : 19017 eval "$as_CACHEVAR=yes" 19018else 19019 eval "$as_CACHEVAR=no" 19020fi 19021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19022 CXXFLAGS=$ax_check_save_flags 19023fi 19024eval ac_res=\$$as_CACHEVAR 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19026$as_echo "$ac_res" >&6; } 19027if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 19028 19029if ${WARNING_CXXFLAGS+:} false; then : 19030 19031 case " $WARNING_CXXFLAGS " in #( 19032 *" $flag "*) : 19033 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5 19034 (: WARNING_CXXFLAGS already contains $flag) 2>&5 19035 ac_status=$? 19036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19037 test $ac_status = 0; } ;; #( 19038 *) : 19039 19040 as_fn_append WARNING_CXXFLAGS " $flag" 19041 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 19042 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 19043 ac_status=$? 19044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19045 test $ac_status = 0; } 19046 ;; 19047esac 19048 19049else 19050 19051 WARNING_CXXFLAGS=$flag 19052 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 19053 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 19054 ac_status=$? 19055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19056 test $ac_status = 0; } 19057 19058fi 19059 19060else 19061 : 19062fi 19063 19064done 19065 19066 19067fi 19068 19069 # In the flags below, when disabling specific flags, always add *both* 19070 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 19071 # we enable -Werror, disable a flag, and a build bot passes CXXFLAGS=-Wall, 19072 # which effectively turns that flag back on again as an error. 19073 for flag in $WARNING_CXXFLAGS; do 19074 case $flag in #( 19075 -Wno-*=*) : 19076 ;; #( 19077 -Wno-*) : 19078 19079 19080 19081 19082 19083for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 19084 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 19085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 19086$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 19087if eval \${$as_CACHEVAR+:} false; then : 19088 $as_echo_n "(cached) " >&6 19089else 19090 19091 ax_check_save_flags=$CXXFLAGS 19092 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19094/* end confdefs.h. */ 19095 19096int 19097main () 19098{ 19099 19100 ; 19101 return 0; 19102} 19103_ACEOF 19104if ac_fn_cxx_try_compile "$LINENO"; then : 19105 eval "$as_CACHEVAR=yes" 19106else 19107 eval "$as_CACHEVAR=no" 19108fi 19109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19110 CXXFLAGS=$ax_check_save_flags 19111fi 19112eval ac_res=\$$as_CACHEVAR 19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19114$as_echo "$ac_res" >&6; } 19115if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 19116 19117if ${WARNING_CXXFLAGS+:} false; then : 19118 19119 case " $WARNING_CXXFLAGS " in #( 19120 *" $flag "*) : 19121 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS already contains \$flag"; } >&5 19122 (: WARNING_CXXFLAGS already contains $flag) 2>&5 19123 ac_status=$? 19124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19125 test $ac_status = 0; } ;; #( 19126 *) : 19127 19128 as_fn_append WARNING_CXXFLAGS " $flag" 19129 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 19130 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 19131 ac_status=$? 19132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19133 test $ac_status = 0; } 19134 ;; 19135esac 19136 19137else 19138 19139 WARNING_CXXFLAGS=$flag 19140 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARNING_CXXFLAGS=\"\$WARNING_CXXFLAGS\""; } >&5 19141 (: WARNING_CXXFLAGS="$WARNING_CXXFLAGS") 2>&5 19142 ac_status=$? 19143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19144 test $ac_status = 0; } 19145 19146fi 19147 19148else 19149 : 19150fi 19151 19152done 19153 19154 ;; #( 19155 *) : 19156 ;; 19157esac 19158 done 19159 19160 ac_ext=cpp 19161ac_cpp='$CXXCPP $CPPFLAGS' 19162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19165 19166 19167 # Substitute the variables 19168 19169 19170 19171fi 19172 19173 19174# Check if code coverage mode is enabled 19175 19176 19177 19178 # allow to override gcov location 19179 19180# Check whether --with-gcov was given. 19181if test "${with_gcov+set}" = set; then : 19182 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov 19183else 19184 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov 19185fi 19186 19187 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5 19189$as_echo_n "checking whether to build with code coverage support... " >&6; } 19190 # Check whether --enable-code-coverage was given. 19191if test "${enable_code_coverage+set}" = set; then : 19192 enableval=$enable_code_coverage; 19193else 19194 enable_code_coverage=no 19195fi 19196 19197 19198 if test x$enable_code_coverage = xyes; then 19199 CODE_COVERAGE_ENABLED_TRUE= 19200 CODE_COVERAGE_ENABLED_FALSE='#' 19201else 19202 CODE_COVERAGE_ENABLED_TRUE='#' 19203 CODE_COVERAGE_ENABLED_FALSE= 19204fi 19205 19206 CODE_COVERAGE_ENABLED=$enable_code_coverage 19207 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5 19209$as_echo "$enable_code_coverage" >&6; } 19210 19211 if test "$enable_code_coverage" = "yes" ; then : 19212 19213 # check for gcov 19214 if test -n "$ac_tool_prefix"; then 19215 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 19216set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 19217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19218$as_echo_n "checking for $ac_word... " >&6; } 19219if ${ac_cv_prog_GCOV+:} false; then : 19220 $as_echo_n "(cached) " >&6 19221else 19222 if test -n "$GCOV"; then 19223 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 19224else 19225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19226for as_dir in $PATH 19227do 19228 IFS=$as_save_IFS 19229 test -z "$as_dir" && as_dir=. 19230 for ac_exec_ext in '' $ac_executable_extensions; do 19231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19232 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 19233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19234 break 2 19235 fi 19236done 19237 done 19238IFS=$as_save_IFS 19239 19240fi 19241fi 19242GCOV=$ac_cv_prog_GCOV 19243if test -n "$GCOV"; then 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 19245$as_echo "$GCOV" >&6; } 19246else 19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19248$as_echo "no" >&6; } 19249fi 19250 19251 19252fi 19253if test -z "$ac_cv_prog_GCOV"; then 19254 ac_ct_GCOV=$GCOV 19255 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 19256set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 19257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19258$as_echo_n "checking for $ac_word... " >&6; } 19259if ${ac_cv_prog_ac_ct_GCOV+:} false; then : 19260 $as_echo_n "(cached) " >&6 19261else 19262 if test -n "$ac_ct_GCOV"; then 19263 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 19264else 19265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19266for as_dir in $PATH 19267do 19268 IFS=$as_save_IFS 19269 test -z "$as_dir" && as_dir=. 19270 for ac_exec_ext in '' $ac_executable_extensions; do 19271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19272 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 19273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19274 break 2 19275 fi 19276done 19277 done 19278IFS=$as_save_IFS 19279 19280fi 19281fi 19282ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 19283if test -n "$ac_ct_GCOV"; then 19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 19285$as_echo "$ac_ct_GCOV" >&6; } 19286else 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19288$as_echo "no" >&6; } 19289fi 19290 19291 if test "x$ac_ct_GCOV" = x; then 19292 GCOV=":" 19293 else 19294 case $cross_compiling:$ac_tool_warned in 19295yes:) 19296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19298ac_tool_warned=yes ;; 19299esac 19300 GCOV=$ac_ct_GCOV 19301 fi 19302else 19303 GCOV="$ac_cv_prog_GCOV" 19304fi 19305 19306 if test "X$GCOV" = "X:"; then : 19307 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5 19308fi 19309 19310 19311 if test "$GCC" = "no" ; then : 19312 19313 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5 19314 19315fi 19316 19317 # Extract the first word of "lcov", so it can be a program name with args. 19318set dummy lcov; ac_word=$2 19319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19320$as_echo_n "checking for $ac_word... " >&6; } 19321if ${ac_cv_prog_LCOV+:} false; then : 19322 $as_echo_n "(cached) " >&6 19323else 19324 if test -n "$LCOV"; then 19325 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 19326else 19327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19328for as_dir in $PATH 19329do 19330 IFS=$as_save_IFS 19331 test -z "$as_dir" && as_dir=. 19332 for ac_exec_ext in '' $ac_executable_extensions; do 19333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19334 ac_cv_prog_LCOV="lcov" 19335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19336 break 2 19337 fi 19338done 19339 done 19340IFS=$as_save_IFS 19341 19342fi 19343fi 19344LCOV=$ac_cv_prog_LCOV 19345if test -n "$LCOV"; then 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 19347$as_echo "$LCOV" >&6; } 19348else 19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19350$as_echo "no" >&6; } 19351fi 19352 19353 19354 # Extract the first word of "genhtml", so it can be a program name with args. 19355set dummy genhtml; ac_word=$2 19356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19357$as_echo_n "checking for $ac_word... " >&6; } 19358if ${ac_cv_prog_GENHTML+:} false; then : 19359 $as_echo_n "(cached) " >&6 19360else 19361 if test -n "$GENHTML"; then 19362 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 19363else 19364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19365for as_dir in $PATH 19366do 19367 IFS=$as_save_IFS 19368 test -z "$as_dir" && as_dir=. 19369 for ac_exec_ext in '' $ac_executable_extensions; do 19370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19371 ac_cv_prog_GENHTML="genhtml" 19372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19373 break 2 19374 fi 19375done 19376 done 19377IFS=$as_save_IFS 19378 19379fi 19380fi 19381GENHTML=$ac_cv_prog_GENHTML 19382if test -n "$GENHTML"; then 19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 19384$as_echo "$GENHTML" >&6; } 19385else 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19387$as_echo "no" >&6; } 19388fi 19389 19390 19391 19392 if test -z "$LCOV" ; then : 19393 19394 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5 19395 19396fi 19397 19398 if test -z "$GENHTML" ; then : 19399 19400 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 19401 19402fi 19403 19404 CODE_COVERAGE_CPPFLAGS="-DNDEBUG" 19405 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 19406 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 19407 CODE_COVERAGE_LIBS="-lgcov" 19408 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS" 19409 19410 19411 19412 19413 19414 19415 19416 CODE_COVERAGE_RULES_CHECK=' 19417 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check 19418 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture 19419' 19420 CODE_COVERAGE_RULES_CAPTURE=' 19421 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS) 19422 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS) 19423 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp 19424 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS) 19425 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html" 19426' 19427 CODE_COVERAGE_RULES_CLEAN=' 19428clean: code-coverage-clean 19429distclean: code-coverage-clean 19430code-coverage-clean: 19431 -$(LCOV) --directory $(top_builddir) -z 19432 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY) 19433 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete 19434' 19435 19436else 19437 19438 CODE_COVERAGE_RULES_CHECK=' 19439 @echo "Need to reconfigure with --enable-code-coverage" 19440' 19441 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK" 19442 CODE_COVERAGE_RULES_CLEAN='' 19443 19444fi 19445 19446CODE_COVERAGE_RULES=' 19447# Code coverage 19448# 19449# Optional: 19450# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting. 19451# Multiple directories may be specified, separated by whitespace. 19452# (Default: $(top_builddir)) 19453# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated 19454# by lcov for code coverage. (Default: 19455# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info) 19456# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage 19457# reports to be created. (Default: 19458# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage) 19459# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage, 19460# set to 0 to disable it and leave empty to stay with the default. 19461# (Default: empty) 19462# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov 19463# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE) 19464# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov 19465# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) 19466# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov 19467# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the 19468# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) 19469# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov 19470# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) 19471# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering 19472# lcov instance. (Default: empty) 19473# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov 19474# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) 19475# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the 19476# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE) 19477# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml 19478# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) 19479# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore 19480# 19481# The generated report will be titled using the $(PACKAGE_NAME) and 19482# $(PACKAGE_VERSION). In order to add the current git hash to the title, 19483# use the git-version-gen script, available online. 19484 19485# Optional variables 19486CODE_COVERAGE_DIRECTORY ?= $(top_builddir) 19487CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info 19488CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage 19489CODE_COVERAGE_BRANCH_COVERAGE ?= 19490CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\ 19491--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE)) 19492CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) 19493CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)" 19494CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) 19495CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) 19496CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?= 19497CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) 19498CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\ 19499$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\ 19500--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE)) 19501CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) 19502CODE_COVERAGE_IGNORE_PATTERN ?= 19503 19504GITIGNOREFILES ?= 19505GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY) 19506 19507code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V)) 19508code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY)) 19509code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\ 19510 $(CODE_COVERAGE_OUTPUT_FILE); 19511code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V)) 19512code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY)) 19513code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\ 19514 $(CODE_COVERAGE_IGNORE_PATTERN); 19515code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V)) 19516code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY)) 19517code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY); 19518code_coverage_quiet = $(code_coverage_quiet_$(V)) 19519code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY)) 19520code_coverage_quiet_0 = --quiet 19521 19522# sanitizes the test-name: replaces with underscores: dashes and dots 19523code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1))) 19524 19525# Use recursive makes in order to ignore errors during check 19526check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"' 19527 19528# Capture code coverage data 19529code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"' 19530 19531# Hook rule executed before code-coverage-capture, overridable by the user 19532code-coverage-capture-hook: 19533 19534'"$CODE_COVERAGE_RULES_CLEAN"' 19535 19536A''M_DISTCHECK_CONFIGURE_FLAGS ?= 19537A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage 19538 19539.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean 19540' 19541 19542 19543 19544 19545 19546# Check if HPCombi is enable, and available 19547 19548 # Check whether --enable-hpcombi was given. 19549if test "${enable_hpcombi+set}" = set; then : 19550 enableval=$enable_hpcombi; 19551else 19552 enable_hpcombi=yes 19553 19554fi 19555 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable HPCombi" >&5 19557$as_echo_n "checking whether to enable HPCombi... " >&6; } 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19559$as_echo "$enable_hpcombi" >&6; } 19560 19561 if test "x$enable_hpcombi" = xyes; then : 19562 as_ac_File=`$as_echo "ac_cv_file_$srcdir/extern/HPCombi/VERSION" | $as_tr_sh` 19563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/extern/HPCombi/VERSION" >&5 19564$as_echo_n "checking for $srcdir/extern/HPCombi/VERSION... " >&6; } 19565if eval \${$as_ac_File+:} false; then : 19566 $as_echo_n "(cached) " >&6 19567else 19568 test "$cross_compiling" = yes && 19569 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19570if test -r "$srcdir/extern/HPCombi/VERSION"; then 19571 eval "$as_ac_File=yes" 19572else 19573 eval "$as_ac_File=no" 19574fi 19575fi 19576eval ac_res=\$$as_ac_File 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19578$as_echo "$ac_res" >&6; } 19579if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 19580 19581else 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HPCombi is not available" >&5 19583$as_echo "$as_me: WARNING: HPCombi is not available" >&2;} 19584 enable_hpcombi=no 19585fi 19586 19587fi 19588 19589 if test "x$enable_hpcombi" = xyes; then : 19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the required version of HPCombi" >&5 19591$as_echo_n "checking the required version of HPCombi... " >&6; } 19592 REQUIRED_HPCOMBI="$(cat $srcdir/extern/.HPCombi_VERSION)" 19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REQUIRED_HPCOMBI" >&5 19594$as_echo "$REQUIRED_HPCOMBI" >&6; } 19595fi 19596 19597 if test "x$enable_hpcombi" = xyes; then : 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of HPCombi that's present" >&5 19599$as_echo_n "checking the version of HPCombi that's present... " >&6; } 19600 FOUND_HPCOMBI="$(cat $srcdir/extern/HPCombi/VERSION)" 19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_HPCOMBI" >&5 19602$as_echo "$FOUND_HPCOMBI" >&6; } 19603fi 19604 19605 if test "x$enable_hpcombi" = xyes; then : 19606 19607 19608 19609 # Used to indicate true or false condition 19610 ax_compare_version=false 19611 19612 # Convert the two version strings to be compared into a format that 19613 # allows a simple string comparison. The end result is that a version 19614 # string of the form 1.12.5-r617 will be converted to the form 19615 # 0001001200050617. In other words, each number is zero padded to four 19616 # digits, and non digits are removed. 19617 19618 ax_compare_version_A=`echo "$FOUND_HPCOMBI" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 19619 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 19620 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 19621 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 19622 -e 's/[^0-9]//g'` 19623 19624 19625 ax_compare_version_B=`echo "$REQUIRED_HPCOMBI" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 19626 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 19627 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 19628 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 19629 -e 's/[^0-9]//g'` 19630 19631 19632 ax_compare_version=`echo "x$ax_compare_version_A 19633x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 19634 19635 19636 19637 if test "$ax_compare_version" = "true" ; then 19638 : 19639 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the incorrect version of HPCombi is present, HPCombi is disabled" >&5 19640$as_echo "$as_me: WARNING: the incorrect version of HPCombi is present, HPCombi is disabled" >&2;} 19641 enable_hpcombi=no 19642 fi 19643 19644fi 19645 19646 if test "x$enable_hpcombi" = xyes; then : 19647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -march=native" >&5 19648$as_echo_n "checking whether C++ compiler accepts -march=native... " >&6; } 19649if ${ax_cv_check_cxxflags___march_native+:} false; then : 19650 $as_echo_n "(cached) " >&6 19651else 19652 19653 ax_check_save_flags=$CXXFLAGS 19654 CXXFLAGS="$CXXFLAGS -march=native" 19655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19656/* end confdefs.h. */ 19657 19658int 19659main () 19660{ 19661 19662 ; 19663 return 0; 19664} 19665_ACEOF 19666if ac_fn_cxx_try_compile "$LINENO"; then : 19667 ax_cv_check_cxxflags___march_native=yes 19668else 19669 ax_cv_check_cxxflags___march_native=no 19670fi 19671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19672 CXXFLAGS=$ax_check_save_flags 19673fi 19674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___march_native" >&5 19675$as_echo "$ax_cv_check_cxxflags___march_native" >&6; } 19676if test "x$ax_cv_check_cxxflags___march_native" = xyes; then : 19677 19678if ${CXXFLAGS+:} false; then : 19679 19680 case " $CXXFLAGS " in #( 19681 *" -march=native "*) : 19682 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -march=native"; } >&5 19683 (: CXXFLAGS already contains -march=native) 2>&5 19684 ac_status=$? 19685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19686 test $ac_status = 0; } ;; #( 19687 *) : 19688 19689 as_fn_append CXXFLAGS " -march=native" 19690 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 19691 (: CXXFLAGS="$CXXFLAGS") 2>&5 19692 ac_status=$? 19693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19694 test $ac_status = 0; } 19695 ;; 19696esac 19697 19698else 19699 19700 CXXFLAGS=-march=native 19701 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 19702 (: CXXFLAGS="$CXXFLAGS") 2>&5 19703 ac_status=$? 19704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19705 test $ac_status = 0; } 19706 19707fi 19708 19709else 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flag -march=native not supported, HPCombi is disabled" >&5 19711$as_echo "$as_me: WARNING: flag -march=native not supported, HPCombi is disabled" >&2;} 19712 enable_hpcombi=no 19713fi 19714 19715fi 19716 19717 if test "x$enable_hpcombi" = xyes; then : 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -flax-vector-conversions" >&5 19719$as_echo_n "checking whether C++ compiler accepts -flax-vector-conversions... " >&6; } 19720if ${ax_cv_check_cxxflags___flax_vector_conversions+:} false; then : 19721 $as_echo_n "(cached) " >&6 19722else 19723 19724 ax_check_save_flags=$CXXFLAGS 19725 CXXFLAGS="$CXXFLAGS -flax-vector-conversions" 19726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19727/* end confdefs.h. */ 19728 19729int 19730main () 19731{ 19732 19733 ; 19734 return 0; 19735} 19736_ACEOF 19737if ac_fn_cxx_try_compile "$LINENO"; then : 19738 ax_cv_check_cxxflags___flax_vector_conversions=yes 19739else 19740 ax_cv_check_cxxflags___flax_vector_conversions=no 19741fi 19742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19743 CXXFLAGS=$ax_check_save_flags 19744fi 19745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___flax_vector_conversions" >&5 19746$as_echo "$ax_cv_check_cxxflags___flax_vector_conversions" >&6; } 19747if test "x$ax_cv_check_cxxflags___flax_vector_conversions" = xyes; then : 19748 19749if ${CXXFLAGS+:} false; then : 19750 19751 case " $CXXFLAGS " in #( 19752 *" -flax-vector-conversions "*) : 19753 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains -flax-vector-conversions"; } >&5 19754 (: CXXFLAGS already contains -flax-vector-conversions) 2>&5 19755 ac_status=$? 19756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19757 test $ac_status = 0; } ;; #( 19758 *) : 19759 19760 as_fn_append CXXFLAGS " -flax-vector-conversions" 19761 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 19762 (: CXXFLAGS="$CXXFLAGS") 2>&5 19763 ac_status=$? 19764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19765 test $ac_status = 0; } 19766 ;; 19767esac 19768 19769else 19770 19771 CXXFLAGS=-flax-vector-conversions 19772 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5 19773 (: CXXFLAGS="$CXXFLAGS") 2>&5 19774 ac_status=$? 19775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19776 test $ac_status = 0; } 19777 19778fi 19779 19780else 19781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flag -flax-vector-conversions not supported, HPCombi is disabled" >&5 19782$as_echo "$as_me: WARNING: flag -flax-vector-conversions not supported, HPCombi is disabled" >&2;} 19783 enable_hpcombi=no 19784fi 19785 19786fi 19787 19788 if test "x$enable_hpcombi" = xyes; then : 19789 for ac_header in x86intrin.h 19790do : 19791 ac_fn_cxx_check_header_mongrel "$LINENO" "x86intrin.h" "ac_cv_header_x86intrin_h" "$ac_includes_default" 19792if test "x$ac_cv_header_x86intrin_h" = xyes; then : 19793 cat >>confdefs.h <<_ACEOF 19794#define HAVE_X86INTRIN_H 1 19795_ACEOF 19796 19797else 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header x86intrin.h is required for HPCombi, HPCombi is disabled" >&5 19799$as_echo "$as_me: WARNING: header x86intrin.h is required for HPCombi, HPCombi is disabled" >&2;} 19800 enable_hpcombi=no 19801fi 19802 19803done 19804 19805fi 19806 19807 if test "x$enable_hpcombi" = xyes; then : 19808 enable_hpcombi_before_builtin_check=yes 19809fi 19810 19811 if test "x$enable_hpcombi" = xyes; then : 19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_blendv_epi8" >&5 19813$as_echo_n "checking for _mm_blendv_epi8... " >&6; } 19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19815/* end confdefs.h. */ 19816#include <x86intrin.h> 19817int 19818main () 19819{ 19820_mm_blendv_epi8(__m128i{},__m128i{},__m128i{}); 19821 19822 19823 ; 19824 return 0; 19825} 19826_ACEOF 19827if ac_fn_cxx_try_link "$LINENO"; then : 19828 19829else 19830 enable_hpcombi=no 19831 19832fi 19833rm -f core conftest.err conftest.$ac_objext \ 19834 conftest$ac_exeext conftest.$ac_ext 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19836$as_echo "$enable_hpcombi" >&6; } 19837 19838fi 19839 if test "x$enable_hpcombi" = xyes; then : 19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_cmpeq_epi8" >&5 19841$as_echo_n "checking for _mm_cmpeq_epi8... " >&6; } 19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19843/* end confdefs.h. */ 19844#include <x86intrin.h> 19845int 19846main () 19847{ 19848_mm_cmpeq_epi8(__m128i{},__m128i{}); 19849 19850 19851 ; 19852 return 0; 19853} 19854_ACEOF 19855if ac_fn_cxx_try_link "$LINENO"; then : 19856 19857else 19858 enable_hpcombi=no 19859 19860fi 19861rm -f core conftest.err conftest.$ac_objext \ 19862 conftest$ac_exeext conftest.$ac_ext 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19864$as_echo "$enable_hpcombi" >&6; } 19865 19866fi 19867 if test "x$enable_hpcombi" = xyes; then : 19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_cmpestri" >&5 19869$as_echo_n "checking for _mm_cmpestri... " >&6; } 19870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19871/* end confdefs.h. */ 19872#include <x86intrin.h> 19873int 19874main () 19875{ 19876_mm_cmpestri(__m128i{},1,__m128i{},1,1); 19877 19878 19879 ; 19880 return 0; 19881} 19882_ACEOF 19883if ac_fn_cxx_try_link "$LINENO"; then : 19884 19885else 19886 enable_hpcombi=no 19887 19888fi 19889rm -f core conftest.err conftest.$ac_objext \ 19890 conftest$ac_exeext conftest.$ac_ext 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19892$as_echo "$enable_hpcombi" >&6; } 19893 19894fi 19895 if test "x$enable_hpcombi" = xyes; then : 19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_cmpestrm" >&5 19897$as_echo_n "checking for _mm_cmpestrm... " >&6; } 19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19899/* end confdefs.h. */ 19900#include <x86intrin.h> 19901int 19902main () 19903{ 19904_mm_cmpestrm(__m128i{},1,__m128i{},1,1); 19905 19906 19907 ; 19908 return 0; 19909} 19910_ACEOF 19911if ac_fn_cxx_try_link "$LINENO"; then : 19912 19913else 19914 enable_hpcombi=no 19915 19916fi 19917rm -f core conftest.err conftest.$ac_objext \ 19918 conftest$ac_exeext conftest.$ac_ext 19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19920$as_echo "$enable_hpcombi" >&6; } 19921 19922fi 19923 if test "x$enable_hpcombi" = xyes; then : 19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_cmplt_epi8" >&5 19925$as_echo_n "checking for _mm_cmplt_epi8... " >&6; } 19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19927/* end confdefs.h. */ 19928#include <x86intrin.h> 19929int 19930main () 19931{ 19932_mm_cmplt_epi8(__m128i{},__m128i{}); 19933 19934 19935 ; 19936 return 0; 19937} 19938_ACEOF 19939if ac_fn_cxx_try_link "$LINENO"; then : 19940 19941else 19942 enable_hpcombi=no 19943 19944fi 19945rm -f core conftest.err conftest.$ac_objext \ 19946 conftest$ac_exeext conftest.$ac_ext 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19948$as_echo "$enable_hpcombi" >&6; } 19949 19950fi 19951 if test "x$enable_hpcombi" = xyes; then : 19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_extract_epi64" >&5 19953$as_echo_n "checking for _mm_extract_epi64... " >&6; } 19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19955/* end confdefs.h. */ 19956#include <x86intrin.h> 19957int 19958main () 19959{ 19960_mm_extract_epi64(__m128i{},1); 19961 19962 19963 ; 19964 return 0; 19965} 19966_ACEOF 19967if ac_fn_cxx_try_link "$LINENO"; then : 19968 19969else 19970 enable_hpcombi=no 19971 19972fi 19973rm -f core conftest.err conftest.$ac_objext \ 19974 conftest$ac_exeext conftest.$ac_ext 19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 19976$as_echo "$enable_hpcombi" >&6; } 19977 19978fi 19979 if test "x$enable_hpcombi" = xyes; then : 19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_max_epi8" >&5 19981$as_echo_n "checking for _mm_max_epi8... " >&6; } 19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19983/* end confdefs.h. */ 19984#include <x86intrin.h> 19985int 19986main () 19987{ 19988_mm_max_epi8(__m128i{},__m128i{}); 19989 19990 19991 ; 19992 return 0; 19993} 19994_ACEOF 19995if ac_fn_cxx_try_link "$LINENO"; then : 19996 19997else 19998 enable_hpcombi=no 19999 20000fi 20001rm -f core conftest.err conftest.$ac_objext \ 20002 conftest$ac_exeext conftest.$ac_ext 20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20004$as_echo "$enable_hpcombi" >&6; } 20005 20006fi 20007 if test "x$enable_hpcombi" = xyes; then : 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_max_epu8" >&5 20009$as_echo_n "checking for _mm_max_epu8... " >&6; } 20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20011/* end confdefs.h. */ 20012#include <x86intrin.h> 20013int 20014main () 20015{ 20016_mm_max_epu8(__m128i{},__m128i{}); 20017 20018 20019 ; 20020 return 0; 20021} 20022_ACEOF 20023if ac_fn_cxx_try_link "$LINENO"; then : 20024 20025else 20026 enable_hpcombi=no 20027 20028fi 20029rm -f core conftest.err conftest.$ac_objext \ 20030 conftest$ac_exeext conftest.$ac_ext 20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20032$as_echo "$enable_hpcombi" >&6; } 20033 20034fi 20035 if test "x$enable_hpcombi" = xyes; then : 20036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_min_epi8" >&5 20037$as_echo_n "checking for _mm_min_epi8... " >&6; } 20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20039/* end confdefs.h. */ 20040#include <x86intrin.h> 20041int 20042main () 20043{ 20044_mm_min_epi8(__m128i{},__m128i{}); 20045 20046 20047 ; 20048 return 0; 20049} 20050_ACEOF 20051if ac_fn_cxx_try_link "$LINENO"; then : 20052 20053else 20054 enable_hpcombi=no 20055 20056fi 20057rm -f core conftest.err conftest.$ac_objext \ 20058 conftest$ac_exeext conftest.$ac_ext 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20060$as_echo "$enable_hpcombi" >&6; } 20061 20062fi 20063 if test "x$enable_hpcombi" = xyes; then : 20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_min_epu8" >&5 20065$as_echo_n "checking for _mm_min_epu8... " >&6; } 20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20067/* end confdefs.h. */ 20068#include <x86intrin.h> 20069int 20070main () 20071{ 20072_mm_min_epu8(__m128i{},__m128i{}); 20073 20074 20075 ; 20076 return 0; 20077} 20078_ACEOF 20079if ac_fn_cxx_try_link "$LINENO"; then : 20080 20081else 20082 enable_hpcombi=no 20083 20084fi 20085rm -f core conftest.err conftest.$ac_objext \ 20086 conftest$ac_exeext conftest.$ac_ext 20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20088$as_echo "$enable_hpcombi" >&6; } 20089 20090fi 20091 if test "x$enable_hpcombi" = xyes; then : 20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_movemask_epi8" >&5 20093$as_echo_n "checking for _mm_movemask_epi8... " >&6; } 20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20095/* end confdefs.h. */ 20096#include <x86intrin.h> 20097int 20098main () 20099{ 20100_mm_movemask_epi8(__m128i{}); 20101 20102 20103 ; 20104 return 0; 20105} 20106_ACEOF 20107if ac_fn_cxx_try_link "$LINENO"; then : 20108 20109else 20110 enable_hpcombi=no 20111 20112fi 20113rm -f core conftest.err conftest.$ac_objext \ 20114 conftest$ac_exeext conftest.$ac_ext 20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20116$as_echo "$enable_hpcombi" >&6; } 20117 20118fi 20119 if test "x$enable_hpcombi" = xyes; then : 20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_popcnt_u32" >&5 20121$as_echo_n "checking for _mm_popcnt_u32... " >&6; } 20122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20123/* end confdefs.h. */ 20124#include <x86intrin.h> 20125int 20126main () 20127{ 20128_mm_popcnt_u32({}); 20129 20130 20131 ; 20132 return 0; 20133} 20134_ACEOF 20135if ac_fn_cxx_try_link "$LINENO"; then : 20136 20137else 20138 enable_hpcombi=no 20139 20140fi 20141rm -f core conftest.err conftest.$ac_objext \ 20142 conftest$ac_exeext conftest.$ac_ext 20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20144$as_echo "$enable_hpcombi" >&6; } 20145 20146fi 20147 if test "x$enable_hpcombi" = xyes; then : 20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_set_epi64x" >&5 20149$as_echo_n "checking for _mm_set_epi64x... " >&6; } 20150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20151/* end confdefs.h. */ 20152#include <x86intrin.h> 20153int 20154main () 20155{ 20156_mm_set_epi64x(1,1); 20157 20158 20159 ; 20160 return 0; 20161} 20162_ACEOF 20163if ac_fn_cxx_try_link "$LINENO"; then : 20164 20165else 20166 enable_hpcombi=no 20167 20168fi 20169rm -f core conftest.err conftest.$ac_objext \ 20170 conftest$ac_exeext conftest.$ac_ext 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20172$as_echo "$enable_hpcombi" >&6; } 20173 20174fi 20175 if test "x$enable_hpcombi" = xyes; then : 20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_shuffle_epi8" >&5 20177$as_echo_n "checking for _mm_shuffle_epi8... " >&6; } 20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20179/* end confdefs.h. */ 20180#include <x86intrin.h> 20181int 20182main () 20183{ 20184_mm_shuffle_epi8(__m128i{},__m128i{}); 20185 20186 20187 ; 20188 return 0; 20189} 20190_ACEOF 20191if ac_fn_cxx_try_link "$LINENO"; then : 20192 20193else 20194 enable_hpcombi=no 20195 20196fi 20197rm -f core conftest.err conftest.$ac_objext \ 20198 conftest$ac_exeext conftest.$ac_ext 20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20200$as_echo "$enable_hpcombi" >&6; } 20201 20202fi 20203 if test "x$enable_hpcombi" = xyes; then : 20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_slli_epi32" >&5 20205$as_echo_n "checking for _mm_slli_epi32... " >&6; } 20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20207/* end confdefs.h. */ 20208#include <x86intrin.h> 20209int 20210main () 20211{ 20212_mm_slli_epi32(__m128i{},1); 20213 20214 20215 ; 20216 return 0; 20217} 20218_ACEOF 20219if ac_fn_cxx_try_link "$LINENO"; then : 20220 20221else 20222 enable_hpcombi=no 20223 20224fi 20225rm -f core conftest.err conftest.$ac_objext \ 20226 conftest$ac_exeext conftest.$ac_ext 20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hpcombi" >&5 20228$as_echo "$enable_hpcombi" >&6; } 20229 20230fi 20231 20232 if test "x$enable_hpcombi_before_builtin_check" = xyes; then : 20233 if test "x$enable_hpcombi" = xno; then : 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler builtin not supported, HPCombi is disabled" >&5 20235$as_echo "$as_me: WARNING: compiler builtin not supported, HPCombi is disabled" >&2;} 20236fi 20237fi 20238 20239 if test "x$enable_hpcombi" = xyes; then : 20240 20241$as_echo "#define HPCOMBI 1" >>confdefs.h 20242 20243fi 20244 20245 if test "x$enable_hpcombi" = xyes; then 20246 LIBSEMIGROUPS_HPCOMBI_TRUE= 20247 LIBSEMIGROUPS_HPCOMBI_FALSE='#' 20248else 20249 LIBSEMIGROUPS_HPCOMBI_TRUE='#' 20250 LIBSEMIGROUPS_HPCOMBI_FALSE= 20251fi 20252 20253 20254 if test "x$enable_hpcombi" = xyes; then : 20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPCOMBI_CONSTEXPR_FUN_ARGS" >&5 20256$as_echo_n "checking for HPCOMBI_CONSTEXPR_FUN_ARGS... " >&6; } 20257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20258/* end confdefs.h. */ 20259using T = int; constexpr int exec(T f()) { return f(); } 20260 constexpr int foo() { return 1; } 20261 static_assert(exec(foo) == 1, "Failed exec"); 20262 20263int 20264main () 20265{ 20266 20267 ; 20268 return 0; 20269} 20270_ACEOF 20271if ac_fn_cxx_try_compile "$LINENO"; then : 20272 hpcombi_constexpr_fun_args=yes 20273else 20274 hpcombi_constexpr_fun_args=no 20275 20276fi 20277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hpcombi_constexpr_fun_args" >&5 20279$as_echo "$hpcombi_constexpr_fun_args" >&6; } 20280fi 20281 20282 if test "x$hpcombi_constexpr_fun_args" = xyes; then 20283 HPCOMBI_CONSTEXPR_FUN_ARGS_TRUE= 20284 HPCOMBI_CONSTEXPR_FUN_ARGS_FALSE='#' 20285else 20286 HPCOMBI_CONSTEXPR_FUN_ARGS_TRUE='#' 20287 HPCOMBI_CONSTEXPR_FUN_ARGS_FALSE= 20288fi 20289 20290 20291 20292 20293# Check if the vendored fmt should be used or not 20294 20295 20296 20297 20298 20299 20300 20301if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20302 if test -n "$ac_tool_prefix"; then 20303 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20304set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20306$as_echo_n "checking for $ac_word... " >&6; } 20307if ${ac_cv_path_PKG_CONFIG+:} false; then : 20308 $as_echo_n "(cached) " >&6 20309else 20310 case $PKG_CONFIG in 20311 [\\/]* | ?:[\\/]*) 20312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20313 ;; 20314 *) 20315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20316for as_dir in $PATH 20317do 20318 IFS=$as_save_IFS 20319 test -z "$as_dir" && as_dir=. 20320 for ac_exec_ext in '' $ac_executable_extensions; do 20321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20322 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20324 break 2 20325 fi 20326done 20327 done 20328IFS=$as_save_IFS 20329 20330 ;; 20331esac 20332fi 20333PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20334if test -n "$PKG_CONFIG"; then 20335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20336$as_echo "$PKG_CONFIG" >&6; } 20337else 20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20339$as_echo "no" >&6; } 20340fi 20341 20342 20343fi 20344if test -z "$ac_cv_path_PKG_CONFIG"; then 20345 ac_pt_PKG_CONFIG=$PKG_CONFIG 20346 # Extract the first word of "pkg-config", so it can be a program name with args. 20347set dummy pkg-config; ac_word=$2 20348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20349$as_echo_n "checking for $ac_word... " >&6; } 20350if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 20351 $as_echo_n "(cached) " >&6 20352else 20353 case $ac_pt_PKG_CONFIG in 20354 [\\/]* | ?:[\\/]*) 20355 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20356 ;; 20357 *) 20358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20359for as_dir in $PATH 20360do 20361 IFS=$as_save_IFS 20362 test -z "$as_dir" && as_dir=. 20363 for ac_exec_ext in '' $ac_executable_extensions; do 20364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20365 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20367 break 2 20368 fi 20369done 20370 done 20371IFS=$as_save_IFS 20372 20373 ;; 20374esac 20375fi 20376ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20377if test -n "$ac_pt_PKG_CONFIG"; then 20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20379$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20380else 20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20382$as_echo "no" >&6; } 20383fi 20384 20385 if test "x$ac_pt_PKG_CONFIG" = x; then 20386 PKG_CONFIG="" 20387 else 20388 case $cross_compiling:$ac_tool_warned in 20389yes:) 20390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20392ac_tool_warned=yes ;; 20393esac 20394 PKG_CONFIG=$ac_pt_PKG_CONFIG 20395 fi 20396else 20397 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20398fi 20399 20400fi 20401if test -n "$PKG_CONFIG"; then 20402 _pkg_min_version=0.9.0 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20404$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20407$as_echo "yes" >&6; } 20408 else 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20410$as_echo "no" >&6; } 20411 PKG_CONFIG="" 20412 fi 20413fi 20414 20415 20416# Check whether --with-external-fmt was given. 20417if test "${with_external_fmt+set}" = set; then : 20418 withval=$with_external_fmt; with_external_fmt=yes 20419else 20420 with_external_fmt=no 20421fi 20422 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external fmt" >&5 20424$as_echo_n "checking whether to use external fmt... " >&6; } 20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_external_fmt" >&5 20426$as_echo "$with_external_fmt" >&6; } 20427 20428 REQUI_FMT_VERSION="$(cat $srcdir/extern/.FMT_VERSION)" 20429 if test "$with_external_fmt" = yes; then 20430 20431 20432pkg_failed=no 20433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmt >= $REQUI_FMT_VERSION" >&5 20434$as_echo_n "checking for fmt >= $REQUI_FMT_VERSION... " >&6; } 20435 20436if test -n "$FMT_CFLAGS"; then 20437 pkg_cv_FMT_CFLAGS="$FMT_CFLAGS" 20438 elif test -n "$PKG_CONFIG"; then 20439 if test -n "$PKG_CONFIG" && \ 20440 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fmt >= \$REQUI_FMT_VERSION\""; } >&5 20441 ($PKG_CONFIG --exists --print-errors "fmt >= $REQUI_FMT_VERSION") 2>&5 20442 ac_status=$? 20443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20444 test $ac_status = 0; }; then 20445 pkg_cv_FMT_CFLAGS=`$PKG_CONFIG --cflags "fmt >= $REQUI_FMT_VERSION" 2>/dev/null` 20446 test "x$?" != "x0" && pkg_failed=yes 20447else 20448 pkg_failed=yes 20449fi 20450 else 20451 pkg_failed=untried 20452fi 20453if test -n "$FMT_LIBS"; then 20454 pkg_cv_FMT_LIBS="$FMT_LIBS" 20455 elif test -n "$PKG_CONFIG"; then 20456 if test -n "$PKG_CONFIG" && \ 20457 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fmt >= \$REQUI_FMT_VERSION\""; } >&5 20458 ($PKG_CONFIG --exists --print-errors "fmt >= $REQUI_FMT_VERSION") 2>&5 20459 ac_status=$? 20460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20461 test $ac_status = 0; }; then 20462 pkg_cv_FMT_LIBS=`$PKG_CONFIG --libs "fmt >= $REQUI_FMT_VERSION" 2>/dev/null` 20463 test "x$?" != "x0" && pkg_failed=yes 20464else 20465 pkg_failed=yes 20466fi 20467 else 20468 pkg_failed=untried 20469fi 20470 20471 20472 20473if test $pkg_failed = yes; then 20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20475$as_echo "no" >&6; } 20476 20477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20478 _pkg_short_errors_supported=yes 20479else 20480 _pkg_short_errors_supported=no 20481fi 20482 if test $_pkg_short_errors_supported = yes; then 20483 FMT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fmt >= $REQUI_FMT_VERSION" 2>&1` 20484 else 20485 FMT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fmt >= $REQUI_FMT_VERSION" 2>&1` 20486 fi 20487 # Put the nasty error message in config.log where it belongs 20488 echo "$FMT_PKG_ERRORS" >&5 20489 20490 as_fn_error $? "Package requirements (fmt >= $REQUI_FMT_VERSION) were not met: 20491 20492$FMT_PKG_ERRORS 20493 20494Consider adjusting the PKG_CONFIG_PATH environment variable if you 20495installed software in a non-standard prefix. 20496 20497Alternatively, you may set the environment variables FMT_CFLAGS 20498and FMT_LIBS to avoid the need to call pkg-config. 20499See the pkg-config man page for more details." "$LINENO" 5 20500elif test $pkg_failed = untried; then 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20502$as_echo "no" >&6; } 20503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20505as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20506is in your PATH or set the PKG_CONFIG environment variable to the full 20507path to pkg-config. 20508 20509Alternatively, you may set the environment variables FMT_CFLAGS 20510and FMT_LIBS to avoid the need to call pkg-config. 20511See the pkg-config man page for more details. 20512 20513To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20514See \`config.log' for more details" "$LINENO" 5; } 20515else 20516 FMT_CFLAGS=$pkg_cv_FMT_CFLAGS 20517 FMT_LIBS=$pkg_cv_FMT_LIBS 20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20519$as_echo "yes" >&6; } 20520 20521fi 20522 else 20523 as_ac_File=`$as_echo "ac_cv_file_$srcdir/extern/fmt-5.3.0/README.rst" | $as_tr_sh` 20524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $srcdir/extern/fmt-5.3.0/README.rst" >&5 20525$as_echo_n "checking for $srcdir/extern/fmt-5.3.0/README.rst... " >&6; } 20526if eval \${$as_ac_File+:} false; then : 20527 $as_echo_n "(cached) " >&6 20528else 20529 test "$cross_compiling" = yes && 20530 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20531if test -r "$srcdir/extern/fmt-5.3.0/README.rst"; then 20532 eval "$as_ac_File=yes" 20533else 20534 eval "$as_ac_File=no" 20535fi 20536fi 20537eval ac_res=\$$as_ac_File 20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20539$as_echo "$ac_res" >&6; } 20540if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 20541 20542else 20543 as_fn_error $? "fmt is required, clone or download the repo from https://github.com/fmt/fmt into this directory" "$LINENO" 5 20544fi 20545 20546 20547 FMT_CFLAGS='-I$(srcdir)/extern/fmt-5.3.0/include' 20548 20549 fi 20550 20551 20552 20553ac_config_files="$ac_config_files Makefile libsemigroups.pc" 20554 20555cat >confcache <<\_ACEOF 20556# This file is a shell script that caches the results of configure 20557# tests run on this system so they can be shared between configure 20558# scripts and configure runs, see configure's option --config-cache. 20559# It is not useful on other systems. If it contains results you don't 20560# want to keep, you may remove or edit it. 20561# 20562# config.status only pays attention to the cache file if you give it 20563# the --recheck option to rerun configure. 20564# 20565# `ac_cv_env_foo' variables (set or unset) will be overridden when 20566# loading this file, other *unset* `ac_cv_foo' will be assigned the 20567# following values. 20568 20569_ACEOF 20570 20571# The following way of writing the cache mishandles newlines in values, 20572# but we know of no workaround that is simple, portable, and efficient. 20573# So, we kill variables containing newlines. 20574# Ultrix sh set writes to stderr and can't be redirected directly, 20575# and sets the high bit in the cache file unless we assign to the vars. 20576( 20577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20578 eval ac_val=\$$ac_var 20579 case $ac_val in #( 20580 *${as_nl}*) 20581 case $ac_var in #( 20582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20583$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20584 esac 20585 case $ac_var in #( 20586 _ | IFS | as_nl) ;; #( 20587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20588 *) { eval $ac_var=; unset $ac_var;} ;; 20589 esac ;; 20590 esac 20591 done 20592 20593 (set) 2>&1 | 20594 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20595 *${as_nl}ac_space=\ *) 20596 # `set' does not quote correctly, so add quotes: double-quote 20597 # substitution turns \\\\ into \\, and sed turns \\ into \. 20598 sed -n \ 20599 "s/'/'\\\\''/g; 20600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20601 ;; #( 20602 *) 20603 # `set' quotes correctly as required by POSIX, so do not add quotes. 20604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20605 ;; 20606 esac | 20607 sort 20608) | 20609 sed ' 20610 /^ac_cv_env_/b end 20611 t clear 20612 :clear 20613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20614 t end 20615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20616 :end' >>confcache 20617if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20618 if test -w "$cache_file"; then 20619 if test "x$cache_file" != "x/dev/null"; then 20620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20621$as_echo "$as_me: updating cache $cache_file" >&6;} 20622 if test ! -f "$cache_file" || test -h "$cache_file"; then 20623 cat confcache >"$cache_file" 20624 else 20625 case $cache_file in #( 20626 */* | ?:*) 20627 mv -f confcache "$cache_file"$$ && 20628 mv -f "$cache_file"$$ "$cache_file" ;; #( 20629 *) 20630 mv -f confcache "$cache_file" ;; 20631 esac 20632 fi 20633 fi 20634 else 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20636$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20637 fi 20638fi 20639rm -f confcache 20640 20641test "x$prefix" = xNONE && prefix=$ac_default_prefix 20642# Let make expand exec_prefix. 20643test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20644 20645DEFS=-DHAVE_CONFIG_H 20646 20647ac_libobjs= 20648ac_ltlibobjs= 20649U= 20650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20651 # 1. Remove the extension, and $U if already installed. 20652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20655 # will be set to the directory where LIBOBJS objects are built. 20656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20658done 20659LIBOBJS=$ac_libobjs 20660 20661LTLIBOBJS=$ac_ltlibobjs 20662 20663 20664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20665$as_echo_n "checking that generated files are newer than configure... " >&6; } 20666 if test -n "$am_sleep_pid"; then 20667 # Hide warnings about reused PIDs. 20668 wait $am_sleep_pid 2>/dev/null 20669 fi 20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20671$as_echo "done" >&6; } 20672 if test -n "$EXEEXT"; then 20673 am__EXEEXT_TRUE= 20674 am__EXEEXT_FALSE='#' 20675else 20676 am__EXEEXT_TRUE='#' 20677 am__EXEEXT_FALSE= 20678fi 20679 20680if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20681 as_fn_error $? "conditional \"AMDEP\" was never defined. 20682Usually this means the macro was only invoked conditionally." "$LINENO" 5 20683fi 20684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20686Usually this means the macro was only invoked conditionally." "$LINENO" 5 20687fi 20688if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20689 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20690Usually this means the macro was only invoked conditionally." "$LINENO" 5 20691fi 20692if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20693 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20694Usually this means the macro was only invoked conditionally." "$LINENO" 5 20695fi 20696if test -z "${LIBSEMIGROUPS_DEBUG_TRUE}" && test -z "${LIBSEMIGROUPS_DEBUG_FALSE}"; then 20697 as_fn_error $? "conditional \"LIBSEMIGROUPS_DEBUG\" was never defined. 20698Usually this means the macro was only invoked conditionally." "$LINENO" 5 20699fi 20700if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then 20701 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. 20702Usually this means the macro was only invoked conditionally." "$LINENO" 5 20703fi 20704if test -z "${LIBSEMIGROUPS_HPCOMBI_TRUE}" && test -z "${LIBSEMIGROUPS_HPCOMBI_FALSE}"; then 20705 as_fn_error $? "conditional \"LIBSEMIGROUPS_HPCOMBI\" was never defined. 20706Usually this means the macro was only invoked conditionally." "$LINENO" 5 20707fi 20708if test -z "${HPCOMBI_CONSTEXPR_FUN_ARGS_TRUE}" && test -z "${HPCOMBI_CONSTEXPR_FUN_ARGS_FALSE}"; then 20709 as_fn_error $? "conditional \"HPCOMBI_CONSTEXPR_FUN_ARGS\" was never defined. 20710Usually this means the macro was only invoked conditionally." "$LINENO" 5 20711fi 20712 20713: "${CONFIG_STATUS=./config.status}" 20714ac_write_fail=0 20715ac_clean_files_save=$ac_clean_files 20716ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20717{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20718$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20719as_write_fail=0 20720cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20721#! $SHELL 20722# Generated by $as_me. 20723# Run this file to recreate the current configuration. 20724# Compiler output produced by configure, useful for debugging 20725# configure, is in config.log if it exists. 20726 20727debug=false 20728ac_cs_recheck=false 20729ac_cs_silent=false 20730 20731SHELL=\${CONFIG_SHELL-$SHELL} 20732export SHELL 20733_ASEOF 20734cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20735## -------------------- ## 20736## M4sh Initialization. ## 20737## -------------------- ## 20738 20739# Be more Bourne compatible 20740DUALCASE=1; export DUALCASE # for MKS sh 20741if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20742 emulate sh 20743 NULLCMD=: 20744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20745 # is contrary to our usage. Disable this feature. 20746 alias -g '${1+"$@"}'='"$@"' 20747 setopt NO_GLOB_SUBST 20748else 20749 case `(set -o) 2>/dev/null` in #( 20750 *posix*) : 20751 set -o posix ;; #( 20752 *) : 20753 ;; 20754esac 20755fi 20756 20757 20758as_nl=' 20759' 20760export as_nl 20761# Printing a long string crashes Solaris 7 /usr/bin/printf. 20762as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20765# Prefer a ksh shell builtin over an external printf program on Solaris, 20766# but without wasting forks for bash or zsh. 20767if test -z "$BASH_VERSION$ZSH_VERSION" \ 20768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20769 as_echo='print -r --' 20770 as_echo_n='print -rn --' 20771elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20772 as_echo='printf %s\n' 20773 as_echo_n='printf %s' 20774else 20775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20777 as_echo_n='/usr/ucb/echo -n' 20778 else 20779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20780 as_echo_n_body='eval 20781 arg=$1; 20782 case $arg in #( 20783 *"$as_nl"*) 20784 expr "X$arg" : "X\\(.*\\)$as_nl"; 20785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20786 esac; 20787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20788 ' 20789 export as_echo_n_body 20790 as_echo_n='sh -c $as_echo_n_body as_echo' 20791 fi 20792 export as_echo_body 20793 as_echo='sh -c $as_echo_body as_echo' 20794fi 20795 20796# The user is always right. 20797if test "${PATH_SEPARATOR+set}" != set; then 20798 PATH_SEPARATOR=: 20799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20801 PATH_SEPARATOR=';' 20802 } 20803fi 20804 20805 20806# IFS 20807# We need space, tab and new line, in precisely that order. Quoting is 20808# there to prevent editors from complaining about space-tab. 20809# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20810# splitting by setting IFS to empty value.) 20811IFS=" "" $as_nl" 20812 20813# Find who we are. Look in the path if we contain no directory separator. 20814as_myself= 20815case $0 in #(( 20816 *[\\/]* ) as_myself=$0 ;; 20817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20818for as_dir in $PATH 20819do 20820 IFS=$as_save_IFS 20821 test -z "$as_dir" && as_dir=. 20822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20823 done 20824IFS=$as_save_IFS 20825 20826 ;; 20827esac 20828# We did not find ourselves, most probably we were run as `sh COMMAND' 20829# in which case we are not to be found in the path. 20830if test "x$as_myself" = x; then 20831 as_myself=$0 20832fi 20833if test ! -f "$as_myself"; then 20834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20835 exit 1 20836fi 20837 20838# Unset variables that we do not need and which cause bugs (e.g. in 20839# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20840# suppresses any "Segmentation fault" message there. '((' could 20841# trigger a bug in pdksh 5.2.14. 20842for as_var in BASH_ENV ENV MAIL MAILPATH 20843do eval test x\${$as_var+set} = xset \ 20844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20845done 20846PS1='$ ' 20847PS2='> ' 20848PS4='+ ' 20849 20850# NLS nuisances. 20851LC_ALL=C 20852export LC_ALL 20853LANGUAGE=C 20854export LANGUAGE 20855 20856# CDPATH. 20857(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20858 20859 20860# as_fn_error STATUS ERROR [LINENO LOG_FD] 20861# ---------------------------------------- 20862# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20863# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20864# script with STATUS, using 1 if that was 0. 20865as_fn_error () 20866{ 20867 as_status=$1; test $as_status -eq 0 && as_status=1 20868 if test "$4"; then 20869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20871 fi 20872 $as_echo "$as_me: error: $2" >&2 20873 as_fn_exit $as_status 20874} # as_fn_error 20875 20876 20877# as_fn_set_status STATUS 20878# ----------------------- 20879# Set $? to STATUS, without forking. 20880as_fn_set_status () 20881{ 20882 return $1 20883} # as_fn_set_status 20884 20885# as_fn_exit STATUS 20886# ----------------- 20887# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20888as_fn_exit () 20889{ 20890 set +e 20891 as_fn_set_status $1 20892 exit $1 20893} # as_fn_exit 20894 20895# as_fn_unset VAR 20896# --------------- 20897# Portably unset VAR. 20898as_fn_unset () 20899{ 20900 { eval $1=; unset $1;} 20901} 20902as_unset=as_fn_unset 20903# as_fn_append VAR VALUE 20904# ---------------------- 20905# Append the text in VALUE to the end of the definition contained in VAR. Take 20906# advantage of any shell optimizations that allow amortized linear growth over 20907# repeated appends, instead of the typical quadratic growth present in naive 20908# implementations. 20909if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20910 eval 'as_fn_append () 20911 { 20912 eval $1+=\$2 20913 }' 20914else 20915 as_fn_append () 20916 { 20917 eval $1=\$$1\$2 20918 } 20919fi # as_fn_append 20920 20921# as_fn_arith ARG... 20922# ------------------ 20923# Perform arithmetic evaluation on the ARGs, and store the result in the 20924# global $as_val. Take advantage of shells that can avoid forks. The arguments 20925# must be portable across $(()) and expr. 20926if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20927 eval 'as_fn_arith () 20928 { 20929 as_val=$(( $* )) 20930 }' 20931else 20932 as_fn_arith () 20933 { 20934 as_val=`expr "$@" || test $? -eq 1` 20935 } 20936fi # as_fn_arith 20937 20938 20939if expr a : '\(a\)' >/dev/null 2>&1 && 20940 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20941 as_expr=expr 20942else 20943 as_expr=false 20944fi 20945 20946if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20947 as_basename=basename 20948else 20949 as_basename=false 20950fi 20951 20952if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20953 as_dirname=dirname 20954else 20955 as_dirname=false 20956fi 20957 20958as_me=`$as_basename -- "$0" || 20959$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20960 X"$0" : 'X\(//\)$' \| \ 20961 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20962$as_echo X/"$0" | 20963 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20964 s//\1/ 20965 q 20966 } 20967 /^X\/\(\/\/\)$/{ 20968 s//\1/ 20969 q 20970 } 20971 /^X\/\(\/\).*/{ 20972 s//\1/ 20973 q 20974 } 20975 s/.*/./; q'` 20976 20977# Avoid depending upon Character Ranges. 20978as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20979as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20980as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20981as_cr_digits='0123456789' 20982as_cr_alnum=$as_cr_Letters$as_cr_digits 20983 20984ECHO_C= ECHO_N= ECHO_T= 20985case `echo -n x` in #((((( 20986-n*) 20987 case `echo 'xy\c'` in 20988 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20989 xy) ECHO_C='\c';; 20990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20991 ECHO_T=' ';; 20992 esac;; 20993*) 20994 ECHO_N='-n';; 20995esac 20996 20997rm -f conf$$ conf$$.exe conf$$.file 20998if test -d conf$$.dir; then 20999 rm -f conf$$.dir/conf$$.file 21000else 21001 rm -f conf$$.dir 21002 mkdir conf$$.dir 2>/dev/null 21003fi 21004if (echo >conf$$.file) 2>/dev/null; then 21005 if ln -s conf$$.file conf$$ 2>/dev/null; then 21006 as_ln_s='ln -s' 21007 # ... but there are two gotchas: 21008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21010 # In both cases, we have to default to `cp -pR'. 21011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21012 as_ln_s='cp -pR' 21013 elif ln conf$$.file conf$$ 2>/dev/null; then 21014 as_ln_s=ln 21015 else 21016 as_ln_s='cp -pR' 21017 fi 21018else 21019 as_ln_s='cp -pR' 21020fi 21021rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21022rmdir conf$$.dir 2>/dev/null 21023 21024 21025# as_fn_mkdir_p 21026# ------------- 21027# Create "$as_dir" as a directory, including parents if necessary. 21028as_fn_mkdir_p () 21029{ 21030 21031 case $as_dir in #( 21032 -*) as_dir=./$as_dir;; 21033 esac 21034 test -d "$as_dir" || eval $as_mkdir_p || { 21035 as_dirs= 21036 while :; do 21037 case $as_dir in #( 21038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21039 *) as_qdir=$as_dir;; 21040 esac 21041 as_dirs="'$as_qdir' $as_dirs" 21042 as_dir=`$as_dirname -- "$as_dir" || 21043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21044 X"$as_dir" : 'X\(//\)[^/]' \| \ 21045 X"$as_dir" : 'X\(//\)$' \| \ 21046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21047$as_echo X"$as_dir" | 21048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21049 s//\1/ 21050 q 21051 } 21052 /^X\(\/\/\)[^/].*/{ 21053 s//\1/ 21054 q 21055 } 21056 /^X\(\/\/\)$/{ 21057 s//\1/ 21058 q 21059 } 21060 /^X\(\/\).*/{ 21061 s//\1/ 21062 q 21063 } 21064 s/.*/./; q'` 21065 test -d "$as_dir" && break 21066 done 21067 test -z "$as_dirs" || eval "mkdir $as_dirs" 21068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21069 21070 21071} # as_fn_mkdir_p 21072if mkdir -p . 2>/dev/null; then 21073 as_mkdir_p='mkdir -p "$as_dir"' 21074else 21075 test -d ./-p && rmdir ./-p 21076 as_mkdir_p=false 21077fi 21078 21079 21080# as_fn_executable_p FILE 21081# ----------------------- 21082# Test if FILE is an executable regular file. 21083as_fn_executable_p () 21084{ 21085 test -f "$1" && test -x "$1" 21086} # as_fn_executable_p 21087as_test_x='test -x' 21088as_executable_p=as_fn_executable_p 21089 21090# Sed expression to map a string onto a valid CPP name. 21091as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21092 21093# Sed expression to map a string onto a valid variable name. 21094as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21095 21096 21097exec 6>&1 21098## ----------------------------------- ## 21099## Main body of $CONFIG_STATUS script. ## 21100## ----------------------------------- ## 21101_ASEOF 21102test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21103 21104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21105# Save the log message, to keep $0 and so on meaningful, and to 21106# report actual input values of CONFIG_FILES etc. instead of their 21107# values after options handling. 21108ac_log=" 21109This file was extended by libsemigroups $as_me 1.0.5, which was 21110generated by GNU Autoconf 2.69. Invocation command line was 21111 21112 CONFIG_FILES = $CONFIG_FILES 21113 CONFIG_HEADERS = $CONFIG_HEADERS 21114 CONFIG_LINKS = $CONFIG_LINKS 21115 CONFIG_COMMANDS = $CONFIG_COMMANDS 21116 $ $0 $@ 21117 21118on `(hostname || uname -n) 2>/dev/null | sed 1q` 21119" 21120 21121_ACEOF 21122 21123case $ac_config_files in *" 21124"*) set x $ac_config_files; shift; ac_config_files=$*;; 21125esac 21126 21127case $ac_config_headers in *" 21128"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21129esac 21130 21131 21132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21133# Files that config.status was made for. 21134config_files="$ac_config_files" 21135config_headers="$ac_config_headers" 21136config_commands="$ac_config_commands" 21137 21138_ACEOF 21139 21140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21141ac_cs_usage="\ 21142\`$as_me' instantiates files and other configuration actions 21143from templates according to the current configuration. Unless the files 21144and actions are specified as TAGs, all are instantiated by default. 21145 21146Usage: $0 [OPTION]... [TAG]... 21147 21148 -h, --help print this help, then exit 21149 -V, --version print version number and configuration settings, then exit 21150 --config print configuration, then exit 21151 -q, --quiet, --silent 21152 do not print progress messages 21153 -d, --debug don't remove temporary files 21154 --recheck update $as_me by reconfiguring in the same conditions 21155 --file=FILE[:TEMPLATE] 21156 instantiate the configuration file FILE 21157 --header=FILE[:TEMPLATE] 21158 instantiate the configuration header FILE 21159 21160Configuration files: 21161$config_files 21162 21163Configuration headers: 21164$config_headers 21165 21166Configuration commands: 21167$config_commands 21168 21169Report bugs to <jdm3@st-andrews.ac.uk>." 21170 21171_ACEOF 21172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21173ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21174ac_cs_version="\\ 21175libsemigroups config.status 1.0.5 21176configured by $0, generated by GNU Autoconf 2.69, 21177 with options \\"\$ac_cs_config\\" 21178 21179Copyright (C) 2012 Free Software Foundation, Inc. 21180This config.status script is free software; the Free Software Foundation 21181gives unlimited permission to copy, distribute and modify it." 21182 21183ac_pwd='$ac_pwd' 21184srcdir='$srcdir' 21185INSTALL='$INSTALL' 21186MKDIR_P='$MKDIR_P' 21187AWK='$AWK' 21188test -n "\$AWK" || AWK=awk 21189_ACEOF 21190 21191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21192# The default lists apply if the user does not specify any file. 21193ac_need_defaults=: 21194while test $# != 0 21195do 21196 case $1 in 21197 --*=?*) 21198 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21200 ac_shift=: 21201 ;; 21202 --*=) 21203 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21204 ac_optarg= 21205 ac_shift=: 21206 ;; 21207 *) 21208 ac_option=$1 21209 ac_optarg=$2 21210 ac_shift=shift 21211 ;; 21212 esac 21213 21214 case $ac_option in 21215 # Handling of the options. 21216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21217 ac_cs_recheck=: ;; 21218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21219 $as_echo "$ac_cs_version"; exit ;; 21220 --config | --confi | --conf | --con | --co | --c ) 21221 $as_echo "$ac_cs_config"; exit ;; 21222 --debug | --debu | --deb | --de | --d | -d ) 21223 debug=: ;; 21224 --file | --fil | --fi | --f ) 21225 $ac_shift 21226 case $ac_optarg in 21227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21228 '') as_fn_error $? "missing file argument" ;; 21229 esac 21230 as_fn_append CONFIG_FILES " '$ac_optarg'" 21231 ac_need_defaults=false;; 21232 --header | --heade | --head | --hea ) 21233 $ac_shift 21234 case $ac_optarg in 21235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21236 esac 21237 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21238 ac_need_defaults=false;; 21239 --he | --h) 21240 # Conflict between --help and --header 21241 as_fn_error $? "ambiguous option: \`$1' 21242Try \`$0 --help' for more information.";; 21243 --help | --hel | -h ) 21244 $as_echo "$ac_cs_usage"; exit ;; 21245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21246 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21247 ac_cs_silent=: ;; 21248 21249 # This is an error. 21250 -*) as_fn_error $? "unrecognized option: \`$1' 21251Try \`$0 --help' for more information." ;; 21252 21253 *) as_fn_append ac_config_targets " $1" 21254 ac_need_defaults=false ;; 21255 21256 esac 21257 shift 21258done 21259 21260ac_configure_extra_args= 21261 21262if $ac_cs_silent; then 21263 exec 6>/dev/null 21264 ac_configure_extra_args="$ac_configure_extra_args --silent" 21265fi 21266 21267_ACEOF 21268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21269if \$ac_cs_recheck; then 21270 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21271 shift 21272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21273 CONFIG_SHELL='$SHELL' 21274 export CONFIG_SHELL 21275 exec "\$@" 21276fi 21277 21278_ACEOF 21279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21280exec 5>>config.log 21281{ 21282 echo 21283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21284## Running $as_me. ## 21285_ASBOX 21286 $as_echo "$ac_log" 21287} >&5 21288 21289_ACEOF 21290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21291# 21292# INIT-COMMANDS 21293# 21294AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21295PACKAGE="$PACKAGE" 21296 21297 21298# The HP-UX ksh and POSIX shell print the target directory to stdout 21299# if CDPATH is set. 21300(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21301 21302sed_quote_subst='$sed_quote_subst' 21303double_quote_subst='$double_quote_subst' 21304delay_variable_subst='$delay_variable_subst' 21305macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21306macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21307enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21308enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21309pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21310enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21311shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21312SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21313ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21314PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21315host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21316host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21317host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21318build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21319build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21320build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21321SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21322Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21323GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21324EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21325FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21326LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21327NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21328LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21329max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21330ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21331exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21332lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21333lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21334lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21335lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21336lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21337reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21338reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21339OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21340deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21341file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21342file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21343want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21344DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21345sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21346AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21347AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21348archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21349STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21350RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21351old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21352old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21353old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21354lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21355CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21356CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21357compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21358GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21359lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21360lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21361lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21362lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21363lt_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"`' 21364lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21365nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21366lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21367lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21368objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21369MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21370lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21371lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21372lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21373lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21374lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21375need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21376MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21377DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21378NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21379LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21380OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21381OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21382libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21383shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21384extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21385archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21386enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21387export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21388whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21389compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21390old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21391old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21392archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21393archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21394module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21395module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21396with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21397allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21398no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21399hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21400hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21401hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21402hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21403hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21404hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21405hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21406inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21407link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21408always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21409export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21410exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21411include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21412prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21413postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21414file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21415variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21416need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21417need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21418version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21419runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21420shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21421shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21422libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21423library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21424soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21425install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21426postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21427postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21428finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21429finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21430hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21431sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21432configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21433configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21434hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21435enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21436enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21437enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21438old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21439striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21440compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 21441predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 21442postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 21443predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 21444postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 21445compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 21446LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 21447reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 21448reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21449old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21450compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 21451GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 21452lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 21453lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 21454lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 21455lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 21456lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 21457archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 21458enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 21459export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21460whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21461compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 21462old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21463old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21464archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21465archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21466module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21467module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21468with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 21469allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21470no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 21471hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 21472hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 21473hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 21474hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 21475hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 21476hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 21477hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 21478inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 21479link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 21480always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 21481export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21482exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21483include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 21484prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21485postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 21486file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 21487hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 21488compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 21489predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21490postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 21491predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 21492postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 21493compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 21494 21495LTCC='$LTCC' 21496LTCFLAGS='$LTCFLAGS' 21497compiler='$compiler_DEFAULT' 21498 21499# A function that is used when there is no print builtin or printf. 21500func_fallback_echo () 21501{ 21502 eval 'cat <<_LTECHO_EOF 21503\$1 21504_LTECHO_EOF' 21505} 21506 21507# Quote evaled strings. 21508for var in SHELL \ 21509ECHO \ 21510PATH_SEPARATOR \ 21511SED \ 21512GREP \ 21513EGREP \ 21514FGREP \ 21515LD \ 21516NM \ 21517LN_S \ 21518lt_SP2NL \ 21519lt_NL2SP \ 21520reload_flag \ 21521OBJDUMP \ 21522deplibs_check_method \ 21523file_magic_cmd \ 21524file_magic_glob \ 21525want_nocaseglob \ 21526DLLTOOL \ 21527sharedlib_from_linklib_cmd \ 21528AR \ 21529AR_FLAGS \ 21530archiver_list_spec \ 21531STRIP \ 21532RANLIB \ 21533CC \ 21534CFLAGS \ 21535compiler \ 21536lt_cv_sys_global_symbol_pipe \ 21537lt_cv_sys_global_symbol_to_cdecl \ 21538lt_cv_sys_global_symbol_to_import \ 21539lt_cv_sys_global_symbol_to_c_name_address \ 21540lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21541lt_cv_nm_interface \ 21542nm_file_list_spec \ 21543lt_cv_truncate_bin \ 21544lt_prog_compiler_no_builtin_flag \ 21545lt_prog_compiler_pic \ 21546lt_prog_compiler_wl \ 21547lt_prog_compiler_static \ 21548lt_cv_prog_compiler_c_o \ 21549need_locks \ 21550MANIFEST_TOOL \ 21551DSYMUTIL \ 21552NMEDIT \ 21553LIPO \ 21554OTOOL \ 21555OTOOL64 \ 21556shrext_cmds \ 21557export_dynamic_flag_spec \ 21558whole_archive_flag_spec \ 21559compiler_needs_object \ 21560with_gnu_ld \ 21561allow_undefined_flag \ 21562no_undefined_flag \ 21563hardcode_libdir_flag_spec \ 21564hardcode_libdir_separator \ 21565exclude_expsyms \ 21566include_expsyms \ 21567file_list_spec \ 21568variables_saved_for_relink \ 21569libname_spec \ 21570library_names_spec \ 21571soname_spec \ 21572install_override_mode \ 21573finish_eval \ 21574old_striplib \ 21575striplib \ 21576compiler_lib_search_dirs \ 21577predep_objects \ 21578postdep_objects \ 21579predeps \ 21580postdeps \ 21581compiler_lib_search_path \ 21582LD_CXX \ 21583reload_flag_CXX \ 21584compiler_CXX \ 21585lt_prog_compiler_no_builtin_flag_CXX \ 21586lt_prog_compiler_pic_CXX \ 21587lt_prog_compiler_wl_CXX \ 21588lt_prog_compiler_static_CXX \ 21589lt_cv_prog_compiler_c_o_CXX \ 21590export_dynamic_flag_spec_CXX \ 21591whole_archive_flag_spec_CXX \ 21592compiler_needs_object_CXX \ 21593with_gnu_ld_CXX \ 21594allow_undefined_flag_CXX \ 21595no_undefined_flag_CXX \ 21596hardcode_libdir_flag_spec_CXX \ 21597hardcode_libdir_separator_CXX \ 21598exclude_expsyms_CXX \ 21599include_expsyms_CXX \ 21600file_list_spec_CXX \ 21601compiler_lib_search_dirs_CXX \ 21602predep_objects_CXX \ 21603postdep_objects_CXX \ 21604predeps_CXX \ 21605postdeps_CXX \ 21606compiler_lib_search_path_CXX; do 21607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21608 *[\\\\\\\`\\"\\\$]*) 21609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21610 ;; 21611 *) 21612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21613 ;; 21614 esac 21615done 21616 21617# Double-quote double-evaled strings. 21618for var in reload_cmds \ 21619old_postinstall_cmds \ 21620old_postuninstall_cmds \ 21621old_archive_cmds \ 21622extract_expsyms_cmds \ 21623old_archive_from_new_cmds \ 21624old_archive_from_expsyms_cmds \ 21625archive_cmds \ 21626archive_expsym_cmds \ 21627module_cmds \ 21628module_expsym_cmds \ 21629export_symbols_cmds \ 21630prelink_cmds \ 21631postlink_cmds \ 21632postinstall_cmds \ 21633postuninstall_cmds \ 21634finish_cmds \ 21635sys_lib_search_path_spec \ 21636configure_time_dlsearch_path \ 21637configure_time_lt_sys_library_path \ 21638reload_cmds_CXX \ 21639old_archive_cmds_CXX \ 21640old_archive_from_new_cmds_CXX \ 21641old_archive_from_expsyms_cmds_CXX \ 21642archive_cmds_CXX \ 21643archive_expsym_cmds_CXX \ 21644module_cmds_CXX \ 21645module_expsym_cmds_CXX \ 21646export_symbols_cmds_CXX \ 21647prelink_cmds_CXX \ 21648postlink_cmds_CXX; do 21649 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21650 *[\\\\\\\`\\"\\\$]*) 21651 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21652 ;; 21653 *) 21654 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21655 ;; 21656 esac 21657done 21658 21659ac_aux_dir='$ac_aux_dir' 21660 21661# See if we are running on zsh, and set the options that allow our 21662# commands through without removal of \ escapes INIT. 21663if test -n "\${ZSH_VERSION+set}"; then 21664 setopt NO_GLOB_SUBST 21665fi 21666 21667 21668 PACKAGE='$PACKAGE' 21669 VERSION='$VERSION' 21670 RM='$RM' 21671 ofile='$ofile' 21672 21673 21674 21675 21676 21677 21678_ACEOF 21679 21680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21681 21682# Handling of arguments. 21683for ac_config_target in $ac_config_targets 21684do 21685 case $ac_config_target in 21686 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 21687 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21688 "include/libsemigroups-config.hpp") CONFIG_COMMANDS="$CONFIG_COMMANDS include/libsemigroups-config.hpp" ;; 21689 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21690 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21691 "libsemigroups.pc") CONFIG_FILES="$CONFIG_FILES libsemigroups.pc" ;; 21692 21693 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21694 esac 21695done 21696 21697 21698# If the user did not use the arguments to specify the items to instantiate, 21699# then the envvar interface is used. Set only those that are not. 21700# We use the long form for the default assignment because of an extremely 21701# bizarre bug on SunOS 4.1.3. 21702if $ac_need_defaults; then 21703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21706fi 21707 21708# Have a temporary directory for convenience. Make it in the build tree 21709# simply because there is no reason against having it here, and in addition, 21710# creating and moving files from /tmp can sometimes cause problems. 21711# Hook for its removal unless debugging. 21712# Note that there is a small window in which the directory will not be cleaned: 21713# after its creation but before its name has been assigned to `$tmp'. 21714$debug || 21715{ 21716 tmp= ac_tmp= 21717 trap 'exit_status=$? 21718 : "${ac_tmp:=$tmp}" 21719 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21720' 0 21721 trap 'as_fn_exit 1' 1 2 13 15 21722} 21723# Create a (secure) tmp directory for tmp files. 21724 21725{ 21726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21727 test -d "$tmp" 21728} || 21729{ 21730 tmp=./conf$$-$RANDOM 21731 (umask 077 && mkdir "$tmp") 21732} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21733ac_tmp=$tmp 21734 21735# Set up the scripts for CONFIG_FILES section. 21736# No need to generate them if there are no CONFIG_FILES. 21737# This happens for instance with `./config.status config.h'. 21738if test -n "$CONFIG_FILES"; then 21739 21740 21741ac_cr=`echo X | tr X '\015'` 21742# On cygwin, bash can eat \r inside `` if the user requested igncr. 21743# But we know of no other shell where ac_cr would be empty at this 21744# point, so we can use a bashism as a fallback. 21745if test "x$ac_cr" = x; then 21746 eval ac_cr=\$\'\\r\' 21747fi 21748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21750 ac_cs_awk_cr='\\r' 21751else 21752 ac_cs_awk_cr=$ac_cr 21753fi 21754 21755echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21756_ACEOF 21757 21758 21759{ 21760 echo "cat >conf$$subs.awk <<_ACEOF" && 21761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21762 echo "_ACEOF" 21763} >conf$$subs.sh || 21764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21766ac_delim='%!_!# ' 21767for ac_last_try in false false false false false :; do 21768 . ./conf$$subs.sh || 21769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21770 21771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21772 if test $ac_delim_n = $ac_delim_num; then 21773 break 21774 elif $ac_last_try; then 21775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21776 else 21777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21778 fi 21779done 21780rm -f conf$$subs.sh 21781 21782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21784_ACEOF 21785sed -n ' 21786h 21787s/^/S["/; s/!.*/"]=/ 21788p 21789g 21790s/^[^!]*!// 21791:repl 21792t repl 21793s/'"$ac_delim"'$// 21794t delim 21795:nl 21796h 21797s/\(.\{148\}\)..*/\1/ 21798t more1 21799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21800p 21801n 21802b repl 21803:more1 21804s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21805p 21806g 21807s/.\{148\}// 21808t nl 21809:delim 21810h 21811s/\(.\{148\}\)..*/\1/ 21812t more2 21813s/["\\]/\\&/g; s/^/"/; s/$/"/ 21814p 21815b 21816:more2 21817s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21818p 21819g 21820s/.\{148\}// 21821t delim 21822' <conf$$subs.awk | sed ' 21823/^[^""]/{ 21824 N 21825 s/\n// 21826} 21827' >>$CONFIG_STATUS || ac_write_fail=1 21828rm -f conf$$subs.awk 21829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21830_ACAWK 21831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21832 for (key in S) S_is_set[key] = 1 21833 FS = "" 21834 21835} 21836{ 21837 line = $ 0 21838 nfields = split(line, field, "@") 21839 substed = 0 21840 len = length(field[1]) 21841 for (i = 2; i < nfields; i++) { 21842 key = field[i] 21843 keylen = length(key) 21844 if (S_is_set[key]) { 21845 value = S[key] 21846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21847 len += length(value) + length(field[++i]) 21848 substed = 1 21849 } else 21850 len += 1 + keylen 21851 } 21852 21853 print line 21854} 21855 21856_ACAWK 21857_ACEOF 21858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21861else 21862 cat 21863fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21864 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21865_ACEOF 21866 21867# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21868# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21869# trailing colons and then remove the whole line if VPATH becomes empty 21870# (actually we leave an empty line to preserve line numbers). 21871if test "x$srcdir" = x.; then 21872 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21873h 21874s/// 21875s/^/:/ 21876s/[ ]*$/:/ 21877s/:\$(srcdir):/:/g 21878s/:\${srcdir}:/:/g 21879s/:@srcdir@:/:/g 21880s/^:*// 21881s/:*$// 21882x 21883s/\(=[ ]*\).*/\1/ 21884G 21885s/\n// 21886s/^[^=]*=[ ]*$// 21887}' 21888fi 21889 21890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21891fi # test -n "$CONFIG_FILES" 21892 21893# Set up the scripts for CONFIG_HEADERS section. 21894# No need to generate them if there are no CONFIG_HEADERS. 21895# This happens for instance with `./config.status Makefile'. 21896if test -n "$CONFIG_HEADERS"; then 21897cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21898BEGIN { 21899_ACEOF 21900 21901# Transform confdefs.h into an awk script `defines.awk', embedded as 21902# here-document in config.status, that substitutes the proper values into 21903# config.h.in to produce config.h. 21904 21905# Create a delimiter string that does not exist in confdefs.h, to ease 21906# handling of long lines. 21907ac_delim='%!_!# ' 21908for ac_last_try in false false :; do 21909 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21910 if test -z "$ac_tt"; then 21911 break 21912 elif $ac_last_try; then 21913 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21914 else 21915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21916 fi 21917done 21918 21919# For the awk script, D is an array of macro values keyed by name, 21920# likewise P contains macro parameters if any. Preserve backslash 21921# newline sequences. 21922 21923ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21924sed -n ' 21925s/.\{148\}/&'"$ac_delim"'/g 21926t rset 21927:rset 21928s/^[ ]*#[ ]*define[ ][ ]*/ / 21929t def 21930d 21931:def 21932s/\\$// 21933t bsnl 21934s/["\\]/\\&/g 21935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21936D["\1"]=" \3"/p 21937s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21938d 21939:bsnl 21940s/["\\]/\\&/g 21941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21942D["\1"]=" \3\\\\\\n"\\/p 21943t cont 21944s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21945t cont 21946d 21947:cont 21948n 21949s/.\{148\}/&'"$ac_delim"'/g 21950t clear 21951:clear 21952s/\\$// 21953t bsnlc 21954s/["\\]/\\&/g; s/^/"/; s/$/"/p 21955d 21956:bsnlc 21957s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21958b cont 21959' <confdefs.h | sed ' 21960s/'"$ac_delim"'/"\\\ 21961"/g' >>$CONFIG_STATUS || ac_write_fail=1 21962 21963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21964 for (key in D) D_is_set[key] = 1 21965 FS = "" 21966} 21967/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21968 line = \$ 0 21969 split(line, arg, " ") 21970 if (arg[1] == "#") { 21971 defundef = arg[2] 21972 mac1 = arg[3] 21973 } else { 21974 defundef = substr(arg[1], 2) 21975 mac1 = arg[2] 21976 } 21977 split(mac1, mac2, "(") #) 21978 macro = mac2[1] 21979 prefix = substr(line, 1, index(line, defundef) - 1) 21980 if (D_is_set[macro]) { 21981 # Preserve the white space surrounding the "#". 21982 print prefix "define", macro P[macro] D[macro] 21983 next 21984 } else { 21985 # Replace #undef with comments. This is necessary, for example, 21986 # in the case of _POSIX_SOURCE, which is predefined and required 21987 # on some systems where configure will not decide to define it. 21988 if (defundef == "undef") { 21989 print "/*", prefix defundef, macro, "*/" 21990 next 21991 } 21992 } 21993} 21994{ print } 21995_ACAWK 21996_ACEOF 21997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21998 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21999fi # test -n "$CONFIG_HEADERS" 22000 22001 22002eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22003shift 22004for ac_tag 22005do 22006 case $ac_tag in 22007 :[FHLC]) ac_mode=$ac_tag; continue;; 22008 esac 22009 case $ac_mode$ac_tag in 22010 :[FHL]*:*);; 22011 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22012 :[FH]-) ac_tag=-:-;; 22013 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22014 esac 22015 ac_save_IFS=$IFS 22016 IFS=: 22017 set x $ac_tag 22018 IFS=$ac_save_IFS 22019 shift 22020 ac_file=$1 22021 shift 22022 22023 case $ac_mode in 22024 :L) ac_source=$1;; 22025 :[FH]) 22026 ac_file_inputs= 22027 for ac_f 22028 do 22029 case $ac_f in 22030 -) ac_f="$ac_tmp/stdin";; 22031 *) # Look for the file first in the build tree, then in the source tree 22032 # (if the path is not absolute). The absolute path cannot be DOS-style, 22033 # because $ac_f cannot contain `:'. 22034 test -f "$ac_f" || 22035 case $ac_f in 22036 [\\/$]*) false;; 22037 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22038 esac || 22039 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22040 esac 22041 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22042 as_fn_append ac_file_inputs " '$ac_f'" 22043 done 22044 22045 # Let's still pretend it is `configure' which instantiates (i.e., don't 22046 # use $as_me), people would be surprised to read: 22047 # /* config.h. Generated by config.status. */ 22048 configure_input='Generated from '` 22049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22050 `' by configure.' 22051 if test x"$ac_file" != x-; then 22052 configure_input="$ac_file. $configure_input" 22053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22054$as_echo "$as_me: creating $ac_file" >&6;} 22055 fi 22056 # Neutralize special characters interpreted by sed in replacement strings. 22057 case $configure_input in #( 22058 *\&* | *\|* | *\\* ) 22059 ac_sed_conf_input=`$as_echo "$configure_input" | 22060 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22061 *) ac_sed_conf_input=$configure_input;; 22062 esac 22063 22064 case $ac_tag in 22065 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22067 esac 22068 ;; 22069 esac 22070 22071 ac_dir=`$as_dirname -- "$ac_file" || 22072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22073 X"$ac_file" : 'X\(//\)[^/]' \| \ 22074 X"$ac_file" : 'X\(//\)$' \| \ 22075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22076$as_echo X"$ac_file" | 22077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22078 s//\1/ 22079 q 22080 } 22081 /^X\(\/\/\)[^/].*/{ 22082 s//\1/ 22083 q 22084 } 22085 /^X\(\/\/\)$/{ 22086 s//\1/ 22087 q 22088 } 22089 /^X\(\/\).*/{ 22090 s//\1/ 22091 q 22092 } 22093 s/.*/./; q'` 22094 as_dir="$ac_dir"; as_fn_mkdir_p 22095 ac_builddir=. 22096 22097case "$ac_dir" in 22098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22099*) 22100 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22101 # A ".." for each directory in $ac_dir_suffix. 22102 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22103 case $ac_top_builddir_sub in 22104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22106 esac ;; 22107esac 22108ac_abs_top_builddir=$ac_pwd 22109ac_abs_builddir=$ac_pwd$ac_dir_suffix 22110# for backward compatibility: 22111ac_top_builddir=$ac_top_build_prefix 22112 22113case $srcdir in 22114 .) # We are building in place. 22115 ac_srcdir=. 22116 ac_top_srcdir=$ac_top_builddir_sub 22117 ac_abs_top_srcdir=$ac_pwd ;; 22118 [\\/]* | ?:[\\/]* ) # Absolute name. 22119 ac_srcdir=$srcdir$ac_dir_suffix; 22120 ac_top_srcdir=$srcdir 22121 ac_abs_top_srcdir=$srcdir ;; 22122 *) # Relative name. 22123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22124 ac_top_srcdir=$ac_top_build_prefix$srcdir 22125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22126esac 22127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22128 22129 22130 case $ac_mode in 22131 :F) 22132 # 22133 # CONFIG_FILE 22134 # 22135 22136 case $INSTALL in 22137 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22138 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22139 esac 22140 ac_MKDIR_P=$MKDIR_P 22141 case $MKDIR_P in 22142 [\\/$]* | ?:[\\/]* ) ;; 22143 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22144 esac 22145_ACEOF 22146 22147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22148# If the template does not know about datarootdir, expand it. 22149# FIXME: This hack should be removed a few years after 2.60. 22150ac_datarootdir_hack=; ac_datarootdir_seen= 22151ac_sed_dataroot=' 22152/datarootdir/ { 22153 p 22154 q 22155} 22156/@datadir@/p 22157/@docdir@/p 22158/@infodir@/p 22159/@localedir@/p 22160/@mandir@/p' 22161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22162*datarootdir*) ac_datarootdir_seen=yes;; 22163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22166_ACEOF 22167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22168 ac_datarootdir_hack=' 22169 s&@datadir@&$datadir&g 22170 s&@docdir@&$docdir&g 22171 s&@infodir@&$infodir&g 22172 s&@localedir@&$localedir&g 22173 s&@mandir@&$mandir&g 22174 s&\\\${datarootdir}&$datarootdir&g' ;; 22175esac 22176_ACEOF 22177 22178# Neutralize VPATH when `$srcdir' = `.'. 22179# Shell code in configure.ac might set extrasub. 22180# FIXME: do we really want to maintain this feature? 22181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22182ac_sed_extra="$ac_vpsub 22183$extrasub 22184_ACEOF 22185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22186:t 22187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22188s|@configure_input@|$ac_sed_conf_input|;t t 22189s&@top_builddir@&$ac_top_builddir_sub&;t t 22190s&@top_build_prefix@&$ac_top_build_prefix&;t t 22191s&@srcdir@&$ac_srcdir&;t t 22192s&@abs_srcdir@&$ac_abs_srcdir&;t t 22193s&@top_srcdir@&$ac_top_srcdir&;t t 22194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22195s&@builddir@&$ac_builddir&;t t 22196s&@abs_builddir@&$ac_abs_builddir&;t t 22197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22198s&@INSTALL@&$ac_INSTALL&;t t 22199s&@MKDIR_P@&$ac_MKDIR_P&;t t 22200$ac_datarootdir_hack 22201" 22202eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22203 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22204 22205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22206 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22208 "$ac_tmp/out"`; test -z "$ac_out"; } && 22209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22210which seems to be undefined. Please make sure it is defined" >&5 22211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22212which seems to be undefined. Please make sure it is defined" >&2;} 22213 22214 rm -f "$ac_tmp/stdin" 22215 case $ac_file in 22216 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22217 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22218 esac \ 22219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22220 ;; 22221 :H) 22222 # 22223 # CONFIG_HEADER 22224 # 22225 if test x"$ac_file" != x-; then 22226 { 22227 $as_echo "/* $configure_input */" \ 22228 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22229 } >"$ac_tmp/config.h" \ 22230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22231 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22233$as_echo "$as_me: $ac_file is unchanged" >&6;} 22234 else 22235 rm -f "$ac_file" 22236 mv "$ac_tmp/config.h" "$ac_file" \ 22237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22238 fi 22239 else 22240 $as_echo "/* $configure_input */" \ 22241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22242 || as_fn_error $? "could not create -" "$LINENO" 5 22243 fi 22244# Compute "$ac_file"'s index in $config_headers. 22245_am_arg="$ac_file" 22246_am_stamp_count=1 22247for _am_header in $config_headers :; do 22248 case $_am_header in 22249 $_am_arg | $_am_arg:* ) 22250 break ;; 22251 * ) 22252 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22253 esac 22254done 22255echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22256$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22257 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22258 X"$_am_arg" : 'X\(//\)$' \| \ 22259 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22260$as_echo X"$_am_arg" | 22261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22262 s//\1/ 22263 q 22264 } 22265 /^X\(\/\/\)[^/].*/{ 22266 s//\1/ 22267 q 22268 } 22269 /^X\(\/\/\)$/{ 22270 s//\1/ 22271 q 22272 } 22273 /^X\(\/\).*/{ 22274 s//\1/ 22275 q 22276 } 22277 s/.*/./; q'`/stamp-h$_am_stamp_count 22278 ;; 22279 22280 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22281$as_echo "$as_me: executing $ac_file commands" >&6;} 22282 ;; 22283 esac 22284 22285 22286 case $ac_file$ac_mode in 22287 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22288 # Older Autoconf quotes --file arguments for eval, but not when files 22289 # are listed without --file. Let's play safe and only enable the eval 22290 # if we detect the quoting. 22291 # TODO: see whether this extra hack can be removed once we start 22292 # requiring Autoconf 2.70 or later. 22293 case $CONFIG_FILES in #( 22294 *\'*) : 22295 eval set x "$CONFIG_FILES" ;; #( 22296 *) : 22297 set x $CONFIG_FILES ;; #( 22298 *) : 22299 ;; 22300esac 22301 shift 22302 # Used to flag and report bootstrapping failures. 22303 am_rc=0 22304 for am_mf 22305 do 22306 # Strip MF so we end up with the name of the file. 22307 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22308 # Check whether this is an Automake generated Makefile which includes 22309 # dependency-tracking related rules and includes. 22310 # Grep'ing the whole file directly is not great: AIX grep has a line 22311 # limit of 2048, but all sed's we know have understand at least 4000. 22312 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22313 || continue 22314 am_dirpart=`$as_dirname -- "$am_mf" || 22315$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22316 X"$am_mf" : 'X\(//\)[^/]' \| \ 22317 X"$am_mf" : 'X\(//\)$' \| \ 22318 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22319$as_echo X"$am_mf" | 22320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22321 s//\1/ 22322 q 22323 } 22324 /^X\(\/\/\)[^/].*/{ 22325 s//\1/ 22326 q 22327 } 22328 /^X\(\/\/\)$/{ 22329 s//\1/ 22330 q 22331 } 22332 /^X\(\/\).*/{ 22333 s//\1/ 22334 q 22335 } 22336 s/.*/./; q'` 22337 am_filepart=`$as_basename -- "$am_mf" || 22338$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22339 X"$am_mf" : 'X\(//\)$' \| \ 22340 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22341$as_echo X/"$am_mf" | 22342 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22343 s//\1/ 22344 q 22345 } 22346 /^X\/\(\/\/\)$/{ 22347 s//\1/ 22348 q 22349 } 22350 /^X\/\(\/\).*/{ 22351 s//\1/ 22352 q 22353 } 22354 s/.*/./; q'` 22355 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22356 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22357 | $MAKE -f - am--depfiles" >&5 22358 (cd "$am_dirpart" \ 22359 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22360 | $MAKE -f - am--depfiles) >&5 2>&5 22361 ac_status=$? 22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22363 (exit $ac_status); } || am_rc=$? 22364 done 22365 if test $am_rc -ne 0; then 22366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22368as_fn_error $? "Something went wrong bootstrapping makefile fragments 22369 for automatic dependency tracking. Try re-running configure with the 22370 '--disable-dependency-tracking' option to at least be able to build 22371 the package (albeit without support for automatic dependency tracking). 22372See \`config.log' for more details" "$LINENO" 5; } 22373 fi 22374 { am_dirpart=; unset am_dirpart;} 22375 { am_filepart=; unset am_filepart;} 22376 { am_mf=; unset am_mf;} 22377 { am_rc=; unset am_rc;} 22378 rm -f conftest-deps.mk 22379} 22380 ;; 22381 "include/libsemigroups-config.hpp":C) ac_prefix_conf_OUT=`echo include/libsemigroups-config.hpp` 22382ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 22383ac_prefix_conf_PKG=`echo $PACKAGE` 22384ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 22385ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 22386ac_prefix_conf_INP=`echo "config/config.h" | sed -e 's/ *//'` 22387if test ".$ac_prefix_conf_INP" = "."; then 22388 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 22389 case "$ac_file" in 22390 *.h) ac_prefix_conf_INP=$ac_file ;; 22391 *) 22392 esac 22393 test ".$ac_prefix_conf_INP" != "." && break 22394 done 22395fi 22396if test ".$ac_prefix_conf_INP" = "."; then 22397 case "$ac_prefix_conf_OUT" in 22398 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 22399 ;; 22400 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 22401 ;; 22402 *) ac_prefix_conf_INP=config.h 22403 ;; 22404 esac 22405fi 22406if test -z "$ac_prefix_conf_PKG" ; then 22407 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 22408else 22409 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 22410 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 22411 fi fi 22412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 22413$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 22414 if test -f $ac_prefix_conf_INP ; then 22415 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 22416 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 22417 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 22418 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 22419 $as_echo "#endif/" >> conftest.prefix 22420 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 22421 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 22422 $as_echo "#endif/" >> conftest.prefix 22423 # now executing _script on _DEF input to create _OUT output file 22424 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 22425 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 22426 echo ' ' >>$tmp/pconfig.h 22427 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 22428 22429 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 22430 echo ' ' >>$tmp/pconfig.h 22431 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 22432 echo "#endif" >>$tmp/pconfig.h 22433 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 22435$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 22436 else 22437 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 22438$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22439 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 22440 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 22441 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 22442$as_echo X"$ac_prefix_conf_OUT" | 22443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22444 s//\1/ 22445 q 22446 } 22447 /^X\(\/\/\)[^/].*/{ 22448 s//\1/ 22449 q 22450 } 22451 /^X\(\/\/\)$/{ 22452 s//\1/ 22453 q 22454 } 22455 /^X\(\/\).*/{ 22456 s//\1/ 22457 q 22458 } 22459 s/.*/./; q'` 22460 as_dir="$ac_dir"; as_fn_mkdir_p 22461 rm -f "$ac_prefix_conf_OUT" 22462 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 22463 fi 22464 else 22465 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 22466 fi 22467 rm -f conftest.* 22468fi 22469 ;; 22470 "libtool":C) 22471 22472 # See if we are running on zsh, and set the options that allow our 22473 # commands through without removal of \ escapes. 22474 if test -n "${ZSH_VERSION+set}"; then 22475 setopt NO_GLOB_SUBST 22476 fi 22477 22478 cfgfile=${ofile}T 22479 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22480 $RM "$cfgfile" 22481 22482 cat <<_LT_EOF >> "$cfgfile" 22483#! $SHELL 22484# Generated automatically by $as_me ($PACKAGE) $VERSION 22485# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22486# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22487 22488# Provide generalized library-building support services. 22489# Written by Gordon Matzigkeit, 1996 22490 22491# Copyright (C) 2014 Free Software Foundation, Inc. 22492# This is free software; see the source for copying conditions. There is NO 22493# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22494 22495# GNU Libtool is free software; you can redistribute it and/or modify 22496# it under the terms of the GNU General Public License as published by 22497# the Free Software Foundation; either version 2 of of the License, or 22498# (at your option) any later version. 22499# 22500# As a special exception to the GNU General Public License, if you 22501# distribute this file as part of a program or library that is built 22502# using GNU Libtool, you may include this file under the same 22503# distribution terms that you use for the rest of that program. 22504# 22505# GNU Libtool is distributed in the hope that it will be useful, but 22506# WITHOUT ANY WARRANTY; without even the implied warranty of 22507# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22508# GNU General Public License for more details. 22509# 22510# You should have received a copy of the GNU General Public License 22511# along with this program. If not, see <http://www.gnu.org/licenses/>. 22512 22513 22514# The names of the tagged configurations supported by this script. 22515available_tags='CXX ' 22516 22517# Configured defaults for sys_lib_dlsearch_path munging. 22518: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22519 22520# ### BEGIN LIBTOOL CONFIG 22521 22522# Which release of libtool.m4 was used? 22523macro_version=$macro_version 22524macro_revision=$macro_revision 22525 22526# Whether or not to build shared libraries. 22527build_libtool_libs=$enable_shared 22528 22529# Whether or not to build static libraries. 22530build_old_libs=$enable_static 22531 22532# What type of objects to build. 22533pic_mode=$pic_mode 22534 22535# Whether or not to optimize for fast installation. 22536fast_install=$enable_fast_install 22537 22538# Shared archive member basename,for filename based shared library versioning on AIX. 22539shared_archive_member_spec=$shared_archive_member_spec 22540 22541# Shell to use when invoking shell scripts. 22542SHELL=$lt_SHELL 22543 22544# An echo program that protects backslashes. 22545ECHO=$lt_ECHO 22546 22547# The PATH separator for the build system. 22548PATH_SEPARATOR=$lt_PATH_SEPARATOR 22549 22550# The host system. 22551host_alias=$host_alias 22552host=$host 22553host_os=$host_os 22554 22555# The build system. 22556build_alias=$build_alias 22557build=$build 22558build_os=$build_os 22559 22560# A sed program that does not truncate output. 22561SED=$lt_SED 22562 22563# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22564Xsed="\$SED -e 1s/^X//" 22565 22566# A grep program that handles long lines. 22567GREP=$lt_GREP 22568 22569# An ERE matcher. 22570EGREP=$lt_EGREP 22571 22572# A literal string matcher. 22573FGREP=$lt_FGREP 22574 22575# A BSD- or MS-compatible name lister. 22576NM=$lt_NM 22577 22578# Whether we need soft or hard links. 22579LN_S=$lt_LN_S 22580 22581# What is the maximum length of a command? 22582max_cmd_len=$max_cmd_len 22583 22584# Object file suffix (normally "o"). 22585objext=$ac_objext 22586 22587# Executable file suffix (normally ""). 22588exeext=$exeext 22589 22590# whether the shell understands "unset". 22591lt_unset=$lt_unset 22592 22593# turn spaces into newlines. 22594SP2NL=$lt_lt_SP2NL 22595 22596# turn newlines into spaces. 22597NL2SP=$lt_lt_NL2SP 22598 22599# convert \$build file names to \$host format. 22600to_host_file_cmd=$lt_cv_to_host_file_cmd 22601 22602# convert \$build files to toolchain format. 22603to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22604 22605# An object symbol dumper. 22606OBJDUMP=$lt_OBJDUMP 22607 22608# Method to check whether dependent libraries are shared objects. 22609deplibs_check_method=$lt_deplibs_check_method 22610 22611# Command to use when deplibs_check_method = "file_magic". 22612file_magic_cmd=$lt_file_magic_cmd 22613 22614# How to find potential files when deplibs_check_method = "file_magic". 22615file_magic_glob=$lt_file_magic_glob 22616 22617# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22618want_nocaseglob=$lt_want_nocaseglob 22619 22620# DLL creation program. 22621DLLTOOL=$lt_DLLTOOL 22622 22623# Command to associate shared and link libraries. 22624sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22625 22626# The archiver. 22627AR=$lt_AR 22628 22629# Flags to create an archive. 22630AR_FLAGS=$lt_AR_FLAGS 22631 22632# How to feed a file listing to the archiver. 22633archiver_list_spec=$lt_archiver_list_spec 22634 22635# A symbol stripping program. 22636STRIP=$lt_STRIP 22637 22638# Commands used to install an old-style archive. 22639RANLIB=$lt_RANLIB 22640old_postinstall_cmds=$lt_old_postinstall_cmds 22641old_postuninstall_cmds=$lt_old_postuninstall_cmds 22642 22643# Whether to use a lock for old archive extraction. 22644lock_old_archive_extraction=$lock_old_archive_extraction 22645 22646# A C compiler. 22647LTCC=$lt_CC 22648 22649# LTCC compiler flags. 22650LTCFLAGS=$lt_CFLAGS 22651 22652# Take the output of nm and produce a listing of raw symbols and C names. 22653global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22654 22655# Transform the output of nm in a proper C declaration. 22656global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22657 22658# Transform the output of nm into a list of symbols to manually relocate. 22659global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22660 22661# Transform the output of nm in a C name address pair. 22662global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22663 22664# Transform the output of nm in a C name address pair when lib prefix is needed. 22665global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22666 22667# The name lister interface. 22668nm_interface=$lt_lt_cv_nm_interface 22669 22670# Specify filename containing input files for \$NM. 22671nm_file_list_spec=$lt_nm_file_list_spec 22672 22673# The root where to search for dependent libraries,and where our libraries should be installed. 22674lt_sysroot=$lt_sysroot 22675 22676# Command to truncate a binary pipe. 22677lt_truncate_bin=$lt_lt_cv_truncate_bin 22678 22679# The name of the directory that contains temporary libtool files. 22680objdir=$objdir 22681 22682# Used to examine libraries when file_magic_cmd begins with "file". 22683MAGIC_CMD=$MAGIC_CMD 22684 22685# Must we lock files when doing compilation? 22686need_locks=$lt_need_locks 22687 22688# Manifest tool. 22689MANIFEST_TOOL=$lt_MANIFEST_TOOL 22690 22691# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22692DSYMUTIL=$lt_DSYMUTIL 22693 22694# Tool to change global to local symbols on Mac OS X. 22695NMEDIT=$lt_NMEDIT 22696 22697# Tool to manipulate fat objects and archives on Mac OS X. 22698LIPO=$lt_LIPO 22699 22700# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22701OTOOL=$lt_OTOOL 22702 22703# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22704OTOOL64=$lt_OTOOL64 22705 22706# Old archive suffix (normally "a"). 22707libext=$libext 22708 22709# Shared library suffix (normally ".so"). 22710shrext_cmds=$lt_shrext_cmds 22711 22712# The commands to extract the exported symbol list from a shared archive. 22713extract_expsyms_cmds=$lt_extract_expsyms_cmds 22714 22715# Variables whose values should be saved in libtool wrapper scripts and 22716# restored at link time. 22717variables_saved_for_relink=$lt_variables_saved_for_relink 22718 22719# Do we need the "lib" prefix for modules? 22720need_lib_prefix=$need_lib_prefix 22721 22722# Do we need a version for libraries? 22723need_version=$need_version 22724 22725# Library versioning type. 22726version_type=$version_type 22727 22728# Shared library runtime path variable. 22729runpath_var=$runpath_var 22730 22731# Shared library path variable. 22732shlibpath_var=$shlibpath_var 22733 22734# Is shlibpath searched before the hard-coded library search path? 22735shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22736 22737# Format of library name prefix. 22738libname_spec=$lt_libname_spec 22739 22740# List of archive names. First name is the real one, the rest are links. 22741# The last name is the one that the linker finds with -lNAME 22742library_names_spec=$lt_library_names_spec 22743 22744# The coded name of the library, if different from the real name. 22745soname_spec=$lt_soname_spec 22746 22747# Permission mode override for installation of shared libraries. 22748install_override_mode=$lt_install_override_mode 22749 22750# Command to use after installation of a shared archive. 22751postinstall_cmds=$lt_postinstall_cmds 22752 22753# Command to use after uninstallation of a shared archive. 22754postuninstall_cmds=$lt_postuninstall_cmds 22755 22756# Commands used to finish a libtool library installation in a directory. 22757finish_cmds=$lt_finish_cmds 22758 22759# As "finish_cmds", except a single script fragment to be evaled but 22760# not shown. 22761finish_eval=$lt_finish_eval 22762 22763# Whether we should hardcode library paths into libraries. 22764hardcode_into_libs=$hardcode_into_libs 22765 22766# Compile-time system search path for libraries. 22767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22768 22769# Detected run-time system search path for libraries. 22770sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22771 22772# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22773configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22774 22775# Whether dlopen is supported. 22776dlopen_support=$enable_dlopen 22777 22778# Whether dlopen of programs is supported. 22779dlopen_self=$enable_dlopen_self 22780 22781# Whether dlopen of statically linked programs is supported. 22782dlopen_self_static=$enable_dlopen_self_static 22783 22784# Commands to strip libraries. 22785old_striplib=$lt_old_striplib 22786striplib=$lt_striplib 22787 22788 22789# The linker used to build libraries. 22790LD=$lt_LD 22791 22792# How to create reloadable object files. 22793reload_flag=$lt_reload_flag 22794reload_cmds=$lt_reload_cmds 22795 22796# Commands used to build an old-style archive. 22797old_archive_cmds=$lt_old_archive_cmds 22798 22799# A language specific compiler. 22800CC=$lt_compiler 22801 22802# Is the compiler the GNU compiler? 22803with_gcc=$GCC 22804 22805# Compiler flag to turn off builtin functions. 22806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22807 22808# Additional compiler flags for building library objects. 22809pic_flag=$lt_lt_prog_compiler_pic 22810 22811# How to pass a linker flag through the compiler. 22812wl=$lt_lt_prog_compiler_wl 22813 22814# Compiler flag to prevent dynamic linking. 22815link_static_flag=$lt_lt_prog_compiler_static 22816 22817# Does compiler simultaneously support -c and -o options? 22818compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22819 22820# Whether or not to add -lc for building shared libraries. 22821build_libtool_need_lc=$archive_cmds_need_lc 22822 22823# Whether or not to disallow shared libs when runtime libs are static. 22824allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22825 22826# Compiler flag to allow reflexive dlopens. 22827export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22828 22829# Compiler flag to generate shared objects directly from archives. 22830whole_archive_flag_spec=$lt_whole_archive_flag_spec 22831 22832# Whether the compiler copes with passing no objects directly. 22833compiler_needs_object=$lt_compiler_needs_object 22834 22835# Create an old-style archive from a shared archive. 22836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22837 22838# Create a temporary old-style archive to link instead of a shared archive. 22839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22840 22841# Commands used to build a shared archive. 22842archive_cmds=$lt_archive_cmds 22843archive_expsym_cmds=$lt_archive_expsym_cmds 22844 22845# Commands used to build a loadable module if different from building 22846# a shared archive. 22847module_cmds=$lt_module_cmds 22848module_expsym_cmds=$lt_module_expsym_cmds 22849 22850# Whether we are building with GNU ld or not. 22851with_gnu_ld=$lt_with_gnu_ld 22852 22853# Flag that allows shared libraries with undefined symbols to be built. 22854allow_undefined_flag=$lt_allow_undefined_flag 22855 22856# Flag that enforces no undefined symbols. 22857no_undefined_flag=$lt_no_undefined_flag 22858 22859# Flag to hardcode \$libdir into a binary during linking. 22860# This must work even if \$libdir does not exist 22861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22862 22863# Whether we need a single "-rpath" flag with a separated argument. 22864hardcode_libdir_separator=$lt_hardcode_libdir_separator 22865 22866# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22867# DIR into the resulting binary. 22868hardcode_direct=$hardcode_direct 22869 22870# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22871# DIR into the resulting binary and the resulting library dependency is 22872# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22873# library is relocated. 22874hardcode_direct_absolute=$hardcode_direct_absolute 22875 22876# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22877# into the resulting binary. 22878hardcode_minus_L=$hardcode_minus_L 22879 22880# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22881# into the resulting binary. 22882hardcode_shlibpath_var=$hardcode_shlibpath_var 22883 22884# Set to "yes" if building a shared library automatically hardcodes DIR 22885# into the library and all subsequent libraries and executables linked 22886# against it. 22887hardcode_automatic=$hardcode_automatic 22888 22889# Set to yes if linker adds runtime paths of dependent libraries 22890# to runtime path list. 22891inherit_rpath=$inherit_rpath 22892 22893# Whether libtool must link a program against all its dependency libraries. 22894link_all_deplibs=$link_all_deplibs 22895 22896# Set to "yes" if exported symbols are required. 22897always_export_symbols=$always_export_symbols 22898 22899# The commands to list exported symbols. 22900export_symbols_cmds=$lt_export_symbols_cmds 22901 22902# Symbols that should not be listed in the preloaded symbols. 22903exclude_expsyms=$lt_exclude_expsyms 22904 22905# Symbols that must always be exported. 22906include_expsyms=$lt_include_expsyms 22907 22908# Commands necessary for linking programs (against libraries) with templates. 22909prelink_cmds=$lt_prelink_cmds 22910 22911# Commands necessary for finishing linking programs. 22912postlink_cmds=$lt_postlink_cmds 22913 22914# Specify filename containing input files. 22915file_list_spec=$lt_file_list_spec 22916 22917# How to hardcode a shared library path into an executable. 22918hardcode_action=$hardcode_action 22919 22920# The directories searched by this compiler when creating a shared library. 22921compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22922 22923# Dependencies to place before and after the objects being linked to 22924# create a shared library. 22925predep_objects=$lt_predep_objects 22926postdep_objects=$lt_postdep_objects 22927predeps=$lt_predeps 22928postdeps=$lt_postdeps 22929 22930# The library search path used internally by the compiler when linking 22931# a shared library. 22932compiler_lib_search_path=$lt_compiler_lib_search_path 22933 22934# ### END LIBTOOL CONFIG 22935 22936_LT_EOF 22937 22938 cat <<'_LT_EOF' >> "$cfgfile" 22939 22940# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22941 22942# func_munge_path_list VARIABLE PATH 22943# ----------------------------------- 22944# VARIABLE is name of variable containing _space_ separated list of 22945# directories to be munged by the contents of PATH, which is string 22946# having a format: 22947# "DIR[:DIR]:" 22948# string "DIR[ DIR]" will be prepended to VARIABLE 22949# ":DIR[:DIR]" 22950# string "DIR[ DIR]" will be appended to VARIABLE 22951# "DIRP[:DIRP]::[DIRA:]DIRA" 22952# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22953# "DIRA[ DIRA]" will be appended to VARIABLE 22954# "DIR[:DIR]" 22955# VARIABLE will be replaced by "DIR[ DIR]" 22956func_munge_path_list () 22957{ 22958 case x$2 in 22959 x) 22960 ;; 22961 *:) 22962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22963 ;; 22964 x:*) 22965 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22966 ;; 22967 *::*) 22968 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22969 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22970 ;; 22971 *) 22972 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22973 ;; 22974 esac 22975} 22976 22977 22978# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22979func_cc_basename () 22980{ 22981 for cc_temp in $*""; do 22982 case $cc_temp in 22983 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22984 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22985 \-*) ;; 22986 *) break;; 22987 esac 22988 done 22989 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22990} 22991 22992 22993# ### END FUNCTIONS SHARED WITH CONFIGURE 22994 22995_LT_EOF 22996 22997 case $host_os in 22998 aix3*) 22999 cat <<\_LT_EOF >> "$cfgfile" 23000# AIX sometimes has problems with the GCC collect2 program. For some 23001# reason, if we set the COLLECT_NAMES environment variable, the problems 23002# vanish in a puff of smoke. 23003if test set != "${COLLECT_NAMES+set}"; then 23004 COLLECT_NAMES= 23005 export COLLECT_NAMES 23006fi 23007_LT_EOF 23008 ;; 23009 esac 23010 23011 23012ltmain=$ac_aux_dir/ltmain.sh 23013 23014 23015 # We use sed instead of cat because bash on DJGPP gets confused if 23016 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23017 # text mode, it properly converts lines to CR/LF. This bash problem 23018 # is reportedly fixed, but why not run on old versions too? 23019 sed '$q' "$ltmain" >> "$cfgfile" \ 23020 || (rm -f "$cfgfile"; exit 1) 23021 23022 mv -f "$cfgfile" "$ofile" || 23023 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23024 chmod +x "$ofile" 23025 23026 23027 cat <<_LT_EOF >> "$ofile" 23028 23029# ### BEGIN LIBTOOL TAG CONFIG: CXX 23030 23031# The linker used to build libraries. 23032LD=$lt_LD_CXX 23033 23034# How to create reloadable object files. 23035reload_flag=$lt_reload_flag_CXX 23036reload_cmds=$lt_reload_cmds_CXX 23037 23038# Commands used to build an old-style archive. 23039old_archive_cmds=$lt_old_archive_cmds_CXX 23040 23041# A language specific compiler. 23042CC=$lt_compiler_CXX 23043 23044# Is the compiler the GNU compiler? 23045with_gcc=$GCC_CXX 23046 23047# Compiler flag to turn off builtin functions. 23048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23049 23050# Additional compiler flags for building library objects. 23051pic_flag=$lt_lt_prog_compiler_pic_CXX 23052 23053# How to pass a linker flag through the compiler. 23054wl=$lt_lt_prog_compiler_wl_CXX 23055 23056# Compiler flag to prevent dynamic linking. 23057link_static_flag=$lt_lt_prog_compiler_static_CXX 23058 23059# Does compiler simultaneously support -c and -o options? 23060compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23061 23062# Whether or not to add -lc for building shared libraries. 23063build_libtool_need_lc=$archive_cmds_need_lc_CXX 23064 23065# Whether or not to disallow shared libs when runtime libs are static. 23066allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23067 23068# Compiler flag to allow reflexive dlopens. 23069export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23070 23071# Compiler flag to generate shared objects directly from archives. 23072whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23073 23074# Whether the compiler copes with passing no objects directly. 23075compiler_needs_object=$lt_compiler_needs_object_CXX 23076 23077# Create an old-style archive from a shared archive. 23078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23079 23080# Create a temporary old-style archive to link instead of a shared archive. 23081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23082 23083# Commands used to build a shared archive. 23084archive_cmds=$lt_archive_cmds_CXX 23085archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23086 23087# Commands used to build a loadable module if different from building 23088# a shared archive. 23089module_cmds=$lt_module_cmds_CXX 23090module_expsym_cmds=$lt_module_expsym_cmds_CXX 23091 23092# Whether we are building with GNU ld or not. 23093with_gnu_ld=$lt_with_gnu_ld_CXX 23094 23095# Flag that allows shared libraries with undefined symbols to be built. 23096allow_undefined_flag=$lt_allow_undefined_flag_CXX 23097 23098# Flag that enforces no undefined symbols. 23099no_undefined_flag=$lt_no_undefined_flag_CXX 23100 23101# Flag to hardcode \$libdir into a binary during linking. 23102# This must work even if \$libdir does not exist 23103hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23104 23105# Whether we need a single "-rpath" flag with a separated argument. 23106hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23107 23108# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23109# DIR into the resulting binary. 23110hardcode_direct=$hardcode_direct_CXX 23111 23112# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23113# DIR into the resulting binary and the resulting library dependency is 23114# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23115# library is relocated. 23116hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23117 23118# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23119# into the resulting binary. 23120hardcode_minus_L=$hardcode_minus_L_CXX 23121 23122# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23123# into the resulting binary. 23124hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23125 23126# Set to "yes" if building a shared library automatically hardcodes DIR 23127# into the library and all subsequent libraries and executables linked 23128# against it. 23129hardcode_automatic=$hardcode_automatic_CXX 23130 23131# Set to yes if linker adds runtime paths of dependent libraries 23132# to runtime path list. 23133inherit_rpath=$inherit_rpath_CXX 23134 23135# Whether libtool must link a program against all its dependency libraries. 23136link_all_deplibs=$link_all_deplibs_CXX 23137 23138# Set to "yes" if exported symbols are required. 23139always_export_symbols=$always_export_symbols_CXX 23140 23141# The commands to list exported symbols. 23142export_symbols_cmds=$lt_export_symbols_cmds_CXX 23143 23144# Symbols that should not be listed in the preloaded symbols. 23145exclude_expsyms=$lt_exclude_expsyms_CXX 23146 23147# Symbols that must always be exported. 23148include_expsyms=$lt_include_expsyms_CXX 23149 23150# Commands necessary for linking programs (against libraries) with templates. 23151prelink_cmds=$lt_prelink_cmds_CXX 23152 23153# Commands necessary for finishing linking programs. 23154postlink_cmds=$lt_postlink_cmds_CXX 23155 23156# Specify filename containing input files. 23157file_list_spec=$lt_file_list_spec_CXX 23158 23159# How to hardcode a shared library path into an executable. 23160hardcode_action=$hardcode_action_CXX 23161 23162# The directories searched by this compiler when creating a shared library. 23163compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23164 23165# Dependencies to place before and after the objects being linked to 23166# create a shared library. 23167predep_objects=$lt_predep_objects_CXX 23168postdep_objects=$lt_postdep_objects_CXX 23169predeps=$lt_predeps_CXX 23170postdeps=$lt_postdeps_CXX 23171 23172# The library search path used internally by the compiler when linking 23173# a shared library. 23174compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23175 23176# ### END LIBTOOL TAG CONFIG: CXX 23177_LT_EOF 23178 23179 ;; 23180 23181 esac 23182done # for ac_tag 23183 23184 23185as_fn_exit 0 23186_ACEOF 23187ac_clean_files=$ac_clean_files_save 23188 23189test $ac_write_fail = 0 || 23190 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23191 23192 23193# configure is writing to config.log, and then calls config.status. 23194# config.status does its own redirection, appending to config.log. 23195# Unfortunately, on DOS this fails, as config.log is still kept open 23196# by configure, so config.status won't be able to write to it; its 23197# output is simply discarded. So we exec the FD to /dev/null, 23198# effectively closing config.log, so it can be properly (re)opened and 23199# appended to by config.status. When coming back to configure, we 23200# need to make the FD available again. 23201if test "$no_create" != yes; then 23202 ac_cs_success=: 23203 ac_config_status_args= 23204 test "$silent" = yes && 23205 ac_config_status_args="$ac_config_status_args --quiet" 23206 exec 5>/dev/null 23207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23208 exec 5>>config.log 23209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23210 # would make configure fail if this is the last instruction. 23211 $ac_cs_success || as_fn_exit 1 23212fi 23213if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23215$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23216fi 23217 23218